Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for monopd 0.10.4.
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='monopd'
609 PACKAGE_TARNAME='monopd'
610 PACKAGE_VERSION='0.10.4'
611 PACKAGE_STRING='monopd 0.10.4'
612 PACKAGE_BUGREPORT=''
613 PACKAGE_URL=''
614
615 ac_unique_file="configure.ac"
616 # Factoring default headers for most tests.
617 ac_includes_default="\
618 #include <stddef.h>
619 #ifdef HAVE_STDIO_H
620 # include <stdio.h>
621 #endif
622 #ifdef HAVE_STDLIB_H
623 # include <stdlib.h>
624 #endif
625 #ifdef HAVE_STRING_H
626 # include <string.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_STRINGS_H
635 # include <strings.h>
636 #endif
637 #ifdef HAVE_SYS_TYPES_H
638 # include <sys/types.h>
639 #endif
640 #ifdef HAVE_SYS_STAT_H
641 # include <sys/stat.h>
642 #endif
643 #ifdef HAVE_UNISTD_H
644 # include <unistd.h>
645 #endif"
646
647 ac_header_cxx_list=
648 ac_subst_vars='am__EXEEXT_FALSE
649 am__EXEEXT_TRUE
650 LTLIBOBJS
651 LIBOBJS
652 SYSTEMD_DAEMON_LIBS
653 SYSTEMD_DAEMON_CFLAGS
654 PKG_CONFIG_LIBDIR
655 PKG_CONFIG_PATH
656 PKG_CONFIG
657 am__fastdepCC_FALSE
658 am__fastdepCC_TRUE
659 CCDEPMODE
660 ac_ct_CC
661 CC
662 CFLAGS
663 am__fastdepCXX_FALSE
664 am__fastdepCXX_TRUE
665 CXXDEPMODE
666 am__nodep
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__include
671 DEPDIR
672 OBJEXT
673 EXEEXT
674 ac_ct_CXX
675 CPPFLAGS
676 LDFLAGS
677 CXXFLAGS
678 CXX
679 AM_BACKSLASH
680 AM_DEFAULT_VERBOSITY
681 AM_DEFAULT_V
682 AM_V
683 CSCOPE
684 ETAGS
685 CTAGS
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 runstatedir
729 localstatedir
730 sharedstatedir
731 sysconfdir
732 datadir
733 datarootdir
734 libexecdir
735 sbindir
736 bindir
737 program_transform_name
738 prefix
739 exec_prefix
740 PACKAGE_URL
741 PACKAGE_BUGREPORT
742 PACKAGE_STRING
743 PACKAGE_VERSION
744 PACKAGE_TARNAME
745 PACKAGE_NAME
746 PATH_SEPARATOR
747 SHELL
748 am__quote'
749 ac_subst_files=''
750 ac_user_opts='
751 enable_option_checking
752 enable_silent_rules
753 enable_dependency_tracking
754 with_systemd_daemon
755 '
756 ac_precious_vars='build_alias
757 host_alias
758 target_alias
759 CXX
760 CXXFLAGS
761 LDFLAGS
762 LIBS
763 CPPFLAGS
764 CCC
765 CC
766 CFLAGS
767 PKG_CONFIG
768 PKG_CONFIG_PATH
769 PKG_CONFIG_LIBDIR
770 SYSTEMD_DAEMON_CFLAGS
771 SYSTEMD_DAEMON_LIBS'
772
773
774 # Initialize some variables set by options.
775 ac_init_help=
776 ac_init_version=false
777 ac_unrecognized_opts=
778 ac_unrecognized_sep=
779 # The variables have the same names as the options, with
780 # dashes changed to underlines.
781 cache_file=/dev/null
782 exec_prefix=NONE
783 no_create=
784 no_recursion=
785 prefix=NONE
786 program_prefix=NONE
787 program_suffix=NONE
788 program_transform_name=s,x,x,
789 silent=
790 site=
791 srcdir=
792 verbose=
793 x_includes=NONE
794 x_libraries=NONE
795
796 # Installation directory options.
797 # These are left unexpanded so users can "make install exec_prefix=/foo"
798 # and all the variables that are supposed to be based on exec_prefix
799 # by default will actually change.
800 # Use braces instead of parens because sh, perl, etc. also accept them.
801 # (The list follows the same order as the GNU Coding Standards.)
802 bindir='${exec_prefix}/bin'
803 sbindir='${exec_prefix}/sbin'
804 libexecdir='${exec_prefix}/libexec'
805 datarootdir='${prefix}/share'
806 datadir='${datarootdir}'
807 sysconfdir='${prefix}/etc'
808 sharedstatedir='${prefix}/com'
809 localstatedir='${prefix}/var'
810 runstatedir='${localstatedir}/run'
811 includedir='${prefix}/include'
812 oldincludedir='/usr/include'
813 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
814 infodir='${datarootdir}/info'
815 htmldir='${docdir}'
816 dvidir='${docdir}'
817 pdfdir='${docdir}'
818 psdir='${docdir}'
819 libdir='${exec_prefix}/lib'
820 localedir='${datarootdir}/locale'
821 mandir='${datarootdir}/man'
822
823 ac_prev=
824 ac_dashdash=
825 for ac_option
826 do
827 # If the previous option needs an argument, assign it.
828 if test -n "$ac_prev"; then
829 eval $ac_prev=\$ac_option
830 ac_prev=
831 continue
832 fi
833
834 case $ac_option in
835 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 *=) ac_optarg= ;;
837 *) ac_optarg=yes ;;
838 esac
839
840 case $ac_dashdash$ac_option in
841 --)
842 ac_dashdash=yes ;;
843
844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 ac_prev=bindir ;;
846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 bindir=$ac_optarg ;;
848
849 -build | --build | --buil | --bui | --bu)
850 ac_prev=build_alias ;;
851 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852 build_alias=$ac_optarg ;;
853
854 -cache-file | --cache-file | --cache-fil | --cache-fi \
855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856 ac_prev=cache_file ;;
857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859 cache_file=$ac_optarg ;;
860
861 --config-cache | -C)
862 cache_file=config.cache ;;
863
864 -datadir | --datadir | --datadi | --datad)
865 ac_prev=datadir ;;
866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
867 datadir=$ac_optarg ;;
868
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
875
876 -disable-* | --disable-*)
877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880 as_fn_error $? "invalid feature name: \`$ac_useropt'"
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
884 *"
885 "enable_$ac_useropt"
886 "*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
889 esac
890 eval enable_$ac_useropt=no ;;
891
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
896
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
901
902 -enable-* | --enable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: \`$ac_useropt'"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911 "enable_$ac_useropt"
912 "*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=\$ac_optarg ;;
917
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
926
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
929 with_gas=yes ;;
930
931 -help | --help | --hel | --he | -h)
932 ac_init_help=long ;;
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
937
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
942
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
948
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
955
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 ac_prev=infodir ;;
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
960
961 -libdir | --libdir | --libdi | --libd)
962 ac_prev=libdir ;;
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 libdir=$ac_optarg ;;
965
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
972
973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
977
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
984
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 ac_prev=mandir ;;
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 mandir=$ac_optarg ;;
989
990 -nfp | --nfp | --nf)
991 # Obsolete; use --without-fp.
992 with_fp=no ;;
993
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
996 no_create=yes ;;
997
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 no_recursion=yes ;;
1001
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1010
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 ac_prev=prefix ;;
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1015
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1022
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1029
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1046
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1051
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1056
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 silent=yes ;;
1060
1061 -runstatedir | --runstatedir | --runstatedi | --runstated \
1062 | --runstate | --runstat | --runsta | --runst | --runs \
1063 | --run | --ru | --r)
1064 ac_prev=runstatedir ;;
1065 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1066 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1067 | --run=* | --ru=* | --r=*)
1068 runstatedir=$ac_optarg ;;
1069
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
1074 sbindir=$ac_optarg ;;
1075
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
1085 sharedstatedir=$ac_optarg ;;
1086
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
1090 site=$ac_optarg ;;
1091
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1096
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1103
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1108
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1111
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1114
1115 -with-* | --with-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: \`$ac_useropt'"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=\$ac_optarg ;;
1130
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: \`$ac_useropt'"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
1146
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1150
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1157
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1164
1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1167 ;;
1168
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175 esac
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1178
1179 *)
1180 # FIXME: should be removed in autoconf 3.0.
1181 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185 ;;
1186
1187 esac
1188 done
1189
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error $? "missing argument to $ac_option"
1193 fi
1194
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1201 fi
1202
1203 # Check all directory arguments for consistency.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir runstatedir
1208 do
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
1217 case $ac_val in
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 esac
1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 printf "%s\n" X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285 else
1286 ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320 \`configure' configures monopd 0.10.4 to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/monopd]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1375
1376 cat <<\_ACEOF
1377
1378 Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382 _ACEOF
1383 fi
1384
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of monopd 0.10.4:";;
1388 esac
1389 cat <<\_ACEOF
1390
1391 Optional Features:
1392 --disable-option-checking ignore unrecognized --enable/--with options
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-silent-rules less verbose build output (undo: "make V=1")
1396 --disable-silent-rules verbose build output (undo: "make V=0")
1397 --enable-dependency-tracking
1398 do not reject slow dependency extractors
1399 --disable-dependency-tracking
1400 speeds up one-time build
1401
1402 Optional Packages:
1403 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1404 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1405 --with-systemd-daemon Add support for systemd startup notification
1406 (default is autodetected)
1407
1408 Some influential environment variables:
1409 CXX C++ compiler command
1410 CXXFLAGS C++ compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
1413 LIBS libraries to pass to the linker, e.g. -l<library>
1414 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
1416 CC C compiler command
1417 CFLAGS C compiler flags
1418 PKG_CONFIG path to pkg-config utility
1419 PKG_CONFIG_PATH
1420 directories to add to pkg-config's search path
1421 PKG_CONFIG_LIBDIR
1422 path overriding pkg-config's built-in search path
1423 SYSTEMD_DAEMON_CFLAGS
1424 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1425 SYSTEMD_DAEMON_LIBS
1426 linker flags for SYSTEMD_DAEMON, overriding pkg-config
1427
1428 Use these variables to override the choices made by `configure' or to help
1429 it to find libraries and programs with nonstandard names/locations.
1430
1431 Report bugs to the package provider.
1432 _ACEOF
1433 ac_status=$?
1434 fi
1435
1436 if test "$ac_init_help" = "recursive"; then
1437 # If there are subdirs, report their specific --help.
1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439 test -d "$ac_dir" ||
1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441 continue
1442 ac_builddir=.
1443
1444 case "$ac_dir" in
1445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *)
1447 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1448 # A ".." for each directory in $ac_dir_suffix.
1449 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450 case $ac_top_builddir_sub in
1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 esac ;;
1454 esac
1455 ac_abs_top_builddir=$ac_pwd
1456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457 # for backward compatibility:
1458 ac_top_builddir=$ac_top_build_prefix
1459
1460 case $srcdir in
1461 .) # We are building in place.
1462 ac_srcdir=.
1463 ac_top_srcdir=$ac_top_builddir_sub
1464 ac_abs_top_srcdir=$ac_pwd ;;
1465 [\\/]* | ?:[\\/]* ) # Absolute name.
1466 ac_srcdir=$srcdir$ac_dir_suffix;
1467 ac_top_srcdir=$srcdir
1468 ac_abs_top_srcdir=$srcdir ;;
1469 *) # Relative name.
1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471 ac_top_srcdir=$ac_top_build_prefix$srcdir
1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473 esac
1474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
1476 cd "$ac_dir" || { ac_status=$?; continue; }
1477 # Check for configure.gnu first; this name is used for a wrapper for
1478 # Metaconfig's "Configure" on case-insensitive file systems.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1480 echo &&
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1485 else
1486 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487 fi || ac_status=$?
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1489 done
1490 fi
1491
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1494 cat <<\_ACEOF
1495 monopd configure 0.10.4
1496 generated by GNU Autoconf 2.71
1497
1498 Copyright (C) 2021 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1501 _ACEOF
1502 exit
1503 fi
1504
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1508
1509 # ac_fn_cxx_try_compile LINENO
1510 # ----------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_cxx_try_compile ()
1513 {
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext conftest.beam
1516 if { { ac_try="$ac_compile"
1517 case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 printf "%s\n" "$ac_try_echo"; } >&5
1523 (eval "$ac_compile") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1529 fi
1530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_cxx_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest.$ac_objext
1535 then :
1536 ac_retval=0
1537 else $as_nop
1538 printf "%s\n" "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1540
1541 ac_retval=1
1542 fi
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544 as_fn_set_status $ac_retval
1545
1546 } # ac_fn_cxx_try_compile
1547
1548 # ac_fn_cxx_try_link LINENO
1549 # -------------------------
1550 # Try to link conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_cxx_try_link ()
1552 {
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1555 if { { ac_try="$ac_link"
1556 case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 printf "%s\n" "$ac_try_echo"; } >&5
1562 (eval "$ac_link") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1568 fi
1569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_cxx_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest$ac_exeext && {
1574 test "$cross_compiling" = yes ||
1575 test -x conftest$ac_exeext
1576 }
1577 then :
1578 ac_retval=0
1579 else $as_nop
1580 printf "%s\n" "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1
1584 fi
1585 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1586 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1587 # interfere with the next link command; also delete a directory that is
1588 # left behind by Apple's compiler. We do this before executing the actions.
1589 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1592
1593 } # ac_fn_cxx_try_link
1594
1595 # ac_fn_c_try_compile LINENO
1596 # --------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_compile ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext conftest.beam
1602 if { { ac_try="$ac_compile"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 printf "%s\n" "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.$ac_objext
1621 then :
1622 ac_retval=0
1623 else $as_nop
1624 printf "%s\n" "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627 ac_retval=1
1628 fi
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_compile
1633
1634 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1635 # ---------------------------------------------------------
1636 # Tests whether HEADER exists and can be compiled using the include files in
1637 # INCLUDES, setting the cache variable VAR accordingly.
1638 ac_fn_cxx_check_header_compile ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 printf %s "checking for $2... " >&6; }
1643 if eval test \${$3+y}
1644 then :
1645 printf %s "(cached) " >&6
1646 else $as_nop
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1649 $4
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_cxx_try_compile "$LINENO"
1653 then :
1654 eval "$3=yes"
1655 else $as_nop
1656 eval "$3=no"
1657 fi
1658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1659 fi
1660 eval ac_res=\$$3
1661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 printf "%s\n" "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
1665 } # ac_fn_cxx_check_header_compile
1666 ac_configure_args_raw=
1667 for ac_arg
1668 do
1669 case $ac_arg in
1670 *\'*)
1671 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 esac
1673 as_fn_append ac_configure_args_raw " '$ac_arg'"
1674 done
1675
1676 case $ac_configure_args_raw in
1677 *$as_nl*)
1678 ac_safe_unquote= ;;
1679 *)
1680 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1681 ac_unsafe_a="$ac_unsafe_z#~"
1682 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1683 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1684 esac
1685
1686 cat >config.log <<_ACEOF
1687 This file contains any messages produced by compilers while
1688 running configure, to aid debugging if configure makes a mistake.
1689
1690 It was created by monopd $as_me 0.10.4, which was
1691 generated by GNU Autoconf 2.71. Invocation command line was
1692
1693 $ $0$ac_configure_args_raw
1694
1695 _ACEOF
1696 exec 5>>config.log
1697 {
1698 cat <<_ASUNAME
1699 ## --------- ##
1700 ## Platform. ##
1701 ## --------- ##
1702
1703 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1704 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1705 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1706 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1707 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1708
1709 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1710 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1711
1712 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1713 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1714 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1715 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1716 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1717 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1718 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1719
1720 _ASUNAME
1721
1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 for as_dir in $PATH
1724 do
1725 IFS=$as_save_IFS
1726 case $as_dir in #(((
1727 '') as_dir=./ ;;
1728 */) ;;
1729 *) as_dir=$as_dir/ ;;
1730 esac
1731 printf "%s\n" "PATH: $as_dir"
1732 done
1733 IFS=$as_save_IFS
1734
1735 } >&5
1736
1737 cat >&5 <<_ACEOF
1738
1739
1740 ## ----------- ##
1741 ## Core tests. ##
1742 ## ----------- ##
1743
1744 _ACEOF
1745
1746
1747 # Keep a trace of the command line.
1748 # Strip out --no-create and --no-recursion so they do not pile up.
1749 # Strip out --silent because we don't want to record it for future runs.
1750 # Also quote any args containing shell meta-characters.
1751 # Make two passes to allow for proper duplicate-argument suppression.
1752 ac_configure_args=
1753 ac_configure_args0=
1754 ac_configure_args1=
1755 ac_must_keep_next=false
1756 for ac_pass in 1 2
1757 do
1758 for ac_arg
1759 do
1760 case $ac_arg in
1761 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1763 | -silent | --silent | --silen | --sile | --sil)
1764 continue ;;
1765 *\'*)
1766 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1767 esac
1768 case $ac_pass in
1769 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1770 2)
1771 as_fn_append ac_configure_args1 " '$ac_arg'"
1772 if test $ac_must_keep_next = true; then
1773 ac_must_keep_next=false # Got value, back to normal.
1774 else
1775 case $ac_arg in
1776 *=* | --config-cache | -C | -disable-* | --disable-* \
1777 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1778 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1779 | -with-* | --with-* | -without-* | --without-* | --x)
1780 case "$ac_configure_args0 " in
1781 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1782 esac
1783 ;;
1784 -* ) ac_must_keep_next=true ;;
1785 esac
1786 fi
1787 as_fn_append ac_configure_args " '$ac_arg'"
1788 ;;
1789 esac
1790 done
1791 done
1792 { ac_configure_args0=; unset ac_configure_args0;}
1793 { ac_configure_args1=; unset ac_configure_args1;}
1794
1795 # When interrupted or exit'd, cleanup temporary files, and complete
1796 # config.log. We remove comments because anyway the quotes in there
1797 # would cause problems or look ugly.
1798 # WARNING: Use '\'' to represent an apostrophe within the trap.
1799 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1800 trap 'exit_status=$?
1801 # Sanitize IFS.
1802 IFS=" "" $as_nl"
1803 # Save into config.log some information that might help in debugging.
1804 {
1805 echo
1806
1807 printf "%s\n" "## ---------------- ##
1808 ## Cache variables. ##
1809 ## ---------------- ##"
1810 echo
1811 # The following way of writing the cache mishandles newlines in values,
1812 (
1813 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1814 eval ac_val=\$$ac_var
1815 case $ac_val in #(
1816 *${as_nl}*)
1817 case $ac_var in #(
1818 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1819 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1820 esac
1821 case $ac_var in #(
1822 _ | IFS | as_nl) ;; #(
1823 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1824 *) { eval $ac_var=; unset $ac_var;} ;;
1825 esac ;;
1826 esac
1827 done
1828 (set) 2>&1 |
1829 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830 *${as_nl}ac_space=\ *)
1831 sed -n \
1832 "s/'\''/'\''\\\\'\'''\''/g;
1833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1834 ;; #(
1835 *)
1836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1837 ;;
1838 esac |
1839 sort
1840 )
1841 echo
1842
1843 printf "%s\n" "## ----------------- ##
1844 ## Output variables. ##
1845 ## ----------------- ##"
1846 echo
1847 for ac_var in $ac_subst_vars
1848 do
1849 eval ac_val=\$$ac_var
1850 case $ac_val in
1851 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852 esac
1853 printf "%s\n" "$ac_var='\''$ac_val'\''"
1854 done | sort
1855 echo
1856
1857 if test -n "$ac_subst_files"; then
1858 printf "%s\n" "## ------------------- ##
1859 ## File substitutions. ##
1860 ## ------------------- ##"
1861 echo
1862 for ac_var in $ac_subst_files
1863 do
1864 eval ac_val=\$$ac_var
1865 case $ac_val in
1866 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1867 esac
1868 printf "%s\n" "$ac_var='\''$ac_val'\''"
1869 done | sort
1870 echo
1871 fi
1872
1873 if test -s confdefs.h; then
1874 printf "%s\n" "## ----------- ##
1875 ## confdefs.h. ##
1876 ## ----------- ##"
1877 echo
1878 cat confdefs.h
1879 echo
1880 fi
1881 test "$ac_signal" != 0 &&
1882 printf "%s\n" "$as_me: caught signal $ac_signal"
1883 printf "%s\n" "$as_me: exit $exit_status"
1884 } >&5
1885 rm -f core *.core core.conftest.* &&
1886 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1887 exit $exit_status
1888 ' 0
1889 for ac_signal in 1 2 13 15; do
1890 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1891 done
1892 ac_signal=0
1893
1894 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1895 rm -f -r conftest* confdefs.h
1896
1897 printf "%s\n" "/* confdefs.h */" > confdefs.h
1898
1899 # Predefined preprocessor variables.
1900
1901 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1902
1903 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1904
1905 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1906
1907 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1908
1909 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1910
1911 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1912
1913
1914 # Let the site file select an alternate cache file if it wants to.
1915 # Prefer an explicitly selected file to automatically selected ones.
1916 if test -n "$CONFIG_SITE"; then
1917 ac_site_files="$CONFIG_SITE"
1918 elif test "x$prefix" != xNONE; then
1919 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1920 else
1921 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1922 fi
1923
1924 for ac_site_file in $ac_site_files
1925 do
1926 case $ac_site_file in #(
1927 */*) :
1928 ;; #(
1929 *) :
1930 ac_site_file=./$ac_site_file ;;
1931 esac
1932 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1934 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1935 sed 's/^/| /' "$ac_site_file" >&5
1936 . "$ac_site_file" \
1937 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1938 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1939 as_fn_error $? "failed to load site script $ac_site_file
1940 See \`config.log' for more details" "$LINENO" 5; }
1941 fi
1942 done
1943
1944 if test -r "$cache_file"; then
1945 # Some versions of bash will fail to source /dev/null (special files
1946 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1947 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1949 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1950 case $cache_file in
1951 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1952 *) . "./$cache_file";;
1953 esac
1954 fi
1955 else
1956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1957 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1958 >$cache_file
1959 fi
1960
1961 # Test code for whether the C++ compiler supports C++98 (global declarations)
1962 ac_cxx_conftest_cxx98_globals='
1963 // Does the compiler advertise C++98 conformance?
1964 #if !defined __cplusplus || __cplusplus < 199711L
1965 # error "Compiler does not advertise C++98 conformance"
1966 #endif
1967
1968 // These inclusions are to reject old compilers that
1969 // lack the unsuffixed header files.
1970 #include <cstdlib>
1971 #include <exception>
1972
1973 // <cassert> and <cstring> are *not* freestanding headers in C++98.
1974 extern void assert (int);
1975 namespace std {
1976 extern int strcmp (const char *, const char *);
1977 }
1978
1979 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
1980 using std::exception;
1981 using std::strcmp;
1982
1983 namespace {
1984
1985 void test_exception_syntax()
1986 {
1987 try {
1988 throw "test";
1989 } catch (const char *s) {
1990 // Extra parentheses suppress a warning when building autoconf itself,
1991 // due to lint rules shared with more typical C programs.
1992 assert (!(strcmp) (s, "test"));
1993 }
1994 }
1995
1996 template <typename T> struct test_template
1997 {
1998 T const val;
1999 explicit test_template(T t) : val(t) {}
2000 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2001 };
2002
2003 } // anonymous namespace
2004 '
2005
2006 # Test code for whether the C++ compiler supports C++98 (body of main)
2007 ac_cxx_conftest_cxx98_main='
2008 assert (argc);
2009 assert (! argv[0]);
2010 {
2011 test_exception_syntax ();
2012 test_template<double> tt (2.0);
2013 assert (tt.add (4) == 6.0);
2014 assert (true && !false);
2015 }
2016 '
2017
2018 # Test code for whether the C++ compiler supports C++11 (global declarations)
2019 ac_cxx_conftest_cxx11_globals='
2020 // Does the compiler advertise C++ 2011 conformance?
2021 #if !defined __cplusplus || __cplusplus < 201103L
2022 # error "Compiler does not advertise C++11 conformance"
2023 #endif
2024
2025 namespace cxx11test
2026 {
2027 constexpr int get_val() { return 20; }
2028
2029 struct testinit
2030 {
2031 int i;
2032 double d;
2033 };
2034
2035 class delegate
2036 {
2037 public:
2038 delegate(int n) : n(n) {}
2039 delegate(): delegate(2354) {}
2040
2041 virtual int getval() { return this->n; };
2042 protected:
2043 int n;
2044 };
2045
2046 class overridden : public delegate
2047 {
2048 public:
2049 overridden(int n): delegate(n) {}
2050 virtual int getval() override final { return this->n * 2; }
2051 };
2052
2053 class nocopy
2054 {
2055 public:
2056 nocopy(int i): i(i) {}
2057 nocopy() = default;
2058 nocopy(const nocopy&) = delete;
2059 nocopy & operator=(const nocopy&) = delete;
2060 private:
2061 int i;
2062 };
2063
2064 // for testing lambda expressions
2065 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2066 {
2067 return f(v);
2068 }
2069
2070 // for testing variadic templates and trailing return types
2071 template <typename V> auto sum(V first) -> V
2072 {
2073 return first;
2074 }
2075 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2076 {
2077 return first + sum(rest...);
2078 }
2079 }
2080 '
2081
2082 # Test code for whether the C++ compiler supports C++11 (body of main)
2083 ac_cxx_conftest_cxx11_main='
2084 {
2085 // Test auto and decltype
2086 auto a1 = 6538;
2087 auto a2 = 48573953.4;
2088 auto a3 = "String literal";
2089
2090 int total = 0;
2091 for (auto i = a3; *i; ++i) { total += *i; }
2092
2093 decltype(a2) a4 = 34895.034;
2094 }
2095 {
2096 // Test constexpr
2097 short sa[cxx11test::get_val()] = { 0 };
2098 }
2099 {
2100 // Test initializer lists
2101 cxx11test::testinit il = { 4323, 435234.23544 };
2102 }
2103 {
2104 // Test range-based for
2105 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2106 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2107 for (auto &x : array) { x += 23; }
2108 }
2109 {
2110 // Test lambda expressions
2111 using cxx11test::eval;
2112 assert (eval ([](int x) { return x*2; }, 21) == 42);
2113 double d = 2.0;
2114 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2115 assert (d == 5.0);
2116 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2117 assert (d == 5.0);
2118 }
2119 {
2120 // Test use of variadic templates
2121 using cxx11test::sum;
2122 auto a = sum(1);
2123 auto b = sum(1, 2);
2124 auto c = sum(1.0, 2.0, 3.0);
2125 }
2126 {
2127 // Test constructor delegation
2128 cxx11test::delegate d1;
2129 cxx11test::delegate d2();
2130 cxx11test::delegate d3(45);
2131 }
2132 {
2133 // Test override and final
2134 cxx11test::overridden o1(55464);
2135 }
2136 {
2137 // Test nullptr
2138 char *c = nullptr;
2139 }
2140 {
2141 // Test template brackets
2142 test_template<::test_template<int>> v(test_template<int>(12));
2143 }
2144 {
2145 // Unicode literals
2146 char const *utf8 = u8"UTF-8 string \u2500";
2147 char16_t const *utf16 = u"UTF-8 string \u2500";
2148 char32_t const *utf32 = U"UTF-32 string \u2500";
2149 }
2150 '
2151
2152 # Test code for whether the C compiler supports C++11 (complete).
2153 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2154 ${ac_cxx_conftest_cxx11_globals}
2155
2156 int
2157 main (int argc, char **argv)
2158 {
2159 int ok = 0;
2160 ${ac_cxx_conftest_cxx98_main}
2161 ${ac_cxx_conftest_cxx11_main}
2162 return ok;
2163 }
2164 "
2165
2166 # Test code for whether the C compiler supports C++98 (complete).
2167 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2168 int
2169 main (int argc, char **argv)
2170 {
2171 int ok = 0;
2172 ${ac_cxx_conftest_cxx98_main}
2173 return ok;
2174 }
2175 "
2176
2177 # Test code for whether the C compiler supports C89 (global declarations)
2178 ac_c_conftest_c89_globals='
2179 /* Does the compiler advertise C89 conformance?
2180 Do not test the value of __STDC__, because some compilers set it to 0
2181 while being otherwise adequately conformant. */
2182 #if !defined __STDC__
2183 # error "Compiler does not advertise C89 conformance"
2184 #endif
2185
2186 #include <stddef.h>
2187 #include <stdarg.h>
2188 struct stat;
2189 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2190 struct buf { int x; };
2191 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2192 static char *e (p, i)
2193 char **p;
2194 int i;
2195 {
2196 return p[i];
2197 }
2198 static char *f (char * (*g) (char **, int), char **p, ...)
2199 {
2200 char *s;
2201 va_list v;
2202 va_start (v,p);
2203 s = g (p, va_arg (v,int));
2204 va_end (v);
2205 return s;
2206 }
2207
2208 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2209 function prototypes and stuff, but not \xHH hex character constants.
2210 These do not provoke an error unfortunately, instead are silently treated
2211 as an "x". The following induces an error, until -std is added to get
2212 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2213 array size at least. It is necessary to write \x00 == 0 to get something
2214 that is true only with -std. */
2215 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2216
2217 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2218 inside strings and character constants. */
2219 #define FOO(x) '\''x'\''
2220 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2221
2222 int test (int i, double x);
2223 struct s1 {int (*f) (int a);};
2224 struct s2 {int (*f) (double a);};
2225 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2226 int, int);'
2227
2228 # Test code for whether the C compiler supports C89 (body of main).
2229 ac_c_conftest_c89_main='
2230 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2231 '
2232
2233 # Test code for whether the C compiler supports C99 (global declarations)
2234 ac_c_conftest_c99_globals='
2235 // Does the compiler advertise C99 conformance?
2236 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2237 # error "Compiler does not advertise C99 conformance"
2238 #endif
2239
2240 #include <stdbool.h>
2241 extern int puts (const char *);
2242 extern int printf (const char *, ...);
2243 extern int dprintf (int, const char *, ...);
2244 extern void *malloc (size_t);
2245
2246 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2247 // dprintf is used instead of fprintf to avoid needing to declare
2248 // FILE and stderr.
2249 #define debug(...) dprintf (2, __VA_ARGS__)
2250 #define showlist(...) puts (#__VA_ARGS__)
2251 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2252 static void
2253 test_varargs_macros (void)
2254 {
2255 int x = 1234;
2256 int y = 5678;
2257 debug ("Flag");
2258 debug ("X = %d\n", x);
2259 showlist (The first, second, and third items.);
2260 report (x>y, "x is %d but y is %d", x, y);
2261 }
2262
2263 // Check long long types.
2264 #define BIG64 18446744073709551615ull
2265 #define BIG32 4294967295ul
2266 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2267 #if !BIG_OK
2268 #error "your preprocessor is broken"
2269 #endif
2270 #if BIG_OK
2271 #else
2272 #error "your preprocessor is broken"
2273 #endif
2274 static long long int bignum = -9223372036854775807LL;
2275 static unsigned long long int ubignum = BIG64;
2276
2277 struct incomplete_array
2278 {
2279 int datasize;
2280 double data[];
2281 };
2282
2283 struct named_init {
2284 int number;
2285 const wchar_t *name;
2286 double average;
2287 };
2288
2289 typedef const char *ccp;
2290
2291 static inline int
2292 test_restrict (ccp restrict text)
2293 {
2294 // See if C++-style comments work.
2295 // Iterate through items via the restricted pointer.
2296 // Also check for declarations in for loops.
2297 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2298 continue;
2299 return 0;
2300 }
2301
2302 // Check varargs and va_copy.
2303 static bool
2304 test_varargs (const char *format, ...)
2305 {
2306 va_list args;
2307 va_start (args, format);
2308 va_list args_copy;
2309 va_copy (args_copy, args);
2310
2311 const char *str = "";
2312 int number = 0;
2313 float fnumber = 0;
2314
2315 while (*format)
2316 {
2317 switch (*format++)
2318 {
2319 case '\''s'\'': // string
2320 str = va_arg (args_copy, const char *);
2321 break;
2322 case '\''d'\'': // int
2323 number = va_arg (args_copy, int);
2324 break;
2325 case '\''f'\'': // float
2326 fnumber = va_arg (args_copy, double);
2327 break;
2328 default:
2329 break;
2330 }
2331 }
2332 va_end (args_copy);
2333 va_end (args);
2334
2335 return *str && number && fnumber;
2336 }
2337 '
2338
2339 # Test code for whether the C compiler supports C99 (body of main).
2340 ac_c_conftest_c99_main='
2341 // Check bool.
2342 _Bool success = false;
2343 success |= (argc != 0);
2344
2345 // Check restrict.
2346 if (test_restrict ("String literal") == 0)
2347 success = true;
2348 char *restrict newvar = "Another string";
2349
2350 // Check varargs.
2351 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2352 test_varargs_macros ();
2353
2354 // Check flexible array members.
2355 struct incomplete_array *ia =
2356 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2357 ia->datasize = 10;
2358 for (int i = 0; i < ia->datasize; ++i)
2359 ia->data[i] = i * 1.234;
2360
2361 // Check named initializers.
2362 struct named_init ni = {
2363 .number = 34,
2364 .name = L"Test wide string",
2365 .average = 543.34343,
2366 };
2367
2368 ni.number = 58;
2369
2370 int dynamic_array[ni.number];
2371 dynamic_array[0] = argv[0][0];
2372 dynamic_array[ni.number - 1] = 543;
2373
2374 // work around unused variable warnings
2375 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2376 || dynamic_array[ni.number - 1] != 543);
2377 '
2378
2379 # Test code for whether the C compiler supports C11 (global declarations)
2380 ac_c_conftest_c11_globals='
2381 // Does the compiler advertise C11 conformance?
2382 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2383 # error "Compiler does not advertise C11 conformance"
2384 #endif
2385
2386 // Check _Alignas.
2387 char _Alignas (double) aligned_as_double;
2388 char _Alignas (0) no_special_alignment;
2389 extern char aligned_as_int;
2390 char _Alignas (0) _Alignas (int) aligned_as_int;
2391
2392 // Check _Alignof.
2393 enum
2394 {
2395 int_alignment = _Alignof (int),
2396 int_array_alignment = _Alignof (int[100]),
2397 char_alignment = _Alignof (char)
2398 };
2399 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2400
2401 // Check _Noreturn.
2402 int _Noreturn does_not_return (void) { for (;;) continue; }
2403
2404 // Check _Static_assert.
2405 struct test_static_assert
2406 {
2407 int x;
2408 _Static_assert (sizeof (int) <= sizeof (long int),
2409 "_Static_assert does not work in struct");
2410 long int y;
2411 };
2412
2413 // Check UTF-8 literals.
2414 #define u8 syntax error!
2415 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2416
2417 // Check duplicate typedefs.
2418 typedef long *long_ptr;
2419 typedef long int *long_ptr;
2420 typedef long_ptr long_ptr;
2421
2422 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2423 struct anonymous
2424 {
2425 union {
2426 struct { int i; int j; };
2427 struct { int k; long int l; } w;
2428 };
2429 int m;
2430 } v1;
2431 '
2432
2433 # Test code for whether the C compiler supports C11 (body of main).
2434 ac_c_conftest_c11_main='
2435 _Static_assert ((offsetof (struct anonymous, i)
2436 == offsetof (struct anonymous, w.k)),
2437 "Anonymous union alignment botch");
2438 v1.i = 2;
2439 v1.w.k = 5;
2440 ok |= v1.i != 5;
2441 '
2442
2443 # Test code for whether the C compiler supports C11 (complete).
2444 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2445 ${ac_c_conftest_c99_globals}
2446 ${ac_c_conftest_c11_globals}
2447
2448 int
2449 main (int argc, char **argv)
2450 {
2451 int ok = 0;
2452 ${ac_c_conftest_c89_main}
2453 ${ac_c_conftest_c99_main}
2454 ${ac_c_conftest_c11_main}
2455 return ok;
2456 }
2457 "
2458
2459 # Test code for whether the C compiler supports C99 (complete).
2460 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2461 ${ac_c_conftest_c99_globals}
2462
2463 int
2464 main (int argc, char **argv)
2465 {
2466 int ok = 0;
2467 ${ac_c_conftest_c89_main}
2468 ${ac_c_conftest_c99_main}
2469 return ok;
2470 }
2471 "
2472
2473 # Test code for whether the C compiler supports C89 (complete).
2474 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2475
2476 int
2477 main (int argc, char **argv)
2478 {
2479 int ok = 0;
2480 ${ac_c_conftest_c89_main}
2481 return ok;
2482 }
2483 "
2484
2485 as_fn_append ac_header_cxx_list " stdio.h stdio_h HAVE_STDIO_H"
2486 as_fn_append ac_header_cxx_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2487 as_fn_append ac_header_cxx_list " string.h string_h HAVE_STRING_H"
2488 as_fn_append ac_header_cxx_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2489 as_fn_append ac_header_cxx_list " stdint.h stdint_h HAVE_STDINT_H"
2490 as_fn_append ac_header_cxx_list " strings.h strings_h HAVE_STRINGS_H"
2491 as_fn_append ac_header_cxx_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2492 as_fn_append ac_header_cxx_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2493 as_fn_append ac_header_cxx_list " unistd.h unistd_h HAVE_UNISTD_H"
2494
2495 # Auxiliary files required by this configure script.
2496 ac_aux_files="compile missing install-sh"
2497
2498 # Locations in which to look for auxiliary files.
2499 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2500
2501 # Search for a directory containing all of the required auxiliary files,
2502 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2503 # If we don't find one directory that contains all the files we need,
2504 # we report the set of missing files from the *first* directory in
2505 # $ac_aux_dir_candidates and give up.
2506 ac_missing_aux_files=""
2507 ac_first_candidate=:
2508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 as_found=false
2511 for as_dir in $ac_aux_dir_candidates
2512 do
2513 IFS=$as_save_IFS
2514 case $as_dir in #(((
2515 '') as_dir=./ ;;
2516 */) ;;
2517 *) as_dir=$as_dir/ ;;
2518 esac
2519 as_found=:
2520
2521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2522 ac_aux_dir_found=yes
2523 ac_install_sh=
2524 for ac_aux in $ac_aux_files
2525 do
2526 # As a special case, if "install-sh" is required, that requirement
2527 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2528 # and $ac_install_sh is set appropriately for whichever one is found.
2529 if test x"$ac_aux" = x"install-sh"
2530 then
2531 if test -f "${as_dir}install-sh"; then
2532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2533 ac_install_sh="${as_dir}install-sh -c"
2534 elif test -f "${as_dir}install.sh"; then
2535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2536 ac_install_sh="${as_dir}install.sh -c"
2537 elif test -f "${as_dir}shtool"; then
2538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2539 ac_install_sh="${as_dir}shtool install -c"
2540 else
2541 ac_aux_dir_found=no
2542 if $ac_first_candidate; then
2543 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2544 else
2545 break
2546 fi
2547 fi
2548 else
2549 if test -f "${as_dir}${ac_aux}"; then
2550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2551 else
2552 ac_aux_dir_found=no
2553 if $ac_first_candidate; then
2554 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2555 else
2556 break
2557 fi
2558 fi
2559 fi
2560 done
2561 if test "$ac_aux_dir_found" = yes; then
2562 ac_aux_dir="$as_dir"
2563 break
2564 fi
2565 ac_first_candidate=false
2566
2567 as_found=false
2568 done
2569 IFS=$as_save_IFS
2570 if $as_found
2571 then :
2572
2573 else $as_nop
2574 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2575 fi
2576
2577
2578 # These three variables are undocumented and unsupported,
2579 # and are intended to be withdrawn in a future Autoconf release.
2580 # They can cause serious problems if a builder's source tree is in a directory
2581 # whose full name contains unusual characters.
2582 if test -f "${ac_aux_dir}config.guess"; then
2583 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2584 fi
2585 if test -f "${ac_aux_dir}config.sub"; then
2586 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2587 fi
2588 if test -f "$ac_aux_dir/configure"; then
2589 ac_configure="$SHELL ${ac_aux_dir}configure"
2590 fi
2591
2592 # Check that the precious variables saved in the cache have kept the same
2593 # value.
2594 ac_cache_corrupted=false
2595 for ac_var in $ac_precious_vars; do
2596 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2597 eval ac_new_set=\$ac_env_${ac_var}_set
2598 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2599 eval ac_new_val=\$ac_env_${ac_var}_value
2600 case $ac_old_set,$ac_new_set in
2601 set,)
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2603 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2604 ac_cache_corrupted=: ;;
2605 ,set)
2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2607 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2608 ac_cache_corrupted=: ;;
2609 ,);;
2610 *)
2611 if test "x$ac_old_val" != "x$ac_new_val"; then
2612 # differences in whitespace do not lead to failure.
2613 ac_old_val_w=`echo x $ac_old_val`
2614 ac_new_val_w=`echo x $ac_new_val`
2615 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2617 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2618 ac_cache_corrupted=:
2619 else
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2621 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2622 eval $ac_var=\$ac_old_val
2623 fi
2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2625 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2627 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2628 fi;;
2629 esac
2630 # Pass precious variables to config.status.
2631 if test "$ac_new_set" = set; then
2632 case $ac_new_val in
2633 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2634 *) ac_arg=$ac_var=$ac_new_val ;;
2635 esac
2636 case " $ac_configure_args " in
2637 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2638 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2639 esac
2640 fi
2641 done
2642 if $ac_cache_corrupted; then
2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2644 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2646 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2647 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2648 and start over" "$LINENO" 5
2649 fi
2650 ## -------------------- ##
2651 ## Main body of script. ##
2652 ## -------------------- ##
2653
2654 ac_ext=c
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660
2661
2662 am__api_version='1.16'
2663
2664
2665
2666 # Find a good install program. We prefer a C program (faster),
2667 # so one script is as good as another. But avoid the broken or
2668 # incompatible versions:
2669 # SysV /etc/install, /usr/sbin/install
2670 # SunOS /usr/etc/install
2671 # IRIX /sbin/install
2672 # AIX /bin/install
2673 # AmigaOS /C/install, which installs bootblocks on floppy discs
2674 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2675 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2676 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2677 # OS/2's system install, which has a completely different semantic
2678 # ./install, which can be erroneously created by make from ./install.sh.
2679 # Reject install programs that cannot install multiple files.
2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2681 printf %s "checking for a BSD-compatible install... " >&6; }
2682 if test -z "$INSTALL"; then
2683 if test ${ac_cv_path_install+y}
2684 then :
2685 printf %s "(cached) " >&6
2686 else $as_nop
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 case $as_dir in #(((
2692 '') as_dir=./ ;;
2693 */) ;;
2694 *) as_dir=$as_dir/ ;;
2695 esac
2696 # Account for fact that we put trailing slashes in our PATH walk.
2697 case $as_dir in #((
2698 ./ | /[cC]/* | \
2699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2700 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2701 /usr/ucb/* ) ;;
2702 *)
2703 # OSF1 and SCO ODT 3.0 have their own names for install.
2704 # Don't use installbsd from OSF since it installs stuff as root
2705 # by default.
2706 for ac_prog in ginstall scoinst install; do
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2709 if test $ac_prog = install &&
2710 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2711 # AIX install. It has an incompatible calling convention.
2712 :
2713 elif test $ac_prog = install &&
2714 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2715 # program-specific install script used by HP pwplus--don't use.
2716 :
2717 else
2718 rm -rf conftest.one conftest.two conftest.dir
2719 echo one > conftest.one
2720 echo two > conftest.two
2721 mkdir conftest.dir
2722 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2723 test -s conftest.one && test -s conftest.two &&
2724 test -s conftest.dir/conftest.one &&
2725 test -s conftest.dir/conftest.two
2726 then
2727 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2728 break 3
2729 fi
2730 fi
2731 fi
2732 done
2733 done
2734 ;;
2735 esac
2736
2737 done
2738 IFS=$as_save_IFS
2739
2740 rm -rf conftest.one conftest.two conftest.dir
2741
2742 fi
2743 if test ${ac_cv_path_install+y}; then
2744 INSTALL=$ac_cv_path_install
2745 else
2746 # As a last resort, use the slow shell script. Don't cache a
2747 # value for INSTALL within a source directory, because that will
2748 # break other packages using the cache if that directory is
2749 # removed, or if the value is a relative name.
2750 INSTALL=$ac_install_sh
2751 fi
2752 fi
2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2754 printf "%s\n" "$INSTALL" >&6; }
2755
2756 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2757 # It thinks the first close brace ends the variable substitution.
2758 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2759
2760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2761
2762 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2763
2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2765 printf %s "checking whether build environment is sane... " >&6; }
2766 # Reject unsafe characters in $srcdir or the absolute working directory
2767 # name. Accept space and tab only in the latter.
2768 am_lf='
2769 '
2770 case `pwd` in
2771 *[\\\"\#\$\&\'\`$am_lf]*)
2772 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2773 esac
2774 case $srcdir in
2775 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2776 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2777 esac
2778
2779 # Do 'set' in a subshell so we don't clobber the current shell's
2780 # arguments. Must try -L first in case configure is actually a
2781 # symlink; some systems play weird games with the mod time of symlinks
2782 # (eg FreeBSD returns the mod time of the symlink's containing
2783 # directory).
2784 if (
2785 am_has_slept=no
2786 for am_try in 1 2; do
2787 echo "timestamp, slept: $am_has_slept" > conftest.file
2788 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2789 if test "$*" = "X"; then
2790 # -L didn't work.
2791 set X `ls -t "$srcdir/configure" conftest.file`
2792 fi
2793 if test "$*" != "X $srcdir/configure conftest.file" \
2794 && test "$*" != "X conftest.file $srcdir/configure"; then
2795
2796 # If neither matched, then we have a broken ls. This can happen
2797 # if, for instance, CONFIG_SHELL is bash and it inherits a
2798 # broken ls alias from the environment. This has actually
2799 # happened. Such a system could not be considered "sane".
2800 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2801 alias in your environment" "$LINENO" 5
2802 fi
2803 if test "$2" = conftest.file || test $am_try -eq 2; then
2804 break
2805 fi
2806 # Just in case.
2807 sleep 1
2808 am_has_slept=yes
2809 done
2810 test "$2" = conftest.file
2811 )
2812 then
2813 # Ok.
2814 :
2815 else
2816 as_fn_error $? "newly created file is older than distributed files!
2817 Check your system clock" "$LINENO" 5
2818 fi
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2820 printf "%s\n" "yes" >&6; }
2821 # If we didn't sleep, we still need to ensure time stamps of config.status and
2822 # generated files are strictly newer.
2823 am_sleep_pid=
2824 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2825 ( sleep 1 ) &
2826 am_sleep_pid=$!
2827 fi
2828
2829 rm -f conftest.file
2830
2831 test "$program_prefix" != NONE &&
2832 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2833 # Use a double $ so make ignores it.
2834 test "$program_suffix" != NONE &&
2835 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2836 # Double any \ or $.
2837 # By default was `s,x,x', remove it if useless.
2838 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2839 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2840
2841
2842 # Expand $ac_aux_dir to an absolute path.
2843 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2844
2845
2846 if test x"${MISSING+set}" != xset; then
2847 MISSING="\${SHELL} '$am_aux_dir/missing'"
2848 fi
2849 # Use eval to expand $SHELL
2850 if eval "$MISSING --is-lightweight"; then
2851 am_missing_run="$MISSING "
2852 else
2853 am_missing_run=
2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2855 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2856 fi
2857
2858 if test x"${install_sh+set}" != xset; then
2859 case $am_aux_dir in
2860 *\ * | *\ *)
2861 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2862 *)
2863 install_sh="\${SHELL} $am_aux_dir/install-sh"
2864 esac
2865 fi
2866
2867 # Installed binaries are usually stripped using 'strip' when the user
2868 # run "make install-strip". However 'strip' might not be the right
2869 # tool to use in cross-compilation environments, therefore Automake
2870 # will honor the 'STRIP' environment variable to overrule this program.
2871 if test "$cross_compiling" != no; then
2872 if test -n "$ac_tool_prefix"; then
2873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2874 set dummy ${ac_tool_prefix}strip; ac_word=$2
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 printf %s "checking for $ac_word... " >&6; }
2877 if test ${ac_cv_prog_STRIP+y}
2878 then :
2879 printf %s "(cached) " >&6
2880 else $as_nop
2881 if test -n "$STRIP"; then
2882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887 IFS=$as_save_IFS
2888 case $as_dir in #(((
2889 '') as_dir=./ ;;
2890 */) ;;
2891 *) as_dir=$as_dir/ ;;
2892 esac
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899 done
2900 done
2901 IFS=$as_save_IFS
2902
2903 fi
2904 fi
2905 STRIP=$ac_cv_prog_STRIP
2906 if test -n "$STRIP"; then
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2908 printf "%s\n" "$STRIP" >&6; }
2909 else
2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 printf "%s\n" "no" >&6; }
2912 fi
2913
2914
2915 fi
2916 if test -z "$ac_cv_prog_STRIP"; then
2917 ac_ct_STRIP=$STRIP
2918 # Extract the first word of "strip", so it can be a program name with args.
2919 set dummy strip; ac_word=$2
2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 printf %s "checking for $ac_word... " >&6; }
2922 if test ${ac_cv_prog_ac_ct_STRIP+y}
2923 then :
2924 printf %s "(cached) " >&6
2925 else $as_nop
2926 if test -n "$ac_ct_STRIP"; then
2927 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932 IFS=$as_save_IFS
2933 case $as_dir in #(((
2934 '') as_dir=./ ;;
2935 */) ;;
2936 *) as_dir=$as_dir/ ;;
2937 esac
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2940 ac_cv_prog_ac_ct_STRIP="strip"
2941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2942 break 2
2943 fi
2944 done
2945 done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2951 if test -n "$ac_ct_STRIP"; then
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2953 printf "%s\n" "$ac_ct_STRIP" >&6; }
2954 else
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 printf "%s\n" "no" >&6; }
2957 fi
2958
2959 if test "x$ac_ct_STRIP" = x; then
2960 STRIP=":"
2961 else
2962 case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966 ac_tool_warned=yes ;;
2967 esac
2968 STRIP=$ac_ct_STRIP
2969 fi
2970 else
2971 STRIP="$ac_cv_prog_STRIP"
2972 fi
2973
2974 fi
2975 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2976
2977
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2979 printf %s "checking for a race-free mkdir -p... " >&6; }
2980 if test -z "$MKDIR_P"; then
2981 if test ${ac_cv_path_mkdir+y}
2982 then :
2983 printf %s "(cached) " >&6
2984 else $as_nop
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2987 do
2988 IFS=$as_save_IFS
2989 case $as_dir in #(((
2990 '') as_dir=./ ;;
2991 */) ;;
2992 *) as_dir=$as_dir/ ;;
2993 esac
2994 for ac_prog in mkdir gmkdir; do
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2997 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2998 'mkdir ('*'coreutils) '* | \
2999 'BusyBox '* | \
3000 'mkdir (fileutils) '4.1*)
3001 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3002 break 3;;
3003 esac
3004 done
3005 done
3006 done
3007 IFS=$as_save_IFS
3008
3009 fi
3010
3011 test -d ./--version && rmdir ./--version
3012 if test ${ac_cv_path_mkdir+y}; then
3013 MKDIR_P="$ac_cv_path_mkdir -p"
3014 else
3015 # As a last resort, use the slow shell script. Don't cache a
3016 # value for MKDIR_P within a source directory, because that will
3017 # break other packages using the cache if that directory is
3018 # removed, or if the value is a relative name.
3019 MKDIR_P="$ac_install_sh -d"
3020 fi
3021 fi
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3023 printf "%s\n" "$MKDIR_P" >&6; }
3024
3025 for ac_prog in gawk mawk nawk awk
3026 do
3027 # Extract the first word of "$ac_prog", so it can be a program name with args.
3028 set dummy $ac_prog; ac_word=$2
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 printf %s "checking for $ac_word... " >&6; }
3031 if test ${ac_cv_prog_AWK+y}
3032 then :
3033 printf %s "(cached) " >&6
3034 else $as_nop
3035 if test -n "$AWK"; then
3036 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041 IFS=$as_save_IFS
3042 case $as_dir in #(((
3043 '') as_dir=./ ;;
3044 */) ;;
3045 *) as_dir=$as_dir/ ;;
3046 esac
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_AWK="$ac_prog"
3050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi
3058 fi
3059 AWK=$ac_cv_prog_AWK
3060 if test -n "$AWK"; then
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3062 printf "%s\n" "$AWK" >&6; }
3063 else
3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 printf "%s\n" "no" >&6; }
3066 fi
3067
3068
3069 test -n "$AWK" && break
3070 done
3071
3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3073 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3074 set x ${MAKE-make}
3075 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3076 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3077 then :
3078 printf %s "(cached) " >&6
3079 else $as_nop
3080 cat >conftest.make <<\_ACEOF
3081 SHELL = /bin/sh
3082 all:
3083 @echo '@@@%%%=$(MAKE)=@@@%%%'
3084 _ACEOF
3085 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3086 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3087 *@@@%%%=?*=@@@%%%*)
3088 eval ac_cv_prog_make_${ac_make}_set=yes;;
3089 *)
3090 eval ac_cv_prog_make_${ac_make}_set=no;;
3091 esac
3092 rm -f conftest.make
3093 fi
3094 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096 printf "%s\n" "yes" >&6; }
3097 SET_MAKE=
3098 else
3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 printf "%s\n" "no" >&6; }
3101 SET_MAKE="MAKE=${MAKE-make}"
3102 fi
3103
3104 rm -rf .tst 2>/dev/null
3105 mkdir .tst 2>/dev/null
3106 if test -d .tst; then
3107 am__leading_dot=.
3108 else
3109 am__leading_dot=_
3110 fi
3111 rmdir .tst 2>/dev/null
3112
3113 # Check whether --enable-silent-rules was given.
3114 if test ${enable_silent_rules+y}
3115 then :
3116 enableval=$enable_silent_rules;
3117 fi
3118
3119 case $enable_silent_rules in # (((
3120 yes) AM_DEFAULT_VERBOSITY=0;;
3121 no) AM_DEFAULT_VERBOSITY=1;;
3122 *) AM_DEFAULT_VERBOSITY=1;;
3123 esac
3124 am_make=${MAKE-make}
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3126 printf %s "checking whether $am_make supports nested variables... " >&6; }
3127 if test ${am_cv_make_support_nested_variables+y}
3128 then :
3129 printf %s "(cached) " >&6
3130 else $as_nop
3131 if printf "%s\n" 'TRUE=$(BAR$(V))
3132 BAR0=false
3133 BAR1=true
3134 V=1
3135 am__doit:
3136 @$(TRUE)
3137 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3138 am_cv_make_support_nested_variables=yes
3139 else
3140 am_cv_make_support_nested_variables=no
3141 fi
3142 fi
3143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3144 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3145 if test $am_cv_make_support_nested_variables = yes; then
3146 AM_V='$(V)'
3147 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3148 else
3149 AM_V=$AM_DEFAULT_VERBOSITY
3150 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3151 fi
3152 AM_BACKSLASH='\'
3153
3154 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3155 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3156 # is not polluted with repeated "-I."
3157 am__isrc=' -I$(srcdir)'
3158 # test to see if srcdir already configured
3159 if test -f $srcdir/config.status; then
3160 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3161 fi
3162 fi
3163
3164 # test whether we have cygpath
3165 if test -z "$CYGPATH_W"; then
3166 if (cygpath --version) >/dev/null 2>/dev/null; then
3167 CYGPATH_W='cygpath -w'
3168 else
3169 CYGPATH_W=echo
3170 fi
3171 fi
3172
3173
3174 # Define the identity of the package.
3175 PACKAGE='monopd'
3176 VERSION='0.10.4'
3177
3178
3179 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3180
3181
3182 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3183
3184 # Some tools Automake needs.
3185
3186 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3187
3188
3189 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3190
3191
3192 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3193
3194
3195 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3196
3197
3198 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3199
3200 # For better backward compatibility. To be removed once Automake 1.9.x
3201 # dies out for good. For more background, see:
3202 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3203 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3204 mkdir_p='$(MKDIR_P)'
3205
3206 # We need awk for the "check" target (and possibly the TAP driver). The
3207 # system "awk" is bad on some platforms.
3208 # Always define AMTAR for backward compatibility. Yes, it's still used
3209 # in the wild :-( We should find a proper way to deprecate it ...
3210 AMTAR='$${TAR-tar}'
3211
3212
3213 # We'll loop over all known methods to create a tar archive until one works.
3214 _am_tools='gnutar pax cpio none'
3215
3216 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3217
3218
3219
3220
3221
3222 # Variables for tags utilities; see am/tags.am
3223 if test -z "$CTAGS"; then
3224 CTAGS=ctags
3225 fi
3226
3227 if test -z "$ETAGS"; then
3228 ETAGS=etags
3229 fi
3230
3231 if test -z "$CSCOPE"; then
3232 CSCOPE=cscope
3233 fi
3234
3235
3236
3237 # POSIX will say in a future version that running "rm -f" with no argument
3238 # is OK; and we want to be able to make that assumption in our Makefile
3239 # recipes. So use an aggressive probe to check that the usage we want is
3240 # actually supported "in the wild" to an acceptable degree.
3241 # See automake bug#10828.
3242 # To make any issue more visible, cause the running configure to be aborted
3243 # by default if the 'rm' program in use doesn't match our expectations; the
3244 # user can still override this though.
3245 if rm -f && rm -fr && rm -rf; then : OK; else
3246 cat >&2 <<'END'
3247 Oops!
3248
3249 Your 'rm' program seems unable to run without file operands specified
3250 on the command line, even when the '-f' option is present. This is contrary
3251 to the behaviour of most rm programs out there, and not conforming with
3252 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3253
3254 Please tell [email protected] about your system, including the value
3255 of your $PATH and any error possibly output before this message. This
3256 can help us improve future automake versions.
3257
3258 END
3259 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3260 echo 'Configuration will proceed anyway, since you have set the' >&2
3261 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3262 echo >&2
3263 else
3264 cat >&2 <<'END'
3265 Aborting the configuration process, to ensure you take notice of the issue.
3266
3267 You can download and install GNU coreutils to get an 'rm' implementation
3268 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3269
3270 If you want to complete the configuration process using your problematic
3271 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3272 to "yes", and re-run configure.
3273
3274 END
3275 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3276 fi
3277 fi
3278
3279 ac_config_headers="$ac_config_headers config.h"
3280
3281 ac_ext=cpp
3282 ac_cpp='$CXXCPP $CPPFLAGS'
3283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3286
3287
3288 # Checks for programs.
3289
3290
3291
3292
3293
3294
3295 DEPDIR="${am__leading_dot}deps"
3296
3297 ac_config_commands="$ac_config_commands depfiles"
3298
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3300 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3301 cat > confinc.mk << 'END'
3302 am__doit:
3303 @echo this is the am__doit target >confinc.out
3304 .PHONY: am__doit
3305 END
3306 am__include="#"
3307 am__quote=
3308 # BSD make does it like this.
3309 echo '.include "confinc.mk" # ignored' > confmf.BSD
3310 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3311 echo 'include confinc.mk # ignored' > confmf.GNU
3312 _am_result=no
3313 for s in GNU BSD; do
3314 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3315 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }
3319 case $?:`cat confinc.out 2>/dev/null` in #(
3320 '0:this is the am__doit target') :
3321 case $s in #(
3322 BSD) :
3323 am__include='.include' am__quote='"' ;; #(
3324 *) :
3325 am__include='include' am__quote='' ;;
3326 esac ;; #(
3327 *) :
3328 ;;
3329 esac
3330 if test "$am__include" != "#"; then
3331 _am_result="yes ($s style)"
3332 break
3333 fi
3334 done
3335 rm -f confinc.* confmf.*
3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3337 printf "%s\n" "${_am_result}" >&6; }
3338
3339 # Check whether --enable-dependency-tracking was given.
3340 if test ${enable_dependency_tracking+y}
3341 then :
3342 enableval=$enable_dependency_tracking;
3343 fi
3344
3345 if test "x$enable_dependency_tracking" != xno; then
3346 am_depcomp="$ac_aux_dir/depcomp"
3347 AMDEPBACKSLASH='\'
3348 am__nodep='_no'
3349 fi
3350 if test "x$enable_dependency_tracking" != xno; then
3351 AMDEP_TRUE=
3352 AMDEP_FALSE='#'
3353 else
3354 AMDEP_TRUE='#'
3355 AMDEP_FALSE=
3356 fi
3357
3358
3359 ac_ext=cpp
3360 ac_cpp='$CXXCPP $CPPFLAGS'
3361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3364 if test -z "$CXX"; then
3365 if test -n "$CCC"; then
3366 CXX=$CCC
3367 else
3368 if test -n "$ac_tool_prefix"; then
3369 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3370 do
3371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3372 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 printf %s "checking for $ac_word... " >&6; }
3375 if test ${ac_cv_prog_CXX+y}
3376 then :
3377 printf %s "(cached) " >&6
3378 else $as_nop
3379 if test -n "$CXX"; then
3380 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3384 do
3385 IFS=$as_save_IFS
3386 case $as_dir in #(((
3387 '') as_dir=./ ;;
3388 */) ;;
3389 *) as_dir=$as_dir/ ;;
3390 esac
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3395 break 2
3396 fi
3397 done
3398 done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 CXX=$ac_cv_prog_CXX
3404 if test -n "$CXX"; then
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3406 printf "%s\n" "$CXX" >&6; }
3407 else
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 printf "%s\n" "no" >&6; }
3410 fi
3411
3412
3413 test -n "$CXX" && break
3414 done
3415 fi
3416 if test -z "$CXX"; then
3417 ac_ct_CXX=$CXX
3418 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3419 do
3420 # Extract the first word of "$ac_prog", so it can be a program name with args.
3421 set dummy $ac_prog; ac_word=$2
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 printf %s "checking for $ac_word... " >&6; }
3424 if test ${ac_cv_prog_ac_ct_CXX+y}
3425 then :
3426 printf %s "(cached) " >&6
3427 else $as_nop
3428 if test -n "$ac_ct_CXX"; then
3429 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434 IFS=$as_save_IFS
3435 case $as_dir in #(((
3436 '') as_dir=./ ;;
3437 */) ;;
3438 *) as_dir=$as_dir/ ;;
3439 esac
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_ac_ct_CXX="$ac_prog"
3443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446 done
3447 done
3448 IFS=$as_save_IFS
3449
3450 fi
3451 fi
3452 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3453 if test -n "$ac_ct_CXX"; then
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3455 printf "%s\n" "$ac_ct_CXX" >&6; }
3456 else
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 printf "%s\n" "no" >&6; }
3459 fi
3460
3461
3462 test -n "$ac_ct_CXX" && break
3463 done
3464
3465 if test "x$ac_ct_CXX" = x; then
3466 CXX="g++"
3467 else
3468 case $cross_compiling:$ac_tool_warned in
3469 yes:)
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3471 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3472 ac_tool_warned=yes ;;
3473 esac
3474 CXX=$ac_ct_CXX
3475 fi
3476 fi
3477
3478 fi
3479 fi
3480 # Provide some information about the compiler.
3481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3482 set X $ac_compile
3483 ac_compiler=$2
3484 for ac_option in --version -v -V -qversion; do
3485 { { ac_try="$ac_compiler $ac_option >&5"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 printf "%s\n" "$ac_try_echo"; } >&5
3492 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3493 ac_status=$?
3494 if test -s conftest.err; then
3495 sed '10a\
3496 ... rest of stderr output deleted ...
3497 10q' conftest.err >conftest.er1
3498 cat conftest.er1 >&5
3499 fi
3500 rm -f conftest.er1 conftest.err
3501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }
3503 done
3504
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507
3508 int
3509 main (void)
3510 {
3511
3512 ;
3513 return 0;
3514 }
3515 _ACEOF
3516 ac_clean_files_save=$ac_clean_files
3517 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3518 # Try to create an executable without -o first, disregard a.out.
3519 # It will help us diagnose broken compilers, and finding out an intuition
3520 # of exeext.
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3522 printf %s "checking whether the C++ compiler works... " >&6; }
3523 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3524
3525 # The possible output files:
3526 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3527
3528 ac_rmfiles=
3529 for ac_file in $ac_files
3530 do
3531 case $ac_file in
3532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3533 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3534 esac
3535 done
3536 rm -f $ac_rmfiles
3537
3538 if { { ac_try="$ac_link_default"
3539 case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3542 esac
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 printf "%s\n" "$ac_try_echo"; } >&5
3545 (eval "$ac_link_default") 2>&5
3546 ac_status=$?
3547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548 test $ac_status = 0; }
3549 then :
3550 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3551 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3552 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3553 # so that the user can short-circuit this test for compilers unknown to
3554 # Autoconf.
3555 for ac_file in $ac_files ''
3556 do
3557 test -f "$ac_file" || continue
3558 case $ac_file in
3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3560 ;;
3561 [ab].out )
3562 # We found the default executable, but exeext='' is most
3563 # certainly right.
3564 break;;
3565 *.* )
3566 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3567 then :; else
3568 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3569 fi
3570 # We set ac_cv_exeext here because the later test for it is not
3571 # safe: cross compilers may not add the suffix if given an `-o'
3572 # argument, so we may need to know it at that point already.
3573 # Even if this section looks crufty: it has the advantage of
3574 # actually working.
3575 break;;
3576 * )
3577 break;;
3578 esac
3579 done
3580 test "$ac_cv_exeext" = no && ac_cv_exeext=
3581
3582 else $as_nop
3583 ac_file=''
3584 fi
3585 if test -z "$ac_file"
3586 then :
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 printf "%s\n" "no" >&6; }
3589 printf "%s\n" "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3594 as_fn_error 77 "C++ compiler cannot create executables
3595 See \`config.log' for more details" "$LINENO" 5; }
3596 else $as_nop
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3598 printf "%s\n" "yes" >&6; }
3599 fi
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3601 printf %s "checking for C++ compiler default output file name... " >&6; }
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3603 printf "%s\n" "$ac_file" >&6; }
3604 ac_exeext=$ac_cv_exeext
3605
3606 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3607 ac_clean_files=$ac_clean_files_save
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3609 printf %s "checking for suffix of executables... " >&6; }
3610 if { { ac_try="$ac_link"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616 printf "%s\n" "$ac_try_echo"; } >&5
3617 (eval "$ac_link") 2>&5
3618 ac_status=$?
3619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620 test $ac_status = 0; }
3621 then :
3622 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3623 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3624 # work properly (i.e., refer to `conftest.exe'), while it won't with
3625 # `rm'.
3626 for ac_file in conftest.exe conftest conftest.*; do
3627 test -f "$ac_file" || continue
3628 case $ac_file in
3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3630 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3631 break;;
3632 * ) break;;
3633 esac
3634 done
3635 else $as_nop
3636 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3639 See \`config.log' for more details" "$LINENO" 5; }
3640 fi
3641 rm -f conftest conftest$ac_cv_exeext
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3643 printf "%s\n" "$ac_cv_exeext" >&6; }
3644
3645 rm -f conftest.$ac_ext
3646 EXEEXT=$ac_cv_exeext
3647 ac_exeext=$EXEEXT
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3650 #include <stdio.h>
3651 int
3652 main (void)
3653 {
3654 FILE *f = fopen ("conftest.out", "w");
3655 return ferror (f) || fclose (f) != 0;
3656
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 ac_clean_files="$ac_clean_files conftest.out"
3662 # Check that the compiler produces executables we can run. If not, either
3663 # the compiler is broken, or we cross compile.
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3665 printf %s "checking whether we are cross compiling... " >&6; }
3666 if test "$cross_compiling" != yes; then
3667 { { ac_try="$ac_link"
3668 case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673 printf "%s\n" "$ac_try_echo"; } >&5
3674 (eval "$ac_link") 2>&5
3675 ac_status=$?
3676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }
3678 if { ac_try='./conftest$ac_cv_exeext'
3679 { { case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 printf "%s\n" "$ac_try_echo"; } >&5
3685 (eval "$ac_try") 2>&5
3686 ac_status=$?
3687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688 test $ac_status = 0; }; }; then
3689 cross_compiling=no
3690 else
3691 if test "$cross_compiling" = maybe; then
3692 cross_compiling=yes
3693 else
3694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3696 as_fn_error 77 "cannot run C++ compiled programs.
3697 If you meant to cross compile, use \`--host'.
3698 See \`config.log' for more details" "$LINENO" 5; }
3699 fi
3700 fi
3701 fi
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3703 printf "%s\n" "$cross_compiling" >&6; }
3704
3705 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3706 ac_clean_files=$ac_clean_files_save
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3708 printf %s "checking for suffix of object files... " >&6; }
3709 if test ${ac_cv_objext+y}
3710 then :
3711 printf %s "(cached) " >&6
3712 else $as_nop
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715
3716 int
3717 main (void)
3718 {
3719
3720 ;
3721 return 0;
3722 }
3723 _ACEOF
3724 rm -f conftest.o conftest.obj
3725 if { { ac_try="$ac_compile"
3726 case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729 esac
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 printf "%s\n" "$ac_try_echo"; } >&5
3732 (eval "$ac_compile") 2>&5
3733 ac_status=$?
3734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }
3736 then :
3737 for ac_file in conftest.o conftest.obj conftest.*; do
3738 test -f "$ac_file" || continue;
3739 case $ac_file in
3740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3741 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3742 break;;
3743 esac
3744 done
3745 else $as_nop
3746 printf "%s\n" "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3748
3749 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $? "cannot compute suffix of object files: cannot compile
3752 See \`config.log' for more details" "$LINENO" 5; }
3753 fi
3754 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3755 fi
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3757 printf "%s\n" "$ac_cv_objext" >&6; }
3758 OBJEXT=$ac_cv_objext
3759 ac_objext=$OBJEXT
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3761 printf %s "checking whether the compiler supports GNU C++... " >&6; }
3762 if test ${ac_cv_cxx_compiler_gnu+y}
3763 then :
3764 printf %s "(cached) " >&6
3765 else $as_nop
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768
3769 int
3770 main (void)
3771 {
3772 #ifndef __GNUC__
3773 choke me
3774 #endif
3775
3776 ;
3777 return 0;
3778 }
3779 _ACEOF
3780 if ac_fn_cxx_try_compile "$LINENO"
3781 then :
3782 ac_compiler_gnu=yes
3783 else $as_nop
3784 ac_compiler_gnu=no
3785 fi
3786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3787 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3788
3789 fi
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3791 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
3792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3793
3794 if test $ac_compiler_gnu = yes; then
3795 GXX=yes
3796 else
3797 GXX=
3798 fi
3799 ac_test_CXXFLAGS=${CXXFLAGS+y}
3800 ac_save_CXXFLAGS=$CXXFLAGS
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3802 printf %s "checking whether $CXX accepts -g... " >&6; }
3803 if test ${ac_cv_prog_cxx_g+y}
3804 then :
3805 printf %s "(cached) " >&6
3806 else $as_nop
3807 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3808 ac_cxx_werror_flag=yes
3809 ac_cv_prog_cxx_g=no
3810 CXXFLAGS="-g"
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3813
3814 int
3815 main (void)
3816 {
3817
3818 ;
3819 return 0;
3820 }
3821 _ACEOF
3822 if ac_fn_cxx_try_compile "$LINENO"
3823 then :
3824 ac_cv_prog_cxx_g=yes
3825 else $as_nop
3826 CXXFLAGS=""
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3829
3830 int
3831 main (void)
3832 {
3833
3834 ;
3835 return 0;
3836 }
3837 _ACEOF
3838 if ac_fn_cxx_try_compile "$LINENO"
3839 then :
3840
3841 else $as_nop
3842 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3843 CXXFLAGS="-g"
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846
3847 int
3848 main (void)
3849 {
3850
3851 ;
3852 return 0;
3853 }
3854 _ACEOF
3855 if ac_fn_cxx_try_compile "$LINENO"
3856 then :
3857 ac_cv_prog_cxx_g=yes
3858 fi
3859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3860 fi
3861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3862 fi
3863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3865 fi
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3867 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
3868 if test $ac_test_CXXFLAGS; then
3869 CXXFLAGS=$ac_save_CXXFLAGS
3870 elif test $ac_cv_prog_cxx_g = yes; then
3871 if test "$GXX" = yes; then
3872 CXXFLAGS="-g -O2"
3873 else
3874 CXXFLAGS="-g"
3875 fi
3876 else
3877 if test "$GXX" = yes; then
3878 CXXFLAGS="-O2"
3879 else
3880 CXXFLAGS=
3881 fi
3882 fi
3883 ac_prog_cxx_stdcxx=no
3884 if test x$ac_prog_cxx_stdcxx = xno
3885 then :
3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
3887 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
3888 if test ${ac_cv_prog_cxx_cxx11+y}
3889 then :
3890 printf %s "(cached) " >&6
3891 else $as_nop
3892 ac_cv_prog_cxx_cxx11=no
3893 ac_save_CXX=$CXX
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 $ac_cxx_conftest_cxx11_program
3897 _ACEOF
3898 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
3899 do
3900 CXX="$ac_save_CXX $ac_arg"
3901 if ac_fn_cxx_try_compile "$LINENO"
3902 then :
3903 ac_cv_prog_cxx_cxx11=$ac_arg
3904 fi
3905 rm -f core conftest.err conftest.$ac_objext conftest.beam
3906 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
3907 done
3908 rm -f conftest.$ac_ext
3909 CXX=$ac_save_CXX
3910 fi
3911
3912 if test "x$ac_cv_prog_cxx_cxx11" = xno
3913 then :
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3915 printf "%s\n" "unsupported" >&6; }
3916 else $as_nop
3917 if test "x$ac_cv_prog_cxx_cxx11" = x
3918 then :
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3920 printf "%s\n" "none needed" >&6; }
3921 else $as_nop
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
3923 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
3924 CXX="$CXX $ac_cv_prog_cxx_cxx11"
3925 fi
3926 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
3927 ac_prog_cxx_stdcxx=cxx11
3928 fi
3929 fi
3930 if test x$ac_prog_cxx_stdcxx = xno
3931 then :
3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
3933 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
3934 if test ${ac_cv_prog_cxx_cxx98+y}
3935 then :
3936 printf %s "(cached) " >&6
3937 else $as_nop
3938 ac_cv_prog_cxx_cxx98=no
3939 ac_save_CXX=$CXX
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3942 $ac_cxx_conftest_cxx98_program
3943 _ACEOF
3944 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
3945 do
3946 CXX="$ac_save_CXX $ac_arg"
3947 if ac_fn_cxx_try_compile "$LINENO"
3948 then :
3949 ac_cv_prog_cxx_cxx98=$ac_arg
3950 fi
3951 rm -f core conftest.err conftest.$ac_objext conftest.beam
3952 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
3953 done
3954 rm -f conftest.$ac_ext
3955 CXX=$ac_save_CXX
3956 fi
3957
3958 if test "x$ac_cv_prog_cxx_cxx98" = xno
3959 then :
3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3961 printf "%s\n" "unsupported" >&6; }
3962 else $as_nop
3963 if test "x$ac_cv_prog_cxx_cxx98" = x
3964 then :
3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3966 printf "%s\n" "none needed" >&6; }
3967 else $as_nop
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
3969 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
3970 CXX="$CXX $ac_cv_prog_cxx_cxx98"
3971 fi
3972 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
3973 ac_prog_cxx_stdcxx=cxx98
3974 fi
3975 fi
3976
3977 ac_ext=cpp
3978 ac_cpp='$CXXCPP $CPPFLAGS'
3979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3982
3983 depcc="$CXX" am_compiler_list=
3984
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3986 printf %s "checking dependency style of $depcc... " >&6; }
3987 if test ${am_cv_CXX_dependencies_compiler_type+y}
3988 then :
3989 printf %s "(cached) " >&6
3990 else $as_nop
3991 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3992 # We make a subdir and do the tests there. Otherwise we can end up
3993 # making bogus files that we don't know about and never remove. For
3994 # instance it was reported that on HP-UX the gcc test will end up
3995 # making a dummy file named 'D' -- because '-MD' means "put the output
3996 # in D".
3997 rm -rf conftest.dir
3998 mkdir conftest.dir
3999 # Copy depcomp to subdir because otherwise we won't find it if we're
4000 # using a relative directory.
4001 cp "$am_depcomp" conftest.dir
4002 cd conftest.dir
4003 # We will build objects and dependencies in a subdirectory because
4004 # it helps to detect inapplicable dependency modes. For instance
4005 # both Tru64's cc and ICC support -MD to output dependencies as a
4006 # side effect of compilation, but ICC will put the dependencies in
4007 # the current directory while Tru64 will put them in the object
4008 # directory.
4009 mkdir sub
4010
4011 am_cv_CXX_dependencies_compiler_type=none
4012 if test "$am_compiler_list" = ""; then
4013 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4014 fi
4015 am__universal=false
4016 case " $depcc " in #(
4017 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4018 esac
4019
4020 for depmode in $am_compiler_list; do
4021 # Setup a source with many dependencies, because some compilers
4022 # like to wrap large dependency lists on column 80 (with \), and
4023 # we should not choose a depcomp mode which is confused by this.
4024 #
4025 # We need to recreate these files for each test, as the compiler may
4026 # overwrite some of them when testing with obscure command lines.
4027 # This happens at least with the AIX C compiler.
4028 : > sub/conftest.c
4029 for i in 1 2 3 4 5 6; do
4030 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4031 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4032 # Solaris 10 /bin/sh.
4033 echo '/* dummy */' > sub/conftst$i.h
4034 done
4035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4036
4037 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4038 # mode. It turns out that the SunPro C++ compiler does not properly
4039 # handle '-M -o', and we need to detect this. Also, some Intel
4040 # versions had trouble with output in subdirs.
4041 am__obj=sub/conftest.${OBJEXT-o}
4042 am__minus_obj="-o $am__obj"
4043 case $depmode in
4044 gcc)
4045 # This depmode causes a compiler race in universal mode.
4046 test "$am__universal" = false || continue
4047 ;;
4048 nosideeffect)
4049 # After this tag, mechanisms are not by side-effect, so they'll
4050 # only be used when explicitly requested.
4051 if test "x$enable_dependency_tracking" = xyes; then
4052 continue
4053 else
4054 break
4055 fi
4056 ;;
4057 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4058 # This compiler won't grok '-c -o', but also, the minuso test has
4059 # not run yet. These depmodes are late enough in the game, and
4060 # so weak that their functioning should not be impacted.
4061 am__obj=conftest.${OBJEXT-o}
4062 am__minus_obj=
4063 ;;
4064 none) break ;;
4065 esac
4066 if depmode=$depmode \
4067 source=sub/conftest.c object=$am__obj \
4068 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4069 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4070 >/dev/null 2>conftest.err &&
4071 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4072 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4073 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4074 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4075 # icc doesn't choke on unknown options, it will just issue warnings
4076 # or remarks (even with -Werror). So we grep stderr for any message
4077 # that says an option was ignored or not supported.
4078 # When given -MP, icc 7.0 and 7.1 complain thusly:
4079 # icc: Command line warning: ignoring option '-M'; no argument required
4080 # The diagnosis changed in icc 8.0:
4081 # icc: Command line remark: option '-MP' not supported
4082 if (grep 'ignoring option' conftest.err ||
4083 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4084 am_cv_CXX_dependencies_compiler_type=$depmode
4085 break
4086 fi
4087 fi
4088 done
4089
4090 cd ..
4091 rm -rf conftest.dir
4092 else
4093 am_cv_CXX_dependencies_compiler_type=none
4094 fi
4095
4096 fi
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4098 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4099 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4100
4101 if
4102 test "x$enable_dependency_tracking" != xno \
4103 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4104 am__fastdepCXX_TRUE=
4105 am__fastdepCXX_FALSE='#'
4106 else
4107 am__fastdepCXX_TRUE='#'
4108 am__fastdepCXX_FALSE=
4109 fi
4110
4111
4112
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4114 printf %s "checking for library containing strerror... " >&6; }
4115 if test ${ac_cv_search_strerror+y}
4116 then :
4117 printf %s "(cached) " >&6
4118 else $as_nop
4119 ac_func_search_save_LIBS=$LIBS
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122
4123 namespace conftest {
4124 extern "C" int strerror ();
4125 }
4126 int
4127 main (void)
4128 {
4129 return conftest::strerror ();
4130 ;
4131 return 0;
4132 }
4133 _ACEOF
4134 for ac_lib in '' cposix
4135 do
4136 if test -z "$ac_lib"; then
4137 ac_res="none required"
4138 else
4139 ac_res=-l$ac_lib
4140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4141 fi
4142 if ac_fn_cxx_try_link "$LINENO"
4143 then :
4144 ac_cv_search_strerror=$ac_res
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4147 conftest$ac_exeext
4148 if test ${ac_cv_search_strerror+y}
4149 then :
4150 break
4151 fi
4152 done
4153 if test ${ac_cv_search_strerror+y}
4154 then :
4155
4156 else $as_nop
4157 ac_cv_search_strerror=no
4158 fi
4159 rm conftest.$ac_ext
4160 LIBS=$ac_func_search_save_LIBS
4161 fi
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4163 printf "%s\n" "$ac_cv_search_strerror" >&6; }
4164 ac_res=$ac_cv_search_strerror
4165 if test "$ac_res" != no
4166 then :
4167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4168
4169 fi
4170
4171 CFLAGS=$CFLAGS
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182 ac_ext=c
4183 ac_cpp='$CPP $CPPFLAGS'
4184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187 if test -n "$ac_tool_prefix"; then
4188 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4189 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 printf %s "checking for $ac_word... " >&6; }
4192 if test ${ac_cv_prog_CC+y}
4193 then :
4194 printf %s "(cached) " >&6
4195 else $as_nop
4196 if test -n "$CC"; then
4197 ac_cv_prog_CC="$CC" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202 IFS=$as_save_IFS
4203 case $as_dir in #(((
4204 '') as_dir=./ ;;
4205 */) ;;
4206 *) as_dir=$as_dir/ ;;
4207 esac
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4212 break 2
4213 fi
4214 done
4215 done
4216 IFS=$as_save_IFS
4217
4218 fi
4219 fi
4220 CC=$ac_cv_prog_CC
4221 if test -n "$CC"; then
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4223 printf "%s\n" "$CC" >&6; }
4224 else
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 printf "%s\n" "no" >&6; }
4227 fi
4228
4229
4230 fi
4231 if test -z "$ac_cv_prog_CC"; then
4232 ac_ct_CC=$CC
4233 # Extract the first word of "gcc", so it can be a program name with args.
4234 set dummy gcc; ac_word=$2
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 printf %s "checking for $ac_word... " >&6; }
4237 if test ${ac_cv_prog_ac_ct_CC+y}
4238 then :
4239 printf %s "(cached) " >&6
4240 else $as_nop
4241 if test -n "$ac_ct_CC"; then
4242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247 IFS=$as_save_IFS
4248 case $as_dir in #(((
4249 '') as_dir=./ ;;
4250 */) ;;
4251 *) as_dir=$as_dir/ ;;
4252 esac
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_ac_ct_CC="gcc"
4256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4257 break 2
4258 fi
4259 done
4260 done
4261 IFS=$as_save_IFS
4262
4263 fi
4264 fi
4265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4266 if test -n "$ac_ct_CC"; then
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4268 printf "%s\n" "$ac_ct_CC" >&6; }
4269 else
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 printf "%s\n" "no" >&6; }
4272 fi
4273
4274 if test "x$ac_ct_CC" = x; then
4275 CC=""
4276 else
4277 case $cross_compiling:$ac_tool_warned in
4278 yes:)
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4280 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4281 ac_tool_warned=yes ;;
4282 esac
4283 CC=$ac_ct_CC
4284 fi
4285 else
4286 CC="$ac_cv_prog_CC"
4287 fi
4288
4289 if test -z "$CC"; then
4290 if test -n "$ac_tool_prefix"; then
4291 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4292 set dummy ${ac_tool_prefix}cc; ac_word=$2
4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 printf %s "checking for $ac_word... " >&6; }
4295 if test ${ac_cv_prog_CC+y}
4296 then :
4297 printf %s "(cached) " >&6
4298 else $as_nop
4299 if test -n "$CC"; then
4300 ac_cv_prog_CC="$CC" # Let the user override the test.
4301 else
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4304 do
4305 IFS=$as_save_IFS
4306 case $as_dir in #(((
4307 '') as_dir=./ ;;
4308 */) ;;
4309 *) as_dir=$as_dir/ ;;
4310 esac
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4313 ac_cv_prog_CC="${ac_tool_prefix}cc"
4314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4315 break 2
4316 fi
4317 done
4318 done
4319 IFS=$as_save_IFS
4320
4321 fi
4322 fi
4323 CC=$ac_cv_prog_CC
4324 if test -n "$CC"; then
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4326 printf "%s\n" "$CC" >&6; }
4327 else
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 printf "%s\n" "no" >&6; }
4330 fi
4331
4332
4333 fi
4334 fi
4335 if test -z "$CC"; then
4336 # Extract the first word of "cc", so it can be a program name with args.
4337 set dummy cc; ac_word=$2
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 printf %s "checking for $ac_word... " >&6; }
4340 if test ${ac_cv_prog_CC+y}
4341 then :
4342 printf %s "(cached) " >&6
4343 else $as_nop
4344 if test -n "$CC"; then
4345 ac_cv_prog_CC="$CC" # Let the user override the test.
4346 else
4347 ac_prog_rejected=no
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4350 do
4351 IFS=$as_save_IFS
4352 case $as_dir in #(((
4353 '') as_dir=./ ;;
4354 */) ;;
4355 *) as_dir=$as_dir/ ;;
4356 esac
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4359 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4360 ac_prog_rejected=yes
4361 continue
4362 fi
4363 ac_cv_prog_CC="cc"
4364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4365 break 2
4366 fi
4367 done
4368 done
4369 IFS=$as_save_IFS
4370
4371 if test $ac_prog_rejected = yes; then
4372 # We found a bogon in the path, so make sure we never use it.
4373 set dummy $ac_cv_prog_CC
4374 shift
4375 if test $# != 0; then
4376 # We chose a different compiler from the bogus one.
4377 # However, it has the same basename, so the bogon will be chosen
4378 # first if we set CC to just the basename; use the full file name.
4379 shift
4380 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4381 fi
4382 fi
4383 fi
4384 fi
4385 CC=$ac_cv_prog_CC
4386 if test -n "$CC"; then
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4388 printf "%s\n" "$CC" >&6; }
4389 else
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 printf "%s\n" "no" >&6; }
4392 fi
4393
4394
4395 fi
4396 if test -z "$CC"; then
4397 if test -n "$ac_tool_prefix"; then
4398 for ac_prog in cl.exe
4399 do
4400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 printf %s "checking for $ac_word... " >&6; }
4404 if test ${ac_cv_prog_CC+y}
4405 then :
4406 printf %s "(cached) " >&6
4407 else $as_nop
4408 if test -n "$CC"; then
4409 ac_cv_prog_CC="$CC" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414 IFS=$as_save_IFS
4415 case $as_dir in #(((
4416 '') as_dir=./ ;;
4417 */) ;;
4418 *) as_dir=$as_dir/ ;;
4419 esac
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4422 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4424 break 2
4425 fi
4426 done
4427 done
4428 IFS=$as_save_IFS
4429
4430 fi
4431 fi
4432 CC=$ac_cv_prog_CC
4433 if test -n "$CC"; then
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4435 printf "%s\n" "$CC" >&6; }
4436 else
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 printf "%s\n" "no" >&6; }
4439 fi
4440
4441
4442 test -n "$CC" && break
4443 done
4444 fi
4445 if test -z "$CC"; then
4446 ac_ct_CC=$CC
4447 for ac_prog in cl.exe
4448 do
4449 # Extract the first word of "$ac_prog", so it can be a program name with args.
4450 set dummy $ac_prog; ac_word=$2
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 printf %s "checking for $ac_word... " >&6; }
4453 if test ${ac_cv_prog_ac_ct_CC+y}
4454 then :
4455 printf %s "(cached) " >&6
4456 else $as_nop
4457 if test -n "$ac_ct_CC"; then
4458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463 IFS=$as_save_IFS
4464 case $as_dir in #(((
4465 '') as_dir=./ ;;
4466 */) ;;
4467 *) as_dir=$as_dir/ ;;
4468 esac
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_ac_ct_CC="$ac_prog"
4472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4473 break 2
4474 fi
4475 done
4476 done
4477 IFS=$as_save_IFS
4478
4479 fi
4480 fi
4481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4482 if test -n "$ac_ct_CC"; then
4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4484 printf "%s\n" "$ac_ct_CC" >&6; }
4485 else
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 printf "%s\n" "no" >&6; }
4488 fi
4489
4490
4491 test -n "$ac_ct_CC" && break
4492 done
4493
4494 if test "x$ac_ct_CC" = x; then
4495 CC=""
4496 else
4497 case $cross_compiling:$ac_tool_warned in
4498 yes:)
4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4500 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4501 ac_tool_warned=yes ;;
4502 esac
4503 CC=$ac_ct_CC
4504 fi
4505 fi
4506
4507 fi
4508 if test -z "$CC"; then
4509 if test -n "$ac_tool_prefix"; then
4510 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4511 set dummy ${ac_tool_prefix}clang; ac_word=$2
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 printf %s "checking for $ac_word... " >&6; }
4514 if test ${ac_cv_prog_CC+y}
4515 then :
4516 printf %s "(cached) " >&6
4517 else $as_nop
4518 if test -n "$CC"; then
4519 ac_cv_prog_CC="$CC" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524 IFS=$as_save_IFS
4525 case $as_dir in #(((
4526 '') as_dir=./ ;;
4527 */) ;;
4528 *) as_dir=$as_dir/ ;;
4529 esac
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4532 ac_cv_prog_CC="${ac_tool_prefix}clang"
4533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4534 break 2
4535 fi
4536 done
4537 done
4538 IFS=$as_save_IFS
4539
4540 fi
4541 fi
4542 CC=$ac_cv_prog_CC
4543 if test -n "$CC"; then
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4545 printf "%s\n" "$CC" >&6; }
4546 else
4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 printf "%s\n" "no" >&6; }
4549 fi
4550
4551
4552 fi
4553 if test -z "$ac_cv_prog_CC"; then
4554 ac_ct_CC=$CC
4555 # Extract the first word of "clang", so it can be a program name with args.
4556 set dummy clang; ac_word=$2
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 printf %s "checking for $ac_word... " >&6; }
4559 if test ${ac_cv_prog_ac_ct_CC+y}
4560 then :
4561 printf %s "(cached) " >&6
4562 else $as_nop
4563 if test -n "$ac_ct_CC"; then
4564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569 IFS=$as_save_IFS
4570 case $as_dir in #(((
4571 '') as_dir=./ ;;
4572 */) ;;
4573 *) as_dir=$as_dir/ ;;
4574 esac
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4577 ac_cv_prog_ac_ct_CC="clang"
4578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4579 break 2
4580 fi
4581 done
4582 done
4583 IFS=$as_save_IFS
4584
4585 fi
4586 fi
4587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4588 if test -n "$ac_ct_CC"; then
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4590 printf "%s\n" "$ac_ct_CC" >&6; }
4591 else
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 printf "%s\n" "no" >&6; }
4594 fi
4595
4596 if test "x$ac_ct_CC" = x; then
4597 CC=""
4598 else
4599 case $cross_compiling:$ac_tool_warned in
4600 yes:)
4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4602 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4603 ac_tool_warned=yes ;;
4604 esac
4605 CC=$ac_ct_CC
4606 fi
4607 else
4608 CC="$ac_cv_prog_CC"
4609 fi
4610
4611 fi
4612
4613
4614 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4615 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4616 as_fn_error $? "no acceptable C compiler found in \$PATH
4617 See \`config.log' for more details" "$LINENO" 5; }
4618
4619 # Provide some information about the compiler.
4620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4621 set X $ac_compile
4622 ac_compiler=$2
4623 for ac_option in --version -v -V -qversion -version; do
4624 { { ac_try="$ac_compiler $ac_option >&5"
4625 case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628 esac
4629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4630 printf "%s\n" "$ac_try_echo"; } >&5
4631 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4632 ac_status=$?
4633 if test -s conftest.err; then
4634 sed '10a\
4635 ... rest of stderr output deleted ...
4636 10q' conftest.err >conftest.er1
4637 cat conftest.er1 >&5
4638 fi
4639 rm -f conftest.er1 conftest.err
4640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4641 test $ac_status = 0; }
4642 done
4643
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4645 printf %s "checking whether the compiler supports GNU C... " >&6; }
4646 if test ${ac_cv_c_compiler_gnu+y}
4647 then :
4648 printf %s "(cached) " >&6
4649 else $as_nop
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652
4653 int
4654 main (void)
4655 {
4656 #ifndef __GNUC__
4657 choke me
4658 #endif
4659
4660 ;
4661 return 0;
4662 }
4663 _ACEOF
4664 if ac_fn_c_try_compile "$LINENO"
4665 then :
4666 ac_compiler_gnu=yes
4667 else $as_nop
4668 ac_compiler_gnu=no
4669 fi
4670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4672
4673 fi
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4675 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4677
4678 if test $ac_compiler_gnu = yes; then
4679 GCC=yes
4680 else
4681 GCC=
4682 fi
4683 ac_test_CFLAGS=${CFLAGS+y}
4684 ac_save_CFLAGS=$CFLAGS
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4686 printf %s "checking whether $CC accepts -g... " >&6; }
4687 if test ${ac_cv_prog_cc_g+y}
4688 then :
4689 printf %s "(cached) " >&6
4690 else $as_nop
4691 ac_save_c_werror_flag=$ac_c_werror_flag
4692 ac_c_werror_flag=yes
4693 ac_cv_prog_cc_g=no
4694 CFLAGS="-g"
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697
4698 int
4699 main (void)
4700 {
4701
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"
4707 then :
4708 ac_cv_prog_cc_g=yes
4709 else $as_nop
4710 CFLAGS=""
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713
4714 int
4715 main (void)
4716 {
4717
4718 ;
4719 return 0;
4720 }
4721 _ACEOF
4722 if ac_fn_c_try_compile "$LINENO"
4723 then :
4724
4725 else $as_nop
4726 ac_c_werror_flag=$ac_save_c_werror_flag
4727 CFLAGS="-g"
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 int
4732 main (void)
4733 {
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 if ac_fn_c_try_compile "$LINENO"
4740 then :
4741 ac_cv_prog_cc_g=yes
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4748 ac_c_werror_flag=$ac_save_c_werror_flag
4749 fi
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4751 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4752 if test $ac_test_CFLAGS; then
4753 CFLAGS=$ac_save_CFLAGS
4754 elif test $ac_cv_prog_cc_g = yes; then
4755 if test "$GCC" = yes; then
4756 CFLAGS="-g -O2"
4757 else
4758 CFLAGS="-g"
4759 fi
4760 else
4761 if test "$GCC" = yes; then
4762 CFLAGS="-O2"
4763 else
4764 CFLAGS=
4765 fi
4766 fi
4767 ac_prog_cc_stdc=no
4768 if test x$ac_prog_cc_stdc = xno
4769 then :
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4771 printf %s "checking for $CC option to enable C11 features... " >&6; }
4772 if test ${ac_cv_prog_cc_c11+y}
4773 then :
4774 printf %s "(cached) " >&6
4775 else $as_nop
4776 ac_cv_prog_cc_c11=no
4777 ac_save_CC=$CC
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780 $ac_c_conftest_c11_program
4781 _ACEOF
4782 for ac_arg in '' -std=gnu11
4783 do
4784 CC="$ac_save_CC $ac_arg"
4785 if ac_fn_c_try_compile "$LINENO"
4786 then :
4787 ac_cv_prog_cc_c11=$ac_arg
4788 fi
4789 rm -f core conftest.err conftest.$ac_objext conftest.beam
4790 test "x$ac_cv_prog_cc_c11" != "xno" && break
4791 done
4792 rm -f conftest.$ac_ext
4793 CC=$ac_save_CC
4794 fi
4795
4796 if test "x$ac_cv_prog_cc_c11" = xno
4797 then :
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4799 printf "%s\n" "unsupported" >&6; }
4800 else $as_nop
4801 if test "x$ac_cv_prog_cc_c11" = x
4802 then :
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4804 printf "%s\n" "none needed" >&6; }
4805 else $as_nop
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4807 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4808 CC="$CC $ac_cv_prog_cc_c11"
4809 fi
4810 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4811 ac_prog_cc_stdc=c11
4812 fi
4813 fi
4814 if test x$ac_prog_cc_stdc = xno
4815 then :
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4817 printf %s "checking for $CC option to enable C99 features... " >&6; }
4818 if test ${ac_cv_prog_cc_c99+y}
4819 then :
4820 printf %s "(cached) " >&6
4821 else $as_nop
4822 ac_cv_prog_cc_c99=no
4823 ac_save_CC=$CC
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4826 $ac_c_conftest_c99_program
4827 _ACEOF
4828 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4829 do
4830 CC="$ac_save_CC $ac_arg"
4831 if ac_fn_c_try_compile "$LINENO"
4832 then :
4833 ac_cv_prog_cc_c99=$ac_arg
4834 fi
4835 rm -f core conftest.err conftest.$ac_objext conftest.beam
4836 test "x$ac_cv_prog_cc_c99" != "xno" && break
4837 done
4838 rm -f conftest.$ac_ext
4839 CC=$ac_save_CC
4840 fi
4841
4842 if test "x$ac_cv_prog_cc_c99" = xno
4843 then :
4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4845 printf "%s\n" "unsupported" >&6; }
4846 else $as_nop
4847 if test "x$ac_cv_prog_cc_c99" = x
4848 then :
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4850 printf "%s\n" "none needed" >&6; }
4851 else $as_nop
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4853 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4854 CC="$CC $ac_cv_prog_cc_c99"
4855 fi
4856 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4857 ac_prog_cc_stdc=c99
4858 fi
4859 fi
4860 if test x$ac_prog_cc_stdc = xno
4861 then :
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4863 printf %s "checking for $CC option to enable C89 features... " >&6; }
4864 if test ${ac_cv_prog_cc_c89+y}
4865 then :
4866 printf %s "(cached) " >&6
4867 else $as_nop
4868 ac_cv_prog_cc_c89=no
4869 ac_save_CC=$CC
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872 $ac_c_conftest_c89_program
4873 _ACEOF
4874 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4875 do
4876 CC="$ac_save_CC $ac_arg"
4877 if ac_fn_c_try_compile "$LINENO"
4878 then :
4879 ac_cv_prog_cc_c89=$ac_arg
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext conftest.beam
4882 test "x$ac_cv_prog_cc_c89" != "xno" && break
4883 done
4884 rm -f conftest.$ac_ext
4885 CC=$ac_save_CC
4886 fi
4887
4888 if test "x$ac_cv_prog_cc_c89" = xno
4889 then :
4890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4891 printf "%s\n" "unsupported" >&6; }
4892 else $as_nop
4893 if test "x$ac_cv_prog_cc_c89" = x
4894 then :
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4896 printf "%s\n" "none needed" >&6; }
4897 else $as_nop
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4899 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4900 CC="$CC $ac_cv_prog_cc_c89"
4901 fi
4902 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4903 ac_prog_cc_stdc=c89
4904 fi
4905 fi
4906
4907 ac_ext=cpp
4908 ac_cpp='$CXXCPP $CPPFLAGS'
4909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4912
4913
4914 ac_ext=c
4915 ac_cpp='$CPP $CPPFLAGS'
4916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4920 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4921 if test ${am_cv_prog_cc_c_o+y}
4922 then :
4923 printf %s "(cached) " >&6
4924 else $as_nop
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927
4928 int
4929 main (void)
4930 {
4931
4932 ;
4933 return 0;
4934 }
4935 _ACEOF
4936 # Make sure it works both with $CC and with simple cc.
4937 # Following AC_PROG_CC_C_O, we do the test twice because some
4938 # compilers refuse to overwrite an existing .o file with -o,
4939 # though they will create one.
4940 am_cv_prog_cc_c_o=yes
4941 for am_i in 1 2; do
4942 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4943 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } \
4947 && test -f conftest2.$ac_objext; then
4948 : OK
4949 else
4950 am_cv_prog_cc_c_o=no
4951 break
4952 fi
4953 done
4954 rm -f core conftest*
4955 unset am_i
4956 fi
4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4958 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4959 if test "$am_cv_prog_cc_c_o" != yes; then
4960 # Losing compiler, so override with the script.
4961 # FIXME: It is wrong to rewrite CC.
4962 # But if we don't then we get into trouble of one sort or another.
4963 # A longer-term fix would be to have automake use am__CC in this case,
4964 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4965 CC="$am_aux_dir/compile $CC"
4966 fi
4967 ac_ext=cpp
4968 ac_cpp='$CXXCPP $CPPFLAGS'
4969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4972
4973
4974 depcc="$CC" am_compiler_list=
4975
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4977 printf %s "checking dependency style of $depcc... " >&6; }
4978 if test ${am_cv_CC_dependencies_compiler_type+y}
4979 then :
4980 printf %s "(cached) " >&6
4981 else $as_nop
4982 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4983 # We make a subdir and do the tests there. Otherwise we can end up
4984 # making bogus files that we don't know about and never remove. For
4985 # instance it was reported that on HP-UX the gcc test will end up
4986 # making a dummy file named 'D' -- because '-MD' means "put the output
4987 # in D".
4988 rm -rf conftest.dir
4989 mkdir conftest.dir
4990 # Copy depcomp to subdir because otherwise we won't find it if we're
4991 # using a relative directory.
4992 cp "$am_depcomp" conftest.dir
4993 cd conftest.dir
4994 # We will build objects and dependencies in a subdirectory because
4995 # it helps to detect inapplicable dependency modes. For instance
4996 # both Tru64's cc and ICC support -MD to output dependencies as a
4997 # side effect of compilation, but ICC will put the dependencies in
4998 # the current directory while Tru64 will put them in the object
4999 # directory.
5000 mkdir sub
5001
5002 am_cv_CC_dependencies_compiler_type=none
5003 if test "$am_compiler_list" = ""; then
5004 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5005 fi
5006 am__universal=false
5007 case " $depcc " in #(
5008 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5009 esac
5010
5011 for depmode in $am_compiler_list; do
5012 # Setup a source with many dependencies, because some compilers
5013 # like to wrap large dependency lists on column 80 (with \), and
5014 # we should not choose a depcomp mode which is confused by this.
5015 #
5016 # We need to recreate these files for each test, as the compiler may
5017 # overwrite some of them when testing with obscure command lines.
5018 # This happens at least with the AIX C compiler.
5019 : > sub/conftest.c
5020 for i in 1 2 3 4 5 6; do
5021 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5022 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5023 # Solaris 10 /bin/sh.
5024 echo '/* dummy */' > sub/conftst$i.h
5025 done
5026 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5027
5028 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5029 # mode. It turns out that the SunPro C++ compiler does not properly
5030 # handle '-M -o', and we need to detect this. Also, some Intel
5031 # versions had trouble with output in subdirs.
5032 am__obj=sub/conftest.${OBJEXT-o}
5033 am__minus_obj="-o $am__obj"
5034 case $depmode in
5035 gcc)
5036 # This depmode causes a compiler race in universal mode.
5037 test "$am__universal" = false || continue
5038 ;;
5039 nosideeffect)
5040 # After this tag, mechanisms are not by side-effect, so they'll
5041 # only be used when explicitly requested.
5042 if test "x$enable_dependency_tracking" = xyes; then
5043 continue
5044 else
5045 break
5046 fi
5047 ;;
5048 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5049 # This compiler won't grok '-c -o', but also, the minuso test has
5050 # not run yet. These depmodes are late enough in the game, and
5051 # so weak that their functioning should not be impacted.
5052 am__obj=conftest.${OBJEXT-o}
5053 am__minus_obj=
5054 ;;
5055 none) break ;;
5056 esac
5057 if depmode=$depmode \
5058 source=sub/conftest.c object=$am__obj \
5059 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5060 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5061 >/dev/null 2>conftest.err &&
5062 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5063 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5064 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5065 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5066 # icc doesn't choke on unknown options, it will just issue warnings
5067 # or remarks (even with -Werror). So we grep stderr for any message
5068 # that says an option was ignored or not supported.
5069 # When given -MP, icc 7.0 and 7.1 complain thusly:
5070 # icc: Command line warning: ignoring option '-M'; no argument required
5071 # The diagnosis changed in icc 8.0:
5072 # icc: Command line remark: option '-MP' not supported
5073 if (grep 'ignoring option' conftest.err ||
5074 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5075 am_cv_CC_dependencies_compiler_type=$depmode
5076 break
5077 fi
5078 fi
5079 done
5080
5081 cd ..
5082 rm -rf conftest.dir
5083 else
5084 am_cv_CC_dependencies_compiler_type=none
5085 fi
5086
5087 fi
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5089 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5090 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5091
5092 if
5093 test "x$enable_dependency_tracking" != xno \
5094 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5095 am__fastdepCC_TRUE=
5096 am__fastdepCC_FALSE='#'
5097 else
5098 am__fastdepCC_TRUE='#'
5099 am__fastdepCC_FALSE=
5100 fi
5101
5102
5103 CXXFLAGS=$CFLAGS
5104
5105 ac_ext=cpp
5106 ac_cpp='$CXXCPP $CPPFLAGS'
5107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5110 if test -z "$CXX"; then
5111 if test -n "$CCC"; then
5112 CXX=$CCC
5113 else
5114 if test -n "$ac_tool_prefix"; then
5115 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5116 do
5117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 printf %s "checking for $ac_word... " >&6; }
5121 if test ${ac_cv_prog_CXX+y}
5122 then :
5123 printf %s "(cached) " >&6
5124 else $as_nop
5125 if test -n "$CXX"; then
5126 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5130 do
5131 IFS=$as_save_IFS
5132 case $as_dir in #(((
5133 '') as_dir=./ ;;
5134 */) ;;
5135 *) as_dir=$as_dir/ ;;
5136 esac
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5139 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5141 break 2
5142 fi
5143 done
5144 done
5145 IFS=$as_save_IFS
5146
5147 fi
5148 fi
5149 CXX=$ac_cv_prog_CXX
5150 if test -n "$CXX"; then
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5152 printf "%s\n" "$CXX" >&6; }
5153 else
5154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 printf "%s\n" "no" >&6; }
5156 fi
5157
5158
5159 test -n "$CXX" && break
5160 done
5161 fi
5162 if test -z "$CXX"; then
5163 ac_ct_CXX=$CXX
5164 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5165 do
5166 # Extract the first word of "$ac_prog", so it can be a program name with args.
5167 set dummy $ac_prog; ac_word=$2
5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 printf %s "checking for $ac_word... " >&6; }
5170 if test ${ac_cv_prog_ac_ct_CXX+y}
5171 then :
5172 printf %s "(cached) " >&6
5173 else $as_nop
5174 if test -n "$ac_ct_CXX"; then
5175 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180 IFS=$as_save_IFS
5181 case $as_dir in #(((
5182 '') as_dir=./ ;;
5183 */) ;;
5184 *) as_dir=$as_dir/ ;;
5185 esac
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5188 ac_cv_prog_ac_ct_CXX="$ac_prog"
5189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196 fi
5197 fi
5198 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5199 if test -n "$ac_ct_CXX"; then
5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5201 printf "%s\n" "$ac_ct_CXX" >&6; }
5202 else
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 printf "%s\n" "no" >&6; }
5205 fi
5206
5207
5208 test -n "$ac_ct_CXX" && break
5209 done
5210
5211 if test "x$ac_ct_CXX" = x; then
5212 CXX="g++"
5213 else
5214 case $cross_compiling:$ac_tool_warned in
5215 yes:)
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218 ac_tool_warned=yes ;;
5219 esac
5220 CXX=$ac_ct_CXX
5221 fi
5222 fi
5223
5224 fi
5225 fi
5226 # Provide some information about the compiler.
5227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5228 set X $ac_compile
5229 ac_compiler=$2
5230 for ac_option in --version -v -V -qversion; do
5231 { { ac_try="$ac_compiler $ac_option >&5"
5232 case "(($ac_try" in
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5235 esac
5236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5237 printf "%s\n" "$ac_try_echo"; } >&5
5238 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5239 ac_status=$?
5240 if test -s conftest.err; then
5241 sed '10a\
5242 ... rest of stderr output deleted ...
5243 10q' conftest.err >conftest.er1
5244 cat conftest.er1 >&5
5245 fi
5246 rm -f conftest.er1 conftest.err
5247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5248 test $ac_status = 0; }
5249 done
5250
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5252 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5253 if test ${ac_cv_cxx_compiler_gnu+y}
5254 then :
5255 printf %s "(cached) " >&6
5256 else $as_nop
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259
5260 int
5261 main (void)
5262 {
5263 #ifndef __GNUC__
5264 choke me
5265 #endif
5266
5267 ;
5268 return 0;
5269 }
5270 _ACEOF
5271 if ac_fn_cxx_try_compile "$LINENO"
5272 then :
5273 ac_compiler_gnu=yes
5274 else $as_nop
5275 ac_compiler_gnu=no
5276 fi
5277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5278 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5279
5280 fi
5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5282 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5284
5285 if test $ac_compiler_gnu = yes; then
5286 GXX=yes
5287 else
5288 GXX=
5289 fi
5290 ac_test_CXXFLAGS=${CXXFLAGS+y}
5291 ac_save_CXXFLAGS=$CXXFLAGS
5292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5293 printf %s "checking whether $CXX accepts -g... " >&6; }
5294 if test ${ac_cv_prog_cxx_g+y}
5295 then :
5296 printf %s "(cached) " >&6
5297 else $as_nop
5298 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5299 ac_cxx_werror_flag=yes
5300 ac_cv_prog_cxx_g=no
5301 CXXFLAGS="-g"
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304
5305 int
5306 main (void)
5307 {
5308
5309 ;
5310 return 0;
5311 }
5312 _ACEOF
5313 if ac_fn_cxx_try_compile "$LINENO"
5314 then :
5315 ac_cv_prog_cxx_g=yes
5316 else $as_nop
5317 CXXFLAGS=""
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320
5321 int
5322 main (void)
5323 {
5324
5325 ;
5326 return 0;
5327 }
5328 _ACEOF
5329 if ac_fn_cxx_try_compile "$LINENO"
5330 then :
5331
5332 else $as_nop
5333 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5334 CXXFLAGS="-g"
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337
5338 int
5339 main (void)
5340 {
5341
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 if ac_fn_cxx_try_compile "$LINENO"
5347 then :
5348 ac_cv_prog_cxx_g=yes
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5355 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5356 fi
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5358 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5359 if test $ac_test_CXXFLAGS; then
5360 CXXFLAGS=$ac_save_CXXFLAGS
5361 elif test $ac_cv_prog_cxx_g = yes; then
5362 if test "$GXX" = yes; then
5363 CXXFLAGS="-g -O2"
5364 else
5365 CXXFLAGS="-g"
5366 fi
5367 else
5368 if test "$GXX" = yes; then
5369 CXXFLAGS="-O2"
5370 else
5371 CXXFLAGS=
5372 fi
5373 fi
5374 ac_prog_cxx_stdcxx=no
5375 if test x$ac_prog_cxx_stdcxx = xno
5376 then :
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5378 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5379 if test ${ac_cv_prog_cxx_cxx11+y}
5380 then :
5381 printf %s "(cached) " >&6
5382 else $as_nop
5383 ac_cv_prog_cxx_cxx11=no
5384 ac_save_CXX=$CXX
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 $ac_cxx_conftest_cxx11_program
5388 _ACEOF
5389 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5390 do
5391 CXX="$ac_save_CXX $ac_arg"
5392 if ac_fn_cxx_try_compile "$LINENO"
5393 then :
5394 ac_cv_prog_cxx_cxx11=$ac_arg
5395 fi
5396 rm -f core conftest.err conftest.$ac_objext conftest.beam
5397 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5398 done
5399 rm -f conftest.$ac_ext
5400 CXX=$ac_save_CXX
5401 fi
5402
5403 if test "x$ac_cv_prog_cxx_cxx11" = xno
5404 then :
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5406 printf "%s\n" "unsupported" >&6; }
5407 else $as_nop
5408 if test "x$ac_cv_prog_cxx_cxx11" = x
5409 then :
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5411 printf "%s\n" "none needed" >&6; }
5412 else $as_nop
5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5414 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5415 CXX="$CXX $ac_cv_prog_cxx_cxx11"
5416 fi
5417 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5418 ac_prog_cxx_stdcxx=cxx11
5419 fi
5420 fi
5421 if test x$ac_prog_cxx_stdcxx = xno
5422 then :
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5424 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5425 if test ${ac_cv_prog_cxx_cxx98+y}
5426 then :
5427 printf %s "(cached) " >&6
5428 else $as_nop
5429 ac_cv_prog_cxx_cxx98=no
5430 ac_save_CXX=$CXX
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5433 $ac_cxx_conftest_cxx98_program
5434 _ACEOF
5435 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5436 do
5437 CXX="$ac_save_CXX $ac_arg"
5438 if ac_fn_cxx_try_compile "$LINENO"
5439 then :
5440 ac_cv_prog_cxx_cxx98=$ac_arg
5441 fi
5442 rm -f core conftest.err conftest.$ac_objext conftest.beam
5443 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5444 done
5445 rm -f conftest.$ac_ext
5446 CXX=$ac_save_CXX
5447 fi
5448
5449 if test "x$ac_cv_prog_cxx_cxx98" = xno
5450 then :
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5452 printf "%s\n" "unsupported" >&6; }
5453 else $as_nop
5454 if test "x$ac_cv_prog_cxx_cxx98" = x
5455 then :
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5457 printf "%s\n" "none needed" >&6; }
5458 else $as_nop
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5460 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5461 CXX="$CXX $ac_cv_prog_cxx_cxx98"
5462 fi
5463 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5464 ac_prog_cxx_stdcxx=cxx98
5465 fi
5466 fi
5467
5468 ac_ext=cpp
5469 ac_cpp='$CXXCPP $CPPFLAGS'
5470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5473
5474 depcc="$CXX" am_compiler_list=
5475
5476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5477 printf %s "checking dependency style of $depcc... " >&6; }
5478 if test ${am_cv_CXX_dependencies_compiler_type+y}
5479 then :
5480 printf %s "(cached) " >&6
5481 else $as_nop
5482 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5483 # We make a subdir and do the tests there. Otherwise we can end up
5484 # making bogus files that we don't know about and never remove. For
5485 # instance it was reported that on HP-UX the gcc test will end up
5486 # making a dummy file named 'D' -- because '-MD' means "put the output
5487 # in D".
5488 rm -rf conftest.dir
5489 mkdir conftest.dir
5490 # Copy depcomp to subdir because otherwise we won't find it if we're
5491 # using a relative directory.
5492 cp "$am_depcomp" conftest.dir
5493 cd conftest.dir
5494 # We will build objects and dependencies in a subdirectory because
5495 # it helps to detect inapplicable dependency modes. For instance
5496 # both Tru64's cc and ICC support -MD to output dependencies as a
5497 # side effect of compilation, but ICC will put the dependencies in
5498 # the current directory while Tru64 will put them in the object
5499 # directory.
5500 mkdir sub
5501
5502 am_cv_CXX_dependencies_compiler_type=none
5503 if test "$am_compiler_list" = ""; then
5504 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5505 fi
5506 am__universal=false
5507 case " $depcc " in #(
5508 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5509 esac
5510
5511 for depmode in $am_compiler_list; do
5512 # Setup a source with many dependencies, because some compilers
5513 # like to wrap large dependency lists on column 80 (with \), and
5514 # we should not choose a depcomp mode which is confused by this.
5515 #
5516 # We need to recreate these files for each test, as the compiler may
5517 # overwrite some of them when testing with obscure command lines.
5518 # This happens at least with the AIX C compiler.
5519 : > sub/conftest.c
5520 for i in 1 2 3 4 5 6; do
5521 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5522 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5523 # Solaris 10 /bin/sh.
5524 echo '/* dummy */' > sub/conftst$i.h
5525 done
5526 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5527
5528 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5529 # mode. It turns out that the SunPro C++ compiler does not properly
5530 # handle '-M -o', and we need to detect this. Also, some Intel
5531 # versions had trouble with output in subdirs.
5532 am__obj=sub/conftest.${OBJEXT-o}
5533 am__minus_obj="-o $am__obj"
5534 case $depmode in
5535 gcc)
5536 # This depmode causes a compiler race in universal mode.
5537 test "$am__universal" = false || continue
5538 ;;
5539 nosideeffect)
5540 # After this tag, mechanisms are not by side-effect, so they'll
5541 # only be used when explicitly requested.
5542 if test "x$enable_dependency_tracking" = xyes; then
5543 continue
5544 else
5545 break
5546 fi
5547 ;;
5548 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5549 # This compiler won't grok '-c -o', but also, the minuso test has
5550 # not run yet. These depmodes are late enough in the game, and
5551 # so weak that their functioning should not be impacted.
5552 am__obj=conftest.${OBJEXT-o}
5553 am__minus_obj=
5554 ;;
5555 none) break ;;
5556 esac
5557 if depmode=$depmode \
5558 source=sub/conftest.c object=$am__obj \
5559 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5560 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5561 >/dev/null 2>conftest.err &&
5562 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5563 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5564 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5565 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5566 # icc doesn't choke on unknown options, it will just issue warnings
5567 # or remarks (even with -Werror). So we grep stderr for any message
5568 # that says an option was ignored or not supported.
5569 # When given -MP, icc 7.0 and 7.1 complain thusly:
5570 # icc: Command line warning: ignoring option '-M'; no argument required
5571 # The diagnosis changed in icc 8.0:
5572 # icc: Command line remark: option '-MP' not supported
5573 if (grep 'ignoring option' conftest.err ||
5574 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5575 am_cv_CXX_dependencies_compiler_type=$depmode
5576 break
5577 fi
5578 fi
5579 done
5580
5581 cd ..
5582 rm -rf conftest.dir
5583 else
5584 am_cv_CXX_dependencies_compiler_type=none
5585 fi
5586
5587 fi
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5589 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5590 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5591
5592 if
5593 test "x$enable_dependency_tracking" != xno \
5594 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5595 am__fastdepCXX_TRUE=
5596 am__fastdepCXX_FALSE='#'
5597 else
5598 am__fastdepCXX_TRUE='#'
5599 am__fastdepCXX_FALSE=
5600 fi
5601
5602
5603
5604 # Checks for libraries.
5605
5606 # Checks for header files.
5607 ac_header= ac_cache=
5608 for ac_item in $ac_header_cxx_list
5609 do
5610 if test $ac_cache; then
5611 ac_fn_cxx_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5612 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5613 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5614 fi
5615 ac_header= ac_cache=
5616 elif test $ac_header; then
5617 ac_cache=$ac_item
5618 else
5619 ac_header=$ac_item
5620 fi
5621 done
5622
5623
5624
5625
5626
5627
5628
5629
5630 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5631 then :
5632
5633 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5634
5635 fi
5636 ac_fn_cxx_check_header_compile "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default"
5637 if test "x$ac_cv_header_cmath" = xyes
5638 then :
5639
5640 else $as_nop
5641 as_fn_error $? "Your STL doesn't come with cmath, upgrade your libstdc++." "$LINENO" 5
5642 fi
5643
5644 ac_fn_cxx_check_header_compile "$LINENO" "muParser.h" "ac_cv_header_muParser_h" "$ac_includes_default"
5645 if test "x$ac_cv_header_muParser_h" = xyes
5646 then :
5647
5648 else $as_nop
5649 as_fn_error $? "Please install libmuparser >= 2.0.0 from http://muparser.beltoforion.de/" "$LINENO" 5
5650 fi
5651
5652 ac_fn_cxx_check_header_compile "$LINENO" "utf8.h" "ac_cv_header_utf8_h" "$ac_includes_default"
5653 if test "x$ac_cv_header_utf8_h" = xyes
5654 then :
5655
5656 else $as_nop
5657 as_fn_error $? "Please install UTF8-CPP library from http://utfcpp.sourceforge.net/" "$LINENO" 5
5658 fi
5659
5660
5661 # Checks for typedefs, structures, and compiler characteristics.
5662
5663 # Checks for library functions.
5664
5665 # Check whether to enable systemd startup notification.
5666 # This requires libsystemd-daemon.
5667
5668 # Check whether --with-systemd-daemon was given.
5669 if test ${with_systemd_daemon+y}
5670 then :
5671 withval=$with_systemd_daemon; USE_SYSTEMD_DAEMON=$withval
5672 else $as_nop
5673 USE_SYSTEMD_DAEMON=auto
5674 fi
5675
5676
5677
5678
5679
5680
5681
5682
5683 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5684 if test -n "$ac_tool_prefix"; then
5685 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5686 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 printf %s "checking for $ac_word... " >&6; }
5689 if test ${ac_cv_path_PKG_CONFIG+y}
5690 then :
5691 printf %s "(cached) " >&6
5692 else $as_nop
5693 case $PKG_CONFIG in
5694 [\\/]* | ?:[\\/]*)
5695 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5696 ;;
5697 *)
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701 IFS=$as_save_IFS
5702 case $as_dir in #(((
5703 '') as_dir=./ ;;
5704 */) ;;
5705 *) as_dir=$as_dir/ ;;
5706 esac
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5709 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5711 break 2
5712 fi
5713 done
5714 done
5715 IFS=$as_save_IFS
5716
5717 ;;
5718 esac
5719 fi
5720 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5721 if test -n "$PKG_CONFIG"; then
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5723 printf "%s\n" "$PKG_CONFIG" >&6; }
5724 else
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 printf "%s\n" "no" >&6; }
5727 fi
5728
5729
5730 fi
5731 if test -z "$ac_cv_path_PKG_CONFIG"; then
5732 ac_pt_PKG_CONFIG=$PKG_CONFIG
5733 # Extract the first word of "pkg-config", so it can be a program name with args.
5734 set dummy pkg-config; ac_word=$2
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 printf %s "checking for $ac_word... " >&6; }
5737 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5738 then :
5739 printf %s "(cached) " >&6
5740 else $as_nop
5741 case $ac_pt_PKG_CONFIG in
5742 [\\/]* | ?:[\\/]*)
5743 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5744 ;;
5745 *)
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749 IFS=$as_save_IFS
5750 case $as_dir in #(((
5751 '') as_dir=./ ;;
5752 */) ;;
5753 *) as_dir=$as_dir/ ;;
5754 esac
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5757 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 ;;
5766 esac
5767 fi
5768 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5769 if test -n "$ac_pt_PKG_CONFIG"; then
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5771 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5772 else
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 printf "%s\n" "no" >&6; }
5775 fi
5776
5777 if test "x$ac_pt_PKG_CONFIG" = x; then
5778 PKG_CONFIG=""
5779 else
5780 case $cross_compiling:$ac_tool_warned in
5781 yes:)
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784 ac_tool_warned=yes ;;
5785 esac
5786 PKG_CONFIG=$ac_pt_PKG_CONFIG
5787 fi
5788 else
5789 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5790 fi
5791
5792 fi
5793 if test -n "$PKG_CONFIG"; then
5794 _pkg_min_version=0.9.0
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5796 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5797 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5799 printf "%s\n" "yes" >&6; }
5800 else
5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 printf "%s\n" "no" >&6; }
5803 PKG_CONFIG=""
5804 fi
5805 fi
5806 if test "x$USE_SYSTEMD_DAEMON" != "xno"
5807 then :
5808
5809
5810 pkg_failed=no
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
5812 printf %s "checking for libsystemd... " >&6; }
5813
5814 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
5815 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
5816 elif test -n "$PKG_CONFIG"; then
5817 if test -n "$PKG_CONFIG" && \
5818 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
5819 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
5820 ac_status=$?
5821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5822 test $ac_status = 0; }; then
5823 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
5824 test "x$?" != "x0" && pkg_failed=yes
5825 else
5826 pkg_failed=yes
5827 fi
5828 else
5829 pkg_failed=untried
5830 fi
5831 if test -n "$SYSTEMD_DAEMON_LIBS"; then
5832 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
5833 elif test -n "$PKG_CONFIG"; then
5834 if test -n "$PKG_CONFIG" && \
5835 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
5836 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
5837 ac_status=$?
5838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5839 test $ac_status = 0; }; then
5840 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
5841 test "x$?" != "x0" && pkg_failed=yes
5842 else
5843 pkg_failed=yes
5844 fi
5845 else
5846 pkg_failed=untried
5847 fi
5848
5849
5850
5851 if test $pkg_failed = yes; then
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 printf "%s\n" "no" >&6; }
5854
5855 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5856 _pkg_short_errors_supported=yes
5857 else
5858 _pkg_short_errors_supported=no
5859 fi
5860 if test $_pkg_short_errors_supported = yes; then
5861 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
5862 else
5863 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
5864 fi
5865 # Put the nasty error message in config.log where it belongs
5866 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
5867
5868
5869 pkg_failed=no
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5
5871 printf %s "checking for libsystemd-daemon... " >&6; }
5872
5873 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
5874 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
5875 elif test -n "$PKG_CONFIG"; then
5876 if test -n "$PKG_CONFIG" && \
5877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
5878 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
5879 ac_status=$?
5880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5881 test $ac_status = 0; }; then
5882 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
5883 test "x$?" != "x0" && pkg_failed=yes
5884 else
5885 pkg_failed=yes
5886 fi
5887 else
5888 pkg_failed=untried
5889 fi
5890 if test -n "$SYSTEMD_DAEMON_LIBS"; then
5891 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
5892 elif test -n "$PKG_CONFIG"; then
5893 if test -n "$PKG_CONFIG" && \
5894 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
5895 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
5896 ac_status=$?
5897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5898 test $ac_status = 0; }; then
5899 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
5900 test "x$?" != "x0" && pkg_failed=yes
5901 else
5902 pkg_failed=yes
5903 fi
5904 else
5905 pkg_failed=untried
5906 fi
5907
5908
5909
5910 if test $pkg_failed = yes; then
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 printf "%s\n" "no" >&6; }
5913
5914 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5915 _pkg_short_errors_supported=yes
5916 else
5917 _pkg_short_errors_supported=no
5918 fi
5919 if test $_pkg_short_errors_supported = yes; then
5920 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
5921 else
5922 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
5923 fi
5924 # Put the nasty error message in config.log where it belongs
5925 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
5926
5927 if test "x$USE_SYSTEMD_DAEMON" = "xyes"
5928 then :
5929 as_fn_error $? "systemd startup notification support requested, but libsystemd-daemon not found." "$LINENO" 5
5930
5931 fi
5932
5933 elif test $pkg_failed = untried; then
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 printf "%s\n" "no" >&6; }
5936 if test "x$USE_SYSTEMD_DAEMON" = "xyes"
5937 then :
5938 as_fn_error $? "systemd startup notification support requested, but libsystemd-daemon not found." "$LINENO" 5
5939
5940 fi
5941
5942 else
5943 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
5944 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5946 printf "%s\n" "yes" >&6; }
5947
5948 printf "%s\n" "#define USE_SYSTEMD_DAEMON 1" >>confdefs.h
5949
5950 fi
5951
5952 elif test $pkg_failed = untried; then
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 printf "%s\n" "no" >&6; }
5955
5956 pkg_failed=no
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5
5958 printf %s "checking for libsystemd-daemon... " >&6; }
5959
5960 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
5961 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
5962 elif test -n "$PKG_CONFIG"; then
5963 if test -n "$PKG_CONFIG" && \
5964 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
5965 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
5966 ac_status=$?
5967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5968 test $ac_status = 0; }; then
5969 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
5970 test "x$?" != "x0" && pkg_failed=yes
5971 else
5972 pkg_failed=yes
5973 fi
5974 else
5975 pkg_failed=untried
5976 fi
5977 if test -n "$SYSTEMD_DAEMON_LIBS"; then
5978 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
5979 elif test -n "$PKG_CONFIG"; then
5980 if test -n "$PKG_CONFIG" && \
5981 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
5982 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
5983 ac_status=$?
5984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5985 test $ac_status = 0; }; then
5986 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
5987 test "x$?" != "x0" && pkg_failed=yes
5988 else
5989 pkg_failed=yes
5990 fi
5991 else
5992 pkg_failed=untried
5993 fi
5994
5995
5996
5997 if test $pkg_failed = yes; then
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 printf "%s\n" "no" >&6; }
6000
6001 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6002 _pkg_short_errors_supported=yes
6003 else
6004 _pkg_short_errors_supported=no
6005 fi
6006 if test $_pkg_short_errors_supported = yes; then
6007 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
6008 else
6009 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
6010 fi
6011 # Put the nasty error message in config.log where it belongs
6012 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
6013
6014 if test "x$USE_SYSTEMD_DAEMON" = "xyes"
6015 then :
6016 as_fn_error $? "systemd startup notification support requested, but libsystemd-daemon not found." "$LINENO" 5
6017
6018 fi
6019
6020 elif test $pkg_failed = untried; then
6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 printf "%s\n" "no" >&6; }
6023 if test "x$USE_SYSTEMD_DAEMON" = "xyes"
6024 then :
6025 as_fn_error $? "systemd startup notification support requested, but libsystemd-daemon not found." "$LINENO" 5
6026
6027 fi
6028
6029 else
6030 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
6031 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6033 printf "%s\n" "yes" >&6; }
6034
6035 printf "%s\n" "#define USE_SYSTEMD_DAEMON 1" >>confdefs.h
6036
6037 fi
6038
6039 else
6040 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
6041 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6043 printf "%s\n" "yes" >&6; }
6044
6045 printf "%s\n" "#define USE_SYSTEMD_DAEMON 1" >>confdefs.h
6046
6047 fi
6048
6049 fi
6050
6051 if test "x$GCC" = "xyes"; then \
6052 CFLAGS+=" -Wall -Wextra"; \
6053 CXXFLAGS+=" -Wall -Wextra"; \
6054 fi
6055
6056 ac_config_files="$ac_config_files Makefile conf/Makefile doc/Makefile doc/api/Makefile doc/systemd/Makefile games/Makefile src/Makefile"
6057
6058 cat >confcache <<\_ACEOF
6059 # This file is a shell script that caches the results of configure
6060 # tests run on this system so they can be shared between configure
6061 # scripts and configure runs, see configure's option --config-cache.
6062 # It is not useful on other systems. If it contains results you don't
6063 # want to keep, you may remove or edit it.
6064 #
6065 # config.status only pays attention to the cache file if you give it
6066 # the --recheck option to rerun configure.
6067 #
6068 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6070 # following values.
6071
6072 _ACEOF
6073
6074 # The following way of writing the cache mishandles newlines in values,
6075 # but we know of no workaround that is simple, portable, and efficient.
6076 # So, we kill variables containing newlines.
6077 # Ultrix sh set writes to stderr and can't be redirected directly,
6078 # and sets the high bit in the cache file unless we assign to the vars.
6079 (
6080 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6081 eval ac_val=\$$ac_var
6082 case $ac_val in #(
6083 *${as_nl}*)
6084 case $ac_var in #(
6085 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6086 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6087 esac
6088 case $ac_var in #(
6089 _ | IFS | as_nl) ;; #(
6090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6091 *) { eval $ac_var=; unset $ac_var;} ;;
6092 esac ;;
6093 esac
6094 done
6095
6096 (set) 2>&1 |
6097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6098 *${as_nl}ac_space=\ *)
6099 # `set' does not quote correctly, so add quotes: double-quote
6100 # substitution turns \\\\ into \\, and sed turns \\ into \.
6101 sed -n \
6102 "s/'/'\\\\''/g;
6103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6104 ;; #(
6105 *)
6106 # `set' quotes correctly as required by POSIX, so do not add quotes.
6107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6108 ;;
6109 esac |
6110 sort
6111 ) |
6112 sed '
6113 /^ac_cv_env_/b end
6114 t clear
6115 :clear
6116 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6117 t end
6118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6119 :end' >>confcache
6120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6121 if test -w "$cache_file"; then
6122 if test "x$cache_file" != "x/dev/null"; then
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6124 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6125 if test ! -f "$cache_file" || test -h "$cache_file"; then
6126 cat confcache >"$cache_file"
6127 else
6128 case $cache_file in #(
6129 */* | ?:*)
6130 mv -f confcache "$cache_file"$$ &&
6131 mv -f "$cache_file"$$ "$cache_file" ;; #(
6132 *)
6133 mv -f confcache "$cache_file" ;;
6134 esac
6135 fi
6136 fi
6137 else
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6139 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6140 fi
6141 fi
6142 rm -f confcache
6143
6144 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6145 # Let make expand exec_prefix.
6146 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6147
6148 DEFS=-DHAVE_CONFIG_H
6149
6150 ac_libobjs=
6151 ac_ltlibobjs=
6152 U=
6153 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6154 # 1. Remove the extension, and $U if already installed.
6155 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6156 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6157 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6158 # will be set to the directory where LIBOBJS objects are built.
6159 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6160 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6161 done
6162 LIBOBJS=$ac_libobjs
6163
6164 LTLIBOBJS=$ac_ltlibobjs
6165
6166
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6168 printf %s "checking that generated files are newer than configure... " >&6; }
6169 if test -n "$am_sleep_pid"; then
6170 # Hide warnings about reused PIDs.
6171 wait $am_sleep_pid 2>/dev/null
6172 fi
6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6174 printf "%s\n" "done" >&6; }
6175 if test -n "$EXEEXT"; then
6176 am__EXEEXT_TRUE=
6177 am__EXEEXT_FALSE='#'
6178 else
6179 am__EXEEXT_TRUE='#'
6180 am__EXEEXT_FALSE=
6181 fi
6182
6183 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6184 as_fn_error $? "conditional \"AMDEP\" was never defined.
6185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6186 fi
6187 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6188 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
6189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6190 fi
6191 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6192 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6194 fi
6195 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6196 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
6197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6198 fi
6199
6200 : "${CONFIG_STATUS=./config.status}"
6201 ac_write_fail=0
6202 ac_clean_files_save=$ac_clean_files
6203 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6205 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6206 as_write_fail=0
6207 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6208 #! $SHELL
6209 # Generated by $as_me.
6210 # Run this file to recreate the current configuration.
6211 # Compiler output produced by configure, useful for debugging
6212 # configure, is in config.log if it exists.
6213
6214 debug=false
6215 ac_cs_recheck=false
6216 ac_cs_silent=false
6217
6218 SHELL=\${CONFIG_SHELL-$SHELL}
6219 export SHELL
6220 _ASEOF
6221 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6222 ## -------------------- ##
6223 ## M4sh Initialization. ##
6224 ## -------------------- ##
6225
6226 # Be more Bourne compatible
6227 DUALCASE=1; export DUALCASE # for MKS sh
6228 as_nop=:
6229 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6230 then :
6231 emulate sh
6232 NULLCMD=:
6233 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6234 # is contrary to our usage. Disable this feature.
6235 alias -g '${1+"$@"}'='"$@"'
6236 setopt NO_GLOB_SUBST
6237 else $as_nop
6238 case `(set -o) 2>/dev/null` in #(
6239 *posix*) :
6240 set -o posix ;; #(
6241 *) :
6242 ;;
6243 esac
6244 fi
6245
6246
6247
6248 # Reset variables that may have inherited troublesome values from
6249 # the environment.
6250
6251 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6252 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6253 # side effect of setting IFS to empty, thus disabling word splitting.)
6254 # Quoting is to prevent editors from complaining about space-tab.
6255 as_nl='
6256 '
6257 export as_nl
6258 IFS=" "" $as_nl"
6259
6260 PS1='$ '
6261 PS2='> '
6262 PS4='+ '
6263
6264 # Ensure predictable behavior from utilities with locale-dependent output.
6265 LC_ALL=C
6266 export LC_ALL
6267 LANGUAGE=C
6268 export LANGUAGE
6269
6270 # We cannot yet rely on "unset" to work, but we need these variables
6271 # to be unset--not just set to an empty or harmless value--now, to
6272 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6273 # also avoids known problems related to "unset" and subshell syntax
6274 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6275 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6276 do eval test \${$as_var+y} \
6277 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6278 done
6279
6280 # Ensure that fds 0, 1, and 2 are open.
6281 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6282 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6283 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6284
6285 # The user is always right.
6286 if ${PATH_SEPARATOR+false} :; then
6287 PATH_SEPARATOR=:
6288 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6289 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6290 PATH_SEPARATOR=';'
6291 }
6292 fi
6293
6294
6295 # Find who we are. Look in the path if we contain no directory separator.
6296 as_myself=
6297 case $0 in #((
6298 *[\\/]* ) as_myself=$0 ;;
6299 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302 IFS=$as_save_IFS
6303 case $as_dir in #(((
6304 '') as_dir=./ ;;
6305 */) ;;
6306 *) as_dir=$as_dir/ ;;
6307 esac
6308 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6309 done
6310 IFS=$as_save_IFS
6311
6312 ;;
6313 esac
6314 # We did not find ourselves, most probably we were run as `sh COMMAND'
6315 # in which case we are not to be found in the path.
6316 if test "x$as_myself" = x; then
6317 as_myself=$0
6318 fi
6319 if test ! -f "$as_myself"; then
6320 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6321 exit 1
6322 fi
6323
6324
6325
6326 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6327 # ----------------------------------------
6328 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6329 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6330 # script with STATUS, using 1 if that was 0.
6331 as_fn_error ()
6332 {
6333 as_status=$1; test $as_status -eq 0 && as_status=1
6334 if test "$4"; then
6335 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6337 fi
6338 printf "%s\n" "$as_me: error: $2" >&2
6339 as_fn_exit $as_status
6340 } # as_fn_error
6341
6342
6343
6344 # as_fn_set_status STATUS
6345 # -----------------------
6346 # Set $? to STATUS, without forking.
6347 as_fn_set_status ()
6348 {
6349 return $1
6350 } # as_fn_set_status
6351
6352 # as_fn_exit STATUS
6353 # -----------------
6354 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6355 as_fn_exit ()
6356 {
6357 set +e
6358 as_fn_set_status $1
6359 exit $1
6360 } # as_fn_exit
6361
6362 # as_fn_unset VAR
6363 # ---------------
6364 # Portably unset VAR.
6365 as_fn_unset ()
6366 {
6367 { eval $1=; unset $1;}
6368 }
6369 as_unset=as_fn_unset
6370
6371 # as_fn_append VAR VALUE
6372 # ----------------------
6373 # Append the text in VALUE to the end of the definition contained in VAR. Take
6374 # advantage of any shell optimizations that allow amortized linear growth over
6375 # repeated appends, instead of the typical quadratic growth present in naive
6376 # implementations.
6377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6378 then :
6379 eval 'as_fn_append ()
6380 {
6381 eval $1+=\$2
6382 }'
6383 else $as_nop
6384 as_fn_append ()
6385 {
6386 eval $1=\$$1\$2
6387 }
6388 fi # as_fn_append
6389
6390 # as_fn_arith ARG...
6391 # ------------------
6392 # Perform arithmetic evaluation on the ARGs, and store the result in the
6393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6394 # must be portable across $(()) and expr.
6395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6396 then :
6397 eval 'as_fn_arith ()
6398 {
6399 as_val=$(( $* ))
6400 }'
6401 else $as_nop
6402 as_fn_arith ()
6403 {
6404 as_val=`expr "$@" || test $? -eq 1`
6405 }
6406 fi # as_fn_arith
6407
6408
6409 if expr a : '\(a\)' >/dev/null 2>&1 &&
6410 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6411 as_expr=expr
6412 else
6413 as_expr=false
6414 fi
6415
6416 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6417 as_basename=basename
6418 else
6419 as_basename=false
6420 fi
6421
6422 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6423 as_dirname=dirname
6424 else
6425 as_dirname=false
6426 fi
6427
6428 as_me=`$as_basename -- "$0" ||
6429 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6430 X"$0" : 'X\(//\)$' \| \
6431 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6432 printf "%s\n" X/"$0" |
6433 sed '/^.*\/\([^/][^/]*\)\/*$/{
6434 s//\1/
6435 q
6436 }
6437 /^X\/\(\/\/\)$/{
6438 s//\1/
6439 q
6440 }
6441 /^X\/\(\/\).*/{
6442 s//\1/
6443 q
6444 }
6445 s/.*/./; q'`
6446
6447 # Avoid depending upon Character Ranges.
6448 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6449 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6450 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6451 as_cr_digits='0123456789'
6452 as_cr_alnum=$as_cr_Letters$as_cr_digits
6453
6454
6455 # Determine whether it's possible to make 'echo' print without a newline.
6456 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6457 # for compatibility with existing Makefiles.
6458 ECHO_C= ECHO_N= ECHO_T=
6459 case `echo -n x` in #(((((
6460 -n*)
6461 case `echo 'xy\c'` in
6462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6463 xy) ECHO_C='\c';;
6464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6465 ECHO_T=' ';;
6466 esac;;
6467 *)
6468 ECHO_N='-n';;
6469 esac
6470
6471 # For backward compatibility with old third-party macros, we provide
6472 # the shell variables $as_echo and $as_echo_n. New code should use
6473 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6474 as_echo='printf %s\n'
6475 as_echo_n='printf %s'
6476
6477 rm -f conf$$ conf$$.exe conf$$.file
6478 if test -d conf$$.dir; then
6479 rm -f conf$$.dir/conf$$.file
6480 else
6481 rm -f conf$$.dir
6482 mkdir conf$$.dir 2>/dev/null
6483 fi
6484 if (echo >conf$$.file) 2>/dev/null; then
6485 if ln -s conf$$.file conf$$ 2>/dev/null; then
6486 as_ln_s='ln -s'
6487 # ... but there are two gotchas:
6488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6490 # In both cases, we have to default to `cp -pR'.
6491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6492 as_ln_s='cp -pR'
6493 elif ln conf$$.file conf$$ 2>/dev/null; then
6494 as_ln_s=ln
6495 else
6496 as_ln_s='cp -pR'
6497 fi
6498 else
6499 as_ln_s='cp -pR'
6500 fi
6501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6502 rmdir conf$$.dir 2>/dev/null
6503
6504
6505 # as_fn_mkdir_p
6506 # -------------
6507 # Create "$as_dir" as a directory, including parents if necessary.
6508 as_fn_mkdir_p ()
6509 {
6510
6511 case $as_dir in #(
6512 -*) as_dir=./$as_dir;;
6513 esac
6514 test -d "$as_dir" || eval $as_mkdir_p || {
6515 as_dirs=
6516 while :; do
6517 case $as_dir in #(
6518 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6519 *) as_qdir=$as_dir;;
6520 esac
6521 as_dirs="'$as_qdir' $as_dirs"
6522 as_dir=`$as_dirname -- "$as_dir" ||
6523 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6524 X"$as_dir" : 'X\(//\)[^/]' \| \
6525 X"$as_dir" : 'X\(//\)$' \| \
6526 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6527 printf "%s\n" X"$as_dir" |
6528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6529 s//\1/
6530 q
6531 }
6532 /^X\(\/\/\)[^/].*/{
6533 s//\1/
6534 q
6535 }
6536 /^X\(\/\/\)$/{
6537 s//\1/
6538 q
6539 }
6540 /^X\(\/\).*/{
6541 s//\1/
6542 q
6543 }
6544 s/.*/./; q'`
6545 test -d "$as_dir" && break
6546 done
6547 test -z "$as_dirs" || eval "mkdir $as_dirs"
6548 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6549
6550
6551 } # as_fn_mkdir_p
6552 if mkdir -p . 2>/dev/null; then
6553 as_mkdir_p='mkdir -p "$as_dir"'
6554 else
6555 test -d ./-p && rmdir ./-p
6556 as_mkdir_p=false
6557 fi
6558
6559
6560 # as_fn_executable_p FILE
6561 # -----------------------
6562 # Test if FILE is an executable regular file.
6563 as_fn_executable_p ()
6564 {
6565 test -f "$1" && test -x "$1"
6566 } # as_fn_executable_p
6567 as_test_x='test -x'
6568 as_executable_p=as_fn_executable_p
6569
6570 # Sed expression to map a string onto a valid CPP name.
6571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6572
6573 # Sed expression to map a string onto a valid variable name.
6574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6575
6576
6577 exec 6>&1
6578 ## ----------------------------------- ##
6579 ## Main body of $CONFIG_STATUS script. ##
6580 ## ----------------------------------- ##
6581 _ASEOF
6582 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6583
6584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6585 # Save the log message, to keep $0 and so on meaningful, and to
6586 # report actual input values of CONFIG_FILES etc. instead of their
6587 # values after options handling.
6588 ac_log="
6589 This file was extended by monopd $as_me 0.10.4, which was
6590 generated by GNU Autoconf 2.71. Invocation command line was
6591
6592 CONFIG_FILES = $CONFIG_FILES
6593 CONFIG_HEADERS = $CONFIG_HEADERS
6594 CONFIG_LINKS = $CONFIG_LINKS
6595 CONFIG_COMMANDS = $CONFIG_COMMANDS
6596 $ $0 $@
6597
6598 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6599 "
6600
6601 _ACEOF
6602
6603 case $ac_config_files in *"
6604 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6605 esac
6606
6607 case $ac_config_headers in *"
6608 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6609 esac
6610
6611
6612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6613 # Files that config.status was made for.
6614 config_files="$ac_config_files"
6615 config_headers="$ac_config_headers"
6616 config_commands="$ac_config_commands"
6617
6618 _ACEOF
6619
6620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6621 ac_cs_usage="\
6622 \`$as_me' instantiates files and other configuration actions
6623 from templates according to the current configuration. Unless the files
6624 and actions are specified as TAGs, all are instantiated by default.
6625
6626 Usage: $0 [OPTION]... [TAG]...
6627
6628 -h, --help print this help, then exit
6629 -V, --version print version number and configuration settings, then exit
6630 --config print configuration, then exit
6631 -q, --quiet, --silent
6632 do not print progress messages
6633 -d, --debug don't remove temporary files
6634 --recheck update $as_me by reconfiguring in the same conditions
6635 --file=FILE[:TEMPLATE]
6636 instantiate the configuration file FILE
6637 --header=FILE[:TEMPLATE]
6638 instantiate the configuration header FILE
6639
6640 Configuration files:
6641 $config_files
6642
6643 Configuration headers:
6644 $config_headers
6645
6646 Configuration commands:
6647 $config_commands
6648
6649 Report bugs to the package provider."
6650
6651 _ACEOF
6652 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6653 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6655 ac_cs_config='$ac_cs_config_escaped'
6656 ac_cs_version="\\
6657 monopd config.status 0.10.4
6658 configured by $0, generated by GNU Autoconf 2.71,
6659 with options \\"\$ac_cs_config\\"
6660
6661 Copyright (C) 2021 Free Software Foundation, Inc.
6662 This config.status script is free software; the Free Software Foundation
6663 gives unlimited permission to copy, distribute and modify it."
6664
6665 ac_pwd='$ac_pwd'
6666 srcdir='$srcdir'
6667 INSTALL='$INSTALL'
6668 MKDIR_P='$MKDIR_P'
6669 AWK='$AWK'
6670 test -n "\$AWK" || AWK=awk
6671 _ACEOF
6672
6673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6674 # The default lists apply if the user does not specify any file.
6675 ac_need_defaults=:
6676 while test $# != 0
6677 do
6678 case $1 in
6679 --*=?*)
6680 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6681 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6682 ac_shift=:
6683 ;;
6684 --*=)
6685 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6686 ac_optarg=
6687 ac_shift=:
6688 ;;
6689 *)
6690 ac_option=$1
6691 ac_optarg=$2
6692 ac_shift=shift
6693 ;;
6694 esac
6695
6696 case $ac_option in
6697 # Handling of the options.
6698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6699 ac_cs_recheck=: ;;
6700 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6701 printf "%s\n" "$ac_cs_version"; exit ;;
6702 --config | --confi | --conf | --con | --co | --c )
6703 printf "%s\n" "$ac_cs_config"; exit ;;
6704 --debug | --debu | --deb | --de | --d | -d )
6705 debug=: ;;
6706 --file | --fil | --fi | --f )
6707 $ac_shift
6708 case $ac_optarg in
6709 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6710 '') as_fn_error $? "missing file argument" ;;
6711 esac
6712 as_fn_append CONFIG_FILES " '$ac_optarg'"
6713 ac_need_defaults=false;;
6714 --header | --heade | --head | --hea )
6715 $ac_shift
6716 case $ac_optarg in
6717 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6718 esac
6719 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6720 ac_need_defaults=false;;
6721 --he | --h)
6722 # Conflict between --help and --header
6723 as_fn_error $? "ambiguous option: \`$1'
6724 Try \`$0 --help' for more information.";;
6725 --help | --hel | -h )
6726 printf "%s\n" "$ac_cs_usage"; exit ;;
6727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6728 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6729 ac_cs_silent=: ;;
6730
6731 # This is an error.
6732 -*) as_fn_error $? "unrecognized option: \`$1'
6733 Try \`$0 --help' for more information." ;;
6734
6735 *) as_fn_append ac_config_targets " $1"
6736 ac_need_defaults=false ;;
6737
6738 esac
6739 shift
6740 done
6741
6742 ac_configure_extra_args=
6743
6744 if $ac_cs_silent; then
6745 exec 6>/dev/null
6746 ac_configure_extra_args="$ac_configure_extra_args --silent"
6747 fi
6748
6749 _ACEOF
6750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6751 if \$ac_cs_recheck; then
6752 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6753 shift
6754 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6755 CONFIG_SHELL='$SHELL'
6756 export CONFIG_SHELL
6757 exec "\$@"
6758 fi
6759
6760 _ACEOF
6761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6762 exec 5>>config.log
6763 {
6764 echo
6765 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6766 ## Running $as_me. ##
6767 _ASBOX
6768 printf "%s\n" "$ac_log"
6769 } >&5
6770
6771 _ACEOF
6772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6773 #
6774 # INIT-COMMANDS
6775 #
6776 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
6777
6778 _ACEOF
6779
6780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6781
6782 # Handling of arguments.
6783 for ac_config_target in $ac_config_targets
6784 do
6785 case $ac_config_target in
6786 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6787 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6788 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6789 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
6790 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6791 "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
6792 "doc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES doc/systemd/Makefile" ;;
6793 "games/Makefile") CONFIG_FILES="$CONFIG_FILES games/Makefile" ;;
6794 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6795
6796 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6797 esac
6798 done
6799
6800
6801 # If the user did not use the arguments to specify the items to instantiate,
6802 # then the envvar interface is used. Set only those that are not.
6803 # We use the long form for the default assignment because of an extremely
6804 # bizarre bug on SunOS 4.1.3.
6805 if $ac_need_defaults; then
6806 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6807 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
6808 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
6809 fi
6810
6811 # Have a temporary directory for convenience. Make it in the build tree
6812 # simply because there is no reason against having it here, and in addition,
6813 # creating and moving files from /tmp can sometimes cause problems.
6814 # Hook for its removal unless debugging.
6815 # Note that there is a small window in which the directory will not be cleaned:
6816 # after its creation but before its name has been assigned to `$tmp'.
6817 $debug ||
6818 {
6819 tmp= ac_tmp=
6820 trap 'exit_status=$?
6821 : "${ac_tmp:=$tmp}"
6822 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6823 ' 0
6824 trap 'as_fn_exit 1' 1 2 13 15
6825 }
6826 # Create a (secure) tmp directory for tmp files.
6827
6828 {
6829 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6830 test -d "$tmp"
6831 } ||
6832 {
6833 tmp=./conf$$-$RANDOM
6834 (umask 077 && mkdir "$tmp")
6835 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6836 ac_tmp=$tmp
6837
6838 # Set up the scripts for CONFIG_FILES section.
6839 # No need to generate them if there are no CONFIG_FILES.
6840 # This happens for instance with `./config.status config.h'.
6841 if test -n "$CONFIG_FILES"; then
6842
6843
6844 ac_cr=`echo X | tr X '\015'`
6845 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6846 # But we know of no other shell where ac_cr would be empty at this
6847 # point, so we can use a bashism as a fallback.
6848 if test "x$ac_cr" = x; then
6849 eval ac_cr=\$\'\\r\'
6850 fi
6851 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6852 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6853 ac_cs_awk_cr='\\r'
6854 else
6855 ac_cs_awk_cr=$ac_cr
6856 fi
6857
6858 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6859 _ACEOF
6860
6861
6862 {
6863 echo "cat >conf$$subs.awk <<_ACEOF" &&
6864 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6865 echo "_ACEOF"
6866 } >conf$$subs.sh ||
6867 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6868 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6869 ac_delim='%!_!# '
6870 for ac_last_try in false false false false false :; do
6871 . ./conf$$subs.sh ||
6872 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6873
6874 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6875 if test $ac_delim_n = $ac_delim_num; then
6876 break
6877 elif $ac_last_try; then
6878 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6879 else
6880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6881 fi
6882 done
6883 rm -f conf$$subs.sh
6884
6885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6886 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6887 _ACEOF
6888 sed -n '
6889 h
6890 s/^/S["/; s/!.*/"]=/
6891 p
6892 g
6893 s/^[^!]*!//
6894 :repl
6895 t repl
6896 s/'"$ac_delim"'$//
6897 t delim
6898 :nl
6899 h
6900 s/\(.\{148\}\)..*/\1/
6901 t more1
6902 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6903 p
6904 n
6905 b repl
6906 :more1
6907 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6908 p
6909 g
6910 s/.\{148\}//
6911 t nl
6912 :delim
6913 h
6914 s/\(.\{148\}\)..*/\1/
6915 t more2
6916 s/["\\]/\\&/g; s/^/"/; s/$/"/
6917 p
6918 b
6919 :more2
6920 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6921 p
6922 g
6923 s/.\{148\}//
6924 t delim
6925 ' <conf$$subs.awk | sed '
6926 /^[^""]/{
6927 N
6928 s/\n//
6929 }
6930 ' >>$CONFIG_STATUS || ac_write_fail=1
6931 rm -f conf$$subs.awk
6932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6933 _ACAWK
6934 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6935 for (key in S) S_is_set[key] = 1
6936 FS = ""
6937
6938 }
6939 {
6940 line = $ 0
6941 nfields = split(line, field, "@")
6942 substed = 0
6943 len = length(field[1])
6944 for (i = 2; i < nfields; i++) {
6945 key = field[i]
6946 keylen = length(key)
6947 if (S_is_set[key]) {
6948 value = S[key]
6949 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6950 len += length(value) + length(field[++i])
6951 substed = 1
6952 } else
6953 len += 1 + keylen
6954 }
6955
6956 print line
6957 }
6958
6959 _ACAWK
6960 _ACEOF
6961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6962 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6963 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6964 else
6965 cat
6966 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6967 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6968 _ACEOF
6969
6970 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6971 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6972 # trailing colons and then remove the whole line if VPATH becomes empty
6973 # (actually we leave an empty line to preserve line numbers).
6974 if test "x$srcdir" = x.; then
6975 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6976 h
6977 s///
6978 s/^/:/
6979 s/[ ]*$/:/
6980 s/:\$(srcdir):/:/g
6981 s/:\${srcdir}:/:/g
6982 s/:@srcdir@:/:/g
6983 s/^:*//
6984 s/:*$//
6985 x
6986 s/\(=[ ]*\).*/\1/
6987 G
6988 s/\n//
6989 s/^[^=]*=[ ]*$//
6990 }'
6991 fi
6992
6993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6994 fi # test -n "$CONFIG_FILES"
6995
6996 # Set up the scripts for CONFIG_HEADERS section.
6997 # No need to generate them if there are no CONFIG_HEADERS.
6998 # This happens for instance with `./config.status Makefile'.
6999 if test -n "$CONFIG_HEADERS"; then
7000 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7001 BEGIN {
7002 _ACEOF
7003
7004 # Transform confdefs.h into an awk script `defines.awk', embedded as
7005 # here-document in config.status, that substitutes the proper values into
7006 # config.h.in to produce config.h.
7007
7008 # Create a delimiter string that does not exist in confdefs.h, to ease
7009 # handling of long lines.
7010 ac_delim='%!_!# '
7011 for ac_last_try in false false :; do
7012 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7013 if test -z "$ac_tt"; then
7014 break
7015 elif $ac_last_try; then
7016 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7017 else
7018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7019 fi
7020 done
7021
7022 # For the awk script, D is an array of macro values keyed by name,
7023 # likewise P contains macro parameters if any. Preserve backslash
7024 # newline sequences.
7025
7026 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7027 sed -n '
7028 s/.\{148\}/&'"$ac_delim"'/g
7029 t rset
7030 :rset
7031 s/^[ ]*#[ ]*define[ ][ ]*/ /
7032 t def
7033 d
7034 :def
7035 s/\\$//
7036 t bsnl
7037 s/["\\]/\\&/g
7038 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7039 D["\1"]=" \3"/p
7040 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7041 d
7042 :bsnl
7043 s/["\\]/\\&/g
7044 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7045 D["\1"]=" \3\\\\\\n"\\/p
7046 t cont
7047 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7048 t cont
7049 d
7050 :cont
7051 n
7052 s/.\{148\}/&'"$ac_delim"'/g
7053 t clear
7054 :clear
7055 s/\\$//
7056 t bsnlc
7057 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7058 d
7059 :bsnlc
7060 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7061 b cont
7062 ' <confdefs.h | sed '
7063 s/'"$ac_delim"'/"\\\
7064 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7065
7066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7067 for (key in D) D_is_set[key] = 1
7068 FS = ""
7069 }
7070 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7071 line = \$ 0
7072 split(line, arg, " ")
7073 if (arg[1] == "#") {
7074 defundef = arg[2]
7075 mac1 = arg[3]
7076 } else {
7077 defundef = substr(arg[1], 2)
7078 mac1 = arg[2]
7079 }
7080 split(mac1, mac2, "(") #)
7081 macro = mac2[1]
7082 prefix = substr(line, 1, index(line, defundef) - 1)
7083 if (D_is_set[macro]) {
7084 # Preserve the white space surrounding the "#".
7085 print prefix "define", macro P[macro] D[macro]
7086 next
7087 } else {
7088 # Replace #undef with comments. This is necessary, for example,
7089 # in the case of _POSIX_SOURCE, which is predefined and required
7090 # on some systems where configure will not decide to define it.
7091 if (defundef == "undef") {
7092 print "/*", prefix defundef, macro, "*/"
7093 next
7094 }
7095 }
7096 }
7097 { print }
7098 _ACAWK
7099 _ACEOF
7100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7101 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7102 fi # test -n "$CONFIG_HEADERS"
7103
7104
7105 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7106 shift
7107 for ac_tag
7108 do
7109 case $ac_tag in
7110 :[FHLC]) ac_mode=$ac_tag; continue;;
7111 esac
7112 case $ac_mode$ac_tag in
7113 :[FHL]*:*);;
7114 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7115 :[FH]-) ac_tag=-:-;;
7116 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7117 esac
7118 ac_save_IFS=$IFS
7119 IFS=:
7120 set x $ac_tag
7121 IFS=$ac_save_IFS
7122 shift
7123 ac_file=$1
7124 shift
7125
7126 case $ac_mode in
7127 :L) ac_source=$1;;
7128 :[FH])
7129 ac_file_inputs=
7130 for ac_f
7131 do
7132 case $ac_f in
7133 -) ac_f="$ac_tmp/stdin";;
7134 *) # Look for the file first in the build tree, then in the source tree
7135 # (if the path is not absolute). The absolute path cannot be DOS-style,
7136 # because $ac_f cannot contain `:'.
7137 test -f "$ac_f" ||
7138 case $ac_f in
7139 [\\/$]*) false;;
7140 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7141 esac ||
7142 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7143 esac
7144 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7145 as_fn_append ac_file_inputs " '$ac_f'"
7146 done
7147
7148 # Let's still pretend it is `configure' which instantiates (i.e., don't
7149 # use $as_me), people would be surprised to read:
7150 # /* config.h. Generated by config.status. */
7151 configure_input='Generated from '`
7152 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7153 `' by configure.'
7154 if test x"$ac_file" != x-; then
7155 configure_input="$ac_file. $configure_input"
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7157 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7158 fi
7159 # Neutralize special characters interpreted by sed in replacement strings.
7160 case $configure_input in #(
7161 *\&* | *\|* | *\\* )
7162 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7163 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7164 *) ac_sed_conf_input=$configure_input;;
7165 esac
7166
7167 case $ac_tag in
7168 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7170 esac
7171 ;;
7172 esac
7173
7174 ac_dir=`$as_dirname -- "$ac_file" ||
7175 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7176 X"$ac_file" : 'X\(//\)[^/]' \| \
7177 X"$ac_file" : 'X\(//\)$' \| \
7178 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7179 printf "%s\n" X"$ac_file" |
7180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7181 s//\1/
7182 q
7183 }
7184 /^X\(\/\/\)[^/].*/{
7185 s//\1/
7186 q
7187 }
7188 /^X\(\/\/\)$/{
7189 s//\1/
7190 q
7191 }
7192 /^X\(\/\).*/{
7193 s//\1/
7194 q
7195 }
7196 s/.*/./; q'`
7197 as_dir="$ac_dir"; as_fn_mkdir_p
7198 ac_builddir=.
7199
7200 case "$ac_dir" in
7201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7202 *)
7203 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7204 # A ".." for each directory in $ac_dir_suffix.
7205 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7206 case $ac_top_builddir_sub in
7207 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7208 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7209 esac ;;
7210 esac
7211 ac_abs_top_builddir=$ac_pwd
7212 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7213 # for backward compatibility:
7214 ac_top_builddir=$ac_top_build_prefix
7215
7216 case $srcdir in
7217 .) # We are building in place.
7218 ac_srcdir=.
7219 ac_top_srcdir=$ac_top_builddir_sub
7220 ac_abs_top_srcdir=$ac_pwd ;;
7221 [\\/]* | ?:[\\/]* ) # Absolute name.
7222 ac_srcdir=$srcdir$ac_dir_suffix;
7223 ac_top_srcdir=$srcdir
7224 ac_abs_top_srcdir=$srcdir ;;
7225 *) # Relative name.
7226 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7227 ac_top_srcdir=$ac_top_build_prefix$srcdir
7228 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7229 esac
7230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7231
7232
7233 case $ac_mode in
7234 :F)
7235 #
7236 # CONFIG_FILE
7237 #
7238
7239 case $INSTALL in
7240 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7241 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7242 esac
7243 ac_MKDIR_P=$MKDIR_P
7244 case $MKDIR_P in
7245 [\\/$]* | ?:[\\/]* ) ;;
7246 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7247 esac
7248 _ACEOF
7249
7250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7251 # If the template does not know about datarootdir, expand it.
7252 # FIXME: This hack should be removed a few years after 2.60.
7253 ac_datarootdir_hack=; ac_datarootdir_seen=
7254 ac_sed_dataroot='
7255 /datarootdir/ {
7256 p
7257 q
7258 }
7259 /@datadir@/p
7260 /@docdir@/p
7261 /@infodir@/p
7262 /@localedir@/p
7263 /@mandir@/p'
7264 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7265 *datarootdir*) ac_datarootdir_seen=yes;;
7266 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7268 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7269 _ACEOF
7270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7271 ac_datarootdir_hack='
7272 s&@datadir@&$datadir&g
7273 s&@docdir@&$docdir&g
7274 s&@infodir@&$infodir&g
7275 s&@localedir@&$localedir&g
7276 s&@mandir@&$mandir&g
7277 s&\\\${datarootdir}&$datarootdir&g' ;;
7278 esac
7279 _ACEOF
7280
7281 # Neutralize VPATH when `$srcdir' = `.'.
7282 # Shell code in configure.ac might set extrasub.
7283 # FIXME: do we really want to maintain this feature?
7284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7285 ac_sed_extra="$ac_vpsub
7286 $extrasub
7287 _ACEOF
7288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7289 :t
7290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7291 s|@configure_input@|$ac_sed_conf_input|;t t
7292 s&@top_builddir@&$ac_top_builddir_sub&;t t
7293 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7294 s&@srcdir@&$ac_srcdir&;t t
7295 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7296 s&@top_srcdir@&$ac_top_srcdir&;t t
7297 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7298 s&@builddir@&$ac_builddir&;t t
7299 s&@abs_builddir@&$ac_abs_builddir&;t t
7300 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7301 s&@INSTALL@&$ac_INSTALL&;t t
7302 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7303 $ac_datarootdir_hack
7304 "
7305 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7306 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7307
7308 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7309 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7310 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7311 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7313 which seems to be undefined. Please make sure it is defined" >&5
7314 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7315 which seems to be undefined. Please make sure it is defined" >&2;}
7316
7317 rm -f "$ac_tmp/stdin"
7318 case $ac_file in
7319 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7320 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7321 esac \
7322 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7323 ;;
7324 :H)
7325 #
7326 # CONFIG_HEADER
7327 #
7328 if test x"$ac_file" != x-; then
7329 {
7330 printf "%s\n" "/* $configure_input */" >&1 \
7331 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7332 } >"$ac_tmp/config.h" \
7333 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7334 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7336 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
7337 else
7338 rm -f "$ac_file"
7339 mv "$ac_tmp/config.h" "$ac_file" \
7340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7341 fi
7342 else
7343 printf "%s\n" "/* $configure_input */" >&1 \
7344 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7345 || as_fn_error $? "could not create -" "$LINENO" 5
7346 fi
7347 # Compute "$ac_file"'s index in $config_headers.
7348 _am_arg="$ac_file"
7349 _am_stamp_count=1
7350 for _am_header in $config_headers :; do
7351 case $_am_header in
7352 $_am_arg | $_am_arg:* )
7353 break ;;
7354 * )
7355 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7356 esac
7357 done
7358 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7359 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7360 X"$_am_arg" : 'X\(//\)[^/]' \| \
7361 X"$_am_arg" : 'X\(//\)$' \| \
7362 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7363 printf "%s\n" X"$_am_arg" |
7364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7365 s//\1/
7366 q
7367 }
7368 /^X\(\/\/\)[^/].*/{
7369 s//\1/
7370 q
7371 }
7372 /^X\(\/\/\)$/{
7373 s//\1/
7374 q
7375 }
7376 /^X\(\/\).*/{
7377 s//\1/
7378 q
7379 }
7380 s/.*/./; q'`/stamp-h$_am_stamp_count
7381 ;;
7382
7383 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7384 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
7385 ;;
7386 esac
7387
7388
7389 case $ac_file$ac_mode in
7390 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7391 # Older Autoconf quotes --file arguments for eval, but not when files
7392 # are listed without --file. Let's play safe and only enable the eval
7393 # if we detect the quoting.
7394 # TODO: see whether this extra hack can be removed once we start
7395 # requiring Autoconf 2.70 or later.
7396 case $CONFIG_FILES in #(
7397 *\'*) :
7398 eval set x "$CONFIG_FILES" ;; #(
7399 *) :
7400 set x $CONFIG_FILES ;; #(
7401 *) :
7402 ;;
7403 esac
7404 shift
7405 # Used to flag and report bootstrapping failures.
7406 am_rc=0
7407 for am_mf
7408 do
7409 # Strip MF so we end up with the name of the file.
7410 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
7411 # Check whether this is an Automake generated Makefile which includes
7412 # dependency-tracking related rules and includes.
7413 # Grep'ing the whole file directly is not great: AIX grep has a line
7414 # limit of 2048, but all sed's we know have understand at least 4000.
7415 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
7416 || continue
7417 am_dirpart=`$as_dirname -- "$am_mf" ||
7418 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7419 X"$am_mf" : 'X\(//\)[^/]' \| \
7420 X"$am_mf" : 'X\(//\)$' \| \
7421 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7422 printf "%s\n" X"$am_mf" |
7423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7424 s//\1/
7425 q
7426 }
7427 /^X\(\/\/\)[^/].*/{
7428 s//\1/
7429 q
7430 }
7431 /^X\(\/\/\)$/{
7432 s//\1/
7433 q
7434 }
7435 /^X\(\/\).*/{
7436 s//\1/
7437 q
7438 }
7439 s/.*/./; q'`
7440 am_filepart=`$as_basename -- "$am_mf" ||
7441 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7442 X"$am_mf" : 'X\(//\)$' \| \
7443 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7444 printf "%s\n" X/"$am_mf" |
7445 sed '/^.*\/\([^/][^/]*\)\/*$/{
7446 s//\1/
7447 q
7448 }
7449 /^X\/\(\/\/\)$/{
7450 s//\1/
7451 q
7452 }
7453 /^X\/\(\/\).*/{
7454 s//\1/
7455 q
7456 }
7457 s/.*/./; q'`
7458 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7459 && sed -e '/# am--include-marker/d' "$am_filepart" \
7460 | $MAKE -f - am--depfiles" >&5
7461 (cd "$am_dirpart" \
7462 && sed -e '/# am--include-marker/d' "$am_filepart" \
7463 | $MAKE -f - am--depfiles) >&5 2>&5
7464 ac_status=$?
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } || am_rc=$?
7467 done
7468 if test $am_rc -ne 0; then
7469 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7470 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7471 as_fn_error $? "Something went wrong bootstrapping makefile fragments
7472 for automatic dependency tracking. If GNU make was not used, consider
7473 re-running the configure script with MAKE=\"gmake\" (or whatever is
7474 necessary). You can also try re-running configure with the
7475 '--disable-dependency-tracking' option to at least be able to build
7476 the package (albeit without support for automatic dependency tracking).
7477 See \`config.log' for more details" "$LINENO" 5; }
7478 fi
7479 { am_dirpart=; unset am_dirpart;}
7480 { am_filepart=; unset am_filepart;}
7481 { am_mf=; unset am_mf;}
7482 { am_rc=; unset am_rc;}
7483 rm -f conftest-deps.mk
7484 }
7485 ;;
7486
7487 esac
7488 done # for ac_tag
7489
7490
7491 as_fn_exit 0
7492 _ACEOF
7493 ac_clean_files=$ac_clean_files_save
7494
7495 test $ac_write_fail = 0 ||
7496 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7497
7498
7499 # configure is writing to config.log, and then calls config.status.
7500 # config.status does its own redirection, appending to config.log.
7501 # Unfortunately, on DOS this fails, as config.log is still kept open
7502 # by configure, so config.status won't be able to write to it; its
7503 # output is simply discarded. So we exec the FD to /dev/null,
7504 # effectively closing config.log, so it can be properly (re)opened and
7505 # appended to by config.status. When coming back to configure, we
7506 # need to make the FD available again.
7507 if test "$no_create" != yes; then
7508 ac_cs_success=:
7509 ac_config_status_args=
7510 test "$silent" = yes &&
7511 ac_config_status_args="$ac_config_status_args --quiet"
7512 exec 5>/dev/null
7513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7514 exec 5>>config.log
7515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7516 # would make configure fail if this is the last instruction.
7517 $ac_cs_success || as_fn_exit 1
7518 fi
7519 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7521 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7522 fi
7523
7524