2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for CUPS 2.5b1.
5 # Report bugs to <https://github.com/openprinting/cups/issues>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \
${$as_var+y} \
69 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
74 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
81 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself
=$0 ;;
91 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
120 _as_can_reexec
=no
; export _as_can_reexec
;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
129 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec
=; unset _as_can_reexec
;}
142 if test "x$CONFIG_SHELL" = x
; then
143 as_bourne_compatible
="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required
="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
186 if (eval "$as_required") 2>/dev
/null
192 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
198 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
204 *) as_dir
=$as_dir/ ;;
209 for as_base
in sh bash ksh sh5
; do
210 # Try only shells that exist, to save several forks.
211 as_shell
=$as_dir$as_base
212 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
213 as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
215 CONFIG_SHELL
=$as_shell as_have_required
=yes
216 if as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev
/null
230 if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
231 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
247 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
249 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
261 if test x
$as_have_required = xno
263 printf "%s\n" "$0: This script requires a shell more modern than all"
264 printf "%s\n" "$0: the shells that I found on your system."
265 if test ${ZSH_VERSION+y} ; then
266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://github.com/openprinting/cups/issues about your
271 $0: system, including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Do nothing but, unlike ":", preserve the value of $?.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir
=.
/$as_dir;;
333 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
337 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs
="'$as_qdir' $as_dirs"
341 as_dir
=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 printf "%s\n" X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
367 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p
()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
387 eval 'as_fn_append ()
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
412 as_val
=`expr "$@" || test $? -eq 1`
418 # Do nothing but, unlike ":", preserve the value of $?.
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
432 as_status
=$1; test $as_status -eq 0 && as_status
=1
434 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit
$as_status
441 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
448 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
454 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
460 as_me
=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
479 # Avoid depending upon Character Ranges.
480 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits
='0123456789'
484 as_cr_alnum
=$as_cr_Letters$as_cr_digits
487 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
488 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
507 chmod +x
"$as_me.lineno" ||
508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec
=no
; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
518 # Exit status is that of the last command.
523 # Determine whether it's possible to make 'echo' print without a newline.
524 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525 # for compatibility with existing Makefiles.
526 ECHO_C
= ECHO_N
= ECHO_T
=
527 case `echo -n x` in #(((((
529 case `echo 'xy\c'` in
530 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
539 # For backward compatibility with old third-party macros, we provide
540 # the shell variables $as_echo and $as_echo_n. New code should use
541 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542 as_echo
='printf %s\n'
543 as_echo_n
='printf %s'
546 rm -f conf$$ conf$$.exe conf$$.
file
547 if test -d conf$$.dir
; then
548 rm -f conf$$.dir
/conf$$.
file
551 mkdir conf$$.dir
2>/dev
/null
553 if (echo >conf$$.
file) 2>/dev
/null
; then
554 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
556 # ... but there are two gotchas:
557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559 # In both cases, we have to default to `cp -pR'.
560 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
562 elif ln conf$$.
file conf$$
2>/dev
/null
; then
570 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
571 rmdir conf$$.dir
2>/dev
/null
573 if mkdir
-p .
2>/dev
/null
; then
574 as_mkdir_p
='mkdir -p "$as_dir"'
576 test -d .
/-p && rmdir .
/-p
581 as_executable_p
=as_fn_executable_p
583 # Sed expression to map a string onto a valid CPP name.
584 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586 # Sed expression to map a string onto a valid variable name.
587 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
594 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595 # so uname gets run too.
596 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
601 ac_default_prefix
=/usr
/local
603 ac_config_libobj_dir
=.
610 # Identity of this package.
612 PACKAGE_TARNAME
='cups'
613 PACKAGE_VERSION
='2.5b1'
614 PACKAGE_STRING
='CUPS 2.5b1'
615 PACKAGE_BUGREPORT
='https://github.com/openprinting/cups/issues'
616 PACKAGE_URL
='https://openprinting.github.io/cups'
618 # Factoring default headers for most tests.
619 ac_includes_default
="\
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
636 #ifdef HAVE_STRINGS_H
637 # include <strings.h>
639 #ifdef HAVE_SYS_TYPES_H
640 # include <sys/types.h>
642 #ifdef HAVE_SYS_STAT_H
643 # include <sys/stat.h>
650 ac_subst_vars
='LTLIBOBJS
661 CUPS_DEFAULT_PRINTCAP
662 CUPS_PRIMARY_SYSTEM_GROUP
667 CUPS_BROWSE_LOCAL_PROTOCOLS
671 CUPS_ACCESS_LOG_LEVEL
678 CUPS_CONFIG_FILE_PERM
710 CUPS_DEFAULT_GSSSERVICENAME
713 CUPS_LISTEN_DOMAINSOCKET
714 CUPS_DEFAULT_DOMAINSOCKET
760 CUPS_DEFAULT_PRINTOPERATOR_AUTH
775 PKGCONFIG_LIBS_STATIC
847 program_transform_name
860 enable_option_checking
881 enable_libtool_unsupported
913 with_config_file_perm
920 with_access_log_level
925 enable_default_shared
936 with_idle_exit_timeout
937 with_systemd_timeoutstartsec
939 ac_precious_vars
='build_alias
953 # Initialize some variables set by options.
955 ac_init_version
=false
956 ac_unrecognized_opts
=
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
967 program_transform_name
=s
,x
,x
,
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir
='${exec_prefix}/bin'
982 sbindir
='${exec_prefix}/sbin'
983 libexecdir
='${exec_prefix}/libexec'
984 datarootdir
='${prefix}/share'
985 datadir
='${datarootdir}'
986 sysconfdir
='${prefix}/etc'
987 sharedstatedir
='${prefix}/com'
988 localstatedir
='${prefix}/var'
989 runstatedir
='${localstatedir}/run'
990 includedir
='${prefix}/include'
991 oldincludedir
='/usr/include'
992 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
993 infodir
='${datarootdir}/info'
998 libdir
='${exec_prefix}/lib'
999 localedir
='${datarootdir}/locale'
1000 mandir
='${datarootdir}/man'
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
1008 eval $ac_prev=\
$ac_option
1014 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 case $ac_dashdash$ac_option in
1023 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1025 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1026 bindir
=$ac_optarg ;;
1028 -build |
--build |
--buil |
--bui |
--bu)
1029 ac_prev
=build_alias
;;
1030 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1031 build_alias
=$ac_optarg ;;
1033 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1034 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1035 ac_prev
=cache_file
;;
1036 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1037 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1038 cache_file
=$ac_optarg ;;
1040 --config-cache |
-C)
1041 cache_file
=config.cache
;;
1043 -datadir |
--datadir |
--datadi |
--datad)
1045 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1046 datadir
=$ac_optarg ;;
1048 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1049 |
--dataroo |
--dataro |
--datar)
1050 ac_prev
=datarootdir
;;
1051 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1052 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1053 datarootdir
=$ac_optarg ;;
1055 -disable-* |
--disable-*)
1056 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1059 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
1060 ac_useropt_orig
=$ac_useropt
1061 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "enable_
$ac_useropt"
1066 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep
=', ';;
1069 eval enable_
$ac_useropt=no
;;
1071 -docdir |
--docdir |
--docdi |
--doc |
--do)
1073 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1074 docdir
=$ac_optarg ;;
1076 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1078 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1079 dvidir
=$ac_optarg ;;
1081 -enable-* |
--enable-*)
1082 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1085 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
1086 ac_useropt_orig
=$ac_useropt
1087 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_
$ac_useropt"
1092 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep
=', ';;
1095 eval enable_
$ac_useropt=\
$ac_optarg ;;
1097 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1098 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1099 |
--exec |
--exe |
--ex)
1100 ac_prev
=exec_prefix
;;
1101 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1102 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1103 |
--exec=* |
--exe=* |
--ex=*)
1104 exec_prefix
=$ac_optarg ;;
1106 -gas |
--gas |
--ga |
--g)
1107 # Obsolete; use --with-gas.
1110 -help |
--help |
--hel |
--he |
-h)
1111 ac_init_help
=long
;;
1112 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1113 ac_init_help
=recursive
;;
1114 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1115 ac_init_help
=short
;;
1117 -host |
--host |
--hos |
--ho)
1118 ac_prev
=host_alias
;;
1119 -host=* |
--host=* |
--hos=* |
--ho=*)
1120 host_alias
=$ac_optarg ;;
1122 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1124 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1126 htmldir
=$ac_optarg ;;
1128 -includedir |
--includedir |
--includedi |
--included |
--include \
1129 |
--includ |
--inclu |
--incl |
--inc)
1130 ac_prev
=includedir
;;
1131 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1132 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1133 includedir
=$ac_optarg ;;
1135 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1137 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1138 infodir
=$ac_optarg ;;
1140 -libdir |
--libdir |
--libdi |
--libd)
1142 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1143 libdir
=$ac_optarg ;;
1145 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1146 |
--libexe |
--libex |
--libe)
1147 ac_prev
=libexecdir
;;
1148 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1149 |
--libexe=* |
--libex=* |
--libe=*)
1150 libexecdir
=$ac_optarg ;;
1152 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1153 ac_prev
=localedir
;;
1154 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1155 localedir
=$ac_optarg ;;
1157 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1158 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1159 ac_prev
=localstatedir
;;
1160 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1161 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1162 localstatedir
=$ac_optarg ;;
1164 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1166 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1167 mandir
=$ac_optarg ;;
1169 -nfp |
--nfp |
--nf)
1170 # Obsolete; use --without-fp.
1173 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1174 |
--no-cr |
--no-c |
-n)
1177 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1178 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1181 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1182 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1183 |
--oldin |
--oldi |
--old |
--ol |
--o)
1184 ac_prev
=oldincludedir
;;
1185 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1186 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1187 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1188 oldincludedir
=$ac_optarg ;;
1190 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1192 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1193 prefix
=$ac_optarg ;;
1195 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1196 |
--program-pre |
--program-pr |
--program-p)
1197 ac_prev
=program_prefix
;;
1198 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1199 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1200 program_prefix
=$ac_optarg ;;
1202 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1203 |
--program-suf |
--program-su |
--program-s)
1204 ac_prev
=program_suffix
;;
1205 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1206 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1207 program_suffix
=$ac_optarg ;;
1209 -program-transform-name |
--program-transform-name \
1210 |
--program-transform-nam |
--program-transform-na \
1211 |
--program-transform-n |
--program-transform- \
1212 |
--program-transform |
--program-transfor \
1213 |
--program-transfo |
--program-transf \
1214 |
--program-trans |
--program-tran \
1215 |
--progr-tra |
--program-tr |
--program-t)
1216 ac_prev
=program_transform_name
;;
1217 -program-transform-name=* |
--program-transform-name=* \
1218 |
--program-transform-nam=* |
--program-transform-na=* \
1219 |
--program-transform-n=* |
--program-transform-=* \
1220 |
--program-transform=* |
--program-transfor=* \
1221 |
--program-transfo=* |
--program-transf=* \
1222 |
--program-trans=* |
--program-tran=* \
1223 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1224 program_transform_name
=$ac_optarg ;;
1226 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1228 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1229 pdfdir
=$ac_optarg ;;
1231 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1233 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1236 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1237 |
-silent |
--silent |
--silen |
--sile |
--sil)
1240 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1241 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1242 |
--run |
--ru |
--r)
1243 ac_prev
=runstatedir
;;
1244 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1245 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1246 |
--run=* |
--ru=* |
--r=*)
1247 runstatedir
=$ac_optarg ;;
1249 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1251 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1253 sbindir
=$ac_optarg ;;
1255 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1256 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1257 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1259 ac_prev
=sharedstatedir
;;
1260 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1261 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1262 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1264 sharedstatedir
=$ac_optarg ;;
1266 -site |
--site |
--sit)
1268 -site=* |
--site=* |
--sit=*)
1271 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1273 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1274 srcdir
=$ac_optarg ;;
1276 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1277 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1278 ac_prev
=sysconfdir
;;
1279 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1280 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1281 sysconfdir
=$ac_optarg ;;
1283 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1284 ac_prev
=target_alias
;;
1285 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1286 target_alias
=$ac_optarg ;;
1288 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1291 -version |
--version |
--versio |
--versi |
--vers |
-V)
1292 ac_init_version
=: ;;
1295 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1298 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1299 ac_useropt_orig
=$ac_useropt
1300 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1305 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306 ac_unrecognized_sep
=', ';;
1308 eval with_
$ac_useropt=\
$ac_optarg ;;
1310 -without-* |
--without-*)
1311 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1314 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1315 ac_useropt_orig
=$ac_useropt
1316 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1321 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322 ac_unrecognized_sep
=', ';;
1324 eval with_
$ac_useropt=no
;;
1327 # Obsolete; use --with-x.
1330 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1331 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1332 ac_prev
=x_includes
;;
1333 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1334 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1335 x_includes
=$ac_optarg ;;
1337 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1338 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1339 ac_prev
=x_libraries
;;
1340 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1341 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1342 x_libraries
=$ac_optarg ;;
1344 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1345 Try \`$0 --help' for more information"
1349 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1350 # Reject names that are not valid shell variable names.
1351 case $ac_envvar in #(
1352 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1353 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1355 eval $ac_envvar=\
$ac_optarg
1356 export $ac_envvar ;;
1359 # FIXME: should be removed in autoconf 3.0.
1360 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1362 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1363 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1369 if test -n "$ac_prev"; then
1370 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1371 as_fn_error $?
"missing argument to $ac_option"
1374 if test -n "$ac_unrecognized_opts"; then
1375 case $enable_option_checking in
1377 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1378 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 # Check all directory arguments for consistency.
1383 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386 libdir localedir mandir runstatedir
1388 eval ac_val
=\$
$ac_var
1389 # Remove trailing slashes.
1392 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\
$ac_val;;
1395 # Be sure to have absolute directory names.
1397 [\\/$
]* | ?
:[\\/]* ) continue;;
1398 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1400 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1403 # There might be people who depend on the old broken behavior: `$host'
1404 # used to hold the argument of --host etc.
1405 # FIXME: To remove some day.
1408 target
=$target_alias
1410 # FIXME: To remove some day.
1411 if test "x$host_alias" != x
; then
1412 if test "x$build_alias" = x
; then
1413 cross_compiling
=maybe
1414 elif test "x$build_alias" != "x$host_alias"; then
1420 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1422 test "$silent" = yes && exec 6>/dev
/null
1425 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di
=`ls -di .` &&
1427 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1428 as_fn_error $?
"working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 as_fn_error $?
"pwd does not report name of working directory"
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435 ac_srcdir_defaulted
=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir
=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 printf "%s\n" X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1465 ac_srcdir_defaulted
=no
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1469 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1471 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1483 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 for ac_var
in $ac_precious_vars; do
1486 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1488 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1493 # Report the --help message.
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1499 \`configure' configures CUPS 2.5b1 to adapt to many kinds of systems.
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1506 Defaults for the options are specified in brackets.
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking ...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1530 For better control, use the options below.
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1558 --build=BUILD configure
for building on BUILD
[guessed
]
1559 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1563 if test -n "$ac_init_help"; then
1564 case $ac_init_help in
1565 short | recursive
) echo "Configuration of CUPS 2.5b1:";;
1570 --disable-option-checking ignore unrecognized
--enable/--with options
1571 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1572 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1573 --enable-static install static libraries
1574 --enable-mallinfo build with malloc debug logging
1575 --enable-libpaper build with libpaper support
1576 --enable-libusb use libusb
for USB printing
1577 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1578 --enable-acl build with POSIX ACL support
1579 --disable-dbus build without DBUS support
1580 --disable-shared do not create shared libraries
1581 --enable-libtool-unsupported=/path
/to
/libtool
1582 build with libtool
(UNSUPPORTED
)
1583 --enable-debug build with debugging symbols
1584 --enable-debug-guards build with memory allocation guards
1585 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1586 --enable-maintainer turn on maintainer mode
(warnings as errors
)
1587 --enable-unit-tests build and run unit tests
1588 --enable-relro build with the relro option
1589 --enable-sanitizer build with AddressSanitizer
1590 --enable-gssapi enable (deprecated
) GSSAPI
/Kerberos support
1591 --disable-pam disable PAM support
1592 --disable-largefile omit support
for large files
1593 --enable-page-logging enable page_log by default
1594 --enable-sync-on-close enable SyncOnClose
(off by default
)
1595 --disable-browsing disable Browsing by default
1596 --disable-default-shared
1597 disable DefaultShared by default
1598 --disable-raw-printing do not allow raw printing by default
1599 --enable-webif enable the web interface by default
, default
=no
for
1603 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1604 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1605 --with-cups-build set "pkg-config --variable=build" string
1606 --with-dbusdir set DBUS configuration directory
1607 --with-adminkey set the default SystemAuthKey value
1608 --with-operkey set the default operator @AUTHKEY value
1609 --with-components set components to build
: "all" (default
) builds
1610 everything
, "core" builds libcups and ipptool
,
1611 "libcups" builds just libcups
, "libcupslite" builds
1612 just libcups without driver support
1613 --with-cachedir set path
for cache files
1614 --with-icondir set path
for application icons
1615 --with-menudir set path
for application menus
1616 --with-docdir set path
for documentation
1617 --with-pkgconfpath set path
for cups.pc
file
1618 --with-logdir set path
for log files
1619 --with-rundir set transient run-time state directory
1620 --with-optim set optimization flags
1621 --with-archflags set default architecture flags
1622 --with-ldarchflags set program architecture flags
1623 --with-domainsocket set unix domain socket name
1624 --with-gssservicename set default gss service name
1625 --with-tls=... use gnutls or openssl
for TLS support
1626 --with-pam-module set the PAM module to use
1627 --with-dnssd=...
enable DNS Service Discovery support
(avahi
,
1628 mdnsresponder
, no
, yes)
1629 --with-dnssd-libs set directory
for DNS Service Discovery library
1630 --with-dnssd-includes set directory
for DNS Service Discovery header files
1631 --with-container=... configure to use
in container
(none
, snap
)
1632 --with-ondemand=... Specify the on-demand launch interface
(launchd
,
1634 --with-systemd set directory
for systemd service files
1635 --with-smfmanifestdir set path
for Solaris SMF manifest
1636 --with-rcdir set path
for rc scripts
1637 --with-rclevels set run levels
for rc scripts
1638 --with-rcstart set start number
for rc scripts
1639 --with-rcstop set stop number
for rc scripts
1640 --with-xinetd set path
for xinetd config files
1641 --with-languages set installed languages
, default
=all
1642 --with-exe-file-perm set default executable permissions value
,
1644 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1645 --with-cupsd-file-perm set default cupsd permissions
, default
=0700
1646 --with-log-file-perm set default LogFilePerm value
, default
=0644
1647 --with-max-log-size set default MaxLogSize value
, default
=1m
1648 --with-error-policy set default ErrorPolicy value
, default
=stop-printer
1649 --with-fatal-errors set default FatalErrors value
, default
=config
1650 --with-log-level set default LogLevel value
, default
=warn
1651 --with-access-log-level set default AccessLogLevel value
, default
=none
1652 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1653 --with-cups-user set default user
for CUPS
1654 --with-cups-group set default group
for CUPS
1655 --with-system-groups set default system groups
for CUPS
1656 --with-printcap set default printcap
file
1657 --with-max-copies set default max copies value
, default
=9999
1658 --with-snmp-address set SNMP query address
, default
=auto
1659 --with-snmp-community set SNMP community
, default
=public
1660 --with-ipp-port set port number
for IPP
, default
=631
1661 --with-idle-exit-timeout
1662 set the default value
for IdleExitTimeout
,
1664 --with-systemd-timeoutstartsec
1665 set TimeoutStartSec value
in cups.service
,
1666 default
=default value
in systemd
1668 Some influential environment variables
:
1669 CC C compiler
command
1670 CFLAGS C compiler flags
1671 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1672 nonstandard directory
<lib dir
>
1673 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1674 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1675 you have headers
in a nonstandard directory
<include dir
>
1677 CXX C
++ compiler
command
1678 CXXFLAGS C
++ compiler flags
1680 Use these variables to override the choices made by
`configure' or to help
1681 it to find libraries and programs with nonstandard names/locations.
1683 Report bugs to <https://github.com/openprinting/cups/issues>.
1684 CUPS home page: <https://openprinting.github.io/cups>.
1689 if test "$ac_init_help" = "recursive"; then
1690 # If there are subdirs, report their specific --help.
1691 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1692 test -d "$ac_dir" ||
1693 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 ac_dir_suffix=/`printf "%s\n" "$ac_dir" |
sed 's|^\.[\\/]||'`
1701 # A ".." for each directory in $ac_dir_suffix.
1702 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1703 case $ac_top_builddir_sub in
1704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1708 ac_abs_top_builddir=$ac_pwd
1709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1710 # for backward compatibility:
1711 ac_top_builddir=$ac_top_build_prefix
1714 .) # We are building in place.
1716 ac_top_srcdir=$ac_top_builddir_sub
1717 ac_abs_top_srcdir=$ac_pwd ;;
1718 [\\/]* | ?:[\\/]* ) # Absolute name.
1719 ac_srcdir=$srcdir$ac_dir_suffix;
1720 ac_top_srcdir=$srcdir
1721 ac_abs_top_srcdir=$srcdir ;;
1723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724 ac_top_srcdir=$ac_top_build_prefix$srcdir
1725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1729 cd "$ac_dir" || { ac_status=$?; continue; }
1730 # Check for configure.gnu first; this name is used for a wrapper for
1731 # Metaconfig's "Configure" on case-insensitive file systems.
1732 if test -f "$ac_srcdir/configure.gnu"; then
1734 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735 elif test -f "$ac_srcdir/configure"; then
1737 $SHELL "$ac_srcdir/configure" --help=recursive
1739 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1741 cd "$ac_pwd" || { ac_status=$?; break; }
1745 test -n "$ac_init_help" && exit $ac_status
1746 if $ac_init_version; then
1748 CUPS configure 2.5b1
1749 generated by GNU Autoconf 2.71
1751 Copyright (C) 2021 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1758 ## ------------------------ ##
1759 ## Autoconf initialization. ##
1760 ## ------------------------ ##
1762 # ac_fn_c_try_compile LINENO
1763 # --------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest.beam
1769 if { { ac_try="$ac_compile"
1771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1772 *) ac_try_echo
=$ac_try;;
1774 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 printf "%s\n" "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1778 if test -s conftest.err
; then
1779 grep -v '^ *+' conftest.err
>conftest.er1
1780 cat conftest.er1
>&5
1781 mv -f conftest.er1 conftest.err
1783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.
$ac_objext
1791 printf "%s\n" "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.
$ac_ext >&5
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 as_fn_set_status
$ac_retval
1799 } # ac_fn_c_try_compile
1801 # ac_fn_c_try_cpp LINENO
1802 # ----------------------
1803 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1807 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 printf "%s\n" "$ac_try_echo"; } >&5
1814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } > conftest.i && {
1823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1824 test ! -s conftest.err
1829 printf "%s\n" "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1839 # ac_fn_cxx_try_compile LINENO
1840 # ----------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_cxx_try_compile ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext conftest.beam
1846 if { { ac_try="$ac_compile"
1848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1849 *) ac_try_echo
=$ac_try;;
1851 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 printf "%s\n" "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1855 if test -s conftest.err
; then
1856 grep -v '^ *+' conftest.err
>conftest.er1
1857 cat conftest.er1
>&5
1858 mv -f conftest.er1 conftest.err
1860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_cxx_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.
$ac_objext
1868 printf "%s\n" "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.
$ac_ext >&5
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status
$ac_retval
1876 } # ac_fn_cxx_try_compile
1878 # ac_fn_c_try_link LINENO
1879 # -----------------------
1880 # Try to link conftest.$ac_ext, and return whether this succeeded.
1883 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1884 rm -f conftest.
$ac_objext conftest.beam conftest
$ac_exeext
1885 if { { ac_try
="$ac_link"
1887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 printf "%s\n" "$ac_try_echo"; } >&5
1892 (eval "$ac_link") 2>conftest.err
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_c_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest$ac_exeext && {
1904 test "$cross_compiling" = yes ||
1905 test -x conftest$ac_exeext
1910 printf "%s\n" "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1923 } # ac_fn_c_try_link
1925 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists and can be compiled using the include files in
1928 # INCLUDES, setting the cache variable VAR accordingly.
1929 ac_fn_c_check_header_compile ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 printf %s "checking for $2... " >&6; }
1934 if eval test \${$3+y}
1936 printf %s "(cached) " >&6
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1943 if ac_fn_c_try_compile "$LINENO"
1949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 printf "%s\n" "$ac_res" >&6; }
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 } # ac_fn_c_check_header_compile
1958 # ac_fn_c_check_func LINENO FUNC VAR
1959 # ----------------------------------
1960 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1961 ac_fn_c_check_func ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 printf %s "checking for $2... " >&6; }
1966 if eval test \${$3+y}
1968 printf %s "(cached) " >&6
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1974 #define $2 innocuous_$2
1976 /* System header to define __stub macros and hopefully few prototypes,
1977 which can conflict with char $2 (); below. */
1982 /* Override any GCC internal prototype to avoid an error.
1983 Use char because int might match the return type of a GCC
1984 builtin and then its argument prototype would still apply. */
1989 /* The GNU C library defines this for functions which it implements
1990 to always fail with ENOSYS. Some functions are actually named
1991 something starting with __ and the normal name is an alias. */
1992 #if defined __stub_$2 || defined __stub___$2
2004 if ac_fn_c_try_link "$LINENO"
2010 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2011 conftest$ac_exeext conftest.$ac_ext
2014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 printf "%s\n" "$ac_res" >&6; }
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 } # ac_fn_c_check_func
2020 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2021 # ----------------------------------------------------
2022 # Tries to find if the field MEMBER exists in type AGGR, after including
2023 # INCLUDES, setting cache variable VAR accordingly.
2024 ac_fn_c_check_member ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2028 printf %s "checking for $2.$3... " >&6; }
2029 if eval test \${$4+y}
2031 printf %s "(cached) " >&6
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2046 if ac_fn_c_try_compile "$LINENO"
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2057 if (sizeof ac_aggr.$3)
2063 if ac_fn_c_try_compile "$LINENO"
2069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 printf "%s\n" "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 } # ac_fn_c_check_member
2079 ac_configure_args_raw=
2084 ac_arg=`printf "%s\n" "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2086 as_fn_append ac_configure_args_raw " '$ac_arg'"
2089 case $ac_configure_args_raw in
2093 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2094 ac_unsafe_a="$ac_unsafe_z#~
"
2095 ac_safe_unquote="s
/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g
"
2096 ac_configure_args_raw=` printf "%s
\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2099 cat >config.log <<_ACEOF
2100 This file contains any messages produced by compilers while
2101 running configure, to aid debugging if configure makes a mistake.
2103 It was created by CUPS $as_me 2.5b1, which was
2104 generated by GNU Autoconf 2.71. Invocation command line was
2106 $ $0$ac_configure_args_raw
2116 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2122 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2125 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2126 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2127 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2129 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2130 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2131 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 case $as_dir in #(((
2142 *) as_dir=$as_dir/ ;;
2144 printf "%s
\n" "PATH
: $as_dir"
2160 # Keep a trace of the command line.
2161 # Strip out --no-create and --no-recursion so they do not pile up.
2162 # Strip out --silent because we don't want to record it for future runs.
2163 # Also quote any args containing shell meta-characters.
2164 # Make two passes to allow for proper duplicate-argument suppression.
2168 ac_must_keep_next=false
2174 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2176 | -silent | --silent | --silen | --sile | --sil)
2179 ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2182 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2184 as_fn_append ac_configure_args1 " '$ac_arg'"
2185 if test $ac_must_keep_next = true; then
2186 ac_must_keep_next=false # Got value, back to normal.
2189 *=* | --config-cache | -C | -disable-* | --disable-* \
2190 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2191 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2192 | -with-* | --with-* | -without-* | --without-* | --x)
2193 case "$ac_configure_args0 " in
2194 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197 -* ) ac_must_keep_next=true ;;
2200 as_fn_append ac_configure_args " '$ac_arg'"
2205 { ac_configure_args0=; unset ac_configure_args0;}
2206 { ac_configure_args1=; unset ac_configure_args1;}
2208 # When interrupted or exit'd, cleanup temporary files, and complete
2209 # config.log. We remove comments because anyway the quotes in there
2210 # would cause problems or look ugly.
2211 # WARNING: Use '\'' to represent an apostrophe within the trap.
2212 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2213 trap 'exit_status=$?
2216 # Save into config.log some information that might help in debugging.
2220 printf "%s
\n" "## ---------------- ##
2221 ## Cache variables. ##
2222 ## ---------------- ##"
2224 # The following way of writing the cache mishandles newlines in values,
2226 for ac_var
in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227 eval ac_val
=\$
$ac_var
2231 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2232 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2235 _ | IFS | as_nl
) ;; #(
2236 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
2237 *) { eval $ac_var=; unset $ac_var;} ;;
2242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243 *${as_nl}ac_space
=\
*)
2245 "s/'\''/'\''\\\\'\'''\''/g;
2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2256 printf "%s\n" "## ----------------- ##
2257 ## Output variables. ##
2258 ## ----------------- ##"
2260 for ac_var
in $ac_subst_vars
2262 eval ac_val
=\$
$ac_var
2264 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266 printf "%s\n" "$ac_var='\''$ac_val'\''"
2270 if test -n "$ac_subst_files"; then
2271 printf "%s\n" "## ------------------- ##
2272 ## File substitutions. ##
2273 ## ------------------- ##"
2275 for ac_var in $ac_subst_files
2277 eval ac_val=\$$ac_var
2279 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281 printf "%s\n" "$ac_var='\''$ac_val'\''"
2286 if test -s confdefs.h
; then
2287 printf "%s\n" "## ----------- ##
2294 test "$ac_signal" != 0 &&
2295 printf "%s\n" "$as_me: caught signal $ac_signal"
2296 printf "%s\n" "$as_me: exit $exit_status"
2298 rm -f core
*.core core.conftest.
* &&
2299 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
2302 for ac_signal in 1 2 13 15; do
2303 trap 'ac_signal
='$ac_signal'; as_fn_exit
1' $ac_signal
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest* confdefs.h
2310 printf "%s\n" "/* confdefs.h */" > confdefs.h
2312 # Predefined preprocessor variables.
2314 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2316 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2318 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2320 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2322 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2324 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2327 # Let the site file select an alternate cache file if it wants to.
2328 # Prefer an explicitly selected file to automatically selected ones.
2329 if test -n "$CONFIG_SITE"; then
2330 ac_site_files="$CONFIG_SITE"
2331 elif test "x$prefix" != xNONE; then
2332 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2334 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2337 for ac_site_file in $ac_site_files
2339 case $ac_site_file in #(
2343 ac_site_file=./$ac_site_file ;;
2345 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2347 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2348 sed 's
/^
/|
/' "$ac_site_file" >&5
2350 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
2352 as_fn_error $? "failed to load site script $ac_site_file
2353 See \`config.log
' for more details" "$LINENO" 5; }
2357 if test -r "$cache_file"; then
2358 # Some versions of bash will fail to source /dev/null (special files
2359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2362 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2365 *) . "./$cache_file";;
2369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2370 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2374 # Test code for whether the C compiler supports C89 (global declarations)
2375 ac_c_conftest_c89_globals='
2376 /* Does the compiler advertise C89 conformance?
2377 Do not
test the value of __STDC__
, because some compilers
set it to
0
2378 while being otherwise adequately conformant.
*/
2379 #if !defined __STDC__
2380 # error "Compiler does not advertise C89 conformance"
2386 /* Most of the following tests are stolen from RCS
5.7 src
/conf.sh.
*/
2387 struct buf
{ int x
; };
2388 struct buf
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
2389 static char
*e
(p
, i
)
2395 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
2400 s
= g
(p
, va_arg
(v
,int
));
2405 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
2406 function prototypes and stuff
, but not \xHH hex character constants.
2407 These
do not provoke an error unfortunately
, instead are silently treated
2408 as an
"x". The following induces an error
, until -std is added to get
2409 proper ANSI mode. Curiously
\x00 != x always comes out true
, for an
2410 array size
at least. It is necessary to
write \x00 == 0 to get something
2411 that is true only with
-std.
*/
2412 int osf4_cc_array
['\''\x00'\'' == 0 ?
1 : -1];
2414 /* IBM C
6 for AIX is almost-ANSI by default
, but it replaces macro parameters
2415 inside
strings and character constants.
*/
2416 #define FOO(x) '\''x'\''
2417 int xlc6_cc_array
[FOO
(a
) == '\''x
'\'' ?
1 : -1];
2419 int
test (int i
, double x
);
2420 struct s1
{int
(*f
) (int a
);};
2421 struct s2
{int
(*f
) (double a
);};
2422 int pairnames
(int
, char
**, int
*(*)(struct buf
*, struct stat
*, int
),
2425 # Test code for whether the C compiler supports C89 (body of main).
2426 ac_c_conftest_c89_main='
2427 ok |
= (argc
== 0 || f
(e
, argv
, 0) != argv
[0] || f
(e
, argv
, 1) != argv
[1]);
2430 # Test code for whether the C compiler supports C99 (global declarations)
2431 ac_c_conftest_c99_globals='
2432 // Does the compiler advertise C99 conformance?
2433 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2434 # error "Compiler does not advertise C99 conformance"
2437 #include <stdbool.h>
2438 extern int puts
(const char
*);
2439 extern int
printf (const char
*, ...
);
2440 extern int dprintf
(int
, const char
*, ...
);
2441 extern void
*malloc
(size_t
);
2443 // Check varargs macros. These examples are taken from C99
6.10.3.5.
2444 // dprintf is used instead of fprintf to avoid needing to
declare
2446 #define debug(...) dprintf (2, __VA_ARGS__)
2447 #define showlist(...) puts (#__VA_ARGS__)
2448 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2450 test_varargs_macros
(void
)
2455 debug
("X = %d\n", x
);
2456 showlist
(The first
, second
, and third items.
);
2457 report
(x
>y
, "x is %d but y is %d", x
, y
);
2460 // Check long long types.
2461 #define BIG64 18446744073709551615ull
2462 #define BIG32 4294967295ul
2463 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2465 #error "your preprocessor is broken"
2469 #error "your preprocessor is broken"
2471 static long long int bignum
= -9223372036854775807LL;
2472 static unsigned long long int ubignum
= BIG64
;
2474 struct incomplete_array
2482 const wchar_t
*name
;
2486 typedef const char
*ccp
;
2489 test_restrict
(ccp restrict text
)
2491 // See
if C
++-style comments work.
2492 // Iterate through items via the restricted pointer.
2493 // Also check
for declarations
in for loops.
2494 for (unsigned int i
= 0; *(text
+i
) != '\''\
0'\''; ++i
)
2499 // Check varargs and va_copy.
2501 test_varargs
(const char
*format
, ...
)
2504 va_start
(args
, format
);
2506 va_copy
(args_copy
, args
);
2508 const char
*str
= "";
2516 case '\''s
'\'': // string
2517 str
= va_arg
(args_copy
, const char
*);
2519 case '\''d
'\'': // int
2520 number
= va_arg
(args_copy
, int
);
2522 case '\''f
'\'': // float
2523 fnumber
= va_arg
(args_copy
, double
);
2532 return *str
&& number
&& fnumber
;
2536 # Test code for whether the C compiler supports C99 (body of main).
2537 ac_c_conftest_c99_main='
2539 _Bool success
= false
;
2540 success |
= (argc
!= 0);
2543 if (test_restrict
("String literal") == 0)
2545 char
*restrict newvar
= "Another string";
2548 success
&= test_varargs
("s, d'\'' f .", "string", 65, 34.234);
2549 test_varargs_macros
();
2551 // Check flexible array members.
2552 struct incomplete_array
*ia
=
2553 malloc
(sizeof
(struct incomplete_array
) + (sizeof
(double
) * 10));
2555 for (int i
= 0; i
< ia-
>datasize
; ++i
)
2556 ia-
>data
[i
] = i
* 1.234;
2558 // Check named initializers.
2559 struct named_init ni
= {
2561 .name
= L
"Test wide string",
2562 .average
= 543.34343,
2567 int dynamic_array
[ni.number
];
2568 dynamic_array
[0] = argv
[0][0];
2569 dynamic_array
[ni.number
- 1] = 543;
2571 // work around unused variable warnings
2572 ok |
= (!success || bignum
== 0LL || ubignum
== 0uLL || newvar
[0] == '\''x
'\''
2573 || dynamic_array
[ni.number
- 1] != 543);
2576 # Test code for whether the C compiler supports C11 (global declarations)
2577 ac_c_conftest_c11_globals='
2578 // Does the compiler advertise C11 conformance?
2579 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2580 # error "Compiler does not advertise C11 conformance"
2584 char _Alignas
(double
) aligned_as_double
;
2585 char _Alignas
(0) no_special_alignment
;
2586 extern char aligned_as_int
;
2587 char _Alignas
(0) _Alignas
(int
) aligned_as_int
;
2592 int_alignment
= _Alignof
(int
),
2593 int_array_alignment
= _Alignof
(int
[100]),
2594 char_alignment
= _Alignof
(char
)
2596 _Static_assert
(0 < -_Alignof (int
), "_Alignof is signed");
2599 int _Noreturn does_not_return
(void
) { for (;;) continue; }
2601 // Check _Static_assert.
2602 struct test_static_assert
2605 _Static_assert
(sizeof
(int
) <= sizeof
(long int
),
2606 "_Static_assert does not work in struct");
2610 // Check UTF-8 literals.
2611 #define u8 syntax error!
2612 char const utf8_literal
[] = u8
"happens to be ASCII" "another string";
2614 // Check duplicate typedefs.
2615 typedef long
*long_ptr
;
2616 typedef long int
*long_ptr
;
2617 typedef long_ptr long_ptr
;
2619 // Anonymous structures and unions
-- taken from C11
6.7.2.1 Example
1.
2623 struct
{ int i
; int j
; };
2624 struct
{ int k
; long int l
; } w
;
2630 # Test code for whether the C compiler supports C11 (body of main).
2631 ac_c_conftest_c11_main='
2632 _Static_assert
((offsetof
(struct anonymous
, i
)
2633 == offsetof
(struct anonymous
, w.k
)),
2634 "Anonymous union alignment botch");
2640 # Test code for whether the C compiler supports C11 (complete).
2641 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2642 ${ac_c_conftest_c99_globals}
2643 ${ac_c_conftest_c11_globals}
2646 main (int argc, char **argv)
2649 ${ac_c_conftest_c89_main}
2650 ${ac_c_conftest_c99_main}
2651 ${ac_c_conftest_c11_main}
2656 # Test code for whether the C compiler supports C99 (complete).
2657 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2658 ${ac_c_conftest_c99_globals}
2661 main (int argc, char **argv)
2664 ${ac_c_conftest_c89_main}
2665 ${ac_c_conftest_c99_main}
2670 # Test code for whether the C compiler supports C89 (complete).
2671 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2674 main (int argc, char **argv)
2677 ${ac_c_conftest_c89_main}
2682 # Test code for whether the C++ compiler supports C++98 (global declarations)
2683 ac_cxx_conftest_cxx98_globals='
2684 // Does the compiler advertise C
++98 conformance?
2685 #if !defined __cplusplus || __cplusplus < 199711L
2686 # error "Compiler does not advertise C++98 conformance"
2689 // These inclusions are to reject old compilers that
2690 // lack the unsuffixed header files.
2692 #include <exception>
2694 // <cassert
> and
<cstring
> are
*not
* freestanding headers
in C
++98.
2695 extern void assert
(int
);
2697 extern int strcmp
(const char
*, const char
*);
2700 // Namespaces
, exceptions
, and templates were all added after
"C++ 2.0".
2701 using std
::exception
;
2706 void test_exception_syntax
()
2710 } catch
(const char
*s
) {
2711 // Extra parentheses suppress a warning when building autoconf itself
,
2712 // due to lint rules shared with
more typical C programs.
2713 assert
(!(strcmp
) (s
, "test"));
2717 template
<typename T
> struct test_template
2720 explicit test_template
(T t
) : val
(t
) {}
2721 template
<typename U
> T add
(U u
) { return static_cast
<T
>(u
) + val
; }
2724 } // anonymous namespace
2727 # Test code for whether the C++ compiler supports C++98 (body of main)
2728 ac_cxx_conftest_cxx98_main='
2732 test_exception_syntax
();
2733 test_template
<double
> tt
(2.0);
2734 assert
(tt.add
(4) == 6.0);
2735 assert
(true
&& !false
);
2739 # Test code for whether the C++ compiler supports C++11 (global declarations)
2740 ac_cxx_conftest_cxx11_globals='
2741 // Does the compiler advertise C
++ 2011 conformance?
2742 #if !defined __cplusplus || __cplusplus < 201103L
2743 # error "Compiler does not advertise C++11 conformance"
2748 constexpr int get_val
() { return 20; }
2759 delegate
(int n
) : n
(n
) {}
2760 delegate
(): delegate
(2354) {}
2762 virtual int getval
() { return this-
>n
; };
2767 class overridden
: public delegate
2770 overridden
(int n
): delegate
(n
) {}
2771 virtual int getval
() override final
{ return this-
>n
* 2; }
2777 nocopy
(int i
): i
(i
) {}
2779 nocopy
(const nocopy
&) = delete
;
2780 nocopy
& operator
=(const nocopy
&) = delete
;
2785 // for testing lambda expressions
2786 template
<typename Ret
, typename Fn
> Ret
eval(Fn f
, Ret v
)
2791 // for testing variadic templates and trailing
return types
2792 template
<typename V
> auto
sum(V first
) -> V
2796 template
<typename V
, typename... Args
> auto
sum(V first
, Args... rest
) -> V
2798 return first
+ sum(rest...
);
2803 # Test code for whether the C++ compiler supports C++11 (body of main)
2804 ac_cxx_conftest_cxx11_main='
2806 // Test auto and decltype
2808 auto a2
= 48573953.4;
2809 auto a3
= "String literal";
2812 for (auto i
= a3
; *i
; ++i
) { total
+= *i
; }
2814 decltype
(a2
) a4
= 34895.034;
2818 short sa
[cxx11test
::get_val
()] = { 0 };
2821 // Test initializer lists
2822 cxx11test
::testinit il
= { 4323, 435234.23544 };
2825 // Test range-based
for
2826 int array
[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2827 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2828 for (auto
&x
: array
) { x
+= 23; }
2831 // Test lambda expressions
2832 using cxx11test
::eval;
2833 assert
(eval ([](int x
) { return x
*2; }, 21) == 42);
2835 assert
(eval ([&](double x
) { return d
+= x
; }, 3.0) == 5.0);
2837 assert
(eval ([=](double x
) mutable
{ return d
+= x
; }, 4.0) == 9.0);
2841 // Test use of variadic templates
2842 using cxx11test
::sum;
2845 auto c
= sum(1.0, 2.0, 3.0);
2848 // Test constructor delegation
2849 cxx11test
::delegate d1
;
2850 cxx11test
::delegate d2
();
2851 cxx11test
::delegate d3
(45);
2854 // Test override and final
2855 cxx11test
::overridden o1
(55464);
2862 // Test template brackets
2863 test_template
<::test_template
<int
>> v
(test_template
<int
>(12));
2867 char const
*utf8
= u8
"UTF-8 string \u2500";
2868 char16_t const
*utf16
= u
"UTF-8 string \u2500";
2869 char32_t const
*utf32
= U
"UTF-32 string \u2500";
2873 # Test code for whether the C compiler supports C++11 (complete).
2874 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2875 ${ac_cxx_conftest_cxx11_globals}
2878 main (int argc, char **argv)
2881 ${ac_cxx_conftest_cxx98_main}
2882 ${ac_cxx_conftest_cxx11_main}
2887 # Test code for whether the C compiler supports C++98 (complete).
2888 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2890 main (int argc, char **argv)
2893 ${ac_cxx_conftest_cxx98_main}
2898 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2899 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2900 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2901 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2902 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2903 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2904 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2905 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2906 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2908 # Auxiliary files required by this configure script.
2909 ac_aux_files="config.guess config.sub"
2911 # Locations in which to look for auxiliary files.
2912 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2914 # Search for a directory containing all of the required auxiliary files,
2915 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2916 # If we don't
find one directory that contains all the files we need
,
2917 # we report the set of missing files from the *first* directory in
2918 # $ac_aux_dir_candidates and give up.
2919 ac_missing_aux_files
=""
2920 ac_first_candidate
=:
2921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2924 for as_dir
in $ac_aux_dir_candidates
2927 case $as_dir in #(((
2930 *) as_dir
=$as_dir/ ;;
2934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2935 ac_aux_dir_found
=yes
2937 for ac_aux
in $ac_aux_files
2939 # As a special case, if "install-sh" is required, that requirement
2940 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2941 # and $ac_install_sh is set appropriately for whichever one is found.
2942 if test x
"$ac_aux" = x
"install-sh"
2944 if test -f "${as_dir}install-sh"; then
2945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2946 ac_install_sh
="${as_dir}install-sh -c"
2947 elif test -f "${as_dir}install.sh"; then
2948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2949 ac_install_sh
="${as_dir}install.sh -c"
2950 elif test -f "${as_dir}shtool"; then
2951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2952 ac_install_sh
="${as_dir}shtool install -c"
2955 if $ac_first_candidate; then
2956 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
2962 if test -f "${as_dir}${ac_aux}"; then
2963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2966 if $ac_first_candidate; then
2967 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
2974 if test "$ac_aux_dir_found" = yes; then
2975 ac_aux_dir
="$as_dir"
2978 ac_first_candidate
=false
2987 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2991 # These three variables are undocumented and unsupported,
2992 # and are intended to be withdrawn in a future Autoconf release.
2993 # They can cause serious problems if a builder's source tree is in a directory
2994 # whose full name contains unusual characters.
2995 if test -f "${ac_aux_dir}config.guess"; then
2996 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
2998 if test -f "${ac_aux_dir}config.sub"; then
2999 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
3001 if test -f "$ac_aux_dir/configure"; then
3002 ac_configure
="$SHELL ${ac_aux_dir}configure"
3005 # Check that the precious variables saved in the cache have kept the same
3007 ac_cache_corrupted
=false
3008 for ac_var
in $ac_precious_vars; do
3009 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3010 eval ac_new_set
=\
$ac_env_${ac_var}_set
3011 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3012 eval ac_new_val
=\
$ac_env_${ac_var}_value
3013 case $ac_old_set,$ac_new_set in
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3016 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3017 ac_cache_corrupted
=: ;;
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3020 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3021 ac_cache_corrupted
=: ;;
3024 if test "x$ac_old_val" != "x$ac_new_val"; then
3025 # differences in whitespace do not lead to failure.
3026 ac_old_val_w
=`echo x $ac_old_val`
3027 ac_new_val_w
=`echo x $ac_new_val`
3028 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3030 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3031 ac_cache_corrupted
=:
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3034 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3035 eval $ac_var=\
$ac_old_val
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3038 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3040 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3043 # Pass precious variables to config.status.
3044 if test "$ac_new_set" = set; then
3046 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3047 *) ac_arg
=$ac_var=$ac_new_val ;;
3049 case " $ac_configure_args " in
3050 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3051 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3055 if $ac_cache_corrupted; then
3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3059 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3060 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3061 and start over" "$LINENO" 5
3063 ## -------------------- ##
3064 ## Main body of script. ##
3065 ## -------------------- ##
3068 ac_cpp
='$CPP $CPPFLAGS'
3069 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3070 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3071 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3081 # Make sure we can run config.sub.
3082 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
3083 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3086 printf %s
"checking build system type... " >&6; }
3087 if test ${ac_cv_build+y}
3089 printf %s
"(cached) " >&6
3091 ac_build_alias
=$build_alias
3092 test "x$ac_build_alias" = x
&&
3093 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
3094 test "x$ac_build_alias" = x
&&
3095 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3096 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3097 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3101 printf "%s\n" "$ac_cv_build" >&6; }
3102 case $ac_cv_build in
3104 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3107 ac_save_IFS
=$IFS; IFS
='-'
3113 # Remember, the first character of IFS is used to create $*,
3114 # except with old shells:
3117 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3121 printf %s
"checking host system type... " >&6; }
3122 if test ${ac_cv_host+y}
3124 printf %s
"(cached) " >&6
3126 if test "x$host_alias" = x
; then
3127 ac_cv_host
=$ac_cv_build
3129 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3130 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3135 printf "%s\n" "$ac_cv_host" >&6; }
3138 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3141 ac_save_IFS
=$IFS; IFS
='-'
3147 # Remember, the first character of IFS is used to create $*,
3148 # except with old shells:
3151 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3155 host_os_name
="$(echo $host_os | sed -e '1,$s/[0-9.]*$//g')"
3156 host_os_version
="$(echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}')"
3157 # Linux often does not yield an OS version we can use...
3158 if test "x$host_os_version" = x
3165 if test "$build" = "$host"
3168 # No, build local targets
3173 # Yes, don't build local targets
3179 for ac_prog
in codesign true
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy
$ac_prog; ac_word
=$2
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 printf %s
"checking for $ac_word... " >&6; }
3185 if test ${ac_cv_path_CODE_SIGN+y}
3187 printf %s
"(cached) " >&6
3191 ac_cv_path_CODE_SIGN
="$CODE_SIGN" # Let the user override the test with a path.
3194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3198 case $as_dir in #(((
3201 *) as_dir
=$as_dir/ ;;
3203 for ac_exec_ext
in '' $ac_executable_extensions; do
3204 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3205 ac_cv_path_CODE_SIGN
="$as_dir$ac_word$ac_exec_ext"
3206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3216 CODE_SIGN
=$ac_cv_path_CODE_SIGN
3217 if test -n "$CODE_SIGN"; then
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5
3219 printf "%s\n" "$CODE_SIGN" >&6; }
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 printf "%s\n" "no" >&6; }
3226 test -n "$CODE_SIGN" && break
3231 ac_config_headers
="$ac_config_headers config.h"
3234 CUPS_VERSION
="2.5b1"
3235 CUPS_API_VERSION
="$(echo 2.5b1 | awk -F. '{print $1 ".
" $2}')"
3236 CUPS_BUILD
="cups-$CUPS_VERSION"
3239 # Check whether --with-cups_build was given.
3240 if test ${with_cups_build+y}
3242 withval
=$with_cups_build;
3243 CUPS_BUILD
="$withval"
3252 printf "%s\n" "#define CUPS_SVERSION \"CUPS v$CUPS_VERSION\"" >>confdefs.h
3255 printf "%s\n" "#define CUPS_MINIMAL \"CUPS/$CUPS_VERSION\"" >>confdefs.h
3258 CFLAGS
="${CFLAGS:=}"
3259 CPPFLAGS
="${CPPFLAGS:=}"
3260 CXXFLAGS
="${CXXFLAGS:=}"
3261 LDFLAGS
="${LDFLAGS:=}"
3263 for ac_prog
in gawk mawk nawk
awk
3265 # Extract the first word of "$ac_prog", so it can be a program name with args.
3266 set dummy
$ac_prog; ac_word
=$2
3267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 printf %s
"checking for $ac_word... " >&6; }
3269 if test ${ac_cv_prog_AWK+y}
3271 printf %s
"(cached) " >&6
3273 if test -n "$AWK"; then
3274 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3280 case $as_dir in #(((
3283 *) as_dir
=$as_dir/ ;;
3285 for ac_exec_ext
in '' $ac_executable_extensions; do
3286 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_AWK
="$ac_prog"
3288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3298 if test -n "$AWK"; then
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3300 printf "%s\n" "$AWK" >&6; }
3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 printf "%s\n" "no" >&6; }
3307 test -n "$AWK" && break
3320 ac_cpp
='$CPP $CPPFLAGS'
3321 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3324 if test -n "$ac_tool_prefix"; then
3325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3326 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 printf %s
"checking for $ac_word... " >&6; }
3329 if test ${ac_cv_prog_CC+y}
3331 printf %s
"(cached) " >&6
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC
="$CC" # Let the user override the test.
3336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3340 case $as_dir in #(((
3343 *) as_dir
=$as_dir/ ;;
3345 for ac_exec_ext
in '' $ac_executable_extensions; do
3346 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3358 if test -n "$CC"; then
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 printf "%s\n" "$CC" >&6; }
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 printf "%s\n" "no" >&6; }
3368 if test -z "$ac_cv_prog_CC"; then
3370 # Extract the first word of "gcc", so it can be a program name with args.
3371 set dummy gcc
; ac_word
=$2
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 printf %s
"checking for $ac_word... " >&6; }
3374 if test ${ac_cv_prog_ac_ct_CC+y}
3376 printf %s
"(cached) " >&6
3378 if test -n "$ac_ct_CC"; then
3379 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3385 case $as_dir in #(((
3388 *) as_dir
=$as_dir/ ;;
3390 for ac_exec_ext
in '' $ac_executable_extensions; do
3391 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_ac_ct_CC
="gcc"
3393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3402 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3403 if test -n "$ac_ct_CC"; then
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3405 printf "%s\n" "$ac_ct_CC" >&6; }
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 printf "%s\n" "no" >&6; }
3411 if test "x$ac_ct_CC" = x
; then
3414 case $cross_compiling:$ac_tool_warned in
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3417 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3418 ac_tool_warned
=yes ;;
3426 if test -z "$CC"; then
3427 if test -n "$ac_tool_prefix"; then
3428 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3429 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 printf %s
"checking for $ac_word... " >&6; }
3432 if test ${ac_cv_prog_CC+y}
3434 printf %s
"(cached) " >&6
3436 if test -n "$CC"; then
3437 ac_cv_prog_CC
="$CC" # Let the user override the test.
3439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3443 case $as_dir in #(((
3446 *) as_dir
=$as_dir/ ;;
3448 for ac_exec_ext
in '' $ac_executable_extensions; do
3449 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3461 if test -n "$CC"; then
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 printf "%s\n" "$CC" >&6; }
3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 printf "%s\n" "no" >&6; }
3472 if test -z "$CC"; then
3473 # Extract the first word of "cc", so it can be a program name with args.
3474 set dummy cc
; ac_word
=$2
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 printf %s
"checking for $ac_word... " >&6; }
3477 if test ${ac_cv_prog_CC+y}
3479 printf %s
"(cached) " >&6
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC
="$CC" # Let the user override the test.
3485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3489 case $as_dir in #(((
3492 *) as_dir
=$as_dir/ ;;
3494 for ac_exec_ext
in '' $ac_executable_extensions; do
3495 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3496 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3497 ac_prog_rejected
=yes
3501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3508 if test $ac_prog_rejected = yes; then
3509 # We found a bogon in the path, so make sure we never use it.
3510 set dummy
$ac_cv_prog_CC
3512 if test $# != 0; then
3513 # We chose a different compiler from the bogus one.
3514 # However, it has the same basename, so the bogon will be chosen
3515 # first if we set CC to just the basename; use the full file name.
3517 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
3523 if test -n "$CC"; then
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 printf "%s\n" "$CC" >&6; }
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 printf "%s\n" "no" >&6; }
3533 if test -z "$CC"; then
3534 if test -n "$ac_tool_prefix"; then
3535 for ac_prog
in cl.exe
3537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3538 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 printf %s
"checking for $ac_word... " >&6; }
3541 if test ${ac_cv_prog_CC+y}
3543 printf %s
"(cached) " >&6
3545 if test -n "$CC"; then
3546 ac_cv_prog_CC
="$CC" # Let the user override the test.
3548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3552 case $as_dir in #(((
3555 *) as_dir
=$as_dir/ ;;
3557 for ac_exec_ext
in '' $ac_executable_extensions; do
3558 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3570 if test -n "$CC"; then
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 printf "%s\n" "$CC" >&6; }
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 printf "%s\n" "no" >&6; }
3579 test -n "$CC" && break
3582 if test -z "$CC"; then
3584 for ac_prog
in cl.exe
3586 # Extract the first word of "$ac_prog", so it can be a program name with args.
3587 set dummy
$ac_prog; ac_word
=$2
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 printf %s
"checking for $ac_word... " >&6; }
3590 if test ${ac_cv_prog_ac_ct_CC+y}
3592 printf %s
"(cached) " >&6
3594 if test -n "$ac_ct_CC"; then
3595 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3601 case $as_dir in #(((
3604 *) as_dir
=$as_dir/ ;;
3606 for ac_exec_ext
in '' $ac_executable_extensions; do
3607 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC
="$ac_prog"
3609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3618 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3621 printf "%s\n" "$ac_ct_CC" >&6; }
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 printf "%s\n" "no" >&6; }
3628 test -n "$ac_ct_CC" && break
3631 if test "x$ac_ct_CC" = x
; then
3634 case $cross_compiling:$ac_tool_warned in
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3637 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3638 ac_tool_warned
=yes ;;
3645 if test -z "$CC"; then
3646 if test -n "$ac_tool_prefix"; then
3647 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3648 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 printf %s
"checking for $ac_word... " >&6; }
3651 if test ${ac_cv_prog_CC+y}
3653 printf %s
"(cached) " >&6
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC
="$CC" # Let the user override the test.
3658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3662 case $as_dir in #(((
3665 *) as_dir
=$as_dir/ ;;
3667 for ac_exec_ext
in '' $ac_executable_extensions; do
3668 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3669 ac_cv_prog_CC
="${ac_tool_prefix}clang"
3670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3680 if test -n "$CC"; then
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 printf "%s\n" "$CC" >&6; }
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 printf "%s\n" "no" >&6; }
3690 if test -z "$ac_cv_prog_CC"; then
3692 # Extract the first word of "clang", so it can be a program name with args.
3693 set dummy clang
; ac_word
=$2
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 printf %s
"checking for $ac_word... " >&6; }
3696 if test ${ac_cv_prog_ac_ct_CC+y}
3698 printf %s
"(cached) " >&6
3700 if test -n "$ac_ct_CC"; then
3701 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3707 case $as_dir in #(((
3710 *) as_dir
=$as_dir/ ;;
3712 for ac_exec_ext
in '' $ac_executable_extensions; do
3713 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_ac_ct_CC
="clang"
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3724 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3725 if test -n "$ac_ct_CC"; then
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3727 printf "%s\n" "$ac_ct_CC" >&6; }
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 printf "%s\n" "no" >&6; }
3733 if test "x$ac_ct_CC" = x
; then
3736 case $cross_compiling:$ac_tool_warned in
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3739 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3740 ac_tool_warned
=yes ;;
3751 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $?
"no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details" "$LINENO" 5; }
3756 # Provide some information about the compiler.
3757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3760 for ac_option
in --version -v -V -qversion -version; do
3761 { { ac_try
="$ac_compiler $ac_option >&5"
3763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 printf "%s\n" "$ac_try_echo"; } >&5
3768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3770 if test -s conftest.err; then
3772 ... rest of stderr output deleted ...
3773 10q' conftest.err >conftest.er1
3774 cat conftest.er1 >&5
3776 rm -f conftest.er1 conftest.err
3777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3792 ac_clean_files_save=$ac_clean_files
3793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3794 # Try to create an executable without -o first, disregard a.out.
3795 # It will help us diagnose broken compilers, and finding out an intuition
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798 printf %s "checking whether the C compiler works... " >&6; }
3799 ac_link_default=`printf "%s\n" "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3801 # The possible output files:
3802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3805 for ac_file in $ac_files
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3814 if { { ac_try="$ac_link_default"
3816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3817 *) ac_try_echo
=$ac_try;;
3819 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 printf "%s\n" "$ac_try_echo"; } >&5
3821 (eval "$ac_link_default") 2>&5
3823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }
3826 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3827 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3828 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3829 # so that the user can short-circuit this test for compilers unknown to
3831 for ac_file
in $ac_files ''
3833 test -f "$ac_file" ||
continue
3835 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3838 # We found the default executable, but exeext='' is most
3842 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
3844 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3846 # We set ac_cv_exeext here because the later test for it is not
3847 # safe: cross compilers may not add the suffix if given an `-o'
3848 # argument, so we may need to know it at that point already.
3849 # Even if this section looks crufty: it has the advantage of
3856 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3861 if test -z "$ac_file"
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 printf "%s\n" "no" >&6; }
3865 printf "%s\n" "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.
$ac_ext >&5
3868 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3870 as_fn_error
77 "C compiler cannot create executables
3871 See \`config.log' for more details" "$LINENO" 5; }
3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3874 printf "%s\n" "yes" >&6; }
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3877 printf %s
"checking for C compiler default output file name... " >&6; }
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3879 printf "%s\n" "$ac_file" >&6; }
3880 ac_exeext
=$ac_cv_exeext
3882 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3883 ac_clean_files
=$ac_clean_files_save
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3885 printf %s
"checking for suffix of executables... " >&6; }
3886 if { { ac_try
="$ac_link"
3888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892 printf "%s\n" "$ac_try_echo"; } >&5
3893 (eval "$ac_link") 2>&5
3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; }
3898 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3899 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3900 # work properly (i.e., refer to `conftest.exe'), while it won't with
3902 for ac_file
in conftest.exe conftest conftest.
*; do
3903 test -f "$ac_file" ||
continue
3905 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3906 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3913 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3914 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3915 See \`config.log' for more details" "$LINENO" 5; }
3917 rm -f conftest conftest
$ac_cv_exeext
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3919 printf "%s\n" "$ac_cv_exeext" >&6; }
3921 rm -f conftest.
$ac_ext
3922 EXEEXT
=$ac_cv_exeext
3924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3930 FILE *f = fopen ("conftest.out", "w");
3931 return ferror (f) || fclose (f) != 0;
3937 ac_clean_files
="$ac_clean_files conftest.out"
3938 # Check that the compiler produces executables we can run. If not, either
3939 # the compiler is broken, or we cross compile.
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3941 printf %s
"checking whether we are cross compiling... " >&6; }
3942 if test "$cross_compiling" != yes; then
3943 { { ac_try
="$ac_link"
3945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3949 printf "%s\n" "$ac_try_echo"; } >&5
3950 (eval "$ac_link") 2>&5
3952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953 test $ac_status = 0; }
3954 if { ac_try='./conftest$ac_cv_exeext'
3955 { { case "(($ac_try" in
3956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3957 *) ac_try_echo
=$ac_try;;
3959 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 printf "%s\n" "$ac_try_echo"; } >&5
3961 (eval "$ac_try") 2>&5
3963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; }; then
3967 if test "$cross_compiling" = maybe
; then
3970 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error
77 "cannot run C compiled programs.
3973 If you meant to cross compile, use \`--host'.
3974 See \`config.log' for more details" "$LINENO" 5; }
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3979 printf "%s\n" "$cross_compiling" >&6; }
3981 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3982 ac_clean_files
=$ac_clean_files_save
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3984 printf %s
"checking for suffix of object files... " >&6; }
3985 if test ${ac_cv_objext+y}
3987 printf %s
"(cached) " >&6
3989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
4000 rm -f conftest.o conftest.obj
4001 if { { ac_try
="$ac_compile"
4003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 printf "%s\n" "$ac_try_echo"; } >&5
4008 (eval "$ac_compile") 2>&5
4010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }
4013 for ac_file in conftest.o conftest.obj conftest.*; do
4014 test -f "$ac_file" || continue;
4016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4017 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4022 printf "%s\n" "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4028 See \
`config.log' for more details" "$LINENO" 5; }
4030 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4033 printf "%s\n" "$ac_cv_objext" >&6; }
4034 OBJEXT=$ac_cv_objext
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4037 printf %s "checking whether the compiler supports GNU C... " >&6; }
4038 if test ${ac_cv_c_compiler_gnu+y}
4040 printf %s "(cached) " >&6
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4056 if ac_fn_c_try_compile "$LINENO"
4062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4067 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 if test $ac_compiler_gnu = yes; then
4075 ac_test_CFLAGS=${CFLAGS+y}
4076 ac_save_CFLAGS=$CFLAGS
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4078 printf %s "checking whether $CC accepts -g... " >&6; }
4079 if test ${ac_cv_prog_cc_g+y}
4081 printf %s "(cached) " >&6
4083 ac_save_c_werror_flag=$ac_c_werror_flag
4084 ac_c_werror_flag=yes
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4098 if ac_fn_c_try_compile "$LINENO"
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4114 if ac_fn_c_try_compile "$LINENO"
4118 ac_c_werror_flag=$ac_save_c_werror_flag
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4131 if ac_fn_c_try_compile "$LINENO"
4135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4143 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4144 if test $ac_test_CFLAGS; then
4145 CFLAGS=$ac_save_CFLAGS
4146 elif test $ac_cv_prog_cc_g = yes; then
4147 if test "$GCC" = yes; then
4153 if test "$GCC" = yes; then
4160 if test x$ac_prog_cc_stdc = xno
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4163 printf %s "checking for $CC option to enable C11 features... " >&6; }
4164 if test ${ac_cv_prog_cc_c11+y}
4166 printf %s "(cached) " >&6
4168 ac_cv_prog_cc_c11=no
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 $ac_c_conftest_c11_program
4174 for ac_arg in '' -std=gnu11
4176 CC="$ac_save_CC $ac_arg"
4177 if ac_fn_c_try_compile "$LINENO"
4179 ac_cv_prog_cc_c11=$ac_arg
4181 rm -f core conftest.err conftest.$ac_objext conftest.beam
4182 test "x$ac_cv_prog_cc_c11" != "xno" && break
4184 rm -f conftest.$ac_ext
4188 if test "x$ac_cv_prog_cc_c11" = xno
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4191 printf "%s\n" "unsupported" >&6; }
4193 if test "x$ac_cv_prog_cc_c11" = x
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4196 printf "%s\n" "none needed" >&6; }
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4199 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4200 CC="$CC $ac_cv_prog_cc_c11"
4202 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4206 if test x$ac_prog_cc_stdc = xno
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4209 printf %s "checking for $CC option to enable C99 features... " >&6; }
4210 if test ${ac_cv_prog_cc_c99+y}
4212 printf %s "(cached) " >&6
4214 ac_cv_prog_cc_c99=no
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4218 $ac_c_conftest_c99_program
4220 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4222 CC="$ac_save_CC $ac_arg"
4223 if ac_fn_c_try_compile "$LINENO"
4225 ac_cv_prog_cc_c99=$ac_arg
4227 rm -f core conftest.err conftest.$ac_objext conftest.beam
4228 test "x$ac_cv_prog_cc_c99" != "xno" && break
4230 rm -f conftest.$ac_ext
4234 if test "x$ac_cv_prog_cc_c99" = xno
4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 printf "%s\n" "unsupported" >&6; }
4239 if test "x$ac_cv_prog_cc_c99" = x
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4242 printf "%s\n" "none needed" >&6; }
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4245 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4246 CC="$CC $ac_cv_prog_cc_c99"
4248 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4252 if test x$ac_prog_cc_stdc = xno
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4255 printf %s "checking for $CC option to enable C89 features... " >&6; }
4256 if test ${ac_cv_prog_cc_c89+y}
4258 printf %s "(cached) " >&6
4260 ac_cv_prog_cc_c89=no
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 $ac_c_conftest_c89_program
4266 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4268 CC="$ac_save_CC $ac_arg"
4269 if ac_fn_c_try_compile "$LINENO"
4271 ac_cv_prog_cc_c89=$ac_arg
4273 rm -f core conftest.err conftest.$ac_objext conftest.beam
4274 test "x$ac_cv_prog_cc_c89" != "xno" && break
4276 rm -f conftest.$ac_ext
4280 if test "x$ac_cv_prog_cc_c89" = xno
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4283 printf "%s\n" "unsupported" >&6; }
4285 if test "x$ac_cv_prog_cc_c89" = x
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4288 printf "%s\n" "none needed" >&6; }
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4291 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4292 CC="$CC $ac_cv_prog_cc_c89"
4294 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4311 printf %s "checking how to run the C preprocessor... " >&6; }
4312 # On Suns, sometimes $CPP names a directory.
4313 if test -n "$CPP" && test -d "$CPP"; then
4316 if test -z "$CPP"; then
4317 if test ${ac_cv_prog_CPP+y}
4319 printf %s "(cached) " >&6
4321 # Double quotes because $CC needs to be expanded
4322 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4325 for ac_c_preproc_warn_flag in '' yes
4327 # Use a header file that comes with gcc, so configuring glibc
4328 # with a fresh cross-compiler works.
4329 # On the NeXT, cc -E runs the code through the compiler's parser,
4330 # not just through cpp. "Syntax error" is here to catch this case.
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4336 if ac_fn_c_try_cpp "$LINENO"
4340 # Broken: fails on valid input.
4343 rm -f conftest.err conftest.i conftest.$ac_ext
4345 # OK, works on sane cases. Now check whether nonexistent headers
4346 # can be detected and how.
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349 #include <ac_nonexistent.h>
4351 if ac_fn_c_try_cpp "$LINENO"
4353 # Broken: success on invalid input.
4356 # Passes both tests.
4360 rm -f conftest.err conftest.i conftest.$ac_ext
4363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364 rm -f conftest.i conftest.err conftest.
$ac_ext
4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4379 printf "%s\n" "$CPP" >&6; }
4381 for ac_c_preproc_warn_flag
in '' yes
4383 # Use a header file that comes with gcc, so configuring glibc
4384 # with a fresh cross-compiler works.
4385 # On the NeXT, cc -E runs the code through the compiler's parser,
4386 # not just through cpp. "Syntax error" is here to catch this case.
4387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4392 if ac_fn_c_try_cpp
"$LINENO"
4396 # Broken: fails on valid input.
4399 rm -f conftest.err conftest.i conftest.
$ac_ext
4401 # OK, works on sane cases. Now check whether nonexistent headers
4402 # can be detected and how.
4403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405 #include <ac_nonexistent.h>
4407 if ac_fn_c_try_cpp
"$LINENO"
4409 # Broken: success on invalid input.
4412 # Passes both tests.
4416 rm -f conftest.err conftest.i conftest.
$ac_ext
4419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4420 rm -f conftest.i conftest.err conftest.
$ac_ext
4425 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4426 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4427 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4428 See \`config.log' for more details" "$LINENO" 5; }
4432 ac_cpp
='$CPP $CPPFLAGS'
4433 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4444 ac_cpp
='$CXXCPP $CPPFLAGS'
4445 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4448 if test -z "$CXX"; then
4449 if test -n "$CCC"; then
4452 if test -n "$ac_tool_prefix"; then
4453 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
4455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4456 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 printf %s
"checking for $ac_word... " >&6; }
4459 if test ${ac_cv_prog_CXX+y}
4461 printf %s
"(cached) " >&6
4463 if test -n "$CXX"; then
4464 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4470 case $as_dir in #(((
4473 *) as_dir
=$as_dir/ ;;
4475 for ac_exec_ext
in '' $ac_executable_extensions; do
4476 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4477 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4488 if test -n "$CXX"; then
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4490 printf "%s\n" "$CXX" >&6; }
4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 printf "%s\n" "no" >&6; }
4497 test -n "$CXX" && break
4500 if test -z "$CXX"; then
4502 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
4504 # Extract the first word of "$ac_prog", so it can be a program name with args.
4505 set dummy
$ac_prog; ac_word
=$2
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 printf %s
"checking for $ac_word... " >&6; }
4508 if test ${ac_cv_prog_ac_ct_CXX+y}
4510 printf %s
"(cached) " >&6
4512 if test -n "$ac_ct_CXX"; then
4513 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4519 case $as_dir in #(((
4522 *) as_dir
=$as_dir/ ;;
4524 for ac_exec_ext
in '' $ac_executable_extensions; do
4525 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4536 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4537 if test -n "$ac_ct_CXX"; then
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4539 printf "%s\n" "$ac_ct_CXX" >&6; }
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 printf "%s\n" "no" >&6; }
4546 test -n "$ac_ct_CXX" && break
4549 if test "x$ac_ct_CXX" = x
; then
4552 case $cross_compiling:$ac_tool_warned in
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4555 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4556 ac_tool_warned
=yes ;;
4564 # Provide some information about the compiler.
4565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4568 for ac_option
in --version -v -V -qversion; do
4569 { { ac_try
="$ac_compiler $ac_option >&5"
4571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4572 *) ac_try_echo=$ac_try;;
4574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4575 printf "%s\n" "$ac_try_echo"; } >&5
4576 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4578 if test -s conftest.err; then
4580 ... rest of stderr output deleted ...
4581 10q' conftest.err >conftest.er1
4582 cat conftest.er1 >&5
4584 rm -f conftest.er1 conftest.err
4585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4590 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4591 if test ${ac_cv_cxx_compiler_gnu+y}
4593 printf %s "(cached) " >&6
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4609 if ac_fn_cxx_try_compile "$LINENO"
4615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4616 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4620 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4623 if test $ac_compiler_gnu = yes; then
4628 ac_test_CXXFLAGS=${CXXFLAGS+y}
4629 ac_save_CXXFLAGS=$CXXFLAGS
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4631 printf %s "checking whether $CXX accepts -g... " >&6; }
4632 if test ${ac_cv_prog_cxx_g+y}
4634 printf %s "(cached) " >&6
4636 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4637 ac_cxx_werror_flag=yes
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4651 if ac_fn_cxx_try_compile "$LINENO"
4653 ac_cv_prog_cxx_g=yes
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4667 if ac_fn_cxx_try_compile "$LINENO"
4671 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4684 if ac_fn_cxx_try_compile "$LINENO"
4686 ac_cv_prog_cxx_g=yes
4688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4693 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4696 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4697 if test $ac_test_CXXFLAGS; then
4698 CXXFLAGS=$ac_save_CXXFLAGS
4699 elif test $ac_cv_prog_cxx_g = yes; then
4700 if test "$GXX" = yes; then
4706 if test "$GXX" = yes; then
4712 ac_prog_cxx_stdcxx=no
4713 if test x$ac_prog_cxx_stdcxx = xno
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4716 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4717 if test ${ac_cv_prog_cxx_11+y}
4719 printf %s "(cached) " >&6
4721 ac_cv_prog_cxx_11=no
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725 $ac_cxx_conftest_cxx11_program
4727 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4729 CXX="$ac_save_CXX $ac_arg"
4730 if ac_fn_cxx_try_compile "$LINENO"
4732 ac_cv_prog_cxx_cxx11=$ac_arg
4734 rm -f core conftest.err conftest.$ac_objext conftest.beam
4735 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4737 rm -f conftest.$ac_ext
4741 if test "x$ac_cv_prog_cxx_cxx11" = xno
4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4744 printf "%s\n" "unsupported" >&6; }
4746 if test "x$ac_cv_prog_cxx_cxx11" = x
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4749 printf "%s\n" "none needed" >&6; }
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4752 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4753 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4755 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4756 ac_prog_cxx_stdcxx=cxx11
4759 if test x$ac_prog_cxx_stdcxx = xno
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4762 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4763 if test ${ac_cv_prog_cxx_98+y}
4765 printf %s "(cached) " >&6
4767 ac_cv_prog_cxx_98=no
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4771 $ac_cxx_conftest_cxx98_program
4773 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4775 CXX="$ac_save_CXX $ac_arg"
4776 if ac_fn_cxx_try_compile "$LINENO"
4778 ac_cv_prog_cxx_cxx98=$ac_arg
4780 rm -f core conftest.err conftest.$ac_objext conftest.beam
4781 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4783 rm -f conftest.$ac_ext
4787 if test "x$ac_cv_prog_cxx_cxx98" = xno
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4790 printf "%s\n" "unsupported" >&6; }
4792 if test "x$ac_cv_prog_cxx_cxx98" = x
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4795 printf "%s\n" "none needed" >&6; }
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4798 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4799 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4801 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4802 ac_prog_cxx_stdcxx=cxx98
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812 if test -n "$ac_tool_prefix"; then
4813 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4814 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 printf %s "checking for $ac_word... " >&6; }
4817 if test ${ac_cv_prog_RANLIB+y}
4819 printf %s "(cached) " >&6
4821 if test -n "$RANLIB"; then
4822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 case $as_dir in #(((
4831 *) as_dir=$as_dir/ ;;
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4835 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4845 RANLIB=$ac_cv_prog_RANLIB
4846 if test -n "$RANLIB"; then
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4848 printf "%s\n" "$RANLIB" >&6; }
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 printf "%s\n" "no" >&6; }
4856 if test -z "$ac_cv_prog_RANLIB"; then
4857 ac_ct_RANLIB=$RANLIB
4858 # Extract the first word of "ranlib", so it can be a program name with args.
4859 set dummy ranlib; ac_word=$2
4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 printf %s "checking for $ac_word... " >&6; }
4862 if test ${ac_cv_prog_ac_ct_RANLIB+y}
4864 printf %s "(cached) " >&6
4866 if test -n "$ac_ct_RANLIB"; then
4867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 case $as_dir in #(((
4876 *) as_dir=$as_dir/ ;;
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_ac_ct_RANLIB="ranlib"
4881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4890 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4891 if test -n "$ac_ct_RANLIB"; then
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4893 printf "%s\n" "$ac_ct_RANLIB" >&6; }
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 printf "%s\n" "no" >&6; }
4899 if test "x$ac_ct_RANLIB" = x; then
4902 case $cross_compiling:$ac_tool_warned in
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4908 RANLIB=$ac_ct_RANLIB
4911 RANLIB="$ac_cv_prog_RANLIB"
4914 # Extract the first word of "ar", so it can be a program name with args.
4915 set dummy ar; ac_word=$2
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 printf %s "checking for $ac_word... " >&6; }
4918 if test ${ac_cv_path_AR+y}
4920 printf %s "(cached) " >&6
4924 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 case $as_dir in #(((
4934 *) as_dir=$as_dir/ ;;
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4938 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
4939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4950 if test -n "$AR"; then
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4952 printf "%s\n" "$AR" >&6; }
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 printf "%s\n" "no" >&6; }
4959 # Extract the first word of "chmod", so it can be a program name with args.
4960 set dummy chmod; ac_word=$2
4961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 printf %s "checking for $ac_word... " >&6; }
4963 if test ${ac_cv_path_CHMOD+y}
4965 printf %s "(cached) " >&6
4969 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 case $as_dir in #(((
4979 *) as_dir=$as_dir/ ;;
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4983 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
4984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4994 CHMOD=$ac_cv_path_CHMOD
4995 if test -n "$CHMOD"; then
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4997 printf "%s\n" "$CHMOD" >&6; }
4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 printf "%s\n" "no" >&6; }
5004 # Extract the first word of "gzip", so it can be a program name with args.
5005 set dummy gzip; ac_word=$2
5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 printf %s "checking for $ac_word... " >&6; }
5008 if test ${ac_cv_path_GZIPPROG+y}
5010 printf %s "(cached) " >&6
5014 ac_cv_path_GZIPPROG="$GZIPPROG" # Let the user override the test with a path.
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 case $as_dir in #(((
5024 *) as_dir=$as_dir/ ;;
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5028 ac_cv_path_GZIPPROG="$as_dir$ac_word$ac_exec_ext"
5029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5039 GZIPPROG=$ac_cv_path_GZIPPROG
5040 if test -n "$GZIPPROG"; then
5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GZIPPROG" >&5
5042 printf "%s\n" "$GZIPPROG" >&6; }
5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 printf "%s\n" "no" >&6; }
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
5050 printf %s "checking for install-sh script... " >&6; }
5051 INSTALL="`pwd`/install-sh"
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
5054 printf "%s\n" "using $INSTALL" >&6; }
5055 # Extract the first word of "ld", so it can be a program name with args.
5056 set dummy ld; ac_word=$2
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 printf %s "checking for $ac_word... " >&6; }
5059 if test ${ac_cv_path_LD+y}
5061 printf %s "(cached) " >&6
5065 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 case $as_dir in #(((
5075 *) as_dir=$as_dir/ ;;
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5079 ac_cv_path_LD="$as_dir$ac_word$ac_exec_ext"
5080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5091 if test -n "$LD"; then
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5093 printf "%s\n" "$LD" >&6; }
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 printf "%s\n" "no" >&6; }
5100 # Extract the first word of "ln", so it can be a program name with args.
5101 set dummy ln; ac_word=$2
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 printf %s "checking for $ac_word... " >&6; }
5104 if test ${ac_cv_path_LN+y}
5106 printf %s "(cached) " >&6
5110 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 case $as_dir in #(((
5120 *) as_dir=$as_dir/ ;;
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5124 ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
5125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5136 if test -n "$LN"; then
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
5138 printf "%s\n" "$LN" >&6; }
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 printf "%s\n" "no" >&6; }
5145 # Extract the first word of "mkdir", so it can be a program name with args.
5146 set dummy mkdir; ac_word=$2
5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 printf %s "checking for $ac_word... " >&6; }
5149 if test ${ac_cv_path_MKDIR+y}
5151 printf %s "(cached) " >&6
5155 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 case $as_dir in #(((
5165 *) as_dir=$as_dir/ ;;
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5169 ac_cv_path_MKDIR="$as_dir$ac_word$ac_exec_ext"
5170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5180 MKDIR=$ac_cv_path_MKDIR
5181 if test -n "$MKDIR"; then
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5183 printf "%s\n" "$MKDIR" >&6; }
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 printf "%s\n" "no" >&6; }
5190 # Extract the first word of "mv", so it can be a program name with args.
5191 set dummy mv; ac_word=$2
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 printf %s "checking for $ac_word... " >&6; }
5194 if test ${ac_cv_path_MV+y}
5196 printf %s "(cached) " >&6
5200 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 case $as_dir in #(((
5210 *) as_dir=$as_dir/ ;;
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5214 ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
5215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5226 if test -n "$MV"; then
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5228 printf "%s\n" "$MV" >&6; }
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 printf "%s\n" "no" >&6; }
5235 # Extract the first word of "rm", so it can be a program name with args.
5236 set dummy rm; ac_word=$2
5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 printf %s "checking for $ac_word... " >&6; }
5239 if test ${ac_cv_path_RM+y}
5241 printf %s "(cached) " >&6
5245 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 case $as_dir in #(((
5255 *) as_dir=$as_dir/ ;;
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5259 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
5260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5271 if test -n "$RM"; then
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5273 printf "%s\n" "$RM" >&6; }
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 printf "%s\n" "no" >&6; }
5280 # Extract the first word of "rmdir", so it can be a program name with args.
5281 set dummy rmdir; ac_word=$2
5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 printf %s "checking for $ac_word... " >&6; }
5284 if test ${ac_cv_path_RMDIR+y}
5286 printf %s "(cached) " >&6
5290 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 case $as_dir in #(((
5300 *) as_dir=$as_dir/ ;;
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5304 ac_cv_path_RMDIR="$as_dir$ac_word$ac_exec_ext"
5305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5315 RMDIR=$ac_cv_path_RMDIR
5316 if test -n "$RMDIR"; then
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
5318 printf "%s\n" "$RMDIR" >&6; }
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 printf "%s\n" "no" >&6; }
5325 # Extract the first word of "sed", so it can be a program name with args.
5326 set dummy sed; ac_word=$2
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 printf %s "checking for $ac_word... " >&6; }
5329 if test ${ac_cv_path_SED+y}
5331 printf %s "(cached) " >&6
5335 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 case $as_dir in #(((
5345 *) as_dir=$as_dir/ ;;
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5349 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
5350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5361 if test -n "$SED"; then
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5363 printf "%s\n" "$SED" >&6; }
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 printf "%s\n" "no" >&6; }
5370 # Extract the first word of "xdg-open", so it can be a program name with args.
5371 set dummy xdg-open; ac_word=$2
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 printf %s "checking for $ac_word... " >&6; }
5374 if test ${ac_cv_path_XDGOPEN+y}
5376 printf %s "(cached) " >&6
5380 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 case $as_dir in #(((
5390 *) as_dir=$as_dir/ ;;
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5394 ac_cv_path_XDGOPEN="$as_dir$ac_word$ac_exec_ext"
5395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5405 XDGOPEN=$ac_cv_path_XDGOPEN
5406 if test -n "$XDGOPEN"; then
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
5408 printf "%s\n" "$XDGOPEN" >&6; }
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 printf "%s\n" "no" >&6; }
5416 if test "x$XDGOPEN" = x
5419 CUPS_HTMLVIEW="htmlview"
5423 CUPS_HTMLVIEW="$XDGOPEN"
5431 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
5437 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
5442 # Check whether --enable-static was given.
5443 if test ${enable_static+y}
5445 enableval=$enable_static;
5449 if test x$enable_static = xyes
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Installing static libraries..." >&5
5453 printf "%s\n" "$as_me: Installing static libraries..." >&6;}
5454 INSTALLSTATIC="installstatic"
5460 if test -n "$ac_tool_prefix"; then
5461 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5462 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 printf %s "checking for $ac_word... " >&6; }
5465 if test ${ac_cv_path_PKGCONFIG+y}
5467 printf %s "(cached) " >&6
5471 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 case $as_dir in #(((
5481 *) as_dir=$as_dir/ ;;
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5485 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
5486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5496 PKGCONFIG=$ac_cv_path_PKGCONFIG
5497 if test -n "$PKGCONFIG"; then
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5499 printf "%s\n" "$PKGCONFIG" >&6; }
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 printf "%s\n" "no" >&6; }
5507 if test -z "$ac_cv_path_PKGCONFIG"; then
5508 ac_pt_PKGCONFIG=$PKGCONFIG
5509 # Extract the first word of "pkg-config", so it can be a program name with args.
5510 set dummy pkg-config; ac_word=$2
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 printf %s "checking for $ac_word... " >&6; }
5513 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
5515 printf %s "(cached) " >&6
5517 case $ac_pt_PKGCONFIG in
5519 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 case $as_dir in #(((
5529 *) as_dir=$as_dir/ ;;
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5533 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
5534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5544 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
5545 if test -n "$ac_pt_PKGCONFIG"; then
5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
5547 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 printf "%s\n" "no" >&6; }
5553 if test "x$ac_pt_PKGCONFIG" = x; then
5556 case $cross_compiling:$ac_tool_warned in
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned=yes ;;
5562 PKGCONFIG=$ac_pt_PKGCONFIG
5565 PKGCONFIG="$ac_cv_path_PKGCONFIG"
5570 PKGCONFIG_LIBS_STATIC=""
5571 PKGCONFIG_REQUIRES=""
5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
5579 printf %s "checking for library containing abs... " >&6; }
5580 if test ${ac_cv_search_abs+y}
5582 printf %s "(cached) " >&6
5584 ac_func_search_save_LIBS=$LIBS
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5588 /* Override any GCC internal prototype to avoid an error.
5589 Use char because int might match the return type of a GCC
5590 builtin and then its argument prototype would still apply. */
5602 if test -z "$ac_lib"; then
5603 ac_res="none required"
5606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5608 if ac_fn_c_try_link "$LINENO"
5610 ac_cv_search_abs=$ac_res
5612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5614 if test ${ac_cv_search_abs+y}
5619 if test ${ac_cv_search_abs+y}
5626 LIBS=$ac_func_search_save_LIBS
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
5629 printf "%s\n" "$ac_cv_search_abs" >&6; }
5630 ac_res=$ac_cv_search_abs
5631 if test "$ac_res" != no
5633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5634 printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
5639 printf %s "checking for library containing fmod... " >&6; }
5640 if test ${ac_cv_search_fmod+y}
5642 printf %s "(cached) " >&6
5644 ac_func_search_save_LIBS=$LIBS
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5648 /* Override any GCC internal prototype to avoid an error.
5649 Use char because int might match the return type of a GCC
5650 builtin and then its argument prototype would still apply. */
5662 if test -z "$ac_lib"; then
5663 ac_res="none required"
5666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5668 if ac_fn_c_try_link "$LINENO"
5670 ac_cv_search_fmod=$ac_res
5672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5674 if test ${ac_cv_search_fmod+y}
5679 if test ${ac_cv_search_fmod+y}
5683 ac_cv_search_fmod=no
5686 LIBS=$ac_func_search_save_LIBS
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
5689 printf "%s\n" "$ac_cv_search_fmod" >&6; }
5690 ac_res=$ac_cv_search_fmod
5691 if test "$ac_res" != no
5693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5698 PKGCONFIG_LIBS_STATIC="$LIBS"
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
5701 printf %s "checking for library containing crypt... " >&6; }
5702 if test ${ac_cv_search_crypt+y}
5704 printf %s "(cached) " >&6
5706 ac_func_search_save_LIBS=$LIBS
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5710 /* Override any GCC internal prototype to avoid an error.
5711 Use char because int might match the return type of a GCC
5712 builtin and then its argument prototype would still apply. */
5722 for ac_lib in '' crypt
5724 if test -z "$ac_lib"; then
5725 ac_res="none required"
5728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5730 if ac_fn_c_try_link "$LINENO"
5732 ac_cv_search_crypt=$ac_res
5734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5736 if test ${ac_cv_search_crypt+y}
5741 if test ${ac_cv_search_crypt+y}
5745 ac_cv_search_crypt=no
5748 LIBS=$ac_func_search_save_LIBS
5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
5751 printf "%s\n" "$ac_cv_search_crypt" >&6; }
5752 ac_res=$ac_cv_search_crypt
5753 if test "$ac_res" != no
5755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
5760 printf %s "checking for library containing getspent... " >&6; }
5761 if test ${ac_cv_search_getspent+y}
5763 printf %s "(cached) " >&6
5765 ac_func_search_save_LIBS=$LIBS
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5769 /* Override any GCC internal prototype to avoid an error.
5770 Use char because int might match the return type of a GCC
5771 builtin and then its argument prototype would still apply. */
5781 for ac_lib in '' sec gen
5783 if test -z "$ac_lib"; then
5784 ac_res="none required"
5787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5789 if ac_fn_c_try_link "$LINENO"
5791 ac_cv_search_getspent=$ac_res
5793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5795 if test ${ac_cv_search_getspent+y}
5800 if test ${ac_cv_search_getspent+y}
5804 ac_cv_search_getspent=no
5807 LIBS=$ac_func_search_save_LIBS
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
5810 printf "%s\n" "$ac_cv_search_getspent" >&6; }
5811 ac_res=$ac_cv_search_getspent
5812 if test "$ac_res" != no
5814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5820 # Check whether --enable-mallinfo was given.
5821 if test ${enable_mallinfo+y}
5823 enableval=$enable_mallinfo;
5827 if test x$enable_mallinfo = xyes
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
5833 printf %s "checking for library containing mallinfo... " >&6; }
5834 if test ${ac_cv_search_mallinfo+y}
5836 printf %s "(cached) " >&6
5838 ac_func_search_save_LIBS=$LIBS
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5842 /* Override any GCC internal prototype to avoid an error.
5843 Use char because int might match the return type of a GCC
5844 builtin and then its argument prototype would still apply. */
5854 for ac_lib in '' malloc
5856 if test -z "$ac_lib"; then
5857 ac_res="none required"
5860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5862 if ac_fn_c_try_link "$LINENO"
5864 ac_cv_search_mallinfo=$ac_res
5866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5868 if test ${ac_cv_search_mallinfo+y}
5873 if test ${ac_cv_search_mallinfo+y}
5877 ac_cv_search_mallinfo=no
5880 LIBS=$ac_func_search_save_LIBS
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
5883 printf "%s\n" "$ac_cv_search_mallinfo" >&6; }
5884 ac_res=$ac_cv_search_mallinfo
5885 if test "$ac_res" != no
5887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5888 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
5899 # Check whether --enable-libpaper was given.
5900 if test ${enable_libpaper+y}
5902 enableval=$enable_libpaper;
5906 if test x$enable_libpaper = xyes
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
5910 printf %s "checking for systempapername in -lpaper... " >&6; }
5911 if test ${ac_cv_lib_paper_systempapername+y}
5913 printf %s "(cached) " >&6
5915 ac_check_lib_save_LIBS=$LIBS
5916 LIBS="-lpaper $LIBS"
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5920 /* Override any GCC internal prototype to avoid an error.
5921 Use char because int might match the return type of a GCC
5922 builtin and then its argument prototype would still apply. */
5923 char systempapername ();
5927 return systempapername ();
5932 if ac_fn_c_try_link "$LINENO"
5934 ac_cv_lib_paper_systempapername=yes
5936 ac_cv_lib_paper_systempapername=no
5938 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5939 conftest$ac_exeext conftest.$ac_ext
5940 LIBS=$ac_check_lib_save_LIBS
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
5943 printf "%s\n" "$ac_cv_lib_paper_systempapername" >&6; }
5944 if test "x$ac_cv_lib_paper_systempapername" = xyes
5948 printf "%s\n" "#define HAVE_LIBPAPER 1" >>confdefs.h
5966 ac_header= ac_cache=
5967 for ac_item in $ac_header_c_list
5969 if test $ac_cache; then
5970 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5971 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5972 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5974 ac_header= ac_cache=
5975 elif test $ac_header; then
5989 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5992 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5995 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5996 if test "x$ac_cv_header_langinfo_h" = xyes
5999 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
6003 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
6004 if test "x$ac_cv_header_malloc_h" = xyes
6007 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
6011 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
6012 if test "x$ac_cv_header_stdint_h" = xyes
6015 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
6019 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
6020 if test "x$ac_cv_header_sys_auxv_h" = xyes
6023 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
6027 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
6028 if test "x$ac_cv_header_sys_ioctl_h" = xyes
6031 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
6035 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
6036 if test "x$ac_cv_header_sys_param_h" = xyes
6039 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
6043 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
6044 if test "x$ac_cv_header_sys_ucred_h" = xyes
6047 printf "%s\n" "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
6052 ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
6053 if test "x$ac_cv_header_iconv_h" = xyes
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
6059 printf %s "checking for library containing iconv_open... " >&6; }
6060 if test ${ac_cv_search_iconv_open+y}
6062 printf %s "(cached) " >&6
6064 ac_func_search_save_LIBS=$LIBS
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6068 /* Override any GCC internal prototype to avoid an error.
6069 Use char because int might match the return type of a GCC
6070 builtin and then its argument prototype would still apply. */
6075 return iconv_open ();
6080 for ac_lib in '' iconv
6082 if test -z "$ac_lib"; then
6083 ac_res="none required"
6086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6088 if ac_fn_c_try_link "$LINENO"
6090 ac_cv_search_iconv_open=$ac_res
6092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6094 if test ${ac_cv_search_iconv_open+y}
6099 if test ${ac_cv_search_iconv_open+y}
6103 ac_cv_search_iconv_open=no
6106 LIBS=$ac_func_search_save_LIBS
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
6109 printf "%s\n" "$ac_cv_search_iconv_open" >&6; }
6110 ac_res=$ac_cv_search_iconv_open
6111 if test "$ac_res" != no
6113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6116 printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
6118 SAVELIBS="$SAVELIBS $LIBS"
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
6123 printf %s "checking for library containing libiconv_open... " >&6; }
6124 if test ${ac_cv_search_libiconv_open+y}
6126 printf %s "(cached) " >&6
6128 ac_func_search_save_LIBS=$LIBS
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6132 /* Override any GCC internal prototype to avoid an error.
6133 Use char because int might match the return type of a GCC
6134 builtin and then its argument prototype would still apply. */
6135 char libiconv_open ();
6139 return libiconv_open ();
6144 for ac_lib in '' iconv
6146 if test -z "$ac_lib"; then
6147 ac_res="none required"
6150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6152 if ac_fn_c_try_link "$LINENO"
6154 ac_cv_search_libiconv_open=$ac_res
6156 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6158 if test ${ac_cv_search_libiconv_open+y}
6163 if test ${ac_cv_search_libiconv_open+y}
6167 ac_cv_search_libiconv_open=no
6170 LIBS=$ac_func_search_save_LIBS
6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
6173 printf "%s\n" "$ac_cv_search_libiconv_open" >&6; }
6174 ac_res=$ac_cv_search_libiconv_open
6175 if test "$ac_res" != no
6177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6180 printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
6182 SAVELIBS="$SAVELIBS $LIBS"
6186 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBS"
6192 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
6193 if test "x$ac_cv_header_sys_mount_h" = xyes
6196 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
6200 ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
6201 if test "x$ac_cv_header_sys_statfs_h" = xyes
6204 printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
6208 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
6209 if test "x$ac_cv_header_sys_statvfs_h" = xyes
6212 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
6216 ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
6217 if test "x$ac_cv_header_sys_vfs_h" = xyes
6220 printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
6224 ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
6225 if test "x$ac_cv_func_statfs" = xyes
6227 printf "%s\n" "#define HAVE_STATFS 1" >>confdefs.h
6230 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
6231 if test "x$ac_cv_func_statvfs" = xyes
6233 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
6238 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
6239 if test "x$ac_cv_func_random" = xyes
6241 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
6244 ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
6245 if test "x$ac_cv_func_lrand48" = xyes
6247 printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h
6250 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
6251 if test "x$ac_cv_func_arc4random" = xyes
6253 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
6258 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
6259 if test "x$ac_cv_func_geteuid" = xyes
6261 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
6266 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
6267 if test "x$ac_cv_func_setpgid" = xyes
6269 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
6274 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
6275 if test "x$ac_cv_func_vsyslog" = xyes
6277 printf "%s\n" "#define HAVE_VSYSLOG 1" >>confdefs.h
6282 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
6283 if test "x$ac_cv_func_waitpid" = xyes
6285 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
6288 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
6289 if test "x$ac_cv_func_wait3" = xyes
6291 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
6296 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
6297 if test "x$ac_cv_func_posix_spawn" = xyes
6299 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
6304 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
6305 if test "x$ac_cv_func_getgrouplist" = xyes
6307 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
6313 printf %s "checking for tm_gmtoff member in tm structure... " >&6; }
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6323 int o = t.tm_gmtoff;
6330 if ac_fn_c_try_compile "$LINENO"
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6334 printf "%s\n" "yes" >&6; }
6336 printf "%s\n" "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 printf "%s\n" "no" >&6; }
6345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6347 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
6348 if test "x$ac_cv_func_timegm" = xyes
6352 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
6359 printf %s "checking for st_gen member in stat structure... " >&6; }
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6363 #include <sys/stat.h>
6376 if ac_fn_c_try_compile "$LINENO"
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6380 printf "%s\n" "yes" >&6; }
6382 printf "%s\n" "#define HAVE_ST_GEN 1" >>confdefs.h
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 printf "%s\n" "no" >&6; }
6391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6393 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
6394 if test "x$ac_cv_func_removefile" = xyes
6396 printf "%s\n" "#define HAVE_REMOVEFILE 1" >>confdefs.h
6401 # Check whether --enable-libusb was given.
6402 if test ${enable_libusb+y}
6404 enableval=$enable_libusb;
6413 if test "x$PKGCONFIG" != x
6416 if test x$enable_libusb != xno -a $host_os_name != darwin
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
6420 printf %s "checking for libusb-1.0... " >&6; }
6421 if $PKGCONFIG --exists libusb-1.0
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6425 printf "%s\n" "yes" >&6; }
6427 printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
6429 CFLAGS="$CFLAGS $($PKGCONFIG --cflags libusb-1.0)"
6430 LIBUSB="$($PKGCONFIG --libs libusb-1.0)"
6431 USBQUIRKS="\$(DATADIR)/usb"
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 printf "%s\n" "no" >&6; }
6437 if test x$enable_libusb = xyes
6440 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
6448 elif test x$enable_libusb = xyes
6451 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
6455 # Check whether --enable-tcp_wrappers was given.
6456 if test ${enable_tcp_wrappers+y}
6458 enableval=$enable_tcp_wrappers;
6465 if test x$enable_tcp_wrappers = xyes
6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
6469 printf %s "checking for hosts_access in -lwrap... " >&6; }
6470 if test ${ac_cv_lib_wrap_hosts_access+y}
6472 printf %s "(cached) " >&6
6474 ac_check_lib_save_LIBS=$LIBS
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6479 /* Override any GCC internal prototype to avoid an error.
6480 Use char because int might match the return type of a GCC
6481 builtin and then its argument prototype would still apply. */
6482 char hosts_access ();
6486 return hosts_access ();
6491 if ac_fn_c_try_link "$LINENO"
6493 ac_cv_lib_wrap_hosts_access=yes
6495 ac_cv_lib_wrap_hosts_access=no
6497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6498 conftest$ac_exeext conftest.$ac_ext
6499 LIBS=$ac_check_lib_save_LIBS
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
6502 printf "%s\n" "$ac_cv_lib_wrap_hosts_access" >&6; }
6503 if test "x$ac_cv_lib_wrap_hosts_access" = xyes
6506 ac_fn_c_check_header_compile "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
6507 if test "x$ac_cv_header_tcpd_h" = xyes
6511 printf "%s\n" "#define HAVE_TCPD_H 1" >>confdefs.h
6525 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6526 if test "x$ac_cv_header_zlib_h" = xyes
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
6530 printf %s "checking for inflateCopy in -lz... " >&6; }
6531 if test ${ac_cv_lib_z_inflateCopy+y}
6533 printf %s "(cached) " >&6
6535 ac_check_lib_save_LIBS=$LIBS
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6540 /* Override any GCC internal prototype to avoid an error.
6541 Use char because int might match the return type of a GCC
6542 builtin and then its argument prototype would still apply. */
6543 char inflateCopy ();
6547 return inflateCopy ();
6552 if ac_fn_c_try_link "$LINENO"
6554 ac_cv_lib_z_inflateCopy=yes
6556 ac_cv_lib_z_inflateCopy=no
6558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6559 conftest$ac_exeext conftest.$ac_ext
6560 LIBS=$ac_check_lib_save_LIBS
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
6563 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; }
6564 if test "x$ac_cv_lib_z_inflateCopy" = xyes
6569 if test "x$GZIPPROG" != x
6578 as_fn_error $? "Required zlib library not found." "$LINENO" 5
6588 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBZ"
6590 case host_os_name in #(
6611 # Check whether --enable-acl was given.
6612 if test ${enable_acl+y}
6614 enableval=$enable_acl;
6617 if test "x$enable_acl" != xno
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
6621 printf %s "checking for library containing acl_init... " >&6; }
6622 if test ${ac_cv_search_acl_init+y}
6624 printf %s "(cached) " >&6
6626 ac_func_search_save_LIBS=$LIBS
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6630 /* Override any GCC internal prototype to avoid an error.
6631 Use char because int might match the return type of a GCC
6632 builtin and then its argument prototype would still apply. */
6642 for ac_lib in '' acl
6644 if test -z "$ac_lib"; then
6645 ac_res="none required"
6648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6650 if ac_fn_c_try_link "$LINENO"
6652 ac_cv_search_acl_init=$ac_res
6654 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6656 if test ${ac_cv_search_acl_init+y}
6661 if test ${ac_cv_search_acl_init+y}
6665 ac_cv_search_acl_init=no
6668 LIBS=$ac_func_search_save_LIBS
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
6671 printf "%s\n" "$ac_cv_search_acl_init" >&6; }
6672 ac_res=$ac_cv_search_acl_init
6673 if test "$ac_res" != no
6675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6678 printf "%s\n" "#define HAVE_ACL_INIT 1" >>confdefs.h
6683 SERVERLIBS="$SERVERLIBS $LIBS"
6690 DBUS_NOTIFIERLIBS=""
6692 # Check whether --enable-dbus was given.
6693 if test ${enable_dbus+y}
6695 enableval=$enable_dbus;
6699 # Check whether --with-dbusdir was given.
6700 if test ${with_dbusdir+y}
6702 withval=$with_dbusdir;
6708 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin
6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
6712 printf %s "checking for DBUS... " >&6; }
6713 if $PKGCONFIG --exists dbus-1
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6717 printf "%s\n" "yes" >&6; }
6719 printf "%s\n" "#define HAVE_DBUS 1" >>confdefs.h
6721 CFLAGS="$CFLAGS $($PKGCONFIG --cflags dbus-1) -DDBUS_API_SUBJECT_TO_CHANGE"
6722 SERVERLIBS="$SERVERLIBS $($PKGCONFIG --libs dbus-1)"
6723 DBUS_NOTIFIER="dbus"
6724 DBUS_NOTIFIERLIBS="$($PKGCONFIG --libs dbus-1)"
6726 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
6727 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
6728 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes
6732 printf "%s\n" "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
6737 ac_fn_c_check_func "$LINENO" "dbus_threads_init_default" "ac_cv_func_dbus_threads_init_default"
6738 if test "x$ac_cv_func_dbus_threads_init_default" = xyes
6742 printf "%s\n" "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
6748 if test -d /etc/dbus-1 -a "x$DBUSDIR" = x
6751 DBUSDIR="/etc/dbus-1"
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 printf "%s\n" "no" >&6; }
6768 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
6769 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
6770 CUPS_SYSTEM_AUTHKEY=""
6773 case $host_os_name in #(
6776 BACKLIBS="$BACKLIBS -framework IOKit"
6777 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
6778 LIBS="-framework CoreFoundation -framework CoreServices -framework Security $LIBS"
6779 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC -framework CoreFoundation -framework CoreServices -framework Security"
6781 ac_fn_c_check_header_compile "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
6782 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes
6786 printf "%s\n" "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
6791 ac_fn_c_check_header_compile "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
6792 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes
6796 printf "%s\n" "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
6803 LIBS="-framework SystemConfiguration $LIBS"
6805 for ac_func in SCDynamicStoreCopyComputerName
6807 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
6808 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes
6810 printf "%s\n" "#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1" >>confdefs.h
6813 printf "%s\n" "#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1" >>confdefs.h
6815 PKGCONFIG_LIBS_STATIC="-framework SystemConfiguration $PKGCONFIG_LIBS_STATIC"
6825 ac_fn_c_check_header_compile "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
6826 if test "x$ac_cv_header_membership_h" = xyes
6830 printf "%s\n" "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
6835 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
6836 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes
6838 printf "%s\n" "#define HAVE_MBR_UID_TO_UUID 1" >>confdefs.h
6843 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6844 if test "x$ac_cv_header_dlfcn_h" = xyes
6848 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
6854 ac_fn_c_check_header_compile "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
6855 if test "x$ac_cv_header_notify_h" = xyes
6859 printf "%s\n" "#define HAVE_NOTIFY_H 1" >>confdefs.h
6864 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
6865 if test "x$ac_cv_func_notify_post" = xyes
6867 printf "%s\n" "#define HAVE_NOTIFY_POST 1" >>confdefs.h
6873 # Check whether --with-adminkey was given.
6874 if test ${with_adminkey+y}
6876 withval=$with_adminkey;
6877 default_adminkey="$withval"
6881 default_adminkey="default"
6886 # Check whether --with-operkey was given.
6887 if test ${with_operkey+y}
6889 withval=$with_operkey;
6890 default_operkey="$withval"
6894 default_operkey="default"
6899 ac_fn_c_check_header_compile "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
6900 if test "x$ac_cv_header_Security_Authorization_h" = xyes
6904 printf "%s\n" "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
6907 if test "x$default_adminkey" != xdefault
6910 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
6911 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
6915 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
6916 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
6920 if test "x$default_operkey" != xdefault
6923 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
6927 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
6934 ac_fn_c_check_header_compile "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6935 if test "x$ac_cv_header_sandbox_h" = xyes
6939 printf "%s\n" "#define HAVE_SANDBOX_H 1" >>confdefs.h
6945 ac_fn_c_check_header_compile "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
6946 if test "x$ac_cv_header_xpc_xpc_h" = xyes
6950 printf "%s\n" "#define HAVE_XPC 1" >>confdefs.h
6952 INSTALLXPC="install-xpc"
6963 printf "%s\n" "#define CUPS_DEFAULT_PRINTOPERATOR_AUTH \"$CUPS_DEFAULT_PRINTOPERATOR_AUTH\"" >>confdefs.h
6966 printf "%s\n" "#define CUPS_DEFAULT_SYSTEM_AUTHKEY \"$CUPS_DEFAULT_SYSTEM_AUTHKEY\"" >>confdefs.h
6974 # Check whether --with-components was given.
6975 if test ${with_components+y}
6977 withval=$with_components;
6978 COMPONENTS="$withval"
6983 cupsimagebase="cupsimage"
6984 IPPEVECOMMANDS="ippevepcl ippeveps"
6985 LIBCUPSOBJS="\$(COREOBJS) \$(DRIVEROBJS)"
6986 LIBHEADERS="\$(COREHEADERS) \$(DRIVERHEADERS)"
6987 LIBHEADERSPRIV="\$(COREHEADERSPRIV) \$(DRIVERHEADERSPRIV)"
6989 case "$COMPONENTS" in #(
6992 BUILDDIRS="tools filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6996 BUILDDIRS="tools examples locale"
7001 printf "%s\n" "#define CUPS_LITE 1" >>confdefs.h
7003 BUILDDIRS="tools examples locale"
7005 LIBCUPSOBJS="\$(COREOBJS)"
7006 LIBHEADERS="\$(COREHEADERS)"
7007 LIBHEADERSPRIV="\$(COREHEADERSPRIV)"
7017 printf "%s\n" "#define CUPS_LITE 1" >>confdefs.h
7021 LIBCUPSOBJS="\$(COREOBJS)"
7022 LIBHEADERS="\$(COREHEADERS)"
7023 LIBHEADERSPRIV="\$(COREHEADERSPRIV)"
7027 as_fn_error $? "Bad build component \"$COMPONENTS\" specified." "$LINENO" 5
7040 if test "$prefix" = NONE
7043 # Default prefix isn't bound until AC_OUTPUT...
7044 realprefix="/usr/local"
7048 realprefix="$prefix"
7052 if test "$exec_prefix" = "NONE"
7055 if test "$prefix" = "/"
7062 exec_prefix="$realprefix"
7068 if test "$bindir" = "\${exec_prefix}/bin"
7071 bindir="$exec_prefix/bin"
7076 printf "%s\n" "#define CUPS_BINDIR \"$bindir\"" >>confdefs.h
7079 if test "$sbindir" = "\${exec_prefix}/sbin"
7082 sbindir="$exec_prefix/sbin"
7087 printf "%s\n" "#define CUPS_SBINDIR \"$sbindir\"" >>confdefs.h
7090 if test "$datarootdir" = "\${prefix}/share"
7093 if test "$prefix" = "/"
7096 datarootdir="/usr/share"
7100 datarootdir="$realprefix/share"
7106 if test "$datadir" = "\${prefix}/share"
7109 if test "$prefix" = "/"
7112 datadir="/usr/share"
7116 datadir="$realprefix/share"
7120 elif test "$datadir" = "\${datarootdir}"
7123 datadir="$datarootdir"
7127 if test "$includedir" = "\${prefix}/include"
7130 if test "$prefix" = "/"
7133 includedir="/usr/include/libcups2"
7137 includedir="$realprefix/include/libcups2"
7142 if test "$includedir" != "/usr/include"
7145 PKGCONFIG_CFLAGS="$PKGCONFIG_CFLAGS -I$includedir"
7149 if test "$localstatedir" = "\${prefix}/var"
7152 if test "$prefix" = "/"
7155 if test "$host_os_name" = darwin
7158 localstatedir="/private/var"
7162 localstatedir="/var"
7168 localstatedir="$realprefix/var"
7174 if test "$sysconfdir" = "\${prefix}/etc"
7177 if test "$prefix" = "/"
7180 if test "$host_os_name" = darwin
7183 sysconfdir="/private/etc"
7193 sysconfdir="$realprefix/etc"
7199 if test "$libdir" = "\${exec_prefix}/lib"
7202 case "$host_os_name" in #(
7205 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot
7208 libdir="$exec_prefix/lib64"
7212 libdir="$exec_prefix/lib"
7218 libdir="$exec_prefix/lib"
7225 if test "$libdir" = "/usr/lib"
7228 PKGCONFIG_LIBS="-lcups"
7232 PKGCONFIG_LIBS="-L$libdir -lcups"
7238 # Check whether --with-cachedir was given.
7239 if test ${with_cachedir+y}
7241 withval=$with_cachedir;
7251 if test x$cachedir = x
7254 if test "x$host_os_name" = xdarwin
7257 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
7261 CUPS_CACHEDIR="$localstatedir/cache/cups"
7267 CUPS_CACHEDIR="$cachedir"
7271 printf "%s\n" "#define CUPS_CACHEDIR \"$CUPS_CACHEDIR\"" >>confdefs.h
7276 CUPS_DATADIR="$datadir/cups"
7278 printf "%s\n" "#define CUPS_DATADIR \"$datadir/cups\"" >>confdefs.h
7284 # Check whether --with-icondir was given.
7285 if test ${with_icondir+y}
7287 withval=$with_icondir;
7297 if test "x$icondir" = x
7300 ICONDIR="/usr/share/icons"
7312 # Check whether --with-menudir was given.
7313 if test ${with_menudir+y}
7315 withval=$with_menudir;
7325 if test "x$menudir" = x
7328 MENUDIR="/usr/share/applications"
7338 # Documentation files
7340 # Check whether --with-docdir was given.
7341 if test ${with_docdir+y}
7343 withval=$with_docdir;
7353 if test x$docdir = x
7356 CUPS_DOCROOT="$datadir/doc/cups"
7357 docdir="$datadir/doc/cups"
7361 CUPS_DOCROOT="$docdir"
7366 printf "%s\n" "#define CUPS_DOCROOT \"$docdir\"" >>confdefs.h
7371 if test "$localedir" = "\${datarootdir}/locale"
7374 case "$host_os_name" in #(
7375 linux* | gnu* | *bsd* | darwin* | solaris*) :
7377 CUPS_LOCALEDIR="$datarootdir/locale"
7381 # This is the standard System V location...
7382 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
7390 CUPS_LOCALEDIR="$localedir"
7395 printf "%s\n" "#define CUPS_LOCALEDIR \"$CUPS_LOCALEDIR\"" >>confdefs.h
7402 # Check whether --with-pkgconfpath was given.
7403 if test ${with_pkgconfpath+y}
7405 withval=$with_pkgconfpath;
7406 pkgconfpath="$withval"
7415 if test x$pkgconfpath = x
7418 CUPS_PKGCONFPATH="$exec_prefix/lib/pkgconfig"
7422 CUPS_PKGCONFPATH="$pkgconfpath"
7426 printf "%s\n" "#define CUPS_PKGCONFPATH \"$CUPS_PKGCONFPATH\"" >>confdefs.h
7434 # Check whether --with-logdir was given.
7435 if test ${with_logdir+y}
7437 withval=$with_logdir;
7447 if test x$logdir = x
7450 CUPS_LOGDIR="$localstatedir/log/cups"
7454 CUPS_LOGDIR="$logdir"
7458 printf "%s\n" "#define CUPS_LOGDIR \"$CUPS_LOGDIR\"" >>confdefs.h
7462 # Longer-term spool data
7463 CUPS_REQUESTS="$localstatedir/spool/cups"
7465 printf "%s\n" "#define CUPS_REQUESTS \"$localstatedir/spool/cups\"" >>confdefs.h
7469 # Server executables...
7470 case "$host_os_name" in #(
7474 INSTALL_SYSV="install-sysv"
7475 CUPS_SERVERBIN="$exec_prefix/lib/cups"
7479 # *BSD and Darwin (macOS)
7481 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
7486 INSTALL_SYSV="install-sysv"
7487 CUPS_SERVERBIN="$exec_prefix/lib/cups"
7494 printf "%s\n" "#define CUPS_SERVERBIN \"$CUPS_SERVERBIN\"" >>confdefs.h
7499 # Configuration files
7500 CUPS_SERVERROOT="$sysconfdir/cups"
7502 printf "%s\n" "#define CUPS_SERVERROOT \"$sysconfdir/cups\"" >>confdefs.h
7506 # Transient run-time state
7508 # Check whether --with-rundir was given.
7509 if test ${with_rundir+y}
7511 withval=$with_rundir;
7512 CUPS_STATEDIR="$withval"
7516 case "$host_os_name" in #(
7520 CUPS_STATEDIR="$CUPS_SERVERROOT"
7522 sunos* | solaris*) :
7524 if test -d /system/volatile
7527 CUPS_STATEDIR="/system/volatile/cups"
7531 CUPS_STATEDIR="$localstatedir/run/cups"
7538 CUPS_STATEDIR="$localstatedir/run/cups"
7547 printf "%s\n" "#define CUPS_STATEDIR \"$CUPS_STATEDIR\"" >>confdefs.h
7552 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"
7555 # New GNU "standards" break previous ones, so make sure we use
7556 # the right default location for the operating system...
7557 mandir="\${prefix}/man"
7561 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"
7564 case "$host_os_name" in #(
7565 darwin* | linux* | gnu* | *bsd*) :
7567 # Darwin, macOS, Linux, GNU HURD, and *BSD
7568 mandir="/usr/share/man"
7584 DSOFLAGS="${DSOFLAGS:=}"
7586 # Check whether --enable-shared was given.
7587 if test ${enable_shared+y}
7589 enableval=$enable_shared;
7594 LIBCUPSBASE="lib$cupsbase"
7596 LIBCUPSSTATIC="lib$cupsbase.a"
7598 if test x$enable_shared != xno
7601 case "$host_os_name" in #(
7604 LIBCUPS="lib$cupsbase.so.2"
7605 if test "x$cupsimagebase" != x
7608 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
7613 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G"
7615 linux* | gnu* | *bsd* | solaris*) :
7617 LIBCUPS="lib$cupsbase.so.2"
7618 if test "x$cupsimagebase" != x
7621 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
7626 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared"
7630 LIBCUPS="lib$cupsbase.2.dylib"
7631 if test "x$cupsimagebase" != x
7634 LIBCUPSIMAGE="lib$cupsimagebase.2.dylib"
7639 DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc"
7643 LIBCUPS="lib$cupsbase.so.2"
7644 if test "x$cupsimagebase" != x
7647 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
7652 DSOFLAGS="$DSOFLAGS -Wl,-G -o \`basename \$@\
`"
7653 LDFLAGS="$LDFLAGS $TLSFLAGS -liconv -lz -lm"
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Warning: Shared libraries may not work, trying -shared option." >&5
7658 printf "%s\n" "$as_me: Warning: Shared libraries may not work, trying -shared option." >&6;}
7659 LIBCUPS="lib$cupsbase.so.2"
7660 if test "x$cupsimagebase" != x
7663 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
7668 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared"
7677 LIBCUPS="lib$cupsbase.a"
7678 if test "x$cupsimagebase" != x
7681 LIBCUPSIMAGE="lib$cupsimagebase.a"
7697 if test x$enable_shared = xno
7700 LINKCUPS="../cups/lib$cupsbase.a \$(LIBS)"
7701 EXTLINKCUPS="-lcups \$LIBS"
7703 elif test "$host_os_name" = aix
7706 LINKCUPS="-L../cups -l${cupsbase} \$(LIBS)"
7707 EXTLINKCUPS="-lcups \$LIBS"
7711 LINKCUPS="-L../cups -l${cupsbase}"
7712 EXTLINKCUPS="-lcups"
7721 if test "$DSO" != ":"
7724 # Tell the run-time linkers where to find a DSO. Some platforms
7725 # need this option, even when the library is installed in a
7726 # standard location...
7727 case $host_os_name in #(
7728 sunos* | solaris*) :
7731 if test $exec_prefix != /usr
7734 DSOFLAGS="-R$libdir $DSOFLAGS"
7735 LDFLAGS="$LDFLAGS -R$libdir"
7736 EXPORT_LDFLAGS="-R$libdir"
7743 if test $exec_prefix != /usr
7746 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
7747 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
7748 EXPORT_LDFLAGS="-Wl,-R$libdir"
7754 # Linux, and HURD...
7755 if test $exec_prefix != /usr
7758 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
7759 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
7760 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
7773 # Check whether --enable-libtool_unsupported was given.
7774 if test ${enable_libtool_unsupported+y}
7776 enableval=$enable_libtool_unsupported;
7780 enable_libtool_unsupported=no
7785 if test x$enable_libtool_unsupported != xno
7788 if test "x$enable_libtool_unsupported" = xyes
7791 as_fn_error $? "Use '--enable-libtool-unsupported=/path/to/libtool'." "$LINENO" 5
7795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libtool is not supported." >&5
7796 printf "%s\n" "$as_me: WARNING: libtool is not supported." >&2;}
7800 LIBTOOL="$enable_libtool_unsupported"
7803 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
7804 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
7806 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
7807 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
7809 LIBCUPS="libcups.la"
7810 LIBCUPSSTATIC="libcups.la"
7811 LIBCUPSCGI="libcupscgi.la"
7812 LIBCUPSIMAGE="libcupsimage.la"
7813 LIBCUPSMIME="libcupsmime.la"
7814 LIBCUPSPPDC="libcupsppdc.la"
7816 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
7817 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
7818 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
7820 LINKCUPS="../cups/\$(LIBCUPS)"
7821 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
7847 # Check whether --with-optim was given.
7848 if test ${with_optim+y}
7850 withval=$with_optim;
7861 # Check whether --enable-debug was given.
7862 if test ${enable_debug+y}
7864 enableval=$enable_debug;
7867 # Check whether --enable-debug_guards was given.
7868 if test ${enable_debug_guards+y}
7870 enableval=$enable_debug_guards;
7873 # Check whether --enable-debug_printfs was given.
7874 if test ${enable_debug_printfs+y}
7876 enableval=$enable_debug_printfs;
7879 # Check whether --enable-maintainer was given.
7880 if test ${enable_maintainer+y}
7882 enableval=$enable_maintainer;
7885 # Check whether --enable-unit_tests was given.
7886 if test ${enable_unit_tests+y}
7888 enableval=$enable_unit_tests;
7892 if test x$enable_debug = xyes -a "x$OPTIM" = x
7903 if test x$enable_debug_printfs = xyes
7906 CFLAGS="$CFLAGS -DDEBUG"
7907 CXXFLAGS="$CXXFLAGS -DDEBUG"
7911 if test x$enable_debug_guards = xyes
7914 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
7915 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
7919 if test x$enable_unit_tests = xyes
7922 if test "$build" != "$host"
7925 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
7929 UNITTESTS="unittests"
7939 # Check whether --with-archflags was given.
7940 if test ${with_archflags+y}
7942 withval=$with_archflags;
7946 # Check whether --with-ldarchflags was given.
7947 if test ${with_ldarchflags+y}
7949 withval=$with_ldarchflags;
7953 if test -z "$with_archflags"
7960 ARCHFLAGS="$with_archflags"
7964 if test -z "$with_ldarchflags"
7967 LDARCHFLAGS="$ARCHFLAGS"
7971 LDARCHFLAGS="$with_ldarchflags"
7978 # Check whether --enable-relro was given.
7979 if test ${enable_relro+y}
7981 enableval=$enable_relro;
7985 # Check whether --enable-sanitizer was given.
7986 if test ${enable_sanitizer+y}
7988 enableval=$enable_sanitizer;
7992 CXXLIBS="${CXXLIBS:=}"
8007 # Add GCC/Clang compiler options...
8009 # Address sanitizer is a useful tool to use when developing/debugging
8010 # code but adds about 2x overhead...
8011 if test x$enable_sanitizer = xyes
8014 # Use -fsanitize=address with debugging...
8015 OPTIM="$OPTIM -g -fsanitize=address"
8017 elif echo "$CXXFLAGS $CFLAGS" | grep -q _FORTIFY_SOURCE
8020 # Don't add _FORTIFY_SOURCE if it is already there
8024 # Otherwise use the Fortify enhancements to catch any unbounded
8025 # string operations...
8026 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=3"
8027 CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=3"
8031 # Default optimization options...
8035 # Default to optimize-for-size and debug
8040 # Generate position-independent code as needed...
8041 if test $PICFLAG = 1
8044 OPTIM="-fPIC $OPTIM"
8048 # The -fstack-protector-strong and -fstack-protector options are available
8049 # with some versions of GCC and adds "stack canaries" which detect
8050 # when the return address has been overwritten, preventing many types of exploit attacks.
8051 # First check for -fstack-protector-strong, then for -fstack-protector...
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector-strong" >&5
8053 printf %s "checking whether compiler supports -fstack-protector-strong... " >&6; }
8055 CFLAGS="$CFLAGS -fstack-protector-strong"
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8067 if ac_fn_c_try_link "$LINENO"
8070 OPTIM="$OPTIM -fstack-protector-strong"
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8072 printf "%s\n" "yes" >&6; }
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 printf "%s\n" "no" >&6; }
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
8079 printf %s "checking whether compiler supports -fstack-protector... " >&6; }
8080 CFLAGS="$OLDCFLAGS -fstack-protector"
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8092 if ac_fn_c_try_link "$LINENO"
8095 OPTIM="$OPTIM -fstack-protector"
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8097 printf "%s\n" "yes" >&6; }
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 printf "%s\n" "no" >&6; }
8105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8106 conftest$ac_exeext conftest.$ac_ext
8109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8110 conftest$ac_exeext conftest.$ac_ext
8113 if test "x$LSB_BUILD" != xy
8116 # The -fPIE option is available with some versions of GCC and
8117 # adds randomization of addresses, which avoids another class of
8118 # exploits that depend on a fixed address for common functions.
8120 # Not available to LSB binaries...
8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
8122 printf %s "checking whether compiler supports -fPIE... " >&6; }
8124 case "$host_os_name" in #(
8127 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8139 if ac_fn_c_try_link "$LINENO"
8142 PIEFLAGS="-fPIE -Wl,-pie"
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8144 printf "%s\n" "yes" >&6; }
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 printf "%s\n" "no" >&6; }
8152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8153 conftest$ac_exeext conftest.$ac_ext
8157 CFLAGS="$CFLAGS -fPIE -pie"
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8169 if ac_fn_c_try_compile "$LINENO"
8172 PIEFLAGS="-fPIE -pie"
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8174 printf "%s\n" "yes" >&6; }
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 printf "%s\n" "no" >&6; }
8182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8191 WARNING_OPTIONS="-Wall -Wunused"
8193 for warning in char-subscripts deprecated-declarations format-truncation format-y2k switch unused-result; do
8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-$warning" >&5
8195 printf %s "checking whether compiler supports -Wno-$warning... " >&6; }
8198 CFLAGS="$CFLAGS -Wno-$warning -Werror"
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8211 if ac_fn_c_try_compile "$LINENO"
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8215 printf "%s\n" "yes" >&6; }
8216 WARNING_OPTIONS="$WARNING_OPTIONS -Wno-$warning"
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 printf "%s\n" "no" >&6; }
8224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8229 if test x$enable_maintainer = xyes
8232 WARNING_OPTIONS="$WARNING_OPTIONS -Werror"
8238 # Add vendor-specific compiler options...
8239 case $host_os_name in #(
8240 sunos* | solaris*) :
8250 if test $PICFLAG = 1
8253 OPTIM="-KPIC $OPTIM"
8259 # Running some other operating system; inform the user
8260 # they should contribute the necessary options via
8262 echo "Building CUPS with default compiler optimizations."
8263 echo "Contact the OpenPrinting CUPS developers on GitHub with the uname and compiler"
8264 echo "options needed for your platform, or set the CFLAGS and LDFLAGS environment"
8265 echo "variables before running configure."
8267 echo "https://github.com/openprinting/cups"
8275 # Add general compiler options per platform...
8276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OS-specific compiler options" >&5
8277 printf %s "checking for OS-specific compiler options... " >&6; }
8278 case $host_os_name in #(
8281 # glibc 2.8 and higher breaks peer credentials unless you
8282 # define _GNU_SOURCE... 32-bit Linux needs 64-bit time/file offsets...
8283 OPTIM="$OPTIM -D_GNU_SOURCE -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64"
8285 # The -z relro option is provided by the Linux linker command to
8286 # make relocatable data read-only.
8287 if test x$enable_relro = xyes
8290 RELROFLAGS="-Wl,-z,relro,-z,now"
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -D_GNU_SOURCE -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 $RELROFLAGS" >&5
8295 printf "%s\n" "-D_GNU_SOURCE -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 $RELROFLAGS" >&6; }
8299 # When not building for debug, target macOS 11 or later, "universal"
8300 # binaries when possible...
8301 if echo "$CPPFLAGS $CFLAGS $LDFLAGS $OPTIM" | grep -q "\\-arch "
8304 # Don't add architecture/min-version flags if they are already present
8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8306 printf "%s\n" "none" >&6; }
8308 elif echo "$CPPFLAGS $CFLAGS $LDFLAGS $OPTIM" | grep -q "\\-mmacosx-version-"
8311 # Don't add architecture/min-version flags if they are already present
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8313 printf "%s\n" "none" >&6; }
8315 elif test "$host_os_version" -ge 200 -a x$enable_debug != xyes
8318 # macOS 11.0 and higher support the Apple Silicon (arm64) CPUs
8319 OPTIM="$OPTIM -mmacosx-version-min=11.0 -arch x86_64 -arch arm64"
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -mmacosx-version-min=11.0 -arch x86_64 -arch arm64" >&5
8321 printf "%s\n" "-mmacosx-version-min=11.0 -arch x86_64 -arch arm64" >&6; }
8325 # Don't add architecture/min-version flags if debug enabled
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8327 printf "%s\n" "none" >&6; }
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8334 printf "%s\n" "none" >&6; }
8341 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
8342 #include <sys/socket.h>
8343 #include <netinet/in.h>
8344 #include <arpa/inet.h>
8345 #include <netinet/in_systm.h>
8346 #include <netinet/ip.h>
8349 if test "x$ac_cv_header_resolv_h" = xyes
8353 printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h
8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
8361 printf %s "checking for library containing socket... " >&6; }
8362 if test ${ac_cv_search_socket+y}
8364 printf %s "(cached) " >&6
8366 ac_func_search_save_LIBS=$LIBS
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8370 /* Override any GCC internal prototype to avoid an error.
8371 Use char because int might match the return type of a GCC
8372 builtin and then its argument prototype would still apply. */
8382 for ac_lib in '' socket
8384 if test -z "$ac_lib"; then
8385 ac_res="none required"
8388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8390 if ac_fn_c_try_link "$LINENO"
8392 ac_cv_search_socket=$ac_res
8394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8396 if test ${ac_cv_search_socket+y}
8401 if test ${ac_cv_search_socket+y}
8405 ac_cv_search_socket=no
8408 LIBS=$ac_func_search_save_LIBS
8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
8411 printf "%s\n" "$ac_cv_search_socket" >&6; }
8412 ac_res=$ac_cv_search_socket
8413 if test "$ac_res" != no
8415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
8420 printf %s "checking for library containing gethostbyaddr... " >&6; }
8421 if test ${ac_cv_search_gethostbyaddr+y}
8423 printf %s "(cached) " >&6
8425 ac_func_search_save_LIBS=$LIBS
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8429 /* Override any GCC internal prototype to avoid an error.
8430 Use char because int might match the return type of a GCC
8431 builtin and then its argument prototype would still apply. */
8432 char gethostbyaddr ();
8436 return gethostbyaddr ();
8441 for ac_lib in '' nsl
8443 if test -z "$ac_lib"; then
8444 ac_res="none required"
8447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8449 if ac_fn_c_try_link "$LINENO"
8451 ac_cv_search_gethostbyaddr=$ac_res
8453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8455 if test ${ac_cv_search_gethostbyaddr+y}
8460 if test ${ac_cv_search_gethostbyaddr+y}
8464 ac_cv_search_gethostbyaddr=no
8467 LIBS=$ac_func_search_save_LIBS
8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
8470 printf "%s\n" "$ac_cv_search_gethostbyaddr" >&6; }
8471 ac_res=$ac_cv_search_gethostbyaddr
8472 if test "$ac_res" != no
8474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
8479 printf %s "checking for library containing getifaddrs... " >&6; }
8480 if test ${ac_cv_search_getifaddrs+y}
8482 printf %s "(cached) " >&6
8484 ac_func_search_save_LIBS=$LIBS
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8488 /* Override any GCC internal prototype to avoid an error.
8489 Use char because int might match the return type of a GCC
8490 builtin and then its argument prototype would still apply. */
8495 return getifaddrs ();
8500 for ac_lib in '' nsl
8502 if test -z "$ac_lib"; then
8503 ac_res="none required"
8506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8508 if ac_fn_c_try_link "$LINENO"
8510 ac_cv_search_getifaddrs=$ac_res
8512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8514 if test ${ac_cv_search_getifaddrs+y}
8519 if test ${ac_cv_search_getifaddrs+y}
8523 ac_cv_search_getifaddrs=no
8526 LIBS=$ac_func_search_save_LIBS
8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
8529 printf "%s\n" "$ac_cv_search_getifaddrs" >&6; }
8530 ac_res=$ac_cv_search_getifaddrs
8531 if test "$ac_res" != no
8533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8536 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
8542 printf %s "checking for library containing hstrerror... " >&6; }
8543 if test ${ac_cv_search_hstrerror+y}
8545 printf %s "(cached) " >&6
8547 ac_func_search_save_LIBS=$LIBS
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8551 /* Override any GCC internal prototype to avoid an error.
8552 Use char because int might match the return type of a GCC
8553 builtin and then its argument prototype would still apply. */
8558 return hstrerror ();
8563 for ac_lib in '' nsl socket resolv
8565 if test -z "$ac_lib"; then
8566 ac_res="none required"
8569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8571 if ac_fn_c_try_link "$LINENO"
8573 ac_cv_search_hstrerror=$ac_res
8575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8577 if test ${ac_cv_search_hstrerror+y}
8582 if test ${ac_cv_search_hstrerror+y}
8586 ac_cv_search_hstrerror=no
8589 LIBS=$ac_func_search_save_LIBS
8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
8592 printf "%s\n" "$ac_cv_search_hstrerror" >&6; }
8593 ac_res=$ac_cv_search_hstrerror
8594 if test "$ac_res" != no
8596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8599 printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
8605 printf %s "checking for library containing __res_init... " >&6; }
8606 if test ${ac_cv_search___res_init+y}
8608 printf %s "(cached) " >&6
8610 ac_func_search_save_LIBS=$LIBS
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8614 /* Override any GCC internal prototype to avoid an error.
8615 Use char because int might match the return type of a GCC
8616 builtin and then its argument prototype would still apply. */
8621 return __res_init ();
8626 for ac_lib in '' resolv bind
8628 if test -z "$ac_lib"; then
8629 ac_res="none required"
8632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8634 if ac_fn_c_try_link "$LINENO"
8636 ac_cv_search___res_init=$ac_res
8638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8640 if test ${ac_cv_search___res_init+y}
8645 if test ${ac_cv_search___res_init+y}
8649 ac_cv_search___res_init=no
8652 LIBS=$ac_func_search_save_LIBS
8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
8655 printf "%s\n" "$ac_cv_search___res_init" >&6; }
8656 ac_res=$ac_cv_search___res_init
8657 if test "$ac_res" != no
8659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8662 printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
8668 printf %s "checking for library containing res_9_init... " >&6; }
8669 if test ${ac_cv_search_res_9_init+y}
8671 printf %s "(cached) " >&6
8673 ac_func_search_save_LIBS=$LIBS
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8677 /* Override any GCC internal prototype to avoid an error.
8678 Use char because int might match the return type of a GCC
8679 builtin and then its argument prototype would still apply. */
8684 return res_9_init ();
8689 for ac_lib in '' resolv bind
8691 if test -z "$ac_lib"; then
8692 ac_res="none required"
8695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8697 if ac_fn_c_try_link "$LINENO"
8699 ac_cv_search_res_9_init=$ac_res
8701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8703 if test ${ac_cv_search_res_9_init+y}
8708 if test ${ac_cv_search_res_9_init+y}
8712 ac_cv_search_res_9_init=no
8715 LIBS=$ac_func_search_save_LIBS
8717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
8718 printf "%s\n" "$ac_cv_search_res_9_init" >&6; }
8719 ac_res=$ac_cv_search_res_9_init
8720 if test "$ac_res" != no
8722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8725 printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h
8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
8731 printf %s "checking for library containing res_init... " >&6; }
8732 if test ${ac_cv_search_res_init+y}
8734 printf %s "(cached) " >&6
8736 ac_func_search_save_LIBS=$LIBS
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8740 /* Override any GCC internal prototype to avoid an error.
8741 Use char because int might match the return type of a GCC
8742 builtin and then its argument prototype would still apply. */
8752 for ac_lib in '' resolv bind
8754 if test -z "$ac_lib"; then
8755 ac_res="none required"
8758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8760 if ac_fn_c_try_link "$LINENO"
8762 ac_cv_search_res_init=$ac_res
8764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8766 if test ${ac_cv_search_res_init+y}
8771 if test ${ac_cv_search_res_init+y}
8775 ac_cv_search_res_init=no
8778 LIBS=$ac_func_search_save_LIBS
8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
8781 printf "%s\n" "$ac_cv_search_res_init" >&6; }
8782 ac_res=$ac_cv_search_res_init
8783 if test "$ac_res" != no
8785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8788 printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h
8799 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBS"
8800 LIBS="$SAVELIBS $LIBS"
8802 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
8804 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
8809 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
8810 if test "x$ac_cv_header_sys_sockio_h" = xyes
8814 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
8820 CUPS_DEFAULT_DOMAINSOCKET=""
8823 # Check whether --with-domainsocket was given.
8824 if test ${with_domainsocket+y}
8826 withval=$with_domainsocket;
8827 default_domainsocket="$withval"
8831 default_domainsocket=""
8836 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno
8839 if test "x$default_domainsocket" = x
8842 case "$host_os_name" in #(
8845 # Darwin and macOS do their own thing...
8846 CUPS_DEFAULT_DOMAINSOCKET="/private/var/run/cupsd"
8850 # All others use FHS standard...
8851 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
8859 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
8863 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
8866 printf "%s\n" "#define CUPS_DEFAULT_DOMAINSOCKET \"$CUPS_DEFAULT_DOMAINSOCKET\"" >>confdefs.h
8871 CUPS_LISTEN_DOMAINSOCKET=""
8879 # Check whether --enable-gssapi was given.
8880 if test ${enable_gssapi+y}
8882 enableval=$enable_gssapi;
8889 if test x$enable_gssapi = xyes
8892 if test -n "$ac_tool_prefix"; then
8893 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
8894 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 printf %s "checking for $ac_word... " >&6; }
8897 if test ${ac_cv_path_KRB5CONFIG+y}
8899 printf %s "(cached) " >&6
8903 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 case $as_dir in #(((
8913 *) as_dir=$as_dir/ ;;
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8917 ac_cv_path_KRB5CONFIG="$as_dir$ac_word$ac_exec_ext"
8918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8928 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
8929 if test -n "$KRB5CONFIG"; then
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
8931 printf "%s\n" "$KRB5CONFIG" >&6; }
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934 printf "%s\n" "no" >&6; }
8939 if test -z "$ac_cv_path_KRB5CONFIG"; then
8940 ac_pt_KRB5CONFIG=$KRB5CONFIG
8941 # Extract the first word of "krb5-config", so it can be a program name with args.
8942 set dummy krb5-config; ac_word=$2
8943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 printf %s "checking for $ac_word... " >&6; }
8945 if test ${ac_cv_path_ac_pt_KRB5CONFIG+y}
8947 printf %s "(cached) " >&6
8949 case $ac_pt_KRB5CONFIG in
8951 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
8954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958 case $as_dir in #(((
8961 *) as_dir=$as_dir/ ;;
8963 for ac_exec_ext in '' $ac_executable_extensions; do
8964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8965 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir$ac_word$ac_exec_ext"
8966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8976 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
8977 if test -n "$ac_pt_KRB5CONFIG"; then
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
8979 printf "%s\n" "$ac_pt_KRB5CONFIG" >&6; }
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 printf "%s\n" "no" >&6; }
8985 if test "x$ac_pt_KRB5CONFIG" = x; then
8988 case $cross_compiling:$ac_tool_warned in
8990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8992 ac_tool_warned=yes ;;
8994 KRB5CONFIG=$ac_pt_KRB5CONFIG
8997 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
9000 case "$host_os_name" in #(
9003 # macOS weak-links to the Kerberos framework...
9005 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
9007 LIBGSSAPI="-weak_framework Kerberos"
9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
9009 printf %s "checking for GSS framework... " >&6; }
9010 if test -d /System/Library/Frameworks/GSS.framework
9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9014 printf "%s\n" "yes" >&6; }
9015 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 printf "%s\n" "no" >&6; }
9024 sunos* | solaris*) :
9026 # Solaris has a non-standard krb5-config, don't use it!
9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
9029 printf %s "checking for gss_display_status in -lgss... " >&6; }
9030 if test ${ac_cv_lib_gss_gss_display_status+y}
9032 printf %s "(cached) " >&6
9034 ac_check_lib_save_LIBS=$LIBS
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9039 /* Override any GCC internal prototype to avoid an error.
9040 Use char because int might match the return type of a GCC
9041 builtin and then its argument prototype would still apply. */
9042 char gss_display_status ();
9046 return gss_display_status ();
9051 if ac_fn_c_try_link "$LINENO"
9053 ac_cv_lib_gss_gss_display_status=yes
9055 ac_cv_lib_gss_gss_display_status=no
9057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9058 conftest$ac_exeext conftest.$ac_ext
9059 LIBS=$ac_check_lib_save_LIBS
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
9062 printf "%s\n" "$ac_cv_lib_gss_gss_display_status" >&6; }
9063 if test "x$ac_cv_lib_gss_gss_display_status" = xyes
9067 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
9069 if test "x$KRB5CONFIG" != x
9072 CFLAGS="$($KRB5CONFIG --cflags) $CFLAGS"
9073 CPPFLAGS="$($KRB5CONFIG --cflags) $CPPFLAGS"
9074 LIBGSSAPI="-lgss $($KRB5CONFIG --libs)"
9084 as_fn_error $? "--enable-gssapi specified but GSSAPI library cannot be found." "$LINENO" 5
9092 # Other platforms just ask for GSSAPI
9093 if test "x$KRB5CONFIG" = x
9096 as_fn_error $? "--enable-gssapi specified but krb5-config cannot be found." "$LINENO" 5
9101 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
9103 CFLAGS="$($KRB5CONFIG --cflags gssapi) $CFLAGS"
9104 CPPFLAGS="$($KRB5CONFIG --cflags gssapi) $CPPFLAGS"
9105 LIBGSSAPI="$($KRB5CONFIG --libs gssapi)"
9113 ac_fn_c_check_header_compile "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
9114 if test "x$ac_cv_header_krb5_h" = xyes
9117 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
9121 if test -d /System/Library/Frameworks/GSS.framework
9124 ac_fn_c_check_header_compile "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
9125 if test "x$ac_cv_header_GSS_gssapi_h" = xyes
9128 printf "%s\n" "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
9132 ac_fn_c_check_header_compile "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
9133 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes
9136 printf "%s\n" "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
9140 ac_fn_c_check_header_compile "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
9141 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes
9144 printf "%s\n" "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
9151 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
9152 if test "x$ac_cv_header_gssapi_h" = xyes
9155 printf "%s\n" "#define HAVE_GSSAPI_H 1" >>confdefs.h
9159 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
9160 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
9163 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
9171 LIBS="$LIBS $LIBGSSAPI"
9172 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBGSSAPI"
9174 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
9175 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes
9179 printf "%s\n" "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
9186 printf %s "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
9187 if test x$ac_cv_header_gssapi_gssapi_h = xyes
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9193 #include <gssapi/gssapi.h>
9198 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9205 if ac_fn_c_try_compile "$LINENO"
9209 printf "%s\n" "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9212 printf "%s\n" "yes" >&6; }
9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9217 printf "%s\n" "no" >&6; }
9220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9222 elif test x$ac_cv_header_gss_gssapi_h = xyes
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9228 #include <GSS/gssapi.h>
9233 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9240 if ac_fn_c_try_compile "$LINENO"
9244 printf "%s\n" "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9247 printf "%s\n" "yes" >&6; }
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 printf "%s\n" "no" >&6; }
9255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9267 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9274 if ac_fn_c_try_compile "$LINENO"
9278 printf "%s\n" "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9281 printf "%s\n" "yes" >&6; }
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 printf "%s\n" "no" >&6; }
9289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9298 # Check whether --with-gssservicename was given.
9299 if test ${with_gssservicename+y}
9301 withval=$with_gssservicename;
9302 default_gssservicename="$withval"
9306 default_gssservicename="default"
9311 if test x$default_gssservicename != xno
9314 if test "x$default_gssservicename" = "xdefault"
9317 CUPS_DEFAULT_GSSSERVICENAME="host"
9321 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
9327 CUPS_DEFAULT_GSSSERVICENAME=""
9333 printf "%s\n" "#define CUPS_DEFAULT_GSSSERVICENAME \"$CUPS_DEFAULT_GSSSERVICENAME\"" >>confdefs.h
9341 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9342 if test "x$ac_cv_header_pthread_h" = xyes
9346 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
9352 if test x$ac_cv_header_pthread_h = xyes
9355 for flag in -lpthreads -lpthread -pthread; do
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
9357 printf %s "checking for pthread_create using $flag... " >&6; }
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9363 #include <pthread.h>
9368 pthread_create(0, 0, 0, 0);
9375 if ac_fn_c_try_link "$LINENO"
9385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9386 conftest$ac_exeext conftest.$ac_ext
9387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
9388 printf "%s\n" "$have_pthread" >&6; }
9390 if test $have_pthread = yes
9393 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
9395 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to be POSIX-
9397 if test $host_os_name = sunos -o $host_os_name = solaris
9400 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
9410 if test $have_pthread = no
9413 as_fn_error $? "CUPS requires threading support." "$LINENO" 5
9419 # Check whether --with-tls was given.
9420 if test ${with_tls+y}
9425 if test "x$with_tls" = x
9430 elif test "$with_tls" != gnutls -a "$with_tls" != openssl -a "$with_tls" != yes
9433 as_fn_error $? "Unsupported --with-tls value \"$with_tls\" specified." "$LINENO" 5
9440 CUPS_SERVERKEYCHAIN=""
9442 if test $with_tls = yes -o $with_tls = openssl
9445 if test "x$PKGCONFIG" != x
9448 # Find openssl using pkg-config...
9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl package" >&5
9450 printf %s "checking for openssl package... " >&6; }
9451 if $PKGCONFIG --exists openssl
9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9455 printf "%s\n" "yes" >&6; }
9458 TLSLIBS="$($PKGCONFIG --libs openssl)"
9459 TLSFLAGS="$($PKGCONFIG --cflags openssl)"
9460 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES openssl"
9462 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 printf "%s\n" "no" >&6; }
9474 # Find openssl using legacy library/header checks...
9476 LIBS="-lcrypto $LIBS"
9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
9479 printf %s "checking for SSL_new in -lssl... " >&6; }
9480 if test ${ac_cv_lib_ssl_SSL_new+y}
9482 printf %s "(cached) " >&6
9484 ac_check_lib_save_LIBS=$LIBS
9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9489 /* Override any GCC internal prototype to avoid an error.
9490 Use char because int might match the return type of a GCC
9491 builtin and then its argument prototype would still apply. */
9501 if ac_fn_c_try_link "$LINENO"
9503 ac_cv_lib_ssl_SSL_new=yes
9505 ac_cv_lib_ssl_SSL_new=no
9507 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9508 conftest$ac_exeext conftest.$ac_ext
9509 LIBS=$ac_check_lib_save_LIBS
9511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
9512 printf "%s\n" "$ac_cv_lib_ssl_SSL_new" >&6; }
9513 if test "x$ac_cv_lib_ssl_SSL_new" = xyes
9516 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
9517 if test "x$ac_cv_header_openssl_ssl_h" = xyes
9522 TLSLIBS="-lssl -lcrypto"
9523 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $TLSLIBS"
9525 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
9538 if test $have_tls = 1
9541 CUPS_SERVERKEYCHAIN="ssl"
9543 elif test $with_tls = openssl
9546 as_fn_error $? "--with-tls=openssl was specified but neither the OpenSSL nor LibreSSL library were found." "$LINENO" 5
9552 if test $with_tls = yes -o $with_tls = gnutls
9555 if test -n "$ac_tool_prefix"; then
9556 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
9557 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559 printf %s "checking for $ac_word... " >&6; }
9560 if test ${ac_cv_path_LIBGNUTLSCONFIG+y}
9562 printf %s "(cached) " >&6
9564 case $LIBGNUTLSCONFIG in
9566 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
9569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573 case $as_dir in #(((
9576 *) as_dir=$as_dir/ ;;
9578 for ac_exec_ext in '' $ac_executable_extensions; do
9579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9580 ac_cv_path_LIBGNUTLSCONFIG="$as_dir$ac_word$ac_exec_ext"
9581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9591 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
9592 if test -n "$LIBGNUTLSCONFIG"; then
9593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
9594 printf "%s\n" "$LIBGNUTLSCONFIG" >&6; }
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9597 printf "%s\n" "no" >&6; }
9602 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
9603 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
9604 # Extract the first word of "libgnutls-config", so it can be a program name with args.
9605 set dummy libgnutls-config; ac_word=$2
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607 printf %s "checking for $ac_word... " >&6; }
9608 if test ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+y}
9610 printf %s "(cached) " >&6
9612 case $ac_pt_LIBGNUTLSCONFIG in
9614 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
9617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621 case $as_dir in #(((
9624 *) as_dir=$as_dir/ ;;
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9628 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir$ac_word$ac_exec_ext"
9629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9639 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
9640 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
9642 printf "%s\n" "$ac_pt_LIBGNUTLSCONFIG" >&6; }
9644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9645 printf "%s\n" "no" >&6; }
9648 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
9651 case $cross_compiling:$ac_tool_warned in
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9654 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9655 ac_tool_warned=yes ;;
9657 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
9660 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
9663 if test "x$PKGCONFIG" != x
9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls package" >&5
9667 printf %s "checking for gnutls package... " >&6; }
9668 if $PKGCONFIG --exists gnutls
9671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9672 printf "%s\n" "yes" >&6; }
9675 TLSLIBS="$($PKGCONFIG --libs gnutls)"
9676 TLSFLAGS="$($PKGCONFIG --cflags gnutls)"
9677 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES gnutls"
9679 printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h
9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 printf "%s\n" "no" >&6; }
9690 if test $have_tls = 0 -a "x$LIBGNUTLSCONFIG" != x
9695 TLSLIBS="$($LIBGNUTLSCONFIG --libs)"
9696 TLSFLAGS="$($LIBGNUTLSCONFIG --cflags)"
9697 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $TLSLIBS"
9699 printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h
9704 if test $have_tls = 1
9707 CUPS_SERVERKEYCHAIN="ssl"
9710 LIBS="$LIBS $TLSLIBS"
9711 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
9712 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes
9716 printf "%s\n" "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
9721 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
9722 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes
9726 printf "%s\n" "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
9733 elif test $with_tls = gnutls
9736 as_fn_error $? "--with-tls=gnutls was specified but the GNU TLS library was not found." "$LINENO" 5
9742 if test $have_tls = 1
9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using TLSLIBS=\"$TLSLIBS\"" >&5
9746 printf "%s\n" "$as_me: Using TLSLIBS=\"$TLSLIBS\"" >&6;}
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using TLSFLAGS=\"$TLSFLAGS\"" >&5
9748 printf "%s\n" "$as_me: Using TLSFLAGS=\"$TLSFLAGS\"" >&6;}
9752 as_fn_error $? "No compatible TLS libraries could be found." "$LINENO" 5
9760 EXPORT_TLSLIBS="$TLSLIBS"
9764 # Check whether --enable-pam was given.
9765 if test ${enable_pam+y}
9767 enableval=$enable_pam;
9771 # Check whether --with-pam_module was given.
9772 if test ${with_pam_module+y}
9774 withval=$with_pam_module;
9781 PAMMOD="pam_unknown.so"
9782 PAMMODAUTH="pam_unknown.so"
9784 if test x$enable_pam != xno
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9790 printf %s "checking for dlopen in -ldl... " >&6; }
9791 if test ${ac_cv_lib_dl_dlopen+y}
9793 printf %s "(cached) " >&6
9795 ac_check_lib_save_LIBS=$LIBS
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9800 /* Override any GCC internal prototype to avoid an error.
9801 Use char because int might match the return type of a GCC
9802 builtin and then its argument prototype would still apply. */
9812 if ac_fn_c_try_link "$LINENO"
9814 ac_cv_lib_dl_dlopen=yes
9816 ac_cv_lib_dl_dlopen=no
9818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9819 conftest$ac_exeext conftest.$ac_ext
9820 LIBS=$ac_check_lib_save_LIBS
9822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9823 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
9824 if test "x$ac_cv_lib_dl_dlopen" = xyes
9826 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
9832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
9833 printf %s "checking for pam_start in -lpam... " >&6; }
9834 if test ${ac_cv_lib_pam_pam_start+y}
9836 printf %s "(cached) " >&6
9838 ac_check_lib_save_LIBS=$LIBS
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9843 /* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
9850 return pam_start ();
9855 if ac_fn_c_try_link "$LINENO"
9857 ac_cv_lib_pam_pam_start=yes
9859 ac_cv_lib_pam_pam_start=no
9861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9862 conftest$ac_exeext conftest.$ac_ext
9863 LIBS=$ac_check_lib_save_LIBS
9865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
9866 printf "%s\n" "$ac_cv_lib_pam_pam_start" >&6; }
9867 if test "x$ac_cv_lib_pam_pam_start" = xyes
9869 printf "%s\n" "#define HAVE_LIBPAM 1" >>confdefs.h
9875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
9876 printf %s "checking for pam_set_item in -lpam... " >&6; }
9877 if test ${ac_cv_lib_pam_pam_set_item+y}
9879 printf %s "(cached) " >&6
9881 ac_check_lib_save_LIBS=$LIBS
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9886 /* Override any GCC internal prototype to avoid an error.
9887 Use char because int might match the return type of a GCC
9888 builtin and then its argument prototype would still apply. */
9889 char pam_set_item ();
9893 return pam_set_item ();
9898 if ac_fn_c_try_link "$LINENO"
9900 ac_cv_lib_pam_pam_set_item=yes
9902 ac_cv_lib_pam_pam_set_item=no
9904 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9905 conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
9909 printf "%s\n" "$ac_cv_lib_pam_pam_set_item" >&6; }
9910 if test "x$ac_cv_lib_pam_pam_set_item" = xyes
9914 printf "%s\n" "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
9920 printf %s "checking for pam_setcred in -lpam... " >&6; }
9921 if test ${ac_cv_lib_pam_pam_setcred+y}
9923 printf %s "(cached) " >&6
9925 ac_check_lib_save_LIBS=$LIBS
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9930 /* Override any GCC internal prototype to avoid an error.
9931 Use char because int might match the return type of a GCC
9932 builtin and then its argument prototype would still apply. */
9933 char pam_setcred ();
9937 return pam_setcred ();
9942 if ac_fn_c_try_link "$LINENO"
9944 ac_cv_lib_pam_pam_setcred=yes
9946 ac_cv_lib_pam_pam_setcred=no
9948 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9949 conftest$ac_exeext conftest.$ac_ext
9950 LIBS=$ac_check_lib_save_LIBS
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
9953 printf "%s\n" "$ac_cv_lib_pam_pam_setcred" >&6; }
9954 if test "x$ac_cv_lib_pam_pam_setcred" = xyes
9958 printf "%s\n" "#define HAVE_PAM_SETCRED 1" >>confdefs.h
9963 ac_fn_c_check_header_compile "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
9964 if test "x$ac_cv_header_security_pam_appl_h" = xyes
9969 if test x$ac_cv_header_security_pam_appl_h != xyes
9972 ac_fn_c_check_header_compile "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
9973 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
9977 printf "%s\n" "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
9985 if test x$ac_cv_lib_pam_pam_start != xno
9988 # Set the necessary libraries for PAM...
9989 if test x$ac_cv_lib_dl_dlopen != xno
9992 PAMLIBS="-lpam -ldl"
10000 # Find the PAM configuration directory, if any...
10001 for dir in /private/etc/pam.d /etc/pam.d; do
10015 case "$host_os_name" in #(
10019 if test "x$with_pam_module" != x
10022 PAMFILE="pam.$with_pam_module"
10024 elif test -f /usr/lib/pam/pam_opendirectory.so.2
10027 PAMFILE="pam.opendirectory"
10031 PAMFILE="pam.securityserver"
10037 # All others; this test might need to be updated
10038 # as Linux distributors move things around...
10039 if test "x$with_pam_module" != x
10042 PAMMOD="pam_${with_pam_module}.so"
10044 elif test -f /etc/pam.d/common-auth
10047 PAMFILE="pam.common"
10049 elif test -f /etc/pam.d/password-auth
10052 PAMFILE="pam.password"
10054 elif test -f /etc/pam.d/system-auth
10057 PAMFILE="pam.system"
10062 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
10072 if test -f $moddir/pam_unix2.so
10075 PAMMOD="pam_unix2.so"
10077 elif test -f $moddir/pam_unix.so
10080 PAMMOD="pam_unix.so"
10086 if test "x$PAMMOD" = xpam_unix.so
10089 PAMMODAUTH="$PAMMOD shadow nodelay"
10093 PAMMODAUTH="$PAMMOD nodelay"
10110 # Check whether --enable-largefile was given.
10111 if test ${enable_largefile+y}
10113 enableval=$enable_largefile;
10116 if test "$enable_largefile" != no; then
10118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10119 printf %s "checking for special C compiler options needed for large files... " >&6; }
10120 if test ${ac_cv_sys_largefile_CC+y}
10122 printf %s "(cached) " >&6
10124 ac_cv_sys_largefile_CC=no
10125 if test "$GCC" != yes; then
10128 # IRIX 6.2 and later do not support large files by default,
10129 # so use the C compiler's -n32 option if that helps.
10130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131 /* end confdefs.h. */
10132 #include <sys/types.h>
10133 /* Check that off_t can represent 2**63 - 1 correctly.
10134 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10135 since some C++ compilers masquerading as C compilers
10136 incorrectly reject 9223372036854775807. */
10137 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
10138 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10139 && LARGE_OFF_T % 2147483647 == 1)
10149 if ac_fn_c_try_compile "$LINENO"
10153 rm -f core conftest.err conftest.$ac_objext conftest.beam
10155 if ac_fn_c_try_compile "$LINENO"
10157 ac_cv_sys_largefile_CC=' -n32'; break
10159 rm -f core conftest.err conftest.$ac_objext conftest.beam
10163 rm -f conftest.$ac_ext
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10167 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
10168 if test "$ac_cv_sys_largefile_CC" != no; then
10169 CC=$CC$ac_cv_sys_largefile_CC
10172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10173 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10174 if test ${ac_cv_sys_file_offset_bits+y}
10176 printf %s "(cached) " >&6
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 #include <sys/types.h>
10182 /* Check that off_t can represent 2**63 - 1 correctly.
10183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10184 since some C++ compilers masquerading as C compilers
10185 incorrectly reject 9223372036854775807. */
10186 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
10187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10188 && LARGE_OFF_T % 2147483647 == 1)
10198 if ac_fn_c_try_compile "$LINENO"
10200 ac_cv_sys_file_offset_bits=no; break
10202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10205 #define _FILE_OFFSET_BITS 64
10206 #include <sys/types.h>
10207 /* Check that off_t can represent 2**63 - 1 correctly.
10208 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10209 since some C++ compilers masquerading as C compilers
10210 incorrectly reject 9223372036854775807. */
10211 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
10212 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10213 && LARGE_OFF_T % 2147483647 == 1)
10223 if ac_fn_c_try_compile "$LINENO"
10225 ac_cv_sys_file_offset_bits=64; break
10227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10228 ac_cv_sys_file_offset_bits=unknown
10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10233 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
10234 case $ac_cv_sys_file_offset_bits in #(
10237 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
10241 if test $ac_cv_sys_file_offset_bits = unknown; then
10242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10243 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
10244 if test ${ac_cv_sys_large_files+y}
10246 printf %s "(cached) " >&6
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10251 #include <sys/types.h>
10252 /* Check that off_t can represent 2**63 - 1 correctly.
10253 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10254 since some C++ compilers masquerading as C compilers
10255 incorrectly reject 9223372036854775807. */
10256 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
10257 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10258 && LARGE_OFF_T % 2147483647 == 1)
10268 if ac_fn_c_try_compile "$LINENO"
10270 ac_cv_sys_large_files=no; break
10272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 #define _LARGE_FILES 1
10276 #include <sys/types.h>
10277 /* Check that off_t can represent 2**63 - 1 correctly.
10278 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10279 since some C++ compilers masquerading as C compilers
10280 incorrectly reject 9223372036854775807. */
10281 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
10282 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10283 && LARGE_OFF_T % 2147483647 == 1)
10293 if ac_fn_c_try_compile "$LINENO"
10295 ac_cv_sys_large_files=1; break
10297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10298 ac_cv_sys_large_files=unknown
10302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10303 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
10304 case $ac_cv_sys_large_files in #(
10307 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
10316 if test x$enable_largefile != xno
10319 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
10321 if test x$ac_cv_sys_large_files = x1
10324 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
10328 if test x$ac_cv_sys_file_offset_bits = x64
10331 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10339 printf %s "checking for long long int... " >&6; }
10340 if test ${ac_cv_c_long_long+y}
10342 printf %s "(cached) " >&6
10345 if test "$GCC" = yes
10348 ac_cv_c_long_long="yes"
10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10365 if ac_fn_c_try_compile "$LINENO"
10368 ac_cv_c_long_long="yes"
10372 ac_cv_c_long_long="no"
10375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
10381 printf "%s\n" "$ac_cv_c_long_long" >&6; }
10383 if test $ac_cv_c_long_long = yes
10387 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
10392 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
10393 if test "x$ac_cv_func_strtoll" = xyes
10397 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
10405 # Check whether --with-dnssd was given.
10406 if test ${with_dnssd+y}
10408 withval=$with_dnssd;
10411 if test x$with_dnssd = x
10416 elif test "$with_dnssd" != avahi -a "$with_dnssd" != mdnsresponder -a "$with_dnssd" != no -a "$with_dnssd" != yes
10419 as_fn_error $? "Unsupported --with-dnssd value \"$with_dnssd\"." "$LINENO" 5
10423 # Check whether --with-dnssd_libs was given.
10424 if test ${with_dnssd_libs+y}
10426 withval=$with_dnssd_libs;
10427 LDFLAGS="-L$withval $LDFLAGS"
10428 DSOFLAGS="-L$withval $DSOFLAGS"
10433 # Check whether --with-dnssd_includes was given.
10434 if test ${with_dnssd_includes+y}
10436 withval=$with_dnssd_includes;
10437 CFLAGS="-I$withval $CFLAGS"
10438 CPPFLAGS="-I$withval $CPPFLAGS"
10448 if test $with_dnssd = yes -o $with_dnssd = mdnsresponder
10451 ac_fn_c_check_header_compile "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
10452 if test "x$ac_cv_header_dns_sd_h" = xyes
10455 case "$host_os_name" in #(
10458 # Darwin and macOS...
10459 with_dnssd="mdnsresponder"
10461 printf "%s\n" "#define HAVE_MDNSRESPONDER 1" >>confdefs.h
10463 DNSSD_BACKEND="dnssd"
10464 IPPFIND_BIN="ippfind"
10465 IPPFIND_MAN="ippfind.1"
10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
10471 printf %s "checking for current version of dns_sd library... " >&6; }
10473 LIBS="$LIBS -ldns_sd"
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10477 #include <dns_sd.h>
10482 int constant = kDNSServiceFlagsShareConnection;
10483 unsigned char txtRecord[100];
10485 TXTRecordGetValuePtr(sizeof(txtRecord), txtRecord, "value", &valueLen);
10492 if ac_fn_c_try_compile "$LINENO"
10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10496 printf "%s\n" "yes" >&6; }
10497 with_dnssd="mdnsresponder"
10499 printf "%s\n" "#define HAVE_MDNSRESPONDER 1" >>confdefs.h
10501 DNSSDLIBS="-ldns_sd"
10502 DNSSD_BACKEND="dnssd"
10503 IPPFIND_BIN="ippfind"
10504 IPPFIND_MAN="ippfind.1"
10505 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $DNSSDLIBS"
10509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510 printf "%s\n" "no" >&6; }
10511 if test $with_dnssd = mdnsresponder
10514 as_fn_error $? "--with-dnssd=mdnsresponder specified but dns_sd library not present." "$LINENO" 5
10519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10531 if test $with_dnssd = avahi -o $with_dnssd = yes
10534 if test "x$PKGCONFIG" = x
10537 if test $with_dnssd = avahi
10540 as_fn_error $? "Avahi requires pkg-config." "$LINENO" 5
10546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Avahi client" >&5
10547 printf %s "checking for Avahi client... " >&6; }
10548 if $PKGCONFIG --exists avahi-client
10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10552 printf "%s\n" "yes" >&6; }
10553 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
10554 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
10555 DNSSD_BACKEND="dnssd"
10556 IPPFIND_BIN="ippfind"
10557 IPPFIND_MAN="ippfind.1"
10558 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES avahi-client"
10560 printf "%s\n" "#define HAVE_AVAHI 1" >>confdefs.h
10565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 printf "%s\n" "no" >&6; }
10567 if test $with_dnssd = avahi
10570 as_fn_error $? "--with-dnssd=avahi specified but Avahi client not present." "$LINENO" 5
10589 # Check whether --with-container was given.
10590 if test ${with_container+y}
10592 withval=$with_container;
10593 CONTAINER="$withval"
10598 case "$CONTAINER" in #(
10601 # No container in use
10605 # Building as a snap
10607 printf "%s\n" "#define CUPS_SNAP 1" >>confdefs.h
10612 as_fn_error $? "Unsupported container '$CONTAINER' specified." "$LINENO" 5
10624 if test "x$PKGCONFIG" != x
10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libapparmor" >&5
10628 printf %s "checking for libapparmor... " >&6; }
10629 if $PKGCONFIG --exists libapparmor
10632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10633 printf "%s\n" "yes" >&6; }
10635 CFLAGS="$CFLAGS $($PKGCONFIG --cflags libapparmor)"
10636 APPARMORLIBS="$($PKGCONFIG --libs libapparmor)"
10638 printf "%s\n" "#define HAVE_LIBAPPARMOR 1" >>confdefs.h
10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsnapd-glib-2" >&5
10642 printf %s "checking for libsnapd-glib-2... " >&6; }
10643 if $PKGCONFIG --exists snapd-glib-2 glib-2.0 gio-2.0
10646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10647 printf "%s\n" "yes" >&6; }
10648 CFLAGS="$CFLAGS $($PKGCONFIG --cflags snapd-glib-2 glib-2.0 gio-2.0)"
10649 SNAPDGLIBLIBS="$($PKGCONFIG --libs snapd-glib-2 glib-2.0 gio-2.0)"
10651 printf "%s\n" "#define HAVE_LIBSNAPDGLIB 1" >>confdefs.h
10654 LIBS="$SNAPDGLIBLIBS $LIBS"
10655 ac_fn_c_check_func "$LINENO" "snapd_client_run_snapctl2_sync" "ac_cv_func_snapd_client_run_snapctl2_sync"
10656 if test "x$ac_cv_func_snapd_client_run_snapctl2_sync" = xyes
10660 printf "%s\n" "#define HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC 1" >>confdefs.h
10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsnapd-glib" >&5
10670 printf %s "checking for libsnapd-glib... " >&6; }
10671 if $PKGCONFIG --exists snapd-glib glib-2.0 gio-2.0
10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10675 printf "%s\n" "yes" >&6; }
10676 CFLAGS="$CFLAGS $($PKGCONFIG --cflags snapd-glib glib-2.0 gio-2.0)"
10677 SNAPDGLIBLIBS="$($PKGCONFIG --libs snapd-glib glib-2.0 gio-2.0)"
10679 printf "%s\n" "#define HAVE_LIBSNAPDGLIB 1" >>confdefs.h
10682 LIBS="$SNAPDGLIBLIBS $LIBS"
10683 ac_fn_c_check_func "$LINENO" "snapd_client_run_snapctl2_sync" "ac_cv_func_snapd_client_run_snapctl2_sync"
10684 if test "x$ac_cv_func_snapd_client_run_snapctl2_sync" = xyes
10688 printf "%s\n" "#define HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC 1" >>confdefs.h
10697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698 printf "%s\n" "no" >&6; }
10715 # Check whether --with-ondemand was given.
10716 if test ${with_ondemand+y}
10718 withval=$with_ondemand;
10722 if test "x$with_ondemand" = x
10725 if test $host_os_name = darwin
10728 with_ondemand="launchd"
10732 with_ondemand="yes"
10736 elif test "x$with_ondemand" = xyes -a $host_os_name = darwin
10739 with_ondemand="launchd"
10741 elif test "x$with_ondemand" != xno -a "x$with_ondemand" != xsystemd -a "x$with_ondemand" != xupstart -a "x$with_ondemand" != xyes
10744 as_fn_error $? "Unknown --with-ondemand value \"$with_ondemand\" specified." "$LINENO" 5
10751 if test $with_ondemand = launchd
10754 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
10755 if test "x$ac_cv_func_launch_activate_socket" = xyes
10759 printf "%s\n" "#define HAVE_LAUNCHD 1" >>confdefs.h
10762 printf "%s\n" "#define HAVE_ONDEMAND 1" >>confdefs.h
10764 with_ondemand="launchd"
10768 if test $with_ondemand = launchd
10771 as_fn_error $? "Need launch_activate_socket/liblaunch for launchd support." "$LINENO" 5
10777 ac_fn_c_check_header_compile "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
10778 if test "x$ac_cv_header_launch_h" = xyes
10782 printf "%s\n" "#define HAVE_LAUNCH_H 1" >>confdefs.h
10788 if test $host_os_name = darwin
10791 LAUNCHD_DIR="/System/Library/LaunchDaemons"
10792 # liblaunch is already part of libSystem
10799 # Check whether --with-systemd was given.
10800 if test ${with_systemd+y}
10802 withval=$with_systemd;
10803 SYSTEMD_DIR="$withval"
10813 if test $with_ondemand = systemd -o $with_ondemand = yes
10816 if test "x$PKGCONFIG" = x
10819 if test $with_ondemand = systemd
10822 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
10829 printf %s "checking for libsystemd... " >&6; }
10831 if $PKGCONFIG --exists libsystemd
10834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10835 printf "%s\n" "yes" >&6; }
10837 with_ondemand="systemd"
10838 ONDEMANDFLAGS="$($PKGCONFIG --cflags libsystemd)"
10839 ONDEMANDLIBS="$($PKGCONFIG --libs libsystemd)"
10841 elif $PKGCONFIG --exists libsystemd-daemon
10844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
10845 printf "%s\n" "yes - legacy" >&6; }
10847 with_ondemand="systemd"
10848 ONDEMANDFLAGS="$($PKGCONFIG --cflags libsystemd-daemon)"
10849 ONDEMANDLIBS="$($PKGCONFIG --libs libsystemd-daemon)"
10851 if $PKGCONFIG --exists libsystemd-journal
10854 ONDEMANDFLAGS="$ONDEMANDFLAGS $($PKGCONFIG --cflags libsystemd-journal)"
10855 ONDEMANDLIBS="$ONDEMANDLIBS $($PKGCONFIG --libs libsystemd-journal)"
10861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 printf "%s\n" "no" >&6; }
10866 if test $have_systemd = yes
10870 printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h
10873 printf "%s\n" "#define HAVE_ONDEMAND 1" >>confdefs.h
10875 ac_fn_c_check_header_compile "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
10876 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes
10880 printf "%s\n" "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
10885 if test "x$SYSTEMD_DIR" = x
10888 SYSTEMD_DIR="$($PKGCONFIG --variable=systemdsystemunitdir systemd)"
10898 if test $with_ondemand = upstart
10901 printf "%s\n" "#define HAVE_UPSTART. 1 Have upstart support?" >>confdefs.h
10904 printf "%s\n" "#define HAVE_ONDEMAND 1" >>confdefs.h
10910 # Check whether --with-smfmanifestdir was given.
10911 if test ${with_smfmanifestdir+y}
10913 withval=$with_smfmanifestdir;
10914 SMFMANIFESTDIR="$withval"
10925 # Check whether --with-rcdir was given.
10926 if test ${with_rcdir+y}
10928 withval=$with_rcdir;
10938 # Check whether --with-rclevels was given.
10939 if test ${with_rclevels+y}
10941 withval=$with_rclevels;
10942 rclevels="$withval"
10951 # Check whether --with-rcstart was given.
10952 if test ${with_rcstart+y}
10954 withval=$with_rcstart;
10964 # Check whether --with-rcstop was given.
10965 if test ${with_rcstop+y}
10967 withval=$with_rcstop;
10977 if test "x$rcdir" = x
10980 if test "x$LAUNCHD_DIR" = x -a "x$SYSTEMD_DIR" = x -a "x$SMFMANIFESTDIR" = x
10983 # Fall back on "init", the original service startup interface...
10984 if test -d /sbin/init.d
10988 rcdir="/sbin/init.d"
10990 elif test -d /etc/init.d
11011 if test "x$rcstart" = x
11014 case "$host_os_name" in #(
11036 if test "x$rcstop" = x
11039 case "$host_os_name" in #(
11058 RCLEVELS="$rclevels"
11067 if test "x$rcdir" != xno
11070 if test "x$rclevels" = x
11084 # Check whether --with-xinetd was given.
11085 if test ${with_xinetd+y}
11087 withval=$with_xinetd;
11099 if test "x$xinetd" = x
11102 if test ! -x /sbin/launchd
11105 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
11117 elif test "x$xinetd" != xno
11125 SYSTEMD_WANTED_BY="printer.target"
11127 LANGUAGES="$(ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' ')"
11130 # Check whether --with-languages was given.
11131 if test ${with_languages+y}
11133 withval=$with_languages;
11134 case "$withval" in #(
11144 LANGUAGES="$withval"
11155 # Check whether --with-exe_file_perm was given.
11156 if test ${with_exe_file_perm+y}
11158 withval=$with_exe_file_perm;
11159 CUPS_EXE_FILE_PERM="$withval"
11163 CUPS_EXE_FILE_PERM="755"
11170 # Check whether --with-config_file_perm was given.
11171 if test ${with_config_file_perm+y}
11173 withval=$with_config_file_perm;
11174 CUPS_CONFIG_FILE_PERM="$withval"
11178 CUPS_CONFIG_FILE_PERM="640"
11184 printf "%s\n" "#define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM" >>confdefs.h
11188 # Check whether --with-cupsd_file_perm was given.
11189 if test ${with_cupsd_file_perm+y}
11191 withval=$with_cupsd_file_perm;
11192 CUPS_CUPSD_FILE_PERM="$withval"
11196 CUPS_CUPSD_FILE_PERM="700"
11203 # Check whether --with-log_file_perm was given.
11204 if test ${with_log_file_perm+y}
11206 withval=$with_log_file_perm;
11207 CUPS_LOG_FILE_PERM="$withval"
11211 CUPS_LOG_FILE_PERM="644"
11217 printf "%s\n" "#define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM" >>confdefs.h
11221 # Check whether --with-max_log_size was given.
11222 if test ${with_max_log_size+y}
11224 withval=$with_max_log_size;
11225 CUPS_MAX_LOG_SIZE="$withval"
11229 CUPS_MAX_LOG_SIZE="1m"
11235 printf "%s\n" "#define CUPS_DEFAULT_MAX_LOG_SIZE \"$CUPS_MAX_LOG_SIZE\"" >>confdefs.h
11239 # Check whether --with-error_policy was given.
11240 if test ${with_error_policy+y}
11242 withval=$with_error_policy;
11243 CUPS_ERROR_POLICY="$withval"
11247 CUPS_ERROR_POLICY="stop-printer"
11253 printf "%s\n" "#define CUPS_DEFAULT_ERROR_POLICY \"$CUPS_ERROR_POLICY\"" >>confdefs.h
11257 # Check whether --with-fatal_errors was given.
11258 if test ${with_fatal_errors+y}
11260 withval=$with_fatal_errors;
11261 CUPS_FATAL_ERRORS="$withval"
11265 CUPS_FATAL_ERRORS="config"
11271 printf "%s\n" "#define CUPS_DEFAULT_FATAL_ERRORS \"$CUPS_FATAL_ERRORS\"" >>confdefs.h
11275 # Check whether --with-log_level was given.
11276 if test ${with_log_level+y}
11278 withval=$with_log_level;
11279 CUPS_LOG_LEVEL="$withval"
11283 CUPS_LOG_LEVEL="warn"
11289 printf "%s\n" "#define CUPS_DEFAULT_LOG_LEVEL \"$CUPS_LOG_LEVEL\"" >>confdefs.h
11293 # Check whether --with-access_log_level was given.
11294 if test ${with_access_log_level+y}
11296 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
11298 CUPS_ACCESS_LOG_LEVEL="none"
11302 printf "%s\n" "#define CUPS_DEFAULT_ACCESS_LOG_LEVEL \"$CUPS_ACCESS_LOG_LEVEL\"" >>confdefs.h
11305 # Check whether --enable-page_logging was given.
11306 if test ${enable_page_logging+y}
11308 enableval=$enable_page_logging;
11311 if test "x$enable_page_logging" = xyes
11314 CUPS_PAGE_LOG_FORMAT=""
11318 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
11323 # Check whether --enable-sync_on_close was given.
11324 if test ${enable_sync_on_close+y}
11326 enableval=$enable_sync_on_close;
11329 if test "x$enable_sync_on_close" = xyes
11332 CUPS_SYNC_ON_CLOSE="Yes"
11334 printf "%s\n" "#define CUPS_DEFAULT_SYNC_ON_CLOSE 1" >>confdefs.h
11339 CUPS_SYNC_ON_CLOSE="No"
11344 # Check whether --enable-browsing was given.
11345 if test ${enable_browsing+y}
11347 enableval=$enable_browsing;
11350 if test "x$enable_browsing" = xno
11355 printf "%s\n" "#define CUPS_DEFAULT_BROWSING 0" >>confdefs.h
11360 CUPS_BROWSING="Yes"
11362 printf "%s\n" "#define CUPS_DEFAULT_BROWSING 1" >>confdefs.h
11369 # Check whether --with-local_protocols was given.
11370 if test ${with_local_protocols+y}
11372 withval=$with_local_protocols;
11373 default_local_protocols="$withval"
11377 default_local_protocols="default"
11382 if test x$with_local_protocols != xno
11385 if test "x$default_local_protocols" = "xdefault"
11388 if test "x$DNSSD_BACKEND" != "x"
11391 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
11395 CUPS_BROWSE_LOCAL_PROTOCOLS=""
11401 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
11407 CUPS_BROWSE_LOCAL_PROTOCOLS=""
11413 printf "%s\n" "#define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS \"$CUPS_BROWSE_LOCAL_PROTOCOLS\"" >>confdefs.h
11416 # Check whether --enable-default_shared was given.
11417 if test ${enable_default_shared+y}
11419 enableval=$enable_default_shared;
11422 if test "x$enable_default_shared" = xno
11425 CUPS_DEFAULT_SHARED="No"
11427 printf "%s\n" "#define CUPS_DEFAULT_DEFAULT_SHARED 0" >>confdefs.h
11432 CUPS_DEFAULT_SHARED="Yes"
11434 printf "%s\n" "#define CUPS_DEFAULT_DEFAULT_SHARED 1" >>confdefs.h
11441 # Check whether --with-cups_user was given.
11442 if test ${with_cups_user+y}
11444 withval=$with_cups_user;
11445 CUPS_USER="$withval"
11449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
11450 printf %s "checking for default print user... " >&6; }
11451 if test x$host_os_name = xdarwin
11454 if test "x$(id -u _lp 2>/dev/null)" = x
11464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
11465 printf "%s\n" "$CUPS_USER" >&6; }
11467 elif test -f /etc/passwd
11471 for user in lp lpd guest daemon nobody; do
11472 if test "$(grep \^${user}: /etc/passwd)" != ""
11476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $user" >&5
11477 printf "%s\n" "$user" >&6; }
11483 if test x$CUPS_USER = x
11487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using \"$CUPS_USER\"" >&5
11488 printf "%s\n" "not found, using \"$CUPS_USER\"" >&6; }
11495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no password file, using \"$CUPS_USER\"" >&5
11496 printf "%s\n" "no password file, using \"$CUPS_USER\"" >&6; }
11503 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"
11506 as_fn_error $? "The default user for CUPS cannot be root." "$LINENO" 5
11511 # Check whether --with-cups_group was given.
11512 if test ${with_cups_group+y}
11514 withval=$with_cups_group;
11515 CUPS_GROUP="$withval"
11519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
11520 printf %s "checking for default print group... " >&6; }
11521 if test x$host_os_name = xdarwin
11524 if test "x$(id -g _lp 2>/dev/null)" = x
11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
11535 printf "%s\n" "$CUPS_GROUP" >&6; }
11537 elif test -f /etc/group
11540 GROUP_LIST="_lp lp nobody"
11542 for group in $GROUP_LIST; do
11543 if test "$(grep \^${group}: /etc/group)" != ""
11546 CUPS_GROUP="$group"
11547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $group" >&5
11548 printf "%s\n" "$group" >&6; }
11554 if test x$CUPS_GROUP = x
11557 CUPS_GROUP="nobody"
11558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using \"$CUPS_GROUP\"" >&5
11559 printf "%s\n" "not found, using \"$CUPS_GROUP\"" >&6; }
11565 CUPS_GROUP="nobody"
11566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no group file, using \"$CUPS_GROUP\"" >&5
11567 printf "%s\n" "no group file, using \"$CUPS_GROUP\"" >&6; }
11574 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"
11577 as_fn_error $? "The default group for CUPS cannot be root." "$LINENO" 5
11582 # Check whether --with-system_groups was given.
11583 if test ${with_system_groups+y}
11585 withval=$with_system_groups;
11586 CUPS_SYSTEM_GROUPS="$withval"
11590 if test x$host_os_name = xdarwin
11593 CUPS_SYSTEM_GROUPS="admin"
11597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
11598 printf %s "checking for default system groups... " >&6; }
11599 if test -f /etc/group
11602 CUPS_SYSTEM_GROUPS=""
11603 GROUP_LIST="lpadmin sys system root wheel"
11604 for group in $GROUP_LIST; do
11605 if test "$(grep \^${group}: /etc/group)" != ""
11608 if test "x$CUPS_SYSTEM_GROUPS" = x
11611 CUPS_SYSTEM_GROUPS="$group"
11615 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
11622 if test "x$CUPS_SYSTEM_GROUPS" = x
11625 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
11626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no groups found, using \"$CUPS_SYSTEM_GROUPS\"" >&5
11627 printf "%s\n" "no groups found, using \"$CUPS_SYSTEM_GROUPS\"" >&6; }
11631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
11632 printf "%s\n" "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
11638 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
11639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no group file, using \"$CUPS_SYSTEM_GROUPS\"" >&5
11640 printf "%s\n" "no group file, using \"$CUPS_SYSTEM_GROUPS\"" >&6; }
11649 CUPS_PRIMARY_SYSTEM_GROUP="$(echo $CUPS_SYSTEM_GROUPS | awk '{print $1}')"
11651 for group in $CUPS_SYSTEM_GROUPS; do
11652 if test "x$CUPS_GROUP" = "x$group"
11655 as_fn_error $? "The default system groups cannot contain the default CUPS group." "$LINENO" 5
11666 printf "%s\n" "#define CUPS_DEFAULT_USER \"$CUPS_USER\"" >>confdefs.h
11669 printf "%s\n" "#define CUPS_DEFAULT_GROUP \"$CUPS_GROUP\"" >>confdefs.h
11672 printf "%s\n" "#define CUPS_DEFAULT_SYSTEM_GROUPS \"$CUPS_SYSTEM_GROUPS\"" >>confdefs.h
11677 # Check whether --with-printcap was given.
11678 if test ${with_printcap+y}
11680 withval=$with_printcap;
11681 default_printcap="$withval"
11685 default_printcap="default"
11690 if test x$default_printcap != xno
11693 if test "x$default_printcap" = "xdefault"
11696 case $host_os_name in #(
11699 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
11701 sunos* | solaris*) :
11703 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
11707 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
11715 CUPS_DEFAULT_PRINTCAP="$default_printcap"
11721 CUPS_DEFAULT_PRINTCAP=""
11727 printf "%s\n" "#define CUPS_DEFAULT_PRINTCAP \"$CUPS_DEFAULT_PRINTCAP\"" >>confdefs.h
11731 # Check whether --with-max_copies was given.
11732 if test ${with_max_copies+y}
11734 withval=$with_max_copies;
11735 CUPS_MAX_COPIES="$withval"
11739 CUPS_MAX_COPIES="9999"
11746 printf "%s\n" "#define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES" >>confdefs.h
11749 # Check whether --enable-raw_printing was given.
11750 if test ${enable_raw_printing+y}
11752 enableval=$enable_raw_printing;
11755 if test "x$enable_raw_printing" != xno
11758 DEFAULT_RAW_PRINTING=""
11762 DEFAULT_RAW_PRINTING="#"
11768 # Check whether --with-snmp_address was given.
11769 if test ${with_snmp_address+y}
11771 withval=$with_snmp_address;
11772 if test "x$withval" = x
11775 CUPS_SNMP_ADDRESS=""
11779 CUPS_SNMP_ADDRESS="Address $withval"
11785 if test "x$host_os_name" = xdarwin
11788 CUPS_SNMP_ADDRESS=""
11792 CUPS_SNMP_ADDRESS="Address @LOCAL"
11800 # Check whether --with-snmp_community was given.
11801 if test ${with_snmp_community+y}
11803 withval=$with_snmp_community;
11804 CUPS_SNMP_COMMUNITY="Community $withval"
11808 CUPS_SNMP_COMMUNITY="Community public"
11817 # Check whether --with-ipp_port was given.
11818 if test ${with_ipp_port+y}
11820 withval=$with_ipp_port;
11821 DEFAULT_IPP_PORT="$withval"
11825 DEFAULT_IPP_PORT="631"
11832 printf "%s\n" "#define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT" >>confdefs.h
11835 # Check whether --enable-webif was given.
11836 if test ${enable_webif+y}
11838 enableval=$enable_webif;
11841 case "x$enable_webif" in #(
11845 CUPS_DEFAULT_WEBIF=0
11850 CUPS_DEFAULT_WEBIF=1
11854 if test $host_os_name = darwin
11858 CUPS_DEFAULT_WEBIF=0
11863 CUPS_DEFAULT_WEBIF=1
11873 printf "%s\n" "#define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF" >>confdefs.h
11876 if test $CUPS_WEBIF = Yes || test $CUPS_BROWSING = Yes
11879 SYSTEMD_WANTED_BY="$SYSTEMD_WANTED_BY multi-user.target"
11883 if test x$with_ondemand != xno
11887 # Check whether --with-idle_exit_timeout was given.
11888 if test ${with_idle_exit_timeout+y}
11890 withval=$with_idle_exit_timeout;
11891 if test "x$withval" = "xno"
11894 EXIT_TIMEOUT="IdleExitTimeout 0"
11898 EXIT_TIMEOUT="IdleExitTimeout $withval"
11904 EXIT_TIMEOUT="IdleExitTimeout 60"
11918 # Check whether --with-systemd-timeoutstartsec was given.
11919 if test ${with_systemd_timeoutstartsec+y}
11921 withval=$with_systemd_timeoutstartsec;
11922 if test "x$withval" = "xno"
11925 TIMEOUTSTARTSEC="TimeoutStartSec=infinity"
11929 TIMEOUTSTARTSEC="TimeoutStartSec=$withval"
11942 if test x$enable_shared = xno
11945 PKGCONFIG_LIBS="$PKGCONFIG_LIBS $PKGCONFIG_LIBS_STATIC"
11946 PKGCONFIG_LIBS_STATIC=""
11950 ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups.pc desktop/cups.desktop scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/cups-lpdAT.service scheduler/cups.path scheduler/cups.service scheduler/cups.socket packaging/cups.list"
11952 cat >confcache <<\_ACEOF
11953 # This file is a shell script that caches the results of configure
11954 # tests run on this system so they can be shared between configure
11955 # scripts and configure runs, see configure's option --config-cache.
11956 # It is not useful on other systems. If it contains results you don't
11957 # want to keep, you may remove or edit it.
11959 # config.status only pays attention to the cache file if you give it
11960 # the --recheck option to rerun configure.
11962 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
11963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11964 # following values.
11968 # The following way of writing the cache mishandles newlines in values,
11969 # but we know of no workaround that is simple, portable, and efficient.
11970 # So, we kill variables containing newlines.
11971 # Ultrix sh set writes to stderr and can't be redirected directly,
11972 # and sets the high bit in the cache file unless we assign to the vars.
11974 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11975 eval ac_val
=\$
$ac_var
11979 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11980 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11983 _ | IFS | as_nl
) ;; #(
11984 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
11985 *) { eval $ac_var=; unset $ac_var;} ;;
11991 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11992 *${as_nl}ac_space
=\
*)
11993 # `set' does not quote correctly, so add quotes: double-quote
11994 # substitution turns \\\\ into \\, and sed turns \\ into \.
11997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12000 # `set' quotes correctly as required by POSIX, so do not add quotes.
12001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12010 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12012 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12014 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12015 if test -w "$cache_file"; then
12016 if test "x$cache_file" != "x/dev/null"; then
12017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12018 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12019 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
12020 cat confcache
>"$cache_file"
12022 case $cache_file in #(
12024 mv -f confcache
"$cache_file"$$
&&
12025 mv -f "$cache_file"$$
"$cache_file" ;; #(
12027 mv -f confcache
"$cache_file" ;;
12032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12033 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12038 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12039 # Let make expand exec_prefix.
12040 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12042 DEFS
=-DHAVE_CONFIG_H
12047 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12048 # 1. Remove the extension, and $U if already installed.
12049 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12050 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12051 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12052 # will be set to the directory where LIBOBJS objects are built.
12053 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12054 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
12056 LIBOBJS
=$ac_libobjs
12058 LTLIBOBJS
=$ac_ltlibobjs
12062 : "${CONFIG_STATUS=./config.status}"
12064 ac_clean_files_save
=$ac_clean_files
12065 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12067 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12069 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12071 # Generated by $as_me.
12072 # Run this file to recreate the current configuration.
12073 # Compiler output produced by configure, useful for debugging
12074 # configure, is in config.log if it exists.
12077 ac_cs_recheck=false
12080 SHELL=\${CONFIG_SHELL-$SHELL}
12083 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
12084 ## -------------------- ##
12085 ## M4sh Initialization. ##
12086 ## -------------------- ##
12088 # Be more Bourne compatible
12089 DUALCASE
=1; export DUALCASE
# for MKS sh
12091 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
12095 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12096 # is contrary to our usage. Disable this feature.
12097 alias -g '${1+"$@"}'='"$@"'
12098 setopt NO_GLOB_SUBST
12100 case `(set -o) 2>/dev/null` in #(
12110 # Reset variables that may have inherited troublesome values from
12113 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12114 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12115 # side effect of setting IFS to empty, thus disabling word splitting.)
12116 # Quoting is to prevent editors from complaining about space-tab.
12126 # Ensure predictable behavior from utilities with locale-dependent output.
12132 # We cannot yet rely on "unset" to work, but we need these variables
12133 # to be unset--not just set to an empty or harmless value--now, to
12134 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12135 # also avoids known problems related to "unset" and subshell syntax
12136 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12137 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
12138 do eval test \
${$as_var+y} \
12139 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
12142 # Ensure that fds 0, 1, and 2 are open.
12143 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
12144 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
12145 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
12147 # The user is always right.
12148 if ${PATH_SEPARATOR+false} :; then
12150 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
12151 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
12157 # Find who we are. Look in the path if we contain no directory separator.
12160 *[\\/]* ) as_myself
=$0 ;;
12161 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12162 for as_dir
in $PATH
12165 case $as_dir in #(((
12168 *) as_dir
=$as_dir/ ;;
12170 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
12176 # We did not find ourselves, most probably we were run as `sh COMMAND'
12177 # in which case we are not to be found in the path.
12178 if test "x$as_myself" = x
; then
12181 if test ! -f "$as_myself"; then
12182 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12188 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12189 # ----------------------------------------
12190 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12191 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12192 # script with STATUS, using 1 if that was 0.
12195 as_status
=$1; test $as_status -eq 0 && as_status
=1
12197 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
12198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12200 printf "%s\n" "$as_me: error: $2" >&2
12201 as_fn_exit
$as_status
12206 # as_fn_set_status STATUS
12207 # -----------------------
12208 # Set $? to STATUS, without forking.
12209 as_fn_set_status
()
12212 } # as_fn_set_status
12214 # as_fn_exit STATUS
12215 # -----------------
12216 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12220 as_fn_set_status
$1
12226 # Portably unset VAR.
12229 { eval $1=; unset $1;}
12231 as_unset
=as_fn_unset
12233 # as_fn_append VAR VALUE
12234 # ----------------------
12235 # Append the text in VALUE to the end of the definition contained in VAR. Take
12236 # advantage of any shell optimizations that allow amortized linear growth over
12237 # repeated appends, instead of the typical quadratic growth present in naive
12239 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
12241 eval 'as_fn_append ()
12252 # as_fn_arith ARG...
12253 # ------------------
12254 # Perform arithmetic evaluation on the ARGs, and store the result in the
12255 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12256 # must be portable across $(()) and expr.
12257 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
12259 eval 'as_fn_arith ()
12266 as_val
=`expr "$@" || test $? -eq 1`
12271 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12272 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12278 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12279 as_basename
=basename
12284 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12290 as_me
=`$as_basename -- "$0" ||
12291 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12292 X"$0" : 'X\(//\)$' \| \
12293 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12294 printf "%s\n" X/"$0" |
12295 sed '/^.*\/\([^/][^/]*\)\/*$/{
12309 # Avoid depending upon Character Ranges.
12310 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12311 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12312 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12313 as_cr_digits
='0123456789'
12314 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12317 # Determine whether it's possible to make 'echo' print without a newline.
12318 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12319 # for compatibility with existing Makefiles.
12320 ECHO_C
= ECHO_N
= ECHO_T
=
12321 case `echo -n x` in #(((((
12323 case `echo 'xy\c'` in
12324 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12326 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
12333 # For backward compatibility with old third-party macros, we provide
12334 # the shell variables $as_echo and $as_echo_n. New code should use
12335 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12336 as_echo
='printf %s\n'
12337 as_echo_n
='printf %s'
12339 rm -f conf$$ conf$$.exe conf$$.
file
12340 if test -d conf$$.dir
; then
12341 rm -f conf$$.dir
/conf$$.
file
12344 mkdir conf$$.dir
2>/dev
/null
12346 if (echo >conf$$.
file) 2>/dev
/null
; then
12347 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12349 # ... but there are two gotchas:
12350 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12351 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12352 # In both cases, we have to default to `cp -pR'.
12353 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12355 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12363 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12364 rmdir conf$$.dir
2>/dev
/null
12369 # Create "$as_dir" as a directory, including parents if necessary.
12374 -*) as_dir
=.
/$as_dir;;
12376 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
12380 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12381 *) as_qdir
=$as_dir;;
12383 as_dirs
="'$as_qdir' $as_dirs"
12384 as_dir
=`$as_dirname -- "$as_dir" ||
12385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12386 X"$as_dir" : 'X\(//\)[^/]' \| \
12387 X"$as_dir" : 'X\(//\)$' \| \
12388 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12389 printf "%s\n" X"$as_dir" |
12390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12394 /^X\(\/\/\)[^/].*/{
12407 test -d "$as_dir" && break
12409 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12410 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
12414 if mkdir
-p .
2>/dev
/null
; then
12415 as_mkdir_p
='mkdir -p "$as_dir"'
12417 test -d .
/-p && rmdir .
/-p
12422 # as_fn_executable_p FILE
12423 # -----------------------
12424 # Test if FILE is an executable regular file.
12425 as_fn_executable_p
()
12427 test -f "$1" && test -x "$1"
12428 } # as_fn_executable_p
12429 as_test_x
='test -x'
12430 as_executable_p
=as_fn_executable_p
12432 # Sed expression to map a string onto a valid CPP name.
12433 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12435 # Sed expression to map a string onto a valid variable name.
12436 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12440 ## ----------------------------------- ##
12441 ## Main body of $CONFIG_STATUS script. ##
12442 ## ----------------------------------- ##
12444 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
12446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12447 # Save the log message, to keep $0 and so on meaningful, and to
12448 # report actual input values of CONFIG_FILES etc. instead of their
12449 # values after options handling.
12451 This file was extended by CUPS $as_me 2.5b1, which was
12452 generated by GNU Autoconf 2.71. Invocation command line was
12454 CONFIG_FILES = $CONFIG_FILES
12455 CONFIG_HEADERS = $CONFIG_HEADERS
12456 CONFIG_LINKS = $CONFIG_LINKS
12457 CONFIG_COMMANDS = $CONFIG_COMMANDS
12460 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12465 case $ac_config_files in *"
12466 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
12469 case $ac_config_headers in *"
12470 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
12474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12475 # Files that config.status was made for.
12476 config_files="$ac_config_files"
12477 config_headers="$ac_config_headers"
12481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12483 \`$as_me' instantiates files and other configuration actions
12484 from templates according to the current configuration. Unless the files
12485 and actions are specified as TAGs, all are instantiated by default.
12487 Usage: $0 [OPTION]... [TAG]...
12489 -h, --help print this help, then exit
12490 -V, --version print version number and configuration settings, then exit
12491 --config print configuration, then exit
12492 -q, --quiet, --silent
12493 do not print progress messages
12494 -d, --debug don't remove temporary files
12495 --recheck update $as_me by reconfiguring in the same conditions
12496 --file=FILE[:TEMPLATE]
12497 instantiate the configuration file FILE
12498 --header=FILE[:TEMPLATE]
12499 instantiate the configuration header FILE
12501 Configuration files:
12504 Configuration headers:
12507 Report bugs to <https://github.com/openprinting/cups/issues>.
12508 CUPS home page: <https://openprinting.github.io/cups>."
12511 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12512 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12514 ac_cs_config='$ac_cs_config_escaped'
12516 CUPS config.status 2.5b1
12517 configured by $0, generated by GNU Autoconf 2.71,
12518 with options \\"\$ac_cs_config\\"
12520 Copyright (C) 2021 Free Software Foundation, Inc.
12521 This config.status script is free software; the Free Software Foundation
12522 gives unlimited permission to copy, distribute and modify it."
12527 test -n "\$AWK" || AWK=awk
12530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12531 # The default lists apply if the user does not specify any file.
12537 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12538 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12542 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12554 # Handling of the options.
12555 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12557 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12558 printf "%s\n" "$ac_cs_version"; exit ;;
12559 --config |
--confi |
--conf |
--con |
--co |
--c )
12560 printf "%s\n" "$ac_cs_config"; exit ;;
12561 --debug |
--debu |
--deb |
--de |
--d |
-d )
12563 --file |
--fil |
--fi |
--f )
12566 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12567 '') as_fn_error $?
"missing file argument" ;;
12569 as_fn_append CONFIG_FILES
" '$ac_optarg'"
12570 ac_need_defaults
=false
;;
12571 --header |
--heade |
--head |
--hea )
12574 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12576 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
12577 ac_need_defaults
=false
;;
12579 # Conflict between --help and --header
12580 as_fn_error $?
"ambiguous option: \`$1'
12581 Try \`$0 --help' for more information.";;
12582 --help |
--hel |
-h )
12583 printf "%s\n" "$ac_cs_usage"; exit ;;
12584 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12585 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12588 # This is an error.
12589 -*) as_fn_error $?
"unrecognized option: \`$1'
12590 Try \`$0 --help' for more information." ;;
12592 *) as_fn_append ac_config_targets
" $1"
12593 ac_need_defaults
=false
;;
12599 ac_configure_extra_args
=
12601 if $ac_cs_silent; then
12603 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12608 if \$ac_cs_recheck; then
12609 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12611 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12612 CONFIG_SHELL='$SHELL'
12613 export CONFIG_SHELL
12618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12623 ## Running $as_me. ##
12625 printf "%s\n" "$ac_log"
12629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12634 # Handling of arguments.
12635 for ac_config_target
in $ac_config_targets
12637 case $ac_config_target in
12638 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
12639 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
12640 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
12641 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
12642 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
12643 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
12644 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
12645 "cups.pc") CONFIG_FILES
="$CONFIG_FILES cups.pc" ;;
12646 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
12647 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
12648 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
12649 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
12650 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
12651 "scheduler/cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpdAT.service" ;;
12652 "scheduler/cups.path") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.path" ;;
12653 "scheduler/cups.service") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.service" ;;
12654 "scheduler/cups.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.socket" ;;
12655 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
12657 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12662 # If the user did not use the arguments to specify the items to instantiate,
12663 # then the envvar interface is used. Set only those that are not.
12664 # We use the long form for the default assignment because of an extremely
12665 # bizarre bug on SunOS 4.1.3.
12666 if $ac_need_defaults; then
12667 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
12668 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
12671 # Have a temporary directory for convenience. Make it in the build tree
12672 # simply because there is no reason against having it here, and in addition,
12673 # creating and moving files from /tmp can sometimes cause problems.
12674 # Hook for its removal unless debugging.
12675 # Note that there is a small window in which the directory will not be cleaned:
12676 # after its creation but before its name has been assigned to `$tmp'.
12680 trap 'exit_status=$?
12681 : "${ac_tmp:=$tmp}"
12682 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12684 trap 'as_fn_exit 1' 1 2 13 15
12686 # Create a (secure) tmp directory for tmp files.
12689 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12693 tmp
=.
/conf$$
-$RANDOM
12694 (umask 077 && mkdir
"$tmp")
12695 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
12698 # Set up the scripts for CONFIG_FILES section.
12699 # No need to generate them if there are no CONFIG_FILES.
12700 # This happens for instance with `./config.status config.h'.
12701 if test -n "$CONFIG_FILES"; then
12704 ac_cr
=`echo X | tr X '\015'`
12705 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12706 # But we know of no other shell where ac_cr would be empty at this
12707 # point, so we can use a bashism as a fallback.
12708 if test "x$ac_cr" = x
; then
12709 eval ac_cr
=\$
\'\\r
\'
12711 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12712 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12715 ac_cs_awk_cr
=$ac_cr
12718 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12723 echo "cat >conf$$subs.awk <<_ACEOF" &&
12724 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12726 } >conf$$subs.sh ||
12727 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12728 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12730 for ac_last_try in false false false false false :; do
12731 . ./conf$$subs.sh ||
12732 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12734 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
12735 if test $ac_delim_n = $ac_delim_num; then
12737 elif $ac_last_try; then
12738 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12740 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12743 rm -f conf$$subs.sh
12745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12746 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
12750 s/^/S["/; s
/!.
*/"]=/
12760 s/\(.\{148\}\)..*/\1/
12762 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
12767 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12774 s/\(.\{148\}\)..*/\1/
12776 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
12780 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12785 ' <conf$$subs.awk | sed '
12790 ' >>$CONFIG_STATUS || ac_write_fail=1
12791 rm -f conf$$subs.awk
12792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12794 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
12795 for (key in S) S_is_set[key] = 1
12801 nfields = split(line, field, "@
")
12803 len = length(field[1])
12804 for (i = 2; i < nfields; i++) {
12806 keylen = length(key)
12807 if (S_is_set[key]) {
12809 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12810 len += length(value) + length(field[++i])
12821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12822 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12823 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
12826 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
12827 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
12830 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12831 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
12832 # trailing colons and then remove the whole line if VPATH becomes empty
12833 # (actually we leave an empty line to preserve line numbers).
12834 if test "x
$srcdir" = x.; then
12835 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12854 fi # test -n "$CONFIG_FILES"
12856 # Set up the scripts for CONFIG_HEADERS section.
12857 # No need to generate them if there are no CONFIG_HEADERS.
12858 # This happens for instance with `./config.status Makefile'.
12859 if test -n "$CONFIG_HEADERS"; then
12860 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
12864 # Transform confdefs.h into an awk script `defines.awk', embedded as
12865 # here-document in config.status, that substitutes the proper values into
12866 # config.h.in to produce config.h.
12868 # Create a delimiter string that does not exist in confdefs.h, to ease
12869 # handling of long lines.
12871 for ac_last_try in false false :; do
12872 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
12873 if test -z "$ac_tt"; then
12875 elif $ac_last_try; then
12876 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
12878 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12882 # For the awk script, D is an array of macro values keyed by name,
12883 # likewise P contains macro parameters if any. Preserve backslash
12884 # newline sequences.
12886 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12888 s/.\{148\}/&'"$ac_delim"'/g
12891 s/^[ ]*#[ ]*define[ ][ ]*/ /
12898 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12900 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12904 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12905 D["\
1"]=" \
3\\\\\\n
"\\/p
12907 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
12912 s/.\{148\}/&'"$ac_delim"'/g
12917 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
12920 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
12922 ' <confdefs.h | sed '
12923 s/'"$ac_delim"'/"\\\
12924 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12927 for (key in D) D_is_set[key] = 1
12930 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12932 split(line, arg, " ")
12933 if (arg[1] == "#") {
12937 defundef
= substr
(arg
[1], 2)
12940 split(mac1
, mac2
, "(") #)
12942 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
12943 if (D_is_set
[macro
]) {
12944 # Preserve the white space surrounding the "#".
12945 print prefix
"define", macro P
[macro
] D
[macro
]
12948 # Replace #undef with comments. This is necessary, for example,
12949 # in the case of _POSIX_SOURCE, which is predefined and required
12950 # on some systems where configure will not decide to define it.
12951 if (defundef
== "undef") {
12952 print
"/*", prefix defundef
, macro
, "*/"
12960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12961 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
12962 fi # test -n "$CONFIG_HEADERS"
12965 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
12970 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12972 case $ac_mode$ac_tag in
12974 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
12975 :[FH
]-) ac_tag
=-:-;;
12976 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12993 -) ac_f
="$ac_tmp/stdin";;
12994 *) # Look for the file first in the build tree, then in the source tree
12995 # (if the path is not absolute). The absolute path cannot be DOS-style,
12996 # because $ac_f cannot contain `:'.
13000 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13002 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13004 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13005 as_fn_append ac_file_inputs
" '$ac_f'"
13008 # Let's still pretend it is `configure' which instantiates (i.e., don't
13009 # use $as_me), people would be surprised to read:
13010 # /* config.h. Generated by config.status. */
13011 configure_input
='Generated from '`
13012 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13014 if test x
"$ac_file" != x-
; then
13015 configure_input
="$ac_file. $configure_input"
13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13017 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13019 # Neutralize special characters interpreted by sed in replacement strings.
13020 case $configure_input in #(
13021 *\
&* |
*\|
* |
*\\* )
13022 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
13023 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13024 *) ac_sed_conf_input
=$configure_input;;
13028 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
13029 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
13034 ac_dir
=`$as_dirname -- "$ac_file" ||
13035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13036 X"$ac_file" : 'X\(//\)[^/]' \| \
13037 X"$ac_file" : 'X\(//\)$' \| \
13038 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13039 printf "%s\n" X"$ac_file" |
13040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13044 /^X\(\/\/\)[^/].*/{
13057 as_dir
="$ac_dir"; as_fn_mkdir_p
13061 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13063 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13064 # A ".." for each directory in $ac_dir_suffix.
13065 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13066 case $ac_top_builddir_sub in
13067 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13068 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13071 ac_abs_top_builddir
=$ac_pwd
13072 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13073 # for backward compatibility:
13074 ac_top_builddir
=$ac_top_build_prefix
13077 .
) # We are building in place.
13079 ac_top_srcdir
=$ac_top_builddir_sub
13080 ac_abs_top_srcdir
=$ac_pwd ;;
13081 [\\/]* | ?
:[\\/]* ) # Absolute name.
13082 ac_srcdir
=$srcdir$ac_dir_suffix;
13083 ac_top_srcdir
=$srcdir
13084 ac_abs_top_srcdir
=$srcdir ;;
13085 *) # Relative name.
13086 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13087 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13088 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13090 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13102 # If the template does not know about datarootdir, expand it.
13103 # FIXME: This hack should be removed a few years after 2.60.
13104 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13115 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13116 *datarootdir
*) ac_datarootdir_seen
=yes;;
13117 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13119 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13122 ac_datarootdir_hack='
13123 s&@datadir@&$datadir&g
13124 s&@docdir@&$docdir&g
13125 s&@infodir@&$infodir&g
13126 s&@localedir@&$localedir&g
13127 s&@mandir@&$mandir&g
13128 s&\\\${datarootdir}&$datarootdir&g' ;;
13132 # Neutralize VPATH when `$srcdir' = `.'.
13133 # Shell code in configure.ac might set extrasub.
13134 # FIXME: do we really want to maintain this feature?
13135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13136 ac_sed_extra="$ac_vpsub
13139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13141 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13142 s|@configure_input@|
$ac_sed_conf_input|
;t t
13143 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13144 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13145 s
&@srcdir@
&$ac_srcdir&;t t
13146 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13147 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13148 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13149 s
&@builddir@
&$ac_builddir&;t t
13150 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13151 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13152 $ac_datarootdir_hack
13154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
13155 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
13157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13158 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
13159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13160 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
13161 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13162 which seems to be undefined. Please make sure it is defined" >&5
13163 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13164 which seems to be undefined. Please make sure it is defined" >&2;}
13166 rm -f "$ac_tmp/stdin"
13168 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13169 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13177 if test x"$ac_file" != x-; then
13179 printf "%s\n" "/* $configure_input */" >&1 \
13180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13181 } >"$ac_tmp/config.h" \
13182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13183 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13185 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13188 mv "$ac_tmp/config.h" "$ac_file" \
13189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13192 printf "%s\n" "/* $configure_input */" >&1 \
13193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13194 || as_fn_error $? "could not create -" "$LINENO" 5
13206 ac_clean_files=$ac_clean_files_save
13208 test $ac_write_fail = 0 ||
13209 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13212 # configure is writing to config.log, and then calls config.status.
13213 # config.status does its own redirection, appending to config.log.
13214 # Unfortunately, on DOS this fails, as config.log is still kept open
13215 # by configure, so config.status won't be able to
write to it
; its
13216 # output is simply discarded. So we exec the FD to /dev/null,
13217 # effectively closing config.log, so it can be properly (re)opened and
13218 # appended to by config.status. When coming back to configure, we
13219 # need to make the FD available again.
13220 if test "$no_create" != yes; then
13222 ac_config_status_args
=
13223 test "$silent" = yes &&
13224 ac_config_status_args
="$ac_config_status_args --quiet"
13226 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13228 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13229 # would make configure fail if this is the last instruction.
13230 $ac_cs_success || as_fn_exit
1
13232 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
13233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13234 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}