2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for CUPS 2.3b6.
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.3b6'
584 PACKAGE_STRING
='CUPS 2.3b6'
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
635 CUPS_DEFAULT_SMB_CONFIG_FILE
636 CUPS_DEFAULT_LPD_CONFIG_FILE
637 CUPS_DEFAULT_PRINTCAP
638 CUPS_PRIMARY_SYSTEM_GROUP
643 CUPS_BROWSE_LOCAL_PROTOCOLS
646 CUPS_ACCESS_LOG_LEVEL
651 CUPS_CONFIG_FILE_PERM
683 CUPS_DEFAULT_GSSSERVICENAME
686 CUPS_LISTEN_DOMAINSOCKET
687 CUPS_DEFAULT_DOMAINSOCKET
744 CUPS_DEFAULT_PRINTOPERATOR_AUTH
829 program_transform_name
842 enable_option_checking
866 enable_libtool_unsupported
902 with_config_file_perm
907 with_access_log_level
911 enable_default_shared
925 ac_precious_vars
='build_alias
939 # Initialize some variables set by options.
941 ac_init_version
=false
942 ac_unrecognized_opts
=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
953 program_transform_name
=s
,x
,x
,
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir
='${exec_prefix}/bin'
968 sbindir
='${exec_prefix}/sbin'
969 libexecdir
='${exec_prefix}/libexec'
970 datarootdir
='${prefix}/share'
971 datadir
='${datarootdir}'
972 sysconfdir
='${prefix}/etc'
973 sharedstatedir
='${prefix}/com'
974 localstatedir
='${prefix}/var'
975 includedir
='${prefix}/include'
976 oldincludedir
='/usr/include'
977 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
978 infodir
='${datarootdir}/info'
983 libdir
='${exec_prefix}/lib'
984 localedir
='${datarootdir}/locale'
985 mandir
='${datarootdir}/man'
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\
$ac_option
999 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1006 case $ac_dashdash$ac_option in
1010 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1012 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1013 bindir
=$ac_optarg ;;
1015 -build |
--build |
--buil |
--bui |
--bu)
1016 ac_prev
=build_alias
;;
1017 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1018 build_alias
=$ac_optarg ;;
1020 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1021 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1022 ac_prev
=cache_file
;;
1023 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1024 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1025 cache_file
=$ac_optarg ;;
1027 --config-cache |
-C)
1028 cache_file
=config.cache
;;
1030 -datadir |
--datadir |
--datadi |
--datad)
1032 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1033 datadir
=$ac_optarg ;;
1035 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1036 |
--dataroo |
--dataro |
--datar)
1037 ac_prev
=datarootdir
;;
1038 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1039 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1040 datarootdir
=$ac_optarg ;;
1042 -disable-* |
--disable-*)
1043 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1046 as_fn_error $?
"invalid feature name: $ac_useropt"
1047 ac_useropt_orig
=$ac_useropt
1048 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1051 "enable_
$ac_useropt"
1053 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054 ac_unrecognized_sep
=', ';;
1056 eval enable_
$ac_useropt=no
;;
1058 -docdir |
--docdir |
--docdi |
--doc |
--do)
1060 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1061 docdir
=$ac_optarg ;;
1063 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1065 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1066 dvidir
=$ac_optarg ;;
1068 -enable-* |
--enable-*)
1069 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1072 as_fn_error $?
"invalid feature name: $ac_useropt"
1073 ac_useropt_orig
=$ac_useropt
1074 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "enable_
$ac_useropt"
1079 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep
=', ';;
1082 eval enable_
$ac_useropt=\
$ac_optarg ;;
1084 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1085 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1086 |
--exec |
--exe |
--ex)
1087 ac_prev
=exec_prefix
;;
1088 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1089 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1090 |
--exec=* |
--exe=* |
--ex=*)
1091 exec_prefix
=$ac_optarg ;;
1093 -gas |
--gas |
--ga |
--g)
1094 # Obsolete; use --with-gas.
1097 -help |
--help |
--hel |
--he |
-h)
1098 ac_init_help
=long
;;
1099 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1100 ac_init_help
=recursive
;;
1101 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1102 ac_init_help
=short
;;
1104 -host |
--host |
--hos |
--ho)
1105 ac_prev
=host_alias
;;
1106 -host=* |
--host=* |
--hos=* |
--ho=*)
1107 host_alias
=$ac_optarg ;;
1109 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1111 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1113 htmldir
=$ac_optarg ;;
1115 -includedir |
--includedir |
--includedi |
--included |
--include \
1116 |
--includ |
--inclu |
--incl |
--inc)
1117 ac_prev
=includedir
;;
1118 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1119 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1120 includedir
=$ac_optarg ;;
1122 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1124 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1125 infodir
=$ac_optarg ;;
1127 -libdir |
--libdir |
--libdi |
--libd)
1129 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1130 libdir
=$ac_optarg ;;
1132 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1133 |
--libexe |
--libex |
--libe)
1134 ac_prev
=libexecdir
;;
1135 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1136 |
--libexe=* |
--libex=* |
--libe=*)
1137 libexecdir
=$ac_optarg ;;
1139 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1140 ac_prev
=localedir
;;
1141 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1142 localedir
=$ac_optarg ;;
1144 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1145 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1146 ac_prev
=localstatedir
;;
1147 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1148 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1149 localstatedir
=$ac_optarg ;;
1151 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1153 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1154 mandir
=$ac_optarg ;;
1156 -nfp |
--nfp |
--nf)
1157 # Obsolete; use --without-fp.
1160 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1161 |
--no-cr |
--no-c |
-n)
1164 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1165 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1168 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1169 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1170 |
--oldin |
--oldi |
--old |
--ol |
--o)
1171 ac_prev
=oldincludedir
;;
1172 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1173 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1174 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1175 oldincludedir
=$ac_optarg ;;
1177 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1179 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1180 prefix
=$ac_optarg ;;
1182 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1183 |
--program-pre |
--program-pr |
--program-p)
1184 ac_prev
=program_prefix
;;
1185 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1186 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1187 program_prefix
=$ac_optarg ;;
1189 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1190 |
--program-suf |
--program-su |
--program-s)
1191 ac_prev
=program_suffix
;;
1192 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1193 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1194 program_suffix
=$ac_optarg ;;
1196 -program-transform-name |
--program-transform-name \
1197 |
--program-transform-nam |
--program-transform-na \
1198 |
--program-transform-n |
--program-transform- \
1199 |
--program-transform |
--program-transfor \
1200 |
--program-transfo |
--program-transf \
1201 |
--program-trans |
--program-tran \
1202 |
--progr-tra |
--program-tr |
--program-t)
1203 ac_prev
=program_transform_name
;;
1204 -program-transform-name=* |
--program-transform-name=* \
1205 |
--program-transform-nam=* |
--program-transform-na=* \
1206 |
--program-transform-n=* |
--program-transform-=* \
1207 |
--program-transform=* |
--program-transfor=* \
1208 |
--program-transfo=* |
--program-transf=* \
1209 |
--program-trans=* |
--program-tran=* \
1210 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1211 program_transform_name
=$ac_optarg ;;
1213 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1215 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1216 pdfdir
=$ac_optarg ;;
1218 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1220 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1223 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1224 |
-silent |
--silent |
--silen |
--sile |
--sil)
1227 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1229 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1231 sbindir
=$ac_optarg ;;
1233 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1234 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1235 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1237 ac_prev
=sharedstatedir
;;
1238 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1239 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1240 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1242 sharedstatedir
=$ac_optarg ;;
1244 -site |
--site |
--sit)
1246 -site=* |
--site=* |
--sit=*)
1249 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1251 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1252 srcdir
=$ac_optarg ;;
1254 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1255 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1256 ac_prev
=sysconfdir
;;
1257 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1258 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1259 sysconfdir
=$ac_optarg ;;
1261 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1262 ac_prev
=target_alias
;;
1263 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1264 target_alias
=$ac_optarg ;;
1266 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1269 -version |
--version |
--versio |
--versi |
--vers |
-V)
1270 ac_init_version
=: ;;
1273 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1276 as_fn_error $?
"invalid package name: $ac_useropt"
1277 ac_useropt_orig
=$ac_useropt
1278 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1283 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep
=', ';;
1286 eval with_
$ac_useropt=\
$ac_optarg ;;
1288 -without-* |
--without-*)
1289 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1292 as_fn_error $?
"invalid package name: $ac_useropt"
1293 ac_useropt_orig
=$ac_useropt
1294 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1299 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep
=', ';;
1302 eval with_
$ac_useropt=no
;;
1305 # Obsolete; use --with-x.
1308 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1309 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1310 ac_prev
=x_includes
;;
1311 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1312 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1313 x_includes
=$ac_optarg ;;
1315 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1316 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1317 ac_prev
=x_libraries
;;
1318 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1319 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1320 x_libraries
=$ac_optarg ;;
1322 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information"
1327 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1328 # Reject names that are not valid shell variable names.
1329 case $ac_envvar in #(
1330 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1331 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1333 eval $ac_envvar=\
$ac_optarg
1334 export $ac_envvar ;;
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1347 if test -n "$ac_prev"; then
1348 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1349 as_fn_error $?
"missing argument to $ac_option"
1352 if test -n "$ac_unrecognized_opts"; then
1353 case $enable_option_checking in
1355 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 # Check all directory arguments for consistency.
1361 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1366 eval ac_val
=\$
$ac_var
1367 # Remove trailing slashes.
1370 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\
$ac_val;;
1373 # Be sure to have absolute directory names.
1375 [\\/$
]* | ?
:[\\/]* ) continue;;
1376 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1378 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1386 target
=$target_alias
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x
; then
1390 if test "x$build_alias" = x
; then
1391 cross_compiling
=maybe
1392 elif test "x$build_alias" != "x$host_alias"; then
1398 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1400 test "$silent" = yes && exec 6>/dev
/null
1403 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1404 ac_ls_di
=`ls -di .` &&
1405 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1406 as_fn_error $?
"working directory cannot be determined"
1407 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1408 as_fn_error $?
"pwd does not report name of working directory"
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413 ac_srcdir_defaulted
=yes
1414 # Try the directory containing this script, then the parent directory.
1415 ac_confdir
=`$as_dirname -- "$as_myself" ||
1416 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417 X"$as_myself" : 'X\(//\)[^/]' \| \
1418 X"$as_myself" : 'X\(//\)$' \| \
1419 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1420 $as_echo X"$as_myself" |
1421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1443 ac_srcdir_defaulted
=no
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1447 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1449 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1451 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1453 # When building in place, set srcdir=.
1454 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 # Remove unnecessary trailing slashes from srcdir.
1458 # Double slashes in file names in object file debugging info
1459 # mess up M-x gdb in Emacs.
1461 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 for ac_var
in $ac_precious_vars; do
1464 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1465 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1466 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1467 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1471 # Report the --help message.
1473 if test "$ac_init_help" = "long"; then
1474 # Omit some internal or obsolete options to make the list less imposing.
1475 # This message is too long to be a string in the A/UX 3.1 sh.
1477 \`configure' configures CUPS 2.3b6 to adapt to many kinds of systems.
1479 Usage: $0 [OPTION]... [VAR=VALUE]...
1481 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482 VAR=VALUE. See below for descriptions of some of the useful variables.
1484 Defaults for the options are specified in brackets.
1487 -h, --help display this help and exit
1488 --help=short display options specific to this package
1489 --help=recursive display the short help of all the included packages
1490 -V, --version display version information and exit
1491 -q, --quiet, --silent do not print \`checking ...' messages
1492 --cache-file=FILE cache test results in FILE [disabled]
1493 -C, --config-cache alias for \`--cache-file=config.cache'
1494 -n, --no-create do not create output files
1495 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1497 Installation directories:
1498 --prefix=PREFIX install architecture-independent files in PREFIX
1499 [$ac_default_prefix]
1500 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1503 By default, \`make install' will install all the files in
1504 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1505 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506 for instance \`--prefix=\$HOME'.
1508 For better control, use the options below.
1510 Fine tuning of the installation directories:
1511 --bindir=DIR user executables [EPREFIX/bin]
1512 --sbindir=DIR system admin executables [EPREFIX/sbin]
1513 --libexecdir=DIR program executables [EPREFIX/libexec]
1514 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1515 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1516 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1517 --libdir=DIR object code libraries [EPREFIX/lib]
1518 --includedir=DIR C header files [PREFIX/include]
1519 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1520 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1521 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1522 --infodir=DIR info documentation [DATAROOTDIR/info]
1523 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1524 --mandir=DIR man documentation [DATAROOTDIR/man]
1525 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1526 --htmldir=DIR html documentation [DOCDIR]
1527 --dvidir=DIR dvi documentation [DOCDIR]
1528 --pdfdir=DIR pdf documentation [DOCDIR]
1529 --psdir=DIR ps documentation [DOCDIR]
1535 --build=BUILD configure
for building on BUILD
[guessed
]
1536 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1540 if test -n "$ac_init_help"; then
1541 case $ac_init_help in
1542 short | recursive
) echo "Configuration of CUPS 2.3b6:";;
1547 --disable-option-checking ignore unrecognized
--enable/--with options
1548 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1549 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1550 --enable-static install static libraries
1551 --enable-mallinfo build with malloc debug logging
1552 --enable-libpaper build with libpaper support
1553 --enable-libusb use libusb
for USB printing
1554 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1555 --enable-acl build with POSIX ACL support
1556 --disable-dbus build without DBUS support
1557 --disable-shared do not create shared libraries
1558 --enable-libtool-unsupported=/path
/to
/libtool
1559 build with libtool
(UNSUPPORTED
!)
1560 --enable-debug build with debugging symbols
1561 --enable-debug-guards build with memory allocation guards
1562 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1563 --enable-unit-tests build and run unit tests
1564 --enable-relro build with the GCC relro option
1565 --disable-gssapi disable GSSAPI support
1566 --disable-threads disable multi-threading support
1567 --disable-ssl disable SSL
/TLS support
1568 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1569 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1570 --disable-pam disable PAM support
1571 --disable-largefile omit support
for large files
1572 --disable-avahi disable DNS Service Discovery support using Avahi
1573 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1574 --disable-launchd disable launchd support
1575 --disable-systemd disable systemd support
1576 --enable-upstart enable upstart support
1577 --enable-page-logging enable page_log by default
1578 --disable-browsing disable Browsing by default
1579 --disable-default-shared
1580 disable DefaultShared by default
1581 --disable-raw-printing do not allow raw printing by default
1582 --enable-webif enable the web interface by default
, default
=no
for macOS
1585 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1586 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1587 --with-cups-build set "cups-config --build" string
1588 --with-dbusdir set DBUS configuration directory
1589 --with-adminkey set the default SystemAuthKey value
1590 --with-operkey set the default operator @AUTHKEY value
1591 --with-components set components to build
:
1592 - "all" (default
) builds everything
1593 - "core" builds libcups and ipptool
1594 --with-privateinclude set path
for private include files
, default
=none
1595 --with-lpdconfig set URI
for LPD config
file
1596 --with-smbconfig set URI
for Samba config
file
1597 --with-cachedir set path
for cache files
1598 --with-icondir set path
for application icons
1599 --with-menudir set path
for application menus
1600 --with-docdir set path
for documentation
1601 --with-fontpath set font path
for pstoraster
1602 --with-logdir set path
for log files
1603 --with-rundir set transient run-time state directory
1604 --with-optim set optimization flags
1605 --with-archflags set default architecture flags
1606 --with-ldarchflags set program architecture flags
1607 --with-domainsocket set unix domain socket name
1608 --with-gssservicename set default gss service name
1609 --with-pam-module set the PAM module to use
1610 --with-dnssd-libs set directory
for DNS Service Discovery library
1611 --with-dnssd-includes set directory
for DNS Service Discovery includes
1612 --with-systemd set directory
for systemd service files
1613 --with-smfmanifestdir set path
for Solaris SMF manifest
1614 --with-rcdir set path
for rc scripts
1615 --with-rclevels set run levels
for rc scripts
1616 --with-rcstart set start number
for rc scripts
1617 --with-rcstop set stop number
for rc scripts
1618 --with-xinetd set path
for xinetd config files
1619 --with-languages set installed languages
, default
=all
1620 --with-bundledir set macOS localization bundle directory
1621 --with-exe-file-perm set default executable permissions value
, default
=0555
1622 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1623 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1624 --with-log-file-perm set default LogFilePerm value
, default
=0644
1625 --with-fatal-errors set default FatalErrors value
, default
=config
1626 --with-log-level set default LogLevel value
, default
=warn
1627 --with-access-log-level set default AccessLogLevel value
, default
=none
1628 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1629 --with-cups-user set default user
for CUPS
1630 --with-cups-group set default group
for CUPS
1631 --with-system-groups set default system groups
for CUPS
1632 --with-printcap set default printcap
file
1633 --with-lpdconfigfile set default LPDConfigFile URI
1634 --with-smbconfigfile set default SMBConfigFile URI
1635 --with-max-copies set default max copies value
, default
=9999
1636 --with-snmp-address set SNMP query address
, default
=auto
1637 --with-snmp-community set SNMP community
, default
=public
1638 --with-ipp-port set port number
for IPP
, default
=631
1640 Some influential environment variables
:
1641 CC C compiler
command
1642 CFLAGS C compiler flags
1643 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1644 nonstandard directory
<lib dir
>
1645 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1646 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1647 you have headers
in a nonstandard directory
<include dir
>
1649 CXX C
++ compiler
command
1650 CXXFLAGS C
++ compiler flags
1652 Use these variables to override the choices made by
`configure' or to help
1653 it to find libraries and programs with nonstandard names/locations.
1655 Report bugs to <https://github.com/apple/cups/issues>.
1656 CUPS home page: <https://www.cups.org/>.
1661 if test "$ac_init_help" = "recursive"; then
1662 # If there are subdirs, report their specific --help.
1663 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1664 test -d "$ac_dir" ||
1665 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1672 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1673 # A ".." for each directory in $ac_dir_suffix.
1674 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1675 case $ac_top_builddir_sub in
1676 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1680 ac_abs_top_builddir=$ac_pwd
1681 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1682 # for backward compatibility:
1683 ac_top_builddir=$ac_top_build_prefix
1686 .) # We are building in place.
1688 ac_top_srcdir=$ac_top_builddir_sub
1689 ac_abs_top_srcdir=$ac_pwd ;;
1690 [\\/]* | ?:[\\/]* ) # Absolute name.
1691 ac_srcdir=$srcdir$ac_dir_suffix;
1692 ac_top_srcdir=$srcdir
1693 ac_abs_top_srcdir=$srcdir ;;
1695 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1696 ac_top_srcdir=$ac_top_build_prefix$srcdir
1697 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1701 cd "$ac_dir" || { ac_status=$?; continue; }
1702 # Check for guested configure.
1703 if test -f "$ac_srcdir/configure.gnu"; then
1705 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1706 elif test -f "$ac_srcdir/configure"; then
1708 $SHELL "$ac_srcdir/configure" --help=recursive
1710 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1712 cd "$ac_pwd" || { ac_status=$?; break; }
1716 test -n "$ac_init_help" && exit $ac_status
1717 if $ac_init_version; then
1719 CUPS configure 2.3b6
1720 generated by GNU Autoconf 2.69
1722 Copyright (C) 2012 Free Software Foundation, Inc.
1723 This configure script is free software; the Free Software Foundation
1724 gives unlimited permission to copy, distribute and modify it.
1729 ## ------------------------ ##
1730 ## Autoconf initialization. ##
1731 ## ------------------------ ##
1733 # ac_fn_c_try_compile LINENO
1734 # --------------------------
1735 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_compile ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext
1740 if { { ac_try="$ac_compile"
1742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1743 *) ac_try_echo
=$ac_try;;
1745 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_compile") 2>conftest.err
1749 if test -s conftest.err
; then
1750 grep -v '^ *+' conftest.err
>conftest.er1
1751 cat conftest.er1
>&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest.
$ac_objext; then :
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.
$ac_ext >&5
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status
$ac_retval
1769 } # ac_fn_c_try_compile
1771 # ac_fn_c_try_cpp LINENO
1772 # ----------------------
1773 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1776 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1777 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } > conftest.i && {
1793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1808 # ac_fn_cxx_try_compile LINENO
1809 # ----------------------------
1810 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_cxx_try_compile ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext
1815 if { { ac_try="$ac_compile"
1817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1818 *) ac_try_echo
=$ac_try;;
1820 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_compile") 2>conftest.err
1824 if test -s conftest.err
; then
1825 grep -v '^ *+' conftest.err
>conftest.er1
1826 cat conftest.er1
>&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_cxx_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest.
$ac_objext; then :
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.
$ac_ext >&5
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status
$ac_retval
1844 } # ac_fn_cxx_try_compile
1846 # ac_fn_c_try_link LINENO
1847 # -----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded.
1851 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1852 rm -f conftest.
$ac_objext conftest
$ac_exeext
1853 if { { ac_try
="$ac_link"
1855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest$ac_exeext && {
1872 test "$cross_compiling" = yes ||
1873 test -x conftest$ac_exeext
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1890 } # ac_fn_c_try_link
1892 # ac_fn_c_try_run LINENO
1893 # ----------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1895 # that executables *can* be run.
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_link"
1901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1902 *) ac_try_echo
=$ac_try;;
1904 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>&5
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1910 { { case "(($ac_try" in
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_try") 2>&5
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; }; }; then :
1922 $as_echo "$as_me: program exited with status $ac_status" >&5
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1926 ac_retval=$ac_status
1928 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 as_fn_set_status $ac_retval
1934 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1935 # -------------------------------------------------------
1936 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1937 # the include files in INCLUDES and setting the cache variable VAR
1939 ac_fn_c_check_header_mongrel ()
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if eval \${$3+:} false; then :
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946 $as_echo_n "(cached) " >&6
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1952 # Is the header compilable?
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1954 $as_echo_n "checking $2 usability... " >&6; }
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961 ac_header_compiler=yes
1963 ac_header_compiler=no
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1967 $as_echo "$ac_header_compiler" >&6; }
1969 # Is the header present?
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1971 $as_echo_n "checking $2 presence... " >&6; }
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1976 if ac_fn_c_try_cpp "$LINENO"; then :
1977 ac_header_preproc=yes
1979 ac_header_preproc=no
1981 rm -f conftest.err conftest.i conftest.$ac_ext
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1983 $as_echo "$ac_header_preproc" >&6; }
1985 # So? What about this header?
1986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1989 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1991 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1995 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1997 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1999 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2001 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2003 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2004 ( $as_echo "## --------------------------------------------------- ##
2005 ## Report this to https://github.com/apple/cups/issues ##
2006 ## --------------------------------------------------- ##"
2007 ) | sed "s/^/$as_me: WARNING: /" >&2
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if eval \${$3+:} false; then :
2013 $as_echo_n "(cached) " >&6
2015 eval "$3=\$ac_header_compiler"
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 } # ac_fn_c_check_header_mongrel
2025 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2026 # -------------------------------------------------------
2027 # Tests whether HEADER exists and can be compiled using the include files in
2028 # INCLUDES, setting the cache variable VAR accordingly.
2029 ac_fn_c_check_header_compile ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if eval \${$3+:} false; then :
2035 $as_echo_n "(cached) " >&6
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2042 if ac_fn_c_try_compile "$LINENO"; then :
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 } # ac_fn_c_check_header_compile
2056 # ac_fn_c_check_func LINENO FUNC VAR
2057 # ----------------------------------
2058 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2059 ac_fn_c_check_func ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if eval \${$3+:} false; then :
2065 $as_echo_n "(cached) " >&6
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2071 #define $2 innocuous_$2
2073 /* System header to define __stub macros and hopefully few prototypes,
2074 which can conflict with char $2 (); below.
2075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2076 <limits.h> exists even on freestanding compilers. */
2079 # include <limits.h>
2081 # include <assert.h>
2086 /* Override any GCC internal prototype to avoid an error.
2087 Use char because int might match the return type of a GCC
2088 builtin and then its argument prototype would still apply. */
2093 /* The GNU C library defines this for functions which it implements
2094 to always fail with ENOSYS. Some functions are actually named
2095 something starting with __ and the normal name is an alias. */
2096 #if defined __stub_$2 || defined __stub___$2
2108 if ac_fn_c_try_link "$LINENO"; then :
2113 rm -f core conftest.err conftest.$ac_objext \
2114 conftest$ac_exeext conftest.$ac_ext
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 } # ac_fn_c_check_func
2123 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2124 # ----------------------------------------------------
2125 # Tries to find if the field MEMBER exists in type AGGR, after including
2126 # INCLUDES, setting cache variable VAR accordingly.
2127 ac_fn_c_check_member ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2131 $as_echo_n "checking for $2.$3... " >&6; }
2132 if eval \${$4+:} false; then :
2133 $as_echo_n "(cached) " >&6
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2148 if ac_fn_c_try_compile "$LINENO"; then :
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2158 if (sizeof ac_aggr.$3)
2164 if ac_fn_c_try_compile "$LINENO"; then :
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178 } # ac_fn_c_check_member
2179 cat >config.log <<_ACEOF
2180 This file contains any messages produced by compilers while
2181 running configure, to aid debugging if configure makes a mistake.
2183 It was created by CUPS $as_me 2.3b6, which was
2184 generated by GNU Autoconf 2.69. Invocation command line was
2196 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2197 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2198 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2199 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2200 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2202 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2203 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2205 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2206 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2207 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2208 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2209 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2210 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2211 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 test -z "$as_dir" && as_dir=.
2220 $as_echo "PATH: $as_dir"
2236 # Keep a trace of the command line.
2237 # Strip out --no-create and --no-recursion so they do not pile up.
2238 # Strip out --silent because we don't want to record it for future runs.
2239 # Also quote any args containing shell meta-characters.
2240 # Make two passes to allow for proper duplicate-argument suppression.
2244 ac_must_keep_next=false
2250 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2252 | -silent | --silent | --silen | --sile | --sil)
2255 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2258 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2260 as_fn_append ac_configure_args1 " '$ac_arg'"
2261 if test $ac_must_keep_next = true; then
2262 ac_must_keep_next=false # Got value, back to normal.
2265 *=* | --config-cache | -C | -disable-* | --disable-* \
2266 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2267 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2268 | -with-* | --with-* | -without-* | --without-* | --x)
2269 case "$ac_configure_args0 " in
2270 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2273 -* ) ac_must_keep_next=true ;;
2276 as_fn_append ac_configure_args " '$ac_arg'"
2281 { ac_configure_args0=; unset ac_configure_args0;}
2282 { ac_configure_args1=; unset ac_configure_args1;}
2284 # When interrupted or exit'd, cleanup temporary files, and complete
2285 # config.log. We remove comments because anyway the quotes in there
2286 # would cause problems or look ugly.
2287 # WARNING: Use '\'' to represent an apostrophe within the trap.
2288 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2289 trap 'exit_status=$?
2290 # Save into config.log some information that might help in debugging.
2294 $as_echo "## ---------------- ##
2295 ## Cache variables. ##
2296 ## ---------------- ##"
2298 # The following way of writing the cache mishandles newlines in values,
2300 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2301 eval ac_val=\$$ac_var
2305 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2306 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2309 _ | IFS | as_nl) ;; #(
2310 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2311 *) { eval $ac_var=; unset $ac_var;} ;;
2316 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2317 *${as_nl}ac_space=\ *)
2319 "s/'\''/'\''\\\\'\'''\''/g;
2320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2330 $as_echo "## ----------------- ##
2331 ## Output variables. ##
2332 ## ----------------- ##"
2334 for ac_var in $ac_subst_vars
2336 eval ac_val=\$$ac_var
2338 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2340 $as_echo "$ac_var='\''$ac_val'\''"
2344 if test -n "$ac_subst_files"; then
2345 $as_echo "## ------------------- ##
2346 ## File substitutions. ##
2347 ## ------------------- ##"
2349 for ac_var in $ac_subst_files
2351 eval ac_val=\$$ac_var
2353 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355 $as_echo "$ac_var='\''$ac_val'\''"
2360 if test -s confdefs.h; then
2361 $as_echo "## ----------- ##
2368 test "$ac_signal" != 0 &&
2369 $as_echo "$as_me: caught signal $ac_signal"
2370 $as_echo "$as_me: exit $exit_status"
2372 rm -f core *.core core.conftest.* &&
2373 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2376 for ac_signal in 1 2 13 15; do
2377 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2382 rm -f -r conftest* confdefs.h
2384 $as_echo "/* confdefs.h */" > confdefs.h
2386 # Predefined preprocessor variables.
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_NAME "$PACKAGE_NAME"
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_STRING "$PACKAGE_STRING"
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_URL "$PACKAGE_URL"
2413 # Let the site file select an alternate cache file if it wants to.
2414 # Prefer an explicitly selected file to automatically selected ones.
2417 if test -n "$CONFIG_SITE"; then
2418 # We do not want a PATH search for config.site.
2419 case $CONFIG_SITE in #((
2420 -*) ac_site_file1=./$CONFIG_SITE;;
2421 */*) ac_site_file1=$CONFIG_SITE;;
2422 *) ac_site_file1=./$CONFIG_SITE;;
2424 elif test "x$prefix" != xNONE; then
2425 ac_site_file1=$prefix/share/config.site
2426 ac_site_file2=$prefix/etc/config.site
2428 ac_site_file1=$ac_default_prefix/share/config.site
2429 ac_site_file2=$ac_default_prefix/etc/config.site
2431 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2433 test "x$ac_site_file" = xNONE && continue
2434 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2436 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2437 sed 's/^/| /' "$ac_site_file" >&5
2439 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441 as_fn_error $? "failed to load site
script $ac_site_file
2442 See \
`config.log' for more details" "$LINENO" 5; }
2446 if test -r "$cache_file"; then
2447 # Some versions of bash will fail to source /dev/null (special files
2448 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2449 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2451 $as_echo "$as_me: loading cache $cache_file" >&6;}
2453 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2454 *) . "./$cache_file";;
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2459 $as_echo "$as_me: creating cache $cache_file" >&6;}
2463 # Check that the precious variables saved in the cache have kept the same
2465 ac_cache_corrupted=false
2466 for ac_var in $ac_precious_vars; do
2467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2468 eval ac_new_set=\$ac_env_${ac_var}_set
2469 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2470 eval ac_new_val=\$ac_env_${ac_var}_value
2471 case $ac_old_set,$ac_new_set in
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2474 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2478 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2482 if test "x$ac_old_val" != "x$ac_new_val"; then
2483 # differences in whitespace do not lead to failure.
2484 ac_old_val_w=`echo x
$ac_old_val`
2485 ac_new_val_w=`echo x
$ac_new_val`
2486 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2488 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2489 ac_cache_corrupted=:
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2492 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2493 eval $ac_var=\$ac_old_val
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2496 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2498 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2501 # Pass precious variables to config.status.
2502 if test "$ac_new_set" = set; then
2504 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2505 *) ac_arg=$ac_var=$ac_new_val ;;
2507 case " $ac_configure_args " in
2508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2509 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2513 if $ac_cache_corrupted; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2517 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2518 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2520 ## -------------------- ##
2521 ## Main body of script. ##
2522 ## -------------------- ##
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2535 if test -f "$ac_dir/install-sh"; then
2537 ac_install_sh="$ac_aux_dir/install-sh -c"
2539 elif test -f "$ac_dir/install.sh"; then
2541 ac_install_sh="$ac_aux_dir/install.sh -c"
2543 elif test -f "$ac_dir/shtool"; then
2545 ac_install_sh="$ac_aux_dir/shtool install -c"
2549 if test -z "$ac_aux_dir"; then
2550 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2553 # These three variables are undocumented and unsupported,
2554 # and are intended to be withdrawn in a future Autoconf release.
2555 # They can cause serious problems if a builder's source tree is in a directory
2556 # whose full name contains unusual characters.
2557 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2558 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2559 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2562 # Make sure we can run config.sub.
2563 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2564 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2567 $as_echo_n "checking build system type... " >&6; }
2568 if ${ac_cv_build+:} false; then :
2569 $as_echo_n "(cached) " >&6
2571 ac_build_alias=$build_alias
2572 test "x$ac_build_alias" = x &&
2573 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2574 test "x$ac_build_alias" = x &&
2575 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2576 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2577 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2581 $as_echo "$ac_cv_build" >&6; }
2582 case $ac_cv_build in
2584 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2587 ac_save_IFS=$IFS; IFS='-'
2593 # Remember, the first character of IFS is used to create $*,
2594 # except with old shells:
2597 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2601 $as_echo_n "checking host system type... " >&6; }
2602 if ${ac_cv_host+:} false; then :
2603 $as_echo_n "(cached) " >&6
2605 if test "x$host_alias" = x; then
2606 ac_cv_host=$ac_cv_build
2608 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2614 $as_echo "$ac_cv_host" >&6; }
2617 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2620 ac_save_IFS=$IFS; IFS='-'
2626 # Remember, the first character of IFS is used to create $*,
2627 # except with old shells:
2630 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2634 host_os_name=`echo $host_os |
sed -e '1,$s/[0-9.]*$//g'`
2635 host_os_version=`echo $host_os |
sed -e '1,$s/^[^0-9.]*//g' |
awk -F.
'{print $1 $2}'`
2636 # Linux often does not yield an OS version we can use...
2637 if test "x$host_os_version" = x; then
2641 if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
2642 as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
2645 if test "$build" = "$host"; then
2646 # No, build local targets
2649 # Yes, don't build local targets
2654 for ac_prog in codesign true
2656 # Extract the first word of "$ac_prog", so it can be a program name with args.
2657 set dummy $ac_prog; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if ${ac_cv_path_CODE_SIGN+:} false; then :
2661 $as_echo_n "(cached) " >&6
2665 ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path.
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_path_CODE_SIGN="$as_dir/$ac_word$ac_exec_ext"
2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 CODE_SIGN=$ac_cv_path_CODE_SIGN
2687 if test -n "$CODE_SIGN"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5
2689 $as_echo "$CODE_SIGN" >&6; }
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2696 test -n "$CODE_SIGN" && break
2701 ac_config_headers="$ac_config_headers config.h"
2704 CUPS_VERSION="2.3b6"
2706 CUPS_BUILD="cups-$CUPS_VERSION"
2709 # Check whether --with-cups_build was given.
2710 if test "${with_cups_build+set}" = set; then :
2711 withval=$with_cups_build; CUPS_BUILD="$withval"
2718 cat >>confdefs.h <<_ACEOF
2719 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2722 cat >>confdefs.h <<_ACEOF
2723 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2727 CFLAGS="${CFLAGS:=}"
2728 CPPFLAGS="${CPPFLAGS:=}"
2729 CXXFLAGS="${CXXFLAGS:=}"
2730 LDFLAGS="${LDFLAGS:=}"
2732 for ac_prog in gawk mawk nawk awk
2734 # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy $ac_prog; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_AWK+:} false; then :
2739 $as_echo_n "(cached) " >&6
2741 if test -n "$AWK"; then
2742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_AWK="$ac_prog"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 if test -n "$AWK"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2764 $as_echo "$AWK" >&6; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2771 test -n "$AWK" && break
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 if test -n "$ac_tool_prefix"; then
2780 for ac_prog in clang cc gcc
2782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if ${ac_cv_prog_CC+:} false; then :
2787 $as_echo_n "(cached) " >&6
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 if test -n "$CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2819 test -n "$CC" && break
2822 if test -z "$CC"; then
2824 for ac_prog in clang cc gcc
2826 # Extract the first word of "$ac_prog", so it can be a program name with args.
2827 set dummy $ac_prog; ac_word=$2
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2831 $as_echo_n "(cached) " >&6
2833 if test -n "$ac_ct_CC"; then
2834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2843 ac_cv_prog_ac_ct_CC="$ac_prog"
2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2854 if test -n "$ac_ct_CC"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2856 $as_echo "$ac_ct_CC" >&6; }
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2863 test -n "$ac_ct_CC" && break
2866 if test "x$ac_ct_CC" = x; then
2869 case $cross_compiling:$ac_tool_warned in
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873 ac_tool_warned=yes ;;
2880 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2883 See \
`config.log' for more details" "$LINENO" 5; }
2885 # Provide some information about the compiler.
2886 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2889 for ac_option in --version -v -V -qversion; do
2890 { { ac_try="$ac_compiler $ac_option >&5"
2892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2893 *) ac_try_echo
=$ac_try;;
2895 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2896 $as_echo "$ac_try_echo"; } >&5
2897 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2899 if test -s conftest.err
; then
2901 ... rest of stderr output deleted ...
2902 10q' conftest.err
>conftest.er1
2903 cat conftest.er1
>&5
2905 rm -f conftest.er1 conftest.err
2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }
2910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2921 ac_clean_files_save
=$ac_clean_files
2922 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2923 # Try to create an executable without -o first, disregard a.out.
2924 # It will help us diagnose broken compilers, and finding out an intuition
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2927 $as_echo_n "checking whether the C compiler works... " >&6; }
2928 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2930 # The possible output files:
2931 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2934 for ac_file
in $ac_files
2937 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2938 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2943 if { { ac_try
="$ac_link_default"
2945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949 $as_echo "$ac_try_echo"; } >&5
2950 (eval "$ac_link_default") 2>&5
2952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953 test $ac_status = 0; }; then :
2954 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2955 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2956 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2957 # so that the user can short-circuit this test for compilers unknown to
2959 for ac_file in $ac_files ''
2961 test -f "$ac_file" || continue
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2966 # We found the default executable, but exeext='' is most
2970 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2972 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2974 # We set ac_cv_exeext here because the later test for it is not
2975 # safe: cross compilers may not add the suffix if given an `-o'
2976 # argument, so we may need to know it at that point already.
2977 # Even if this section looks crufty: it has the advantage of
2984 test "$ac_cv_exeext" = no && ac_cv_exeext=
2989 if test -z "$ac_file"; then :
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2992 $as_echo "$as_me: failed program was:" >&5
2993 sed 's
/^
/|
/' conftest.$ac_ext >&5
2995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2997 as_fn_error 77 "C compiler cannot create executables
2998 See \`config.log
' for more details" "$LINENO" 5; }
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3001 $as_echo "yes" >&6; }
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3004 $as_echo_n "checking for C compiler default output file name... " >&6; }
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3006 $as_echo "$ac_file" >&6; }
3007 ac_exeext=$ac_cv_exeext
3009 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3010 ac_clean_files=$ac_clean_files_save
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3012 $as_echo_n "checking for suffix of executables... " >&6; }
3013 if { { ac_try="$ac_link"
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3019 $as_echo "$ac_try_echo"; } >&5
3020 (eval "$ac_link") 2>&5
3022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3023 test $ac_status = 0; }; then :
3024 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3025 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3026 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3028 for ac_file
in conftest.exe conftest conftest.
*; do
3029 test -f "$ac_file" ||
continue
3031 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3032 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3040 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3041 See \`config.log' for more details" "$LINENO" 5; }
3043 rm -f conftest conftest
$ac_cv_exeext
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3045 $as_echo "$ac_cv_exeext" >&6; }
3047 rm -f conftest.
$ac_ext
3048 EXEEXT
=$ac_cv_exeext
3050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3051 /* end confdefs.h. */
3056 FILE *f = fopen ("conftest.out", "w");
3057 return ferror (f) || fclose (f) != 0;
3063 ac_clean_files
="$ac_clean_files conftest.out"
3064 # Check that the compiler produces executables we can run. If not, either
3065 # the compiler is broken, or we cross compile.
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3067 $as_echo_n "checking whether we are cross compiling... " >&6; }
3068 if test "$cross_compiling" != yes; then
3069 { { ac_try
="$ac_link"
3071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_link") 2>&5
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }
3080 if { ac_try='./conftest$ac_cv_exeext'
3081 { { case "(($ac_try" in
3082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3083 *) ac_try_echo
=$ac_try;;
3085 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 $as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_try") 2>&5
3089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090 test $ac_status = 0; }; }; then
3093 if test "$cross_compiling" = maybe
; then
3096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098 as_fn_error $?
"cannot run C compiled programs.
3099 If you meant to cross compile, use \`--host'.
3100 See \`config.log' for more details" "$LINENO" 5; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3105 $as_echo "$cross_compiling" >&6; }
3107 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3108 ac_clean_files
=$ac_clean_files_save
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3110 $as_echo_n "checking for suffix of object files... " >&6; }
3111 if ${ac_cv_objext+:} false
; then :
3112 $as_echo_n "(cached) " >&6
3114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3115 /* end confdefs.h. */
3125 rm -f conftest.o conftest.obj
3126 if { { ac_try
="$ac_compile"
3128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_compile") 2>&5
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }; then :
3137 for ac_file in conftest.o conftest.obj conftest.*; do
3138 test -f "$ac_file" || continue;
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3141 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3146 $as_echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3152 See \
`config.log' for more details" "$LINENO" 5; }
3154 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3157 $as_echo "$ac_cv_objext" >&6; }
3158 OBJEXT=$ac_cv_objext
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3161 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3162 if ${ac_cv_c_compiler_gnu+:} false; then :
3163 $as_echo_n "(cached) " >&6
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166 /* end confdefs.h. */
3179 if ac_fn_c_try_compile "$LINENO"; then :
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3189 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3190 if test $ac_compiler_gnu = yes; then
3195 ac_test_CFLAGS=${CFLAGS+set}
3196 ac_save_CFLAGS=$CFLAGS
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3198 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3199 if ${ac_cv_prog_cc_g+:} false; then :
3200 $as_echo_n "(cached) " >&6
3202 ac_save_c_werror_flag=$ac_c_werror_flag
3203 ac_c_werror_flag=yes
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3217 if ac_fn_c_try_compile "$LINENO"; then :
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3232 if ac_fn_c_try_compile "$LINENO"; then :
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3248 if ac_fn_c_try_compile "$LINENO"; then :
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256 ac_c_werror_flag=$ac_save_c_werror_flag
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3259 $as_echo "$ac_cv_prog_cc_g" >&6; }
3260 if test "$ac_test_CFLAGS" = set; then
3261 CFLAGS=$ac_save_CFLAGS
3262 elif test $ac_cv_prog_cc_g = yes; then
3263 if test "$GCC" = yes; then
3269 if test "$GCC" = yes; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3276 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3277 if ${ac_cv_prog_cc_c89+:} false; then :
3278 $as_echo_n "(cached) " >&6
3280 ac_cv_prog_cc_c89=no
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3287 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3288 struct buf { int x; };
3289 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3290 static char *e (p, i)
3296 static char *f (char * (*g) (char **, int), char **p, ...)
3301 s = g (p, va_arg (v,int));
3306 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3307 function prototypes and stuff, but not '\xHH' hex character constants.
3308 These don't provoke an error unfortunately, instead are silently treated
3309 as 'x'. The following induces an error, until -std is added to get
3310 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3311 array size at least. It's necessary to write '\x00'==0 to get something
3312 that's true only with -std. */
3313 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3315 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3316 inside strings and character constants. */
3318 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3320 int test (int i, double x);
3321 struct s1 {int (*f) (int a);};
3322 struct s2 {int (*f) (double a);};
3323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3334 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3335 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3337 CC="$ac_save_CC $ac_arg"
3338 if ac_fn_c_try_compile "$LINENO"; then :
3339 ac_cv_prog_cc_c89=$ac_arg
3341 rm -f core conftest.err conftest.$ac_objext
3342 test "x$ac_cv_prog_cc_c89" != "xno" && break
3344 rm -f conftest.$ac_ext
3349 case "x$ac_cv_prog_cc_c89" in
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3352 $as_echo "none needed" >&6; } ;;
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3355 $as_echo "unsupported" >&6; } ;;
3357 CC="$CC $ac_cv_prog_cc_c89"
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3359 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3361 if test "x$ac_cv_prog_cc_c89" != xno; then :
3366 ac_cpp='$CPP $CPPFLAGS'
3367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3377 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3378 # On Suns, sometimes $CPP names a directory.
3379 if test -n "$CPP" && test -d "$CPP"; then
3382 if test -z "$CPP"; then
3383 if ${ac_cv_prog_CPP+:} false; then :
3384 $as_echo_n "(cached) " >&6
3386 # Double quotes because CPP needs to be expanded
3387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3390 for ac_c_preproc_warn_flag in '' yes
3392 # Use a header file that comes with gcc, so configuring glibc
3393 # with a fresh cross-compiler works.
3394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395 # <limits.h> exists even on freestanding compilers.
3396 # On the NeXT, cc -E runs the code through the compiler's parser,
3397 # not just through cpp. "Syntax error" is here to catch this case.
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3401 # include <limits.h>
3403 # include <assert.h>
3407 if ac_fn_c_try_cpp "$LINENO"; then :
3410 # Broken: fails on valid input.
3413 rm -f conftest.err conftest.i conftest.$ac_ext
3415 # OK, works on sane cases. Now check whether nonexistent headers
3416 # can be detected and how.
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419 #include <ac_nonexistent.h>
3421 if ac_fn_c_try_cpp "$LINENO"; then :
3422 # Broken: success on invalid input.
3425 # Passes both tests.
3429 rm -f conftest.err conftest.i conftest.$ac_ext
3432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3433 rm -f conftest.i conftest.err conftest.
$ac_ext
3434 if $ac_preproc_ok; then :
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3447 $as_echo "$CPP" >&6; }
3449 for ac_c_preproc_warn_flag
in '' yes
3451 # Use a header file that comes with gcc, so configuring glibc
3452 # with a fresh cross-compiler works.
3453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3454 # <limits.h> exists even on freestanding compilers.
3455 # On the NeXT, cc -E runs the code through the compiler's parser,
3456 # not just through cpp. "Syntax error" is here to catch this case.
3457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3460 # include <limits.h>
3462 # include <assert.h>
3466 if ac_fn_c_try_cpp
"$LINENO"; then :
3469 # Broken: fails on valid input.
3472 rm -f conftest.err conftest.i conftest.
$ac_ext
3474 # OK, works on sane cases. Now check whether nonexistent headers
3475 # can be detected and how.
3476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3478 #include <ac_nonexistent.h>
3480 if ac_fn_c_try_cpp
"$LINENO"; then :
3481 # Broken: success on invalid input.
3484 # Passes both tests.
3488 rm -f conftest.err conftest.i conftest.
$ac_ext
3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492 rm -f conftest.i conftest.err conftest.
$ac_ext
3493 if $ac_preproc_ok; then :
3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3499 See \`config.log' for more details" "$LINENO" 5; }
3503 ac_cpp
='$CPP $CPPFLAGS'
3504 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3509 ac_cpp
='$CXXCPP $CPPFLAGS'
3510 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3513 if test -z "$CXX"; then
3514 if test -n "$CCC"; then
3517 if test -n "$ac_tool_prefix"; then
3518 for ac_prog
in clang
++ c
++ g
++
3520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3521 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if ${ac_cv_prog_CXX+:} false
; then :
3525 $as_echo_n "(cached) " >&6
3527 if test -n "$CXX"; then
3528 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3534 test -z "$as_dir" && as_dir
=.
3535 for ac_exec_ext
in '' $ac_executable_extensions; do
3536 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3537 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 if test -n "$CXX"; then
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3550 $as_echo "$CXX" >&6; }
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3557 test -n "$CXX" && break
3560 if test -z "$CXX"; then
3562 for ac_prog
in clang
++ c
++ g
++
3564 # Extract the first word of "$ac_prog", so it can be a program name with args.
3565 set dummy
$ac_prog; ac_word
=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3569 $as_echo_n "(cached) " >&6
3571 if test -n "$ac_ct_CXX"; then
3572 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3574 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3578 test -z "$as_dir" && as_dir
=.
3579 for ac_exec_ext
in '' $ac_executable_extensions; do
3580 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3581 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3592 if test -n "$ac_ct_CXX"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3594 $as_echo "$ac_ct_CXX" >&6; }
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3601 test -n "$ac_ct_CXX" && break
3604 if test "x$ac_ct_CXX" = x
; then
3607 case $cross_compiling:$ac_tool_warned in
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3611 ac_tool_warned
=yes ;;
3619 # Provide some information about the compiler.
3620 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3623 for ac_option
in --version -v -V -qversion; do
3624 { { ac_try
="$ac_compiler $ac_option >&5"
3626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3633 if test -s conftest.err; then
3635 ... rest of stderr output deleted ...
3636 10q' conftest.err >conftest.er1
3637 cat conftest.er1 >&5
3639 rm -f conftest.er1 conftest.err
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3645 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3646 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3647 $as_echo_n "(cached) " >&6
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3663 if ac_fn_cxx_try_compile "$LINENO"; then :
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3673 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3674 if test $ac_compiler_gnu = yes; then
3679 ac_test_CXXFLAGS=${CXXFLAGS+set}
3680 ac_save_CXXFLAGS=$CXXFLAGS
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3682 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3683 if ${ac_cv_prog_cxx_g+:} false; then :
3684 $as_echo_n "(cached) " >&6
3686 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3687 ac_cxx_werror_flag=yes
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3701 if ac_fn_cxx_try_compile "$LINENO"; then :
3702 ac_cv_prog_cxx_g=yes
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3716 if ac_fn_cxx_try_compile "$LINENO"; then :
3719 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3732 if ac_fn_cxx_try_compile "$LINENO"; then :
3733 ac_cv_prog_cxx_g=yes
3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3743 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3744 if test "$ac_test_CXXFLAGS" = set; then
3745 CXXFLAGS=$ac_save_CXXFLAGS
3746 elif test $ac_cv_prog_cxx_g = yes; then
3747 if test "$GXX" = yes; then
3753 if test "$GXX" = yes; then
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765 if test -n "$ac_tool_prefix"; then
3766 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3767 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if ${ac_cv_prog_RANLIB+:} false; then :
3771 $as_echo_n "(cached) " >&6
3773 if test -n "$RANLIB"; then
3774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 RANLIB=$ac_cv_prog_RANLIB
3794 if test -n "$RANLIB"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3796 $as_echo "$RANLIB" >&6; }
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3804 if test -z "$ac_cv_prog_RANLIB"; then
3805 ac_ct_RANLIB=$RANLIB
3806 # Extract the first word of "ranlib", so it can be a program name with args.
3807 set dummy ranlib; ac_word=$2
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809 $as_echo_n "checking for $ac_word... " >&6; }
3810 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3811 $as_echo_n "(cached) " >&6
3813 if test -n "$ac_ct_RANLIB"; then
3814 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823 ac_cv_prog_ac_ct_RANLIB="ranlib"
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3834 if test -n "$ac_ct_RANLIB"; then
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3836 $as_echo "$ac_ct_RANLIB" >&6; }
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 $as_echo "no" >&6; }
3842 if test "x$ac_ct_RANLIB" = x; then
3845 case $cross_compiling:$ac_tool_warned in
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3849 ac_tool_warned=yes ;;
3851 RANLIB=$ac_ct_RANLIB
3854 RANLIB="$ac_cv_prog_RANLIB"
3857 # Extract the first word of "ar", so it can be a program name with args.
3858 set dummy ar; ac_word=$2
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 $as_echo_n "checking for $ac_word... " >&6; }
3861 if ${ac_cv_path_AR+:} false; then :
3862 $as_echo_n "(cached) " >&6
3866 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3876 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 if test -n "$AR"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3890 $as_echo "$AR" >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3897 # Extract the first word of "chmod", so it can be a program name with args.
3898 set dummy chmod; ac_word=$2
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900 $as_echo_n "checking for $ac_word... " >&6; }
3901 if ${ac_cv_path_CHMOD+:} false; then :
3902 $as_echo_n "(cached) " >&6
3906 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3916 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 CHMOD=$ac_cv_path_CHMOD
3928 if test -n "$CHMOD"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3930 $as_echo "$CHMOD" >&6; }
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3937 # Extract the first word of "gzip", so it can be a program name with args.
3938 set dummy gzip; ac_word=$2
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if ${ac_cv_path_GZIP+:} false; then :
3942 $as_echo_n "(cached) " >&6
3946 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 GZIP=$ac_cv_path_GZIP
3968 if test -n "$GZIP"; then
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3970 $as_echo "$GZIP" >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 $as_echo "no" >&6; }
3977 # Extract the first word of "ld", so it can be a program name with args.
3978 set dummy ld; ac_word=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if ${ac_cv_path_LD+:} false; then :
3982 $as_echo_n "(cached) " >&6
3986 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 if test -n "$LD"; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4010 $as_echo "$LD" >&6; }
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4017 # Extract the first word of "ln", so it can be a program name with args.
4018 set dummy ln; ac_word=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if ${ac_cv_path_LN+:} false; then :
4022 $as_echo_n "(cached) " >&6
4026 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 if test -n "$LN"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4050 $as_echo "$LN" >&6; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4057 # Extract the first word of "mkdir", so it can be a program name with args.
4058 set dummy mkdir; ac_word=$2
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060 $as_echo_n "checking for $ac_word... " >&6; }
4061 if ${ac_cv_path_MKDIR+:} false; then :
4062 $as_echo_n "(cached) " >&6
4066 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 MKDIR=$ac_cv_path_MKDIR
4088 if test -n "$MKDIR"; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4090 $as_echo "$MKDIR" >&6; }
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4097 # Extract the first word of "mv", so it can be a program name with args.
4098 set dummy mv; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if ${ac_cv_path_MV+:} false; then :
4102 $as_echo_n "(cached) " >&6
4106 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 if test -n "$MV"; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4130 $as_echo "$MV" >&6; }
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4137 # Extract the first word of "rm", so it can be a program name with args.
4138 set dummy rm; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if ${ac_cv_path_RM+:} false; then :
4142 $as_echo_n "(cached) " >&6
4146 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 if test -n "$RM"; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4170 $as_echo "$RM" >&6; }
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4177 # Extract the first word of "rmdir", so it can be a program name with args.
4178 set dummy rmdir; ac_word=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if ${ac_cv_path_RMDIR+:} false; then :
4182 $as_echo_n "(cached) " >&6
4186 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 RMDIR=$ac_cv_path_RMDIR
4208 if test -n "$RMDIR"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4210 $as_echo "$RMDIR" >&6; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4217 # Extract the first word of "sed", so it can be a program name with args.
4218 set dummy sed; ac_word=$2
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220 $as_echo_n "checking for $ac_word... " >&6; }
4221 if ${ac_cv_path_SED+:} false; then :
4222 $as_echo_n "(cached) " >&6
4226 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 if test -n "$SED"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4250 $as_echo "$SED" >&6; }
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4257 # Extract the first word of "xdg-open", so it can be a program name with args.
4258 set dummy xdg-open; ac_word=$2
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260 $as_echo_n "checking for $ac_word... " >&6; }
4261 if ${ac_cv_path_XDGOPEN+:} false; then :
4262 $as_echo_n "(cached) " >&6
4266 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4276 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 XDGOPEN=$ac_cv_path_XDGOPEN
4288 if test -n "$XDGOPEN"; then
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4290 $as_echo "$XDGOPEN" >&6; }
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 $as_echo "no" >&6; }
4297 if test "x$XDGOPEN" = x; then
4298 CUPS_HTMLVIEW="htmlview"
4300 CUPS_HTMLVIEW="$XDGOPEN"
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4305 $as_echo_n "checking for install-sh script... " >&6; }
4306 INSTALL="`pwd`/install-sh"
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4309 $as_echo "using $INSTALL" >&6; }
4311 if test "x$AR" = x; then
4312 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4314 if test "x$CC" = x; then
4315 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4319 # Check whether --enable-static was given.
4320 if test "${enable_static+set}" = set; then :
4321 enableval=$enable_static;
4325 if test x$enable_static = xyes; then
4326 echo Installing static libraries...
4327 INSTALLSTATIC="installstatic"
4332 if test -n "$ac_tool_prefix"; then
4333 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4334 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if ${ac_cv_path_PKGCONFIG+:} false; then :
4338 $as_echo_n "(cached) " >&6
4342 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 PKGCONFIG=$ac_cv_path_PKGCONFIG
4364 if test -n "$PKGCONFIG"; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4366 $as_echo "$PKGCONFIG" >&6; }
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369 $as_echo "no" >&6; }
4374 if test -z "$ac_cv_path_PKGCONFIG"; then
4375 ac_pt_PKGCONFIG=$PKGCONFIG
4376 # Extract the first word of "pkg-config", so it can be a program name with args.
4377 set dummy pkg-config; ac_word=$2
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4381 $as_echo_n "(cached) " >&6
4383 case $ac_pt_PKGCONFIG in
4385 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4395 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4407 if test -n "$ac_pt_PKGCONFIG"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4409 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4415 if test "x$ac_pt_PKGCONFIG" = x; then
4418 case $cross_compiling:$ac_tool_warned in
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4422 ac_tool_warned=yes ;;
4424 PKGCONFIG=$ac_pt_PKGCONFIG
4427 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4433 $as_echo_n "checking for library containing abs... " >&6; }
4434 if ${ac_cv_search_abs+:} false; then :
4435 $as_echo_n "(cached) " >&6
4437 ac_func_search_save_LIBS=$LIBS
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4441 /* Override any GCC internal prototype to avoid an error.
4442 Use char because int might match the return type of a GCC
4443 builtin and then its argument prototype would still apply. */
4456 for ac_lib in '' m; do
4457 if test -z "$ac_lib"; then
4458 ac_res="none required"
4461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4463 if ac_fn_c_try_link "$LINENO"; then :
4464 ac_cv_search_abs=$ac_res
4466 rm -f core conftest.err conftest.$ac_objext \
4468 if ${ac_cv_search_abs+:} false; then :
4472 if ${ac_cv_search_abs+:} false; then :
4478 LIBS=$ac_func_search_save_LIBS
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4481 $as_echo "$ac_cv_search_abs" >&6; }
4482 ac_res=$ac_cv_search_abs
4483 if test "$ac_res" != no; then :
4484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4485 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4490 $as_echo_n "checking for library containing crypt... " >&6; }
4491 if ${ac_cv_search_crypt+:} false; then :
4492 $as_echo_n "(cached) " >&6
4494 ac_func_search_save_LIBS=$LIBS
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4498 /* Override any GCC internal prototype to avoid an error.
4499 Use char because int might match the return type of a GCC
4500 builtin and then its argument prototype would still apply. */
4513 for ac_lib in '' crypt; do
4514 if test -z "$ac_lib"; then
4515 ac_res="none required"
4518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4520 if ac_fn_c_try_link "$LINENO"; then :
4521 ac_cv_search_crypt=$ac_res
4523 rm -f core conftest.err conftest.$ac_objext \
4525 if ${ac_cv_search_crypt+:} false; then :
4529 if ${ac_cv_search_crypt+:} false; then :
4532 ac_cv_search_crypt=no
4535 LIBS=$ac_func_search_save_LIBS
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4538 $as_echo "$ac_cv_search_crypt" >&6; }
4539 ac_res=$ac_cv_search_crypt
4540 if test "$ac_res" != no; then :
4541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4546 $as_echo_n "checking for library containing fmod... " >&6; }
4547 if ${ac_cv_search_fmod+:} false; then :
4548 $as_echo_n "(cached) " >&6
4550 ac_func_search_save_LIBS=$LIBS
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4554 /* Override any GCC internal prototype to avoid an error.
4555 Use char because int might match the return type of a GCC
4556 builtin and then its argument prototype would still apply. */
4569 for ac_lib in '' m; do
4570 if test -z "$ac_lib"; then
4571 ac_res="none required"
4574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4576 if ac_fn_c_try_link "$LINENO"; then :
4577 ac_cv_search_fmod=$ac_res
4579 rm -f core conftest.err conftest.$ac_objext \
4581 if ${ac_cv_search_fmod+:} false; then :
4585 if ${ac_cv_search_fmod+:} false; then :
4588 ac_cv_search_fmod=no
4591 LIBS=$ac_func_search_save_LIBS
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4594 $as_echo "$ac_cv_search_fmod" >&6; }
4595 ac_res=$ac_cv_search_fmod
4596 if test "$ac_res" != no; then :
4597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4602 $as_echo_n "checking for library containing getspent... " >&6; }
4603 if ${ac_cv_search_getspent+:} false; then :
4604 $as_echo_n "(cached) " >&6
4606 ac_func_search_save_LIBS=$LIBS
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4610 /* Override any GCC internal prototype to avoid an error.
4611 Use char because int might match the return type of a GCC
4612 builtin and then its argument prototype would still apply. */
4625 for ac_lib in '' sec gen; do
4626 if test -z "$ac_lib"; then
4627 ac_res="none required"
4630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4632 if ac_fn_c_try_link "$LINENO"; then :
4633 ac_cv_search_getspent=$ac_res
4635 rm -f core conftest.err conftest.$ac_objext \
4637 if ${ac_cv_search_getspent+:} false; then :
4641 if ${ac_cv_search_getspent+:} false; then :
4644 ac_cv_search_getspent=no
4647 LIBS=$ac_func_search_save_LIBS
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4650 $as_echo "$ac_cv_search_getspent" >&6; }
4651 ac_res=$ac_cv_search_getspent
4652 if test "$ac_res" != no; then :
4653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4659 # Check whether --enable-mallinfo was given.
4660 if test "${enable_mallinfo+set}" = set; then :
4661 enableval=$enable_mallinfo;
4665 if test x$enable_mallinfo = xyes; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4669 $as_echo_n "checking for library containing mallinfo... " >&6; }
4670 if ${ac_cv_search_mallinfo+:} false; then :
4671 $as_echo_n "(cached) " >&6
4673 ac_func_search_save_LIBS=$LIBS
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4677 /* Override any GCC internal prototype to avoid an error.
4678 Use char because int might match the return type of a GCC
4679 builtin and then its argument prototype would still apply. */
4692 for ac_lib in '' malloc; do
4693 if test -z "$ac_lib"; then
4694 ac_res="none required"
4697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4699 if ac_fn_c_try_link "$LINENO"; then :
4700 ac_cv_search_mallinfo=$ac_res
4702 rm -f core conftest.err conftest.$ac_objext \
4704 if ${ac_cv_search_mallinfo+:} false; then :
4708 if ${ac_cv_search_mallinfo+:} false; then :
4711 ac_cv_search_mallinfo=no
4714 LIBS=$ac_func_search_save_LIBS
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4717 $as_echo "$ac_cv_search_mallinfo" >&6; }
4718 ac_res=$ac_cv_search_mallinfo
4719 if test "$ac_res" != no; then :
4720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4721 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4731 # Check whether --enable-libpaper was given.
4732 if test "${enable_libpaper+set}" = set; then :
4733 enableval=$enable_libpaper;
4737 if test x$enable_libpaper = xyes; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4739 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4740 if ${ac_cv_lib_paper_systempapername+:} false; then :
4741 $as_echo_n "(cached) " >&6
4743 ac_check_lib_save_LIBS=$LIBS
4744 LIBS="-lpaper $LIBS"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4748 /* Override any GCC internal prototype to avoid an error.
4749 Use char because int might match the return type of a GCC
4750 builtin and then its argument prototype would still apply. */
4754 char systempapername ();
4758 return systempapername ();
4763 if ac_fn_c_try_link "$LINENO"; then :
4764 ac_cv_lib_paper_systempapername=yes
4766 ac_cv_lib_paper_systempapername=no
4768 rm -f core conftest.err conftest.$ac_objext \
4769 conftest$ac_exeext conftest.$ac_ext
4770 LIBS=$ac_check_lib_save_LIBS
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4773 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4774 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4775 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4789 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4790 if ${ac_cv_path_GREP+:} false; then :
4791 $as_echo_n "(cached) " >&6
4793 if test -z "$GREP"; then
4794 ac_path_GREP_found=false
4795 # Loop through the user's path and test for each of PROGNAME-LIST
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4800 test -z "$as_dir" && as_dir=.
4801 for ac_prog in grep ggrep; do
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4804 as_fn_executable_p "$ac_path_GREP" || continue
4805 # Check for GNU ac_path_GREP and select it if it is found.
4806 # Check for GNU $ac_path_GREP
4807 case `"$ac_path_GREP" --version 2>&1` in
4809 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4812 $as_echo_n 0123456789 >"conftest.in"
4815 cat "conftest.in" "conftest.in" >"conftest.tmp"
4816 mv "conftest.tmp" "conftest.in"
4817 cp "conftest.in" "conftest.nl"
4818 $as_echo 'GREP' >> "conftest.nl"
4819 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4821 as_fn_arith $ac_count + 1 && ac_count=$as_val
4822 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4823 # Best one so far, save it but keep looking for a better one
4824 ac_cv_path_GREP="$ac_path_GREP"
4825 ac_path_GREP_max=$ac_count
4827 # 10*(2^10) chars as input seems more than enough
4828 test $ac_count -gt 10 && break
4830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4833 $ac_path_GREP_found && break 3
4838 if test -z "$ac_cv_path_GREP"; then
4839 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4842 ac_cv_path_GREP=$GREP
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4847 $as_echo "$ac_cv_path_GREP" >&6; }
4848 GREP="$ac_cv_path_GREP"
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4852 $as_echo_n "checking for egrep... " >&6; }
4853 if ${ac_cv_path_EGREP+:} false; then :
4854 $as_echo_n "(cached) " >&6
4856 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4857 then ac_cv_path_EGREP="$GREP -E"
4859 if test -z "$EGREP"; then
4860 ac_path_EGREP_found=false
4861 # Loop through the user's path and test for each of PROGNAME-LIST
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4866 test -z "$as_dir" && as_dir=.
4867 for ac_prog in egrep; do
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4870 as_fn_executable_p "$ac_path_EGREP" || continue
4871 # Check for GNU ac_path_EGREP and select it if it is found.
4872 # Check for GNU $ac_path_EGREP
4873 case `"$ac_path_EGREP" --version 2>&1` in
4875 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4878 $as_echo_n 0123456789 >"conftest.in"
4881 cat "conftest.in" "conftest.in" >"conftest.tmp"
4882 mv "conftest.tmp" "conftest.in"
4883 cp "conftest.in" "conftest.nl"
4884 $as_echo 'EGREP' >> "conftest.nl"
4885 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4887 as_fn_arith $ac_count + 1 && ac_count=$as_val
4888 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4889 # Best one so far, save it but keep looking for a better one
4890 ac_cv_path_EGREP="$ac_path_EGREP"
4891 ac_path_EGREP_max=$ac_count
4893 # 10*(2^10) chars as input seems more than enough
4894 test $ac_count -gt 10 && break
4896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4899 $ac_path_EGREP_found && break 3
4904 if test -z "$ac_cv_path_EGREP"; then
4905 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4908 ac_cv_path_EGREP=$EGREP
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4914 $as_echo "$ac_cv_path_EGREP" >&6; }
4915 EGREP="$ac_cv_path_EGREP"
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4919 $as_echo_n "checking for ANSI C header files... " >&6; }
4920 if ${ac_cv_header_stdc+:} false; then :
4921 $as_echo_n "(cached) " >&6
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939 ac_cv_header_stdc=yes
4941 ac_cv_header_stdc=no
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945 if test $ac_cv_header_stdc = yes; then
4946 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4953 $EGREP "memchr" >/dev/null 2>&1; then :
4956 ac_cv_header_stdc=no
4962 if test $ac_cv_header_stdc = yes; then
4963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965 /* end confdefs.h. */
4969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4970 $EGREP "free" >/dev/null 2>&1; then :
4973 ac_cv_header_stdc=no
4979 if test $ac_cv_header_stdc = yes; then
4980 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4981 if test "$cross_compiling" = yes; then :
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4988 #if ((' ' & 0x0FF) == 0x020)
4989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4992 # define ISLOWER(c) \
4993 (('a' <= (c) && (c) <= 'i') \
4994 || ('j' <= (c) && (c) <= 'r') \
4995 || ('s' <= (c) && (c) <= 'z'))
4996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5004 for (i = 0; i < 256; i++)
5005 if (XOR (islower (i), ISLOWER (i))
5006 || toupper (i) != TOUPPER (i))
5011 if ac_fn_c_try_run "$LINENO"; then :
5014 ac_cv_header_stdc=no
5016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5017 conftest.$ac_objext conftest.beam conftest.$ac_ext
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5023 $as_echo "$ac_cv_header_stdc" >&6; }
5024 if test $ac_cv_header_stdc = yes; then
5026 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5030 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5032 inttypes.h stdint.h unistd.h
5034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5035 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5037 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5038 cat >>confdefs.h <<_ACEOF
5039 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5047 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5048 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5049 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
5054 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5055 if test "x$ac_cv_header_crypt_h" = xyes; then :
5056 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5061 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5062 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5063 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5068 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5069 if test "x$ac_cv_header_malloc_h" = xyes; then :
5070 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5075 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5076 if test "x$ac_cv_header_shadow_h" = xyes; then :
5077 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5082 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5083 if test "x$ac_cv_header_stdint_h" = xyes; then :
5084 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
5089 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5090 if test "x$ac_cv_header_string_h" = xyes; then :
5091 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5096 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5097 if test "x$ac_cv_header_strings_h" = xyes; then :
5098 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5103 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5104 if test "x$ac_cv_header_bstring_h" = xyes; then :
5105 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5110 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5111 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5112 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5117 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5118 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5119 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5124 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5125 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5126 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5132 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5133 if test "x$ac_cv_header_iconv_h" = xyes; then :
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5137 $as_echo_n "checking for library containing iconv_open... " >&6; }
5138 if ${ac_cv_search_iconv_open+:} false; then :
5139 $as_echo_n "(cached) " >&6
5141 ac_func_search_save_LIBS=$LIBS
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5145 /* Override any GCC internal prototype to avoid an error.
5146 Use char because int might match the return type of a GCC
5147 builtin and then its argument prototype would still apply. */
5155 return iconv_open ();
5160 for ac_lib in '' iconv; do
5161 if test -z "$ac_lib"; then
5162 ac_res="none required"
5165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5167 if ac_fn_c_try_link "$LINENO"; then :
5168 ac_cv_search_iconv_open=$ac_res
5170 rm -f core conftest.err conftest.$ac_objext \
5172 if ${ac_cv_search_iconv_open+:} false; then :
5176 if ${ac_cv_search_iconv_open+:} false; then :
5179 ac_cv_search_iconv_open=no
5182 LIBS=$ac_func_search_save_LIBS
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5185 $as_echo "$ac_cv_search_iconv_open" >&6; }
5186 ac_res=$ac_cv_search_iconv_open
5187 if test "$ac_res" != no; then :
5188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5189 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5191 SAVELIBS="$SAVELIBS $LIBS"
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5195 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5196 if ${ac_cv_search_libiconv_open+:} false; then :
5197 $as_echo_n "(cached) " >&6
5199 ac_func_search_save_LIBS=$LIBS
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5203 /* Override any GCC internal prototype to avoid an error.
5204 Use char because int might match the return type of a GCC
5205 builtin and then its argument prototype would still apply. */
5209 char libiconv_open ();
5213 return libiconv_open ();
5218 for ac_lib in '' iconv; do
5219 if test -z "$ac_lib"; then
5220 ac_res="none required"
5223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5225 if ac_fn_c_try_link "$LINENO"; then :
5226 ac_cv_search_libiconv_open=$ac_res
5228 rm -f core conftest.err conftest.$ac_objext \
5230 if ${ac_cv_search_libiconv_open+:} false; then :
5234 if ${ac_cv_search_libiconv_open+:} false; then :
5237 ac_cv_search_libiconv_open=no
5240 LIBS=$ac_func_search_save_LIBS
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5243 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5244 ac_res=$ac_cv_search_libiconv_open
5245 if test "$ac_res" != no; then :
5246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5247 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5249 SAVELIBS="$SAVELIBS $LIBS"
5258 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5259 if test "x$ac_cv_header_mxml_h" = xyes; then :
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5262 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5263 if ${ac_cv_search_mmxlNewElement+:} false; then :
5264 $as_echo_n "(cached) " >&6
5266 ac_func_search_save_LIBS=$LIBS
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5270 /* Override any GCC internal prototype to avoid an error.
5271 Use char because int might match the return type of a GCC
5272 builtin and then its argument prototype would still apply. */
5276 char mmxlNewElement ();
5280 return mmxlNewElement ();
5285 for ac_lib in '' mxml; do
5286 if test -z "$ac_lib"; then
5287 ac_res="none required"
5290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5292 if ac_fn_c_try_link "$LINENO"; then :
5293 ac_cv_search_mmxlNewElement=$ac_res
5295 rm -f core conftest.err conftest.$ac_objext \
5297 if ${ac_cv_search_mmxlNewElement+:} false; then :
5301 if ${ac_cv_search_mmxlNewElement+:} false; then :
5304 ac_cv_search_mmxlNewElement=no
5307 LIBS=$ac_func_search_save_LIBS
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5310 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5311 ac_res=$ac_cv_search_mmxlNewElement
5312 if test "$ac_res" != no; then :
5313 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5314 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5325 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5326 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5327 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5332 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5333 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5334 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5339 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5340 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5341 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5346 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5347 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5348 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5353 for ac_func in statfs statvfs
5355 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5356 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5357 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5358 cat >>confdefs.h <<_ACEOF
5359 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5366 for ac_func in strdup strlcat strlcpy
5368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5370 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5371 cat >>confdefs.h <<_ACEOF
5372 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5378 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5379 echo Forcing snprintf emulation for HP-UX.
5381 for ac_func in snprintf vsnprintf
5383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5384 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5385 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5386 cat >>confdefs.h <<_ACEOF
5387 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5395 for ac_func in random lrand48 arc4random
5397 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5398 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5399 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5400 cat >>confdefs.h <<_ACEOF
5401 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5408 for ac_func in geteuid
5410 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5411 if test "x$ac_cv_func_geteuid" = xyes; then :
5412 cat >>confdefs.h <<_ACEOF
5413 #define HAVE_GETEUID 1
5420 for ac_func in setpgid
5422 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5423 if test "x$ac_cv_func_setpgid" = xyes; then :
5424 cat >>confdefs.h <<_ACEOF
5425 #define HAVE_SETPGID 1
5432 for ac_func in vsyslog
5434 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5435 if test "x$ac_cv_func_vsyslog" = xyes; then :
5436 cat >>confdefs.h <<_ACEOF
5437 #define HAVE_VSYSLOG 1
5444 case "$host_os_name" in
5446 # Do not use sigset on Linux or GNU HURD
5449 # Use sigset on other platforms, if available
5450 for ac_func in sigset
5452 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5453 if test "x$ac_cv_func_sigset" = xyes; then :
5454 cat >>confdefs.h <<_ACEOF
5455 #define HAVE_SIGSET 1
5464 for ac_func in sigaction
5466 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5467 if test "x$ac_cv_func_sigaction" = xyes; then :
5468 cat >>confdefs.h <<_ACEOF
5469 #define HAVE_SIGACTION 1
5476 for ac_func in waitpid wait3
5478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5479 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5480 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5481 cat >>confdefs.h <<_ACEOF
5482 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5489 for ac_func in posix_spawn
5491 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5492 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5493 cat >>confdefs.h <<_ACEOF
5494 #define HAVE_POSIX_SPAWN 1
5501 for ac_func in getgrouplist
5503 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5504 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5505 cat >>confdefs.h <<_ACEOF
5506 #define HAVE_GETGROUPLIST 1
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5514 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5522 int o = t.tm_gmtoff;
5527 if ac_fn_c_try_compile "$LINENO"; then :
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5529 $as_echo "yes" >&6; }
5530 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5539 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 #include <sys/stat.h>
5552 if ac_fn_c_try_compile "$LINENO"; then :
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5554 $as_echo "yes" >&6; }
5555 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 for ac_func in removefile
5565 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5566 if test "x$ac_cv_func_removefile" = xyes; then :
5567 cat >>confdefs.h <<_ACEOF
5568 #define HAVE_REMOVEFILE 1
5575 # Check whether --enable-libusb was given.
5576 if test "${enable_libusb+set}" = set; then :
5577 enableval=$enable_libusb;
5586 if test "x$PKGCONFIG" != x; then
5587 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5589 $as_echo_n "checking for libusb-1.0... " >&6; }
5590 if $PKGCONFIG --exists libusb-1.0; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5592 $as_echo "yes" >&6; }
5593 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5595 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5596 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5597 USBQUIRKS="\$(DATADIR)/usb"
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 if test x$enable_libusb = xyes; then
5602 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5606 elif test x$enable_libusb = xyes; then
5607 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5610 # Check whether --enable-tcp_wrappers was given.
5611 if test "${enable_tcp_wrappers+set}" = set; then :
5612 enableval=$enable_tcp_wrappers;
5619 if test x$enable_tcp_wrappers = xyes; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5621 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5622 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5623 $as_echo_n "(cached) " >&6
5625 ac_check_lib_save_LIBS=$LIBS
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5630 /* Override any GCC internal prototype to avoid an error.
5631 Use char because int might match the return type of a GCC
5632 builtin and then its argument prototype would still apply. */
5636 char hosts_access ();
5640 return hosts_access ();
5645 if ac_fn_c_try_link "$LINENO"; then :
5646 ac_cv_lib_wrap_hosts_access=yes
5648 ac_cv_lib_wrap_hosts_access=no
5650 rm -f core conftest.err conftest.$ac_objext \
5651 conftest$ac_exeext conftest.$ac_ext
5652 LIBS=$ac_check_lib_save_LIBS
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5655 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5656 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5658 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5659 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5660 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5672 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5673 if test "x$ac_cv_header_zlib_h" = xyes; then :
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5675 $as_echo_n "checking for gzgets in -lz... " >&6; }
5676 if ${ac_cv_lib_z_gzgets+:} false; then :
5677 $as_echo_n "(cached) " >&6
5679 ac_check_lib_save_LIBS=$LIBS
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5684 /* Override any GCC internal prototype to avoid an error.
5685 Use char because int might match the return type of a GCC
5686 builtin and then its argument prototype would still apply. */
5699 if ac_fn_c_try_link "$LINENO"; then :
5700 ac_cv_lib_z_gzgets=yes
5702 ac_cv_lib_z_gzgets=no
5704 rm -f core conftest.err conftest.$ac_objext \
5705 conftest$ac_exeext conftest.$ac_ext
5706 LIBS=$ac_check_lib_save_LIBS
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5709 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5710 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5711 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5716 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5717 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5718 $as_echo_n "(cached) " >&6
5720 ac_check_lib_save_LIBS=$LIBS
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5725 /* Override any GCC internal prototype to avoid an error.
5726 Use char because int might match the return type of a GCC
5727 builtin and then its argument prototype would still apply. */
5731 char inflateCopy ();
5735 return inflateCopy ();
5740 if ac_fn_c_try_link "$LINENO"; then :
5741 ac_cv_lib_z_inflateCopy=yes
5743 ac_cv_lib_z_inflateCopy=no
5745 rm -f core conftest.err conftest.$ac_objext \
5746 conftest$ac_exeext conftest.$ac_ext
5747 LIBS=$ac_check_lib_save_LIBS
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5750 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5751 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5752 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5756 if test "x$GZIP" != z; then
5767 case $host_os_name in
5785 # Check whether --enable-acl was given.
5786 if test "${enable_acl+set}" = set; then :
5787 enableval=$enable_acl;
5790 if test "x$enable_acl" != xno; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5792 $as_echo_n "checking for library containing acl_init... " >&6; }
5793 if ${ac_cv_search_acl_init+:} false; then :
5794 $as_echo_n "(cached) " >&6
5796 ac_func_search_save_LIBS=$LIBS
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5800 /* Override any GCC internal prototype to avoid an error.
5801 Use char because int might match the return type of a GCC
5802 builtin and then its argument prototype would still apply. */
5815 for ac_lib in '' acl; do
5816 if test -z "$ac_lib"; then
5817 ac_res="none required"
5820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5822 if ac_fn_c_try_link "$LINENO"; then :
5823 ac_cv_search_acl_init=$ac_res
5825 rm -f core conftest.err conftest.$ac_objext \
5827 if ${ac_cv_search_acl_init+:} false; then :
5831 if ${ac_cv_search_acl_init+:} false; then :
5834 ac_cv_search_acl_init=no
5837 LIBS=$ac_func_search_save_LIBS
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5840 $as_echo "$ac_cv_search_acl_init" >&6; }
5841 ac_res=$ac_cv_search_acl_init
5842 if test "$ac_res" != no; then :
5843 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5844 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5848 SERVERLIBS="$SERVERLIBS $LIBS"
5852 # Check whether --enable-dbus was given.
5853 if test "${enable_dbus+set}" = set; then :
5854 enableval=$enable_dbus;
5858 # Check whether --with-dbusdir was given.
5859 if test "${with_dbusdir+set}" = set; then :
5860 withval=$with_dbusdir; DBUSDIR="$withval"
5866 DBUS_NOTIFIERLIBS=""
5868 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5870 $as_echo_n "checking for DBUS... " >&6; }
5871 if $PKGCONFIG --exists dbus-1; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5873 $as_echo "yes" >&6; }
5874 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5876 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5877 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5878 DBUS_NOTIFIER="dbus"
5879 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5881 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5882 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5883 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5884 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5888 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5889 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5890 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5895 if test -d /etc/dbus-1; then
5896 DBUSDIR="/etc/dbus-1"
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5908 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5909 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5910 CUPS_SYSTEM_AUTHKEY=""
5913 case $host_os_name in
5915 BACKLIBS="$BACKLIBS -framework IOKit"
5916 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5917 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5919 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5920 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5921 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5926 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5927 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5928 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5933 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5934 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5935 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5940 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5941 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5942 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5948 for ac_func in SCDynamicStoreCopyComputerName
5950 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5951 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5952 cat >>confdefs.h <<_ACEOF
5953 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5960 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5961 if test "x$ac_cv_header_membership_h" = xyes; then :
5962 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5967 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5968 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5969 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5974 for ac_func in mbr_uid_to_uuid
5976 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5977 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5978 cat >>confdefs.h <<_ACEOF
5979 #define HAVE_MBR_UID_TO_UUID 1
5986 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5987 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5988 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5994 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5995 if test "x$ac_cv_header_notify_h" = xyes; then :
5996 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
6001 for ac_func in notify_post
6003 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
6004 if test "x$ac_cv_func_notify_post" = xyes; then :
6005 cat >>confdefs.h <<_ACEOF
6006 #define HAVE_NOTIFY_POST 1
6014 # Check whether --with-adminkey was given.
6015 if test "${with_adminkey+set}" = set; then :
6016 withval=$with_adminkey; default_adminkey="$withval"
6018 default_adminkey="default"
6022 # Check whether --with-operkey was given.
6023 if test "${with_operkey+set}" = set; then :
6024 withval=$with_operkey; default_operkey="$withval"
6026 default_operkey="default"
6030 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
6031 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
6033 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
6036 if test "x$default_adminkey" != xdefault; then
6037 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
6038 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
6040 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
6041 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
6044 if test "x$default_operkey" != xdefault; then
6045 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
6047 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
6052 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
6053 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
6054 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
6060 if test $host_os_version -ge 100; then
6061 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6062 if test "x$ac_cv_header_sandbox_h" = xyes; then :
6063 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
6069 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
6070 # Broken public headers in 10.7.x...
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
6072 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
6073 if test -f /usr/local/include/sandbox/private.h; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6075 $as_echo "yes" >&6; }
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6079 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
6083 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
6084 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
6085 $as_echo "#define HAVE_XPC 1" >>confdefs.h
6087 INSTALLXPC="install-xpc"
6091 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
6092 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
6093 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
6102 cat >>confdefs.h <<_ACEOF
6103 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6106 cat >>confdefs.h <<_ACEOF
6107 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6116 # Check whether --with-components was given.
6117 if test "${with_components+set}" = set; then :
6118 withval=$with_components; COMPONENTS="$withval"
6122 case "$COMPONENTS" in
6124 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6128 BUILDDIRS="data locale"
6132 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6141 if test "$prefix" = "NONE"; then
6145 if test "$exec_prefix" = "NONE"; then
6146 if test "$prefix" = "/"; then
6149 exec_prefix="$prefix"
6153 if test "$bindir" = "\${exec_prefix}/bin"; then
6154 bindir="$exec_prefix/bin"
6157 cat >>confdefs.h <<_ACEOF
6158 #define CUPS_BINDIR "$bindir"
6162 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6163 sbindir="$exec_prefix/sbin"
6166 cat >>confdefs.h <<_ACEOF
6167 #define CUPS_SBINDIR "$sbindir"
6171 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6172 sharedstatedir="/usr/com"
6175 if test "$datarootdir" = "\${prefix}/share"; then
6176 if test "$prefix" = "/"; then
6177 datarootdir="/usr/share"
6179 datarootdir="$prefix/share"
6183 if test "$datadir" = "\${prefix}/share"; then
6184 if test "$prefix" = "/"; then
6185 datadir="/usr/share"
6187 datadir="$prefix/share"
6189 elif test "$datadir" = "\${datarootdir}"; then
6190 datadir="$datarootdir"
6193 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6194 includedir="/usr/include"
6197 if test "$localstatedir" = "\${prefix}/var"; then
6198 if test "$prefix" = "/"; then
6199 if test "$host_os_name" = darwin; then
6200 localstatedir="/private/var"
6202 localstatedir="/var"
6205 localstatedir="$prefix/var"
6209 if test "$sysconfdir" = "\${prefix}/etc"; then
6210 if test "$prefix" = "/"; then
6211 if test "$host_os_name" = darwin; then
6212 sysconfdir="/private/etc"
6217 sysconfdir="$prefix/etc"
6221 if test "$libdir" = "\${exec_prefix}/lib"; then
6222 case "$host_os_name" in
6224 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6225 libdir="$exec_prefix/lib64"
6232 # Check whether --with-privateinclude was given.
6233 if test "${with_privateinclude+set}" = set; then :
6234 withval=$with_privateinclude; privateinclude="$withval"
6239 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6240 PRIVATEINCLUDE="$privateinclude/cups"
6249 # Check whether --with-lpdconfig was given.
6250 if test "${with_lpdconfig+set}" = set; then :
6251 withval=$with_lpdconfig; LPDCONFIG="$withval"
6257 if test "x$LPDCONFIG" = x; then
6258 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6259 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6260 elif test "x$XINETD" != x; then
6261 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6265 if test "x$LPDCONFIG" = xoff; then
6266 cat >>confdefs.h <<_ACEOF
6267 #define CUPS_DEFAULT_LPD_CONFIG ""
6271 cat >>confdefs.h <<_ACEOF
6272 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6278 # Check whether --with-smbconfig was given.
6279 if test "${with_smbconfig+set}" = set; then :
6280 withval=$with_smbconfig; SMBCONFIG="$withval"
6286 if test "x$SMBCONFIG" = x; then
6287 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6288 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6290 for dir in /etc /etc/samba /usr/local/etc; do
6291 if test -f $dir/smb.conf; then
6292 SMBCONFIG="samba://$dir/smb.conf"
6299 if test "x$SMBCONFIG" = xoff; then
6300 cat >>confdefs.h <<_ACEOF
6301 #define CUPS_DEFAULT_SMB_CONFIG ""
6305 cat >>confdefs.h <<_ACEOF
6306 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6313 # Check whether --with-cachedir was given.
6314 if test "${with_cachedir+set}" = set; then :
6315 withval=$with_cachedir; cachedir="$withval"
6321 if test x$cachedir = x; then
6322 if test "x$host_os_name" = xdarwin; then
6323 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6325 CUPS_CACHEDIR="$localstatedir/cache/cups"
6328 CUPS_CACHEDIR="$cachedir"
6330 cat >>confdefs.h <<_ACEOF
6331 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6337 CUPS_DATADIR="$datadir/cups"
6338 cat >>confdefs.h <<_ACEOF
6339 #define CUPS_DATADIR "$datadir/cups"
6346 # Check whether --with-icondir was given.
6347 if test "${with_icondir+set}" = set; then :
6348 withval=$with_icondir; icondir="$withval"
6354 if test "x$icondir" = x -a -d /usr/share/icons; then
6355 ICONDIR="/usr/share/icons"
6364 # Check whether --with-menudir was given.
6365 if test "${with_menudir+set}" = set; then :
6366 withval=$with_menudir; menudir="$withval"
6372 if test "x$menudir" = x -a -d /usr/share/applications; then
6373 MENUDIR="/usr/share/applications"
6380 # Documentation files
6382 # Check whether --with-docdir was given.
6383 if test "${with_docdir+set}" = set; then :
6384 withval=$with_docdir; docdir="$withval"
6390 if test x$docdir = x; then
6391 CUPS_DOCROOT="$datadir/doc/cups"
6392 docdir="$datadir/doc/cups"
6394 CUPS_DOCROOT="$docdir"
6397 cat >>confdefs.h <<_ACEOF
6398 #define CUPS_DOCROOT "$docdir"
6405 # Check whether --with-fontpath was given.
6406 if test "${with_fontpath+set}" = set; then :
6407 withval=$with_fontpath; fontpath="$withval"
6413 if test "x$fontpath" = "x"; then
6414 CUPS_FONTPATH="$datadir/cups/fonts"
6416 CUPS_FONTPATH="$fontpath"
6420 cat >>confdefs.h <<_ACEOF
6421 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6426 if test "$localedir" = "\${datarootdir}/locale"; then
6427 case "$host_os_name" in
6428 linux* | gnu* | *bsd* | darwin*)
6429 CUPS_LOCALEDIR="$datarootdir/locale"
6433 # This is the standard System V location...
6434 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6438 CUPS_LOCALEDIR="$localedir"
6441 cat >>confdefs.h <<_ACEOF
6442 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6449 # Check whether --with-logdir was given.
6450 if test "${with_logdir+set}" = set; then :
6451 withval=$with_logdir; logdir="$withval"
6457 if test x$logdir = x; then
6458 CUPS_LOGDIR="$localstatedir/log/cups"
6459 cat >>confdefs.h <<_ACEOF
6460 #define CUPS_LOGDIR "$localstatedir/log/cups"
6464 CUPS_LOGDIR="$logdir"
6466 cat >>confdefs.h <<_ACEOF
6467 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6472 # Longer-term spool data
6473 CUPS_REQUESTS="$localstatedir/spool/cups"
6474 cat >>confdefs.h <<_ACEOF
6475 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6480 # Server executables...
6481 case "$host_os_name" in
6483 # *BSD and Darwin (macOS)
6485 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6489 INSTALL_SYSV="install-sysv"
6490 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6494 cat >>confdefs.h <<_ACEOF
6495 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6501 # Configuration files
6502 CUPS_SERVERROOT="$sysconfdir/cups"
6503 cat >>confdefs.h <<_ACEOF
6504 #define CUPS_SERVERROOT "$sysconfdir/cups"
6509 # Transient run-time state
6511 # Check whether --with-rundir was given.
6512 if test "${with_rundir+set}" = set; then :
6513 withval=$with_rundir; CUPS_STATEDIR="$withval"
6516 case "$host_os_name" in
6519 CUPS_STATEDIR="$CUPS_SERVERROOT"
6523 CUPS_STATEDIR="$localstatedir/run/cups"
6528 cat >>confdefs.h <<_ACEOF
6529 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6535 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6536 # New GNU "standards" break previous ones, so make sure we use
6537 # the right default location for the operating system...
6538 mandir="\${prefix}/man"
6541 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6542 case "$host_os_name" in
6543 darwin* | linux* | gnu* | *bsd*)
6544 # Darwin, macOS, Linux, GNU HURD, and *BSD
6545 mandir="/usr/share/man"
6546 AMANDIR="/usr/share/man"
6547 PMANDIR="/usr/share/man"
6564 case "$host_os_name" in
6573 linux* | gnu* | darwin*)
6574 # Linux, GNU Hurd, and macOS
6600 DSOFLAGS="${DSOFLAGS:=}"
6602 # Check whether --enable-shared was given.
6603 if test "${enable_shared+set}" = set; then :
6604 enableval=$enable_shared;
6609 LIBCUPSBASE="lib$cupsbase"
6610 LIBCUPSSTATIC="lib$cupsbase.a"
6612 if test x$enable_shared != xno; then
6613 case "$host_os_name" in
6615 LIBCUPS="lib$cupsbase.so.2"
6616 LIBCUPSCGI="libcupscgi.so.1"
6617 LIBCUPSIMAGE="libcupsimage.so.2"
6618 LIBCUPSMIME="libcupsmime.so.1"
6619 LIBCUPSPPDC="libcupsppdc.so.1"
6622 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G \$(OPTIM)"
6624 linux* | gnu* | *bsd*)
6625 LIBCUPS="lib$cupsbase.so.2"
6626 LIBCUPSCGI="libcupscgi.so.1"
6627 LIBCUPSIMAGE="libcupsimage.so.2"
6628 LIBCUPSMIME="libcupsmime.so.1"
6629 LIBCUPSPPDC="libcupsppdc.so.1"
6632 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6635 LIBCUPS="lib$cupsbase.2.dylib"
6636 LIBCUPSCGI="libcupscgi.1.dylib"
6637 LIBCUPSIMAGE="libcupsimage.2.dylib"
6638 LIBCUPSMIME="libcupsmime.1.dylib"
6639 LIBCUPSPPDC="libcupsppdc.1.dylib"
6642 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6645 echo "Warning: shared libraries may not be supported. Trying -shared"
6646 echo " option with compiler."
6647 LIBCUPS="lib$cupsbase.so.2"
6648 LIBCUPSCGI="libcupscgi.so.1"
6649 LIBCUPSIMAGE="libcupsimage.so.2"
6650 LIBCUPSMIME="libcupsmime.so.1"
6651 LIBCUPSPPDC="libcupsppdc.so.1"
6654 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6659 LIBCUPS="lib$cupsbase.a"
6660 LIBCUPSCGI="libcupscgi.a"
6661 LIBCUPSIMAGE="libcupsimage.a"
6662 LIBCUPSMIME="libcupsmime.a"
6663 LIBCUPSPPDC="libcupsppdc.a"
6679 if test x$enable_shared = xno; then
6680 LINKCUPS="../cups/lib$cupsbase.a"
6681 LINKCUPSIMAGE="../cups/libcupsimage.a"
6683 EXTLINKCUPS="-lcups"
6684 EXTLINKCUPSIMAGE="-lcupsimage"
6686 LINKCUPS="-l${cupsbase}"
6687 LINKCUPSIMAGE="-lcupsimage"
6689 EXTLINKCUPS="-lcups"
6690 EXTLINKCUPSIMAGE="-lcupsimage"
6700 if test "$DSO" != ":"; then
6701 # When using DSOs the image libraries are linked to libcupsimage.so
6702 # rather than to the executables. This makes things smaller if you
6703 # are using any static libraries, and it also allows us to distribute
6704 # a single DSO rather than a bunch...
6708 # Tell the run-time linkers where to find a DSO. Some platforms
6709 # need this option, even when the library is installed in a
6710 # standard location...
6711 case $host_os_name in
6714 if test $exec_prefix != /usr; then
6715 DSOFLAGS="-R$libdir $DSOFLAGS"
6716 LDFLAGS="$LDFLAGS -R$libdir"
6717 EXPORT_LDFLAGS="-R$libdir"
6722 if test $exec_prefix != /usr; then
6723 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6724 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6725 EXPORT_LDFLAGS="-Wl,-R$libdir"
6729 # Linux, and HURD...
6730 if test $exec_prefix != /usr; then
6731 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6732 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6733 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6747 # Check whether --enable-libtool_unsupported was given.
6748 if test "${enable_libtool_unsupported+set}" = set; then :
6749 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6750 if test x$enable_libtool_unsupported == xyes; then
6751 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6753 LIBTOOL="$enable_libtool_unsupported"
6755 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6756 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6763 if test x$LIBTOOL != x; then
6764 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6765 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6767 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6768 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6770 LIBCUPS="libcups.la"
6771 LIBCUPSSTATIC="libcups.la"
6772 LIBCUPSCGI="libcupscgi.la"
6773 LIBCUPSIMAGE="libcupsimage.la"
6774 LIBCUPSMIME="libcupsmime.la"
6775 LIBCUPSPPDC="libcupsppdc.la"
6777 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
6778 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
6779 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
6781 LINKCUPS="../cups/\$(LIBCUPS)"
6782 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
6808 # Check whether --with-optim was given.
6809 if test "${with_optim+set}" = set; then :
6810 withval=$with_optim;
6813 # Check whether --enable-debug was given.
6814 if test "${enable_debug+set}" = set; then :
6815 enableval=$enable_debug;
6818 # Check whether --enable-debug_guards was given.
6819 if test "${enable_debug_guards+set}" = set; then :
6820 enableval=$enable_debug_guards;
6823 # Check whether --enable-debug_printfs was given.
6824 if test "${enable_debug_printfs+set}" = set; then :
6825 enableval=$enable_debug_printfs;
6828 # Check whether --enable-unit_tests was given.
6829 if test "${enable_unit_tests+set}" = set; then :
6830 enableval=$enable_unit_tests;
6834 if test x$enable_debug = xyes; then
6840 if test x$enable_debug_printfs = xyes; then
6841 CFLAGS="$CFLAGS -DDEBUG"
6842 CXXFLAGS="$CXXFLAGS -DDEBUG"
6845 if test x$enable_debug_guards = xyes; then
6846 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6847 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6850 if test x$enable_unit_tests = xyes; then
6851 if test "$build" != "$host"; then
6852 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6855 UNITTESTS="unittests"
6862 # Check whether --with-archflags was given.
6863 if test "${with_archflags+set}" = set; then :
6864 withval=$with_archflags;
6868 # Check whether --with-ldarchflags was given.
6869 if test "${with_ldarchflags+set}" = set; then :
6870 withval=$with_ldarchflags;
6874 if test -z "$with_archflags"; then
6877 ARCHFLAGS="$with_archflags"
6880 if test -z "$with_ldarchflags"; then
6881 if test "$host_os_name" = darwin; then
6882 # Only create Intel programs by default
6883 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6885 LDARCHFLAGS="$ARCHFLAGS"
6888 LDARCHFLAGS="$with_ldarchflags"
6894 # Check whether --enable-relro was given.
6895 if test "${enable_relro+set}" = set; then :
6896 enableval=$enable_relro;
6900 CXXLIBS="${CXXLIBS:=}"
6909 if test -n "$GCC"; then
6910 # Add GCC-specific compiler options...
6911 if test -z "$OPTIM"; then
6912 if test "x$with_optim" = x; then
6913 # Default to optimize-for-size and debug
6916 OPTIM="$with_optim $OPTIM"
6920 # Generate position-independent code as needed...
6921 if test $PICFLAG = 1; then
6922 OPTIM="-fPIC $OPTIM"
6925 # The -fstack-protector option is available with some versions of
6926 # GCC and adds "stack canaries" which detect when the return address
6927 # has been overwritten, preventing many types of exploit attacks.
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6929 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6931 CFLAGS="$CFLAGS -fstack-protector"
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6943 if ac_fn_c_try_link "$LINENO"; then :
6944 if test "x$LSB_BUILD" = xy; then
6945 # Can't use stack-protector with LSB binaries...
6946 OPTIM="$OPTIM -fno-stack-protector"
6948 OPTIM="$OPTIM -fstack-protector"
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6951 $as_echo "yes" >&6; }
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6956 rm -f core conftest.err conftest.$ac_objext \
6957 conftest$ac_exeext conftest.$ac_ext
6960 if test "x$LSB_BUILD" != xy; then
6961 # The -fPIE option is available with some versions of GCC and
6962 # adds randomization of addresses, which avoids another class of
6963 # exploits that depend on a fixed address for common functions.
6965 # Not available to LSB binaries...
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6967 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6969 case "$host_os_name" in
6971 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6983 if ac_fn_c_try_compile "$LINENO"; then :
6985 PIEFLAGS="-fPIE -Wl,-pie"
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6987 $as_echo "yes" >&6; }
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996 CFLAGS="$CFLAGS -fPIE -pie"
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
7008 if ac_fn_c_try_compile "$LINENO"; then :
7010 PIEFLAGS="-fPIE -pie"
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7012 $as_echo "yes" >&6; }
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7023 if test "x$with_optim" = x; then
7024 # Add useful warning options for tracking down problems...
7025 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-unused-result" >&5
7028 $as_echo_n "checking whether compiler supports -Wno-unused-result... " >&6; }
7030 CFLAGS="$CFLAGS -Werror -Wno-unused-result"
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7042 if ac_fn_c_try_compile "$LINENO"; then :
7043 OPTIM="$OPTIM -Wno-unused-result"
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7045 $as_echo "yes" >&6; }
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-conversion" >&5
7054 $as_echo_n "checking whether compiler supports -Wsign-conversion... " >&6; }
7056 CFLAGS="$CFLAGS -Werror -Wsign-conversion"
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7068 if ac_fn_c_try_compile "$LINENO"; then :
7069 OPTIM="$OPTIM -Wsign-conversion"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7071 $as_echo "yes" >&6; }
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 $as_echo "no" >&6; }
7076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-compare" >&5
7080 $as_echo_n "checking whether compiler supports -Wno-tautological-compare... " >&6; }
7082 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7094 if ac_fn_c_try_compile "$LINENO"; then :
7095 OPTIM="$OPTIM -Wno-tautological-compare"
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7097 $as_echo "yes" >&6; }
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-truncation" >&5
7106 $as_echo_n "checking whether compiler supports -Wno-format-truncation... " >&6; }
7108 CFLAGS="$CFLAGS -Werror -Wno-format-truncation"
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7120 if ac_fn_c_try_compile "$LINENO"; then :
7121 OPTIM="$OPTIM -Wno-format-truncation"
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7123 $as_echo "yes" >&6; }
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131 # Additional warning options for development testing...
7132 if test -d .svn; then
7133 OPTIM="-Werror $OPTIM"
7137 case "$host_os_name" in
7139 # -D_FORTIFY_SOURCE=2 adds additional object size
7140 # checking, basically wrapping all string functions
7141 # with buffer-limited ones. Not strictly needed for
7142 # CUPS since we already use buffer-limited calls, but
7143 # this will catch any additions that are broken.
7144 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7148 # The -z relro option is provided by the Linux linker command to
7149 # make relocatable data read-only.
7150 if test x$enable_relro = xyes; then
7151 RELROFLAGS="-Wl,-z,relro,-z,now"
7156 # Add vendor-specific compiler options...
7157 case $host_os_name in
7160 if test -z "$OPTIM"; then
7161 if test "x$with_optim" = x; then
7164 OPTIM="$with_optim $OPTIM"
7168 if test $PICFLAG = 1; then
7169 OPTIM="-KPIC $OPTIM"
7173 # Running some other operating system; inform the user they
7174 # should contribute the necessary options to
7175 # cups-support@cups.org...
7176 echo "Building CUPS with default compiler optimizations; contact"
7177 echo "cups-devel@cups.org with uname and compiler options needed"
7178 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7179 echo "variables before running configure."
7184 # Add general compiler options per platform...
7185 case $host_os_name in
7187 # glibc 2.8 and higher breaks peer credentials unless you
7188 # define _GNU_SOURCE...
7189 OPTIM="$OPTIM -D_GNU_SOURCE"
7195 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
7196 #include <sys/socket.h>
7197 #include <netinet/in.h>
7198 #include <arpa/inet.h>
7199 #include <netinet/in_systm.h>
7200 #include <netinet/ip.h>
7202 if test "x$ac_cv_header_resolv_h" = xyes; then :
7203 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7209 $as_echo_n "checking for library containing socket... " >&6; }
7210 if ${ac_cv_search_socket+:} false; then :
7211 $as_echo_n "(cached) " >&6
7213 ac_func_search_save_LIBS=$LIBS
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7217 /* Override any GCC internal prototype to avoid an error.
7218 Use char because int might match the return type of a GCC
7219 builtin and then its argument prototype would still apply. */
7232 for ac_lib in '' socket; do
7233 if test -z "$ac_lib"; then
7234 ac_res="none required"
7237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7239 if ac_fn_c_try_link "$LINENO"; then :
7240 ac_cv_search_socket=$ac_res
7242 rm -f core conftest.err conftest.$ac_objext \
7244 if ${ac_cv_search_socket+:} false; then :
7248 if ${ac_cv_search_socket+:} false; then :
7251 ac_cv_search_socket=no
7254 LIBS=$ac_func_search_save_LIBS
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7257 $as_echo "$ac_cv_search_socket" >&6; }
7258 ac_res=$ac_cv_search_socket
7259 if test "$ac_res" != no; then :
7260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7265 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7266 if ${ac_cv_search_gethostbyaddr+:} false; then :
7267 $as_echo_n "(cached) " >&6
7269 ac_func_search_save_LIBS=$LIBS
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7273 /* Override any GCC internal prototype to avoid an error.
7274 Use char because int might match the return type of a GCC
7275 builtin and then its argument prototype would still apply. */
7279 char gethostbyaddr ();
7283 return gethostbyaddr ();
7288 for ac_lib in '' nsl; do
7289 if test -z "$ac_lib"; then
7290 ac_res="none required"
7293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7295 if ac_fn_c_try_link "$LINENO"; then :
7296 ac_cv_search_gethostbyaddr=$ac_res
7298 rm -f core conftest.err conftest.$ac_objext \
7300 if ${ac_cv_search_gethostbyaddr+:} false; then :
7304 if ${ac_cv_search_gethostbyaddr+:} false; then :
7307 ac_cv_search_gethostbyaddr=no
7310 LIBS=$ac_func_search_save_LIBS
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7313 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7314 ac_res=$ac_cv_search_gethostbyaddr
7315 if test "$ac_res" != no; then :
7316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7321 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7322 if ${ac_cv_search_getifaddrs+:} false; then :
7323 $as_echo_n "(cached) " >&6
7325 ac_func_search_save_LIBS=$LIBS
7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h. */
7329 /* Override any GCC internal prototype to avoid an error.
7330 Use char because int might match the return type of a GCC
7331 builtin and then its argument prototype would still apply. */
7339 return getifaddrs ();
7344 for ac_lib in '' nsl; do
7345 if test -z "$ac_lib"; then
7346 ac_res="none required"
7349 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7351 if ac_fn_c_try_link "$LINENO"; then :
7352 ac_cv_search_getifaddrs=$ac_res
7354 rm -f core conftest.err conftest.$ac_objext \
7356 if ${ac_cv_search_getifaddrs+:} false; then :
7360 if ${ac_cv_search_getifaddrs+:} false; then :
7363 ac_cv_search_getifaddrs=no
7366 LIBS=$ac_func_search_save_LIBS
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7369 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7370 ac_res=$ac_cv_search_getifaddrs
7371 if test "$ac_res" != no; then :
7372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7373 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7378 $as_echo_n "checking for library containing hstrerror... " >&6; }
7379 if ${ac_cv_search_hstrerror+:} false; then :
7380 $as_echo_n "(cached) " >&6
7382 ac_func_search_save_LIBS=$LIBS
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7386 /* Override any GCC internal prototype to avoid an error.
7387 Use char because int might match the return type of a GCC
7388 builtin and then its argument prototype would still apply. */
7396 return hstrerror ();
7401 for ac_lib in '' nsl socket resolv; do
7402 if test -z "$ac_lib"; then
7403 ac_res="none required"
7406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7408 if ac_fn_c_try_link "$LINENO"; then :
7409 ac_cv_search_hstrerror=$ac_res
7411 rm -f core conftest.err conftest.$ac_objext \
7413 if ${ac_cv_search_hstrerror+:} false; then :
7417 if ${ac_cv_search_hstrerror+:} false; then :
7420 ac_cv_search_hstrerror=no
7423 LIBS=$ac_func_search_save_LIBS
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7426 $as_echo "$ac_cv_search_hstrerror" >&6; }
7427 ac_res=$ac_cv_search_hstrerror
7428 if test "$ac_res" != no; then :
7429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7430 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7435 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7436 if ${ac_cv_search_rresvport_af+:} false; then :
7437 $as_echo_n "(cached) " >&6
7439 ac_func_search_save_LIBS=$LIBS
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7443 /* Override any GCC internal prototype to avoid an error.
7444 Use char because int might match the return type of a GCC
7445 builtin and then its argument prototype would still apply. */
7449 char rresvport_af ();
7453 return rresvport_af ();
7458 for ac_lib in '' nsl; do
7459 if test -z "$ac_lib"; then
7460 ac_res="none required"
7463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7465 if ac_fn_c_try_link "$LINENO"; then :
7466 ac_cv_search_rresvport_af=$ac_res
7468 rm -f core conftest.err conftest.$ac_objext \
7470 if ${ac_cv_search_rresvport_af+:} false; then :
7474 if ${ac_cv_search_rresvport_af+:} false; then :
7477 ac_cv_search_rresvport_af=no
7480 LIBS=$ac_func_search_save_LIBS
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7483 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7484 ac_res=$ac_cv_search_rresvport_af
7485 if test "$ac_res" != no; then :
7486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7487 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7492 $as_echo_n "checking for library containing __res_init... " >&6; }
7493 if ${ac_cv_search___res_init+:} false; then :
7494 $as_echo_n "(cached) " >&6
7496 ac_func_search_save_LIBS=$LIBS
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7500 /* Override any GCC internal prototype to avoid an error.
7501 Use char because int might match the return type of a GCC
7502 builtin and then its argument prototype would still apply. */
7510 return __res_init ();
7515 for ac_lib in '' resolv bind; do
7516 if test -z "$ac_lib"; then
7517 ac_res="none required"
7520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7522 if ac_fn_c_try_link "$LINENO"; then :
7523 ac_cv_search___res_init=$ac_res
7525 rm -f core conftest.err conftest.$ac_objext \
7527 if ${ac_cv_search___res_init+:} false; then :
7531 if ${ac_cv_search___res_init+:} false; then :
7534 ac_cv_search___res_init=no
7537 LIBS=$ac_func_search_save_LIBS
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7540 $as_echo "$ac_cv_search___res_init" >&6; }
7541 ac_res=$ac_cv_search___res_init
7542 if test "$ac_res" != no; then :
7543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7544 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7548 $as_echo_n "checking for library containing res_9_init... " >&6; }
7549 if ${ac_cv_search_res_9_init+:} false; then :
7550 $as_echo_n "(cached) " >&6
7552 ac_func_search_save_LIBS=$LIBS
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7556 /* Override any GCC internal prototype to avoid an error.
7557 Use char because int might match the return type of a GCC
7558 builtin and then its argument prototype would still apply. */
7566 return res_9_init ();
7571 for ac_lib in '' resolv bind; do
7572 if test -z "$ac_lib"; then
7573 ac_res="none required"
7576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7578 if ac_fn_c_try_link "$LINENO"; then :
7579 ac_cv_search_res_9_init=$ac_res
7581 rm -f core conftest.err conftest.$ac_objext \
7583 if ${ac_cv_search_res_9_init+:} false; then :
7587 if ${ac_cv_search_res_9_init+:} false; then :
7590 ac_cv_search_res_9_init=no
7593 LIBS=$ac_func_search_save_LIBS
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7596 $as_echo "$ac_cv_search_res_9_init" >&6; }
7597 ac_res=$ac_cv_search_res_9_init
7598 if test "$ac_res" != no; then :
7599 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7600 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7604 $as_echo_n "checking for library containing res_init... " >&6; }
7605 if ${ac_cv_search_res_init+:} false; then :
7606 $as_echo_n "(cached) " >&6
7608 ac_func_search_save_LIBS=$LIBS
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7612 /* Override any GCC internal prototype to avoid an error.
7613 Use char because int might match the return type of a GCC
7614 builtin and then its argument prototype would still apply. */
7627 for ac_lib in '' resolv bind; do
7628 if test -z "$ac_lib"; then
7629 ac_res="none required"
7632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7634 if ac_fn_c_try_link "$LINENO"; then :
7635 ac_cv_search_res_init=$ac_res
7637 rm -f core conftest.err conftest.$ac_objext \
7639 if ${ac_cv_search_res_init+:} false; then :
7643 if ${ac_cv_search_res_init+:} false; then :
7646 ac_cv_search_res_init=no
7649 LIBS=$ac_func_search_save_LIBS
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7652 $as_echo "$ac_cv_search_res_init" >&6; }
7653 ac_res=$ac_cv_search_res_init
7654 if test "$ac_res" != no; then :
7655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7656 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7665 # Tru64 5.1b leaks file descriptors with these functions; disable until
7666 # we can come up with a test for this...
7667 if test "$host_os_name" != "osf1"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7669 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7670 if ${ac_cv_search_getaddrinfo+:} false; then :
7671 $as_echo_n "(cached) " >&6
7673 ac_func_search_save_LIBS=$LIBS
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7677 /* Override any GCC internal prototype to avoid an error.
7678 Use char because int might match the return type of a GCC
7679 builtin and then its argument prototype would still apply. */
7683 char getaddrinfo ();
7687 return getaddrinfo ();
7692 for ac_lib in '' nsl; do
7693 if test -z "$ac_lib"; then
7694 ac_res="none required"
7697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7699 if ac_fn_c_try_link "$LINENO"; then :
7700 ac_cv_search_getaddrinfo=$ac_res
7702 rm -f core conftest.err conftest.$ac_objext \
7704 if ${ac_cv_search_getaddrinfo+:} false; then :
7708 if ${ac_cv_search_getaddrinfo+:} false; then :
7711 ac_cv_search_getaddrinfo=no
7714 LIBS=$ac_func_search_save_LIBS
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7717 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7718 ac_res=$ac_cv_search_getaddrinfo
7719 if test "$ac_res" != no; then :
7720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7721 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7726 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7727 if ${ac_cv_search_getnameinfo+:} false; then :
7728 $as_echo_n "(cached) " >&6
7730 ac_func_search_save_LIBS=$LIBS
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7734 /* Override any GCC internal prototype to avoid an error.
7735 Use char because int might match the return type of a GCC
7736 builtin and then its argument prototype would still apply. */
7740 char getnameinfo ();
7744 return getnameinfo ();
7749 for ac_lib in '' nsl; do
7750 if test -z "$ac_lib"; then
7751 ac_res="none required"
7754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7756 if ac_fn_c_try_link "$LINENO"; then :
7757 ac_cv_search_getnameinfo=$ac_res
7759 rm -f core conftest.err conftest.$ac_objext \
7761 if ${ac_cv_search_getnameinfo+:} false; then :
7765 if ${ac_cv_search_getnameinfo+:} false; then :
7768 ac_cv_search_getnameinfo=no
7771 LIBS=$ac_func_search_save_LIBS
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7774 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7775 ac_res=$ac_cv_search_getnameinfo
7776 if test "$ac_res" != no; then :
7777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7778 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7784 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7786 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7790 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7791 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7792 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7798 CUPS_DEFAULT_DOMAINSOCKET=""
7801 # Check whether --with-domainsocket was given.
7802 if test "${with_domainsocket+set}" = set; then :
7803 withval=$with_domainsocket; default_domainsocket="$withval"
7805 default_domainsocket=""
7809 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7810 if test "x$default_domainsocket" = x; then
7811 case "$host_os_name" in
7813 # Darwin and macOS do their own thing...
7814 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7817 # All others use FHS standard...
7818 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7822 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7825 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7827 cat >>confdefs.h <<_ACEOF
7828 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7832 CUPS_LISTEN_DOMAINSOCKET=""
7839 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7840 if test "x$ac_cv_func_poll" = xyes; then :
7841 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7845 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7846 if test "x$ac_cv_func_epoll_create" = xyes; then :
7847 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7851 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7852 if test "x$ac_cv_func_kqueue" = xyes; then :
7853 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7859 # Check whether --enable-gssapi was given.
7860 if test "${enable_gssapi+set}" = set; then :
7861 enableval=$enable_gssapi;
7868 if test x$enable_gssapi != xno; then
7869 if test -n "$ac_tool_prefix"; then
7870 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7871 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 $as_echo_n "checking for $ac_word... " >&6; }
7874 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7875 $as_echo_n "(cached) " >&6
7879 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7901 if test -n "$KRB5CONFIG"; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7903 $as_echo "$KRB5CONFIG" >&6; }
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906 $as_echo "no" >&6; }
7911 if test -z "$ac_cv_path_KRB5CONFIG"; then
7912 ac_pt_KRB5CONFIG=$KRB5CONFIG
7913 # Extract the first word of "krb5-config", so it can be a program name with args.
7914 set dummy krb5-config; ac_word=$2
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916 $as_echo_n "checking for $ac_word... " >&6; }
7917 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7918 $as_echo_n "(cached) " >&6
7920 case $ac_pt_KRB5CONFIG in
7922 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 test -z "$as_dir" && as_dir=.
7930 for ac_exec_ext in '' $ac_executable_extensions; do
7931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7932 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7944 if test -n "$ac_pt_KRB5CONFIG"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7946 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7952 if test "x$ac_pt_KRB5CONFIG" = x; then
7955 case $cross_compiling:$ac_tool_warned in
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7959 ac_tool_warned=yes ;;
7961 KRB5CONFIG=$ac_pt_KRB5CONFIG
7964 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7967 if test "x$KRB5CONFIG" != x; then
7968 case "$host_os_name" in
7970 # macOS weak-links to the Kerberos framework...
7971 LIBGSSAPI="-weak_framework Kerberos"
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7973 $as_echo_n "checking for GSS framework... " >&6; }
7974 if test -d /System/Library/Frameworks/GSS.framework; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7976 $as_echo "yes" >&6; }
7977 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7984 # Solaris has a non-standard krb5-config, don't use it!
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7986 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7987 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7988 $as_echo_n "(cached) " >&6
7990 ac_check_lib_save_LIBS=$LIBS
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7995 /* Override any GCC internal prototype to avoid an error.
7996 Use char because int might match the return type of a GCC
7997 builtin and then its argument prototype would still apply. */
8001 char gss_display_status ();
8005 return gss_display_status ();
8010 if ac_fn_c_try_link "$LINENO"; then :
8011 ac_cv_lib_gss_gss_display_status=yes
8013 ac_cv_lib_gss_gss_display_status=no
8015 rm -f core conftest.err conftest.$ac_objext \
8016 conftest$ac_exeext conftest.$ac_ext
8017 LIBS=$ac_check_lib_save_LIBS
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8020 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8021 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8023 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8025 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
8026 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
8027 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
8032 # Other platforms just ask for GSSAPI
8033 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
8034 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
8035 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
8039 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8042 # Check for vendor-specific implementations...
8043 case "$host_os_name" in
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8046 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8047 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8048 $as_echo_n "(cached) " >&6
8050 ac_check_lib_save_LIBS=$LIBS
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8055 /* Override any GCC internal prototype to avoid an error.
8056 Use char because int might match the return type of a GCC
8057 builtin and then its argument prototype would still apply. */
8061 char gss_display_status ();
8065 return gss_display_status ();
8070 if ac_fn_c_try_link "$LINENO"; then :
8071 ac_cv_lib_gss_gss_display_status=yes
8073 ac_cv_lib_gss_gss_display_status=no
8075 rm -f core conftest.err conftest.$ac_objext \
8076 conftest$ac_exeext conftest.$ac_ext
8077 LIBS=$ac_check_lib_save_LIBS
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8080 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8081 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8083 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8085 LIBGSSAPI="-lgss -lgssapi_krb5"
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8091 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8092 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8093 $as_echo_n "(cached) " >&6
8095 ac_check_lib_save_LIBS=$LIBS
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8100 /* Override any GCC internal prototype to avoid an error.
8101 Use char because int might match the return type of a GCC
8102 builtin and then its argument prototype would still apply. */
8106 char gss_display_status ();
8110 return gss_display_status ();
8115 if ac_fn_c_try_link "$LINENO"; then :
8116 ac_cv_lib_gss_gss_display_status=yes
8118 ac_cv_lib_gss_gss_display_status=no
8120 rm -f core conftest.err conftest.$ac_objext \
8121 conftest$ac_exeext conftest.$ac_ext
8122 LIBS=$ac_check_lib_save_LIBS
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8125 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8126 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8128 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8137 if test "x$LIBGSSAPI" != x; then
8138 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8139 if test "x$ac_cv_header_krb5_h" = xyes; then :
8140 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8145 if test -d /System/Library/Frameworks/GSS.framework; then
8146 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
8147 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
8148 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8153 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
8154 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
8155 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
8160 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
8161 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
8162 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8168 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8169 if test "x$ac_cv_header_gssapi_h" = xyes; then :
8170 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8175 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8176 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8177 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8185 LIBS="$LIBS $LIBGSSAPI"
8187 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8188 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8189 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8195 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8196 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8199 #include <gssapi/gssapi.h>
8203 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8208 if ac_fn_c_try_compile "$LINENO"; then :
8209 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8212 $as_echo "yes" >&6; }
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 #include <GSS/gssapi.h>
8225 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8230 if ac_fn_c_try_compile "$LINENO"; then :
8231 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8234 $as_echo "yes" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8247 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8252 if ac_fn_c_try_compile "$LINENO"; then :
8253 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8256 $as_echo "yes" >&6; }
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 # Check whether --with-gssservicename was given.
8270 if test "${with_gssservicename+set}" = set; then :
8271 withval=$with_gssservicename; default_gssservicename="$withval"
8273 default_gssservicename="default"
8277 if test x$default_gssservicename != xno; then
8278 if test "x$default_gssservicename" = "xdefault"; then
8279 CUPS_DEFAULT_GSSSERVICENAME="host"
8281 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8284 CUPS_DEFAULT_GSSSERVICENAME=""
8288 cat >>confdefs.h <<_ACEOF
8289 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8294 # Check whether --enable-threads was given.
8295 if test "${enable_threads+set}" = set; then :
8296 enableval=$enable_threads;
8303 if test "x$enable_threads" != xno; then
8304 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8305 if test "x$ac_cv_header_pthread_h" = xyes; then :
8306 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8312 if test x$ac_cv_header_pthread_h = xyes; then
8313 for flag in -lpthreads -lpthread -pthread; do
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8315 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8320 #include <pthread.h>
8324 pthread_create(0, 0, 0, 0);
8329 if ac_fn_c_try_link "$LINENO"; then :
8334 rm -f core conftest.err conftest.$ac_objext \
8335 conftest$ac_exeext conftest.$ac_ext
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8337 $as_echo "$have_pthread" >&6; }
8339 if test $have_pthread = yes; then
8340 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8342 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8343 # be POSIX-compliant... :(
8344 if test $host_os_name = sunos; then
8345 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8356 # Check whether --enable-ssl was given.
8357 if test "${enable_ssl+set}" = set; then :
8358 enableval=$enable_ssl;
8361 # Check whether --enable-cdsassl was given.
8362 if test "${enable_cdsassl+set}" = set; then :
8363 enableval=$enable_cdsassl;
8366 # Check whether --enable-gnutls was given.
8367 if test "${enable_gnutls+set}" = set; then :
8368 enableval=$enable_gnutls;
8375 CUPS_SERVERKEYCHAIN=""
8377 if test x$enable_ssl != xno; then
8378 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8379 if test $host_os_name = darwin; then
8380 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8381 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8384 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8386 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8388 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8390 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8391 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8392 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8397 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8398 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8399 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8404 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8405 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8406 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8411 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8413 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8414 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8419 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8420 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8421 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8426 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8427 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8428 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8433 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8434 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8435 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8440 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8441 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8442 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8448 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8450 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8456 if test $host_os_version -ge 150; then
8457 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8463 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8464 if test -n "$ac_tool_prefix"; then
8465 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8466 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8470 $as_echo_n "(cached) " >&6
8472 case $LIBGNUTLSCONFIG in
8474 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 test -z "$as_dir" && as_dir=.
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8484 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8495 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8496 if test -n "$LIBGNUTLSCONFIG"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8498 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8506 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8507 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8508 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8509 set dummy libgnutls-config; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8513 $as_echo_n "(cached) " >&6
8515 case $ac_pt_LIBGNUTLSCONFIG in
8517 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 test -z "$as_dir" && as_dir=.
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8527 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8538 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8539 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8541 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8547 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8550 case $cross_compiling:$ac_tool_warned in
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8554 ac_tool_warned=yes ;;
8556 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8559 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8562 if $PKGCONFIG --exists gnutls; then
8564 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8565 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8566 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8568 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8570 elif test "x$LIBGNUTLSCONFIG" != x; then
8572 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8573 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8574 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8576 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8580 if test $have_ssl = 1; then
8581 CUPS_SERVERKEYCHAIN="ssl"
8584 LIBS="$LIBS $SSLLIBS"
8585 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8586 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8587 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8591 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8592 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8593 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8603 if test $have_ssl = 1; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8605 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8607 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8608 IPPALIASES="http https ipps"
8609 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8610 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8618 EXPORT_SSLLIBS="$SSLLIBS"
8622 # Check whether --enable-pam was given.
8623 if test "${enable_pam+set}" = set; then :
8624 enableval=$enable_pam;
8628 # Check whether --with-pam_module was given.
8629 if test "${with_pam_module+set}" = set; then :
8630 withval=$with_pam_module;
8637 PAMMOD="pam_unknown.so"
8638 PAMMODAUTH="pam_unknown.so"
8640 if test x$enable_pam != xno; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8644 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8645 if ${ac_cv_lib_dl_dlopen+:} false; then :
8646 $as_echo_n "(cached) " >&6
8648 ac_check_lib_save_LIBS=$LIBS
8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8653 /* Override any GCC internal prototype to avoid an error.
8654 Use char because int might match the return type of a GCC
8655 builtin and then its argument prototype would still apply. */
8668 if ac_fn_c_try_link "$LINENO"; then :
8669 ac_cv_lib_dl_dlopen=yes
8671 ac_cv_lib_dl_dlopen=no
8673 rm -f core conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 LIBS=$ac_check_lib_save_LIBS
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8678 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8679 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8680 cat >>confdefs.h <<_ACEOF
8681 #define HAVE_LIBDL 1
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8689 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8690 if ${ac_cv_lib_pam_pam_start+:} false; then :
8691 $as_echo_n "(cached) " >&6
8693 ac_check_lib_save_LIBS=$LIBS
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8698 /* Override any GCC internal prototype to avoid an error.
8699 Use char because int might match the return type of a GCC
8700 builtin and then its argument prototype would still apply. */
8708 return pam_start ();
8713 if ac_fn_c_try_link "$LINENO"; then :
8714 ac_cv_lib_pam_pam_start=yes
8716 ac_cv_lib_pam_pam_start=no
8718 rm -f core conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8720 LIBS=$ac_check_lib_save_LIBS
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8723 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8724 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8725 cat >>confdefs.h <<_ACEOF
8726 #define HAVE_LIBPAM 1
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8734 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8735 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8736 $as_echo_n "(cached) " >&6
8738 ac_check_lib_save_LIBS=$LIBS
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8743 /* Override any GCC internal prototype to avoid an error.
8744 Use char because int might match the return type of a GCC
8745 builtin and then its argument prototype would still apply. */
8749 char pam_set_item ();
8753 return pam_set_item ();
8758 if ac_fn_c_try_link "$LINENO"; then :
8759 ac_cv_lib_pam_pam_set_item=yes
8761 ac_cv_lib_pam_pam_set_item=no
8763 rm -f core conftest.err conftest.$ac_objext \
8764 conftest$ac_exeext conftest.$ac_ext
8765 LIBS=$ac_check_lib_save_LIBS
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8768 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8769 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8770 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8775 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8776 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8777 $as_echo_n "(cached) " >&6
8779 ac_check_lib_save_LIBS=$LIBS
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8784 /* Override any GCC internal prototype to avoid an error.
8785 Use char because int might match the return type of a GCC
8786 builtin and then its argument prototype would still apply. */
8790 char pam_setcred ();
8794 return pam_setcred ();
8799 if ac_fn_c_try_link "$LINENO"; then :
8800 ac_cv_lib_pam_pam_setcred=yes
8802 ac_cv_lib_pam_pam_setcred=no
8804 rm -f core conftest.err conftest.$ac_objext \
8805 conftest$ac_exeext conftest.$ac_ext
8806 LIBS=$ac_check_lib_save_LIBS
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8809 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8810 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8811 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8815 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8816 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8821 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8822 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8823 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8824 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8831 if test x$ac_cv_lib_pam_pam_start != xno; then
8832 # Set the necessary libraries for PAM...
8833 if test x$ac_cv_lib_dl_dlopen != xno; then
8834 PAMLIBS="-lpam -ldl"
8839 # Find the PAM configuration directory, if any...
8840 for dir in /private/etc/pam.d /etc/pam.d; do
8841 if test -d $dir; then
8850 case "$host_os_name" in
8853 if test "x$with_pam_module" != x; then
8854 PAMFILE="pam.$with_pam_module"
8855 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8856 PAMFILE="pam.opendirectory"
8858 PAMFILE="pam.securityserver"
8863 # All others; this test might need to be updated
8864 # as Linux distributors move things around...
8865 if test "x$with_pam_module" != x; then
8866 PAMMOD="pam_${with_pam_module}.so"
8867 elif test -f /etc/pam.d/common-auth; then
8868 PAMFILE="pam.common"
8871 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
8872 if test -d $dir; then
8878 if test -f $moddir/pam_unix2.so; then
8879 PAMMOD="pam_unix2.so"
8880 elif test -f $moddir/pam_unix.so; then
8881 PAMMOD="pam_unix.so"
8885 if test "x$PAMMOD" = xpam_unix.so; then
8886 PAMMODAUTH="$PAMMOD shadow nodelay"
8888 PAMMODAUTH="$PAMMOD nodelay"
8901 # Check whether --enable-largefile was given.
8902 if test "${enable_largefile+set}" = set; then :
8903 enableval=$enable_largefile;
8906 if test "$enable_largefile" != no; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8909 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8910 if ${ac_cv_sys_largefile_CC+:} false; then :
8911 $as_echo_n "(cached) " >&6
8913 ac_cv_sys_largefile_CC=no
8914 if test "$GCC" != yes; then
8917 # IRIX 6.2 and later do not support large files by default,
8918 # so use the C compiler's -n32 option if that helps.
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 :
8941 rm -f core conftest.err conftest.$ac_objext
8943 if ac_fn_c_try_compile "$LINENO"; then :
8944 ac_cv_sys_largefile_CC=' -n32'; break
8946 rm -f core conftest.err conftest.$ac_objext
8950 rm -f conftest.$ac_ext
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8954 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8955 if test "$ac_cv_sys_largefile_CC" != no; then
8956 CC=$CC$ac_cv_sys_largefile_CC
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8960 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8961 if ${ac_cv_sys_file_offset_bits+:} false; then :
8962 $as_echo_n "(cached) " >&6
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8967 #include <sys/types.h>
8968 /* Check that off_t can represent 2**63 - 1 correctly.
8969 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8970 since some C++ compilers masquerading as C compilers
8971 incorrectly reject 9223372036854775807. */
8972 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8973 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8974 && LARGE_OFF_T % 2147483647 == 1)
8984 if ac_fn_c_try_compile "$LINENO"; then :
8985 ac_cv_sys_file_offset_bits=no; break
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8990 #define _FILE_OFFSET_BITS 64
8991 #include <sys/types.h>
8992 /* Check that off_t can represent 2**63 - 1 correctly.
8993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8994 since some C++ compilers masquerading as C compilers
8995 incorrectly reject 9223372036854775807. */
8996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8998 && LARGE_OFF_T % 2147483647 == 1)
9008 if ac_fn_c_try_compile "$LINENO"; then :
9009 ac_cv_sys_file_offset_bits=64; break
9011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012 ac_cv_sys_file_offset_bits=unknown
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9017 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9018 case $ac_cv_sys_file_offset_bits in #(
9021 cat >>confdefs.h <<_ACEOF
9022 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9027 if test $ac_cv_sys_file_offset_bits = unknown; then
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9029 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9030 if ${ac_cv_sys_large_files+:} false; then :
9031 $as_echo_n "(cached) " >&6
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9036 #include <sys/types.h>
9037 /* Check that off_t can represent 2**63 - 1 correctly.
9038 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9039 since some C++ compilers masquerading as C compilers
9040 incorrectly reject 9223372036854775807. */
9041 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9042 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9043 && LARGE_OFF_T % 2147483647 == 1)
9053 if ac_fn_c_try_compile "$LINENO"; then :
9054 ac_cv_sys_large_files=no; break
9056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9059 #define _LARGE_FILES 1
9060 #include <sys/types.h>
9061 /* Check that off_t can represent 2**63 - 1 correctly.
9062 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9063 since some C++ compilers masquerading as C compilers
9064 incorrectly reject 9223372036854775807. */
9065 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9066 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9067 && LARGE_OFF_T % 2147483647 == 1)
9077 if ac_fn_c_try_compile "$LINENO"; then :
9078 ac_cv_sys_large_files=1; break
9080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081 ac_cv_sys_large_files=unknown
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9086 $as_echo "$ac_cv_sys_large_files" >&6; }
9087 case $ac_cv_sys_large_files in #(
9090 cat >>confdefs.h <<_ACEOF
9091 #define _LARGE_FILES $ac_cv_sys_large_files
9103 if test x$enable_largefile != xno; then
9104 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
9106 if test x$ac_cv_sys_large_files = x1; then
9107 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
9110 if test x$ac_cv_sys_file_offset_bits = x64; then
9111 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9117 $as_echo_n "checking for long long int... " >&6; }
9118 if ${ac_cv_c_long_long+:} false; then :
9119 $as_echo_n "(cached) " >&6
9121 if test "$GCC" = yes; then
9122 ac_cv_c_long_long=yes
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9135 if ac_fn_c_try_compile "$LINENO"; then :
9136 ac_cv_c_long_long=yes
9138 ac_cv_c_long_long=no
9140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9144 $as_echo "$ac_cv_c_long_long" >&6; }
9146 if test $ac_cv_c_long_long = yes; then
9147 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9151 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9152 if test "x$ac_cv_func_strtoll" = xyes; then :
9153 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9159 # Check whether --enable-avahi was given.
9160 if test "${enable_avahi+set}" = set; then :
9161 enableval=$enable_avahi;
9164 # Check whether --enable-dnssd was given.
9165 if test "${enable_dnssd+set}" = set; then :
9166 enableval=$enable_dnssd;
9170 # Check whether --with-dnssd-libs was given.
9171 if test "${with_dnssd_libs+set}" = set; then :
9172 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9173 DSOFLAGS="-L$withval $DSOFLAGS"
9177 # Check whether --with-dnssd-includes was given.
9178 if test "${with_dnssd_includes+set}" = set; then :
9179 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9180 CPPFLAGS="-I$withval $CPPFLAGS"
9189 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9191 $as_echo_n "checking for Avahi... " >&6; }
9192 if $PKGCONFIG --exists avahi-client; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9194 $as_echo "yes" >&6; }
9195 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
9196 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
9197 DNSSD_BACKEND="dnssd"
9198 IPPFIND_BIN="ippfind"
9199 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9200 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204 $as_echo "no" >&6; }
9208 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9209 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9210 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9212 case "$host_os_name" in
9214 # Darwin and macOS...
9215 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9217 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9218 DNSSD_BACKEND="dnssd"
9219 IPPFIND_BIN="ippfind"
9220 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9225 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9227 LIBS="$LIBS -ldns_sd"
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9234 int constant = kDNSServiceFlagsShareConnection;
9235 unsigned char txtRecord[100];
9237 TXTRecordGetValuePtr(sizeof(txtRecord),
9238 txtRecord, "value", &valueLen);
9243 if ac_fn_c_try_compile "$LINENO"; then :
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9245 $as_echo "yes" >&6; }
9246 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9248 DNSSDLIBS="-ldns_sd"
9249 DNSSD_BACKEND="dnssd"
9251 IPPFIND_BIN="ippfind"
9252 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254 $as_echo "no" >&6; }
9256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277 # Check whether --enable-launchd was given.
9278 if test "${enable_launchd+set}" = set; then :
9279 enableval=$enable_launchd;
9285 if test x$enable_launchd != xno; then
9286 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9287 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9289 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9291 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9295 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9296 if test "x$ac_cv_header_launch_h" = xyes; then :
9297 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9303 if test "$host_os_name" = darwin; then
9304 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9305 # liblaunch is already part of libSystem
9309 # Check whether --enable-systemd was given.
9310 if test "${enable_systemd+set}" = set; then :
9311 enableval=$enable_systemd;
9315 # Check whether --with-systemd was given.
9316 if test "${with_systemd+set}" = set; then :
9317 withval=$with_systemd; SYSTEMD_DIR="$withval"
9324 if test x$enable_systemd != xno; then
9325 if test "x$PKGCONFIG" = x; then
9326 if test x$enable_systemd = xyes; then
9327 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9332 $as_echo_n "checking for libsystemd... " >&6; }
9333 if $PKGCONFIG --exists libsystemd; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9335 $as_echo "yes" >&6; }
9337 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9338 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9339 elif $PKGCONFIG --exists libsystemd-daemon; then
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9341 $as_echo "yes - legacy" >&6; }
9343 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9344 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9346 if $PKGCONFIG --exists libsystemd-journal; then
9347 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9348 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352 $as_echo "no" >&6; }
9355 if test $have_systemd = yes; then
9356 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9358 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9360 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9361 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9362 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9367 if test "x$SYSTEMD_DIR" = x; then
9368 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9374 # Check whether --enable-upstart was given.
9375 if test "${enable_upstart+set}" = set; then :
9376 enableval=$enable_upstart;
9379 if test "x$enable_upstart" = "xyes"; then
9380 if test "x$have_systemd" = "xyes"; then
9381 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9383 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9385 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9392 # Check whether --with-smfmanifestdir was given.
9393 if test "${with_smfmanifestdir+set}" = set; then :
9394 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9399 # Check whether --with-rcdir was given.
9400 if test "${with_rcdir+set}" = set; then :
9401 withval=$with_rcdir; rcdir="$withval"
9407 # Check whether --with-rclevels was given.
9408 if test "${with_rclevels+set}" = set; then :
9409 withval=$with_rclevels; rclevels="$withval"
9415 # Check whether --with-rcstart was given.
9416 if test "${with_rcstart+set}" = set; then :
9417 withval=$with_rcstart; rcstart="$withval"
9423 # Check whether --with-rcstop was given.
9424 if test "${with_rcstop+set}" = set; then :
9425 withval=$with_rcstop; rcstop="$withval"
9431 if test x$rcdir = x; then
9432 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9433 # Fall back on "init", the original service startup interface...
9434 if test -d /sbin/init.d; then
9436 rcdir="/sbin/init.d"
9437 elif test -d /etc/init.d; then
9449 if test "x$rcstart" = x; then
9450 case "$host_os_name" in
9468 if test "x$rcstop" = x; then
9469 case "$host_os_name" in
9484 RCLEVELS="$rclevels"
9493 if test "x$rcdir" != xno; then
9494 if test "x$rclevels" = x; then
9502 # Check whether --with-xinetd was given.
9503 if test "${with_xinetd+set}" = set; then :
9504 withval=$with_xinetd; xinetd="$withval"
9512 if test "x$xinetd" = x; then
9513 if test ! -x /sbin/launchd; then
9514 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9515 if test -d $dir; then
9521 elif test "x$xinetd" != xno; then
9526 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9529 # Check whether --with-languages was given.
9530 if test "${with_languages+set}" = set; then :
9531 withval=$with_languages;
9533 none | no) LANGUAGES="" ;;
9535 *) LANGUAGES="$withval" ;;
9542 # Check whether --with-bundledir was given.
9543 if test "${with_bundledir+set}" = set; then :
9544 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9546 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9547 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9556 if test "x$CUPS_BUNDLEDIR" != x; then
9557 cat >>confdefs.h <<_ACEOF
9558 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9564 # Check whether --with-exe_file_perm was given.
9565 if test "${with_exe_file_perm+set}" = set; then :
9566 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9568 case "$host_os_name" in
9570 CUPS_EXE_FILE_PERM="755"
9573 CUPS_EXE_FILE_PERM="555"
9581 # Check whether --with-config_file_perm was given.
9582 if test "${with_config_file_perm+set}" = set; then :
9583 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9585 if test "x$host_os_name" = xdarwin; then
9586 CUPS_CONFIG_FILE_PERM="644"
9588 CUPS_CONFIG_FILE_PERM="640"
9593 cat >>confdefs.h <<_ACEOF
9594 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9599 # Check whether --with-cupsd_file_perm was given.
9600 if test "${with_cupsd_file_perm+set}" = set; then :
9601 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9603 case "$host_os_name" in
9605 CUPS_CUPSD_FILE_PERM="700"
9608 CUPS_CUPSD_FILE_PERM="500"
9616 # Check whether --with-log_file_perm was given.
9617 if test "${with_log_file_perm+set}" = set; then :
9618 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9620 CUPS_LOG_FILE_PERM="644"
9624 cat >>confdefs.h <<_ACEOF
9625 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9630 # Check whether --with-fatal_errors was given.
9631 if test "${with_fatal_errors+set}" = set; then :
9632 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9634 CUPS_FATAL_ERRORS="config"
9638 cat >>confdefs.h <<_ACEOF
9639 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9644 # Check whether --with-log_level was given.
9645 if test "${with_log_level+set}" = set; then :
9646 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9648 CUPS_LOG_LEVEL="warn"
9652 cat >>confdefs.h <<_ACEOF
9653 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9658 # Check whether --with-access_log_level was given.
9659 if test "${with_access_log_level+set}" = set; then :
9660 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9662 CUPS_ACCESS_LOG_LEVEL="none"
9666 cat >>confdefs.h <<_ACEOF
9667 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9671 # Check whether --enable-page_logging was given.
9672 if test "${enable_page_logging+set}" = set; then :
9673 enableval=$enable_page_logging;
9676 if test "x$enable_page_logging" = xyes; then
9677 CUPS_PAGE_LOG_FORMAT=""
9679 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9683 # Check whether --enable-browsing was given.
9684 if test "${enable_browsing+set}" = set; then :
9685 enableval=$enable_browsing;
9688 if test "x$enable_browsing" = xno; then
9690 cat >>confdefs.h <<_ACEOF
9691 #define CUPS_DEFAULT_BROWSING 0
9696 cat >>confdefs.h <<_ACEOF
9697 #define CUPS_DEFAULT_BROWSING 1
9704 # Check whether --with-local_protocols was given.
9705 if test "${with_local_protocols+set}" = set; then :
9706 withval=$with_local_protocols; default_local_protocols="$withval"
9708 default_local_protocols="default"
9712 if test x$with_local_protocols != xno; then
9713 if test "x$default_local_protocols" = "xdefault"; then
9714 if test "x$DNSSD_BACKEND" != "x"; then
9715 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9717 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9720 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9723 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9727 cat >>confdefs.h <<_ACEOF
9728 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9732 # Check whether --enable-default_shared was given.
9733 if test "${enable_default_shared+set}" = set; then :
9734 enableval=$enable_default_shared;
9737 if test "x$enable_default_shared" = xno; then
9738 CUPS_DEFAULT_SHARED="No"
9739 cat >>confdefs.h <<_ACEOF
9740 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9744 CUPS_DEFAULT_SHARED="Yes"
9745 cat >>confdefs.h <<_ACEOF
9746 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9753 # Check whether --with-cups_user was given.
9754 if test "${with_cups_user+set}" = set; then :
9755 withval=$with_cups_user; CUPS_USER="$withval"
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9758 $as_echo_n "checking for default print user... " >&6; }
9759 if test x$host_os_name = xdarwin; then
9760 if test x`id
-u _lp
2>/dev
/null
` = x; then
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9766 $as_echo "$CUPS_USER" >&6; }
9767 elif test -f /etc/passwd; then
9769 for user in lp lpd guest daemon nobody; do
9770 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9773 $as_echo "$user" >&6; }
9778 if test x$CUPS_USER = x; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9781 $as_echo "not found" >&6; }
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9786 $as_echo "no password file" >&6; }
9791 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9792 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9796 # Check whether --with-cups_group was given.
9797 if test "${with_cups_group+set}" = set; then :
9798 withval=$with_cups_group; CUPS_GROUP="$withval"
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9801 $as_echo_n "checking for default print group... " >&6; }
9802 if test x$host_os_name = xdarwin; then
9803 if test x`id
-g _lp
2>/dev
/null
` = x; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9809 $as_echo "$CUPS_GROUP" >&6; }
9810 elif test -f /etc/group; then
9811 GROUP_LIST="_lp lp nobody"
9813 for group in $GROUP_LIST; do
9814 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9817 $as_echo "$group" >&6; }
9822 if test x$CUPS_GROUP = x; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9825 $as_echo "not found" >&6; }
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9830 $as_echo "no group file" >&6; }
9835 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9836 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9840 # Check whether --with-system_groups was given.
9841 if test "${with_system_groups+set}" = set; then :
9842 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9844 if test x$host_os_name = xdarwin; then
9845 CUPS_SYSTEM_GROUPS="admin"
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9848 $as_echo_n "checking for default system groups... " >&6; }
9849 if test -f /etc/group; then
9850 CUPS_SYSTEM_GROUPS=""
9851 GROUP_LIST="lpadmin sys system root"
9852 for group in $GROUP_LIST; do
9853 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9854 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9855 CUPS_SYSTEM_GROUPS="$group"
9857 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9862 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9863 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9865 $as_echo "no groups found" >&6; }
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9868 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9871 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9873 $as_echo "no group file" >&6; }
9879 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9881 for group in $CUPS_SYSTEM_GROUPS; do
9882 if test "x$CUPS_GROUP" = "x$group"; then
9883 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9892 cat >>confdefs.h <<_ACEOF
9893 #define CUPS_DEFAULT_USER "$CUPS_USER"
9896 cat >>confdefs.h <<_ACEOF
9897 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9900 cat >>confdefs.h <<_ACEOF
9901 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9906 # Check whether --with-printcap was given.
9907 if test "${with_printcap+set}" = set; then :
9908 withval=$with_printcap; default_printcap="$withval"
9910 default_printcap="default"
9914 if test x$default_printcap != xno; then
9915 if test "x$default_printcap" = "xdefault"; then
9916 case $host_os_name in
9918 if test $host_os_version -ge 90; then
9919 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9921 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9925 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9928 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9932 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9935 CUPS_DEFAULT_PRINTCAP=""
9939 cat >>confdefs.h <<_ACEOF
9940 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9945 # Check whether --with-lpdconfigfile was given.
9946 if test "${with_lpdconfigfile+set}" = set; then :
9947 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9949 default_lpdconfigfile="default"
9953 if test x$default_lpdconfigfile != xno; then
9954 if test "x$default_lpdconfigfile" = "xdefault"; then
9955 case $host_os_name in
9957 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9960 if test "x$XINETD" != x; then
9961 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9963 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9968 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9971 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9974 cat >>confdefs.h <<_ACEOF
9975 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9981 # Check whether --with-smbconfigfile was given.
9982 if test "${with_smbconfigfile+set}" = set; then :
9983 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9985 default_smbconfigfile="default"
9989 if test x$default_smbconfigfile != xno; then
9990 if test "x$default_smbconfigfile" = "xdefault"; then
9991 if test -f /etc/smb.conf; then
9992 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9994 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9997 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
10000 CUPS_DEFAULT_SMB_CONFIG_FILE=""
10003 cat >>confdefs.h <<_ACEOF
10004 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
10010 # Check whether --with-max-copies was given.
10011 if test "${with_max_copies+set}" = set; then :
10012 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
10014 CUPS_MAX_COPIES="9999"
10019 cat >>confdefs.h <<_ACEOF
10020 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
10024 # Check whether --enable-raw_printing was given.
10025 if test "${enable_raw_printing+set}" = set; then :
10026 enableval=$enable_raw_printing;
10029 if test "x$enable_raw_printing" != xno; then
10030 DEFAULT_RAW_PRINTING=""
10032 DEFAULT_RAW_PRINTING="#"
10037 # Check whether --with-snmp-address was given.
10038 if test "${with_snmp_address+set}" = set; then :
10039 withval=$with_snmp_address; if test "x$withval" = x; then
10040 CUPS_SNMP_ADDRESS=""
10042 CUPS_SNMP_ADDRESS="Address $withval"
10045 if test "x$host_os_name" = xdarwin; then
10046 CUPS_SNMP_ADDRESS=""
10048 CUPS_SNMP_ADDRESS="Address @LOCAL"
10054 # Check whether --with-snmp-community was given.
10055 if test "${with_snmp_community+set}" = set; then :
10056 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
10058 CUPS_SNMP_COMMUNITY="Community public"
10066 # Check whether --with-ipp-port was given.
10067 if test "${with_ipp_port+set}" = set; then :
10068 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
10070 DEFAULT_IPP_PORT="631"
10075 cat >>confdefs.h <<_ACEOF
10076 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
10080 # Check whether --enable-webif was given.
10081 if test "${enable_webif+set}" = set; then :
10082 enableval=$enable_webif;
10085 case "x$enable_webif" in
10088 CUPS_DEFAULT_WEBIF=0
10092 CUPS_DEFAULT_WEBIF=1
10095 if test $host_os_name = darwin; then
10097 CUPS_DEFAULT_WEBIF=0
10100 CUPS_DEFAULT_WEBIF=1
10106 cat >>confdefs.h <<_ACEOF
10107 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
10112 INSTALL_LANGUAGES=""
10113 UNINSTALL_LANGUAGES=""
10115 if test "x$LANGUAGES" != x; then
10116 INSTALL_LANGUAGES="install-languages"
10117 UNINSTALL_LANGUAGES="uninstall-languages"
10118 for lang in $LANGUAGES; do
10119 if test -f doc/$lang/index.html.in; then
10120 LANGFILES="$LANGFILES doc/$lang/index.html"
10123 if test -f templates/$lang/header.tmpl.in; then
10124 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10127 elif test "x$CUPS_BUNDLEDIR" != x; then
10128 INSTALL_LANGUAGES="install-langbundle"
10129 UNINSTALL_LANGUAGES="uninstall-langbundle"
10135 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"
10137 cat >confcache <<\_ACEOF
10138 # This file is a shell script that caches the results of configure
10139 # tests run on this system so they can be shared between configure
10140 # scripts and configure runs, see configure's option --config-cache.
10141 # It is not useful on other systems. If it contains results you don't
10142 # want to keep, you may remove or edit it.
10144 # config.status only pays attention to the cache file if you give it
10145 # the --recheck option to rerun configure.
10147 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10148 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10149 # following values.
10153 # The following way of writing the cache mishandles newlines in values,
10154 # but we know of no workaround that is simple, portable, and efficient.
10155 # So, we kill variables containing newlines.
10156 # Ultrix sh set writes to stderr and can't be redirected directly,
10157 # and sets the high bit in the cache file unless we assign to the vars.
10159 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10160 eval ac_val
=\$
$ac_var
10164 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10165 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10168 _ | IFS | as_nl
) ;; #(
10169 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10170 *) { eval $ac_var=; unset $ac_var;} ;;
10176 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10177 *${as_nl}ac_space
=\
*)
10178 # `set' does not quote correctly, so add quotes: double-quote
10179 # substitution turns \\\\ into \\, and sed turns \\ into \.
10182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10185 # `set' quotes correctly as required by POSIX, so do not add quotes.
10186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10195 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10197 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10199 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10200 if test -w "$cache_file"; then
10201 if test "x$cache_file" != "x/dev/null"; then
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10203 $as_echo "$as_me: updating cache $cache_file" >&6;}
10204 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10205 cat confcache
>"$cache_file"
10207 case $cache_file in #(
10209 mv -f confcache
"$cache_file"$$
&&
10210 mv -f "$cache_file"$$
"$cache_file" ;; #(
10212 mv -f confcache
"$cache_file" ;;
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10218 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10223 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10224 # Let make expand exec_prefix.
10225 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10227 DEFS
=-DHAVE_CONFIG_H
10232 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10233 # 1. Remove the extension, and $U if already installed.
10234 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10235 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10236 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10237 # will be set to the directory where LIBOBJS objects are built.
10238 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10239 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10241 LIBOBJS
=$ac_libobjs
10243 LTLIBOBJS
=$ac_ltlibobjs
10247 : "${CONFIG_STATUS=./config.status}"
10249 ac_clean_files_save
=$ac_clean_files
10250 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10252 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10254 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10256 # Generated by $as_me.
10257 # Run this file to recreate the current configuration.
10258 # Compiler output produced by configure, useful for debugging
10259 # configure, is in config.log if it exists.
10262 ac_cs_recheck=false
10265 SHELL=\${CONFIG_SHELL-$SHELL}
10268 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10269 ## -------------------- ##
10270 ## M4sh Initialization. ##
10271 ## -------------------- ##
10273 # Be more Bourne compatible
10274 DUALCASE
=1; export DUALCASE
# for MKS sh
10275 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10278 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10279 # is contrary to our usage. Disable this feature.
10280 alias -g '${1+"$@"}'='"$@"'
10281 setopt NO_GLOB_SUBST
10283 case `(set -o) 2>/dev/null` in #(
10295 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10296 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10297 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10298 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10299 # Prefer a ksh shell builtin over an external printf program on Solaris,
10300 # but without wasting forks for bash or zsh.
10301 if test -z "$BASH_VERSION$ZSH_VERSION" \
10302 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10303 as_echo='print
-r --'
10304 as_echo_n='print
-rn --'
10305 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10306 as_echo='printf %s
\n'
10307 as_echo_n='printf %s
'
10309 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10310 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10311 as_echo_n='/usr
/ucb
/echo -n'
10313 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10314 as_echo_n_body='eval
10318 expr "X$arg" : "X\\(.*\\)$as_nl";
10319 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10321 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10323 export as_echo_n_body
10324 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10326 export as_echo_body
10327 as_echo='sh
-c $as_echo_body as_echo
'
10330 # The user is always right.
10331 if test "${PATH_SEPARATOR+set}" != set; then
10333 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10334 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10341 # We need space, tab and new line, in precisely that order. Quoting is
10342 # there to prevent editors from complaining about space-tab.
10343 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10344 # splitting by setting IFS to empty value.)
10347 # Find who we are. Look in the path if we contain no directory separator.
10350 *[\\/]* ) as_myself=$0 ;;
10351 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10355 test -z "$as_dir" && as_dir=.
10356 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10362 # We did not find ourselves, most probably we were run as `sh COMMAND'
10363 # in which case we are not to be found in the path.
10364 if test "x$as_myself" = x
; then
10367 if test ! -f "$as_myself"; then
10368 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10372 # Unset variables that we do not need and which cause bugs (e.g. in
10373 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10374 # suppresses any "Segmentation fault" message there. '((' could
10375 # trigger a bug in pdksh 5.2.14.
10376 for as_var
in BASH_ENV ENV MAIL MAILPATH
10377 do eval test x\
${$as_var+set} = xset \
10378 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10391 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10394 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10395 # ----------------------------------------
10396 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10397 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10398 # script with STATUS, using 1 if that was 0.
10401 as_status
=$1; test $as_status -eq 0 && as_status
=1
10403 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10404 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10406 $as_echo "$as_me: error: $2" >&2
10407 as_fn_exit
$as_status
10411 # as_fn_set_status STATUS
10412 # -----------------------
10413 # Set $? to STATUS, without forking.
10414 as_fn_set_status
()
10417 } # as_fn_set_status
10419 # as_fn_exit STATUS
10420 # -----------------
10421 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10425 as_fn_set_status
$1
10431 # Portably unset VAR.
10434 { eval $1=; unset $1;}
10436 as_unset
=as_fn_unset
10437 # as_fn_append VAR VALUE
10438 # ----------------------
10439 # Append the text in VALUE to the end of the definition contained in VAR. Take
10440 # advantage of any shell optimizations that allow amortized linear growth over
10441 # repeated appends, instead of the typical quadratic growth present in naive
10443 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10444 eval 'as_fn_append ()
10455 # as_fn_arith ARG...
10456 # ------------------
10457 # Perform arithmetic evaluation on the ARGs, and store the result in the
10458 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10459 # must be portable across $(()) and expr.
10460 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10461 eval 'as_fn_arith ()
10468 as_val
=`expr "$@" || test $? -eq 1`
10473 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10474 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10480 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10481 as_basename
=basename
10486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10492 as_me
=`$as_basename -- "$0" ||
10493 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10494 X"$0" : 'X\(//\)$' \| \
10495 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10497 sed '/^.*\/\([^/][^/]*\)\/*$/{
10511 # Avoid depending upon Character Ranges.
10512 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10513 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10514 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10515 as_cr_digits
='0123456789'
10516 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10518 ECHO_C
= ECHO_N
= ECHO_T
=
10519 case `echo -n x` in #(((((
10521 case `echo 'xy\c'` in
10522 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10524 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10531 rm -f conf$$ conf$$.exe conf$$.
file
10532 if test -d conf$$.dir
; then
10533 rm -f conf$$.dir
/conf$$.
file
10536 mkdir conf$$.dir
2>/dev
/null
10538 if (echo >conf$$.
file) 2>/dev
/null
; then
10539 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10541 # ... but there are two gotchas:
10542 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10543 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10544 # In both cases, we have to default to `cp -pR'.
10545 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10547 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10555 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10556 rmdir conf$$.dir
2>/dev
/null
10561 # Create "$as_dir" as a directory, including parents if necessary.
10566 -*) as_dir
=.
/$as_dir;;
10568 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10572 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10573 *) as_qdir
=$as_dir;;
10575 as_dirs
="'$as_qdir' $as_dirs"
10576 as_dir
=`$as_dirname -- "$as_dir" ||
10577 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10578 X"$as_dir" : 'X\(//\)[^/]' \| \
10579 X"$as_dir" : 'X\(//\)$' \| \
10580 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10581 $as_echo X"$as_dir" |
10582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10586 /^X\(\/\/\)[^/].*/{
10599 test -d "$as_dir" && break
10601 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10602 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10606 if mkdir
-p .
2>/dev
/null
; then
10607 as_mkdir_p
='mkdir -p "$as_dir"'
10609 test -d .
/-p && rmdir .
/-p
10614 # as_fn_executable_p FILE
10615 # -----------------------
10616 # Test if FILE is an executable regular file.
10617 as_fn_executable_p
()
10619 test -f "$1" && test -x "$1"
10620 } # as_fn_executable_p
10621 as_test_x
='test -x'
10622 as_executable_p
=as_fn_executable_p
10624 # Sed expression to map a string onto a valid CPP name.
10625 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10627 # Sed expression to map a string onto a valid variable name.
10628 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10632 ## ----------------------------------- ##
10633 ## Main body of $CONFIG_STATUS script. ##
10634 ## ----------------------------------- ##
10636 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10639 # Save the log message, to keep $0 and so on meaningful, and to
10640 # report actual input values of CONFIG_FILES etc. instead of their
10641 # values after options handling.
10643 This file was extended by CUPS $as_me 2.3b6, which was
10644 generated by GNU Autoconf 2.69. Invocation command line was
10646 CONFIG_FILES = $CONFIG_FILES
10647 CONFIG_HEADERS = $CONFIG_HEADERS
10648 CONFIG_LINKS = $CONFIG_LINKS
10649 CONFIG_COMMANDS = $CONFIG_COMMANDS
10652 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10657 case $ac_config_files in *"
10658 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10661 case $ac_config_headers in *"
10662 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10667 # Files that config.status was made for.
10668 config_files="$ac_config_files"
10669 config_headers="$ac_config_headers"
10673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10675 \`$as_me' instantiates files and other configuration actions
10676 from templates according to the current configuration. Unless the files
10677 and actions are specified as TAGs, all are instantiated by default.
10679 Usage: $0 [OPTION]... [TAG]...
10681 -h, --help print this help, then exit
10682 -V, --version print version number and configuration settings, then exit
10683 --config print configuration, then exit
10684 -q, --quiet, --silent
10685 do not print progress messages
10686 -d, --debug don't remove temporary files
10687 --recheck update $as_me by reconfiguring in the same conditions
10688 --file=FILE[:TEMPLATE]
10689 instantiate the configuration file FILE
10690 --header=FILE[:TEMPLATE]
10691 instantiate the configuration header FILE
10693 Configuration files:
10696 Configuration headers:
10699 Report bugs to <https://github.com/apple/cups/issues>.
10700 CUPS home page: <https://www.cups.org/>."
10703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10704 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10706 CUPS config.status 2.3b6
10707 configured by $0, generated by GNU Autoconf 2.69,
10708 with options \\"\$ac_cs_config\\"
10710 Copyright (C) 2012 Free Software Foundation, Inc.
10711 This config.status script is free software; the Free Software Foundation
10712 gives unlimited permission to copy, distribute and modify it."
10717 test -n "\$AWK" || AWK=awk
10720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10721 # The default lists apply if the user does not specify any file.
10727 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10728 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10732 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10744 # Handling of the options.
10745 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10747 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10748 $as_echo "$ac_cs_version"; exit ;;
10749 --config |
--confi |
--conf |
--con |
--co |
--c )
10750 $as_echo "$ac_cs_config"; exit ;;
10751 --debug |
--debu |
--deb |
--de |
--d |
-d )
10753 --file |
--fil |
--fi |
--f )
10756 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10757 '') as_fn_error $?
"missing file argument" ;;
10759 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10760 ac_need_defaults
=false
;;
10761 --header |
--heade |
--head |
--hea )
10764 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10766 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10767 ac_need_defaults
=false
;;
10769 # Conflict between --help and --header
10770 as_fn_error $?
"ambiguous option: \`$1'
10771 Try \`$0 --help' for more information.";;
10772 --help |
--hel |
-h )
10773 $as_echo "$ac_cs_usage"; exit ;;
10774 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10775 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10778 # This is an error.
10779 -*) as_fn_error $?
"unrecognized option: \`$1'
10780 Try \`$0 --help' for more information." ;;
10782 *) as_fn_append ac_config_targets
" $1"
10783 ac_need_defaults
=false
;;
10789 ac_configure_extra_args
=
10791 if $ac_cs_silent; then
10793 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10798 if \$ac_cs_recheck; then
10799 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10801 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10802 CONFIG_SHELL='$SHELL'
10803 export CONFIG_SHELL
10808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10812 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10813 ## Running $as_me. ##
10819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10824 # Handling of arguments.
10825 for ac_config_target
in $ac_config_targets
10827 case $ac_config_target in
10828 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10829 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10830 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10831 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10832 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10833 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10834 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10835 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10836 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10837 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10838 "man/client.conf.man") CONFIG_FILES
="$CONFIG_FILES man/client.conf.man" ;;
10839 "man/cups-files.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cups-files.conf.man" ;;
10840 "man/cups-lpd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-lpd.man" ;;
10841 "man/cups-snmp.man") CONFIG_FILES
="$CONFIG_FILES man/cups-snmp.man" ;;
10842 "man/cupsaddsmb.man") CONFIG_FILES
="$CONFIG_FILES man/cupsaddsmb.man" ;;
10843 "man/cupsd.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.conf.man" ;;
10844 "man/cupsd.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.man" ;;
10845 "man/lpoptions.man") CONFIG_FILES
="$CONFIG_FILES man/lpoptions.man" ;;
10846 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10847 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10848 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10849 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10850 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10851 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10852 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10853 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10854 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10855 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10856 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10858 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10863 # If the user did not use the arguments to specify the items to instantiate,
10864 # then the envvar interface is used. Set only those that are not.
10865 # We use the long form for the default assignment because of an extremely
10866 # bizarre bug on SunOS 4.1.3.
10867 if $ac_need_defaults; then
10868 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10869 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10872 # Have a temporary directory for convenience. Make it in the build tree
10873 # simply because there is no reason against having it here, and in addition,
10874 # creating and moving files from /tmp can sometimes cause problems.
10875 # Hook for its removal unless debugging.
10876 # Note that there is a small window in which the directory will not be cleaned:
10877 # after its creation but before its name has been assigned to `$tmp'.
10881 trap 'exit_status=$?
10882 : "${ac_tmp:=$tmp}"
10883 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10885 trap 'as_fn_exit 1' 1 2 13 15
10887 # Create a (secure) tmp directory for tmp files.
10890 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10894 tmp
=.
/conf$$
-$RANDOM
10895 (umask 077 && mkdir
"$tmp")
10896 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10899 # Set up the scripts for CONFIG_FILES section.
10900 # No need to generate them if there are no CONFIG_FILES.
10901 # This happens for instance with `./config.status config.h'.
10902 if test -n "$CONFIG_FILES"; then
10905 ac_cr
=`echo X | tr X '\015'`
10906 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10907 # But we know of no other shell where ac_cr would be empty at this
10908 # point, so we can use a bashism as a fallback.
10909 if test "x$ac_cr" = x
; then
10910 eval ac_cr
=\$
\'\\r
\'
10912 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10913 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10916 ac_cs_awk_cr
=$ac_cr
10919 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10924 echo "cat >conf$$subs.awk <<_ACEOF" &&
10925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10927 } >conf$$subs.sh ||
10928 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10929 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10931 for ac_last_try in false false false false false :; do
10932 . ./conf$$subs.sh ||
10933 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10935 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10936 if test $ac_delim_n = $ac_delim_num; then
10938 elif $ac_last_try; then
10939 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10941 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10944 rm -f conf$$subs.sh
10946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10947 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10951 s/^/S["/; s
/!.
*/"]=/
10961 s/\(.\{148\}\)..*/\1/
10963 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10968 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10975 s/\(.\{148\}\)..*/\1/
10977 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10981 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10986 ' <conf$$subs.awk | sed '
10991 ' >>$CONFIG_STATUS || ac_write_fail=1
10992 rm -f conf$$subs.awk
10993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10995 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10996 for (key in S) S_is_set[key] = 1
11002 nfields = split(line, field, "@
")
11004 len = length(field[1])
11005 for (i = 2; i < nfields; i++) {
11007 keylen = length(key)
11008 if (S_is_set[key]) {
11010 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11011 len += length(value) + length(field[++i])
11022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11023 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11024 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11027 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11028 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11031 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11032 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11033 # trailing colons and then remove the whole line if VPATH becomes empty
11034 # (actually we leave an empty line to preserve line numbers).
11035 if test "x
$srcdir" = x.; then
11036 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11055 fi # test -n "$CONFIG_FILES"
11057 # Set up the scripts for CONFIG_HEADERS section.
11058 # No need to generate them if there are no CONFIG_HEADERS.
11059 # This happens for instance with `./config.status Makefile'.
11060 if test -n "$CONFIG_HEADERS"; then
11061 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11065 # Transform confdefs.h into an awk script `defines.awk', embedded as
11066 # here-document in config.status, that substitutes the proper values into
11067 # config.h.in to produce config.h.
11069 # Create a delimiter string that does not exist in confdefs.h, to ease
11070 # handling of long lines.
11072 for ac_last_try in false false :; do
11073 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11074 if test -z "$ac_tt"; then
11076 elif $ac_last_try; then
11077 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11079 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11083 # For the awk script, D is an array of macro values keyed by name,
11084 # likewise P contains macro parameters if any. Preserve backslash
11085 # newline sequences.
11087 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11089 s/.\{148\}/&'"$ac_delim"'/g
11092 s/^[ ]*#[ ]*define[ ][ ]*/ /
11099 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11101 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11105 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11106 D["\
1"]=" \
3\\\\\\n
"\\/p
11108 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11113 s/.\{148\}/&'"$ac_delim"'/g
11118 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11121 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11123 ' <confdefs.h | sed '
11124 s/'"$ac_delim"'/"\\\
11125 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11128 for (key in D) D_is_set[key] = 1
11131 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11133 split(line, arg, " ")
11134 if (arg[1] == "#") {
11138 defundef
= substr
(arg
[1], 2)
11141 split(mac1
, mac2
, "(") #)
11143 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11144 if (D_is_set
[macro
]) {
11145 # Preserve the white space surrounding the "#".
11146 print prefix
"define", macro P
[macro
] D
[macro
]
11149 # Replace #undef with comments. This is necessary, for example,
11150 # in the case of _POSIX_SOURCE, which is predefined and required
11151 # on some systems where configure will not decide to define it.
11152 if (defundef
== "undef") {
11153 print
"/*", prefix defundef
, macro
, "*/"
11161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11162 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11163 fi # test -n "$CONFIG_HEADERS"
11166 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11171 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11173 case $ac_mode$ac_tag in
11175 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11176 :[FH
]-) ac_tag
=-:-;;
11177 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11194 -) ac_f
="$ac_tmp/stdin";;
11195 *) # Look for the file first in the build tree, then in the source tree
11196 # (if the path is not absolute). The absolute path cannot be DOS-style,
11197 # because $ac_f cannot contain `:'.
11201 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11203 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11205 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11206 as_fn_append ac_file_inputs
" '$ac_f'"
11209 # Let's still pretend it is `configure' which instantiates (i.e., don't
11210 # use $as_me), people would be surprised to read:
11211 # /* config.h. Generated by config.status. */
11212 configure_input
='Generated from '`
11213 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11215 if test x
"$ac_file" != x-
; then
11216 configure_input
="$ac_file. $configure_input"
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11218 $as_echo "$as_me: creating $ac_file" >&6;}
11220 # Neutralize special characters interpreted by sed in replacement strings.
11221 case $configure_input in #(
11222 *\
&* |
*\|
* |
*\\* )
11223 ac_sed_conf_input
=`$as_echo "$configure_input" |
11224 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11225 *) ac_sed_conf_input
=$configure_input;;
11229 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11230 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11235 ac_dir
=`$as_dirname -- "$ac_file" ||
11236 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11237 X"$ac_file" : 'X\(//\)[^/]' \| \
11238 X"$ac_file" : 'X\(//\)$' \| \
11239 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11240 $as_echo X"$ac_file" |
11241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11245 /^X\(\/\/\)[^/].*/{
11258 as_dir
="$ac_dir"; as_fn_mkdir_p
11262 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11264 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11265 # A ".." for each directory in $ac_dir_suffix.
11266 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11267 case $ac_top_builddir_sub in
11268 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11269 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11272 ac_abs_top_builddir
=$ac_pwd
11273 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11274 # for backward compatibility:
11275 ac_top_builddir
=$ac_top_build_prefix
11278 .
) # We are building in place.
11280 ac_top_srcdir
=$ac_top_builddir_sub
11281 ac_abs_top_srcdir
=$ac_pwd ;;
11282 [\\/]* | ?
:[\\/]* ) # Absolute name.
11283 ac_srcdir
=$srcdir$ac_dir_suffix;
11284 ac_top_srcdir
=$srcdir
11285 ac_abs_top_srcdir
=$srcdir ;;
11286 *) # Relative name.
11287 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11288 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11289 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11291 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11303 # If the template does not know about datarootdir, expand it.
11304 # FIXME: This hack should be removed a few years after 2.60.
11305 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11316 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11317 *datarootdir
*) ac_datarootdir_seen
=yes;;
11318 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11320 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11323 ac_datarootdir_hack='
11324 s&@datadir@&$datadir&g
11325 s&@docdir@&$docdir&g
11326 s&@infodir@&$infodir&g
11327 s&@localedir@&$localedir&g
11328 s&@mandir@&$mandir&g
11329 s&\\\${datarootdir}&$datarootdir&g' ;;
11333 # Neutralize VPATH when `$srcdir' = `.'.
11334 # Shell code in configure.ac might set extrasub.
11335 # FIXME: do we really want to maintain this feature?
11336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11337 ac_sed_extra="$ac_vpsub
11340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11342 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11343 s|@configure_input@|
$ac_sed_conf_input|
;t t
11344 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11345 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11346 s
&@srcdir@
&$ac_srcdir&;t t
11347 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11348 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11349 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11350 s
&@builddir@
&$ac_builddir&;t t
11351 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11352 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11353 $ac_datarootdir_hack
11355 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11356 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11358 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11359 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11360 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11361 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11363 which seems to be undefined. Please make sure it is defined" >&5
11364 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11365 which seems to be undefined. Please make sure it is defined" >&2;}
11367 rm -f "$ac_tmp/stdin"
11369 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11370 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11372 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11378 if test x"$ac_file" != x-; then
11380 $as_echo "/* $configure_input */" \
11381 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11382 } >"$ac_tmp/config.h" \
11383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11384 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11386 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11389 mv "$ac_tmp/config.h" "$ac_file" \
11390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11393 $as_echo "/* $configure_input */" \
11394 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11395 || as_fn_error $? "could not create -" "$LINENO" 5
11407 ac_clean_files=$ac_clean_files_save
11409 test $ac_write_fail = 0 ||
11410 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11413 # configure is writing to config.log, and then calls config.status.
11414 # config.status does its own redirection, appending to config.log.
11415 # Unfortunately, on DOS this fails, as config.log is still kept open
11416 # by configure, so config.status won't be able to
write to it
; its
11417 # output is simply discarded. So we exec the FD to /dev/null,
11418 # effectively closing config.log, so it can be properly (re)opened and
11419 # appended to by config.status. When coming back to configure, we
11420 # need to make the FD available again.
11421 if test "$no_create" != yes; then
11423 ac_config_status_args
=
11424 test "$silent" = yes &&
11425 ac_config_status_args
="$ac_config_status_args --quiet"
11427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11430 # would make configure fail if this is the last instruction.
11431 $ac_cs_success || as_fn_exit
1
11433 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11435 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11439 chmod +x cups-config