2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for CUPS 2.2.11.
5 # Report bugs to <https://github.com/apple/cups/issues>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://github.com/apple/cups/issues about your system,
271 $0: 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;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
582 PACKAGE_TARNAME
='cups'
583 PACKAGE_VERSION
='2.2.11'
584 PACKAGE_STRING
='CUPS 2.2.11'
585 PACKAGE_BUGREPORT
='https://github.com/apple/cups/issues'
586 PACKAGE_URL
='https://www.cups.org/'
588 # Factoring default headers for most tests.
589 ac_includes_default
="\
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
601 # ifdef HAVE_STDLIB_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
625 ac_subst_vars
='LTLIBOBJS
640 CUPS_DEFAULT_SMB_CONFIG_FILE
641 CUPS_DEFAULT_LPD_CONFIG_FILE
642 CUPS_DEFAULT_PRINTCAP
643 CUPS_PRIMARY_SYSTEM_GROUP
648 CUPS_BROWSE_LOCAL_PROTOCOLS
651 CUPS_ACCESS_LOG_LEVEL
656 CUPS_CONFIG_FILE_PERM
688 CUPS_DEFAULT_GSSSERVICENAME
691 CUPS_LISTEN_DOMAINSOCKET
692 CUPS_DEFAULT_DOMAINSOCKET
746 CUPS_DEFAULT_PRINTOPERATOR_AUTH
831 program_transform_name
844 enable_option_checking
868 enable_libtool_unsupported
904 with_config_file_perm
909 with_access_log_level
913 enable_default_shared
931 ac_precious_vars
='build_alias
945 # Initialize some variables set by options.
947 ac_init_version
=false
948 ac_unrecognized_opts
=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
959 program_transform_name
=s
,x
,x
,
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir
='${exec_prefix}/bin'
974 sbindir
='${exec_prefix}/sbin'
975 libexecdir
='${exec_prefix}/libexec'
976 datarootdir
='${prefix}/share'
977 datadir
='${datarootdir}'
978 sysconfdir
='${prefix}/etc'
979 sharedstatedir
='${prefix}/com'
980 localstatedir
='${prefix}/var'
981 includedir
='${prefix}/include'
982 oldincludedir
='/usr/include'
983 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
984 infodir
='${datarootdir}/info'
989 libdir
='${exec_prefix}/lib'
990 localedir
='${datarootdir}/locale'
991 mandir
='${datarootdir}/man'
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\
$ac_option
1005 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1012 case $ac_dashdash$ac_option in
1016 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1018 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1019 bindir
=$ac_optarg ;;
1021 -build |
--build |
--buil |
--bui |
--bu)
1022 ac_prev
=build_alias
;;
1023 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1024 build_alias
=$ac_optarg ;;
1026 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1027 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1028 ac_prev
=cache_file
;;
1029 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1030 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1031 cache_file
=$ac_optarg ;;
1033 --config-cache |
-C)
1034 cache_file
=config.cache
;;
1036 -datadir |
--datadir |
--datadi |
--datad)
1038 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1039 datadir
=$ac_optarg ;;
1041 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1042 |
--dataroo |
--dataro |
--datar)
1043 ac_prev
=datarootdir
;;
1044 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1045 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1046 datarootdir
=$ac_optarg ;;
1048 -disable-* |
--disable-*)
1049 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1052 as_fn_error $?
"invalid feature name: $ac_useropt"
1053 ac_useropt_orig
=$ac_useropt
1054 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1057 "enable_
$ac_useropt"
1059 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060 ac_unrecognized_sep
=', ';;
1062 eval enable_
$ac_useropt=no
;;
1064 -docdir |
--docdir |
--docdi |
--doc |
--do)
1066 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1067 docdir
=$ac_optarg ;;
1069 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1071 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1072 dvidir
=$ac_optarg ;;
1074 -enable-* |
--enable-*)
1075 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1078 as_fn_error $?
"invalid feature name: $ac_useropt"
1079 ac_useropt_orig
=$ac_useropt
1080 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1083 "enable_
$ac_useropt"
1085 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086 ac_unrecognized_sep
=', ';;
1088 eval enable_
$ac_useropt=\
$ac_optarg ;;
1090 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1091 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1092 |
--exec |
--exe |
--ex)
1093 ac_prev
=exec_prefix
;;
1094 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1095 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1096 |
--exec=* |
--exe=* |
--ex=*)
1097 exec_prefix
=$ac_optarg ;;
1099 -gas |
--gas |
--ga |
--g)
1100 # Obsolete; use --with-gas.
1103 -help |
--help |
--hel |
--he |
-h)
1104 ac_init_help
=long
;;
1105 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1106 ac_init_help
=recursive
;;
1107 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1108 ac_init_help
=short
;;
1110 -host |
--host |
--hos |
--ho)
1111 ac_prev
=host_alias
;;
1112 -host=* |
--host=* |
--hos=* |
--ho=*)
1113 host_alias
=$ac_optarg ;;
1115 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1117 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1119 htmldir
=$ac_optarg ;;
1121 -includedir |
--includedir |
--includedi |
--included |
--include \
1122 |
--includ |
--inclu |
--incl |
--inc)
1123 ac_prev
=includedir
;;
1124 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1125 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1126 includedir
=$ac_optarg ;;
1128 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1130 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1131 infodir
=$ac_optarg ;;
1133 -libdir |
--libdir |
--libdi |
--libd)
1135 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1136 libdir
=$ac_optarg ;;
1138 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1139 |
--libexe |
--libex |
--libe)
1140 ac_prev
=libexecdir
;;
1141 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1142 |
--libexe=* |
--libex=* |
--libe=*)
1143 libexecdir
=$ac_optarg ;;
1145 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1146 ac_prev
=localedir
;;
1147 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1148 localedir
=$ac_optarg ;;
1150 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1151 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1152 ac_prev
=localstatedir
;;
1153 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1154 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1155 localstatedir
=$ac_optarg ;;
1157 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1159 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1160 mandir
=$ac_optarg ;;
1162 -nfp |
--nfp |
--nf)
1163 # Obsolete; use --without-fp.
1166 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1167 |
--no-cr |
--no-c |
-n)
1170 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1171 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1174 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1175 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1176 |
--oldin |
--oldi |
--old |
--ol |
--o)
1177 ac_prev
=oldincludedir
;;
1178 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1179 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1180 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1181 oldincludedir
=$ac_optarg ;;
1183 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1185 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1186 prefix
=$ac_optarg ;;
1188 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1189 |
--program-pre |
--program-pr |
--program-p)
1190 ac_prev
=program_prefix
;;
1191 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1192 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1193 program_prefix
=$ac_optarg ;;
1195 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1196 |
--program-suf |
--program-su |
--program-s)
1197 ac_prev
=program_suffix
;;
1198 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1199 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1200 program_suffix
=$ac_optarg ;;
1202 -program-transform-name |
--program-transform-name \
1203 |
--program-transform-nam |
--program-transform-na \
1204 |
--program-transform-n |
--program-transform- \
1205 |
--program-transform |
--program-transfor \
1206 |
--program-transfo |
--program-transf \
1207 |
--program-trans |
--program-tran \
1208 |
--progr-tra |
--program-tr |
--program-t)
1209 ac_prev
=program_transform_name
;;
1210 -program-transform-name=* |
--program-transform-name=* \
1211 |
--program-transform-nam=* |
--program-transform-na=* \
1212 |
--program-transform-n=* |
--program-transform-=* \
1213 |
--program-transform=* |
--program-transfor=* \
1214 |
--program-transfo=* |
--program-transf=* \
1215 |
--program-trans=* |
--program-tran=* \
1216 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1217 program_transform_name
=$ac_optarg ;;
1219 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1221 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1222 pdfdir
=$ac_optarg ;;
1224 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1226 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1229 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1230 |
-silent |
--silent |
--silen |
--sile |
--sil)
1233 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1235 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1237 sbindir
=$ac_optarg ;;
1239 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1240 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1241 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1243 ac_prev
=sharedstatedir
;;
1244 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1245 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1246 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1248 sharedstatedir
=$ac_optarg ;;
1250 -site |
--site |
--sit)
1252 -site=* |
--site=* |
--sit=*)
1255 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1257 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1258 srcdir
=$ac_optarg ;;
1260 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1261 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1262 ac_prev
=sysconfdir
;;
1263 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1264 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1265 sysconfdir
=$ac_optarg ;;
1267 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1268 ac_prev
=target_alias
;;
1269 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1270 target_alias
=$ac_optarg ;;
1272 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1275 -version |
--version |
--versio |
--versi |
--vers |
-V)
1276 ac_init_version
=: ;;
1279 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1282 as_fn_error $?
"invalid package name: $ac_useropt"
1283 ac_useropt_orig
=$ac_useropt
1284 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1289 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290 ac_unrecognized_sep
=', ';;
1292 eval with_
$ac_useropt=\
$ac_optarg ;;
1294 -without-* |
--without-*)
1295 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1305 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306 ac_unrecognized_sep
=', ';;
1308 eval with_
$ac_useropt=no
;;
1311 # Obsolete; use --with-x.
1314 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1315 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1316 ac_prev
=x_includes
;;
1317 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1318 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1319 x_includes
=$ac_optarg ;;
1321 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1322 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1323 ac_prev
=x_libraries
;;
1324 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1325 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1326 x_libraries
=$ac_optarg ;;
1328 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information"
1333 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 case $ac_envvar in #(
1336 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1337 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1339 eval $ac_envvar=\
$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1353 if test -n "$ac_prev"; then
1354 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1355 as_fn_error $?
"missing argument to $ac_option"
1358 if test -n "$ac_unrecognized_opts"; then
1359 case $enable_option_checking in
1361 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 # Check all directory arguments for consistency.
1367 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir
1372 eval ac_val
=\$
$ac_var
1373 # Remove trailing slashes.
1376 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\
$ac_val;;
1379 # Be sure to have absolute directory names.
1381 [\\/$
]* | ?
:[\\/]* ) continue;;
1382 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1384 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1392 target
=$target_alias
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x
; then
1396 if test "x$build_alias" = x
; then
1397 cross_compiling
=maybe
1398 elif test "x$build_alias" != "x$host_alias"; then
1404 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1406 test "$silent" = yes && exec 6>/dev
/null
1409 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di
=`ls -di .` &&
1411 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error $?
"working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error $?
"pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted
=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir
=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1449 ac_srcdir_defaulted
=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1453 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1467 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 for ac_var
in $ac_precious_vars; do
1470 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1472 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1483 \`configure' configures CUPS 2.2.11 to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking ...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1541 --build=BUILD configure
for building on BUILD
[guessed
]
1542 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1546 if test -n "$ac_init_help"; then
1547 case $ac_init_help in
1548 short | recursive
) echo "Configuration of CUPS 2.2.11:";;
1553 --disable-option-checking ignore unrecognized
--enable/--with options
1554 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1555 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1556 --enable-static install static libraries
1557 --enable-mallinfo build with malloc debug logging
1558 --enable-libpaper build with libpaper support
1559 --enable-libusb use libusb
for USB printing
1560 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1561 --enable-acl build with POSIX ACL support
1562 --disable-dbus build without DBUS support
1563 --disable-shared do not create shared libraries
1564 --enable-libtool-unsupported=/path
/to
/libtool
1565 build with libtool
(UNSUPPORTED
!)
1566 --enable-debug build with debugging symbols
1567 --enable-debug-guards build with memory allocation guards
1568 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1569 --enable-unit-tests build and run unit tests
1570 --enable-relro build with the GCC relro option
1571 --disable-gssapi disable GSSAPI support
1572 --disable-threads disable multi-threading support
1573 --disable-ssl disable SSL
/TLS support
1574 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1575 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1576 --disable-pam disable PAM support
1577 --disable-largefile omit support
for large files
1578 --disable-avahi disable DNS Service Discovery support using Avahi
1579 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1580 --disable-launchd disable launchd support
1581 --disable-systemd disable systemd support
1582 --enable-upstart enable upstart support
1583 --enable-page-logging enable page_log by default
1584 --disable-browsing disable Browsing by default
1585 --disable-default-shared
1586 disable DefaultShared by default
1587 --disable-raw-printing do not allow raw printing by default
1588 --enable-webif enable the web interface by default
, default
=no
for macOS
1591 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1592 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1593 --with-cups-build set "cups-config --build" string
1594 --with-dbusdir set DBUS configuration directory
1595 --with-adminkey set the default SystemAuthKey value
1596 --with-operkey set the default operator @AUTHKEY value
1597 --with-components set components to build
:
1598 - "all" (default
) builds everything
1599 - "core" builds libcups and ipptool
1600 --with-privateinclude set path
for private include files
, default
=none
1601 --with-lpdconfig set URI
for LPD config
file
1602 --with-smbconfig set URI
for Samba config
file
1603 --with-cachedir set path
for cache files
1604 --with-icondir set path
for application icons
1605 --with-menudir set path
for application menus
1606 --with-docdir set path
for documentation
1607 --with-fontpath set font path
for pstoraster
1608 --with-logdir set path
for log files
1609 --with-rundir set transient run-time state directory
1610 --with-optim set optimization flags
1611 --with-archflags set default architecture flags
1612 --with-ldarchflags set program architecture flags
1613 --with-domainsocket set unix domain socket name
1614 --with-gssservicename set default gss service name
1615 --with-pam-module set the PAM module to use
1616 --with-dnssd-libs set directory
for DNS Service Discovery library
1617 --with-dnssd-includes set directory
for DNS Service Discovery includes
1618 --with-systemd set directory
for systemd service files
1619 --with-smfmanifestdir set path
for Solaris SMF manifest
1620 --with-rcdir set path
for rc scripts
1621 --with-rclevels set run levels
for rc scripts
1622 --with-rcstart set start number
for rc scripts
1623 --with-rcstop set stop number
for rc scripts
1624 --with-xinetd set path
for xinetd config files
1625 --with-languages set installed languages
, default
=all
1626 --with-bundledir set macOS localization bundle directory
1627 --with-exe-file-perm set default executable permissions value
, default
=0555
1628 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1629 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1630 --with-log-file-perm set default LogFilePerm value
, default
=0644
1631 --with-fatal-errors set default FatalErrors value
, default
=config
1632 --with-log-level set default LogLevel value
, default
=warn
1633 --with-access-log-level set default AccessLogLevel value
, default
=none
1634 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1635 --with-cups-user set default user
for CUPS
1636 --with-cups-group set default group
for CUPS
1637 --with-system-groups set default system groups
for CUPS
1638 --with-printcap set default printcap
file
1639 --with-lpdconfigfile set default LPDConfigFile URI
1640 --with-smbconfigfile set default SMBConfigFile URI
1641 --with-max-copies set default max copies value
, default
=9999
1642 --with-snmp-address set SNMP query address
, default
=auto
1643 --with-snmp-community set SNMP community
, default
=public
1644 --with-ipp-port set port number
for IPP
, default
=631
1645 --with-java set Java interpreter
for web interfaces
1646 --with-perl set Perl interpreter
for web interfaces
1647 --with-php set PHP interpreter
for web interfaces
1648 --with-python set Python interpreter
for web interfaces
1650 Some influential environment variables
:
1651 CC C compiler
command
1652 CFLAGS C compiler flags
1653 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1654 nonstandard directory
<lib dir
>
1655 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1656 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1657 you have headers
in a nonstandard directory
<include dir
>
1659 CXX C
++ compiler
command
1660 CXXFLAGS C
++ compiler flags
1662 Use these variables to override the choices made by
`configure' or to help
1663 it to find libraries and programs with nonstandard names/locations.
1665 Report bugs to <https://github.com/apple/cups/issues>.
1666 CUPS home page: <https://www.cups.org/>.
1671 if test "$ac_init_help" = "recursive"; then
1672 # If there are subdirs, report their specific --help.
1673 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1674 test -d "$ac_dir" ||
1675 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1680 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1682 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1683 # A ".." for each directory in $ac_dir_suffix.
1684 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1685 case $ac_top_builddir_sub in
1686 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1690 ac_abs_top_builddir=$ac_pwd
1691 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1692 # for backward compatibility:
1693 ac_top_builddir=$ac_top_build_prefix
1696 .) # We are building in place.
1698 ac_top_srcdir=$ac_top_builddir_sub
1699 ac_abs_top_srcdir=$ac_pwd ;;
1700 [\\/]* | ?:[\\/]* ) # Absolute name.
1701 ac_srcdir=$srcdir$ac_dir_suffix;
1702 ac_top_srcdir=$srcdir
1703 ac_abs_top_srcdir=$srcdir ;;
1705 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1706 ac_top_srcdir=$ac_top_build_prefix$srcdir
1707 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1709 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1711 cd "$ac_dir" || { ac_status=$?; continue; }
1712 # Check for guested configure.
1713 if test -f "$ac_srcdir/configure.gnu"; then
1715 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1716 elif test -f "$ac_srcdir/configure"; then
1718 $SHELL "$ac_srcdir/configure" --help=recursive
1720 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1722 cd "$ac_pwd" || { ac_status=$?; break; }
1726 test -n "$ac_init_help" && exit $ac_status
1727 if $ac_init_version; then
1729 CUPS configure 2.2.11
1730 generated by GNU Autoconf 2.69
1732 Copyright (C) 2012 Free Software Foundation, Inc.
1733 This configure script is free software; the Free Software Foundation
1734 gives unlimited permission to copy, distribute and modify it.
1739 ## ------------------------ ##
1740 ## Autoconf initialization. ##
1741 ## ------------------------ ##
1743 # ac_fn_c_try_compile LINENO
1744 # --------------------------
1745 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_c_try_compile ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext
1750 if { { ac_try="$ac_compile"
1752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1753 *) ac_try_echo
=$ac_try;;
1755 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_compile") 2>conftest.err
1759 if test -s conftest.err
; then
1760 grep -v '^ *+' conftest.err
>conftest.er1
1761 cat conftest.er1
>&5
1762 mv -f conftest.er1 conftest.err
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest.
$ac_objext; then :
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.
$ac_ext >&5
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status
$ac_retval
1779 } # ac_fn_c_try_compile
1781 # ac_fn_c_try_cpp LINENO
1782 # ----------------------
1783 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1786 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1787 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } > conftest.i && {
1803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1818 # ac_fn_cxx_try_compile LINENO
1819 # ----------------------------
1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_cxx_try_compile ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 rm -f conftest.$ac_objext
1825 if { { ac_try="$ac_compile"
1827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1828 *) ac_try_echo
=$ac_try;;
1830 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_compile") 2>conftest.err
1834 if test -s conftest.err
; then
1835 grep -v '^ *+' conftest.err
>conftest.er1
1836 cat conftest.er1
>&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_cxx_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest.
$ac_objext; then :
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.
$ac_ext >&5
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status
$ac_retval
1854 } # ac_fn_cxx_try_compile
1856 # ac_fn_c_try_link LINENO
1857 # -----------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded.
1861 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1862 rm -f conftest.
$ac_objext conftest
$ac_exeext
1863 if { { ac_try
="$ac_link"
1865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_link") 2>conftest.err
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && {
1879 test -z "$ac_c_werror_flag" ||
1880 test ! -s conftest.err
1881 } && test -s conftest$ac_exeext && {
1882 test "$cross_compiling" = yes ||
1883 test -x conftest$ac_exeext
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1892 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1893 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1894 # interfere with the next link command; also delete a directory that is
1895 # left behind by Apple's compiler. We do this before executing the actions.
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 as_fn_set_status $ac_retval
1900 } # ac_fn_c_try_link
1902 # ac_fn_c_try_run LINENO
1903 # ----------------------
1904 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1905 # that executables *can* be run.
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if { { ac_try="$ac_link"
1911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1912 *) ac_try_echo
=$ac_try;;
1914 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_link") 2>&5
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1920 { { case "(($ac_try" in
1921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_try") 2>&5
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; }; }; then :
1932 $as_echo "$as_me: program exited with status $ac_status" >&5
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1936 ac_retval=$ac_status
1938 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
1944 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1945 # -------------------------------------------------------
1946 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1947 # the include files in INCLUDES and setting the cache variable VAR
1949 ac_fn_c_check_header_mongrel ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if eval \${$3+:} false; then :
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1962 # Is the header compilable?
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1964 $as_echo_n "checking $2 usability... " >&6; }
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_header_compiler=yes
1973 ac_header_compiler=no
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1977 $as_echo "$ac_header_compiler" >&6; }
1979 # Is the header present?
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1981 $as_echo_n "checking $2 presence... " >&6; }
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1986 if ac_fn_c_try_cpp "$LINENO"; then :
1987 ac_header_preproc=yes
1989 ac_header_preproc=no
1991 rm -f conftest.err conftest.i conftest.$ac_ext
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1993 $as_echo "$ac_header_preproc" >&6; }
1995 # So? What about this header?
1996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1999 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2001 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2005 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2007 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2009 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2011 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2013 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 ( $as_echo "## --------------------------------------------------- ##
2015 ## Report this to https://github.com/apple/cups/issues ##
2016 ## --------------------------------------------------- ##"
2017 ) | sed "s/^/$as_me: WARNING: /" >&2
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2025 eval "$3=\$ac_header_compiler"
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 } # ac_fn_c_check_header_mongrel
2035 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2036 # -------------------------------------------------------
2037 # Tests whether HEADER exists and can be compiled using the include files in
2038 # INCLUDES, setting the cache variable VAR accordingly.
2039 ac_fn_c_check_header_compile ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2052 if ac_fn_c_try_compile "$LINENO"; then :
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 } # ac_fn_c_check_header_compile
2066 # ac_fn_c_check_func LINENO FUNC VAR
2067 # ----------------------------------
2068 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2069 ac_fn_c_check_func ()
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2081 #define $2 innocuous_$2
2083 /* System header to define __stub macros and hopefully few prototypes,
2084 which can conflict with char $2 (); below.
2085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2086 <limits.h> exists even on freestanding compilers. */
2089 # include <limits.h>
2091 # include <assert.h>
2096 /* Override any GCC internal prototype to avoid an error.
2097 Use char because int might match the return type of a GCC
2098 builtin and then its argument prototype would still apply. */
2103 /* The GNU C library defines this for functions which it implements
2104 to always fail with ENOSYS. Some functions are actually named
2105 something starting with __ and the normal name is an alias. */
2106 #if defined __stub_$2 || defined __stub___$2
2118 if ac_fn_c_try_link "$LINENO"; then :
2123 rm -f core conftest.err conftest.$ac_objext \
2124 conftest$ac_exeext conftest.$ac_ext
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131 } # ac_fn_c_check_func
2133 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2134 # ----------------------------------------------------
2135 # Tries to find if the field MEMBER exists in type AGGR, after including
2136 # INCLUDES, setting cache variable VAR accordingly.
2137 ac_fn_c_check_member ()
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2141 $as_echo_n "checking for $2.$3... " >&6; }
2142 if eval \${$4+:} false; then :
2143 $as_echo_n "(cached) " >&6
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2158 if ac_fn_c_try_compile "$LINENO"; then :
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2168 if (sizeof ac_aggr.$3)
2174 if ac_fn_c_try_compile "$LINENO"; then :
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188 } # ac_fn_c_check_member
2189 cat >config.log <<_ACEOF
2190 This file contains any messages produced by compilers while
2191 running configure, to aid debugging if configure makes a mistake.
2193 It was created by CUPS $as_me 2.2.11, which was
2194 generated by GNU Autoconf 2.69. Invocation command line was
2206 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2207 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2208 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2209 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2210 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2212 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2213 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2215 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2216 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2217 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2218 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2219 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2220 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2221 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 test -z "$as_dir" && as_dir=.
2230 $as_echo "PATH: $as_dir"
2246 # Keep a trace of the command line.
2247 # Strip out --no-create and --no-recursion so they do not pile up.
2248 # Strip out --silent because we don't want to record it for future runs.
2249 # Also quote any args containing shell meta-characters.
2250 # Make two passes to allow for proper duplicate-argument suppression.
2254 ac_must_keep_next=false
2260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262 | -silent | --silent | --silen | --sile | --sil)
2265 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2268 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2270 as_fn_append ac_configure_args1 " '$ac_arg'"
2271 if test $ac_must_keep_next = true; then
2272 ac_must_keep_next=false # Got value, back to normal.
2275 *=* | --config-cache | -C | -disable-* | --disable-* \
2276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278 | -with-* | --with-* | -without-* | --without-* | --x)
2279 case "$ac_configure_args0 " in
2280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2283 -* ) ac_must_keep_next=true ;;
2286 as_fn_append ac_configure_args " '$ac_arg'"
2291 { ac_configure_args0=; unset ac_configure_args0;}
2292 { ac_configure_args1=; unset ac_configure_args1;}
2294 # When interrupted or exit'd, cleanup temporary files, and complete
2295 # config.log. We remove comments because anyway the quotes in there
2296 # would cause problems or look ugly.
2297 # WARNING: Use '\'' to represent an apostrophe within the trap.
2298 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299 trap 'exit_status=$?
2300 # Save into config.log some information that might help in debugging.
2304 $as_echo "## ---------------- ##
2305 ## Cache variables. ##
2306 ## ---------------- ##"
2308 # The following way of writing the cache mishandles newlines in values,
2310 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2311 eval ac_val=\$$ac_var
2315 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2316 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319 _ | IFS | as_nl) ;; #(
2320 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2321 *) { eval $ac_var=; unset $ac_var;} ;;
2326 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2327 *${as_nl}ac_space=\ *)
2329 "s/'\''/'\''\\\\'\'''\''/g;
2330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2340 $as_echo "## ----------------- ##
2341 ## Output variables. ##
2342 ## ----------------- ##"
2344 for ac_var in $ac_subst_vars
2346 eval ac_val=\$$ac_var
2348 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350 $as_echo "$ac_var='\''$ac_val'\''"
2354 if test -n "$ac_subst_files"; then
2355 $as_echo "## ------------------- ##
2356 ## File substitutions. ##
2357 ## ------------------- ##"
2359 for ac_var in $ac_subst_files
2361 eval ac_val=\$$ac_var
2363 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2365 $as_echo "$ac_var='\''$ac_val'\''"
2370 if test -s confdefs.h; then
2371 $as_echo "## ----------- ##
2378 test "$ac_signal" != 0 &&
2379 $as_echo "$as_me: caught signal $ac_signal"
2380 $as_echo "$as_me: exit $exit_status"
2382 rm -f core *.core core.conftest.* &&
2383 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2386 for ac_signal in 1 2 13 15; do
2387 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2391 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2392 rm -f -r conftest* confdefs.h
2394 $as_echo "/* confdefs.h */" > confdefs.h
2396 # Predefined preprocessor variables.
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_NAME "$PACKAGE_NAME"
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_STRING "$PACKAGE_STRING"
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_URL "$PACKAGE_URL"
2423 # Let the site file select an alternate cache file if it wants to.
2424 # Prefer an explicitly selected file to automatically selected ones.
2427 if test -n "$CONFIG_SITE"; then
2428 # We do not want a PATH search for config.site.
2429 case $CONFIG_SITE in #((
2430 -*) ac_site_file1=./$CONFIG_SITE;;
2431 */*) ac_site_file1=$CONFIG_SITE;;
2432 *) ac_site_file1=./$CONFIG_SITE;;
2434 elif test "x$prefix" != xNONE; then
2435 ac_site_file1=$prefix/share/config.site
2436 ac_site_file2=$prefix/etc/config.site
2438 ac_site_file1=$ac_default_prefix/share/config.site
2439 ac_site_file2=$ac_default_prefix/etc/config.site
2441 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2443 test "x$ac_site_file" = xNONE && continue
2444 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2446 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2447 sed 's/^/| /' "$ac_site_file" >&5
2449 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 as_fn_error $? "failed to load site
script $ac_site_file
2452 See \
`config.log' for more details" "$LINENO" 5; }
2456 if test -r "$cache_file"; then
2457 # Some versions of bash will fail to source /dev/null (special files
2458 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2459 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2461 $as_echo "$as_me: loading cache $cache_file" >&6;}
2463 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2464 *) . "./$cache_file";;
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2469 $as_echo "$as_me: creating cache $cache_file" >&6;}
2473 # Check that the precious variables saved in the cache have kept the same
2475 ac_cache_corrupted=false
2476 for ac_var in $ac_precious_vars; do
2477 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2478 eval ac_new_set=\$ac_env_${ac_var}_set
2479 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2480 eval ac_new_val=\$ac_env_${ac_var}_value
2481 case $ac_old_set,$ac_new_set in
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2484 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2485 ac_cache_corrupted=: ;;
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2488 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2489 ac_cache_corrupted=: ;;
2492 if test "x$ac_old_val" != "x$ac_new_val"; then
2493 # differences in whitespace do not lead to failure.
2494 ac_old_val_w=`echo x
$ac_old_val`
2495 ac_new_val_w=`echo x
$ac_new_val`
2496 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2498 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2499 ac_cache_corrupted=:
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2502 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2503 eval $ac_var=\$ac_old_val
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2506 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2508 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2511 # Pass precious variables to config.status.
2512 if test "$ac_new_set" = set; then
2514 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2515 *) ac_arg=$ac_var=$ac_new_val ;;
2517 case " $ac_configure_args " in
2518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2519 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2523 if $ac_cache_corrupted; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2527 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2528 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2530 ## -------------------- ##
2531 ## Main body of script. ##
2532 ## -------------------- ##
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2545 if test -f "$ac_dir/install-sh"; then
2547 ac_install_sh="$ac_aux_dir/install-sh -c"
2549 elif test -f "$ac_dir/install.sh"; then
2551 ac_install_sh="$ac_aux_dir/install.sh -c"
2553 elif test -f "$ac_dir/shtool"; then
2555 ac_install_sh="$ac_aux_dir/shtool install -c"
2559 if test -z "$ac_aux_dir"; then
2560 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2568 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2569 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2572 # Make sure we can run config.sub.
2573 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2574 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2577 $as_echo_n "checking build system type... " >&6; }
2578 if ${ac_cv_build+:} false; then :
2579 $as_echo_n "(cached) " >&6
2581 ac_build_alias=$build_alias
2582 test "x$ac_build_alias" = x &&
2583 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2584 test "x$ac_build_alias" = x &&
2585 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2586 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2587 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2591 $as_echo "$ac_cv_build" >&6; }
2592 case $ac_cv_build in
2594 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2597 ac_save_IFS=$IFS; IFS='-'
2603 # Remember, the first character of IFS is used to create $*,
2604 # except with old shells:
2607 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2611 $as_echo_n "checking host system type... " >&6; }
2612 if ${ac_cv_host+:} false; then :
2613 $as_echo_n "(cached) " >&6
2615 if test "x$host_alias" = x; then
2616 ac_cv_host=$ac_cv_build
2618 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2619 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2624 $as_echo "$ac_cv_host" >&6; }
2627 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2630 ac_save_IFS=$IFS; IFS='-'
2636 # Remember, the first character of IFS is used to create $*,
2637 # except with old shells:
2640 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2644 host_os_name=`echo $host_os |
sed -e '1,$s/[0-9.]*$//g'`
2645 host_os_version=`echo $host_os |
sed -e '1,$s/^[^0-9.]*//g' |
awk -F.
'{print $1 $2}'`
2646 # Linux often does not yield an OS version we can use...
2647 if test "x$host_os_version" = x; then
2651 if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
2652 as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
2655 if test "$build" = "$host"; then
2656 # No, build local targets
2659 # Yes, don't build local targets
2664 for ac_prog in codesign true
2666 # Extract the first word of "$ac_prog", so it can be a program name with args.
2667 set dummy $ac_prog; ac_word=$2
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669 $as_echo_n "checking for $ac_word... " >&6; }
2670 if ${ac_cv_path_CODE_SIGN+:} false; then :
2671 $as_echo_n "(cached) " >&6
2675 ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_path_CODE_SIGN="$as_dir/$ac_word$ac_exec_ext"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 CODE_SIGN=$ac_cv_path_CODE_SIGN
2697 if test -n "$CODE_SIGN"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5
2699 $as_echo "$CODE_SIGN" >&6; }
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2706 test -n "$CODE_SIGN" && break
2711 ac_config_headers="$ac_config_headers config.h"
2714 CUPS_VERSION="2.2.11"
2716 CUPS_BUILD="cups-$CUPS_VERSION"
2719 # Check whether --with-cups_build was given.
2720 if test "${with_cups_build+set}" = set; then :
2721 withval=$with_cups_build; CUPS_BUILD="$withval"
2728 cat >>confdefs.h <<_ACEOF
2729 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2732 cat >>confdefs.h <<_ACEOF
2733 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2737 CFLAGS="${CFLAGS:=}"
2738 CPPFLAGS="${CPPFLAGS:=}"
2739 CXXFLAGS="${CXXFLAGS:=}"
2740 LDFLAGS="${LDFLAGS:=}"
2742 for ac_prog in gawk mawk nawk awk
2744 # Extract the first word of "$ac_prog", so it can be a program name with args.
2745 set dummy $ac_prog; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if ${ac_cv_prog_AWK+:} false; then :
2749 $as_echo_n "(cached) " >&6
2751 if test -n "$AWK"; then
2752 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761 ac_cv_prog_AWK="$ac_prog"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 if test -n "$AWK"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2774 $as_echo "$AWK" >&6; }
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2781 test -n "$AWK" && break
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 if test -n "$ac_tool_prefix"; then
2790 for ac_prog in clang cc gcc
2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_CC+:} false; then :
2797 $as_echo_n "(cached) " >&6
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 if test -n "$CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2829 test -n "$CC" && break
2832 if test -z "$CC"; then
2834 for ac_prog in clang cc gcc
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2841 $as_echo_n "(cached) " >&6
2843 if test -n "$ac_ct_CC"; then
2844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_ac_ct_CC="$ac_prog"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2866 $as_echo "$ac_ct_CC" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2873 test -n "$ac_ct_CC" && break
2876 if test "x$ac_ct_CC" = x; then
2879 case $cross_compiling:$ac_tool_warned in
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2883 ac_tool_warned=yes ;;
2890 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2892 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2893 See \
`config.log' for more details" "$LINENO" 5; }
2895 # Provide some information about the compiler.
2896 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2899 for ac_option in --version -v -V -qversion; do
2900 { { ac_try="$ac_compiler $ac_option >&5"
2902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2903 *) ac_try_echo
=$ac_try;;
2905 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2906 $as_echo "$ac_try_echo"; } >&5
2907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2909 if test -s conftest.err
; then
2911 ... rest of stderr output deleted ...
2912 10q' conftest.err
>conftest.er1
2913 cat conftest.er1
>&5
2915 rm -f conftest.er1 conftest.err
2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2917 test $ac_status = 0; }
2920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2921 /* end confdefs.h. */
2931 ac_clean_files_save
=$ac_clean_files
2932 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2933 # Try to create an executable without -o first, disregard a.out.
2934 # It will help us diagnose broken compilers, and finding out an intuition
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2937 $as_echo_n "checking whether the C compiler works... " >&6; }
2938 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2940 # The possible output files:
2941 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2944 for ac_file
in $ac_files
2947 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2948 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2953 if { { ac_try
="$ac_link_default"
2955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959 $as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_link_default") 2>&5
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }; then :
2964 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2965 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2966 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2967 # so that the user can short-circuit this test for compilers unknown to
2969 for ac_file in $ac_files ''
2971 test -f "$ac_file" || continue
2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2976 # We found the default executable, but exeext='' is most
2980 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2984 # We set ac_cv_exeext here because the later test for it is not
2985 # safe: cross compilers may not add the suffix if given an `-o'
2986 # argument, so we may need to know it at that point already.
2987 # Even if this section looks crufty: it has the advantage of
2994 test "$ac_cv_exeext" = no && ac_cv_exeext=
2999 if test -z "$ac_file"; then :
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 $as_echo "$as_me: failed program was:" >&5
3003 sed 's
/^
/|
/' conftest.$ac_ext >&5
3005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3007 as_fn_error 77 "C compiler cannot create executables
3008 See \`config.log
' for more details" "$LINENO" 5; }
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3011 $as_echo "yes" >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3014 $as_echo_n "checking for C compiler default output file name... " >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3016 $as_echo "$ac_file" >&6; }
3017 ac_exeext=$ac_cv_exeext
3019 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3020 ac_clean_files=$ac_clean_files_save
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3022 $as_echo_n "checking for suffix of executables... " >&6; }
3023 if { { ac_try="$ac_link"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_link") 2>&5
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }; then :
3034 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3035 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3036 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3038 for ac_file
in conftest.exe conftest conftest.
*; do
3039 test -f "$ac_file" ||
continue
3041 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3042 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3051 See \`config.log' for more details" "$LINENO" 5; }
3053 rm -f conftest conftest
$ac_cv_exeext
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3055 $as_echo "$ac_cv_exeext" >&6; }
3057 rm -f conftest.
$ac_ext
3058 EXEEXT
=$ac_cv_exeext
3060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3066 FILE *f = fopen ("conftest.out", "w");
3067 return ferror (f) || fclose (f) != 0;
3073 ac_clean_files
="$ac_clean_files conftest.out"
3074 # Check that the compiler produces executables we can run. If not, either
3075 # the compiler is broken, or we cross compile.
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3077 $as_echo_n "checking whether we are cross compiling... " >&6; }
3078 if test "$cross_compiling" != yes; then
3079 { { ac_try
="$ac_link"
3081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085 $as_echo "$ac_try_echo"; } >&5
3086 (eval "$ac_link") 2>&5
3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089 test $ac_status = 0; }
3090 if { ac_try='./conftest$ac_cv_exeext'
3091 { { case "(($ac_try" in
3092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3093 *) ac_try_echo
=$ac_try;;
3095 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096 $as_echo "$ac_try_echo"; } >&5
3097 (eval "$ac_try") 2>&5
3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100 test $ac_status = 0; }; }; then
3103 if test "$cross_compiling" = maybe
; then
3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 as_fn_error $?
"cannot run C compiled programs.
3109 If you meant to cross compile, use \`--host'.
3110 See \`config.log' for more details" "$LINENO" 5; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3115 $as_echo "$cross_compiling" >&6; }
3117 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3118 ac_clean_files
=$ac_clean_files_save
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3120 $as_echo_n "checking for suffix of object files... " >&6; }
3121 if ${ac_cv_objext+:} false
; then :
3122 $as_echo_n "(cached) " >&6
3124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h. */
3135 rm -f conftest.o conftest.obj
3136 if { { ac_try
="$ac_compile"
3138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_compile") 2>&5
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; then :
3147 for ac_file in conftest.o conftest.obj conftest.*; do
3148 test -f "$ac_file" || continue;
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3151 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3156 $as_echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3162 See \
`config.log' for more details" "$LINENO" 5; }
3164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3167 $as_echo "$ac_cv_objext" >&6; }
3168 OBJEXT=$ac_cv_objext
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3171 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3172 if ${ac_cv_c_compiler_gnu+:} false; then :
3173 $as_echo_n "(cached) " >&6
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3189 if ac_fn_c_try_compile "$LINENO"; then :
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3199 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3200 if test $ac_compiler_gnu = yes; then
3205 ac_test_CFLAGS=${CFLAGS+set}
3206 ac_save_CFLAGS=$CFLAGS
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3208 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3209 if ${ac_cv_prog_cc_g+:} false; then :
3210 $as_echo_n "(cached) " >&6
3212 ac_save_c_werror_flag=$ac_c_werror_flag
3213 ac_c_werror_flag=yes
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3227 if ac_fn_c_try_compile "$LINENO"; then :
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3242 if ac_fn_c_try_compile "$LINENO"; then :
3245 ac_c_werror_flag=$ac_save_c_werror_flag
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3258 if ac_fn_c_try_compile "$LINENO"; then :
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3269 $as_echo "$ac_cv_prog_cc_g" >&6; }
3270 if test "$ac_test_CFLAGS" = set; then
3271 CFLAGS=$ac_save_CFLAGS
3272 elif test $ac_cv_prog_cc_g = yes; then
3273 if test "$GCC" = yes; then
3279 if test "$GCC" = yes; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3286 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3287 if ${ac_cv_prog_cc_c89+:} false; then :
3288 $as_echo_n "(cached) " >&6
3290 ac_cv_prog_cc_c89=no
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3297 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3298 struct buf { int x; };
3299 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3300 static char *e (p, i)
3306 static char *f (char * (*g) (char **, int), char **p, ...)
3311 s = g (p, va_arg (v,int));
3316 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3317 function prototypes and stuff, but not '\xHH' hex character constants.
3318 These don't provoke an error unfortunately, instead are silently treated
3319 as 'x'. The following induces an error, until -std is added to get
3320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3321 array size at least. It's necessary to write '\x00'==0 to get something
3322 that's true only with -std. */
3323 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3325 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3326 inside strings and character constants. */
3328 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3330 int test (int i, double x);
3331 struct s1 {int (*f) (int a);};
3332 struct s2 {int (*f) (double a);};
3333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3339 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3344 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3345 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3347 CC="$ac_save_CC $ac_arg"
3348 if ac_fn_c_try_compile "$LINENO"; then :
3349 ac_cv_prog_cc_c89=$ac_arg
3351 rm -f core conftest.err conftest.$ac_objext
3352 test "x$ac_cv_prog_cc_c89" != "xno" && break
3354 rm -f conftest.$ac_ext
3359 case "x$ac_cv_prog_cc_c89" in
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3362 $as_echo "none needed" >&6; } ;;
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3365 $as_echo "unsupported" >&6; } ;;
3367 CC="$CC $ac_cv_prog_cc_c89"
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3369 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3371 if test "x$ac_cv_prog_cc_c89" != xno; then :
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3387 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3388 # On Suns, sometimes $CPP names a directory.
3389 if test -n "$CPP" && test -d "$CPP"; then
3392 if test -z "$CPP"; then
3393 if ${ac_cv_prog_CPP+:} false; then :
3394 $as_echo_n "(cached) " >&6
3396 # Double quotes because CPP needs to be expanded
3397 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3400 for ac_c_preproc_warn_flag in '' yes
3402 # Use a header file that comes with gcc, so configuring glibc
3403 # with a fresh cross-compiler works.
3404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3405 # <limits.h> exists even on freestanding compilers.
3406 # On the NeXT, cc -E runs the code through the compiler's parser,
3407 # not just through cpp. "Syntax error" is here to catch this case.
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3411 # include <limits.h>
3413 # include <assert.h>
3417 if ac_fn_c_try_cpp "$LINENO"; then :
3420 # Broken: fails on valid input.
3423 rm -f conftest.err conftest.i conftest.$ac_ext
3425 # OK, works on sane cases. Now check whether nonexistent headers
3426 # can be detected and how.
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3429 #include <ac_nonexistent.h>
3431 if ac_fn_c_try_cpp "$LINENO"; then :
3432 # Broken: success on invalid input.
3435 # Passes both tests.
3439 rm -f conftest.err conftest.i conftest.$ac_ext
3442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443 rm -f conftest.i conftest.err conftest.
$ac_ext
3444 if $ac_preproc_ok; then :
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3457 $as_echo "$CPP" >&6; }
3459 for ac_c_preproc_warn_flag
in '' yes
3461 # Use a header file that comes with gcc, so configuring glibc
3462 # with a fresh cross-compiler works.
3463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3464 # <limits.h> exists even on freestanding compilers.
3465 # On the NeXT, cc -E runs the code through the compiler's parser,
3466 # not just through cpp. "Syntax error" is here to catch this case.
3467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3470 # include <limits.h>
3472 # include <assert.h>
3476 if ac_fn_c_try_cpp
"$LINENO"; then :
3479 # Broken: fails on valid input.
3482 rm -f conftest.err conftest.i conftest.
$ac_ext
3484 # OK, works on sane cases. Now check whether nonexistent headers
3485 # can be detected and how.
3486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3488 #include <ac_nonexistent.h>
3490 if ac_fn_c_try_cpp
"$LINENO"; then :
3491 # Broken: success on invalid input.
3494 # Passes both tests.
3498 rm -f conftest.err conftest.i conftest.
$ac_ext
3501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3502 rm -f conftest.i conftest.err conftest.
$ac_ext
3503 if $ac_preproc_ok; then :
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3509 See \`config.log' for more details" "$LINENO" 5; }
3513 ac_cpp
='$CPP $CPPFLAGS'
3514 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3519 ac_cpp
='$CXXCPP $CPPFLAGS'
3520 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3523 if test -z "$CXX"; then
3524 if test -n "$CCC"; then
3527 if test -n "$ac_tool_prefix"; then
3528 for ac_prog
in clang
++ c
++ g
++
3530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3531 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533 $as_echo_n "checking for $ac_word... " >&6; }
3534 if ${ac_cv_prog_CXX+:} false
; then :
3535 $as_echo_n "(cached) " >&6
3537 if test -n "$CXX"; then
3538 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3544 test -z "$as_dir" && as_dir
=.
3545 for ac_exec_ext
in '' $ac_executable_extensions; do
3546 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3547 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 if test -n "$CXX"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3560 $as_echo "$CXX" >&6; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3567 test -n "$CXX" && break
3570 if test -z "$CXX"; then
3572 for ac_prog
in clang
++ c
++ g
++
3574 # Extract the first word of "$ac_prog", so it can be a program name with args.
3575 set dummy
$ac_prog; ac_word
=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3579 $as_echo_n "(cached) " >&6
3581 if test -n "$ac_ct_CXX"; then
3582 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3588 test -z "$as_dir" && as_dir
=.
3589 for ac_exec_ext
in '' $ac_executable_extensions; do
3590 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3602 if test -n "$ac_ct_CXX"; then
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3604 $as_echo "$ac_ct_CXX" >&6; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3611 test -n "$ac_ct_CXX" && break
3614 if test "x$ac_ct_CXX" = x
; then
3617 case $cross_compiling:$ac_tool_warned in
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621 ac_tool_warned
=yes ;;
3629 # Provide some information about the compiler.
3630 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3633 for ac_option
in --version -v -V -qversion; do
3634 { { ac_try
="$ac_compiler $ac_option >&5"
3636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640 $as_echo "$ac_try_echo"; } >&5
3641 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3643 if test -s conftest.err; then
3645 ... rest of stderr output deleted ...
3646 10q' conftest.err >conftest.er1
3647 cat conftest.er1 >&5
3649 rm -f conftest.er1 conftest.err
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3655 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3656 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3657 $as_echo_n "(cached) " >&6
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3673 if ac_fn_cxx_try_compile "$LINENO"; then :
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3683 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3684 if test $ac_compiler_gnu = yes; then
3689 ac_test_CXXFLAGS=${CXXFLAGS+set}
3690 ac_save_CXXFLAGS=$CXXFLAGS
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3692 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3693 if ${ac_cv_prog_cxx_g+:} false; then :
3694 $as_echo_n "(cached) " >&6
3696 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3697 ac_cxx_werror_flag=yes
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3711 if ac_fn_cxx_try_compile "$LINENO"; then :
3712 ac_cv_prog_cxx_g=yes
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3726 if ac_fn_cxx_try_compile "$LINENO"; then :
3729 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3742 if ac_fn_cxx_try_compile "$LINENO"; then :
3743 ac_cv_prog_cxx_g=yes
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3753 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3754 if test "$ac_test_CXXFLAGS" = set; then
3755 CXXFLAGS=$ac_save_CXXFLAGS
3756 elif test $ac_cv_prog_cxx_g = yes; then
3757 if test "$GXX" = yes; then
3763 if test "$GXX" = yes; then
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 if test -n "$ac_tool_prefix"; then
3776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if ${ac_cv_prog_RANLIB+:} false; then :
3781 $as_echo_n "(cached) " >&6
3783 if test -n "$RANLIB"; then
3784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 RANLIB=$ac_cv_prog_RANLIB
3804 if test -n "$RANLIB"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3806 $as_echo "$RANLIB" >&6; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3814 if test -z "$ac_cv_prog_RANLIB"; then
3815 ac_ct_RANLIB=$RANLIB
3816 # Extract the first word of "ranlib", so it can be a program name with args.
3817 set dummy ranlib; ac_word=$2
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 $as_echo_n "checking for $ac_word... " >&6; }
3820 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3821 $as_echo_n "(cached) " >&6
3823 if test -n "$ac_ct_RANLIB"; then
3824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833 ac_cv_prog_ac_ct_RANLIB="ranlib"
3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3844 if test -n "$ac_ct_RANLIB"; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3846 $as_echo "$ac_ct_RANLIB" >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3852 if test "x$ac_ct_RANLIB" = x; then
3855 case $cross_compiling:$ac_tool_warned in
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3859 ac_tool_warned=yes ;;
3861 RANLIB=$ac_ct_RANLIB
3864 RANLIB="$ac_cv_prog_RANLIB"
3867 # Extract the first word of "ar", so it can be a program name with args.
3868 set dummy ar; ac_word=$2
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 $as_echo_n "checking for $ac_word... " >&6; }
3871 if ${ac_cv_path_AR+:} false; then :
3872 $as_echo_n "(cached) " >&6
3876 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 if test -n "$AR"; then
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3900 $as_echo "$AR" >&6; }
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903 $as_echo "no" >&6; }
3907 # Extract the first word of "chmod", so it can be a program name with args.
3908 set dummy chmod; ac_word=$2
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3910 $as_echo_n "checking for $ac_word... " >&6; }
3911 if ${ac_cv_path_CHMOD+:} false; then :
3912 $as_echo_n "(cached) " >&6
3916 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 CHMOD=$ac_cv_path_CHMOD
3938 if test -n "$CHMOD"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3940 $as_echo "$CHMOD" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3947 # Extract the first word of "gzip", so it can be a program name with args.
3948 set dummy gzip; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if ${ac_cv_path_GZIP+:} false; then :
3952 $as_echo_n "(cached) " >&6
3956 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 GZIP=$ac_cv_path_GZIP
3978 if test -n "$GZIP"; then
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3980 $as_echo "$GZIP" >&6; }
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983 $as_echo "no" >&6; }
3987 # Extract the first word of "ld", so it can be a program name with args.
3988 set dummy ld; ac_word=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if ${ac_cv_path_LD+:} false; then :
3992 $as_echo_n "(cached) " >&6
3996 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 if test -n "$LD"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4020 $as_echo "$LD" >&6; }
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4027 # Extract the first word of "ln", so it can be a program name with args.
4028 set dummy ln; ac_word=$2
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if ${ac_cv_path_LN+:} false; then :
4032 $as_echo_n "(cached) " >&6
4036 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 if test -n "$LN"; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4060 $as_echo "$LN" >&6; }
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4067 # Extract the first word of "mkdir", so it can be a program name with args.
4068 set dummy mkdir; ac_word=$2
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if ${ac_cv_path_MKDIR+:} false; then :
4072 $as_echo_n "(cached) " >&6
4076 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 MKDIR=$ac_cv_path_MKDIR
4098 if test -n "$MKDIR"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4100 $as_echo "$MKDIR" >&6; }
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4107 # Extract the first word of "mv", so it can be a program name with args.
4108 set dummy mv; ac_word=$2
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110 $as_echo_n "checking for $ac_word... " >&6; }
4111 if ${ac_cv_path_MV+:} false; then :
4112 $as_echo_n "(cached) " >&6
4116 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 if test -n "$MV"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4140 $as_echo "$MV" >&6; }
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4147 # Extract the first word of "rm", so it can be a program name with args.
4148 set dummy rm; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if ${ac_cv_path_RM+:} false; then :
4152 $as_echo_n "(cached) " >&6
4156 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 if test -n "$RM"; then
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4180 $as_echo "$RM" >&6; }
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 $as_echo "no" >&6; }
4187 # Extract the first word of "rmdir", so it can be a program name with args.
4188 set dummy rmdir; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_path_RMDIR+:} false; then :
4192 $as_echo_n "(cached) " >&6
4196 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4206 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 RMDIR=$ac_cv_path_RMDIR
4218 if test -n "$RMDIR"; then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4220 $as_echo "$RMDIR" >&6; }
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4227 # Extract the first word of "sed", so it can be a program name with args.
4228 set dummy sed; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_path_SED+:} false; then :
4232 $as_echo_n "(cached) " >&6
4236 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4246 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 if test -n "$SED"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4260 $as_echo "$SED" >&6; }
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4267 # Extract the first word of "xdg-open", so it can be a program name with args.
4268 set dummy xdg-open; ac_word=$2
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if ${ac_cv_path_XDGOPEN+:} false; then :
4272 $as_echo_n "(cached) " >&6
4276 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 XDGOPEN=$ac_cv_path_XDGOPEN
4298 if test -n "$XDGOPEN"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4300 $as_echo "$XDGOPEN" >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4307 if test "x$XDGOPEN" = x; then
4308 CUPS_HTMLVIEW="htmlview"
4310 CUPS_HTMLVIEW="$XDGOPEN"
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4315 $as_echo_n "checking for install-sh script... " >&6; }
4316 INSTALL="`pwd`/install-sh"
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4319 $as_echo "using $INSTALL" >&6; }
4321 if test "x$AR" = x; then
4322 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4324 if test "x$CC" = x; then
4325 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4329 # Check whether --enable-static was given.
4330 if test "${enable_static+set}" = set; then :
4331 enableval=$enable_static;
4335 if test x$enable_static = xyes; then
4336 echo Installing static libraries...
4337 INSTALLSTATIC="installstatic"
4342 if test -n "$ac_tool_prefix"; then
4343 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4344 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_path_PKGCONFIG+:} false; then :
4348 $as_echo_n "(cached) " >&6
4352 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 PKGCONFIG=$ac_cv_path_PKGCONFIG
4374 if test -n "$PKGCONFIG"; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4376 $as_echo "$PKGCONFIG" >&6; }
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379 $as_echo "no" >&6; }
4384 if test -z "$ac_cv_path_PKGCONFIG"; then
4385 ac_pt_PKGCONFIG=$PKGCONFIG
4386 # Extract the first word of "pkg-config", so it can be a program name with args.
4387 set dummy pkg-config; ac_word=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4391 $as_echo_n "(cached) " >&6
4393 case $ac_pt_PKGCONFIG in
4395 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4405 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4417 if test -n "$ac_pt_PKGCONFIG"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4419 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4425 if test "x$ac_pt_PKGCONFIG" = x; then
4428 case $cross_compiling:$ac_tool_warned in
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4432 ac_tool_warned=yes ;;
4434 PKGCONFIG=$ac_pt_PKGCONFIG
4437 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4443 $as_echo_n "checking for library containing abs... " >&6; }
4444 if ${ac_cv_search_abs+:} false; then :
4445 $as_echo_n "(cached) " >&6
4447 ac_func_search_save_LIBS=$LIBS
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4451 /* Override any GCC internal prototype to avoid an error.
4452 Use char because int might match the return type of a GCC
4453 builtin and then its argument prototype would still apply. */
4466 for ac_lib in '' m; do
4467 if test -z "$ac_lib"; then
4468 ac_res="none required"
4471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4473 if ac_fn_c_try_link "$LINENO"; then :
4474 ac_cv_search_abs=$ac_res
4476 rm -f core conftest.err conftest.$ac_objext \
4478 if ${ac_cv_search_abs+:} false; then :
4482 if ${ac_cv_search_abs+:} false; then :
4488 LIBS=$ac_func_search_save_LIBS
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4491 $as_echo "$ac_cv_search_abs" >&6; }
4492 ac_res=$ac_cv_search_abs
4493 if test "$ac_res" != no; then :
4494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4495 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4500 $as_echo_n "checking for library containing crypt... " >&6; }
4501 if ${ac_cv_search_crypt+:} false; then :
4502 $as_echo_n "(cached) " >&6
4504 ac_func_search_save_LIBS=$LIBS
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4508 /* Override any GCC internal prototype to avoid an error.
4509 Use char because int might match the return type of a GCC
4510 builtin and then its argument prototype would still apply. */
4523 for ac_lib in '' crypt; do
4524 if test -z "$ac_lib"; then
4525 ac_res="none required"
4528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4530 if ac_fn_c_try_link "$LINENO"; then :
4531 ac_cv_search_crypt=$ac_res
4533 rm -f core conftest.err conftest.$ac_objext \
4535 if ${ac_cv_search_crypt+:} false; then :
4539 if ${ac_cv_search_crypt+:} false; then :
4542 ac_cv_search_crypt=no
4545 LIBS=$ac_func_search_save_LIBS
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4548 $as_echo "$ac_cv_search_crypt" >&6; }
4549 ac_res=$ac_cv_search_crypt
4550 if test "$ac_res" != no; then :
4551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4556 $as_echo_n "checking for library containing fmod... " >&6; }
4557 if ${ac_cv_search_fmod+:} false; then :
4558 $as_echo_n "(cached) " >&6
4560 ac_func_search_save_LIBS=$LIBS
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4564 /* Override any GCC internal prototype to avoid an error.
4565 Use char because int might match the return type of a GCC
4566 builtin and then its argument prototype would still apply. */
4579 for ac_lib in '' m; do
4580 if test -z "$ac_lib"; then
4581 ac_res="none required"
4584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4586 if ac_fn_c_try_link "$LINENO"; then :
4587 ac_cv_search_fmod=$ac_res
4589 rm -f core conftest.err conftest.$ac_objext \
4591 if ${ac_cv_search_fmod+:} false; then :
4595 if ${ac_cv_search_fmod+:} false; then :
4598 ac_cv_search_fmod=no
4601 LIBS=$ac_func_search_save_LIBS
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4604 $as_echo "$ac_cv_search_fmod" >&6; }
4605 ac_res=$ac_cv_search_fmod
4606 if test "$ac_res" != no; then :
4607 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4612 $as_echo_n "checking for library containing getspent... " >&6; }
4613 if ${ac_cv_search_getspent+:} false; then :
4614 $as_echo_n "(cached) " >&6
4616 ac_func_search_save_LIBS=$LIBS
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4620 /* Override any GCC internal prototype to avoid an error.
4621 Use char because int might match the return type of a GCC
4622 builtin and then its argument prototype would still apply. */
4635 for ac_lib in '' sec gen; do
4636 if test -z "$ac_lib"; then
4637 ac_res="none required"
4640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4642 if ac_fn_c_try_link "$LINENO"; then :
4643 ac_cv_search_getspent=$ac_res
4645 rm -f core conftest.err conftest.$ac_objext \
4647 if ${ac_cv_search_getspent+:} false; then :
4651 if ${ac_cv_search_getspent+:} false; then :
4654 ac_cv_search_getspent=no
4657 LIBS=$ac_func_search_save_LIBS
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4660 $as_echo "$ac_cv_search_getspent" >&6; }
4661 ac_res=$ac_cv_search_getspent
4662 if test "$ac_res" != no; then :
4663 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4669 # Check whether --enable-mallinfo was given.
4670 if test "${enable_mallinfo+set}" = set; then :
4671 enableval=$enable_mallinfo;
4675 if test x$enable_mallinfo = xyes; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4679 $as_echo_n "checking for library containing mallinfo... " >&6; }
4680 if ${ac_cv_search_mallinfo+:} false; then :
4681 $as_echo_n "(cached) " >&6
4683 ac_func_search_save_LIBS=$LIBS
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4687 /* Override any GCC internal prototype to avoid an error.
4688 Use char because int might match the return type of a GCC
4689 builtin and then its argument prototype would still apply. */
4702 for ac_lib in '' malloc; do
4703 if test -z "$ac_lib"; then
4704 ac_res="none required"
4707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4709 if ac_fn_c_try_link "$LINENO"; then :
4710 ac_cv_search_mallinfo=$ac_res
4712 rm -f core conftest.err conftest.$ac_objext \
4714 if ${ac_cv_search_mallinfo+:} false; then :
4718 if ${ac_cv_search_mallinfo+:} false; then :
4721 ac_cv_search_mallinfo=no
4724 LIBS=$ac_func_search_save_LIBS
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4727 $as_echo "$ac_cv_search_mallinfo" >&6; }
4728 ac_res=$ac_cv_search_mallinfo
4729 if test "$ac_res" != no; then :
4730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4731 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4741 # Check whether --enable-libpaper was given.
4742 if test "${enable_libpaper+set}" = set; then :
4743 enableval=$enable_libpaper;
4747 if test x$enable_libpaper = xyes; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4749 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4750 if ${ac_cv_lib_paper_systempapername+:} false; then :
4751 $as_echo_n "(cached) " >&6
4753 ac_check_lib_save_LIBS=$LIBS
4754 LIBS="-lpaper $LIBS"
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4758 /* Override any GCC internal prototype to avoid an error.
4759 Use char because int might match the return type of a GCC
4760 builtin and then its argument prototype would still apply. */
4764 char systempapername ();
4768 return systempapername ();
4773 if ac_fn_c_try_link "$LINENO"; then :
4774 ac_cv_lib_paper_systempapername=yes
4776 ac_cv_lib_paper_systempapername=no
4778 rm -f core conftest.err conftest.$ac_objext \
4779 conftest$ac_exeext conftest.$ac_ext
4780 LIBS=$ac_check_lib_save_LIBS
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4783 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4784 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4785 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4799 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4800 if ${ac_cv_path_GREP+:} false; then :
4801 $as_echo_n "(cached) " >&6
4803 if test -z "$GREP"; then
4804 ac_path_GREP_found=false
4805 # Loop through the user's path and test for each of PROGNAME-LIST
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4810 test -z "$as_dir" && as_dir=.
4811 for ac_prog in grep ggrep; do
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4814 as_fn_executable_p "$ac_path_GREP" || continue
4815 # Check for GNU ac_path_GREP and select it if it is found.
4816 # Check for GNU $ac_path_GREP
4817 case `"$ac_path_GREP" --version 2>&1` in
4819 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4822 $as_echo_n 0123456789 >"conftest.in"
4825 cat "conftest.in" "conftest.in" >"conftest.tmp"
4826 mv "conftest.tmp" "conftest.in"
4827 cp "conftest.in" "conftest.nl"
4828 $as_echo 'GREP' >> "conftest.nl"
4829 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4831 as_fn_arith $ac_count + 1 && ac_count=$as_val
4832 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4833 # Best one so far, save it but keep looking for a better one
4834 ac_cv_path_GREP="$ac_path_GREP"
4835 ac_path_GREP_max=$ac_count
4837 # 10*(2^10) chars as input seems more than enough
4838 test $ac_count -gt 10 && break
4840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4843 $ac_path_GREP_found && break 3
4848 if test -z "$ac_cv_path_GREP"; then
4849 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4852 ac_cv_path_GREP=$GREP
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4857 $as_echo "$ac_cv_path_GREP" >&6; }
4858 GREP="$ac_cv_path_GREP"
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4862 $as_echo_n "checking for egrep... " >&6; }
4863 if ${ac_cv_path_EGREP+:} false; then :
4864 $as_echo_n "(cached) " >&6
4866 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4867 then ac_cv_path_EGREP="$GREP -E"
4869 if test -z "$EGREP"; then
4870 ac_path_EGREP_found=false
4871 # Loop through the user's path and test for each of PROGNAME-LIST
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4876 test -z "$as_dir" && as_dir=.
4877 for ac_prog in egrep; do
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4880 as_fn_executable_p "$ac_path_EGREP" || continue
4881 # Check for GNU ac_path_EGREP and select it if it is found.
4882 # Check for GNU $ac_path_EGREP
4883 case `"$ac_path_EGREP" --version 2>&1` in
4885 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4888 $as_echo_n 0123456789 >"conftest.in"
4891 cat "conftest.in" "conftest.in" >"conftest.tmp"
4892 mv "conftest.tmp" "conftest.in"
4893 cp "conftest.in" "conftest.nl"
4894 $as_echo 'EGREP' >> "conftest.nl"
4895 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4897 as_fn_arith $ac_count + 1 && ac_count=$as_val
4898 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4899 # Best one so far, save it but keep looking for a better one
4900 ac_cv_path_EGREP="$ac_path_EGREP"
4901 ac_path_EGREP_max=$ac_count
4903 # 10*(2^10) chars as input seems more than enough
4904 test $ac_count -gt 10 && break
4906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909 $ac_path_EGREP_found && break 3
4914 if test -z "$ac_cv_path_EGREP"; then
4915 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4918 ac_cv_path_EGREP=$EGREP
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4924 $as_echo "$ac_cv_path_EGREP" >&6; }
4925 EGREP="$ac_cv_path_EGREP"
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4929 $as_echo_n "checking for ANSI C header files... " >&6; }
4930 if ${ac_cv_header_stdc+:} false; then :
4931 $as_echo_n "(cached) " >&6
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4948 if ac_fn_c_try_compile "$LINENO"; then :
4949 ac_cv_header_stdc=yes
4951 ac_cv_header_stdc=no
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 if test $ac_cv_header_stdc = yes; then
4956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4963 $EGREP "memchr" >/dev/null 2>&1; then :
4966 ac_cv_header_stdc=no
4972 if test $ac_cv_header_stdc = yes; then
4973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4980 $EGREP "free" >/dev/null 2>&1; then :
4983 ac_cv_header_stdc=no
4989 if test $ac_cv_header_stdc = yes; then
4990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4991 if test "$cross_compiling" = yes; then :
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4998 #if ((' ' & 0x0FF) == 0x020)
4999 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5000 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5002 # define ISLOWER(c) \
5003 (('a' <= (c) && (c) <= 'i') \
5004 || ('j' <= (c) && (c) <= 'r') \
5005 || ('s' <= (c) && (c) <= 'z'))
5006 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5009 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5014 for (i = 0; i < 256; i++)
5015 if (XOR (islower (i), ISLOWER (i))
5016 || toupper (i) != TOUPPER (i))
5021 if ac_fn_c_try_run "$LINENO"; then :
5024 ac_cv_header_stdc=no
5026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5027 conftest.$ac_objext conftest.beam conftest.$ac_ext
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5033 $as_echo "$ac_cv_header_stdc" >&6; }
5034 if test $ac_cv_header_stdc = yes; then
5036 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5041 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5042 inttypes.h stdint.h unistd.h
5044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5045 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5047 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5048 cat >>confdefs.h <<_ACEOF
5049 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5057 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5058 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5059 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
5064 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5065 if test "x$ac_cv_header_crypt_h" = xyes; then :
5066 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5071 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5072 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5073 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5078 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5079 if test "x$ac_cv_header_malloc_h" = xyes; then :
5080 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5085 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5086 if test "x$ac_cv_header_shadow_h" = xyes; then :
5087 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5092 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5093 if test "x$ac_cv_header_stdint_h" = xyes; then :
5094 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
5099 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5100 if test "x$ac_cv_header_string_h" = xyes; then :
5101 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5106 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5107 if test "x$ac_cv_header_strings_h" = xyes; then :
5108 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5113 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5114 if test "x$ac_cv_header_bstring_h" = xyes; then :
5115 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5120 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5121 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5122 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5127 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5128 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5129 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5134 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5135 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5136 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5142 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5143 if test "x$ac_cv_header_iconv_h" = xyes; then :
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5147 $as_echo_n "checking for library containing iconv_open... " >&6; }
5148 if ${ac_cv_search_iconv_open+:} false; then :
5149 $as_echo_n "(cached) " >&6
5151 ac_func_search_save_LIBS=$LIBS
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5155 /* Override any GCC internal prototype to avoid an error.
5156 Use char because int might match the return type of a GCC
5157 builtin and then its argument prototype would still apply. */
5165 return iconv_open ();
5170 for ac_lib in '' iconv; do
5171 if test -z "$ac_lib"; then
5172 ac_res="none required"
5175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5177 if ac_fn_c_try_link "$LINENO"; then :
5178 ac_cv_search_iconv_open=$ac_res
5180 rm -f core conftest.err conftest.$ac_objext \
5182 if ${ac_cv_search_iconv_open+:} false; then :
5186 if ${ac_cv_search_iconv_open+:} false; then :
5189 ac_cv_search_iconv_open=no
5192 LIBS=$ac_func_search_save_LIBS
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5195 $as_echo "$ac_cv_search_iconv_open" >&6; }
5196 ac_res=$ac_cv_search_iconv_open
5197 if test "$ac_res" != no; then :
5198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5199 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5201 SAVELIBS="$SAVELIBS $LIBS"
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5205 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5206 if ${ac_cv_search_libiconv_open+:} false; then :
5207 $as_echo_n "(cached) " >&6
5209 ac_func_search_save_LIBS=$LIBS
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5213 /* Override any GCC internal prototype to avoid an error.
5214 Use char because int might match the return type of a GCC
5215 builtin and then its argument prototype would still apply. */
5219 char libiconv_open ();
5223 return libiconv_open ();
5228 for ac_lib in '' iconv; do
5229 if test -z "$ac_lib"; then
5230 ac_res="none required"
5233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5235 if ac_fn_c_try_link "$LINENO"; then :
5236 ac_cv_search_libiconv_open=$ac_res
5238 rm -f core conftest.err conftest.$ac_objext \
5240 if ${ac_cv_search_libiconv_open+:} false; then :
5244 if ${ac_cv_search_libiconv_open+:} false; then :
5247 ac_cv_search_libiconv_open=no
5250 LIBS=$ac_func_search_save_LIBS
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5253 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5254 ac_res=$ac_cv_search_libiconv_open
5255 if test "$ac_res" != no; then :
5256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5257 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5259 SAVELIBS="$SAVELIBS $LIBS"
5268 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5269 if test "x$ac_cv_header_mxml_h" = xyes; then :
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5272 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5273 if ${ac_cv_search_mmxlNewElement+:} false; then :
5274 $as_echo_n "(cached) " >&6
5276 ac_func_search_save_LIBS=$LIBS
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5280 /* Override any GCC internal prototype to avoid an error.
5281 Use char because int might match the return type of a GCC
5282 builtin and then its argument prototype would still apply. */
5286 char mmxlNewElement ();
5290 return mmxlNewElement ();
5295 for ac_lib in '' mxml; do
5296 if test -z "$ac_lib"; then
5297 ac_res="none required"
5300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5302 if ac_fn_c_try_link "$LINENO"; then :
5303 ac_cv_search_mmxlNewElement=$ac_res
5305 rm -f core conftest.err conftest.$ac_objext \
5307 if ${ac_cv_search_mmxlNewElement+:} false; then :
5311 if ${ac_cv_search_mmxlNewElement+:} false; then :
5314 ac_cv_search_mmxlNewElement=no
5317 LIBS=$ac_func_search_save_LIBS
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5320 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5321 ac_res=$ac_cv_search_mmxlNewElement
5322 if test "$ac_res" != no; then :
5323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5324 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5335 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5336 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5337 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5342 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5343 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5344 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5349 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5350 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5351 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5356 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5357 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5358 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5363 for ac_func in statfs statvfs
5365 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5366 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5367 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5368 cat >>confdefs.h <<_ACEOF
5369 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5376 for ac_func in strdup strlcat strlcpy
5378 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5379 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5380 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5381 cat >>confdefs.h <<_ACEOF
5382 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5388 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5389 echo Forcing snprintf emulation for HP-UX.
5391 for ac_func in snprintf vsnprintf
5393 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5394 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5395 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5396 cat >>confdefs.h <<_ACEOF
5397 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5405 for ac_func in random lrand48 arc4random
5407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5408 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5409 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5410 cat >>confdefs.h <<_ACEOF
5411 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5418 for ac_func in geteuid
5420 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5421 if test "x$ac_cv_func_geteuid" = xyes; then :
5422 cat >>confdefs.h <<_ACEOF
5423 #define HAVE_GETEUID 1
5430 for ac_func in setpgid
5432 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5433 if test "x$ac_cv_func_setpgid" = xyes; then :
5434 cat >>confdefs.h <<_ACEOF
5435 #define HAVE_SETPGID 1
5442 for ac_func in vsyslog
5444 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5445 if test "x$ac_cv_func_vsyslog" = xyes; then :
5446 cat >>confdefs.h <<_ACEOF
5447 #define HAVE_VSYSLOG 1
5454 case "$host_os_name" in
5456 # Do not use sigset on Linux or GNU HURD
5459 # Use sigset on other platforms, if available
5460 for ac_func in sigset
5462 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5463 if test "x$ac_cv_func_sigset" = xyes; then :
5464 cat >>confdefs.h <<_ACEOF
5465 #define HAVE_SIGSET 1
5474 for ac_func in sigaction
5476 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5477 if test "x$ac_cv_func_sigaction" = xyes; then :
5478 cat >>confdefs.h <<_ACEOF
5479 #define HAVE_SIGACTION 1
5486 for ac_func in waitpid wait3
5488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5490 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5491 cat >>confdefs.h <<_ACEOF
5492 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5499 for ac_func in posix_spawn
5501 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5502 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5503 cat >>confdefs.h <<_ACEOF
5504 #define HAVE_POSIX_SPAWN 1
5511 for ac_func in getgrouplist
5513 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5514 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5515 cat >>confdefs.h <<_ACEOF
5516 #define HAVE_GETGROUPLIST 1
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5524 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5532 int o = t.tm_gmtoff;
5537 if ac_fn_c_try_compile "$LINENO"; then :
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5540 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5549 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #include <sys/stat.h>
5562 if ac_fn_c_try_compile "$LINENO"; then :
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5564 $as_echo "yes" >&6; }
5565 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 for ac_func in removefile
5575 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5576 if test "x$ac_cv_func_removefile" = xyes; then :
5577 cat >>confdefs.h <<_ACEOF
5578 #define HAVE_REMOVEFILE 1
5585 # Check whether --enable-libusb was given.
5586 if test "${enable_libusb+set}" = set; then :
5587 enableval=$enable_libusb;
5596 if test "x$PKGCONFIG" != x; then
5597 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5599 $as_echo_n "checking for libusb-1.0... " >&6; }
5600 if $PKGCONFIG --exists libusb-1.0; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5602 $as_echo "yes" >&6; }
5603 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5605 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5606 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5607 USBQUIRKS="\$(DATADIR)/usb"
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 if test x$enable_libusb = xyes; then
5612 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5616 elif test x$enable_libusb = xyes; then
5617 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5620 # Check whether --enable-tcp_wrappers was given.
5621 if test "${enable_tcp_wrappers+set}" = set; then :
5622 enableval=$enable_tcp_wrappers;
5629 if test x$enable_tcp_wrappers = xyes; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5631 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5632 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5633 $as_echo_n "(cached) " >&6
5635 ac_check_lib_save_LIBS=$LIBS
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5640 /* Override any GCC internal prototype to avoid an error.
5641 Use char because int might match the return type of a GCC
5642 builtin and then its argument prototype would still apply. */
5646 char hosts_access ();
5650 return hosts_access ();
5655 if ac_fn_c_try_link "$LINENO"; then :
5656 ac_cv_lib_wrap_hosts_access=yes
5658 ac_cv_lib_wrap_hosts_access=no
5660 rm -f core conftest.err conftest.$ac_objext \
5661 conftest$ac_exeext conftest.$ac_ext
5662 LIBS=$ac_check_lib_save_LIBS
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5665 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5666 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5668 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5669 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5670 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5682 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5683 if test "x$ac_cv_header_zlib_h" = xyes; then :
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5685 $as_echo_n "checking for gzgets in -lz... " >&6; }
5686 if ${ac_cv_lib_z_gzgets+:} false; then :
5687 $as_echo_n "(cached) " >&6
5689 ac_check_lib_save_LIBS=$LIBS
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5694 /* Override any GCC internal prototype to avoid an error.
5695 Use char because int might match the return type of a GCC
5696 builtin and then its argument prototype would still apply. */
5709 if ac_fn_c_try_link "$LINENO"; then :
5710 ac_cv_lib_z_gzgets=yes
5712 ac_cv_lib_z_gzgets=no
5714 rm -f core conftest.err conftest.$ac_objext \
5715 conftest$ac_exeext conftest.$ac_ext
5716 LIBS=$ac_check_lib_save_LIBS
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5719 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5720 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5721 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5726 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5727 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5728 $as_echo_n "(cached) " >&6
5730 ac_check_lib_save_LIBS=$LIBS
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5735 /* Override any GCC internal prototype to avoid an error.
5736 Use char because int might match the return type of a GCC
5737 builtin and then its argument prototype would still apply. */
5741 char inflateCopy ();
5745 return inflateCopy ();
5750 if ac_fn_c_try_link "$LINENO"; then :
5751 ac_cv_lib_z_inflateCopy=yes
5753 ac_cv_lib_z_inflateCopy=no
5755 rm -f core conftest.err conftest.$ac_objext \
5756 conftest$ac_exeext conftest.$ac_ext
5757 LIBS=$ac_check_lib_save_LIBS
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5760 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5761 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5762 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5766 if test "x$GZIP" != z; then
5777 case $host_os_name in
5795 # Check whether --enable-acl was given.
5796 if test "${enable_acl+set}" = set; then :
5797 enableval=$enable_acl;
5800 if test "x$enable_acl" != xno; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5802 $as_echo_n "checking for library containing acl_init... " >&6; }
5803 if ${ac_cv_search_acl_init+:} false; then :
5804 $as_echo_n "(cached) " >&6
5806 ac_func_search_save_LIBS=$LIBS
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5810 /* Override any GCC internal prototype to avoid an error.
5811 Use char because int might match the return type of a GCC
5812 builtin and then its argument prototype would still apply. */
5825 for ac_lib in '' acl; do
5826 if test -z "$ac_lib"; then
5827 ac_res="none required"
5830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5832 if ac_fn_c_try_link "$LINENO"; then :
5833 ac_cv_search_acl_init=$ac_res
5835 rm -f core conftest.err conftest.$ac_objext \
5837 if ${ac_cv_search_acl_init+:} false; then :
5841 if ${ac_cv_search_acl_init+:} false; then :
5844 ac_cv_search_acl_init=no
5847 LIBS=$ac_func_search_save_LIBS
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5850 $as_echo "$ac_cv_search_acl_init" >&6; }
5851 ac_res=$ac_cv_search_acl_init
5852 if test "$ac_res" != no; then :
5853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5854 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5858 SERVERLIBS="$SERVERLIBS $LIBS"
5862 # Check whether --enable-dbus was given.
5863 if test "${enable_dbus+set}" = set; then :
5864 enableval=$enable_dbus;
5868 # Check whether --with-dbusdir was given.
5869 if test "${with_dbusdir+set}" = set; then :
5870 withval=$with_dbusdir; DBUSDIR="$withval"
5876 DBUS_NOTIFIERLIBS=""
5878 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5880 $as_echo_n "checking for DBUS... " >&6; }
5881 if $PKGCONFIG --exists dbus-1; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5883 $as_echo "yes" >&6; }
5884 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5886 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5887 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5888 DBUS_NOTIFIER="dbus"
5889 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5891 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5892 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5893 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5894 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5898 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5899 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5900 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5905 if test -d /etc/dbus-1; then
5906 DBUSDIR="/etc/dbus-1"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5918 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5919 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5920 CUPS_SYSTEM_AUTHKEY=""
5923 case $host_os_name in
5925 BACKLIBS="$BACKLIBS -framework IOKit"
5926 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5927 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5929 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5930 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5931 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5936 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5937 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5938 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5943 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5944 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5945 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5950 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5951 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5952 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5958 for ac_func in SCDynamicStoreCopyComputerName
5960 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5961 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5962 cat >>confdefs.h <<_ACEOF
5963 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5970 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5971 if test "x$ac_cv_header_membership_h" = xyes; then :
5972 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5977 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5978 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5979 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5984 for ac_func in mbr_uid_to_uuid
5986 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5987 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5988 cat >>confdefs.h <<_ACEOF
5989 #define HAVE_MBR_UID_TO_UUID 1
5996 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5997 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5998 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
6004 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
6005 if test "x$ac_cv_header_notify_h" = xyes; then :
6006 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
6011 for ac_func in notify_post
6013 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
6014 if test "x$ac_cv_func_notify_post" = xyes; then :
6015 cat >>confdefs.h <<_ACEOF
6016 #define HAVE_NOTIFY_POST 1
6024 # Check whether --with-adminkey was given.
6025 if test "${with_adminkey+set}" = set; then :
6026 withval=$with_adminkey; default_adminkey="$withval"
6028 default_adminkey="default"
6032 # Check whether --with-operkey was given.
6033 if test "${with_operkey+set}" = set; then :
6034 withval=$with_operkey; default_operkey="$withval"
6036 default_operkey="default"
6040 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
6041 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
6043 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
6046 if test "x$default_adminkey" != xdefault; then
6047 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
6048 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
6050 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
6051 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
6054 if test "x$default_operkey" != xdefault; then
6055 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
6057 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
6062 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
6063 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
6064 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
6070 if test $host_os_version -ge 100; then
6071 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6072 if test "x$ac_cv_header_sandbox_h" = xyes; then :
6073 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
6079 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
6080 # Broken public headers in 10.7.x...
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
6082 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
6083 if test -f /usr/local/include/sandbox/private.h; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6085 $as_echo "yes" >&6; }
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6089 as_fn_error $? "Run 'sudo mkdir -p /usr/local/include/sandbox' and 'sudo touch /usr/local/include/sandbox/private.h' to build CUPS." "$LINENO" 5
6093 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
6094 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
6095 $as_echo "#define HAVE_XPC 1" >>confdefs.h
6097 INSTALLXPC="install-xpc"
6101 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
6102 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
6103 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
6112 cat >>confdefs.h <<_ACEOF
6113 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6116 cat >>confdefs.h <<_ACEOF
6117 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6126 # Check whether --with-components was given.
6127 if test "${with_components+set}" = set; then :
6128 withval=$with_components; COMPONENTS="$withval"
6132 case "$COMPONENTS" in
6134 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6138 BUILDDIRS="data locale"
6142 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6151 if test "$prefix" = "NONE"; then
6155 if test "$exec_prefix" = "NONE"; then
6156 if test "$prefix" = "/"; then
6159 exec_prefix="$prefix"
6163 if test "$bindir" = "\${exec_prefix}/bin"; then
6164 bindir="$exec_prefix/bin"
6167 cat >>confdefs.h <<_ACEOF
6168 #define CUPS_BINDIR "$bindir"
6172 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6173 sbindir="$exec_prefix/sbin"
6176 cat >>confdefs.h <<_ACEOF
6177 #define CUPS_SBINDIR "$sbindir"
6181 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6182 sharedstatedir="/usr/com"
6185 if test "$datarootdir" = "\${prefix}/share"; then
6186 if test "$prefix" = "/"; then
6187 datarootdir="/usr/share"
6189 datarootdir="$prefix/share"
6193 if test "$datadir" = "\${prefix}/share"; then
6194 if test "$prefix" = "/"; then
6195 datadir="/usr/share"
6197 datadir="$prefix/share"
6199 elif test "$datadir" = "\${datarootdir}"; then
6200 datadir="$datarootdir"
6203 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6204 includedir="/usr/include"
6207 if test "$localstatedir" = "\${prefix}/var"; then
6208 if test "$prefix" = "/"; then
6209 if test "$host_os_name" = darwin; then
6210 localstatedir="/private/var"
6212 localstatedir="/var"
6215 localstatedir="$prefix/var"
6219 if test "$sysconfdir" = "\${prefix}/etc"; then
6220 if test "$prefix" = "/"; then
6221 if test "$host_os_name" = darwin; then
6222 sysconfdir="/private/etc"
6227 sysconfdir="$prefix/etc"
6231 if test "$libdir" = "\${exec_prefix}/lib"; then
6232 case "$host_os_name" in
6234 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6235 libdir="$exec_prefix/lib64"
6242 # Check whether --with-privateinclude was given.
6243 if test "${with_privateinclude+set}" = set; then :
6244 withval=$with_privateinclude; privateinclude="$withval"
6249 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6250 PRIVATEINCLUDE="$privateinclude/cups"
6259 # Check whether --with-lpdconfig was given.
6260 if test "${with_lpdconfig+set}" = set; then :
6261 withval=$with_lpdconfig; LPDCONFIG="$withval"
6267 if test "x$LPDCONFIG" = x; then
6268 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6269 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6270 elif test "x$XINETD" != x; then
6271 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6275 if test "x$LPDCONFIG" = xoff; then
6276 cat >>confdefs.h <<_ACEOF
6277 #define CUPS_DEFAULT_LPD_CONFIG ""
6281 cat >>confdefs.h <<_ACEOF
6282 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6288 # Check whether --with-smbconfig was given.
6289 if test "${with_smbconfig+set}" = set; then :
6290 withval=$with_smbconfig; SMBCONFIG="$withval"
6296 if test "x$SMBCONFIG" = x; then
6297 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6298 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6300 for dir in /etc /etc/samba /usr/local/etc; do
6301 if test -f $dir/smb.conf; then
6302 SMBCONFIG="samba://$dir/smb.conf"
6309 if test "x$SMBCONFIG" = xoff; then
6310 cat >>confdefs.h <<_ACEOF
6311 #define CUPS_DEFAULT_SMB_CONFIG ""
6315 cat >>confdefs.h <<_ACEOF
6316 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6323 # Check whether --with-cachedir was given.
6324 if test "${with_cachedir+set}" = set; then :
6325 withval=$with_cachedir; cachedir="$withval"
6331 if test x$cachedir = x; then
6332 if test "x$host_os_name" = xdarwin; then
6333 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6335 CUPS_CACHEDIR="$localstatedir/cache/cups"
6338 CUPS_CACHEDIR="$cachedir"
6340 cat >>confdefs.h <<_ACEOF
6341 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6347 CUPS_DATADIR="$datadir/cups"
6348 cat >>confdefs.h <<_ACEOF
6349 #define CUPS_DATADIR "$datadir/cups"
6356 # Check whether --with-icondir was given.
6357 if test "${with_icondir+set}" = set; then :
6358 withval=$with_icondir; icondir="$withval"
6364 if test "x$icondir" = x -a -d /usr/share/icons; then
6365 ICONDIR="/usr/share/icons"
6374 # Check whether --with-menudir was given.
6375 if test "${with_menudir+set}" = set; then :
6376 withval=$with_menudir; menudir="$withval"
6382 if test "x$menudir" = x -a -d /usr/share/applications; then
6383 MENUDIR="/usr/share/applications"
6390 # Documentation files
6392 # Check whether --with-docdir was given.
6393 if test "${with_docdir+set}" = set; then :
6394 withval=$with_docdir; docdir="$withval"
6400 if test x$docdir = x; then
6401 CUPS_DOCROOT="$datadir/doc/cups"
6402 docdir="$datadir/doc/cups"
6404 CUPS_DOCROOT="$docdir"
6407 cat >>confdefs.h <<_ACEOF
6408 #define CUPS_DOCROOT "$docdir"
6415 # Check whether --with-fontpath was given.
6416 if test "${with_fontpath+set}" = set; then :
6417 withval=$with_fontpath; fontpath="$withval"
6423 if test "x$fontpath" = "x"; then
6424 CUPS_FONTPATH="$datadir/cups/fonts"
6426 CUPS_FONTPATH="$fontpath"
6430 cat >>confdefs.h <<_ACEOF
6431 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6436 if test "$localedir" = "\${datarootdir}/locale"; then
6437 case "$host_os_name" in
6438 linux* | gnu* | *bsd* | darwin*)
6439 CUPS_LOCALEDIR="$datarootdir/locale"
6443 # This is the standard System V location...
6444 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6448 CUPS_LOCALEDIR="$localedir"
6451 cat >>confdefs.h <<_ACEOF
6452 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6459 # Check whether --with-logdir was given.
6460 if test "${with_logdir+set}" = set; then :
6461 withval=$with_logdir; logdir="$withval"
6467 if test x$logdir = x; then
6468 CUPS_LOGDIR="$localstatedir/log/cups"
6469 cat >>confdefs.h <<_ACEOF
6470 #define CUPS_LOGDIR "$localstatedir/log/cups"
6474 CUPS_LOGDIR="$logdir"
6476 cat >>confdefs.h <<_ACEOF
6477 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6482 # Longer-term spool data
6483 CUPS_REQUESTS="$localstatedir/spool/cups"
6484 cat >>confdefs.h <<_ACEOF
6485 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6490 # Server executables...
6491 case "$host_os_name" in
6493 # *BSD and Darwin (macOS)
6495 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6499 INSTALL_SYSV="install-sysv"
6500 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6504 cat >>confdefs.h <<_ACEOF
6505 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6511 # Configuration files
6512 CUPS_SERVERROOT="$sysconfdir/cups"
6513 cat >>confdefs.h <<_ACEOF
6514 #define CUPS_SERVERROOT "$sysconfdir/cups"
6519 # Transient run-time state
6521 # Check whether --with-rundir was given.
6522 if test "${with_rundir+set}" = set; then :
6523 withval=$with_rundir; CUPS_STATEDIR="$withval"
6526 case "$host_os_name" in
6529 CUPS_STATEDIR="$CUPS_SERVERROOT"
6533 CUPS_STATEDIR="$localstatedir/run/cups"
6538 cat >>confdefs.h <<_ACEOF
6539 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6545 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6546 # New GNU "standards" break previous ones, so make sure we use
6547 # the right default location for the operating system...
6548 mandir="\${prefix}/man"
6551 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6552 case "$host_os_name" in
6553 darwin* | linux* | gnu* | *bsd*)
6554 # Darwin, macOS, Linux, GNU HURD, and *BSD
6555 mandir="/usr/share/man"
6556 AMANDIR="/usr/share/man"
6557 PMANDIR="/usr/share/man"
6574 case "$host_os_name" in
6583 linux* | gnu* | darwin*)
6584 # Linux, GNU Hurd, and macOS
6610 DSOFLAGS="${DSOFLAGS:=}"
6612 # Check whether --enable-shared was given.
6613 if test "${enable_shared+set}" = set; then :
6614 enableval=$enable_shared;
6619 LIBCUPSBASE="lib$cupsbase"
6620 LIBCUPSSTATIC="lib$cupsbase.a"
6622 if test x$enable_shared != xno; then
6623 case "$host_os_name" in
6625 LIBCUPS="lib$cupsbase.so.2"
6626 LIBCUPSIMAGE="libcupsimage.so.2"
6629 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G \$(OPTIM)"
6631 linux* | gnu* | *bsd*)
6632 LIBCUPS="lib$cupsbase.so.2"
6633 LIBCUPSIMAGE="libcupsimage.so.2"
6636 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6639 LIBCUPS="lib$cupsbase.2.dylib"
6640 LIBCUPSIMAGE="libcupsimage.2.dylib"
6643 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6646 echo "Warning: shared libraries may not be supported. Trying -shared"
6647 echo " option with compiler."
6648 LIBCUPS="lib$cupsbase.so.2"
6649 LIBCUPSIMAGE="libcupsimage.so.2"
6652 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6657 LIBCUPS="lib$cupsbase.a"
6658 LIBCUPSIMAGE="libcupsimage.a"
6671 if test x$enable_shared = xno; then
6672 LINKCUPS="../cups/lib$cupsbase.a"
6673 LINKCUPSIMAGE="../filter/libcupsimage.a"
6675 EXTLINKCUPS="-lcups"
6676 EXTLINKCUPSIMAGE="-lcupsimage"
6678 LINKCUPS="-l${cupsbase}"
6679 LINKCUPSIMAGE="-lcupsimage"
6681 EXTLINKCUPS="-lcups"
6682 EXTLINKCUPSIMAGE="-lcupsimage"
6692 if test "$DSO" != ":"; then
6693 # When using DSOs the image libraries are linked to libcupsimage.so
6694 # rather than to the executables. This makes things smaller if you
6695 # are using any static libraries, and it also allows us to distribute
6696 # a single DSO rather than a bunch...
6700 # Tell the run-time linkers where to find a DSO. Some platforms
6701 # need this option, even when the library is installed in a
6702 # standard location...
6703 case $host_os_name in
6706 if test $exec_prefix != /usr; then
6707 DSOFLAGS="-R$libdir $DSOFLAGS"
6708 LDFLAGS="$LDFLAGS -R$libdir"
6709 EXPORT_LDFLAGS="-R$libdir"
6714 if test $exec_prefix != /usr; then
6715 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6716 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6717 EXPORT_LDFLAGS="-Wl,-R$libdir"
6721 # Linux, and HURD...
6722 if test $exec_prefix != /usr; then
6723 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6724 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6725 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6739 # Check whether --enable-libtool_unsupported was given.
6740 if test "${enable_libtool_unsupported+set}" = set; then :
6741 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6742 if test x$enable_libtool_unsupported == xyes; then
6743 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6745 LIBTOOL="$enable_libtool_unsupported"
6747 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6748 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6755 if test x$LIBTOOL != x; then
6756 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6757 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6759 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6760 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6762 LIBCUPS="libcups.la"
6763 LIBCUPSSTATIC="libcups.la"
6764 LIBCUPSCGI="libcupscgi.la"
6765 LIBCUPSIMAGE="libcupsimage.la"
6766 LIBCUPSMIME="libcupsmime.la"
6767 LIBCUPSPPDC="libcupsppdc.la"
6769 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
6770 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
6771 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
6773 LINKCUPS="../cups/\$(LIBCUPS)"
6774 LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
6800 # Check whether --with-optim was given.
6801 if test "${with_optim+set}" = set; then :
6802 withval=$with_optim;
6805 # Check whether --enable-debug was given.
6806 if test "${enable_debug+set}" = set; then :
6807 enableval=$enable_debug;
6810 # Check whether --enable-debug_guards was given.
6811 if test "${enable_debug_guards+set}" = set; then :
6812 enableval=$enable_debug_guards;
6815 # Check whether --enable-debug_printfs was given.
6816 if test "${enable_debug_printfs+set}" = set; then :
6817 enableval=$enable_debug_printfs;
6820 # Check whether --enable-unit_tests was given.
6821 if test "${enable_unit_tests+set}" = set; then :
6822 enableval=$enable_unit_tests;
6826 if test x$enable_debug = xyes; then
6832 if test x$enable_debug_printfs = xyes; then
6833 CFLAGS="$CFLAGS -DDEBUG"
6834 CXXFLAGS="$CXXFLAGS -DDEBUG"
6837 if test x$enable_debug_guards = xyes; then
6838 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6839 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6842 if test x$enable_unit_tests = xyes; then
6843 if test "$build" != "$host"; then
6844 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6847 UNITTESTS="unittests"
6854 # Check whether --with-archflags was given.
6855 if test "${with_archflags+set}" = set; then :
6856 withval=$with_archflags;
6860 # Check whether --with-ldarchflags was given.
6861 if test "${with_ldarchflags+set}" = set; then :
6862 withval=$with_ldarchflags;
6866 if test -z "$with_archflags"; then
6869 ARCHFLAGS="$with_archflags"
6872 if test -z "$with_ldarchflags"; then
6873 if test "$host_os_name" = darwin; then
6874 # Only create Intel programs by default
6875 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6877 LDARCHFLAGS="$ARCHFLAGS"
6880 LDARCHFLAGS="$with_ldarchflags"
6886 # Check whether --enable-relro was given.
6887 if test "${enable_relro+set}" = set; then :
6888 enableval=$enable_relro;
6892 CXXLIBS="${CXXLIBS:=}"
6901 if test -n "$GCC"; then
6902 # Add GCC-specific compiler options...
6903 if test -z "$OPTIM"; then
6904 if test "x$with_optim" = x; then
6905 # Default to optimize-for-size and debug
6908 OPTIM="$with_optim $OPTIM"
6912 # Generate position-independent code as needed...
6913 if test $PICFLAG = 1; then
6914 OPTIM="-fPIC $OPTIM"
6917 # The -fstack-protector option is available with some versions of
6918 # GCC and adds "stack canaries" which detect when the return address
6919 # has been overwritten, preventing many types of exploit attacks.
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6921 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6923 CFLAGS="$CFLAGS -fstack-protector"
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6935 if ac_fn_c_try_link "$LINENO"; then :
6936 if test "x$LSB_BUILD" = xy; then
6937 # Can't use stack-protector with LSB binaries...
6938 OPTIM="$OPTIM -fno-stack-protector"
6940 OPTIM="$OPTIM -fstack-protector"
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6943 $as_echo "yes" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6948 rm -f core conftest.err conftest.$ac_objext \
6949 conftest$ac_exeext conftest.$ac_ext
6952 if test "x$LSB_BUILD" != xy; then
6953 # The -fPIE option is available with some versions of GCC and
6954 # adds randomization of addresses, which avoids another class of
6955 # exploits that depend on a fixed address for common functions.
6957 # Not available to LSB binaries...
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6959 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6961 case "$host_os_name" in
6963 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6975 if ac_fn_c_try_compile "$LINENO"; then :
6977 PIEFLAGS="-fPIE -Wl,-pie"
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6979 $as_echo "yes" >&6; }
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 CFLAGS="$CFLAGS -fPIE -pie"
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
7000 if ac_fn_c_try_compile "$LINENO"; then :
7002 PIEFLAGS="-fPIE -pie"
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7004 $as_echo "yes" >&6; }
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 if test "x$with_optim" = x; then
7016 # Add useful warning options for tracking down problems...
7017 OPTIM="-Wall -Wno-format-y2k -Wunused -Wno-unused-result -Wsign-conversion $OPTIM"
7019 # Test GCC version for certain warning flags since -Werror
7020 # doesn't trigger...
7021 gccversion=`$CC --version |
head -1 |
awk '{print $NF}'`
7022 case "$gccversion" in
7024 OPTIM="$OPTIM -Wno-format-truncation -Wno-tautological-compare"
7028 # Additional warning options for development testing...
7029 if test -d .git; then
7030 OPTIM="-Werror $OPTIM"
7034 case "$host_os_name" in
7036 # -D_FORTIFY_SOURCE=2 adds additional object size
7037 # checking, basically wrapping all string functions
7038 # with buffer-limited ones. Not strictly needed for
7039 # CUPS since we already use buffer-limited calls, but
7040 # this will catch any additions that are broken.
7041 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7045 # The -z relro option is provided by the Linux linker command to
7046 # make relocatable data read-only.
7047 if test x$enable_relro = xyes; then
7048 RELROFLAGS="-Wl,-z,relro,-z,now"
7053 # Add vendor-specific compiler options...
7054 case $host_os_name in
7057 if test -z "$OPTIM"; then
7058 if test "x$with_optim" = x; then
7061 OPTIM="$with_optim $OPTIM"
7065 if test $PICFLAG = 1; then
7066 OPTIM="-KPIC $OPTIM"
7070 # Running some other operating system; inform the user they
7071 # should contribute the necessary options to
7072 # cups-support@cups.org...
7073 echo "Building CUPS with default compiler optimizations; contact"
7074 echo "cups-devel@cups.org with uname and compiler options needed"
7075 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7076 echo "variables before running configure."
7081 # Add general compiler options per platform...
7082 case $host_os_name in
7084 # glibc 2.8 and higher breaks peer credentials unless you
7085 # define _GNU_SOURCE...
7086 OPTIM="$OPTIM -D_GNU_SOURCE"
7092 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
7093 #include <sys/socket.h>
7094 #include <netinet/in.h>
7095 #include <arpa/inet.h>
7096 #include <netinet/in_systm.h>
7097 #include <netinet/ip.h>
7099 if test "x$ac_cv_header_resolv_h" = xyes; then :
7100 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7106 $as_echo_n "checking for library containing socket... " >&6; }
7107 if ${ac_cv_search_socket+:} false; then :
7108 $as_echo_n "(cached) " >&6
7110 ac_func_search_save_LIBS=$LIBS
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7114 /* Override any GCC internal prototype to avoid an error.
7115 Use char because int might match the return type of a GCC
7116 builtin and then its argument prototype would still apply. */
7129 for ac_lib in '' socket; do
7130 if test -z "$ac_lib"; then
7131 ac_res="none required"
7134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7136 if ac_fn_c_try_link "$LINENO"; then :
7137 ac_cv_search_socket=$ac_res
7139 rm -f core conftest.err conftest.$ac_objext \
7141 if ${ac_cv_search_socket+:} false; then :
7145 if ${ac_cv_search_socket+:} false; then :
7148 ac_cv_search_socket=no
7151 LIBS=$ac_func_search_save_LIBS
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7154 $as_echo "$ac_cv_search_socket" >&6; }
7155 ac_res=$ac_cv_search_socket
7156 if test "$ac_res" != no; then :
7157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7162 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7163 if ${ac_cv_search_gethostbyaddr+:} false; then :
7164 $as_echo_n "(cached) " >&6
7166 ac_func_search_save_LIBS=$LIBS
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7170 /* Override any GCC internal prototype to avoid an error.
7171 Use char because int might match the return type of a GCC
7172 builtin and then its argument prototype would still apply. */
7176 char gethostbyaddr ();
7180 return gethostbyaddr ();
7185 for ac_lib in '' nsl; do
7186 if test -z "$ac_lib"; then
7187 ac_res="none required"
7190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7192 if ac_fn_c_try_link "$LINENO"; then :
7193 ac_cv_search_gethostbyaddr=$ac_res
7195 rm -f core conftest.err conftest.$ac_objext \
7197 if ${ac_cv_search_gethostbyaddr+:} false; then :
7201 if ${ac_cv_search_gethostbyaddr+:} false; then :
7204 ac_cv_search_gethostbyaddr=no
7207 LIBS=$ac_func_search_save_LIBS
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7210 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7211 ac_res=$ac_cv_search_gethostbyaddr
7212 if test "$ac_res" != no; then :
7213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7218 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7219 if ${ac_cv_search_getifaddrs+:} false; then :
7220 $as_echo_n "(cached) " >&6
7222 ac_func_search_save_LIBS=$LIBS
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7226 /* Override any GCC internal prototype to avoid an error.
7227 Use char because int might match the return type of a GCC
7228 builtin and then its argument prototype would still apply. */
7236 return getifaddrs ();
7241 for ac_lib in '' nsl; do
7242 if test -z "$ac_lib"; then
7243 ac_res="none required"
7246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7248 if ac_fn_c_try_link "$LINENO"; then :
7249 ac_cv_search_getifaddrs=$ac_res
7251 rm -f core conftest.err conftest.$ac_objext \
7253 if ${ac_cv_search_getifaddrs+:} false; then :
7257 if ${ac_cv_search_getifaddrs+:} false; then :
7260 ac_cv_search_getifaddrs=no
7263 LIBS=$ac_func_search_save_LIBS
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7266 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7267 ac_res=$ac_cv_search_getifaddrs
7268 if test "$ac_res" != no; then :
7269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7270 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7275 $as_echo_n "checking for library containing hstrerror... " >&6; }
7276 if ${ac_cv_search_hstrerror+:} false; then :
7277 $as_echo_n "(cached) " >&6
7279 ac_func_search_save_LIBS=$LIBS
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7283 /* Override any GCC internal prototype to avoid an error.
7284 Use char because int might match the return type of a GCC
7285 builtin and then its argument prototype would still apply. */
7293 return hstrerror ();
7298 for ac_lib in '' nsl socket resolv; do
7299 if test -z "$ac_lib"; then
7300 ac_res="none required"
7303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7305 if ac_fn_c_try_link "$LINENO"; then :
7306 ac_cv_search_hstrerror=$ac_res
7308 rm -f core conftest.err conftest.$ac_objext \
7310 if ${ac_cv_search_hstrerror+:} false; then :
7314 if ${ac_cv_search_hstrerror+:} false; then :
7317 ac_cv_search_hstrerror=no
7320 LIBS=$ac_func_search_save_LIBS
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7323 $as_echo "$ac_cv_search_hstrerror" >&6; }
7324 ac_res=$ac_cv_search_hstrerror
7325 if test "$ac_res" != no; then :
7326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7327 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7332 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7333 if ${ac_cv_search_rresvport_af+:} false; then :
7334 $as_echo_n "(cached) " >&6
7336 ac_func_search_save_LIBS=$LIBS
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7340 /* Override any GCC internal prototype to avoid an error.
7341 Use char because int might match the return type of a GCC
7342 builtin and then its argument prototype would still apply. */
7346 char rresvport_af ();
7350 return rresvport_af ();
7355 for ac_lib in '' nsl; do
7356 if test -z "$ac_lib"; then
7357 ac_res="none required"
7360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7362 if ac_fn_c_try_link "$LINENO"; then :
7363 ac_cv_search_rresvport_af=$ac_res
7365 rm -f core conftest.err conftest.$ac_objext \
7367 if ${ac_cv_search_rresvport_af+:} false; then :
7371 if ${ac_cv_search_rresvport_af+:} false; then :
7374 ac_cv_search_rresvport_af=no
7377 LIBS=$ac_func_search_save_LIBS
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7380 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7381 ac_res=$ac_cv_search_rresvport_af
7382 if test "$ac_res" != no; then :
7383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7384 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7389 $as_echo_n "checking for library containing __res_init... " >&6; }
7390 if ${ac_cv_search___res_init+:} false; then :
7391 $as_echo_n "(cached) " >&6
7393 ac_func_search_save_LIBS=$LIBS
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7397 /* Override any GCC internal prototype to avoid an error.
7398 Use char because int might match the return type of a GCC
7399 builtin and then its argument prototype would still apply. */
7407 return __res_init ();
7412 for ac_lib in '' resolv bind; do
7413 if test -z "$ac_lib"; then
7414 ac_res="none required"
7417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7419 if ac_fn_c_try_link "$LINENO"; then :
7420 ac_cv_search___res_init=$ac_res
7422 rm -f core conftest.err conftest.$ac_objext \
7424 if ${ac_cv_search___res_init+:} false; then :
7428 if ${ac_cv_search___res_init+:} false; then :
7431 ac_cv_search___res_init=no
7434 LIBS=$ac_func_search_save_LIBS
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7437 $as_echo "$ac_cv_search___res_init" >&6; }
7438 ac_res=$ac_cv_search___res_init
7439 if test "$ac_res" != no; then :
7440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7441 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7445 $as_echo_n "checking for library containing res_9_init... " >&6; }
7446 if ${ac_cv_search_res_9_init+:} false; then :
7447 $as_echo_n "(cached) " >&6
7449 ac_func_search_save_LIBS=$LIBS
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7453 /* Override any GCC internal prototype to avoid an error.
7454 Use char because int might match the return type of a GCC
7455 builtin and then its argument prototype would still apply. */
7463 return res_9_init ();
7468 for ac_lib in '' resolv bind; do
7469 if test -z "$ac_lib"; then
7470 ac_res="none required"
7473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7475 if ac_fn_c_try_link "$LINENO"; then :
7476 ac_cv_search_res_9_init=$ac_res
7478 rm -f core conftest.err conftest.$ac_objext \
7480 if ${ac_cv_search_res_9_init+:} false; then :
7484 if ${ac_cv_search_res_9_init+:} false; then :
7487 ac_cv_search_res_9_init=no
7490 LIBS=$ac_func_search_save_LIBS
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7493 $as_echo "$ac_cv_search_res_9_init" >&6; }
7494 ac_res=$ac_cv_search_res_9_init
7495 if test "$ac_res" != no; then :
7496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7497 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7501 $as_echo_n "checking for library containing res_init... " >&6; }
7502 if ${ac_cv_search_res_init+:} false; then :
7503 $as_echo_n "(cached) " >&6
7505 ac_func_search_save_LIBS=$LIBS
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7509 /* Override any GCC internal prototype to avoid an error.
7510 Use char because int might match the return type of a GCC
7511 builtin and then its argument prototype would still apply. */
7524 for ac_lib in '' resolv bind; do
7525 if test -z "$ac_lib"; then
7526 ac_res="none required"
7529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7531 if ac_fn_c_try_link "$LINENO"; then :
7532 ac_cv_search_res_init=$ac_res
7534 rm -f core conftest.err conftest.$ac_objext \
7536 if ${ac_cv_search_res_init+:} false; then :
7540 if ${ac_cv_search_res_init+:} false; then :
7543 ac_cv_search_res_init=no
7546 LIBS=$ac_func_search_save_LIBS
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7549 $as_echo "$ac_cv_search_res_init" >&6; }
7550 ac_res=$ac_cv_search_res_init
7551 if test "$ac_res" != no; then :
7552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7553 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7562 # Tru64 5.1b leaks file descriptors with these functions; disable until
7563 # we can come up with a test for this...
7564 if test "$host_os_name" != "osf1"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7566 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7567 if ${ac_cv_search_getaddrinfo+:} false; then :
7568 $as_echo_n "(cached) " >&6
7570 ac_func_search_save_LIBS=$LIBS
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7574 /* Override any GCC internal prototype to avoid an error.
7575 Use char because int might match the return type of a GCC
7576 builtin and then its argument prototype would still apply. */
7580 char getaddrinfo ();
7584 return getaddrinfo ();
7589 for ac_lib in '' nsl; do
7590 if test -z "$ac_lib"; then
7591 ac_res="none required"
7594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7596 if ac_fn_c_try_link "$LINENO"; then :
7597 ac_cv_search_getaddrinfo=$ac_res
7599 rm -f core conftest.err conftest.$ac_objext \
7601 if ${ac_cv_search_getaddrinfo+:} false; then :
7605 if ${ac_cv_search_getaddrinfo+:} false; then :
7608 ac_cv_search_getaddrinfo=no
7611 LIBS=$ac_func_search_save_LIBS
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7614 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7615 ac_res=$ac_cv_search_getaddrinfo
7616 if test "$ac_res" != no; then :
7617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7618 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7623 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7624 if ${ac_cv_search_getnameinfo+:} false; then :
7625 $as_echo_n "(cached) " >&6
7627 ac_func_search_save_LIBS=$LIBS
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7631 /* Override any GCC internal prototype to avoid an error.
7632 Use char because int might match the return type of a GCC
7633 builtin and then its argument prototype would still apply. */
7637 char getnameinfo ();
7641 return getnameinfo ();
7646 for ac_lib in '' nsl; do
7647 if test -z "$ac_lib"; then
7648 ac_res="none required"
7651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7653 if ac_fn_c_try_link "$LINENO"; then :
7654 ac_cv_search_getnameinfo=$ac_res
7656 rm -f core conftest.err conftest.$ac_objext \
7658 if ${ac_cv_search_getnameinfo+:} false; then :
7662 if ${ac_cv_search_getnameinfo+:} false; then :
7665 ac_cv_search_getnameinfo=no
7668 LIBS=$ac_func_search_save_LIBS
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7671 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7672 ac_res=$ac_cv_search_getnameinfo
7673 if test "$ac_res" != no; then :
7674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7675 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7681 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7683 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7687 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7688 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7689 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7695 CUPS_DEFAULT_DOMAINSOCKET=""
7698 # Check whether --with-domainsocket was given.
7699 if test "${with_domainsocket+set}" = set; then :
7700 withval=$with_domainsocket; default_domainsocket="$withval"
7702 default_domainsocket=""
7706 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7707 if test "x$default_domainsocket" = x; then
7708 case "$host_os_name" in
7710 # Darwin and macOS do their own thing...
7711 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7714 # All others use FHS standard...
7715 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7719 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7722 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7724 cat >>confdefs.h <<_ACEOF
7725 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7729 CUPS_LISTEN_DOMAINSOCKET=""
7736 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7737 if test "x$ac_cv_func_poll" = xyes; then :
7738 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7742 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7743 if test "x$ac_cv_func_epoll_create" = xyes; then :
7744 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7748 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7749 if test "x$ac_cv_func_kqueue" = xyes; then :
7750 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7756 # Check whether --enable-gssapi was given.
7757 if test "${enable_gssapi+set}" = set; then :
7758 enableval=$enable_gssapi;
7765 if test x$enable_gssapi != xno; then
7766 if test -n "$ac_tool_prefix"; then
7767 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7768 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7772 $as_echo_n "(cached) " >&6
7776 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7798 if test -n "$KRB5CONFIG"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7800 $as_echo "$KRB5CONFIG" >&6; }
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7808 if test -z "$ac_cv_path_KRB5CONFIG"; then
7809 ac_pt_KRB5CONFIG=$KRB5CONFIG
7810 # Extract the first word of "krb5-config", so it can be a program name with args.
7811 set dummy krb5-config; ac_word=$2
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7815 $as_echo_n "(cached) " >&6
7817 case $ac_pt_KRB5CONFIG in
7819 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7841 if test -n "$ac_pt_KRB5CONFIG"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7843 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7849 if test "x$ac_pt_KRB5CONFIG" = x; then
7852 case $cross_compiling:$ac_tool_warned in
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7856 ac_tool_warned=yes ;;
7858 KRB5CONFIG=$ac_pt_KRB5CONFIG
7861 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7864 if test "x$KRB5CONFIG" != x; then
7865 case "$host_os_name" in
7867 # macOS weak-links to the Kerberos framework...
7868 LIBGSSAPI="-weak_framework Kerberos"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7870 $as_echo_n "checking for GSS framework... " >&6; }
7871 if test -d /System/Library/Frameworks/GSS.framework; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7873 $as_echo "yes" >&6; }
7874 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7881 # Solaris has a non-standard krb5-config, don't use it!
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7883 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7884 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7885 $as_echo_n "(cached) " >&6
7887 ac_check_lib_save_LIBS=$LIBS
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7892 /* Override any GCC internal prototype to avoid an error.
7893 Use char because int might match the return type of a GCC
7894 builtin and then its argument prototype would still apply. */
7898 char gss_display_status ();
7902 return gss_display_status ();
7907 if ac_fn_c_try_link "$LINENO"; then :
7908 ac_cv_lib_gss_gss_display_status=yes
7910 ac_cv_lib_gss_gss_display_status=no
7912 rm -f core conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914 LIBS=$ac_check_lib_save_LIBS
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7917 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7918 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7920 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7922 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7923 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7924 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7929 # Other platforms just ask for GSSAPI
7930 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7931 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7932 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7936 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7939 # Check for vendor-specific implementations...
7940 case "$host_os_name" in
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7943 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7944 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7945 $as_echo_n "(cached) " >&6
7947 ac_check_lib_save_LIBS=$LIBS
7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h. */
7952 /* Override any GCC internal prototype to avoid an error.
7953 Use char because int might match the return type of a GCC
7954 builtin and then its argument prototype would still apply. */
7958 char gss_display_status ();
7962 return gss_display_status ();
7967 if ac_fn_c_try_link "$LINENO"; then :
7968 ac_cv_lib_gss_gss_display_status=yes
7970 ac_cv_lib_gss_gss_display_status=no
7972 rm -f core conftest.err conftest.$ac_objext \
7973 conftest$ac_exeext conftest.$ac_ext
7974 LIBS=$ac_check_lib_save_LIBS
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7977 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7978 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7980 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7982 LIBGSSAPI="-lgss -lgssapi_krb5"
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7988 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7989 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7990 $as_echo_n "(cached) " >&6
7992 ac_check_lib_save_LIBS=$LIBS
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7997 /* Override any GCC internal prototype to avoid an error.
7998 Use char because int might match the return type of a GCC
7999 builtin and then its argument prototype would still apply. */
8003 char gss_display_status ();
8007 return gss_display_status ();
8012 if ac_fn_c_try_link "$LINENO"; then :
8013 ac_cv_lib_gss_gss_display_status=yes
8015 ac_cv_lib_gss_gss_display_status=no
8017 rm -f core conftest.err conftest.$ac_objext \
8018 conftest$ac_exeext conftest.$ac_ext
8019 LIBS=$ac_check_lib_save_LIBS
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8022 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8023 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8025 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8034 if test "x$LIBGSSAPI" != x; then
8035 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8036 if test "x$ac_cv_header_krb5_h" = xyes; then :
8037 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8042 if test -d /System/Library/Frameworks/GSS.framework; then
8043 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
8044 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
8045 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8050 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
8051 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
8052 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
8057 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
8058 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
8059 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8065 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8066 if test "x$ac_cv_header_gssapi_h" = xyes; then :
8067 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8072 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8073 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8074 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8082 LIBS="$LIBS $LIBGSSAPI"
8084 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8085 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8086 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8092 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8093 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8096 #include <gssapi/gssapi.h>
8100 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8105 if ac_fn_c_try_compile "$LINENO"; then :
8106 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8109 $as_echo "yes" >&6; }
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8118 #include <GSS/gssapi.h>
8122 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8127 if ac_fn_c_try_compile "$LINENO"; then :
8128 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8144 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8149 if ac_fn_c_try_compile "$LINENO"; then :
8150 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8153 $as_echo "yes" >&6; }
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 # Check whether --with-gssservicename was given.
8167 if test "${with_gssservicename+set}" = set; then :
8168 withval=$with_gssservicename; default_gssservicename="$withval"
8170 default_gssservicename="default"
8174 if test x$default_gssservicename != xno; then
8175 if test "x$default_gssservicename" = "xdefault"; then
8176 CUPS_DEFAULT_GSSSERVICENAME="host"
8178 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8181 CUPS_DEFAULT_GSSSERVICENAME=""
8185 cat >>confdefs.h <<_ACEOF
8186 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8191 # Check whether --enable-threads was given.
8192 if test "${enable_threads+set}" = set; then :
8193 enableval=$enable_threads;
8200 if test "x$enable_threads" != xno; then
8201 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8202 if test "x$ac_cv_header_pthread_h" = xyes; then :
8203 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8209 if test x$ac_cv_header_pthread_h = xyes; then
8210 for flag in -lpthreads -lpthread -pthread; do
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8212 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217 #include <pthread.h>
8221 pthread_create(0, 0, 0, 0);
8226 if ac_fn_c_try_link "$LINENO"; then :
8231 rm -f core conftest.err conftest.$ac_objext \
8232 conftest$ac_exeext conftest.$ac_ext
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8234 $as_echo "$have_pthread" >&6; }
8236 if test $have_pthread = yes; then
8237 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8239 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8240 # be POSIX-compliant... :(
8241 if test $host_os_name = sunos; then
8242 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8253 # Check whether --enable-ssl was given.
8254 if test "${enable_ssl+set}" = set; then :
8255 enableval=$enable_ssl;
8258 # Check whether --enable-cdsassl was given.
8259 if test "${enable_cdsassl+set}" = set; then :
8260 enableval=$enable_cdsassl;
8263 # Check whether --enable-gnutls was given.
8264 if test "${enable_gnutls+set}" = set; then :
8265 enableval=$enable_gnutls;
8272 CUPS_SERVERKEYCHAIN=""
8274 if test x$enable_ssl != xno; then
8275 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8276 if test $host_os_name = darwin; then
8277 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8278 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8281 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8283 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8285 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8287 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8288 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8289 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8294 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8295 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8296 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8301 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8302 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8303 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8308 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8310 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8311 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8316 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8317 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8318 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8323 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8324 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8325 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8330 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8331 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8332 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8337 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8338 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8339 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8345 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8347 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8353 if test $host_os_version -ge 150; then
8354 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8360 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8361 if test -n "$ac_tool_prefix"; then
8362 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8363 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8367 $as_echo_n "(cached) " >&6
8369 case $LIBGNUTLSCONFIG in
8371 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8393 if test -n "$LIBGNUTLSCONFIG"; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8395 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8403 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8404 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8405 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8406 set dummy libgnutls-config; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8410 $as_echo_n "(cached) " >&6
8412 case $ac_pt_LIBGNUTLSCONFIG in
8414 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 test -z "$as_dir" && as_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8424 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8436 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8438 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8444 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8447 case $cross_compiling:$ac_tool_warned in
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8451 ac_tool_warned=yes ;;
8453 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8456 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8459 if $PKGCONFIG --exists gnutls; then
8461 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8462 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8463 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8465 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8467 elif test "x$LIBGNUTLSCONFIG" != x; then
8469 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8470 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8471 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8473 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8477 if test $have_ssl = 1; then
8478 CUPS_SERVERKEYCHAIN="ssl"
8481 LIBS="$LIBS $SSLLIBS"
8482 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8483 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8484 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8488 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8489 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8490 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8500 if test $have_ssl = 1; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8502 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8504 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8505 IPPALIASES="http https ipps"
8506 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8507 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8515 EXPORT_SSLLIBS="$SSLLIBS"
8519 # Check whether --enable-pam was given.
8520 if test "${enable_pam+set}" = set; then :
8521 enableval=$enable_pam;
8525 # Check whether --with-pam_module was given.
8526 if test "${with_pam_module+set}" = set; then :
8527 withval=$with_pam_module;
8534 PAMMOD="pam_unknown.so"
8535 PAMMODAUTH="pam_unknown.so"
8537 if test x$enable_pam != xno; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8541 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8542 if ${ac_cv_lib_dl_dlopen+:} false; then :
8543 $as_echo_n "(cached) " >&6
8545 ac_check_lib_save_LIBS=$LIBS
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8550 /* Override any GCC internal prototype to avoid an error.
8551 Use char because int might match the return type of a GCC
8552 builtin and then its argument prototype would still apply. */
8565 if ac_fn_c_try_link "$LINENO"; then :
8566 ac_cv_lib_dl_dlopen=yes
8568 ac_cv_lib_dl_dlopen=no
8570 rm -f core conftest.err conftest.$ac_objext \
8571 conftest$ac_exeext conftest.$ac_ext
8572 LIBS=$ac_check_lib_save_LIBS
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8575 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8576 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8577 cat >>confdefs.h <<_ACEOF
8578 #define HAVE_LIBDL 1
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8586 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8587 if ${ac_cv_lib_pam_pam_start+:} false; then :
8588 $as_echo_n "(cached) " >&6
8590 ac_check_lib_save_LIBS=$LIBS
8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8595 /* Override any GCC internal prototype to avoid an error.
8596 Use char because int might match the return type of a GCC
8597 builtin and then its argument prototype would still apply. */
8605 return pam_start ();
8610 if ac_fn_c_try_link "$LINENO"; then :
8611 ac_cv_lib_pam_pam_start=yes
8613 ac_cv_lib_pam_pam_start=no
8615 rm -f core conftest.err conftest.$ac_objext \
8616 conftest$ac_exeext conftest.$ac_ext
8617 LIBS=$ac_check_lib_save_LIBS
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8620 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8621 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8622 cat >>confdefs.h <<_ACEOF
8623 #define HAVE_LIBPAM 1
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8631 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8632 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8633 $as_echo_n "(cached) " >&6
8635 ac_check_lib_save_LIBS=$LIBS
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8640 /* Override any GCC internal prototype to avoid an error.
8641 Use char because int might match the return type of a GCC
8642 builtin and then its argument prototype would still apply. */
8646 char pam_set_item ();
8650 return pam_set_item ();
8655 if ac_fn_c_try_link "$LINENO"; then :
8656 ac_cv_lib_pam_pam_set_item=yes
8658 ac_cv_lib_pam_pam_set_item=no
8660 rm -f core conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8662 LIBS=$ac_check_lib_save_LIBS
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8665 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8666 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8667 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8672 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8673 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8674 $as_echo_n "(cached) " >&6
8676 ac_check_lib_save_LIBS=$LIBS
8678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h. */
8681 /* Override any GCC internal prototype to avoid an error.
8682 Use char because int might match the return type of a GCC
8683 builtin and then its argument prototype would still apply. */
8687 char pam_setcred ();
8691 return pam_setcred ();
8696 if ac_fn_c_try_link "$LINENO"; then :
8697 ac_cv_lib_pam_pam_setcred=yes
8699 ac_cv_lib_pam_pam_setcred=no
8701 rm -f core conftest.err conftest.$ac_objext \
8702 conftest$ac_exeext conftest.$ac_ext
8703 LIBS=$ac_check_lib_save_LIBS
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8706 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8707 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8708 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8712 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8713 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8718 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8719 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8720 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8721 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8728 if test x$ac_cv_lib_pam_pam_start != xno; then
8729 # Set the necessary libraries for PAM...
8730 if test x$ac_cv_lib_dl_dlopen != xno; then
8731 PAMLIBS="-lpam -ldl"
8736 # Find the PAM configuration directory, if any...
8737 for dir in /private/etc/pam.d /etc/pam.d; do
8738 if test -d $dir; then
8747 case "$host_os_name" in
8750 if test "x$with_pam_module" != x; then
8751 PAMFILE="pam.$with_pam_module"
8752 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8753 PAMFILE="pam.opendirectory"
8755 PAMFILE="pam.securityserver"
8760 # All others; this test might need to be updated
8761 # as Linux distributors move things around...
8762 if test "x$with_pam_module" != x; then
8763 PAMMOD="pam_${with_pam_module}.so"
8764 elif test -f /lib/security/pam_unix2.so; then
8765 PAMMOD="pam_unix2.so"
8766 elif test -f /lib/security/pam_unix.so; then
8767 PAMMOD="pam_unix.so"
8770 if test "x$PAMMOD" = xpam_unix.so; then
8771 PAMMODAUTH="$PAMMOD shadow nodelay"
8773 PAMMODAUTH="$PAMMOD nodelay"
8786 # Check whether --enable-largefile was given.
8787 if test "${enable_largefile+set}" = set; then :
8788 enableval=$enable_largefile;
8791 if test "$enable_largefile" != no; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8794 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8795 if ${ac_cv_sys_largefile_CC+:} false; then :
8796 $as_echo_n "(cached) " >&6
8798 ac_cv_sys_largefile_CC=no
8799 if test "$GCC" != yes; then
8802 # IRIX 6.2 and later do not support large files by default,
8803 # so use the C compiler's -n32 option if that helps.
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 #include <sys/types.h>
8807 /* Check that off_t can represent 2**63 - 1 correctly.
8808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8809 since some C++ compilers masquerading as C compilers
8810 incorrectly reject 9223372036854775807. */
8811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8813 && LARGE_OFF_T % 2147483647 == 1)
8823 if ac_fn_c_try_compile "$LINENO"; then :
8826 rm -f core conftest.err conftest.$ac_objext
8828 if ac_fn_c_try_compile "$LINENO"; then :
8829 ac_cv_sys_largefile_CC=' -n32'; break
8831 rm -f core conftest.err conftest.$ac_objext
8835 rm -f conftest.$ac_ext
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8839 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8840 if test "$ac_cv_sys_largefile_CC" != no; then
8841 CC=$CC$ac_cv_sys_largefile_CC
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8845 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8846 if ${ac_cv_sys_file_offset_bits+:} false; then :
8847 $as_echo_n "(cached) " >&6
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8852 #include <sys/types.h>
8853 /* Check that off_t can represent 2**63 - 1 correctly.
8854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8855 since some C++ compilers masquerading as C compilers
8856 incorrectly reject 9223372036854775807. */
8857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8859 && LARGE_OFF_T % 2147483647 == 1)
8869 if ac_fn_c_try_compile "$LINENO"; then :
8870 ac_cv_sys_file_offset_bits=no; break
8872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874 /* end confdefs.h. */
8875 #define _FILE_OFFSET_BITS 64
8876 #include <sys/types.h>
8877 /* Check that off_t can represent 2**63 - 1 correctly.
8878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8879 since some C++ compilers masquerading as C compilers
8880 incorrectly reject 9223372036854775807. */
8881 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8883 && LARGE_OFF_T % 2147483647 == 1)
8893 if ac_fn_c_try_compile "$LINENO"; then :
8894 ac_cv_sys_file_offset_bits=64; break
8896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897 ac_cv_sys_file_offset_bits=unknown
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8902 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8903 case $ac_cv_sys_file_offset_bits in #(
8906 cat >>confdefs.h <<_ACEOF
8907 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8912 if test $ac_cv_sys_file_offset_bits = unknown; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8914 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8915 if ${ac_cv_sys_large_files+:} false; then :
8916 $as_echo_n "(cached) " >&6
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921 #include <sys/types.h>
8922 /* Check that off_t can represent 2**63 - 1 correctly.
8923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8924 since some C++ compilers masquerading as C compilers
8925 incorrectly reject 9223372036854775807. */
8926 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8928 && LARGE_OFF_T % 2147483647 == 1)
8938 if ac_fn_c_try_compile "$LINENO"; then :
8939 ac_cv_sys_large_files=no; break
8941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8944 #define _LARGE_FILES 1
8945 #include <sys/types.h>
8946 /* Check that off_t can represent 2**63 - 1 correctly.
8947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8948 since some C++ compilers masquerading as C compilers
8949 incorrectly reject 9223372036854775807. */
8950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8952 && LARGE_OFF_T % 2147483647 == 1)
8962 if ac_fn_c_try_compile "$LINENO"; then :
8963 ac_cv_sys_large_files=1; break
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 ac_cv_sys_large_files=unknown
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8971 $as_echo "$ac_cv_sys_large_files" >&6; }
8972 case $ac_cv_sys_large_files in #(
8975 cat >>confdefs.h <<_ACEOF
8976 #define _LARGE_FILES $ac_cv_sys_large_files
8988 if test x$enable_largefile != xno; then
8989 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
8991 if test x$ac_cv_sys_large_files = x1; then
8992 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
8995 if test x$ac_cv_sys_file_offset_bits = x64; then
8996 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9002 $as_echo_n "checking for long long int... " >&6; }
9003 if ${ac_cv_c_long_long+:} false; then :
9004 $as_echo_n "(cached) " >&6
9006 if test "$GCC" = yes; then
9007 ac_cv_c_long_long=yes
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9020 if ac_fn_c_try_compile "$LINENO"; then :
9021 ac_cv_c_long_long=yes
9023 ac_cv_c_long_long=no
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9029 $as_echo "$ac_cv_c_long_long" >&6; }
9031 if test $ac_cv_c_long_long = yes; then
9032 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9036 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9037 if test "x$ac_cv_func_strtoll" = xyes; then :
9038 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9044 # Check whether --enable-avahi was given.
9045 if test "${enable_avahi+set}" = set; then :
9046 enableval=$enable_avahi;
9049 # Check whether --enable-dnssd was given.
9050 if test "${enable_dnssd+set}" = set; then :
9051 enableval=$enable_dnssd;
9055 # Check whether --with-dnssd-libs was given.
9056 if test "${with_dnssd_libs+set}" = set; then :
9057 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9058 DSOFLAGS="-L$withval $DSOFLAGS"
9062 # Check whether --with-dnssd-includes was given.
9063 if test "${with_dnssd_includes+set}" = set; then :
9064 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9065 CPPFLAGS="-I$withval $CPPFLAGS"
9074 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9076 $as_echo_n "checking for Avahi... " >&6; }
9077 if $PKGCONFIG --exists avahi-client; then
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9079 $as_echo "yes" >&6; }
9080 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
9081 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
9082 DNSSD_BACKEND="dnssd"
9083 IPPFIND_BIN="ippfind"
9084 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9085 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9093 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9094 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9095 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9097 case "$host_os_name" in
9099 # Darwin and macOS...
9100 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9102 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9103 DNSSD_BACKEND="dnssd"
9104 IPPFIND_BIN="ippfind"
9105 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9110 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9112 LIBS="$LIBS -ldns_sd"
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9119 int constant = kDNSServiceFlagsShareConnection;
9120 unsigned char txtRecord[100];
9122 TXTRecordGetValuePtr(sizeof(txtRecord),
9123 txtRecord, "value", &valueLen);
9128 if ac_fn_c_try_compile "$LINENO"; then :
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9130 $as_echo "yes" >&6; }
9131 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9133 DNSSDLIBS="-ldns_sd"
9134 DNSSD_BACKEND="dnssd"
9136 IPPFIND_BIN="ippfind"
9137 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 # Check whether --enable-launchd was given.
9163 if test "${enable_launchd+set}" = set; then :
9164 enableval=$enable_launchd;
9170 if test x$enable_launchd != xno; then
9171 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9172 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9174 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9176 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9180 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9181 if test "x$ac_cv_header_launch_h" = xyes; then :
9182 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9188 if test "$host_os_name" = darwin; then
9189 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9190 # liblaunch is already part of libSystem
9194 # Check whether --enable-systemd was given.
9195 if test "${enable_systemd+set}" = set; then :
9196 enableval=$enable_systemd;
9200 # Check whether --with-systemd was given.
9201 if test "${with_systemd+set}" = set; then :
9202 withval=$with_systemd; SYSTEMD_DIR="$withval"
9209 if test x$enable_systemd != xno; then
9210 if test "x$PKGCONFIG" = x; then
9211 if test x$enable_systemd = xyes; then
9212 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9217 $as_echo_n "checking for libsystemd... " >&6; }
9218 if $PKGCONFIG --exists libsystemd; then
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9220 $as_echo "yes" >&6; }
9222 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9223 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9224 elif $PKGCONFIG --exists libsystemd-daemon; then
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9226 $as_echo "yes - legacy" >&6; }
9228 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9229 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9231 if $PKGCONFIG --exists libsystemd-journal; then
9232 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9233 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9237 $as_echo "no" >&6; }
9240 if test $have_systemd = yes; then
9241 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9243 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9245 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9246 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9247 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9252 if test "x$SYSTEMD_DIR" = x; then
9253 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9259 # Check whether --enable-upstart was given.
9260 if test "${enable_upstart+set}" = set; then :
9261 enableval=$enable_upstart;
9264 if test "x$enable_upstart" = "xyes"; then
9265 if test "x$have_systemd" = "xyes"; then
9266 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9268 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9270 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9277 # Check whether --with-smfmanifestdir was given.
9278 if test "${with_smfmanifestdir+set}" = set; then :
9279 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9284 # Check whether --with-rcdir was given.
9285 if test "${with_rcdir+set}" = set; then :
9286 withval=$with_rcdir; rcdir="$withval"
9292 # Check whether --with-rclevels was given.
9293 if test "${with_rclevels+set}" = set; then :
9294 withval=$with_rclevels; rclevels="$withval"
9300 # Check whether --with-rcstart was given.
9301 if test "${with_rcstart+set}" = set; then :
9302 withval=$with_rcstart; rcstart="$withval"
9308 # Check whether --with-rcstop was given.
9309 if test "${with_rcstop+set}" = set; then :
9310 withval=$with_rcstop; rcstop="$withval"
9316 if test x$rcdir = x; then
9317 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9318 # Fall back on "init", the original service startup interface...
9319 if test -d /sbin/init.d; then
9321 rcdir="/sbin/init.d"
9322 elif test -d /etc/init.d; then
9334 if test "x$rcstart" = x; then
9335 case "$host_os_name" in
9353 if test "x$rcstop" = x; then
9354 case "$host_os_name" in
9369 RCLEVELS="$rclevels"
9378 if test "x$rcdir" != xno; then
9379 if test "x$rclevels" = x; then
9387 # Check whether --with-xinetd was given.
9388 if test "${with_xinetd+set}" = set; then :
9389 withval=$with_xinetd; xinetd="$withval"
9397 if test "x$xinetd" = x; then
9398 if test ! -x /sbin/launchd; then
9399 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9400 if test -d $dir; then
9406 elif test "x$xinetd" != xno; then
9411 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9414 # Check whether --with-languages was given.
9415 if test "${with_languages+set}" = set; then :
9416 withval=$with_languages;
9418 none | no) LANGUAGES="" ;;
9420 *) LANGUAGES="$withval" ;;
9427 # Check whether --with-bundledir was given.
9428 if test "${with_bundledir+set}" = set; then :
9429 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9431 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9432 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9441 if test "x$CUPS_BUNDLEDIR" != x; then
9442 cat >>confdefs.h <<_ACEOF
9443 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9449 # Check whether --with-exe_file_perm was given.
9450 if test "${with_exe_file_perm+set}" = set; then :
9451 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9453 case "$host_os_name" in
9455 CUPS_EXE_FILE_PERM="755"
9458 CUPS_EXE_FILE_PERM="555"
9466 # Check whether --with-config_file_perm was given.
9467 if test "${with_config_file_perm+set}" = set; then :
9468 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9470 if test "x$host_os_name" = xdarwin; then
9471 CUPS_CONFIG_FILE_PERM="644"
9473 CUPS_CONFIG_FILE_PERM="640"
9478 cat >>confdefs.h <<_ACEOF
9479 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9484 # Check whether --with-cupsd_file_perm was given.
9485 if test "${with_cupsd_file_perm+set}" = set; then :
9486 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9488 case "$host_os_name" in
9490 CUPS_CUPSD_FILE_PERM="700"
9493 CUPS_CUPSD_FILE_PERM="500"
9501 # Check whether --with-log_file_perm was given.
9502 if test "${with_log_file_perm+set}" = set; then :
9503 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9505 CUPS_LOG_FILE_PERM="644"
9509 cat >>confdefs.h <<_ACEOF
9510 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9515 # Check whether --with-fatal_errors was given.
9516 if test "${with_fatal_errors+set}" = set; then :
9517 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9519 CUPS_FATAL_ERRORS="config"
9523 cat >>confdefs.h <<_ACEOF
9524 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9529 # Check whether --with-log_level was given.
9530 if test "${with_log_level+set}" = set; then :
9531 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9533 CUPS_LOG_LEVEL="warn"
9537 cat >>confdefs.h <<_ACEOF
9538 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9543 # Check whether --with-access_log_level was given.
9544 if test "${with_access_log_level+set}" = set; then :
9545 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9547 CUPS_ACCESS_LOG_LEVEL="none"
9551 cat >>confdefs.h <<_ACEOF
9552 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9556 # Check whether --enable-page_logging was given.
9557 if test "${enable_page_logging+set}" = set; then :
9558 enableval=$enable_page_logging;
9561 if test "x$enable_page_logging" = xyes; then
9562 CUPS_PAGE_LOG_FORMAT=""
9564 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9568 # Check whether --enable-browsing was given.
9569 if test "${enable_browsing+set}" = set; then :
9570 enableval=$enable_browsing;
9573 if test "x$enable_browsing" = xno; then
9575 cat >>confdefs.h <<_ACEOF
9576 #define CUPS_DEFAULT_BROWSING 0
9581 cat >>confdefs.h <<_ACEOF
9582 #define CUPS_DEFAULT_BROWSING 1
9589 # Check whether --with-local_protocols was given.
9590 if test "${with_local_protocols+set}" = set; then :
9591 withval=$with_local_protocols; default_local_protocols="$withval"
9593 default_local_protocols="default"
9597 if test x$with_local_protocols != xno; then
9598 if test "x$default_local_protocols" = "xdefault"; then
9599 if test "x$DNSSD_BACKEND" != "x"; then
9600 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9602 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9605 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9608 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9612 cat >>confdefs.h <<_ACEOF
9613 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9617 # Check whether --enable-default_shared was given.
9618 if test "${enable_default_shared+set}" = set; then :
9619 enableval=$enable_default_shared;
9622 if test "x$enable_default_shared" = xno; then
9623 CUPS_DEFAULT_SHARED="No"
9624 cat >>confdefs.h <<_ACEOF
9625 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9629 CUPS_DEFAULT_SHARED="Yes"
9630 cat >>confdefs.h <<_ACEOF
9631 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9638 # Check whether --with-cups_user was given.
9639 if test "${with_cups_user+set}" = set; then :
9640 withval=$with_cups_user; CUPS_USER="$withval"
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9643 $as_echo_n "checking for default print user... " >&6; }
9644 if test x$host_os_name = xdarwin; then
9645 if test x`id
-u _lp
2>/dev
/null
` = x; then
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9651 $as_echo "$CUPS_USER" >&6; }
9652 elif test -f /etc/passwd; then
9654 for user in lp lpd guest daemon nobody; do
9655 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9658 $as_echo "$user" >&6; }
9663 if test x$CUPS_USER = x; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9666 $as_echo "not found" >&6; }
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9671 $as_echo "no password file" >&6; }
9676 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9677 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9681 # Check whether --with-cups_group was given.
9682 if test "${with_cups_group+set}" = set; then :
9683 withval=$with_cups_group; CUPS_GROUP="$withval"
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9686 $as_echo_n "checking for default print group... " >&6; }
9687 if test x$host_os_name = xdarwin; then
9688 if test x`id
-g _lp
2>/dev
/null
` = x; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9694 $as_echo "$CUPS_GROUP" >&6; }
9695 elif test -f /etc/group; then
9696 GROUP_LIST="_lp lp nobody"
9698 for group in $GROUP_LIST; do
9699 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9702 $as_echo "$group" >&6; }
9707 if test x$CUPS_GROUP = x; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9710 $as_echo "not found" >&6; }
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9715 $as_echo "no group file" >&6; }
9720 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9721 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9725 # Check whether --with-system_groups was given.
9726 if test "${with_system_groups+set}" = set; then :
9727 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9729 if test x$host_os_name = xdarwin; then
9730 CUPS_SYSTEM_GROUPS="admin"
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9733 $as_echo_n "checking for default system groups... " >&6; }
9734 if test -f /etc/group; then
9735 CUPS_SYSTEM_GROUPS=""
9736 GROUP_LIST="lpadmin sys system root"
9737 for group in $GROUP_LIST; do
9738 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9739 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9740 CUPS_SYSTEM_GROUPS="$group"
9742 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9747 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9748 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9750 $as_echo "no groups found" >&6; }
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9753 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9756 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9758 $as_echo "no group file" >&6; }
9764 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9766 for group in $CUPS_SYSTEM_GROUPS; do
9767 if test "x$CUPS_GROUP" = "x$group"; then
9768 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9777 cat >>confdefs.h <<_ACEOF
9778 #define CUPS_DEFAULT_USER "$CUPS_USER"
9781 cat >>confdefs.h <<_ACEOF
9782 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9785 cat >>confdefs.h <<_ACEOF
9786 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9791 # Check whether --with-printcap was given.
9792 if test "${with_printcap+set}" = set; then :
9793 withval=$with_printcap; default_printcap="$withval"
9795 default_printcap="default"
9799 if test x$default_printcap != xno; then
9800 if test "x$default_printcap" = "xdefault"; then
9801 case $host_os_name in
9803 if test $host_os_version -ge 90; then
9804 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9806 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9810 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9813 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9817 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9820 CUPS_DEFAULT_PRINTCAP=""
9824 cat >>confdefs.h <<_ACEOF
9825 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9830 # Check whether --with-lpdconfigfile was given.
9831 if test "${with_lpdconfigfile+set}" = set; then :
9832 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9834 default_lpdconfigfile="default"
9838 if test x$default_lpdconfigfile != xno; then
9839 if test "x$default_lpdconfigfile" = "xdefault"; then
9840 case $host_os_name in
9842 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9845 if test "x$XINETD" != x; then
9846 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9848 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9853 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9856 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9859 cat >>confdefs.h <<_ACEOF
9860 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9866 # Check whether --with-smbconfigfile was given.
9867 if test "${with_smbconfigfile+set}" = set; then :
9868 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9870 default_smbconfigfile="default"
9874 if test x$default_smbconfigfile != xno; then
9875 if test "x$default_smbconfigfile" = "xdefault"; then
9876 if test -f /etc/smb.conf; then
9877 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9879 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9882 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9885 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9888 cat >>confdefs.h <<_ACEOF
9889 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9895 # Check whether --with-max-copies was given.
9896 if test "${with_max_copies+set}" = set; then :
9897 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9899 CUPS_MAX_COPIES="9999"
9904 cat >>confdefs.h <<_ACEOF
9905 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9909 # Check whether --enable-raw_printing was given.
9910 if test "${enable_raw_printing+set}" = set; then :
9911 enableval=$enable_raw_printing;
9914 if test "x$enable_raw_printing" != xno; then
9915 DEFAULT_RAW_PRINTING=""
9917 DEFAULT_RAW_PRINTING="#"
9922 # Check whether --with-snmp-address was given.
9923 if test "${with_snmp_address+set}" = set; then :
9924 withval=$with_snmp_address; if test "x$withval" = x; then
9925 CUPS_SNMP_ADDRESS=""
9927 CUPS_SNMP_ADDRESS="Address $withval"
9930 if test "x$host_os_name" = xdarwin; then
9931 CUPS_SNMP_ADDRESS=""
9933 CUPS_SNMP_ADDRESS="Address @LOCAL"
9939 # Check whether --with-snmp-community was given.
9940 if test "${with_snmp_community+set}" = set; then :
9941 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9943 CUPS_SNMP_COMMUNITY="Community public"
9951 # Check whether --with-ipp-port was given.
9952 if test "${with_ipp_port+set}" = set; then :
9953 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
9955 DEFAULT_IPP_PORT="631"
9960 cat >>confdefs.h <<_ACEOF
9961 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
9965 # Check whether --enable-webif was given.
9966 if test "${enable_webif+set}" = set; then :
9967 enableval=$enable_webif;
9970 case "x$enable_webif" in
9973 CUPS_DEFAULT_WEBIF=0
9977 CUPS_DEFAULT_WEBIF=1
9980 if test $host_os_name = darwin; then
9982 CUPS_DEFAULT_WEBIF=0
9985 CUPS_DEFAULT_WEBIF=1
9991 cat >>confdefs.h <<_ACEOF
9992 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
9998 # Check whether --with-java was given.
9999 if test "${with_java+set}" = set; then :
10000 withval=$with_java; CUPS_JAVA="$withval"
10006 if test "x$CUPS_JAVA" = xauto; then
10007 # Extract the first word of "java", so it can be a program name with args.
10008 set dummy java; ac_word=$2
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10010 $as_echo_n "checking for $ac_word... " >&6; }
10011 if ${ac_cv_path_JAVA+:} false; then :
10012 $as_echo_n "(cached) " >&6
10016 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10023 test -z "$as_dir" && as_dir=.
10024 for ac_exec_ext in '' $ac_executable_extensions; do
10025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10026 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
10027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10037 JAVA=$ac_cv_path_JAVA
10038 if test -n "$JAVA"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
10040 $as_echo "$JAVA" >&6; }
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10048 elif test "x$CUPS_JAVA" = xno; then
10052 cat >>confdefs.h <<_ACEOF
10053 #define CUPS_JAVA "$CUPS_JAVA"
10057 if test "x$CUPS_JAVA" != x; then
10058 $as_echo "#define HAVE_JAVA 1" >>confdefs.h
10063 # Check whether --with-perl was given.
10064 if test "${with_perl+set}" = set; then :
10065 withval=$with_perl; CUPS_PERL="$withval"
10071 if test "x$CUPS_PERL" = xauto; then
10072 # Extract the first word of "perl", so it can be a program name with args.
10073 set dummy perl; ac_word=$2
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075 $as_echo_n "checking for $ac_word... " >&6; }
10076 if ${ac_cv_path_PERL+:} false; then :
10077 $as_echo_n "(cached) " >&6
10081 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085 for as_dir in $PATH
10088 test -z "$as_dir" && as_dir=.
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10091 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102 PERL=$ac_cv_path_PERL
10103 if test -n "$PERL"; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10105 $as_echo "$PERL" >&6; }
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 $as_echo "no" >&6; }
10113 elif test "x$CUPS_PERL" = xno; then
10117 cat >>confdefs.h <<_ACEOF
10118 #define CUPS_PERL "$CUPS_PERL"
10122 if test "x$CUPS_PERL" != x; then
10123 $as_echo "#define HAVE_PERL 1" >>confdefs.h
10128 # Check whether --with-php was given.
10129 if test "${with_php+set}" = set; then :
10130 withval=$with_php; CUPS_PHP="$withval"
10136 if test "x$CUPS_PHP" = xauto; then
10137 # Extract the first word of "php-cgi", so it can be a program name with args.
10138 set dummy php-cgi; ac_word=$2
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140 $as_echo_n "checking for $ac_word... " >&6; }
10141 if ${ac_cv_path_PHPCGI+:} false; then :
10142 $as_echo_n "(cached) " >&6
10146 ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
10149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10150 for as_dir in $PATH
10153 test -z "$as_dir" && as_dir=.
10154 for ac_exec_ext in '' $ac_executable_extensions; do
10155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10156 ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
10157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10167 PHPCGI=$ac_cv_path_PHPCGI
10168 if test -n "$PHPCGI"; then
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
10170 $as_echo "$PHPCGI" >&6; }
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10173 $as_echo "no" >&6; }
10177 if test "x$PHPCGI" = x; then
10178 # Extract the first word of "php", so it can be a program name with args.
10179 set dummy php; ac_word=$2
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10181 $as_echo_n "checking for $ac_word... " >&6; }
10182 if ${ac_cv_path_PHP+:} false; then :
10183 $as_echo_n "(cached) " >&6
10187 ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
10190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10191 for as_dir in $PATH
10194 test -z "$as_dir" && as_dir=.
10195 for ac_exec_ext in '' $ac_executable_extensions; do
10196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10197 ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
10198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 PHP=$ac_cv_path_PHP
10209 if test -n "$PHP"; then
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
10211 $as_echo "$PHP" >&6; }
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10214 $as_echo "no" >&6; }
10222 elif test "x$CUPS_PHP" = xno; then
10226 cat >>confdefs.h <<_ACEOF
10227 #define CUPS_PHP "$CUPS_PHP"
10231 if test "x$CUPS_PHP" = x; then
10234 $as_echo "#define HAVE_PHP 1" >>confdefs.h
10239 # Check whether --with-python was given.
10240 if test "${with_python+set}" = set; then :
10241 withval=$with_python; CUPS_PYTHON="$withval"
10247 if test "x$CUPS_PYTHON" = xauto; then
10248 # Extract the first word of "python", so it can be a program name with args.
10249 set dummy python; ac_word=$2
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251 $as_echo_n "checking for $ac_word... " >&6; }
10252 if ${ac_cv_path_PYTHON+:} false; then :
10253 $as_echo_n "(cached) " >&6
10257 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10261 for as_dir in $PATH
10264 test -z "$as_dir" && as_dir=.
10265 for ac_exec_ext in '' $ac_executable_extensions; do
10266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10267 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10278 PYTHON=$ac_cv_path_PYTHON
10279 if test -n "$PYTHON"; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10281 $as_echo "$PYTHON" >&6; }
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10284 $as_echo "no" >&6; }
10288 CUPS_PYTHON="$PYTHON"
10289 elif test "x$CUPS_PYTHON" = xno; then
10293 cat >>confdefs.h <<_ACEOF
10294 #define CUPS_PYTHON "$CUPS_PYTHON"
10298 if test "x$CUPS_PYTHON" != x; then
10299 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10304 INSTALL_LANGUAGES=""
10305 UNINSTALL_LANGUAGES=""
10307 if test "x$LANGUAGES" != x; then
10308 INSTALL_LANGUAGES="install-languages"
10309 UNINSTALL_LANGUAGES="uninstall-languages"
10310 for lang in $LANGUAGES; do
10311 if test -f doc/$lang/index.html.in; then
10312 LANGFILES="$LANGFILES doc/$lang/index.html"
10315 if test -f templates/$lang/header.tmpl.in; then
10316 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10319 elif test "x$CUPS_BUNDLEDIR" != x; then
10320 INSTALL_LANGUAGES="install-langbundle"
10321 UNINSTALL_LANGUAGES="uninstall-langbundle"
10327 ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config desktop/cups.desktop doc/index.html man/client.conf.man man/cups-files.conf.man man/cups-lpd.man man/cups-snmp.man man/cupsaddsmb.man man/cupsd.conf.man man/cupsd.man man/lpoptions.man scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/org.cups.cups-lpdAT.service scheduler/org.cups.cupsd.path scheduler/org.cups.cupsd.service scheduler/org.cups.cupsd.socket templates/header.tmpl packaging/cups.list $LANGFILES"
10329 cat >confcache <<\_ACEOF
10330 # This file is a shell script that caches the results of configure
10331 # tests run on this system so they can be shared between configure
10332 # scripts and configure runs, see configure's option --config-cache.
10333 # It is not useful on other systems. If it contains results you don't
10334 # want to keep, you may remove or edit it.
10336 # config.status only pays attention to the cache file if you give it
10337 # the --recheck option to rerun configure.
10339 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10340 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10341 # following values.
10345 # The following way of writing the cache mishandles newlines in values,
10346 # but we know of no workaround that is simple, portable, and efficient.
10347 # So, we kill variables containing newlines.
10348 # Ultrix sh set writes to stderr and can't be redirected directly,
10349 # and sets the high bit in the cache file unless we assign to the vars.
10351 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10352 eval ac_val
=\$
$ac_var
10356 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10357 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10360 _ | IFS | as_nl
) ;; #(
10361 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10362 *) { eval $ac_var=; unset $ac_var;} ;;
10368 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10369 *${as_nl}ac_space
=\
*)
10370 # `set' does not quote correctly, so add quotes: double-quote
10371 # substitution turns \\\\ into \\, and sed turns \\ into \.
10374 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10377 # `set' quotes correctly as required by POSIX, so do not add quotes.
10378 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10387 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10389 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10391 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10392 if test -w "$cache_file"; then
10393 if test "x$cache_file" != "x/dev/null"; then
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10395 $as_echo "$as_me: updating cache $cache_file" >&6;}
10396 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10397 cat confcache
>"$cache_file"
10399 case $cache_file in #(
10401 mv -f confcache
"$cache_file"$$
&&
10402 mv -f "$cache_file"$$
"$cache_file" ;; #(
10404 mv -f confcache
"$cache_file" ;;
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10410 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10415 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10416 # Let make expand exec_prefix.
10417 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10419 DEFS
=-DHAVE_CONFIG_H
10424 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10425 # 1. Remove the extension, and $U if already installed.
10426 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10427 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10428 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10429 # will be set to the directory where LIBOBJS objects are built.
10430 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10431 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10433 LIBOBJS
=$ac_libobjs
10435 LTLIBOBJS
=$ac_ltlibobjs
10439 : "${CONFIG_STATUS=./config.status}"
10441 ac_clean_files_save
=$ac_clean_files
10442 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10444 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10446 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10448 # Generated by $as_me.
10449 # Run this file to recreate the current configuration.
10450 # Compiler output produced by configure, useful for debugging
10451 # configure, is in config.log if it exists.
10454 ac_cs_recheck=false
10457 SHELL=\${CONFIG_SHELL-$SHELL}
10460 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10461 ## -------------------- ##
10462 ## M4sh Initialization. ##
10463 ## -------------------- ##
10465 # Be more Bourne compatible
10466 DUALCASE
=1; export DUALCASE
# for MKS sh
10467 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10470 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10471 # is contrary to our usage. Disable this feature.
10472 alias -g '${1+"$@"}'='"$@"'
10473 setopt NO_GLOB_SUBST
10475 case `(set -o) 2>/dev/null` in #(
10487 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10488 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10489 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10490 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10491 # Prefer a ksh shell builtin over an external printf program on Solaris,
10492 # but without wasting forks for bash or zsh.
10493 if test -z "$BASH_VERSION$ZSH_VERSION" \
10494 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10495 as_echo='print
-r --'
10496 as_echo_n='print
-rn --'
10497 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10498 as_echo='printf %s
\n'
10499 as_echo_n='printf %s
'
10501 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10502 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10503 as_echo_n='/usr
/ucb
/echo -n'
10505 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10506 as_echo_n_body='eval
10510 expr "X$arg" : "X\\(.*\\)$as_nl";
10511 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10513 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10515 export as_echo_n_body
10516 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10518 export as_echo_body
10519 as_echo='sh
-c $as_echo_body as_echo
'
10522 # The user is always right.
10523 if test "${PATH_SEPARATOR+set}" != set; then
10525 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10526 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10533 # We need space, tab and new line, in precisely that order. Quoting is
10534 # there to prevent editors from complaining about space-tab.
10535 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10536 # splitting by setting IFS to empty value.)
10539 # Find who we are. Look in the path if we contain no directory separator.
10542 *[\\/]* ) as_myself=$0 ;;
10543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10547 test -z "$as_dir" && as_dir=.
10548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10554 # We did not find ourselves, most probably we were run as `sh COMMAND'
10555 # in which case we are not to be found in the path.
10556 if test "x$as_myself" = x
; then
10559 if test ! -f "$as_myself"; then
10560 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10564 # Unset variables that we do not need and which cause bugs (e.g. in
10565 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10566 # suppresses any "Segmentation fault" message there. '((' could
10567 # trigger a bug in pdksh 5.2.14.
10568 for as_var
in BASH_ENV ENV MAIL MAILPATH
10569 do eval test x\
${$as_var+set} = xset \
10570 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10583 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10586 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10587 # ----------------------------------------
10588 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10589 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10590 # script with STATUS, using 1 if that was 0.
10593 as_status
=$1; test $as_status -eq 0 && as_status
=1
10595 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10596 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10598 $as_echo "$as_me: error: $2" >&2
10599 as_fn_exit
$as_status
10603 # as_fn_set_status STATUS
10604 # -----------------------
10605 # Set $? to STATUS, without forking.
10606 as_fn_set_status
()
10609 } # as_fn_set_status
10611 # as_fn_exit STATUS
10612 # -----------------
10613 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10617 as_fn_set_status
$1
10623 # Portably unset VAR.
10626 { eval $1=; unset $1;}
10628 as_unset
=as_fn_unset
10629 # as_fn_append VAR VALUE
10630 # ----------------------
10631 # Append the text in VALUE to the end of the definition contained in VAR. Take
10632 # advantage of any shell optimizations that allow amortized linear growth over
10633 # repeated appends, instead of the typical quadratic growth present in naive
10635 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10636 eval 'as_fn_append ()
10647 # as_fn_arith ARG...
10648 # ------------------
10649 # Perform arithmetic evaluation on the ARGs, and store the result in the
10650 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10651 # must be portable across $(()) and expr.
10652 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10653 eval 'as_fn_arith ()
10660 as_val
=`expr "$@" || test $? -eq 1`
10665 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10666 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10672 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10673 as_basename
=basename
10678 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10684 as_me
=`$as_basename -- "$0" ||
10685 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10686 X"$0" : 'X\(//\)$' \| \
10687 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10689 sed '/^.*\/\([^/][^/]*\)\/*$/{
10703 # Avoid depending upon Character Ranges.
10704 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10705 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10706 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10707 as_cr_digits
='0123456789'
10708 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10710 ECHO_C
= ECHO_N
= ECHO_T
=
10711 case `echo -n x` in #(((((
10713 case `echo 'xy\c'` in
10714 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10716 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10723 rm -f conf$$ conf$$.exe conf$$.
file
10724 if test -d conf$$.dir
; then
10725 rm -f conf$$.dir
/conf$$.
file
10728 mkdir conf$$.dir
2>/dev
/null
10730 if (echo >conf$$.
file) 2>/dev
/null
; then
10731 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10733 # ... but there are two gotchas:
10734 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10735 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10736 # In both cases, we have to default to `cp -pR'.
10737 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10739 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10747 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10748 rmdir conf$$.dir
2>/dev
/null
10753 # Create "$as_dir" as a directory, including parents if necessary.
10758 -*) as_dir
=.
/$as_dir;;
10760 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10764 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10765 *) as_qdir
=$as_dir;;
10767 as_dirs
="'$as_qdir' $as_dirs"
10768 as_dir
=`$as_dirname -- "$as_dir" ||
10769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10770 X"$as_dir" : 'X\(//\)[^/]' \| \
10771 X"$as_dir" : 'X\(//\)$' \| \
10772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10773 $as_echo X"$as_dir" |
10774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10778 /^X\(\/\/\)[^/].*/{
10791 test -d "$as_dir" && break
10793 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10794 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10798 if mkdir
-p .
2>/dev
/null
; then
10799 as_mkdir_p
='mkdir -p "$as_dir"'
10801 test -d .
/-p && rmdir .
/-p
10806 # as_fn_executable_p FILE
10807 # -----------------------
10808 # Test if FILE is an executable regular file.
10809 as_fn_executable_p
()
10811 test -f "$1" && test -x "$1"
10812 } # as_fn_executable_p
10813 as_test_x
='test -x'
10814 as_executable_p
=as_fn_executable_p
10816 # Sed expression to map a string onto a valid CPP name.
10817 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10819 # Sed expression to map a string onto a valid variable name.
10820 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10824 ## ----------------------------------- ##
10825 ## Main body of $CONFIG_STATUS script. ##
10826 ## ----------------------------------- ##
10828 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10831 # Save the log message, to keep $0 and so on meaningful, and to
10832 # report actual input values of CONFIG_FILES etc. instead of their
10833 # values after options handling.
10835 This file was extended by CUPS $as_me 2.2.11, which was
10836 generated by GNU Autoconf 2.69. Invocation command line was
10838 CONFIG_FILES = $CONFIG_FILES
10839 CONFIG_HEADERS = $CONFIG_HEADERS
10840 CONFIG_LINKS = $CONFIG_LINKS
10841 CONFIG_COMMANDS = $CONFIG_COMMANDS
10844 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10849 case $ac_config_files in *"
10850 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10853 case $ac_config_headers in *"
10854 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10859 # Files that config.status was made for.
10860 config_files="$ac_config_files"
10861 config_headers="$ac_config_headers"
10865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10867 \`$as_me' instantiates files and other configuration actions
10868 from templates according to the current configuration. Unless the files
10869 and actions are specified as TAGs, all are instantiated by default.
10871 Usage: $0 [OPTION]... [TAG]...
10873 -h, --help print this help, then exit
10874 -V, --version print version number and configuration settings, then exit
10875 --config print configuration, then exit
10876 -q, --quiet, --silent
10877 do not print progress messages
10878 -d, --debug don't remove temporary files
10879 --recheck update $as_me by reconfiguring in the same conditions
10880 --file=FILE[:TEMPLATE]
10881 instantiate the configuration file FILE
10882 --header=FILE[:TEMPLATE]
10883 instantiate the configuration header FILE
10885 Configuration files:
10888 Configuration headers:
10891 Report bugs to <https://github.com/apple/cups/issues>.
10892 CUPS home page: <https://www.cups.org/>."
10895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10896 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10898 CUPS config.status 2.2.11
10899 configured by $0, generated by GNU Autoconf 2.69,
10900 with options \\"\$ac_cs_config\\"
10902 Copyright (C) 2012 Free Software Foundation, Inc.
10903 This config.status script is free software; the Free Software Foundation
10904 gives unlimited permission to copy, distribute and modify it."
10909 test -n "\$AWK" || AWK=awk
10912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10913 # The default lists apply if the user does not specify any file.
10919 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10920 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10924 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10936 # Handling of the options.
10937 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10939 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10940 $as_echo "$ac_cs_version"; exit ;;
10941 --config |
--confi |
--conf |
--con |
--co |
--c )
10942 $as_echo "$ac_cs_config"; exit ;;
10943 --debug |
--debu |
--deb |
--de |
--d |
-d )
10945 --file |
--fil |
--fi |
--f )
10948 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10949 '') as_fn_error $?
"missing file argument" ;;
10951 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10952 ac_need_defaults
=false
;;
10953 --header |
--heade |
--head |
--hea )
10956 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10958 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10959 ac_need_defaults
=false
;;
10961 # Conflict between --help and --header
10962 as_fn_error $?
"ambiguous option: \`$1'
10963 Try \`$0 --help' for more information.";;
10964 --help |
--hel |
-h )
10965 $as_echo "$ac_cs_usage"; exit ;;
10966 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10967 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10970 # This is an error.
10971 -*) as_fn_error $?
"unrecognized option: \`$1'
10972 Try \`$0 --help' for more information." ;;
10974 *) as_fn_append ac_config_targets
" $1"
10975 ac_need_defaults
=false
;;
10981 ac_configure_extra_args
=
10983 if $ac_cs_silent; then
10985 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10990 if \$ac_cs_recheck; then
10991 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10993 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10994 CONFIG_SHELL='$SHELL'
10995 export CONFIG_SHELL
11000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11004 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11005 ## Running $as_me. ##
11011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11016 # Handling of arguments.
11017 for ac_config_target
in $ac_config_targets
11019 case $ac_config_target in
11020 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11021 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
11022 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
11023 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
11024 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
11025 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
11026 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
11027 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
11028 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
11029 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
11030 "man/client.conf.man") CONFIG_FILES
="$CONFIG_FILES man/client.conf.man" ;;
11031 "man/cups-files.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cups-files.conf.man" ;;
11032 "man/cups-lpd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-lpd.man" ;;
11033 "man/cups-snmp.man") CONFIG_FILES
="$CONFIG_FILES man/cups-snmp.man" ;;
11034 "man/cupsaddsmb.man") CONFIG_FILES
="$CONFIG_FILES man/cupsaddsmb.man" ;;
11035 "man/cupsd.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.conf.man" ;;
11036 "man/cupsd.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.man" ;;
11037 "man/lpoptions.man") CONFIG_FILES
="$CONFIG_FILES man/lpoptions.man" ;;
11038 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
11039 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
11040 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
11041 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
11042 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
11043 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
11044 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
11045 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
11046 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
11047 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
11048 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
11050 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11055 # If the user did not use the arguments to specify the items to instantiate,
11056 # then the envvar interface is used. Set only those that are not.
11057 # We use the long form for the default assignment because of an extremely
11058 # bizarre bug on SunOS 4.1.3.
11059 if $ac_need_defaults; then
11060 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11061 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11064 # Have a temporary directory for convenience. Make it in the build tree
11065 # simply because there is no reason against having it here, and in addition,
11066 # creating and moving files from /tmp can sometimes cause problems.
11067 # Hook for its removal unless debugging.
11068 # Note that there is a small window in which the directory will not be cleaned:
11069 # after its creation but before its name has been assigned to `$tmp'.
11073 trap 'exit_status=$?
11074 : "${ac_tmp:=$tmp}"
11075 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11077 trap 'as_fn_exit 1' 1 2 13 15
11079 # Create a (secure) tmp directory for tmp files.
11082 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11086 tmp
=.
/conf$$
-$RANDOM
11087 (umask 077 && mkdir
"$tmp")
11088 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11091 # Set up the scripts for CONFIG_FILES section.
11092 # No need to generate them if there are no CONFIG_FILES.
11093 # This happens for instance with `./config.status config.h'.
11094 if test -n "$CONFIG_FILES"; then
11097 ac_cr
=`echo X | tr X '\015'`
11098 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11099 # But we know of no other shell where ac_cr would be empty at this
11100 # point, so we can use a bashism as a fallback.
11101 if test "x$ac_cr" = x
; then
11102 eval ac_cr
=\$
\'\\r
\'
11104 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11105 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11108 ac_cs_awk_cr
=$ac_cr
11111 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11116 echo "cat >conf$$subs.awk <<_ACEOF" &&
11117 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11119 } >conf$$subs.sh ||
11120 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11121 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11123 for ac_last_try in false false false false false :; do
11124 . ./conf$$subs.sh ||
11125 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11127 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11128 if test $ac_delim_n = $ac_delim_num; then
11130 elif $ac_last_try; then
11131 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11133 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11136 rm -f conf$$subs.sh
11138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11139 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11143 s/^/S["/; s
/!.
*/"]=/
11153 s/\(.\{148\}\)..*/\1/
11155 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11160 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11167 s/\(.\{148\}\)..*/\1/
11169 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11173 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11178 ' <conf$$subs.awk | sed '
11183 ' >>$CONFIG_STATUS || ac_write_fail=1
11184 rm -f conf$$subs.awk
11185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11187 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11188 for (key in S) S_is_set[key] = 1
11194 nfields = split(line, field, "@
")
11196 len = length(field[1])
11197 for (i = 2; i < nfields; i++) {
11199 keylen = length(key)
11200 if (S_is_set[key]) {
11202 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11203 len += length(value) + length(field[++i])
11214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11215 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11216 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11219 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11220 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11223 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11224 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11225 # trailing colons and then remove the whole line if VPATH becomes empty
11226 # (actually we leave an empty line to preserve line numbers).
11227 if test "x
$srcdir" = x.; then
11228 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11247 fi # test -n "$CONFIG_FILES"
11249 # Set up the scripts for CONFIG_HEADERS section.
11250 # No need to generate them if there are no CONFIG_HEADERS.
11251 # This happens for instance with `./config.status Makefile'.
11252 if test -n "$CONFIG_HEADERS"; then
11253 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11257 # Transform confdefs.h into an awk script `defines.awk', embedded as
11258 # here-document in config.status, that substitutes the proper values into
11259 # config.h.in to produce config.h.
11261 # Create a delimiter string that does not exist in confdefs.h, to ease
11262 # handling of long lines.
11264 for ac_last_try in false false :; do
11265 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11266 if test -z "$ac_tt"; then
11268 elif $ac_last_try; then
11269 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11271 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11275 # For the awk script, D is an array of macro values keyed by name,
11276 # likewise P contains macro parameters if any. Preserve backslash
11277 # newline sequences.
11279 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11281 s/.\{148\}/&'"$ac_delim"'/g
11284 s/^[ ]*#[ ]*define[ ][ ]*/ /
11291 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11293 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11297 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11298 D["\
1"]=" \
3\\\\\\n
"\\/p
11300 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11305 s/.\{148\}/&'"$ac_delim"'/g
11310 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11313 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11315 ' <confdefs.h | sed '
11316 s/'"$ac_delim"'/"\\\
11317 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11320 for (key in D) D_is_set[key] = 1
11323 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11325 split(line, arg, " ")
11326 if (arg[1] == "#") {
11330 defundef
= substr
(arg
[1], 2)
11333 split(mac1
, mac2
, "(") #)
11335 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11336 if (D_is_set
[macro
]) {
11337 # Preserve the white space surrounding the "#".
11338 print prefix
"define", macro P
[macro
] D
[macro
]
11341 # Replace #undef with comments. This is necessary, for example,
11342 # in the case of _POSIX_SOURCE, which is predefined and required
11343 # on some systems where configure will not decide to define it.
11344 if (defundef
== "undef") {
11345 print
"/*", prefix defundef
, macro
, "*/"
11353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11354 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11355 fi # test -n "$CONFIG_HEADERS"
11358 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11363 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11365 case $ac_mode$ac_tag in
11367 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11368 :[FH
]-) ac_tag
=-:-;;
11369 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11386 -) ac_f
="$ac_tmp/stdin";;
11387 *) # Look for the file first in the build tree, then in the source tree
11388 # (if the path is not absolute). The absolute path cannot be DOS-style,
11389 # because $ac_f cannot contain `:'.
11393 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11395 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11397 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11398 as_fn_append ac_file_inputs
" '$ac_f'"
11401 # Let's still pretend it is `configure' which instantiates (i.e., don't
11402 # use $as_me), people would be surprised to read:
11403 # /* config.h. Generated by config.status. */
11404 configure_input
='Generated from '`
11405 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11407 if test x
"$ac_file" != x-
; then
11408 configure_input
="$ac_file. $configure_input"
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11410 $as_echo "$as_me: creating $ac_file" >&6;}
11412 # Neutralize special characters interpreted by sed in replacement strings.
11413 case $configure_input in #(
11414 *\
&* |
*\|
* |
*\\* )
11415 ac_sed_conf_input
=`$as_echo "$configure_input" |
11416 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11417 *) ac_sed_conf_input
=$configure_input;;
11421 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11422 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11427 ac_dir
=`$as_dirname -- "$ac_file" ||
11428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11429 X"$ac_file" : 'X\(//\)[^/]' \| \
11430 X"$ac_file" : 'X\(//\)$' \| \
11431 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11432 $as_echo X"$ac_file" |
11433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11437 /^X\(\/\/\)[^/].*/{
11450 as_dir
="$ac_dir"; as_fn_mkdir_p
11454 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11456 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11457 # A ".." for each directory in $ac_dir_suffix.
11458 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11459 case $ac_top_builddir_sub in
11460 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11461 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11464 ac_abs_top_builddir
=$ac_pwd
11465 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11466 # for backward compatibility:
11467 ac_top_builddir
=$ac_top_build_prefix
11470 .
) # We are building in place.
11472 ac_top_srcdir
=$ac_top_builddir_sub
11473 ac_abs_top_srcdir
=$ac_pwd ;;
11474 [\\/]* | ?
:[\\/]* ) # Absolute name.
11475 ac_srcdir
=$srcdir$ac_dir_suffix;
11476 ac_top_srcdir
=$srcdir
11477 ac_abs_top_srcdir
=$srcdir ;;
11478 *) # Relative name.
11479 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11480 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11481 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11483 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11495 # If the template does not know about datarootdir, expand it.
11496 # FIXME: This hack should be removed a few years after 2.60.
11497 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11508 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11509 *datarootdir
*) ac_datarootdir_seen
=yes;;
11510 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11512 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11515 ac_datarootdir_hack='
11516 s&@datadir@&$datadir&g
11517 s&@docdir@&$docdir&g
11518 s&@infodir@&$infodir&g
11519 s&@localedir@&$localedir&g
11520 s&@mandir@&$mandir&g
11521 s&\\\${datarootdir}&$datarootdir&g' ;;
11525 # Neutralize VPATH when `$srcdir' = `.'.
11526 # Shell code in configure.ac might set extrasub.
11527 # FIXME: do we really want to maintain this feature?
11528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11529 ac_sed_extra="$ac_vpsub
11532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11534 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11535 s|@configure_input@|
$ac_sed_conf_input|
;t t
11536 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11537 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11538 s
&@srcdir@
&$ac_srcdir&;t t
11539 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11540 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11541 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11542 s
&@builddir@
&$ac_builddir&;t t
11543 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11544 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11545 $ac_datarootdir_hack
11547 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11548 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11550 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11551 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11552 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11553 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11555 which seems to be undefined. Please make sure it is defined" >&5
11556 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11557 which seems to be undefined. Please make sure it is defined" >&2;}
11559 rm -f "$ac_tmp/stdin"
11561 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11562 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11570 if test x"$ac_file" != x-; then
11572 $as_echo "/* $configure_input */" \
11573 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11574 } >"$ac_tmp/config.h" \
11575 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11576 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11578 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11581 mv "$ac_tmp/config.h" "$ac_file" \
11582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11585 $as_echo "/* $configure_input */" \
11586 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11587 || as_fn_error $? "could not create -" "$LINENO" 5
11599 ac_clean_files=$ac_clean_files_save
11601 test $ac_write_fail = 0 ||
11602 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11605 # configure is writing to config.log, and then calls config.status.
11606 # config.status does its own redirection, appending to config.log.
11607 # Unfortunately, on DOS this fails, as config.log is still kept open
11608 # by configure, so config.status won't be able to
write to it
; its
11609 # output is simply discarded. So we exec the FD to /dev/null,
11610 # effectively closing config.log, so it can be properly (re)opened and
11611 # appended to by config.status. When coming back to configure, we
11612 # need to make the FD available again.
11613 if test "$no_create" != yes; then
11615 ac_config_status_args
=
11616 test "$silent" = yes &&
11617 ac_config_status_args
="$ac_config_status_args --quiet"
11619 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11621 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11622 # would make configure fail if this is the last instruction.
11623 $ac_cs_success || as_fn_exit
1
11625 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11627 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11631 chmod +x cups-config