Debian Codegraph @

configure

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