2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for CUPS 2.2.4.
5 # Report bugs to <https://github.com/apple/cups/issues>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev
/null
; then :
183 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
195 for as_base
in sh bash ksh sh5
; do
196 # Try only shells that exist, to save several forks.
197 as_shell
=$as_dir/$as_base
198 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
200 CONFIG_SHELL
=$as_shell as_have_required
=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
209 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
211 CONFIG_SHELL
=$SHELL as_have_required
=yes
216 if test "x$CONFIG_SHELL" != x
; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
226 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x
$as_have_required = xno
; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x
${ZSH_VERSION+set} = xset
; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://github.com/apple/cups/issues about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
251 SHELL
=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE
= GREP_OPTIONS
=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir
=.
/$as_dir;;
296 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
300 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs
="'$as_qdir' $as_dirs"
304 as_dir
=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
330 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
365 as_val
=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status
=$1; test $as_status -eq 0 && as_status
=1
379 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit
$as_status
386 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
393 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
405 as_me
=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits
='0123456789'
429 as_cr_alnum
=$as_cr_Letters$as_cr_digits
432 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
433 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x
"$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C
= ECHO_N
= ECHO_T
=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
476 rm -f conf$$ conf$$.exe conf$$.
file
477 if test -d conf$$.dir
; then
478 rm -f conf$$.dir
/conf$$.
file
481 mkdir conf$$.dir
2>/dev
/null
483 if (echo >conf$$.
file) 2>/dev
/null
; then
484 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
492 elif ln conf$$.
file conf$$
2>/dev
/null
; then
500 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
501 rmdir conf$$.dir
2>/dev
/null
503 if mkdir
-p .
2>/dev
/null
; then
504 as_mkdir_p
='mkdir -p "$as_dir"'
506 test -d .
/-p && rmdir .
/-p
510 if test -x / >/dev
/null
2>&1; then
513 if ls -dL / >/dev
/null
2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p
=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix
=/usr
/local
553 ac_config_libobj_dir
=.
560 # Identity of this package.
562 PACKAGE_TARNAME
='cups'
563 PACKAGE_VERSION
='2.2.4'
564 PACKAGE_STRING
='CUPS 2.2.4'
565 PACKAGE_BUGREPORT
='https://github.com/apple/cups/issues'
566 PACKAGE_URL
='https://www.cups.org/'
568 # Factoring default headers for most tests.
569 ac_includes_default
="\
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
581 # ifdef HAVE_STDLIB_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
605 ac_subst_vars
='LTLIBOBJS
620 CUPS_DEFAULT_SMB_CONFIG_FILE
621 CUPS_DEFAULT_LPD_CONFIG_FILE
622 CUPS_DEFAULT_PRINTCAP
623 CUPS_PRIMARY_SYSTEM_GROUP
628 CUPS_BROWSE_LOCAL_PROTOCOLS
631 CUPS_ACCESS_LOG_LEVEL
636 CUPS_CONFIG_FILE_PERM
669 CUPS_DEFAULT_GSSSERVICENAME
672 CUPS_LISTEN_DOMAINSOCKET
673 CUPS_DEFAULT_DOMAINSOCKET
725 CUPS_DEFAULT_PRINTOPERATOR_AUTH
808 program_transform_name
821 enable_option_checking
845 enable_libtool_unsupported
881 with_config_file_perm
886 with_access_log_level
890 enable_default_shared
908 ac_precious_vars
='build_alias
922 # Initialize some variables set by options.
924 ac_init_version
=false
925 ac_unrecognized_opts
=
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
936 program_transform_name
=s
,x
,x
,
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir
='${exec_prefix}/bin'
951 sbindir
='${exec_prefix}/sbin'
952 libexecdir
='${exec_prefix}/libexec'
953 datarootdir
='${prefix}/share'
954 datadir
='${datarootdir}'
955 sysconfdir
='${prefix}/etc'
956 sharedstatedir
='${prefix}/com'
957 localstatedir
='${prefix}/var'
958 includedir
='${prefix}/include'
959 oldincludedir
='/usr/include'
960 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir
='${datarootdir}/info'
966 libdir
='${exec_prefix}/lib'
967 localedir
='${datarootdir}/locale'
968 mandir
='${datarootdir}/man'
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\
$ac_option
982 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987 # Accept the important Cygnus configure options, so we can diagnose typos.
989 case $ac_dashdash$ac_option in
993 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
995 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
998 -build |
--build |
--buil |
--bui |
--bu)
999 ac_prev
=build_alias
;;
1000 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1001 build_alias
=$ac_optarg ;;
1003 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1004 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1005 ac_prev
=cache_file
;;
1006 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1007 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1008 cache_file
=$ac_optarg ;;
1010 --config-cache |
-C)
1011 cache_file
=config.cache
;;
1013 -datadir |
--datadir |
--datadi |
--datad)
1015 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1016 datadir
=$ac_optarg ;;
1018 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1019 |
--dataroo |
--dataro |
--datar)
1020 ac_prev
=datarootdir
;;
1021 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1022 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1023 datarootdir
=$ac_optarg ;;
1025 -disable-* |
--disable-*)
1026 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1029 as_fn_error $?
"invalid feature name: $ac_useropt"
1030 ac_useropt_orig
=$ac_useropt
1031 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1034 "enable_
$ac_useropt"
1036 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037 ac_unrecognized_sep
=', ';;
1039 eval enable_
$ac_useropt=no
;;
1041 -docdir |
--docdir |
--docdi |
--doc |
--do)
1043 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1044 docdir
=$ac_optarg ;;
1046 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1048 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1049 dvidir
=$ac_optarg ;;
1051 -enable-* |
--enable-*)
1052 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1055 as_fn_error $?
"invalid feature name: $ac_useropt"
1056 ac_useropt_orig
=$ac_useropt
1057 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_
$ac_useropt"
1062 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep
=', ';;
1065 eval enable_
$ac_useropt=\
$ac_optarg ;;
1067 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1068 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1069 |
--exec |
--exe |
--ex)
1070 ac_prev
=exec_prefix
;;
1071 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1072 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1073 |
--exec=* |
--exe=* |
--ex=*)
1074 exec_prefix
=$ac_optarg ;;
1076 -gas |
--gas |
--ga |
--g)
1077 # Obsolete; use --with-gas.
1080 -help |
--help |
--hel |
--he |
-h)
1081 ac_init_help
=long
;;
1082 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1083 ac_init_help
=recursive
;;
1084 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1085 ac_init_help
=short
;;
1087 -host |
--host |
--hos |
--ho)
1088 ac_prev
=host_alias
;;
1089 -host=* |
--host=* |
--hos=* |
--ho=*)
1090 host_alias
=$ac_optarg ;;
1092 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1094 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1096 htmldir
=$ac_optarg ;;
1098 -includedir |
--includedir |
--includedi |
--included |
--include \
1099 |
--includ |
--inclu |
--incl |
--inc)
1100 ac_prev
=includedir
;;
1101 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1102 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1103 includedir
=$ac_optarg ;;
1105 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1107 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1108 infodir
=$ac_optarg ;;
1110 -libdir |
--libdir |
--libdi |
--libd)
1112 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1113 libdir
=$ac_optarg ;;
1115 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1116 |
--libexe |
--libex |
--libe)
1117 ac_prev
=libexecdir
;;
1118 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1119 |
--libexe=* |
--libex=* |
--libe=*)
1120 libexecdir
=$ac_optarg ;;
1122 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1123 ac_prev
=localedir
;;
1124 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1125 localedir
=$ac_optarg ;;
1127 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1128 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1129 ac_prev
=localstatedir
;;
1130 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1131 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1132 localstatedir
=$ac_optarg ;;
1134 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1136 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1137 mandir
=$ac_optarg ;;
1139 -nfp |
--nfp |
--nf)
1140 # Obsolete; use --without-fp.
1143 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1144 |
--no-cr |
--no-c |
-n)
1147 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1148 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1151 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1152 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1153 |
--oldin |
--oldi |
--old |
--ol |
--o)
1154 ac_prev
=oldincludedir
;;
1155 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1156 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1157 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1158 oldincludedir
=$ac_optarg ;;
1160 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1162 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1163 prefix
=$ac_optarg ;;
1165 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1166 |
--program-pre |
--program-pr |
--program-p)
1167 ac_prev
=program_prefix
;;
1168 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1169 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1170 program_prefix
=$ac_optarg ;;
1172 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1173 |
--program-suf |
--program-su |
--program-s)
1174 ac_prev
=program_suffix
;;
1175 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1176 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1177 program_suffix
=$ac_optarg ;;
1179 -program-transform-name |
--program-transform-name \
1180 |
--program-transform-nam |
--program-transform-na \
1181 |
--program-transform-n |
--program-transform- \
1182 |
--program-transform |
--program-transfor \
1183 |
--program-transfo |
--program-transf \
1184 |
--program-trans |
--program-tran \
1185 |
--progr-tra |
--program-tr |
--program-t)
1186 ac_prev
=program_transform_name
;;
1187 -program-transform-name=* |
--program-transform-name=* \
1188 |
--program-transform-nam=* |
--program-transform-na=* \
1189 |
--program-transform-n=* |
--program-transform-=* \
1190 |
--program-transform=* |
--program-transfor=* \
1191 |
--program-transfo=* |
--program-transf=* \
1192 |
--program-trans=* |
--program-tran=* \
1193 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1194 program_transform_name
=$ac_optarg ;;
1196 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1198 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1199 pdfdir
=$ac_optarg ;;
1201 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1203 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1206 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1207 |
-silent |
--silent |
--silen |
--sile |
--sil)
1210 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1212 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1214 sbindir
=$ac_optarg ;;
1216 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1217 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1218 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1220 ac_prev
=sharedstatedir
;;
1221 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1222 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1223 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1225 sharedstatedir
=$ac_optarg ;;
1227 -site |
--site |
--sit)
1229 -site=* |
--site=* |
--sit=*)
1232 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1234 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1235 srcdir
=$ac_optarg ;;
1237 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1238 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1239 ac_prev
=sysconfdir
;;
1240 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1241 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1242 sysconfdir
=$ac_optarg ;;
1244 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1245 ac_prev
=target_alias
;;
1246 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1247 target_alias
=$ac_optarg ;;
1249 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1252 -version |
--version |
--versio |
--versi |
--vers |
-V)
1253 ac_init_version
=: ;;
1256 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1259 as_fn_error $?
"invalid package name: $ac_useropt"
1260 ac_useropt_orig
=$ac_useropt
1261 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1266 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267 ac_unrecognized_sep
=', ';;
1269 eval with_
$ac_useropt=\
$ac_optarg ;;
1271 -without-* |
--without-*)
1272 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1275 as_fn_error $?
"invalid package name: $ac_useropt"
1276 ac_useropt_orig
=$ac_useropt
1277 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1282 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283 ac_unrecognized_sep
=', ';;
1285 eval with_
$ac_useropt=no
;;
1288 # Obsolete; use --with-x.
1291 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1292 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1293 ac_prev
=x_includes
;;
1294 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1295 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1296 x_includes
=$ac_optarg ;;
1298 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1299 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1300 ac_prev
=x_libraries
;;
1301 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1302 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1303 x_libraries
=$ac_optarg ;;
1305 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1306 Try \`$0 --help' for more information"
1310 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 case $ac_envvar in #(
1313 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1314 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1316 eval $ac_envvar=\
$ac_optarg
1317 export $ac_envvar ;;
1320 # FIXME: should be removed in autoconf 3.0.
1321 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1323 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1330 if test -n "$ac_prev"; then
1331 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1332 as_fn_error $?
"missing argument to $ac_option"
1335 if test -n "$ac_unrecognized_opts"; then
1336 case $enable_option_checking in
1338 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1339 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1343 # Check all directory arguments for consistency.
1344 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
1349 eval ac_val
=\$
$ac_var
1350 # Remove trailing slashes.
1353 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354 eval $ac_var=\
$ac_val;;
1356 # Be sure to have absolute directory names.
1358 [\\/$
]* | ?
:[\\/]* ) continue;;
1359 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1361 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1369 target
=$target_alias
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x
; then
1373 if test "x$build_alias" = x
; then
1374 cross_compiling
=maybe
1375 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1376 If a cross compiler is detected then cross compile mode will be used" >&2
1377 elif test "x$build_alias" != "x$host_alias"; then
1383 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1385 test "$silent" = yes && exec 6>/dev
/null
1388 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di
=`ls -di .` &&
1390 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1391 as_fn_error $?
"working directory cannot be determined"
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 as_fn_error $?
"pwd does not report name of working directory"
1396 # Find the source files, if location was not specified.
1397 if test -z "$srcdir"; then
1398 ac_srcdir_defaulted
=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir
=`$as_dirname -- "$as_myself" ||
1401 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405 $as_echo X"$as_myself" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1428 ac_srcdir_defaulted
=no
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1432 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1434 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1446 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 for ac_var
in $ac_precious_vars; do
1449 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1451 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1456 # Report the --help message.
1458 if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1462 \`configure' configures CUPS 2.2.4 to adapt to many kinds of systems.
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE. See below for descriptions of some of the useful variables.
1469 Defaults for the options are specified in brackets.
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking ...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482 Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1493 For better control, use the options below.
1495 Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
1520 --build=BUILD configure
for building on BUILD
[guessed
]
1521 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive
) echo "Configuration of CUPS 2.2.4:";;
1532 --disable-option-checking ignore unrecognized
--enable/--with options
1533 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1534 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1535 --enable-static install static libraries
1536 --enable-mallinfo build with malloc debug logging
1537 --enable-libpaper build with libpaper support
1538 --enable-libusb use libusb
for USB printing
1539 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1540 --enable-acl build with POSIX ACL support
1541 --disable-dbus build without DBUS support
1542 --disable-shared do not create shared libraries
1543 --enable-libtool-unsupported
1544 build with libtool
(UNSUPPORTED
!)
1545 --enable-debug build with debugging symbols
1546 --enable-debug-guards build with memory allocation guards
1547 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1548 --enable-unit-tests build and run unit tests
1549 --enable-relro build with the GCC relro option
1550 --disable-gssapi disable GSSAPI support
1551 --disable-threads disable multi-threading support
1552 --disable-ssl disable SSL
/TLS support
1553 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1554 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1555 --disable-pam disable PAM support
1556 --disable-largefile omit support
for large files
1557 --disable-avahi disable DNS Service Discovery support using Avahi
1558 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1559 --disable-launchd disable launchd support
1560 --disable-systemd disable systemd support
1561 --enable-upstart enable upstart support
1562 --enable-page-logging enable page_log by default
1563 --disable-browsing disable Browsing by default
1564 --disable-default-shared
1565 disable DefaultShared by default
1566 --disable-raw-printing do not allow raw printing by default
1567 --enable-webif enable the web interface by default
, default
=no
for macOS
1570 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1571 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1572 --with-cups-build set "cups-config --build" string
1573 --with-dbusdir set DBUS configuration directory
1574 --with-adminkey set the default SystemAuthKey value
1575 --with-operkey set the default operator @AUTHKEY value
1576 --with-components set components to build
:
1577 - "all" (default
) builds everything
1578 - "core" builds libcups and ipptool
1579 --with-privateinclude set path
for private include files
, default
=none
1580 --with-lpdconfig set URI
for LPD config
file
1581 --with-smbconfig set URI
for Samba config
file
1582 --with-cachedir set path
for cache files
1583 --with-icondir set path
for application icons
1584 --with-menudir set path
for application menus
1585 --with-docdir set path
for documentation
1586 --with-fontpath set font path
for pstoraster
1587 --with-logdir set path
for log files
1588 --with-rundir set transient run-time state directory
1589 --with-optim set optimization flags
1590 --with-archflags set default architecture flags
1591 --with-ldarchflags set program architecture flags
1592 --with-domainsocket set unix domain socket name
1593 --with-gssservicename set default gss service name
1594 --with-pam-module specify the PAM module to use
1595 --with-dnssd-libs set directory
for DNS Service Discovery library
1596 --with-dnssd-includes set directory
for DNS Service Discovery includes
1597 --with-systemd set directory
for systemd service files
1598 --with-smfmanifestdir set path
for Solaris SMF manifest
1599 --with-rcdir set path
for rc scripts
1600 --with-rclevels set run levels
for rc scripts
1601 --with-rcstart set start number
for rc scripts
1602 --with-rcstop set stop number
for rc scripts
1603 --with-xinetd set path
for xinetd config files
1604 --with-languages set installed languages
, default
=all
1605 --with-bundledir set macOS localization bundle directory
1606 --with-exe-file-perm set default exectuable permissions value
, default
=0555
1607 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1608 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1609 --with-log-file-perm set default LogFilePerm value
, default
=0644
1610 --with-fatal-errors set default FatalErrors value
, default
=config
1611 --with-log-level set default LogLevel value
, default
=warn
1612 --with-access-log-level set default AccessLogLevel value
, default
=none
1613 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1614 --with-cups-user set default user
for CUPS
1615 --with-cups-group set default group
for CUPS
1616 --with-system-groups set default system groups
for CUPS
1617 --with-printcap set default printcap
file
1618 --with-lpdconfigfile set default LPDConfigFile URI
1619 --with-smbconfigfile set default SMBConfigFile URI
1620 --with-max-copies set default max copies value
, default
=9999
1621 --with-snmp-address set SNMP query address
, default
=auto
1622 --with-snmp-community set SNMP community
, default
=public
1623 --with-ipp-port set port number
for IPP
, default
=631
1624 --with-java set Java interpreter
for web interfaces
1625 --with-perl set Perl interpreter
for web interfaces
1626 --with-php set PHP interpreter
for web interfaces
1627 --with-python set Python interpreter
for web interfaces
1629 Some influential environment variables
:
1630 CC C compiler
command
1631 CFLAGS C compiler flags
1632 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1633 nonstandard directory
<lib dir
>
1634 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1635 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1636 you have headers
in a nonstandard directory
<include dir
>
1638 CXX C
++ compiler
command
1639 CXXFLAGS C
++ compiler flags
1641 Use these variables to override the choices made by
`configure' or to help
1642 it to find libraries and programs with nonstandard names/locations.
1644 Report bugs to <https://github.com/apple/cups/issues>.
1645 CUPS home page: <https://www.cups.org/>.
1650 if test "$ac_init_help" = "recursive"; then
1651 # If there are subdirs, report their specific --help.
1652 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653 test -d "$ac_dir" ||
1654 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1662 # A ".." for each directory in $ac_dir_suffix.
1663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1664 case $ac_top_builddir_sub in
1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 ac_abs_top_builddir=$ac_pwd
1670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671 # for backward compatibility:
1672 ac_top_builddir=$ac_top_build_prefix
1675 .) # We are building in place.
1677 ac_top_srcdir=$ac_top_builddir_sub
1678 ac_abs_top_srcdir=$ac_pwd ;;
1679 [\\/]* | ?:[\\/]* ) # Absolute name.
1680 ac_srcdir=$srcdir$ac_dir_suffix;
1681 ac_top_srcdir=$srcdir
1682 ac_abs_top_srcdir=$srcdir ;;
1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685 ac_top_srcdir=$ac_top_build_prefix$srcdir
1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690 cd "$ac_dir" || { ac_status=$?; continue; }
1691 # Check for guested configure.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1697 $SHELL "$ac_srcdir/configure" --help=recursive
1699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701 cd "$ac_pwd" || { ac_status=$?; break; }
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1708 CUPS configure 2.2.4
1709 generated by GNU Autoconf 2.68
1711 Copyright (C) 2010 Free Software Foundation, Inc.
1712 This configure script is free software; the Free Software Foundation
1713 gives unlimited permission to copy, distribute and modify it.
1718 ## ------------------------ ##
1719 ## Autoconf initialization. ##
1720 ## ------------------------ ##
1722 # ac_fn_c_try_compile LINENO
1723 # --------------------------
1724 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_compile ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext
1729 if { { ac_try="$ac_compile"
1731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1732 *) ac_try_echo
=$ac_try;;
1734 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_compile") 2>conftest.err
1738 if test -s conftest.err
; then
1739 grep -v '^ *+' conftest.err
>conftest.er1
1740 cat conftest.er1
>&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest.
$ac_objext; then :
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.
$ac_ext >&5
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status
$ac_retval
1758 } # ac_fn_c_try_compile
1760 # ac_fn_c_try_cpp LINENO
1761 # ----------------------
1762 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1765 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1766 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } > conftest.i && {
1782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1797 # ac_fn_cxx_try_compile LINENO
1798 # ----------------------------
1799 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_cxx_try_compile ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext
1804 if { { ac_try="$ac_compile"
1806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1807 *) ac_try_echo
=$ac_try;;
1809 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_compile") 2>conftest.err
1813 if test -s conftest.err
; then
1814 grep -v '^ *+' conftest.err
>conftest.er1
1815 cat conftest.er1
>&5
1816 mv -f conftest.er1 conftest.err
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_cxx_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest.
$ac_objext; then :
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.
$ac_ext >&5
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status
$ac_retval
1833 } # ac_fn_cxx_try_compile
1835 # ac_fn_c_try_link LINENO
1836 # -----------------------
1837 # Try to link conftest.$ac_ext, and return whether this succeeded.
1840 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1841 rm -f conftest.
$ac_objext conftest
$ac_exeext
1842 if { { ac_try
="$ac_link"
1844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_link") 2>conftest.err
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest$ac_exeext && {
1861 test "$cross_compiling" = yes ||
1862 $as_test_x conftest$ac_exeext
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873 # interfere with the next link command; also delete a directory that is
1874 # left behind by Apple's compiler. We do this before executing the actions.
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1879 } # ac_fn_c_try_link
1881 # ac_fn_c_try_run LINENO
1882 # ----------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1884 # that executables *can* be run.
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_link"
1890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1891 *) ac_try_echo
=$ac_try;;
1893 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>&5
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1899 { { case "(($ac_try" in
1900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_try") 2>&5
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; }; }; then :
1911 $as_echo "$as_me: program exited with status $ac_status" >&5
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1915 ac_retval=$ac_status
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1923 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1924 # -------------------------------------------------------
1925 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1926 # the include files in INCLUDES and setting the cache variable VAR
1928 ac_fn_c_check_header_mongrel ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 if eval \${$3+:} false; then :
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1941 # Is the header compilable?
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1943 $as_echo_n "checking $2 usability... " >&6; }
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1949 if ac_fn_c_try_compile "$LINENO"; then :
1950 ac_header_compiler=yes
1952 ac_header_compiler=no
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1956 $as_echo "$ac_header_compiler" >&6; }
1958 # Is the header present?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1960 $as_echo_n "checking $2 presence... " >&6; }
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1965 if ac_fn_c_try_cpp "$LINENO"; then :
1966 ac_header_preproc=yes
1968 ac_header_preproc=no
1970 rm -f conftest.err conftest.i conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1972 $as_echo "$ac_header_preproc" >&6; }
1974 # So? What about this header?
1975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1978 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1980 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1984 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1986 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1988 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1990 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1992 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1993 ( $as_echo "## --------------------------------------------------- ##
1994 ## Report this to https://github.com/apple/cups/issues ##
1995 ## --------------------------------------------------- ##"
1996 ) | sed "s/^/$as_me: WARNING: /" >&2
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000 $as_echo_n "checking for $2... " >&6; }
2001 if eval \${$3+:} false; then :
2002 $as_echo_n "(cached) " >&6
2004 eval "$3=\$ac_header_compiler"
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 } # ac_fn_c_check_header_mongrel
2014 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015 # -------------------------------------------------------
2016 # Tests whether HEADER exists and can be compiled using the include files in
2017 # INCLUDES, setting the cache variable VAR accordingly.
2018 ac_fn_c_check_header_compile ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2031 if ac_fn_c_try_compile "$LINENO"; then :
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 } # ac_fn_c_check_header_compile
2045 # ac_fn_c_check_func LINENO FUNC VAR
2046 # ----------------------------------
2047 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2048 ac_fn_c_check_func ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if eval \${$3+:} false; then :
2054 $as_echo_n "(cached) " >&6
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2060 #define $2 innocuous_$2
2062 /* System header to define __stub macros and hopefully few prototypes,
2063 which can conflict with char $2 (); below.
2064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2065 <limits.h> exists even on freestanding compilers. */
2068 # include <limits.h>
2070 # include <assert.h>
2075 /* Override any GCC internal prototype to avoid an error.
2076 Use char because int might match the return type of a GCC
2077 builtin and then its argument prototype would still apply. */
2082 /* The GNU C library defines this for functions which it implements
2083 to always fail with ENOSYS. Some functions are actually named
2084 something starting with __ and the normal name is an alias. */
2085 #if defined __stub_$2 || defined __stub___$2
2097 if ac_fn_c_try_link "$LINENO"; then :
2102 rm -f core conftest.err conftest.$ac_objext \
2103 conftest$ac_exeext conftest.$ac_ext
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 } # ac_fn_c_check_func
2112 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2113 # ----------------------------------------------------
2114 # Tries to find if the field MEMBER exists in type AGGR, after including
2115 # INCLUDES, setting cache variable VAR accordingly.
2116 ac_fn_c_check_member ()
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2120 $as_echo_n "checking for $2.$3... " >&6; }
2121 if eval \${$4+:} false; then :
2122 $as_echo_n "(cached) " >&6
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2137 if ac_fn_c_try_compile "$LINENO"; then :
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2147 if (sizeof ac_aggr.$3)
2153 if ac_fn_c_try_compile "$LINENO"; then :
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 } # ac_fn_c_check_member
2168 cat >config.log <<_ACEOF
2169 This file contains any messages produced by compilers while
2170 running configure, to aid debugging if configure makes a mistake.
2172 It was created by CUPS $as_me 2.2.4, which was
2173 generated by GNU Autoconf 2.68. Invocation command line was
2185 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2186 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2187 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2188 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2189 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2191 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2192 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2194 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2195 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2196 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2197 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2198 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2199 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2200 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir=.
2209 $as_echo "PATH: $as_dir"
2225 # Keep a trace of the command line.
2226 # Strip out --no-create and --no-recursion so they do not pile up.
2227 # Strip out --silent because we don't want to record it for future runs.
2228 # Also quote any args containing shell meta-characters.
2229 # Make two passes to allow for proper duplicate-argument suppression.
2233 ac_must_keep_next=false
2239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2241 | -silent | --silent | --silen | --sile | --sil)
2244 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2247 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2249 as_fn_append ac_configure_args1 " '$ac_arg'"
2250 if test $ac_must_keep_next = true; then
2251 ac_must_keep_next=false # Got value, back to normal.
2254 *=* | --config-cache | -C | -disable-* | --disable-* \
2255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2257 | -with-* | --with-* | -without-* | --without-* | --x)
2258 case "$ac_configure_args0 " in
2259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2262 -* ) ac_must_keep_next=true ;;
2265 as_fn_append ac_configure_args " '$ac_arg'"
2270 { ac_configure_args0=; unset ac_configure_args0;}
2271 { ac_configure_args1=; unset ac_configure_args1;}
2273 # When interrupted or exit'd, cleanup temporary files, and complete
2274 # config.log. We remove comments because anyway the quotes in there
2275 # would cause problems or look ugly.
2276 # WARNING: Use '\'' to represent an apostrophe within the trap.
2277 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2278 trap 'exit_status=$?
2279 # Save into config.log some information that might help in debugging.
2283 $as_echo "## ---------------- ##
2284 ## Cache variables. ##
2285 ## ---------------- ##"
2287 # The following way of writing the cache mishandles newlines in values,
2289 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2290 eval ac_val=\$$ac_var
2294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2298 _ | IFS | as_nl) ;; #(
2299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2300 *) { eval $ac_var=; unset $ac_var;} ;;
2305 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2306 *${as_nl}ac_space=\ *)
2308 "s/'\''/'\''\\\\'\'''\''/g;
2309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2319 $as_echo "## ----------------- ##
2320 ## Output variables. ##
2321 ## ----------------- ##"
2323 for ac_var in $ac_subst_vars
2325 eval ac_val=\$$ac_var
2327 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2329 $as_echo "$ac_var='\''$ac_val'\''"
2333 if test -n "$ac_subst_files"; then
2334 $as_echo "## ------------------- ##
2335 ## File substitutions. ##
2336 ## ------------------- ##"
2338 for ac_var in $ac_subst_files
2340 eval ac_val=\$$ac_var
2342 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2344 $as_echo "$ac_var='\''$ac_val'\''"
2349 if test -s confdefs.h; then
2350 $as_echo "## ----------- ##
2357 test "$ac_signal" != 0 &&
2358 $as_echo "$as_me: caught signal $ac_signal"
2359 $as_echo "$as_me: exit $exit_status"
2361 rm -f core *.core core.conftest.* &&
2362 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2365 for ac_signal in 1 2 13 15; do
2366 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2370 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2371 rm -f -r conftest* confdefs.h
2373 $as_echo "/* confdefs.h */" > confdefs.h
2375 # Predefined preprocessor variables.
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_NAME "$PACKAGE_NAME"
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_STRING "$PACKAGE_STRING"
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_URL "$PACKAGE_URL"
2402 # Let the site file select an alternate cache file if it wants to.
2403 # Prefer an explicitly selected file to automatically selected ones.
2406 if test -n "$CONFIG_SITE"; then
2407 # We do not want a PATH search for config.site.
2408 case $CONFIG_SITE in #((
2409 -*) ac_site_file1=./$CONFIG_SITE;;
2410 */*) ac_site_file1=$CONFIG_SITE;;
2411 *) ac_site_file1=./$CONFIG_SITE;;
2413 elif test "x$prefix" != xNONE; then
2414 ac_site_file1=$prefix/share/config.site
2415 ac_site_file2=$prefix/etc/config.site
2417 ac_site_file1=$ac_default_prefix/share/config.site
2418 ac_site_file2=$ac_default_prefix/etc/config.site
2420 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2422 test "x$ac_site_file" = xNONE && continue
2423 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2425 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2426 sed 's/^/| /' "$ac_site_file" >&5
2428 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430 as_fn_error $? "failed to load site
script $ac_site_file
2431 See \
`config.log' for more details" "$LINENO" 5; }
2435 if test -r "$cache_file"; then
2436 # Some versions of bash will fail to source /dev/null (special files
2437 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2438 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2440 $as_echo "$as_me: loading cache $cache_file" >&6;}
2442 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2443 *) . "./$cache_file";;
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2448 $as_echo "$as_me: creating cache $cache_file" >&6;}
2452 # Check that the precious variables saved in the cache have kept the same
2454 ac_cache_corrupted=false
2455 for ac_var in $ac_precious_vars; do
2456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2457 eval ac_new_set=\$ac_env_${ac_var}_set
2458 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2459 eval ac_new_val=\$ac_env_${ac_var}_value
2460 case $ac_old_set,$ac_new_set in
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2463 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2464 ac_cache_corrupted=: ;;
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2467 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2468 ac_cache_corrupted=: ;;
2471 if test "x$ac_old_val" != "x$ac_new_val"; then
2472 # differences in whitespace do not lead to failure.
2473 ac_old_val_w=`echo x
$ac_old_val`
2474 ac_new_val_w=`echo x
$ac_new_val`
2475 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2477 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2478 ac_cache_corrupted=:
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2481 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2482 eval $ac_var=\$ac_old_val
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2485 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2487 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2490 # Pass precious variables to config.status.
2491 if test "$ac_new_set" = set; then
2493 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2494 *) ac_arg=$ac_var=$ac_new_val ;;
2496 case " $ac_configure_args " in
2497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2498 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2502 if $ac_cache_corrupted; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2506 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2507 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2509 ## -------------------- ##
2510 ## Main body of script. ##
2511 ## -------------------- ##
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2524 if test -f "$ac_dir/install-sh"; then
2526 ac_install_sh="$ac_aux_dir/install-sh -c"
2528 elif test -f "$ac_dir/install.sh"; then
2530 ac_install_sh="$ac_aux_dir/install.sh -c"
2532 elif test -f "$ac_dir/shtool"; then
2534 ac_install_sh="$ac_aux_dir/shtool install -c"
2538 if test -z "$ac_aux_dir"; then
2539 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2542 # These three variables are undocumented and unsupported,
2543 # and are intended to be withdrawn in a future Autoconf release.
2544 # They can cause serious problems if a builder's source tree is in a directory
2545 # whose full name contains unusual characters.
2546 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2547 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2548 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2551 # Make sure we can run config.sub.
2552 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2553 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2556 $as_echo_n "checking build system type... " >&6; }
2557 if ${ac_cv_build+:} false; then :
2558 $as_echo_n "(cached) " >&6
2560 ac_build_alias=$build_alias
2561 test "x$ac_build_alias" = x &&
2562 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2563 test "x$ac_build_alias" = x &&
2564 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2565 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2566 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2570 $as_echo "$ac_cv_build" >&6; }
2571 case $ac_cv_build in
2573 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2576 ac_save_IFS=$IFS; IFS='-'
2582 # Remember, the first character of IFS is used to create $*,
2583 # except with old shells:
2586 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2590 $as_echo_n "checking host system type... " >&6; }
2591 if ${ac_cv_host+:} false; then :
2592 $as_echo_n "(cached) " >&6
2594 if test "x$host_alias" = x; then
2595 ac_cv_host=$ac_cv_build
2597 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2598 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2603 $as_echo "$ac_cv_host" >&6; }
2606 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2609 ac_save_IFS=$IFS; IFS='-'
2615 # Remember, the first character of IFS is used to create $*,
2616 # except with old shells:
2619 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2623 host_os_name=`echo $host_os |
sed -e '1,$s/[0-9.]*$//g'`
2624 host_os_version=`echo $host_os |
sed -e '1,$s/^[^0-9.]*//g' |
awk -F.
'{print $1 $2}'`
2625 # Linux often does not yield an OS version we can use...
2626 if test "x$host_os_version" = x; then
2630 if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
2631 as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
2634 if test "$build" = "$host"; then
2635 # No, build local targets
2638 # Yes, don't build local targets
2644 ac_config_headers="$ac_config_headers config.h"
2647 CUPS_VERSION="2.2.4"
2649 CUPS_BUILD="cups-$CUPS_VERSION"
2652 # Check whether --with-cups_build was given.
2653 if test "${with_cups_build+set}" = set; then :
2654 withval=$with_cups_build; CUPS_BUILD="$withval"
2661 cat >>confdefs.h <<_ACEOF
2662 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2665 cat >>confdefs.h <<_ACEOF
2666 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2670 CFLAGS="${CFLAGS:=}"
2671 CPPFLAGS="${CPPFLAGS:=}"
2672 CXXFLAGS="${CXXFLAGS:=}"
2673 LDFLAGS="${LDFLAGS:=}"
2675 for ac_prog in gawk mawk nawk awk
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if ${ac_cv_prog_AWK+:} false; then :
2682 $as_echo_n "(cached) " >&6
2684 if test -n "$AWK"; then
2685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_AWK="$ac_prog"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 if test -n "$AWK"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2707 $as_echo "$AWK" >&6; }
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2714 test -n "$AWK" && break
2718 ac_cpp='$CPP $CPPFLAGS'
2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722 if test -n "$ac_tool_prefix"; then
2723 for ac_prog in clang cc gcc
2725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_prog_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 if test -n "$CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755 $as_echo "$CC" >&6; }
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2762 test -n "$CC" && break
2765 if test -z "$CC"; then
2767 for ac_prog in clang cc gcc
2769 # Extract the first word of "$ac_prog", so it can be a program name with args.
2770 set dummy $ac_prog; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_ac_ct_CC="$ac_prog"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797 if test -n "$ac_ct_CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2799 $as_echo "$ac_ct_CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2806 test -n "$ac_ct_CC" && break
2809 if test "x$ac_ct_CC" = x; then
2812 case $cross_compiling:$ac_tool_warned in
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2816 ac_tool_warned=yes ;;
2823 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2825 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2826 See \
`config.log' for more details" "$LINENO" 5; }
2828 # Provide some information about the compiler.
2829 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2832 for ac_option in --version -v -V -qversion; do
2833 { { ac_try="$ac_compiler $ac_option >&5"
2835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2836 *) ac_try_echo
=$ac_try;;
2838 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2839 $as_echo "$ac_try_echo"; } >&5
2840 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2842 if test -s conftest.err
; then
2844 ... rest of stderr output deleted ...
2845 10q' conftest.err
>conftest.er1
2846 cat conftest.er1
>&5
2848 rm -f conftest.er1 conftest.err
2849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850 test $ac_status = 0; }
2853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2854 /* end confdefs.h. */
2864 ac_clean_files_save
=$ac_clean_files
2865 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2866 # Try to create an executable without -o first, disregard a.out.
2867 # It will help us diagnose broken compilers, and finding out an intuition
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2870 $as_echo_n "checking whether the C compiler works... " >&6; }
2871 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2873 # The possible output files:
2874 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2877 for ac_file
in $ac_files
2880 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2881 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2886 if { { ac_try
="$ac_link_default"
2888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892 $as_echo "$ac_try_echo"; } >&5
2893 (eval "$ac_link_default") 2>&5
2895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896 test $ac_status = 0; }; then :
2897 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2898 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2899 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2900 # so that the user can short-circuit this test for compilers unknown to
2902 for ac_file in $ac_files ''
2904 test -f "$ac_file" || continue
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2909 # We found the default executable, but exeext='' is most
2913 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2915 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2917 # We set ac_cv_exeext here because the later test for it is not
2918 # safe: cross compilers may not add the suffix if given an `-o'
2919 # argument, so we may need to know it at that point already.
2920 # Even if this section looks crufty: it has the advantage of
2927 test "$ac_cv_exeext" = no && ac_cv_exeext=
2932 if test -z "$ac_file"; then :
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2935 $as_echo "$as_me: failed program was:" >&5
2936 sed 's
/^
/|
/' conftest.$ac_ext >&5
2938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2940 as_fn_error 77 "C compiler cannot create executables
2941 See \`config.log
' for more details" "$LINENO" 5; }
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2944 $as_echo "yes" >&6; }
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2947 $as_echo_n "checking for C compiler default output file name... " >&6; }
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2949 $as_echo "$ac_file" >&6; }
2950 ac_exeext=$ac_cv_exeext
2952 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2953 ac_clean_files=$ac_clean_files_save
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2955 $as_echo_n "checking for suffix of executables... " >&6; }
2956 if { { ac_try="$ac_link"
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962 $as_echo "$ac_try_echo"; } >&5
2963 (eval "$ac_link") 2>&5
2965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2966 test $ac_status = 0; }; then :
2967 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2968 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2969 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2971 for ac_file
in conftest.exe conftest conftest.
*; do
2972 test -f "$ac_file" ||
continue
2974 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2975 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2983 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2984 See \`config.log' for more details" "$LINENO" 5; }
2986 rm -f conftest conftest
$ac_cv_exeext
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2988 $as_echo "$ac_cv_exeext" >&6; }
2990 rm -f conftest.
$ac_ext
2991 EXEEXT
=$ac_cv_exeext
2993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2994 /* end confdefs.h. */
2999 FILE *f = fopen ("conftest.out", "w");
3000 return ferror (f) || fclose (f) != 0;
3006 ac_clean_files
="$ac_clean_files conftest.out"
3007 # Check that the compiler produces executables we can run. If not, either
3008 # the compiler is broken, or we cross compile.
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3010 $as_echo_n "checking whether we are cross compiling... " >&6; }
3011 if test "$cross_compiling" != yes; then
3012 { { ac_try
="$ac_link"
3014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018 $as_echo "$ac_try_echo"; } >&5
3019 (eval "$ac_link") 2>&5
3021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3022 test $ac_status = 0; }
3023 if { ac_try='./conftest$ac_cv_exeext'
3024 { { case "(($ac_try" in
3025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3026 *) ac_try_echo
=$ac_try;;
3028 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_try") 2>&5
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }; }; then
3036 if test "$cross_compiling" = maybe
; then
3039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041 as_fn_error $?
"cannot run C compiled programs.
3042 If you meant to cross compile, use \`--host'.
3043 See \`config.log' for more details" "$LINENO" 5; }
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3048 $as_echo "$cross_compiling" >&6; }
3050 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3051 ac_clean_files
=$ac_clean_files_save
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3053 $as_echo_n "checking for suffix of object files... " >&6; }
3054 if ${ac_cv_objext+:} false
; then :
3055 $as_echo_n "(cached) " >&6
3057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3058 /* end confdefs.h. */
3068 rm -f conftest.o conftest.obj
3069 if { { ac_try
="$ac_compile"
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_compile") 2>&5
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 for ac_file in conftest.o conftest.obj conftest.*; do
3081 test -f "$ac_file" || continue;
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3084 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3089 $as_echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3095 See \
`config.log' for more details" "$LINENO" 5; }
3097 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3100 $as_echo "$ac_cv_objext" >&6; }
3101 OBJEXT=$ac_cv_objext
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3104 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3105 if ${ac_cv_c_compiler_gnu+:} false; then :
3106 $as_echo_n "(cached) " >&6
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3122 if ac_fn_c_try_compile "$LINENO"; then :
3127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3132 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3133 if test $ac_compiler_gnu = yes; then
3138 ac_test_CFLAGS=${CFLAGS+set}
3139 ac_save_CFLAGS=$CFLAGS
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3141 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3142 if ${ac_cv_prog_cc_g+:} false; then :
3143 $as_echo_n "(cached) " >&6
3145 ac_save_c_werror_flag=$ac_c_werror_flag
3146 ac_c_werror_flag=yes
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3160 if ac_fn_c_try_compile "$LINENO"; then :
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3175 if ac_fn_c_try_compile "$LINENO"; then :
3178 ac_c_werror_flag=$ac_save_c_werror_flag
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h. */
3191 if ac_fn_c_try_compile "$LINENO"; then :
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3202 $as_echo "$ac_cv_prog_cc_g" >&6; }
3203 if test "$ac_test_CFLAGS" = set; then
3204 CFLAGS=$ac_save_CFLAGS
3205 elif test $ac_cv_prog_cc_g = yes; then
3206 if test "$GCC" = yes; then
3212 if test "$GCC" = yes; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3219 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3220 if ${ac_cv_prog_cc_c89+:} false; then :
3221 $as_echo_n "(cached) " >&6
3223 ac_cv_prog_cc_c89=no
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3229 #include <sys/types.h>
3230 #include <sys/stat.h>
3231 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3232 struct buf { int x; };
3233 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234 static char *e (p, i)
3240 static char *f (char * (*g) (char **, int), char **p, ...)
3245 s = g (p, va_arg (v,int));
3250 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3251 function prototypes and stuff, but not '\xHH' hex character constants.
3252 These don't provoke an error unfortunately, instead are silently treated
3253 as 'x'. The following induces an error, until -std is added to get
3254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3255 array size at least. It's necessary to write '\x00'==0 to get something
3256 that's true only with -std. */
3257 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3260 inside strings and character constants. */
3262 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264 int test (int i, double x);
3265 struct s1 {int (*f) (int a);};
3266 struct s2 {int (*f) (double a);};
3267 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3273 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3278 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3281 CC="$ac_save_CC $ac_arg"
3282 if ac_fn_c_try_compile "$LINENO"; then :
3283 ac_cv_prog_cc_c89=$ac_arg
3285 rm -f core conftest.err conftest.$ac_objext
3286 test "x$ac_cv_prog_cc_c89" != "xno" && break
3288 rm -f conftest.$ac_ext
3293 case "x$ac_cv_prog_cc_c89" in
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3296 $as_echo "none needed" >&6; } ;;
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3299 $as_echo "unsupported" >&6; } ;;
3301 CC="$CC $ac_cv_prog_cc_c89"
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3303 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3305 if test "x$ac_cv_prog_cc_c89" != xno; then :
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3316 ac_cpp='$CPP $CPPFLAGS'
3317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3321 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3322 # On Suns, sometimes $CPP names a directory.
3323 if test -n "$CPP" && test -d "$CPP"; then
3326 if test -z "$CPP"; then
3327 if ${ac_cv_prog_CPP+:} false; then :
3328 $as_echo_n "(cached) " >&6
3330 # Double quotes because CPP needs to be expanded
3331 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3334 for ac_c_preproc_warn_flag in '' yes
3336 # Use a header file that comes with gcc, so configuring glibc
3337 # with a fresh cross-compiler works.
3338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3339 # <limits.h> exists even on freestanding compilers.
3340 # On the NeXT, cc -E runs the code through the compiler's parser,
3341 # not just through cpp. "Syntax error" is here to catch this case.
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3345 # include <limits.h>
3347 # include <assert.h>
3351 if ac_fn_c_try_cpp "$LINENO"; then :
3354 # Broken: fails on valid input.
3357 rm -f conftest.err conftest.i conftest.$ac_ext
3359 # OK, works on sane cases. Now check whether nonexistent headers
3360 # can be detected and how.
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3363 #include <ac_nonexistent.h>
3365 if ac_fn_c_try_cpp "$LINENO"; then :
3366 # Broken: success on invalid input.
3369 # Passes both tests.
3373 rm -f conftest.err conftest.i conftest.$ac_ext
3376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3377 rm -f conftest.i conftest.err conftest.
$ac_ext
3378 if $ac_preproc_ok; then :
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3391 $as_echo "$CPP" >&6; }
3393 for ac_c_preproc_warn_flag
in '' yes
3395 # Use a header file that comes with gcc, so configuring glibc
3396 # with a fresh cross-compiler works.
3397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3398 # <limits.h> exists even on freestanding compilers.
3399 # On the NeXT, cc -E runs the code through the compiler's parser,
3400 # not just through cpp. "Syntax error" is here to catch this case.
3401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3404 # include <limits.h>
3406 # include <assert.h>
3410 if ac_fn_c_try_cpp
"$LINENO"; then :
3413 # Broken: fails on valid input.
3416 rm -f conftest.err conftest.i conftest.
$ac_ext
3418 # OK, works on sane cases. Now check whether nonexistent headers
3419 # can be detected and how.
3420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3422 #include <ac_nonexistent.h>
3424 if ac_fn_c_try_cpp
"$LINENO"; then :
3425 # Broken: success on invalid input.
3428 # Passes both tests.
3432 rm -f conftest.err conftest.i conftest.
$ac_ext
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.i conftest.err conftest.
$ac_ext
3437 if $ac_preproc_ok; then :
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details" "$LINENO" 5; }
3447 ac_cpp
='$CPP $CPPFLAGS'
3448 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3453 ac_cpp
='$CXXCPP $CPPFLAGS'
3454 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3457 if test -z "$CXX"; then
3458 if test -n "$CCC"; then
3461 if test -n "$ac_tool_prefix"; then
3462 for ac_prog
in clang
++ c
++ g
++
3464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3465 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467 $as_echo_n "checking for $ac_word... " >&6; }
3468 if ${ac_cv_prog_CXX+:} false
; then :
3469 $as_echo_n "(cached) " >&6
3471 if test -n "$CXX"; then
3472 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3478 test -z "$as_dir" && as_dir
=.
3479 for ac_exec_ext
in '' $ac_executable_extensions; do
3480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 if test -n "$CXX"; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3494 $as_echo "$CXX" >&6; }
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3501 test -n "$CXX" && break
3504 if test -z "$CXX"; then
3506 for ac_prog
in clang
++ c
++ g
++
3508 # Extract the first word of "$ac_prog", so it can be a program name with args.
3509 set dummy
$ac_prog; ac_word
=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3513 $as_echo_n "(cached) " >&6
3515 if test -n "$ac_ct_CXX"; then
3516 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir
=.
3523 for ac_exec_ext
in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3536 if test -n "$ac_ct_CXX"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3538 $as_echo "$ac_ct_CXX" >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3545 test -n "$ac_ct_CXX" && break
3548 if test "x$ac_ct_CXX" = x
; then
3551 case $cross_compiling:$ac_tool_warned in
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3555 ac_tool_warned
=yes ;;
3563 # Provide some information about the compiler.
3564 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3567 for ac_option
in --version -v -V -qversion; do
3568 { { ac_try
="$ac_compiler $ac_option >&5"
3570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3577 if test -s conftest.err; then
3579 ... rest of stderr output deleted ...
3580 10q' conftest.err >conftest.er1
3581 cat conftest.er1 >&5
3583 rm -f conftest.er1 conftest.err
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3589 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3590 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3591 $as_echo_n "(cached) " >&6
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3607 if ac_fn_cxx_try_compile "$LINENO"; then :
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3617 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3618 if test $ac_compiler_gnu = yes; then
3623 ac_test_CXXFLAGS=${CXXFLAGS+set}
3624 ac_save_CXXFLAGS=$CXXFLAGS
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3626 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3627 if ${ac_cv_prog_cxx_g+:} false; then :
3628 $as_echo_n "(cached) " >&6
3630 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3631 ac_cxx_werror_flag=yes
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3645 if ac_fn_cxx_try_compile "$LINENO"; then :
3646 ac_cv_prog_cxx_g=yes
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3660 if ac_fn_cxx_try_compile "$LINENO"; then :
3663 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3676 if ac_fn_cxx_try_compile "$LINENO"; then :
3677 ac_cv_prog_cxx_g=yes
3679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3687 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3688 if test "$ac_test_CXXFLAGS" = set; then
3689 CXXFLAGS=$ac_save_CXXFLAGS
3690 elif test $ac_cv_prog_cxx_g = yes; then
3691 if test "$GXX" = yes; then
3697 if test "$GXX" = yes; then
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709 if test -n "$ac_tool_prefix"; then
3710 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3711 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if ${ac_cv_prog_RANLIB+:} false; then :
3715 $as_echo_n "(cached) " >&6
3717 if test -n "$RANLIB"; then
3718 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 RANLIB=$ac_cv_prog_RANLIB
3738 if test -n "$RANLIB"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3740 $as_echo "$RANLIB" >&6; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3748 if test -z "$ac_cv_prog_RANLIB"; then
3749 ac_ct_RANLIB=$RANLIB
3750 # Extract the first word of "ranlib", so it can be a program name with args.
3751 set dummy ranlib; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3755 $as_echo_n "(cached) " >&6
3757 if test -n "$ac_ct_RANLIB"; then
3758 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_ac_ct_RANLIB="ranlib"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3778 if test -n "$ac_ct_RANLIB"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3780 $as_echo "$ac_ct_RANLIB" >&6; }
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3786 if test "x$ac_ct_RANLIB" = x; then
3789 case $cross_compiling:$ac_tool_warned in
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3793 ac_tool_warned=yes ;;
3795 RANLIB=$ac_ct_RANLIB
3798 RANLIB="$ac_cv_prog_RANLIB"
3801 # Extract the first word of "ar", so it can be a program name with args.
3802 set dummy ar; ac_word=$2
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if ${ac_cv_path_AR+:} false; then :
3806 $as_echo_n "(cached) " >&6
3810 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3820 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 if test -n "$AR"; then
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3834 $as_echo "$AR" >&6; }
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837 $as_echo "no" >&6; }
3841 # Extract the first word of "chmod", so it can be a program name with args.
3842 set dummy chmod; ac_word=$2
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if ${ac_cv_path_CHMOD+:} false; then :
3846 $as_echo_n "(cached) " >&6
3850 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3860 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 CHMOD=$ac_cv_path_CHMOD
3872 if test -n "$CHMOD"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3874 $as_echo "$CHMOD" >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 $as_echo "no" >&6; }
3881 # Extract the first word of "gzip", so it can be a program name with args.
3882 set dummy gzip; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if ${ac_cv_path_GZIP+:} false; then :
3886 $as_echo_n "(cached) " >&6
3890 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 GZIP=$ac_cv_path_GZIP
3912 if test -n "$GZIP"; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3914 $as_echo "$GZIP" >&6; }
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3921 # Extract the first word of "ld", so it can be a program name with args.
3922 set dummy ld; ac_word=$2
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 $as_echo_n "checking for $ac_word... " >&6; }
3925 if ${ac_cv_path_LD+:} false; then :
3926 $as_echo_n "(cached) " >&6
3930 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3940 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 if test -n "$LD"; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3954 $as_echo "$LD" >&6; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957 $as_echo "no" >&6; }
3961 # Extract the first word of "ln", so it can be a program name with args.
3962 set dummy ln; ac_word=$2
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 $as_echo_n "checking for $ac_word... " >&6; }
3965 if ${ac_cv_path_LN+:} false; then :
3966 $as_echo_n "(cached) " >&6
3970 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3980 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 if test -n "$LN"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
3994 $as_echo "$LN" >&6; }
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
4001 # Extract the first word of "mv", so it can be a program name with args.
4002 set dummy mv; ac_word=$2
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004 $as_echo_n "checking for $ac_word... " >&6; }
4005 if ${ac_cv_path_MV+:} false; then :
4006 $as_echo_n "(cached) " >&6
4010 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4020 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 if test -n "$MV"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4034 $as_echo "$MV" >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4041 # Extract the first word of "rm", so it can be a program name with args.
4042 set dummy rm; ac_word=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if ${ac_cv_path_RM+:} false; then :
4046 $as_echo_n "(cached) " >&6
4050 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4060 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 if test -n "$RM"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4074 $as_echo "$RM" >&6; }
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4081 # Extract the first word of "rmdir", so it can be a program name with args.
4082 set dummy rmdir; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if ${ac_cv_path_RMDIR+:} false; then :
4086 $as_echo_n "(cached) " >&6
4090 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 RMDIR=$ac_cv_path_RMDIR
4112 if test -n "$RMDIR"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4114 $as_echo "$RMDIR" >&6; }
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4121 # Extract the first word of "sed", so it can be a program name with args.
4122 set dummy sed; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_path_SED+:} false; then :
4126 $as_echo_n "(cached) " >&6
4130 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 if test -n "$SED"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4154 $as_echo "$SED" >&6; }
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 $as_echo "no" >&6; }
4161 # Extract the first word of "xdg-open", so it can be a program name with args.
4162 set dummy xdg-open; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_path_XDGOPEN+:} false; then :
4166 $as_echo_n "(cached) " >&6
4170 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4180 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 XDGOPEN=$ac_cv_path_XDGOPEN
4192 if test -n "$XDGOPEN"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4194 $as_echo "$XDGOPEN" >&6; }
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4201 if test "x$XDGOPEN" = x; then
4202 CUPS_HTMLVIEW="htmlview"
4204 CUPS_HTMLVIEW="$XDGOPEN"
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4209 $as_echo_n "checking for install-sh script... " >&6; }
4210 INSTALL="`pwd`/install-sh"
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4213 $as_echo "using $INSTALL" >&6; }
4215 if test "x$AR" = x; then
4216 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4218 if test "x$CC" = x; then
4219 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4223 # Check whether --enable-static was given.
4224 if test "${enable_static+set}" = set; then :
4225 enableval=$enable_static;
4229 if test x$enable_static = xyes; then
4230 echo Installing static libraries...
4231 INSTALLSTATIC="installstatic"
4236 if test -n "$ac_tool_prefix"; then
4237 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4238 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4240 $as_echo_n "checking for $ac_word... " >&6; }
4241 if ${ac_cv_path_PKGCONFIG+:} false; then :
4242 $as_echo_n "(cached) " >&6
4246 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 PKGCONFIG=$ac_cv_path_PKGCONFIG
4268 if test -n "$PKGCONFIG"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4270 $as_echo "$PKGCONFIG" >&6; }
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4278 if test -z "$ac_cv_path_PKGCONFIG"; then
4279 ac_pt_PKGCONFIG=$PKGCONFIG
4280 # Extract the first word of "pkg-config", so it can be a program name with args.
4281 set dummy pkg-config; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4285 $as_echo_n "(cached) " >&6
4287 case $ac_pt_PKGCONFIG in
4289 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4311 if test -n "$ac_pt_PKGCONFIG"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4313 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4319 if test "x$ac_pt_PKGCONFIG" = x; then
4322 case $cross_compiling:$ac_tool_warned in
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4326 ac_tool_warned=yes ;;
4328 PKGCONFIG=$ac_pt_PKGCONFIG
4331 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4337 $as_echo_n "checking for library containing abs... " >&6; }
4338 if ${ac_cv_search_abs+:} false; then :
4339 $as_echo_n "(cached) " >&6
4341 ac_func_search_save_LIBS=$LIBS
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4345 /* Override any GCC internal prototype to avoid an error.
4346 Use char because int might match the return type of a GCC
4347 builtin and then its argument prototype would still apply. */
4360 for ac_lib in '' m; do
4361 if test -z "$ac_lib"; then
4362 ac_res="none required"
4365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4367 if ac_fn_c_try_link "$LINENO"; then :
4368 ac_cv_search_abs=$ac_res
4370 rm -f core conftest.err conftest.$ac_objext \
4372 if ${ac_cv_search_abs+:} false; then :
4376 if ${ac_cv_search_abs+:} false; then :
4382 LIBS=$ac_func_search_save_LIBS
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4385 $as_echo "$ac_cv_search_abs" >&6; }
4386 ac_res=$ac_cv_search_abs
4387 if test "$ac_res" != no; then :
4388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4389 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4394 $as_echo_n "checking for library containing crypt... " >&6; }
4395 if ${ac_cv_search_crypt+:} false; then :
4396 $as_echo_n "(cached) " >&6
4398 ac_func_search_save_LIBS=$LIBS
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4402 /* Override any GCC internal prototype to avoid an error.
4403 Use char because int might match the return type of a GCC
4404 builtin and then its argument prototype would still apply. */
4417 for ac_lib in '' crypt; do
4418 if test -z "$ac_lib"; then
4419 ac_res="none required"
4422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4424 if ac_fn_c_try_link "$LINENO"; then :
4425 ac_cv_search_crypt=$ac_res
4427 rm -f core conftest.err conftest.$ac_objext \
4429 if ${ac_cv_search_crypt+:} false; then :
4433 if ${ac_cv_search_crypt+:} false; then :
4436 ac_cv_search_crypt=no
4439 LIBS=$ac_func_search_save_LIBS
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4442 $as_echo "$ac_cv_search_crypt" >&6; }
4443 ac_res=$ac_cv_search_crypt
4444 if test "$ac_res" != no; then :
4445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4450 $as_echo_n "checking for library containing fmod... " >&6; }
4451 if ${ac_cv_search_fmod+:} false; then :
4452 $as_echo_n "(cached) " >&6
4454 ac_func_search_save_LIBS=$LIBS
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4458 /* Override any GCC internal prototype to avoid an error.
4459 Use char because int might match the return type of a GCC
4460 builtin and then its argument prototype would still apply. */
4473 for ac_lib in '' m; do
4474 if test -z "$ac_lib"; then
4475 ac_res="none required"
4478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4480 if ac_fn_c_try_link "$LINENO"; then :
4481 ac_cv_search_fmod=$ac_res
4483 rm -f core conftest.err conftest.$ac_objext \
4485 if ${ac_cv_search_fmod+:} false; then :
4489 if ${ac_cv_search_fmod+:} false; then :
4492 ac_cv_search_fmod=no
4495 LIBS=$ac_func_search_save_LIBS
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4498 $as_echo "$ac_cv_search_fmod" >&6; }
4499 ac_res=$ac_cv_search_fmod
4500 if test "$ac_res" != no; then :
4501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4506 $as_echo_n "checking for library containing getspent... " >&6; }
4507 if ${ac_cv_search_getspent+:} false; then :
4508 $as_echo_n "(cached) " >&6
4510 ac_func_search_save_LIBS=$LIBS
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4514 /* Override any GCC internal prototype to avoid an error.
4515 Use char because int might match the return type of a GCC
4516 builtin and then its argument prototype would still apply. */
4529 for ac_lib in '' sec gen; do
4530 if test -z "$ac_lib"; then
4531 ac_res="none required"
4534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4536 if ac_fn_c_try_link "$LINENO"; then :
4537 ac_cv_search_getspent=$ac_res
4539 rm -f core conftest.err conftest.$ac_objext \
4541 if ${ac_cv_search_getspent+:} false; then :
4545 if ${ac_cv_search_getspent+:} false; then :
4548 ac_cv_search_getspent=no
4551 LIBS=$ac_func_search_save_LIBS
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4554 $as_echo "$ac_cv_search_getspent" >&6; }
4555 ac_res=$ac_cv_search_getspent
4556 if test "$ac_res" != no; then :
4557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4563 # Check whether --enable-mallinfo was given.
4564 if test "${enable_mallinfo+set}" = set; then :
4565 enableval=$enable_mallinfo;
4569 if test x$enable_mallinfo = xyes; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4573 $as_echo_n "checking for library containing mallinfo... " >&6; }
4574 if ${ac_cv_search_mallinfo+:} false; then :
4575 $as_echo_n "(cached) " >&6
4577 ac_func_search_save_LIBS=$LIBS
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4581 /* Override any GCC internal prototype to avoid an error.
4582 Use char because int might match the return type of a GCC
4583 builtin and then its argument prototype would still apply. */
4596 for ac_lib in '' malloc; do
4597 if test -z "$ac_lib"; then
4598 ac_res="none required"
4601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4603 if ac_fn_c_try_link "$LINENO"; then :
4604 ac_cv_search_mallinfo=$ac_res
4606 rm -f core conftest.err conftest.$ac_objext \
4608 if ${ac_cv_search_mallinfo+:} false; then :
4612 if ${ac_cv_search_mallinfo+:} false; then :
4615 ac_cv_search_mallinfo=no
4618 LIBS=$ac_func_search_save_LIBS
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4621 $as_echo "$ac_cv_search_mallinfo" >&6; }
4622 ac_res=$ac_cv_search_mallinfo
4623 if test "$ac_res" != no; then :
4624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4625 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4635 # Check whether --enable-libpaper was given.
4636 if test "${enable_libpaper+set}" = set; then :
4637 enableval=$enable_libpaper;
4641 if test x$enable_libpaper = xyes; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4643 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4644 if ${ac_cv_lib_paper_systempapername+:} false; then :
4645 $as_echo_n "(cached) " >&6
4647 ac_check_lib_save_LIBS=$LIBS
4648 LIBS="-lpaper $LIBS"
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4652 /* Override any GCC internal prototype to avoid an error.
4653 Use char because int might match the return type of a GCC
4654 builtin and then its argument prototype would still apply. */
4658 char systempapername ();
4662 return systempapername ();
4667 if ac_fn_c_try_link "$LINENO"; then :
4668 ac_cv_lib_paper_systempapername=yes
4670 ac_cv_lib_paper_systempapername=no
4672 rm -f core conftest.err conftest.$ac_objext \
4673 conftest$ac_exeext conftest.$ac_ext
4674 LIBS=$ac_check_lib_save_LIBS
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4677 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4678 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4679 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4693 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4694 if ${ac_cv_path_GREP+:} false; then :
4695 $as_echo_n "(cached) " >&6
4697 if test -z "$GREP"; then
4698 ac_path_GREP_found=false
4699 # Loop through the user's path and test for each of PROGNAME-LIST
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4704 test -z "$as_dir" && as_dir=.
4705 for ac_prog in grep ggrep; do
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4708 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4709 # Check for GNU ac_path_GREP and select it if it is found.
4710 # Check for GNU $ac_path_GREP
4711 case `"$ac_path_GREP" --version 2>&1` in
4713 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4716 $as_echo_n 0123456789 >"conftest.in"
4719 cat "conftest.in" "conftest.in" >"conftest.tmp"
4720 mv "conftest.tmp" "conftest.in"
4721 cp "conftest.in" "conftest.nl"
4722 $as_echo 'GREP' >> "conftest.nl"
4723 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4725 as_fn_arith $ac_count + 1 && ac_count=$as_val
4726 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4727 # Best one so far, save it but keep looking for a better one
4728 ac_cv_path_GREP="$ac_path_GREP"
4729 ac_path_GREP_max=$ac_count
4731 # 10*(2^10) chars as input seems more than enough
4732 test $ac_count -gt 10 && break
4734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4737 $ac_path_GREP_found && break 3
4742 if test -z "$ac_cv_path_GREP"; then
4743 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4746 ac_cv_path_GREP=$GREP
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4751 $as_echo "$ac_cv_path_GREP" >&6; }
4752 GREP="$ac_cv_path_GREP"
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4756 $as_echo_n "checking for egrep... " >&6; }
4757 if ${ac_cv_path_EGREP+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4761 then ac_cv_path_EGREP="$GREP -E"
4763 if test -z "$EGREP"; then
4764 ac_path_EGREP_found=false
4765 # Loop through the user's path and test for each of PROGNAME-LIST
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4770 test -z "$as_dir" && as_dir=.
4771 for ac_prog in egrep; do
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4774 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4775 # Check for GNU ac_path_EGREP and select it if it is found.
4776 # Check for GNU $ac_path_EGREP
4777 case `"$ac_path_EGREP" --version 2>&1` in
4779 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4782 $as_echo_n 0123456789 >"conftest.in"
4785 cat "conftest.in" "conftest.in" >"conftest.tmp"
4786 mv "conftest.tmp" "conftest.in"
4787 cp "conftest.in" "conftest.nl"
4788 $as_echo 'EGREP' >> "conftest.nl"
4789 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4791 as_fn_arith $ac_count + 1 && ac_count=$as_val
4792 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4793 # Best one so far, save it but keep looking for a better one
4794 ac_cv_path_EGREP="$ac_path_EGREP"
4795 ac_path_EGREP_max=$ac_count
4797 # 10*(2^10) chars as input seems more than enough
4798 test $ac_count -gt 10 && break
4800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4803 $ac_path_EGREP_found && break 3
4808 if test -z "$ac_cv_path_EGREP"; then
4809 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4812 ac_cv_path_EGREP=$EGREP
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4818 $as_echo "$ac_cv_path_EGREP" >&6; }
4819 EGREP="$ac_cv_path_EGREP"
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4823 $as_echo_n "checking for ANSI C header files... " >&6; }
4824 if ${ac_cv_header_stdc+:} false; then :
4825 $as_echo_n "(cached) " >&6
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4842 if ac_fn_c_try_compile "$LINENO"; then :
4843 ac_cv_header_stdc=yes
4845 ac_cv_header_stdc=no
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849 if test $ac_cv_header_stdc = yes; then
4850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4857 $EGREP "memchr" >/dev/null 2>&1; then :
4860 ac_cv_header_stdc=no
4866 if test $ac_cv_header_stdc = yes; then
4867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4874 $EGREP "free" >/dev/null 2>&1; then :
4877 ac_cv_header_stdc=no
4883 if test $ac_cv_header_stdc = yes; then
4884 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4885 if test "$cross_compiling" = yes; then :
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4892 #if ((' ' & 0x0FF) == 0x020)
4893 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4894 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4896 # define ISLOWER(c) \
4897 (('a' <= (c) && (c) <= 'i') \
4898 || ('j' <= (c) && (c) <= 'r') \
4899 || ('s' <= (c) && (c) <= 'z'))
4900 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4903 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4908 for (i = 0; i < 256; i++)
4909 if (XOR (islower (i), ISLOWER (i))
4910 || toupper (i) != TOUPPER (i))
4915 if ac_fn_c_try_run "$LINENO"; then :
4918 ac_cv_header_stdc=no
4920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4921 conftest.$ac_objext conftest.beam conftest.$ac_ext
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4927 $as_echo "$ac_cv_header_stdc" >&6; }
4928 if test $ac_cv_header_stdc = yes; then
4930 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4934 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4935 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4936 inttypes.h stdint.h unistd.h
4938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4939 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4941 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4942 cat >>confdefs.h <<_ACEOF
4943 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4951 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4952 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4953 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
4958 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
4959 if test "x$ac_cv_header_crypt_h" = xyes; then :
4960 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
4965 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
4966 if test "x$ac_cv_header_langinfo_h" = xyes; then :
4967 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
4972 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4973 if test "x$ac_cv_header_malloc_h" = xyes; then :
4974 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
4979 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4980 if test "x$ac_cv_header_shadow_h" = xyes; then :
4981 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
4986 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4987 if test "x$ac_cv_header_stdint_h" = xyes; then :
4988 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
4993 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4994 if test "x$ac_cv_header_string_h" = xyes; then :
4995 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5000 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5001 if test "x$ac_cv_header_strings_h" = xyes; then :
5002 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5007 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5008 if test "x$ac_cv_header_bstring_h" = xyes; then :
5009 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5014 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5015 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5016 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5021 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5022 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5023 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5028 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5029 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5030 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5036 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5037 if test "x$ac_cv_header_iconv_h" = xyes; then :
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5041 $as_echo_n "checking for library containing iconv_open... " >&6; }
5042 if ${ac_cv_search_iconv_open+:} false; then :
5043 $as_echo_n "(cached) " >&6
5045 ac_func_search_save_LIBS=$LIBS
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5049 /* Override any GCC internal prototype to avoid an error.
5050 Use char because int might match the return type of a GCC
5051 builtin and then its argument prototype would still apply. */
5059 return iconv_open ();
5064 for ac_lib in '' iconv; do
5065 if test -z "$ac_lib"; then
5066 ac_res="none required"
5069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5071 if ac_fn_c_try_link "$LINENO"; then :
5072 ac_cv_search_iconv_open=$ac_res
5074 rm -f core conftest.err conftest.$ac_objext \
5076 if ${ac_cv_search_iconv_open+:} false; then :
5080 if ${ac_cv_search_iconv_open+:} false; then :
5083 ac_cv_search_iconv_open=no
5086 LIBS=$ac_func_search_save_LIBS
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5089 $as_echo "$ac_cv_search_iconv_open" >&6; }
5090 ac_res=$ac_cv_search_iconv_open
5091 if test "$ac_res" != no; then :
5092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5093 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5095 SAVELIBS="$SAVELIBS $LIBS"
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5099 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5100 if ${ac_cv_search_libiconv_open+:} false; then :
5101 $as_echo_n "(cached) " >&6
5103 ac_func_search_save_LIBS=$LIBS
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5107 /* Override any GCC internal prototype to avoid an error.
5108 Use char because int might match the return type of a GCC
5109 builtin and then its argument prototype would still apply. */
5113 char libiconv_open ();
5117 return libiconv_open ();
5122 for ac_lib in '' iconv; do
5123 if test -z "$ac_lib"; then
5124 ac_res="none required"
5127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5129 if ac_fn_c_try_link "$LINENO"; then :
5130 ac_cv_search_libiconv_open=$ac_res
5132 rm -f core conftest.err conftest.$ac_objext \
5134 if ${ac_cv_search_libiconv_open+:} false; then :
5138 if ${ac_cv_search_libiconv_open+:} false; then :
5141 ac_cv_search_libiconv_open=no
5144 LIBS=$ac_func_search_save_LIBS
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5147 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5148 ac_res=$ac_cv_search_libiconv_open
5149 if test "$ac_res" != no; then :
5150 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5151 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5153 SAVELIBS="$SAVELIBS $LIBS"
5162 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5163 if test "x$ac_cv_header_mxml_h" = xyes; then :
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5166 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5167 if ${ac_cv_search_mmxlNewElement+:} false; then :
5168 $as_echo_n "(cached) " >&6
5170 ac_func_search_save_LIBS=$LIBS
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5174 /* Override any GCC internal prototype to avoid an error.
5175 Use char because int might match the return type of a GCC
5176 builtin and then its argument prototype would still apply. */
5180 char mmxlNewElement ();
5184 return mmxlNewElement ();
5189 for ac_lib in '' mxml; do
5190 if test -z "$ac_lib"; then
5191 ac_res="none required"
5194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5196 if ac_fn_c_try_link "$LINENO"; then :
5197 ac_cv_search_mmxlNewElement=$ac_res
5199 rm -f core conftest.err conftest.$ac_objext \
5201 if ${ac_cv_search_mmxlNewElement+:} false; then :
5205 if ${ac_cv_search_mmxlNewElement+:} false; then :
5208 ac_cv_search_mmxlNewElement=no
5211 LIBS=$ac_func_search_save_LIBS
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5214 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5215 ac_res=$ac_cv_search_mmxlNewElement
5216 if test "$ac_res" != no; then :
5217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5218 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5229 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5230 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5231 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5236 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5237 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5238 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5243 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5244 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5245 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5250 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5251 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5252 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5257 for ac_func in statfs statvfs
5259 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5260 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5261 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5262 cat >>confdefs.h <<_ACEOF
5263 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5270 for ac_func in strdup strlcat strlcpy
5272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5274 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5275 cat >>confdefs.h <<_ACEOF
5276 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5282 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5283 echo Forcing snprintf emulation for HP-UX.
5285 for ac_func in snprintf vsnprintf
5287 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5288 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5289 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5290 cat >>confdefs.h <<_ACEOF
5291 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5299 for ac_func in random lrand48 arc4random
5301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5302 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5303 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5304 cat >>confdefs.h <<_ACEOF
5305 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5312 for ac_func in geteuid
5314 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5315 if test "x$ac_cv_func_geteuid" = xyes; then :
5316 cat >>confdefs.h <<_ACEOF
5317 #define HAVE_GETEUID 1
5324 for ac_func in setpgid
5326 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5327 if test "x$ac_cv_func_setpgid" = xyes; then :
5328 cat >>confdefs.h <<_ACEOF
5329 #define HAVE_SETPGID 1
5336 for ac_func in vsyslog
5338 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5339 if test "x$ac_cv_func_vsyslog" = xyes; then :
5340 cat >>confdefs.h <<_ACEOF
5341 #define HAVE_VSYSLOG 1
5348 case "$host_os_name" in
5350 # Do not use sigset on Linux or GNU HURD
5353 # Use sigset on other platforms, if available
5354 for ac_func in sigset
5356 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5357 if test "x$ac_cv_func_sigset" = xyes; then :
5358 cat >>confdefs.h <<_ACEOF
5359 #define HAVE_SIGSET 1
5368 for ac_func in sigaction
5370 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5371 if test "x$ac_cv_func_sigaction" = xyes; then :
5372 cat >>confdefs.h <<_ACEOF
5373 #define HAVE_SIGACTION 1
5380 for ac_func in waitpid wait3
5382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5383 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5384 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5385 cat >>confdefs.h <<_ACEOF
5386 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5393 for ac_func in posix_spawn
5395 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5396 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5397 cat >>confdefs.h <<_ACEOF
5398 #define HAVE_POSIX_SPAWN 1
5405 for ac_func in getgrouplist
5407 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5408 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5409 cat >>confdefs.h <<_ACEOF
5410 #define HAVE_GETGROUPLIST 1
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5418 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5426 int o = t.tm_gmtoff;
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5433 $as_echo "yes" >&6; }
5434 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5443 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 #include <sys/stat.h>
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458 $as_echo "yes" >&6; }
5459 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 for ac_func in removefile
5469 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5470 if test "x$ac_cv_func_removefile" = xyes; then :
5471 cat >>confdefs.h <<_ACEOF
5472 #define HAVE_REMOVEFILE 1
5479 # Check whether --enable-libusb was given.
5480 if test "${enable_libusb+set}" = set; then :
5481 enableval=$enable_libusb;
5490 if test "x$PKGCONFIG" != x; then
5491 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5493 $as_echo_n "checking for libusb-1.0... " >&6; }
5494 if $PKGCONFIG --exists libusb-1.0; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5496 $as_echo "yes" >&6; }
5497 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5499 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5500 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5501 USBQUIRKS="\$(DATADIR)/usb"
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 if test x$enable_libusb = xyes; then
5506 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5510 elif test x$enable_libusb = xyes; then
5511 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5514 # Check whether --enable-tcp_wrappers was given.
5515 if test "${enable_tcp_wrappers+set}" = set; then :
5516 enableval=$enable_tcp_wrappers;
5523 if test x$enable_tcp_wrappers = xyes; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5525 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5526 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5527 $as_echo_n "(cached) " >&6
5529 ac_check_lib_save_LIBS=$LIBS
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5534 /* Override any GCC internal prototype to avoid an error.
5535 Use char because int might match the return type of a GCC
5536 builtin and then its argument prototype would still apply. */
5540 char hosts_access ();
5544 return hosts_access ();
5549 if ac_fn_c_try_link "$LINENO"; then :
5550 ac_cv_lib_wrap_hosts_access=yes
5552 ac_cv_lib_wrap_hosts_access=no
5554 rm -f core conftest.err conftest.$ac_objext \
5555 conftest$ac_exeext conftest.$ac_ext
5556 LIBS=$ac_check_lib_save_LIBS
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5559 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5560 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5562 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5563 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5564 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5576 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5577 if test "x$ac_cv_header_zlib_h" = xyes; then :
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5579 $as_echo_n "checking for gzgets in -lz... " >&6; }
5580 if ${ac_cv_lib_z_gzgets+:} false; then :
5581 $as_echo_n "(cached) " >&6
5583 ac_check_lib_save_LIBS=$LIBS
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5588 /* Override any GCC internal prototype to avoid an error.
5589 Use char because int might match the return type of a GCC
5590 builtin and then its argument prototype would still apply. */
5603 if ac_fn_c_try_link "$LINENO"; then :
5604 ac_cv_lib_z_gzgets=yes
5606 ac_cv_lib_z_gzgets=no
5608 rm -f core conftest.err conftest.$ac_objext \
5609 conftest$ac_exeext conftest.$ac_ext
5610 LIBS=$ac_check_lib_save_LIBS
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5613 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5614 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5615 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5620 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5621 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5622 $as_echo_n "(cached) " >&6
5624 ac_check_lib_save_LIBS=$LIBS
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5629 /* Override any GCC internal prototype to avoid an error.
5630 Use char because int might match the return type of a GCC
5631 builtin and then its argument prototype would still apply. */
5635 char inflateCopy ();
5639 return inflateCopy ();
5644 if ac_fn_c_try_link "$LINENO"; then :
5645 ac_cv_lib_z_inflateCopy=yes
5647 ac_cv_lib_z_inflateCopy=no
5649 rm -f core conftest.err conftest.$ac_objext \
5650 conftest$ac_exeext conftest.$ac_ext
5651 LIBS=$ac_check_lib_save_LIBS
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5654 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5655 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5656 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5660 if test "x$GZIP" != z; then
5671 case $host_os_name in
5689 # Check whether --enable-acl was given.
5690 if test "${enable_acl+set}" = set; then :
5691 enableval=$enable_acl;
5694 if test "x$enable_acl" != xno; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5696 $as_echo_n "checking for library containing acl_init... " >&6; }
5697 if ${ac_cv_search_acl_init+:} false; then :
5698 $as_echo_n "(cached) " >&6
5700 ac_func_search_save_LIBS=$LIBS
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5704 /* Override any GCC internal prototype to avoid an error.
5705 Use char because int might match the return type of a GCC
5706 builtin and then its argument prototype would still apply. */
5719 for ac_lib in '' acl; do
5720 if test -z "$ac_lib"; then
5721 ac_res="none required"
5724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5726 if ac_fn_c_try_link "$LINENO"; then :
5727 ac_cv_search_acl_init=$ac_res
5729 rm -f core conftest.err conftest.$ac_objext \
5731 if ${ac_cv_search_acl_init+:} false; then :
5735 if ${ac_cv_search_acl_init+:} false; then :
5738 ac_cv_search_acl_init=no
5741 LIBS=$ac_func_search_save_LIBS
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5744 $as_echo "$ac_cv_search_acl_init" >&6; }
5745 ac_res=$ac_cv_search_acl_init
5746 if test "$ac_res" != no; then :
5747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5748 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5752 SERVERLIBS="$SERVERLIBS $LIBS"
5756 # Check whether --enable-dbus was given.
5757 if test "${enable_dbus+set}" = set; then :
5758 enableval=$enable_dbus;
5762 # Check whether --with-dbusdir was given.
5763 if test "${with_dbusdir+set}" = set; then :
5764 withval=$with_dbusdir; DBUSDIR="$withval"
5770 DBUS_NOTIFIERLIBS=""
5772 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5774 $as_echo_n "checking for DBUS... " >&6; }
5775 if $PKGCONFIG --exists dbus-1; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5777 $as_echo "yes" >&6; }
5778 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5780 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5781 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5782 DBUS_NOTIFIER="dbus"
5783 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5785 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5786 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5787 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5788 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5792 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5793 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5794 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5799 if test -d /etc/dbus-1; then
5800 DBUSDIR="/etc/dbus-1"
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804 $as_echo "no" >&6; }
5812 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5813 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5814 CUPS_SYSTEM_AUTHKEY=""
5817 case $host_os_name in
5819 BACKLIBS="$BACKLIBS -framework IOKit"
5820 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5821 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5823 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5824 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5825 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5830 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5831 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5832 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5837 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5838 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5839 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5844 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5845 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5846 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5852 for ac_func in SCDynamicStoreCopyComputerName
5854 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5855 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5856 cat >>confdefs.h <<_ACEOF
5857 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5864 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5865 if test "x$ac_cv_header_membership_h" = xyes; then :
5866 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5871 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5872 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5873 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5878 for ac_func in mbr_uid_to_uuid
5880 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5881 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5882 cat >>confdefs.h <<_ACEOF
5883 #define HAVE_MBR_UID_TO_UUID 1
5890 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5891 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5892 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5898 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5899 if test "x$ac_cv_header_notify_h" = xyes; then :
5900 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5905 for ac_func in notify_post
5907 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5908 if test "x$ac_cv_func_notify_post" = xyes; then :
5909 cat >>confdefs.h <<_ACEOF
5910 #define HAVE_NOTIFY_POST 1
5918 # Check whether --with-adminkey was given.
5919 if test "${with_adminkey+set}" = set; then :
5920 withval=$with_adminkey; default_adminkey="$withval"
5922 default_adminkey="default"
5926 # Check whether --with-operkey was given.
5927 if test "${with_operkey+set}" = set; then :
5928 withval=$with_operkey; default_operkey="$withval"
5930 default_operkey="default"
5934 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5935 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5937 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5940 if test "x$default_adminkey" != xdefault; then
5941 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5942 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5943 elif grep -q system.print.operator /etc/authorization; then
5944 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5945 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5947 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences"
5948 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.preferences"
5951 if test "x$default_operkey" != xdefault; then
5952 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5953 elif grep -q system.print.operator /etc/authorization; then
5954 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5956 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin"
5961 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
5962 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
5963 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
5969 if test $host_os_version -ge 100; then
5970 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5971 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5972 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5978 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
5979 # Broken public headers in 10.7.x...
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5981 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5982 if test -f /usr/local/include/sandbox/private.h; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5984 $as_echo "yes" >&6; }
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5988 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
5992 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5993 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5994 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5996 INSTALLXPC="install-xpc"
6000 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
6001 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
6002 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
6011 cat >>confdefs.h <<_ACEOF
6012 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6015 cat >>confdefs.h <<_ACEOF
6016 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6025 # Check whether --with-components was given.
6026 if test "${with_components+set}" = set; then :
6027 withval=$with_components; COMPONENTS="$withval"
6031 case "$COMPONENTS" in
6033 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6037 BUILDDIRS="data locale"
6041 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6050 if test "$prefix" = "NONE"; then
6054 if test "$exec_prefix" = "NONE"; then
6055 if test "$prefix" = "/"; then
6058 exec_prefix="$prefix"
6062 if test "$bindir" = "\${exec_prefix}/bin"; then
6063 bindir="$exec_prefix/bin"
6066 cat >>confdefs.h <<_ACEOF
6067 #define CUPS_BINDIR "$bindir"
6071 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6072 sbindir="$exec_prefix/sbin"
6075 cat >>confdefs.h <<_ACEOF
6076 #define CUPS_SBINDIR "$sbindir"
6080 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6081 sharedstatedir="/usr/com"
6084 if test "$datarootdir" = "\${prefix}/share"; then
6085 if test "$prefix" = "/"; then
6086 datarootdir="/usr/share"
6088 datarootdir="$prefix/share"
6092 if test "$datadir" = "\${prefix}/share"; then
6093 if test "$prefix" = "/"; then
6094 datadir="/usr/share"
6096 datadir="$prefix/share"
6098 elif test "$datadir" = "\${datarootdir}"; then
6099 datadir="$datarootdir"
6102 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6103 includedir="/usr/include"
6106 if test "$localstatedir" = "\${prefix}/var"; then
6107 if test "$prefix" = "/"; then
6108 if test "$host_os_name" = darwin; then
6109 localstatedir="/private/var"
6111 localstatedir="/var"
6114 localstatedir="$prefix/var"
6118 if test "$sysconfdir" = "\${prefix}/etc"; then
6119 if test "$prefix" = "/"; then
6120 if test "$host_os_name" = darwin; then
6121 sysconfdir="/private/etc"
6126 sysconfdir="$prefix/etc"
6130 if test "$libdir" = "\${exec_prefix}/lib"; then
6131 case "$host_os_name" in
6133 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6134 libdir="$exec_prefix/lib64"
6141 # Check whether --with-privateinclude was given.
6142 if test "${with_privateinclude+set}" = set; then :
6143 withval=$with_privateinclude; privateinclude="$withval"
6148 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6149 PRIVATEINCLUDE="$privateinclude/cups"
6158 # Check whether --with-lpdconfig was given.
6159 if test "${with_lpdconfig+set}" = set; then :
6160 withval=$with_lpdconfig; LPDCONFIG="$withval"
6166 if test "x$LPDCONFIG" = x; then
6167 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6168 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6169 elif test "x$XINETD" != x; then
6170 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6174 if test "x$LPDCONFIG" = xoff; then
6175 cat >>confdefs.h <<_ACEOF
6176 #define CUPS_DEFAULT_LPD_CONFIG ""
6180 cat >>confdefs.h <<_ACEOF
6181 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6187 # Check whether --with-smbconfig was given.
6188 if test "${with_smbconfig+set}" = set; then :
6189 withval=$with_smbconfig; SMBCONFIG="$withval"
6195 if test "x$SMBCONFIG" = x; then
6196 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6197 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6199 for dir in /etc /etc/samba /usr/local/etc; do
6200 if test -f $dir/smb.conf; then
6201 SMBCONFIG="samba://$dir/smb.conf"
6208 if test "x$SMBCONFIG" = xoff; then
6209 cat >>confdefs.h <<_ACEOF
6210 #define CUPS_DEFAULT_SMB_CONFIG ""
6214 cat >>confdefs.h <<_ACEOF
6215 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6222 # Check whether --with-cachedir was given.
6223 if test "${with_cachedir+set}" = set; then :
6224 withval=$with_cachedir; cachedir="$withval"
6230 if test x$cachedir = x; then
6231 if test "x$host_os_name" = xdarwin; then
6232 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6234 CUPS_CACHEDIR="$localstatedir/cache/cups"
6237 CUPS_CACHEDIR="$cachedir"
6239 cat >>confdefs.h <<_ACEOF
6240 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6246 CUPS_DATADIR="$datadir/cups"
6247 cat >>confdefs.h <<_ACEOF
6248 #define CUPS_DATADIR "$datadir/cups"
6255 # Check whether --with-icondir was given.
6256 if test "${with_icondir+set}" = set; then :
6257 withval=$with_icondir; icondir="$withval"
6263 if test "x$icondir" = x -a -d /usr/share/icons; then
6264 ICONDIR="/usr/share/icons"
6273 # Check whether --with-menudir was given.
6274 if test "${with_menudir+set}" = set; then :
6275 withval=$with_menudir; menudir="$withval"
6281 if test "x$menudir" = x -a -d /usr/share/applications; then
6282 MENUDIR="/usr/share/applications"
6289 # Documentation files
6291 # Check whether --with-docdir was given.
6292 if test "${with_docdir+set}" = set; then :
6293 withval=$with_docdir; docdir="$withval"
6299 if test x$docdir = x; then
6300 CUPS_DOCROOT="$datadir/doc/cups"
6301 docdir="$datadir/doc/cups"
6303 CUPS_DOCROOT="$docdir"
6306 cat >>confdefs.h <<_ACEOF
6307 #define CUPS_DOCROOT "$docdir"
6314 # Check whether --with-fontpath was given.
6315 if test "${with_fontpath+set}" = set; then :
6316 withval=$with_fontpath; fontpath="$withval"
6322 if test "x$fontpath" = "x"; then
6323 CUPS_FONTPATH="$datadir/cups/fonts"
6325 CUPS_FONTPATH="$fontpath"
6329 cat >>confdefs.h <<_ACEOF
6330 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6335 if test "$localedir" = "\${datarootdir}/locale"; then
6336 case "$host_os_name" in
6337 linux* | gnu* | *bsd* | darwin*)
6338 CUPS_LOCALEDIR="$datarootdir/locale"
6342 # This is the standard System V location...
6343 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6347 CUPS_LOCALEDIR="$localedir"
6350 cat >>confdefs.h <<_ACEOF
6351 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6358 # Check whether --with-logdir was given.
6359 if test "${with_logdir+set}" = set; then :
6360 withval=$with_logdir; logdir="$withval"
6366 if test x$logdir = x; then
6367 CUPS_LOGDIR="$localstatedir/log/cups"
6368 cat >>confdefs.h <<_ACEOF
6369 #define CUPS_LOGDIR "$localstatedir/log/cups"
6373 CUPS_LOGDIR="$logdir"
6375 cat >>confdefs.h <<_ACEOF
6376 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6381 # Longer-term spool data
6382 CUPS_REQUESTS="$localstatedir/spool/cups"
6383 cat >>confdefs.h <<_ACEOF
6384 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6389 # Server executables...
6390 case "$host_os_name" in
6392 # *BSD and Darwin (macOS)
6394 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6398 INSTALL_SYSV="install-sysv"
6399 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6403 cat >>confdefs.h <<_ACEOF
6404 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6410 # Configuration files
6411 CUPS_SERVERROOT="$sysconfdir/cups"
6412 cat >>confdefs.h <<_ACEOF
6413 #define CUPS_SERVERROOT "$sysconfdir/cups"
6418 # Transient run-time state
6420 # Check whether --with-rundir was given.
6421 if test "${with_rundir+set}" = set; then :
6422 withval=$with_rundir; CUPS_STATEDIR="$withval"
6425 case "$host_os_name" in
6428 CUPS_STATEDIR="$CUPS_SERVERROOT"
6432 CUPS_STATEDIR="$localstatedir/run/cups"
6437 cat >>confdefs.h <<_ACEOF
6438 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6444 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6445 # New GNU "standards" break previous ones, so make sure we use
6446 # the right default location for the operating system...
6447 mandir="\${prefix}/man"
6450 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6451 case "$host_os_name" in
6452 darwin* | linux* | gnu* | *bsd*)
6453 # Darwin, macOS, Linux, GNU HURD, and *BSD
6454 mandir="/usr/share/man"
6455 AMANDIR="/usr/share/man"
6456 PMANDIR="/usr/share/man"
6473 case "$host_os_name" in
6482 linux* | gnu* | darwin*)
6483 # Linux, GNU Hurd, and macOS
6509 DSOFLAGS="${DSOFLAGS:=}"
6511 # Check whether --enable-shared was given.
6512 if test "${enable_shared+set}" = set; then :
6513 enableval=$enable_shared;
6518 LIBCUPSBASE="lib$cupsbase"
6519 LIBCUPSSTATIC="lib$cupsbase.a"
6521 if test x$enable_shared != xno; then
6522 case "$host_os_name" in
6524 LIBCUPS="lib$cupsbase.so.2"
6525 LIBCUPSCGI="libcupscgi.so.1"
6526 LIBCUPSIMAGE="libcupsimage.so.2"
6527 LIBCUPSMIME="libcupsmime.so.1"
6528 LIBCUPSPPDC="libcupsppdc.so.1"
6531 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G \$(OPTIM)"
6533 linux* | gnu* | *bsd*)
6534 LIBCUPS="lib$cupsbase.so.2"
6535 LIBCUPSCGI="libcupscgi.so.1"
6536 LIBCUPSIMAGE="libcupsimage.so.2"
6537 LIBCUPSMIME="libcupsmime.so.1"
6538 LIBCUPSPPDC="libcupsppdc.so.1"
6541 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6544 LIBCUPS="lib$cupsbase.2.dylib"
6545 LIBCUPSCGI="libcupscgi.1.dylib"
6546 LIBCUPSIMAGE="libcupsimage.2.dylib"
6547 LIBCUPSMIME="libcupsmime.1.dylib"
6548 LIBCUPSPPDC="libcupsppdc.1.dylib"
6551 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6554 echo "Warning: shared libraries may not be supported. Trying -shared"
6555 echo " option with compiler."
6556 LIBCUPS="lib$cupsbase.so.2"
6557 LIBCUPSCGI="libcupscgi.so.1"
6558 LIBCUPSIMAGE="libcupsimage.so.2"
6559 LIBCUPSMIME="libcupsmime.so.1"
6560 LIBCUPSPPDC="libcupsppdc.so.1"
6563 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6568 LIBCUPS="lib$cupsbase.a"
6569 LIBCUPSCGI="libcupscgi.a"
6570 LIBCUPSIMAGE="libcupsimage.a"
6571 LIBCUPSMIME="libcupsmime.a"
6572 LIBCUPSPPDC="libcupsppdc.a"
6588 if test x$enable_shared = xno; then
6589 LINKCUPS="../cups/lib$cupsbase.a"
6590 LINKCUPSIMAGE="../filter/libcupsimage.a"
6592 EXTLINKCUPS="-lcups"
6593 EXTLINKCUPSIMAGE="-lcupsimage"
6595 LINKCUPS="-l${cupsbase}"
6596 LINKCUPSIMAGE="-lcupsimage"
6598 EXTLINKCUPS="-lcups"
6599 EXTLINKCUPSIMAGE="-lcupsimage"
6609 if test "$DSO" != ":"; then
6610 # When using DSOs the image libraries are linked to libcupsimage.so
6611 # rather than to the executables. This makes things smaller if you
6612 # are using any static libraries, and it also allows us to distribute
6613 # a single DSO rather than a bunch...
6617 # Tell the run-time linkers where to find a DSO. Some platforms
6618 # need this option, even when the library is installed in a
6619 # standard location...
6620 case $host_os_name in
6623 if test $exec_prefix != /usr; then
6624 DSOFLAGS="-R$libdir $DSOFLAGS"
6625 LDFLAGS="$LDFLAGS -R$libdir"
6626 EXPORT_LDFLAGS="-R$libdir"
6631 if test $exec_prefix != /usr; then
6632 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6633 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6634 EXPORT_LDFLAGS="-Wl,-R$libdir"
6638 # Linux, and HURD...
6639 if test $exec_prefix != /usr; then
6640 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6641 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6642 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6656 # Check whether --enable-libtool_unsupported was given.
6657 if test "${enable_libtool_unsupported+set}" = set; then :
6658 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6659 LIBTOOL="$enable_libtool_unsupported"
6661 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6662 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6671 if test x$LIBTOOL != x; then
6672 LIBCUPS="libcups.la"
6673 LIBCUPSIMAGE="libcupsimage.la"
6674 LINKCUPS="../cups/\$(LIBCUPS)"
6675 LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
6686 # Check whether --with-optim was given.
6687 if test "${with_optim+set}" = set; then :
6688 withval=$with_optim;
6691 # Check whether --enable-debug was given.
6692 if test "${enable_debug+set}" = set; then :
6693 enableval=$enable_debug;
6696 # Check whether --enable-debug_guards was given.
6697 if test "${enable_debug_guards+set}" = set; then :
6698 enableval=$enable_debug_guards;
6701 # Check whether --enable-debug_printfs was given.
6702 if test "${enable_debug_printfs+set}" = set; then :
6703 enableval=$enable_debug_printfs;
6706 # Check whether --enable-unit_tests was given.
6707 if test "${enable_unit_tests+set}" = set; then :
6708 enableval=$enable_unit_tests;
6712 if test x$enable_debug = xyes; then
6718 if test x$enable_debug_printfs = xyes; then
6719 CFLAGS="$CFLAGS -DDEBUG"
6720 CXXFLAGS="$CXXFLAGS -DDEBUG"
6723 if test x$enable_debug_guards = xyes; then
6724 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6725 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6728 if test x$enable_unit_tests = xyes; then
6729 if test "$build" != "$host"; then
6730 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6733 UNITTESTS="unittests"
6740 # Check whether --with-archflags was given.
6741 if test "${with_archflags+set}" = set; then :
6742 withval=$with_archflags;
6746 # Check whether --with-ldarchflags was given.
6747 if test "${with_ldarchflags+set}" = set; then :
6748 withval=$with_ldarchflags;
6752 if test -z "$with_archflags"; then
6755 ARCHFLAGS="$with_archflags"
6758 if test -z "$with_ldarchflags"; then
6759 if test "$host_os_name" = darwin; then
6760 # Only create Intel programs by default
6761 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6763 LDARCHFLAGS="$ARCHFLAGS"
6766 LDARCHFLAGS="$with_ldarchflags"
6772 # Check whether --enable-relro was given.
6773 if test "${enable_relro+set}" = set; then :
6774 enableval=$enable_relro;
6778 CXXLIBS="${CXXLIBS:=}"
6787 if test -n "$GCC"; then
6788 # Add GCC-specific compiler options...
6789 if test -z "$OPTIM"; then
6790 if test "x$with_optim" = x; then
6791 # Default to optimize-for-size and debug
6794 OPTIM="$with_optim $OPTIM"
6798 # Generate position-independent code as needed...
6799 if test $PICFLAG = 1; then
6800 OPTIM="-fPIC $OPTIM"
6803 # The -fstack-protector option is available with some versions of
6804 # GCC and adds "stack canaries" which detect when the return address
6805 # has been overwritten, preventing many types of exploit attacks.
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6807 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6809 CFLAGS="$CFLAGS -fstack-protector"
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6821 if ac_fn_c_try_link "$LINENO"; then :
6822 if test "x$LSB_BUILD" = xy; then
6823 # Can't use stack-protector with LSB binaries...
6824 OPTIM="$OPTIM -fno-stack-protector"
6826 OPTIM="$OPTIM -fstack-protector"
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6829 $as_echo "yes" >&6; }
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6834 rm -f core conftest.err conftest.$ac_objext \
6835 conftest$ac_exeext conftest.$ac_ext
6838 if test "x$LSB_BUILD" != xy; then
6839 # The -fPIE option is available with some versions of GCC and
6840 # adds randomization of addresses, which avoids another class of
6841 # exploits that depend on a fixed address for common functions.
6843 # Not available to LSB binaries...
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6845 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6847 case "$host_os_name" in
6849 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6861 if ac_fn_c_try_compile "$LINENO"; then :
6863 PIEFLAGS="-fPIE -Wl,-pie"
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6865 $as_echo "yes" >&6; }
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6874 CFLAGS="$CFLAGS -fPIE -pie"
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6886 if ac_fn_c_try_compile "$LINENO"; then :
6888 PIEFLAGS="-fPIE -pie"
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6890 $as_echo "yes" >&6; }
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6901 if test "x$with_optim" = x; then
6902 # Add useful warning options for tracking down problems...
6903 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-unused-result" >&5
6906 $as_echo_n "checking whether compiler supports -Wno-unused-result... " >&6; }
6908 CFLAGS="$CFLAGS -Werror -Wno-unused-result"
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6920 if ac_fn_c_try_compile "$LINENO"; then :
6921 OPTIM="$OPTIM -Wno-unused-result"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6923 $as_echo "yes" >&6; }
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-conversion" >&5
6932 $as_echo_n "checking whether compiler supports -Wsign-conversion... " >&6; }
6934 CFLAGS="$CFLAGS -Werror -Wsign-conversion"
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6946 if ac_fn_c_try_compile "$LINENO"; then :
6947 OPTIM="$OPTIM -Wsign-conversion"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6949 $as_echo "yes" >&6; }
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-compare" >&5
6958 $as_echo_n "checking whether compiler supports -Wno-tautological-compare... " >&6; }
6960 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6972 if ac_fn_c_try_compile "$LINENO"; then :
6973 OPTIM="$OPTIM -Wno-tautological-compare"
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6975 $as_echo "yes" >&6; }
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978 $as_echo "no" >&6; }
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 # Additional warning options for development testing...
6984 if test -d .svn; then
6985 OPTIM="-Werror $OPTIM"
6989 case "$host_os_name" in
6991 # -D_FORTIFY_SOURCE=2 adds additional object size
6992 # checking, basically wrapping all string functions
6993 # with buffer-limited ones. Not strictly needed for
6994 # CUPS since we already use buffer-limited calls, but
6995 # this will catch any additions that are broken.
6996 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7000 # The -z relro option is provided by the Linux linker command to
7001 # make relocatable data read-only.
7002 if test x$enable_relro = xyes; then
7003 RELROFLAGS="-Wl,-z,relro,-z,now"
7008 # Add vendor-specific compiler options...
7009 case $host_os_name in
7012 if test -z "$OPTIM"; then
7013 if test "x$with_optim" = x; then
7016 OPTIM="$with_optim $OPTIM"
7020 if test $PICFLAG = 1; then
7021 OPTIM="-KPIC $OPTIM"
7025 # Running some other operating system; inform the user they
7026 # should contribute the necessary options to
7027 # cups-support@cups.org...
7028 echo "Building CUPS with default compiler optimizations; contact"
7029 echo "cups-devel@cups.org with uname and compiler options needed"
7030 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7031 echo "variables before running configure."
7036 # Add general compiler options per platform...
7037 case $host_os_name in
7039 # glibc 2.8 and higher breaks peer credentials unless you
7040 # define _GNU_SOURCE...
7041 OPTIM="$OPTIM -D_GNU_SOURCE"
7047 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
7048 #include <sys/socket.h>
7049 #include <netinet/in.h>
7050 #include <arpa/inet.h>
7051 #include <netinet/in_systm.h>
7052 #include <netinet/ip.h>
7054 if test "x$ac_cv_header_resolv_h" = xyes; then :
7055 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7061 $as_echo_n "checking for library containing socket... " >&6; }
7062 if ${ac_cv_search_socket+:} false; then :
7063 $as_echo_n "(cached) " >&6
7065 ac_func_search_save_LIBS=$LIBS
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7069 /* Override any GCC internal prototype to avoid an error.
7070 Use char because int might match the return type of a GCC
7071 builtin and then its argument prototype would still apply. */
7084 for ac_lib in '' socket; do
7085 if test -z "$ac_lib"; then
7086 ac_res="none required"
7089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7091 if ac_fn_c_try_link "$LINENO"; then :
7092 ac_cv_search_socket=$ac_res
7094 rm -f core conftest.err conftest.$ac_objext \
7096 if ${ac_cv_search_socket+:} false; then :
7100 if ${ac_cv_search_socket+:} false; then :
7103 ac_cv_search_socket=no
7106 LIBS=$ac_func_search_save_LIBS
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7109 $as_echo "$ac_cv_search_socket" >&6; }
7110 ac_res=$ac_cv_search_socket
7111 if test "$ac_res" != no; then :
7112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7117 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7118 if ${ac_cv_search_gethostbyaddr+:} false; then :
7119 $as_echo_n "(cached) " >&6
7121 ac_func_search_save_LIBS=$LIBS
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7125 /* Override any GCC internal prototype to avoid an error.
7126 Use char because int might match the return type of a GCC
7127 builtin and then its argument prototype would still apply. */
7131 char gethostbyaddr ();
7135 return gethostbyaddr ();
7140 for ac_lib in '' nsl; do
7141 if test -z "$ac_lib"; then
7142 ac_res="none required"
7145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7147 if ac_fn_c_try_link "$LINENO"; then :
7148 ac_cv_search_gethostbyaddr=$ac_res
7150 rm -f core conftest.err conftest.$ac_objext \
7152 if ${ac_cv_search_gethostbyaddr+:} false; then :
7156 if ${ac_cv_search_gethostbyaddr+:} false; then :
7159 ac_cv_search_gethostbyaddr=no
7162 LIBS=$ac_func_search_save_LIBS
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7165 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7166 ac_res=$ac_cv_search_gethostbyaddr
7167 if test "$ac_res" != no; then :
7168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7173 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7174 if ${ac_cv_search_getifaddrs+:} false; then :
7175 $as_echo_n "(cached) " >&6
7177 ac_func_search_save_LIBS=$LIBS
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7181 /* Override any GCC internal prototype to avoid an error.
7182 Use char because int might match the return type of a GCC
7183 builtin and then its argument prototype would still apply. */
7191 return getifaddrs ();
7196 for ac_lib in '' nsl; do
7197 if test -z "$ac_lib"; then
7198 ac_res="none required"
7201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7203 if ac_fn_c_try_link "$LINENO"; then :
7204 ac_cv_search_getifaddrs=$ac_res
7206 rm -f core conftest.err conftest.$ac_objext \
7208 if ${ac_cv_search_getifaddrs+:} false; then :
7212 if ${ac_cv_search_getifaddrs+:} false; then :
7215 ac_cv_search_getifaddrs=no
7218 LIBS=$ac_func_search_save_LIBS
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7221 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7222 ac_res=$ac_cv_search_getifaddrs
7223 if test "$ac_res" != no; then :
7224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7225 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7230 $as_echo_n "checking for library containing hstrerror... " >&6; }
7231 if ${ac_cv_search_hstrerror+:} false; then :
7232 $as_echo_n "(cached) " >&6
7234 ac_func_search_save_LIBS=$LIBS
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7238 /* Override any GCC internal prototype to avoid an error.
7239 Use char because int might match the return type of a GCC
7240 builtin and then its argument prototype would still apply. */
7248 return hstrerror ();
7253 for ac_lib in '' nsl socket resolv; do
7254 if test -z "$ac_lib"; then
7255 ac_res="none required"
7258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7260 if ac_fn_c_try_link "$LINENO"; then :
7261 ac_cv_search_hstrerror=$ac_res
7263 rm -f core conftest.err conftest.$ac_objext \
7265 if ${ac_cv_search_hstrerror+:} false; then :
7269 if ${ac_cv_search_hstrerror+:} false; then :
7272 ac_cv_search_hstrerror=no
7275 LIBS=$ac_func_search_save_LIBS
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7278 $as_echo "$ac_cv_search_hstrerror" >&6; }
7279 ac_res=$ac_cv_search_hstrerror
7280 if test "$ac_res" != no; then :
7281 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7282 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7287 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7288 if ${ac_cv_search_rresvport_af+:} false; then :
7289 $as_echo_n "(cached) " >&6
7291 ac_func_search_save_LIBS=$LIBS
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7295 /* Override any GCC internal prototype to avoid an error.
7296 Use char because int might match the return type of a GCC
7297 builtin and then its argument prototype would still apply. */
7301 char rresvport_af ();
7305 return rresvport_af ();
7310 for ac_lib in '' nsl; do
7311 if test -z "$ac_lib"; then
7312 ac_res="none required"
7315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7317 if ac_fn_c_try_link "$LINENO"; then :
7318 ac_cv_search_rresvport_af=$ac_res
7320 rm -f core conftest.err conftest.$ac_objext \
7322 if ${ac_cv_search_rresvport_af+:} false; then :
7326 if ${ac_cv_search_rresvport_af+:} false; then :
7329 ac_cv_search_rresvport_af=no
7332 LIBS=$ac_func_search_save_LIBS
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7335 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7336 ac_res=$ac_cv_search_rresvport_af
7337 if test "$ac_res" != no; then :
7338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7339 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7344 $as_echo_n "checking for library containing __res_init... " >&6; }
7345 if ${ac_cv_search___res_init+:} false; then :
7346 $as_echo_n "(cached) " >&6
7348 ac_func_search_save_LIBS=$LIBS
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7352 /* Override any GCC internal prototype to avoid an error.
7353 Use char because int might match the return type of a GCC
7354 builtin and then its argument prototype would still apply. */
7362 return __res_init ();
7367 for ac_lib in '' resolv bind; do
7368 if test -z "$ac_lib"; then
7369 ac_res="none required"
7372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7374 if ac_fn_c_try_link "$LINENO"; then :
7375 ac_cv_search___res_init=$ac_res
7377 rm -f core conftest.err conftest.$ac_objext \
7379 if ${ac_cv_search___res_init+:} false; then :
7383 if ${ac_cv_search___res_init+:} false; then :
7386 ac_cv_search___res_init=no
7389 LIBS=$ac_func_search_save_LIBS
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7392 $as_echo "$ac_cv_search___res_init" >&6; }
7393 ac_res=$ac_cv_search___res_init
7394 if test "$ac_res" != no; then :
7395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7396 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7400 $as_echo_n "checking for library containing res_9_init... " >&6; }
7401 if ${ac_cv_search_res_9_init+:} false; then :
7402 $as_echo_n "(cached) " >&6
7404 ac_func_search_save_LIBS=$LIBS
7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h. */
7408 /* Override any GCC internal prototype to avoid an error.
7409 Use char because int might match the return type of a GCC
7410 builtin and then its argument prototype would still apply. */
7418 return res_9_init ();
7423 for ac_lib in '' resolv bind; do
7424 if test -z "$ac_lib"; then
7425 ac_res="none required"
7428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7430 if ac_fn_c_try_link "$LINENO"; then :
7431 ac_cv_search_res_9_init=$ac_res
7433 rm -f core conftest.err conftest.$ac_objext \
7435 if ${ac_cv_search_res_9_init+:} false; then :
7439 if ${ac_cv_search_res_9_init+:} false; then :
7442 ac_cv_search_res_9_init=no
7445 LIBS=$ac_func_search_save_LIBS
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7448 $as_echo "$ac_cv_search_res_9_init" >&6; }
7449 ac_res=$ac_cv_search_res_9_init
7450 if test "$ac_res" != no; then :
7451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7452 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7456 $as_echo_n "checking for library containing res_init... " >&6; }
7457 if ${ac_cv_search_res_init+:} false; then :
7458 $as_echo_n "(cached) " >&6
7460 ac_func_search_save_LIBS=$LIBS
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7464 /* Override any GCC internal prototype to avoid an error.
7465 Use char because int might match the return type of a GCC
7466 builtin and then its argument prototype would still apply. */
7479 for ac_lib in '' resolv bind; do
7480 if test -z "$ac_lib"; then
7481 ac_res="none required"
7484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7486 if ac_fn_c_try_link "$LINENO"; then :
7487 ac_cv_search_res_init=$ac_res
7489 rm -f core conftest.err conftest.$ac_objext \
7491 if ${ac_cv_search_res_init+:} false; then :
7495 if ${ac_cv_search_res_init+:} false; then :
7498 ac_cv_search_res_init=no
7501 LIBS=$ac_func_search_save_LIBS
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7504 $as_echo "$ac_cv_search_res_init" >&6; }
7505 ac_res=$ac_cv_search_res_init
7506 if test "$ac_res" != no; then :
7507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7508 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7517 # Tru64 5.1b leaks file descriptors with these functions; disable until
7518 # we can come up with a test for this...
7519 if test "$host_os_name" != "osf1"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7521 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7522 if ${ac_cv_search_getaddrinfo+:} false; then :
7523 $as_echo_n "(cached) " >&6
7525 ac_func_search_save_LIBS=$LIBS
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7529 /* Override any GCC internal prototype to avoid an error.
7530 Use char because int might match the return type of a GCC
7531 builtin and then its argument prototype would still apply. */
7535 char getaddrinfo ();
7539 return getaddrinfo ();
7544 for ac_lib in '' nsl; do
7545 if test -z "$ac_lib"; then
7546 ac_res="none required"
7549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7551 if ac_fn_c_try_link "$LINENO"; then :
7552 ac_cv_search_getaddrinfo=$ac_res
7554 rm -f core conftest.err conftest.$ac_objext \
7556 if ${ac_cv_search_getaddrinfo+:} false; then :
7560 if ${ac_cv_search_getaddrinfo+:} false; then :
7563 ac_cv_search_getaddrinfo=no
7566 LIBS=$ac_func_search_save_LIBS
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7569 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7570 ac_res=$ac_cv_search_getaddrinfo
7571 if test "$ac_res" != no; then :
7572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7573 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7578 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7579 if ${ac_cv_search_getnameinfo+:} false; then :
7580 $as_echo_n "(cached) " >&6
7582 ac_func_search_save_LIBS=$LIBS
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7586 /* Override any GCC internal prototype to avoid an error.
7587 Use char because int might match the return type of a GCC
7588 builtin and then its argument prototype would still apply. */
7592 char getnameinfo ();
7596 return getnameinfo ();
7601 for ac_lib in '' nsl; do
7602 if test -z "$ac_lib"; then
7603 ac_res="none required"
7606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7608 if ac_fn_c_try_link "$LINENO"; then :
7609 ac_cv_search_getnameinfo=$ac_res
7611 rm -f core conftest.err conftest.$ac_objext \
7613 if ${ac_cv_search_getnameinfo+:} false; then :
7617 if ${ac_cv_search_getnameinfo+:} false; then :
7620 ac_cv_search_getnameinfo=no
7623 LIBS=$ac_func_search_save_LIBS
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7626 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7627 ac_res=$ac_cv_search_getnameinfo
7628 if test "$ac_res" != no; then :
7629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7630 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7636 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7638 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7642 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7643 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7644 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7650 CUPS_DEFAULT_DOMAINSOCKET=""
7653 # Check whether --with-domainsocket was given.
7654 if test "${with_domainsocket+set}" = set; then :
7655 withval=$with_domainsocket; default_domainsocket="$withval"
7657 default_domainsocket=""
7661 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7662 if test "x$default_domainsocket" = x; then
7663 case "$host_os_name" in
7665 # Darwin and macOS do their own thing...
7666 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7669 # All others use FHS standard...
7670 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7674 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7677 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7679 cat >>confdefs.h <<_ACEOF
7680 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7684 CUPS_LISTEN_DOMAINSOCKET=""
7691 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7692 if test "x$ac_cv_func_poll" = xyes; then :
7693 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7697 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7698 if test "x$ac_cv_func_epoll_create" = xyes; then :
7699 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7703 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7704 if test "x$ac_cv_func_kqueue" = xyes; then :
7705 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7711 # Check whether --enable-gssapi was given.
7712 if test "${enable_gssapi+set}" = set; then :
7713 enableval=$enable_gssapi;
7720 if test x$enable_gssapi != xno; then
7721 if test -n "$ac_tool_prefix"; then
7722 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7723 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 $as_echo_n "checking for $ac_word... " >&6; }
7726 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7727 $as_echo_n "(cached) " >&6
7731 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7753 if test -n "$KRB5CONFIG"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7755 $as_echo "$KRB5CONFIG" >&6; }
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7763 if test -z "$ac_cv_path_KRB5CONFIG"; then
7764 ac_pt_KRB5CONFIG=$KRB5CONFIG
7765 # Extract the first word of "krb5-config", so it can be a program name with args.
7766 set dummy krb5-config; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7770 $as_echo_n "(cached) " >&6
7772 case $ac_pt_KRB5CONFIG in
7774 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7796 if test -n "$ac_pt_KRB5CONFIG"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7798 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7804 if test "x$ac_pt_KRB5CONFIG" = x; then
7807 case $cross_compiling:$ac_tool_warned in
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811 ac_tool_warned=yes ;;
7813 KRB5CONFIG=$ac_pt_KRB5CONFIG
7816 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7819 if test "x$KRB5CONFIG" != x; then
7820 case "$host_os_name" in
7822 # macOS weak-links to the Kerberos framework...
7823 LIBGSSAPI="-weak_framework Kerberos"
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7825 $as_echo_n "checking for GSS framework... " >&6; }
7826 if test -d /System/Library/Frameworks/GSS.framework; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7828 $as_echo "yes" >&6; }
7829 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7836 # Solaris has a non-standard krb5-config, don't use it!
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7838 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7839 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7840 $as_echo_n "(cached) " >&6
7842 ac_check_lib_save_LIBS=$LIBS
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7847 /* Override any GCC internal prototype to avoid an error.
7848 Use char because int might match the return type of a GCC
7849 builtin and then its argument prototype would still apply. */
7853 char gss_display_status ();
7857 return gss_display_status ();
7862 if ac_fn_c_try_link "$LINENO"; then :
7863 ac_cv_lib_gss_gss_display_status=yes
7865 ac_cv_lib_gss_gss_display_status=no
7867 rm -f core conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869 LIBS=$ac_check_lib_save_LIBS
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7872 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7873 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7875 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7877 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7878 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7879 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7884 # Other platforms just ask for GSSAPI
7885 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7886 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7887 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7891 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7894 # Check for vendor-specific implementations...
7895 case "$host_os_name" in
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7898 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7899 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7900 $as_echo_n "(cached) " >&6
7902 ac_check_lib_save_LIBS=$LIBS
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7907 /* Override any GCC internal prototype to avoid an error.
7908 Use char because int might match the return type of a GCC
7909 builtin and then its argument prototype would still apply. */
7913 char gss_display_status ();
7917 return gss_display_status ();
7922 if ac_fn_c_try_link "$LINENO"; then :
7923 ac_cv_lib_gss_gss_display_status=yes
7925 ac_cv_lib_gss_gss_display_status=no
7927 rm -f core conftest.err conftest.$ac_objext \
7928 conftest$ac_exeext conftest.$ac_ext
7929 LIBS=$ac_check_lib_save_LIBS
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7932 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7933 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7935 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7937 LIBGSSAPI="-lgss -lgssapi_krb5"
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7943 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7944 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7945 $as_echo_n "(cached) " >&6
7947 ac_check_lib_save_LIBS=$LIBS
7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h. */
7952 /* Override any GCC internal prototype to avoid an error.
7953 Use char because int might match the return type of a GCC
7954 builtin and then its argument prototype would still apply. */
7958 char gss_display_status ();
7962 return gss_display_status ();
7967 if ac_fn_c_try_link "$LINENO"; then :
7968 ac_cv_lib_gss_gss_display_status=yes
7970 ac_cv_lib_gss_gss_display_status=no
7972 rm -f core conftest.err conftest.$ac_objext \
7973 conftest$ac_exeext conftest.$ac_ext
7974 LIBS=$ac_check_lib_save_LIBS
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7977 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7978 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7980 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7989 if test "x$LIBGSSAPI" != x; then
7990 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
7991 if test "x$ac_cv_header_krb5_h" = xyes; then :
7992 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
7997 if test -d /System/Library/Frameworks/GSS.framework; then
7998 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
7999 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
8000 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8005 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
8006 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
8007 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
8012 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
8013 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
8014 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8020 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8021 if test "x$ac_cv_header_gssapi_h" = xyes; then :
8022 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8027 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8028 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8029 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8037 LIBS="$LIBS $LIBGSSAPI"
8039 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8040 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8041 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8047 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8048 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8051 #include <gssapi/gssapi.h>
8055 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8060 if ac_fn_c_try_compile "$LINENO"; then :
8061 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8064 $as_echo "yes" >&6; }
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 #include <GSS/gssapi.h>
8077 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8082 if ac_fn_c_try_compile "$LINENO"; then :
8083 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8086 $as_echo "yes" >&6; }
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8099 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8104 if ac_fn_c_try_compile "$LINENO"; then :
8105 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8108 $as_echo "yes" >&6; }
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 $as_echo "no" >&6; }
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121 # Check whether --with-gssservicename was given.
8122 if test "${with_gssservicename+set}" = set; then :
8123 withval=$with_gssservicename; default_gssservicename="$withval"
8125 default_gssservicename="default"
8129 if test x$default_gssservicename != xno; then
8130 if test "x$default_gssservicename" = "xdefault"; then
8131 CUPS_DEFAULT_GSSSERVICENAME="host"
8133 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8136 CUPS_DEFAULT_GSSSERVICENAME=""
8140 cat >>confdefs.h <<_ACEOF
8141 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8146 # Check whether --enable-threads was given.
8147 if test "${enable_threads+set}" = set; then :
8148 enableval=$enable_threads;
8155 if test "x$enable_threads" != xno; then
8156 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8157 if test "x$ac_cv_header_pthread_h" = xyes; then :
8158 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8164 if test x$ac_cv_header_pthread_h = xyes; then
8165 for flag in -lpthreads -lpthread -pthread; do
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8167 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171 /* end confdefs.h. */
8172 #include <pthread.h>
8176 pthread_create(0, 0, 0, 0);
8181 if ac_fn_c_try_link "$LINENO"; then :
8186 rm -f core conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8189 $as_echo "$have_pthread" >&6; }
8191 if test $have_pthread = yes; then
8192 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8194 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8195 # be POSIX-compliant... :(
8196 if test $host_os_name = sunos; then
8197 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8208 # Check whether --enable-ssl was given.
8209 if test "${enable_ssl+set}" = set; then :
8210 enableval=$enable_ssl;
8213 # Check whether --enable-cdsassl was given.
8214 if test "${enable_cdsassl+set}" = set; then :
8215 enableval=$enable_cdsassl;
8218 # Check whether --enable-gnutls was given.
8219 if test "${enable_gnutls+set}" = set; then :
8220 enableval=$enable_gnutls;
8227 CUPS_SERVERKEYCHAIN=""
8229 if test x$enable_ssl != xno; then
8230 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8231 if test $host_os_name = darwin; then
8232 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8233 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8236 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8238 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8240 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8242 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8243 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8244 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8249 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8250 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8251 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8256 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8257 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8258 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8263 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8265 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8266 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8271 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8272 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8273 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8278 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8279 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8280 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8285 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8286 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8287 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8292 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8293 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8294 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8300 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8302 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8308 if test $host_os_version -ge 150; then
8309 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8315 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8316 if test -n "$ac_tool_prefix"; then
8317 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8318 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320 $as_echo_n "checking for $ac_word... " >&6; }
8321 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8322 $as_echo_n "(cached) " >&6
8324 case $LIBGNUTLSCONFIG in
8326 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8336 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8348 if test -n "$LIBGNUTLSCONFIG"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8350 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8358 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8359 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8360 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8361 set dummy libgnutls-config; ac_word=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8365 $as_echo_n "(cached) " >&6
8367 case $ac_pt_LIBGNUTLSCONFIG in
8369 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8391 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8393 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8399 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8402 case $cross_compiling:$ac_tool_warned in
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8406 ac_tool_warned=yes ;;
8408 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8411 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8414 if test -n "$ac_tool_prefix"; then
8415 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
8416 set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418 $as_echo_n "checking for $ac_word... " >&6; }
8419 if ${ac_cv_path_LIBGCRYPTCONFIG+:} false; then :
8420 $as_echo_n "(cached) " >&6
8422 case $LIBGCRYPTCONFIG in
8424 ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path.
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 test -z "$as_dir" && as_dir=.
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8434 ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG
8446 if test -n "$LIBGCRYPTCONFIG"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5
8448 $as_echo "$LIBGCRYPTCONFIG" >&6; }
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8456 if test -z "$ac_cv_path_LIBGCRYPTCONFIG"; then
8457 ac_pt_LIBGCRYPTCONFIG=$LIBGCRYPTCONFIG
8458 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8459 set dummy libgcrypt-config; ac_word=$2
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 $as_echo_n "checking for $ac_word... " >&6; }
8462 if ${ac_cv_path_ac_pt_LIBGCRYPTCONFIG+:} false; then :
8463 $as_echo_n "(cached) " >&6
8465 case $ac_pt_LIBGCRYPTCONFIG in
8467 ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$ac_pt_LIBGCRYPTCONFIG" # Let the user override the test with a path.
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8477 ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 ac_pt_LIBGCRYPTCONFIG=$ac_cv_path_ac_pt_LIBGCRYPTCONFIG
8489 if test -n "$ac_pt_LIBGCRYPTCONFIG"; then
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPTCONFIG" >&5
8491 $as_echo "$ac_pt_LIBGCRYPTCONFIG" >&6; }
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494 $as_echo "no" >&6; }
8497 if test "x$ac_pt_LIBGCRYPTCONFIG" = x; then
8500 case $cross_compiling:$ac_tool_warned in
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8504 ac_tool_warned=yes ;;
8506 LIBGCRYPTCONFIG=$ac_pt_LIBGCRYPTCONFIG
8509 LIBGCRYPTCONFIG="$ac_cv_path_LIBGCRYPTCONFIG"
8512 if $PKGCONFIG --exists gnutls; then
8514 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8515 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8516 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8518 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8520 elif test "x$LIBGNUTLSCONFIG" != x; then
8522 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8523 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8524 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8526 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8530 if test $have_ssl = 1; then
8531 CUPS_SERVERKEYCHAIN="ssl"
8534 LIBS="$LIBS $SSLLIBS"
8535 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8536 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8537 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8541 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8542 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8543 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8553 if test $have_ssl = 1; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8555 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8557 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8558 IPPALIASES="http https ipps"
8559 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8560 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8568 EXPORT_SSLLIBS="$SSLLIBS"
8572 # Check whether --enable-pam was given.
8573 if test "${enable_pam+set}" = set; then :
8574 enableval=$enable_pam;
8578 # Check whether --with-pam_module was given.
8579 if test "${with_pam_module+set}" = set; then :
8580 withval=$with_pam_module;
8587 PAMMOD="pam_unknown.so"
8588 PAMMODAUTH="pam_unknown.so"
8590 if test x$enable_pam != xno; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8594 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8595 if ${ac_cv_lib_dl_dlopen+:} false; then :
8596 $as_echo_n "(cached) " >&6
8598 ac_check_lib_save_LIBS=$LIBS
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8603 /* Override any GCC internal prototype to avoid an error.
8604 Use char because int might match the return type of a GCC
8605 builtin and then its argument prototype would still apply. */
8618 if ac_fn_c_try_link "$LINENO"; then :
8619 ac_cv_lib_dl_dlopen=yes
8621 ac_cv_lib_dl_dlopen=no
8623 rm -f core conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8625 LIBS=$ac_check_lib_save_LIBS
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8628 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8629 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8630 cat >>confdefs.h <<_ACEOF
8631 #define HAVE_LIBDL 1
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8639 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8640 if ${ac_cv_lib_pam_pam_start+:} false; then :
8641 $as_echo_n "(cached) " >&6
8643 ac_check_lib_save_LIBS=$LIBS
8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8648 /* Override any GCC internal prototype to avoid an error.
8649 Use char because int might match the return type of a GCC
8650 builtin and then its argument prototype would still apply. */
8658 return pam_start ();
8663 if ac_fn_c_try_link "$LINENO"; then :
8664 ac_cv_lib_pam_pam_start=yes
8666 ac_cv_lib_pam_pam_start=no
8668 rm -f core conftest.err conftest.$ac_objext \
8669 conftest$ac_exeext conftest.$ac_ext
8670 LIBS=$ac_check_lib_save_LIBS
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8673 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8674 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8675 cat >>confdefs.h <<_ACEOF
8676 #define HAVE_LIBPAM 1
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8684 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8685 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8686 $as_echo_n "(cached) " >&6
8688 ac_check_lib_save_LIBS=$LIBS
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8693 /* Override any GCC internal prototype to avoid an error.
8694 Use char because int might match the return type of a GCC
8695 builtin and then its argument prototype would still apply. */
8699 char pam_set_item ();
8703 return pam_set_item ();
8708 if ac_fn_c_try_link "$LINENO"; then :
8709 ac_cv_lib_pam_pam_set_item=yes
8711 ac_cv_lib_pam_pam_set_item=no
8713 rm -f core conftest.err conftest.$ac_objext \
8714 conftest$ac_exeext conftest.$ac_ext
8715 LIBS=$ac_check_lib_save_LIBS
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8718 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8719 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8720 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8725 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8726 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8727 $as_echo_n "(cached) " >&6
8729 ac_check_lib_save_LIBS=$LIBS
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8734 /* Override any GCC internal prototype to avoid an error.
8735 Use char because int might match the return type of a GCC
8736 builtin and then its argument prototype would still apply. */
8740 char pam_setcred ();
8744 return pam_setcred ();
8749 if ac_fn_c_try_link "$LINENO"; then :
8750 ac_cv_lib_pam_pam_setcred=yes
8752 ac_cv_lib_pam_pam_setcred=no
8754 rm -f core conftest.err conftest.$ac_objext \
8755 conftest$ac_exeext conftest.$ac_ext
8756 LIBS=$ac_check_lib_save_LIBS
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8759 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8760 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8761 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8765 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8766 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8771 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8772 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8773 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8774 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8781 if test x$ac_cv_lib_pam_pam_start != xno; then
8782 # Set the necessary libraries for PAM...
8783 if test x$ac_cv_lib_dl_dlopen != xno; then
8784 PAMLIBS="-lpam -ldl"
8789 # Find the PAM configuration directory, if any...
8790 for dir in /private/etc/pam.d /etc/pam.d; do
8791 if test -d $dir; then
8800 case "$host_os_name" in
8803 if test "x$with_pam_module" != x; then
8804 PAMFILE="pam.$with_pam_module"
8805 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8806 PAMFILE="pam.opendirectory"
8808 PAMFILE="pam.securityserver"
8813 # All others; this test might need to be updated
8814 # as Linux distributors move things around...
8815 if test "x$with_pam_module" != x; then
8816 PAMMOD="pam_${with_pam_module}.so"
8817 elif test -f /lib/security/pam_unix2.so; then
8818 PAMMOD="pam_unix2.so"
8819 elif test -f /lib/security/pam_unix.so; then
8820 PAMMOD="pam_unix.so"
8823 if test "x$PAMMOD" = xpam_unix.so; then
8824 PAMMODAUTH="$PAMMOD shadow nodelay"
8826 PAMMODAUTH="$PAMMOD nodelay"
8839 # Check whether --enable-largefile was given.
8840 if test "${enable_largefile+set}" = set; then :
8841 enableval=$enable_largefile;
8844 if test "$enable_largefile" != no; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8847 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8848 if ${ac_cv_sys_largefile_CC+:} false; then :
8849 $as_echo_n "(cached) " >&6
8851 ac_cv_sys_largefile_CC=no
8852 if test "$GCC" != yes; then
8855 # IRIX 6.2 and later do not support large files by default,
8856 # so use the C compiler's -n32 option if that helps.
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8859 #include <sys/types.h>
8860 /* Check that off_t can represent 2**63 - 1 correctly.
8861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8862 since some C++ compilers masquerading as C compilers
8863 incorrectly reject 9223372036854775807. */
8864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8866 && LARGE_OFF_T % 2147483647 == 1)
8876 if ac_fn_c_try_compile "$LINENO"; then :
8879 rm -f core conftest.err conftest.$ac_objext
8881 if ac_fn_c_try_compile "$LINENO"; then :
8882 ac_cv_sys_largefile_CC=' -n32'; break
8884 rm -f core conftest.err conftest.$ac_objext
8888 rm -f conftest.$ac_ext
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8892 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8893 if test "$ac_cv_sys_largefile_CC" != no; then
8894 CC=$CC$ac_cv_sys_largefile_CC
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8898 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8899 if ${ac_cv_sys_file_offset_bits+:} false; then :
8900 $as_echo_n "(cached) " >&6
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 #include <sys/types.h>
8906 /* Check that off_t can represent 2**63 - 1 correctly.
8907 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8908 since some C++ compilers masquerading as C compilers
8909 incorrectly reject 9223372036854775807. */
8910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8912 && LARGE_OFF_T % 2147483647 == 1)
8922 if ac_fn_c_try_compile "$LINENO"; then :
8923 ac_cv_sys_file_offset_bits=no; break
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8928 #define _FILE_OFFSET_BITS 64
8929 #include <sys/types.h>
8930 /* Check that off_t can represent 2**63 - 1 correctly.
8931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8932 since some C++ compilers masquerading as C compilers
8933 incorrectly reject 9223372036854775807. */
8934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8936 && LARGE_OFF_T % 2147483647 == 1)
8946 if ac_fn_c_try_compile "$LINENO"; then :
8947 ac_cv_sys_file_offset_bits=64; break
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 ac_cv_sys_file_offset_bits=unknown
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8955 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8956 case $ac_cv_sys_file_offset_bits in #(
8959 cat >>confdefs.h <<_ACEOF
8960 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8965 if test $ac_cv_sys_file_offset_bits = unknown; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8967 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8968 if ${ac_cv_sys_large_files+:} false; then :
8969 $as_echo_n "(cached) " >&6
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8974 #include <sys/types.h>
8975 /* Check that off_t can represent 2**63 - 1 correctly.
8976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8977 since some C++ compilers masquerading as C compilers
8978 incorrectly reject 9223372036854775807. */
8979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8981 && LARGE_OFF_T % 2147483647 == 1)
8991 if ac_fn_c_try_compile "$LINENO"; then :
8992 ac_cv_sys_large_files=no; break
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8997 #define _LARGE_FILES 1
8998 #include <sys/types.h>
8999 /* Check that off_t can represent 2**63 - 1 correctly.
9000 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9001 since some C++ compilers masquerading as C compilers
9002 incorrectly reject 9223372036854775807. */
9003 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9004 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9005 && LARGE_OFF_T % 2147483647 == 1)
9015 if ac_fn_c_try_compile "$LINENO"; then :
9016 ac_cv_sys_large_files=1; break
9018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 ac_cv_sys_large_files=unknown
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9024 $as_echo "$ac_cv_sys_large_files" >&6; }
9025 case $ac_cv_sys_large_files in #(
9028 cat >>confdefs.h <<_ACEOF
9029 #define _LARGE_FILES $ac_cv_sys_large_files
9039 if test x$enable_largefile != xno; then
9040 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
9042 if test x$ac_cv_sys_large_files = x1; then
9043 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
9046 if test x$ac_cv_sys_file_offset_bits = x64; then
9047 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9053 $as_echo_n "checking for long long int... " >&6; }
9054 if ${ac_cv_c_long_long+:} false; then :
9055 $as_echo_n "(cached) " >&6
9057 if test "$GCC" = yes; then
9058 ac_cv_c_long_long=yes
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9071 if ac_fn_c_try_compile "$LINENO"; then :
9072 ac_cv_c_long_long=yes
9074 ac_cv_c_long_long=no
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9080 $as_echo "$ac_cv_c_long_long" >&6; }
9082 if test $ac_cv_c_long_long = yes; then
9083 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9087 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9088 if test "x$ac_cv_func_strtoll" = xyes; then :
9089 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9095 # Check whether --enable-avahi was given.
9096 if test "${enable_avahi+set}" = set; then :
9097 enableval=$enable_avahi;
9100 # Check whether --enable-dnssd was given.
9101 if test "${enable_dnssd+set}" = set; then :
9102 enableval=$enable_dnssd;
9106 # Check whether --with-dnssd-libs was given.
9107 if test "${with_dnssd_libs+set}" = set; then :
9108 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9109 DSOFLAGS="-L$withval $DSOFLAGS"
9113 # Check whether --with-dnssd-includes was given.
9114 if test "${with_dnssd_includes+set}" = set; then :
9115 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9116 CPPFLAGS="-I$withval $CPPFLAGS"
9125 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9127 $as_echo_n "checking for Avahi... " >&6; }
9128 if $PKGCONFIG --exists avahi-client; then
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9130 $as_echo "yes" >&6; }
9131 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
9132 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
9133 DNSSD_BACKEND="dnssd"
9134 IPPFIND_BIN="ippfind"
9135 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9136 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9144 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9145 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9146 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9148 case "$host_os_name" in
9150 # Darwin and macOS...
9151 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9153 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9154 DNSSD_BACKEND="dnssd"
9155 IPPFIND_BIN="ippfind"
9156 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9161 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9163 LIBS="$LIBS -ldns_sd"
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9170 int constant = kDNSServiceFlagsShareConnection;
9171 unsigned char txtRecord[100];
9173 TXTRecordGetValuePtr(sizeof(txtRecord),
9174 txtRecord, "value", &valueLen);
9179 if ac_fn_c_try_compile "$LINENO"; then :
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9181 $as_echo "yes" >&6; }
9182 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9184 DNSSDLIBS="-ldns_sd"
9185 DNSSD_BACKEND="dnssd"
9187 IPPFIND_BIN="ippfind"
9188 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9190 $as_echo "no" >&6; }
9192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9213 # Check whether --enable-launchd was given.
9214 if test "${enable_launchd+set}" = set; then :
9215 enableval=$enable_launchd;
9221 if test x$enable_launchd != xno; then
9222 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9223 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9225 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9227 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9231 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9232 if test "x$ac_cv_header_launch_h" = xyes; then :
9233 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9239 if test "$host_os_name" = darwin; then
9240 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9241 # liblaunch is already part of libSystem
9245 # Check whether --enable-systemd was given.
9246 if test "${enable_systemd+set}" = set; then :
9247 enableval=$enable_systemd;
9251 # Check whether --with-systemd was given.
9252 if test "${with_systemd+set}" = set; then :
9253 withval=$with_systemd; SYSTEMD_DIR="$withval"
9260 if test x$enable_systemd != xno; then
9261 if test "x$PKGCONFIG" = x; then
9262 if test x$enable_systemd = xyes; then
9263 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9268 $as_echo_n "checking for libsystemd... " >&6; }
9269 if $PKGCONFIG --exists libsystemd; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9271 $as_echo "yes" >&6; }
9273 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9274 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9275 elif $PKGCONFIG --exists libsystemd-daemon; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9277 $as_echo "yes - legacy" >&6; }
9279 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9280 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9282 if $PKGCONFIG --exists libsystemd-journal; then
9283 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9284 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288 $as_echo "no" >&6; }
9291 if test $have_systemd = yes; then
9292 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9294 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9296 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9297 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9298 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9303 if test "x$SYSTEMD_DIR" = x; then
9304 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9310 # Check whether --enable-upstart was given.
9311 if test "${enable_upstart+set}" = set; then :
9312 enableval=$enable_upstart;
9315 if test "x$enable_upstart" = "xyes"; then
9316 if test "x$have_systemd" = "xyes"; then
9317 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9319 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9321 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9328 # Check whether --with-smfmanifestdir was given.
9329 if test "${with_smfmanifestdir+set}" = set; then :
9330 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9335 # Check whether --with-rcdir was given.
9336 if test "${with_rcdir+set}" = set; then :
9337 withval=$with_rcdir; rcdir="$withval"
9343 # Check whether --with-rclevels was given.
9344 if test "${with_rclevels+set}" = set; then :
9345 withval=$with_rclevels; rclevels="$withval"
9351 # Check whether --with-rcstart was given.
9352 if test "${with_rcstart+set}" = set; then :
9353 withval=$with_rcstart; rcstart="$withval"
9359 # Check whether --with-rcstop was given.
9360 if test "${with_rcstop+set}" = set; then :
9361 withval=$with_rcstop; rcstop="$withval"
9367 if test x$rcdir = x; then
9368 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9369 # Fall back on "init", the original service startup interface...
9370 if test -d /sbin/init.d; then
9372 rcdir="/sbin/init.d"
9373 elif test -d /etc/init.d; then
9385 if test "x$rcstart" = x; then
9386 case "$host_os_name" in
9404 if test "x$rcstop" = x; then
9405 case "$host_os_name" in
9420 RCLEVELS="$rclevels"
9429 if test "x$rcdir" != xno; then
9430 if test "x$rclevels" = x; then
9438 # Check whether --with-xinetd was given.
9439 if test "${with_xinetd+set}" = set; then :
9440 withval=$with_xinetd; xinetd="$withval"
9448 if test "x$xinetd" = x; then
9449 if test ! -x /sbin/launchd; then
9450 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9451 if test -d $dir; then
9457 elif test "x$xinetd" != xno; then
9462 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9465 # Check whether --with-languages was given.
9466 if test "${with_languages+set}" = set; then :
9467 withval=$with_languages;
9469 none | no) LANGUAGES="" ;;
9471 *) LANGUAGES="$withval" ;;
9478 # Check whether --with-bundledir was given.
9479 if test "${with_bundledir+set}" = set; then :
9480 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9482 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9483 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9492 if test "x$CUPS_BUNDLEDIR" != x; then
9493 cat >>confdefs.h <<_ACEOF
9494 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9500 # Check whether --with-exe_file_perm was given.
9501 if test "${with_exe_file_perm+set}" = set; then :
9502 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9504 case "$host_os_name" in
9506 CUPS_EXE_FILE_PERM="755"
9509 CUPS_EXE_FILE_PERM="555"
9517 # Check whether --with-config_file_perm was given.
9518 if test "${with_config_file_perm+set}" = set; then :
9519 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9521 if test "x$host_os_name" = xdarwin; then
9522 CUPS_CONFIG_FILE_PERM="644"
9524 CUPS_CONFIG_FILE_PERM="640"
9529 cat >>confdefs.h <<_ACEOF
9530 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9535 # Check whether --with-cupsd_file_perm was given.
9536 if test "${with_cupsd_file_perm+set}" = set; then :
9537 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9539 case "$host_os_name" in
9541 CUPS_CUPSD_FILE_PERM="700"
9544 CUPS_CUPSD_FILE_PERM="500"
9552 # Check whether --with-log_file_perm was given.
9553 if test "${with_log_file_perm+set}" = set; then :
9554 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9556 CUPS_LOG_FILE_PERM="644"
9560 cat >>confdefs.h <<_ACEOF
9561 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9566 # Check whether --with-fatal_errors was given.
9567 if test "${with_fatal_errors+set}" = set; then :
9568 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9570 CUPS_FATAL_ERRORS="config"
9574 cat >>confdefs.h <<_ACEOF
9575 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9580 # Check whether --with-log_level was given.
9581 if test "${with_log_level+set}" = set; then :
9582 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9584 CUPS_LOG_LEVEL="warn"
9588 cat >>confdefs.h <<_ACEOF
9589 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9594 # Check whether --with-access_log_level was given.
9595 if test "${with_access_log_level+set}" = set; then :
9596 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9598 CUPS_ACCESS_LOG_LEVEL="none"
9602 cat >>confdefs.h <<_ACEOF
9603 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9607 # Check whether --enable-page_logging was given.
9608 if test "${enable_page_logging+set}" = set; then :
9609 enableval=$enable_page_logging;
9612 if test "x$enable_page_logging" = xyes; then
9613 CUPS_PAGE_LOG_FORMAT=""
9615 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9619 # Check whether --enable-browsing was given.
9620 if test "${enable_browsing+set}" = set; then :
9621 enableval=$enable_browsing;
9624 if test "x$enable_browsing" = xno; then
9626 cat >>confdefs.h <<_ACEOF
9627 #define CUPS_DEFAULT_BROWSING 0
9632 cat >>confdefs.h <<_ACEOF
9633 #define CUPS_DEFAULT_BROWSING 1
9640 # Check whether --with-local_protocols was given.
9641 if test "${with_local_protocols+set}" = set; then :
9642 withval=$with_local_protocols; default_local_protocols="$withval"
9644 default_local_protocols="default"
9648 if test x$with_local_protocols != xno; then
9649 if test "x$default_local_protocols" = "xdefault"; then
9650 if test "x$DNSSD_BACKEND" != "x"; then
9651 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9653 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9656 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9659 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9663 cat >>confdefs.h <<_ACEOF
9664 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9668 # Check whether --enable-default_shared was given.
9669 if test "${enable_default_shared+set}" = set; then :
9670 enableval=$enable_default_shared;
9673 if test "x$enable_default_shared" = xno; then
9674 CUPS_DEFAULT_SHARED="No"
9675 cat >>confdefs.h <<_ACEOF
9676 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9680 CUPS_DEFAULT_SHARED="Yes"
9681 cat >>confdefs.h <<_ACEOF
9682 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9689 # Check whether --with-cups_user was given.
9690 if test "${with_cups_user+set}" = set; then :
9691 withval=$with_cups_user; CUPS_USER="$withval"
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9694 $as_echo_n "checking for default print user... " >&6; }
9695 if test x$host_os_name = xdarwin; then
9696 if test x`id
-u _lp
2>/dev
/null
` = x; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9702 $as_echo "$CUPS_USER" >&6; }
9703 elif test -f /etc/passwd; then
9705 for user in lp lpd guest daemon nobody; do
9706 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9709 $as_echo "$user" >&6; }
9714 if test x$CUPS_USER = x; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9717 $as_echo "not found" >&6; }
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9722 $as_echo "no password file" >&6; }
9727 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9728 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9732 # Check whether --with-cups_group was given.
9733 if test "${with_cups_group+set}" = set; then :
9734 withval=$with_cups_group; CUPS_GROUP="$withval"
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9737 $as_echo_n "checking for default print group... " >&6; }
9738 if test x$host_os_name = xdarwin; then
9739 if test x`id
-g _lp
2>/dev
/null
` = x; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9745 $as_echo "$CUPS_GROUP" >&6; }
9746 elif test -f /etc/group; then
9747 GROUP_LIST="_lp lp nobody"
9749 for group in $GROUP_LIST; do
9750 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9753 $as_echo "$group" >&6; }
9758 if test x$CUPS_GROUP = x; then
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9761 $as_echo "not found" >&6; }
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9766 $as_echo "no group file" >&6; }
9771 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9772 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9776 # Check whether --with-system_groups was given.
9777 if test "${with_system_groups+set}" = set; then :
9778 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9780 if test x$host_os_name = xdarwin; then
9781 CUPS_SYSTEM_GROUPS="admin"
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9784 $as_echo_n "checking for default system groups... " >&6; }
9785 if test -f /etc/group; then
9786 CUPS_SYSTEM_GROUPS=""
9787 GROUP_LIST="lpadmin sys system root"
9788 for group in $GROUP_LIST; do
9789 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9790 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9791 CUPS_SYSTEM_GROUPS="$group"
9793 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9798 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9799 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9801 $as_echo "no groups found" >&6; }
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9804 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9807 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9809 $as_echo "no group file" >&6; }
9815 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9817 for group in $CUPS_SYSTEM_GROUPS; do
9818 if test "x$CUPS_GROUP" = "x$group"; then
9819 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9828 cat >>confdefs.h <<_ACEOF
9829 #define CUPS_DEFAULT_USER "$CUPS_USER"
9832 cat >>confdefs.h <<_ACEOF
9833 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9836 cat >>confdefs.h <<_ACEOF
9837 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9842 # Check whether --with-printcap was given.
9843 if test "${with_printcap+set}" = set; then :
9844 withval=$with_printcap; default_printcap="$withval"
9846 default_printcap="default"
9850 if test x$default_printcap != xno; then
9851 if test "x$default_printcap" = "xdefault"; then
9852 case $host_os_name in
9854 if test $host_os_version -ge 90; then
9855 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9857 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9861 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9864 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9868 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9871 CUPS_DEFAULT_PRINTCAP=""
9875 cat >>confdefs.h <<_ACEOF
9876 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9881 # Check whether --with-lpdconfigfile was given.
9882 if test "${with_lpdconfigfile+set}" = set; then :
9883 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9885 default_lpdconfigfile="default"
9889 if test x$default_lpdconfigfile != xno; then
9890 if test "x$default_lpdconfigfile" = "xdefault"; then
9891 case $host_os_name in
9893 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9896 if test "x$XINETD" != x; then
9897 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9899 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9904 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9907 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9910 cat >>confdefs.h <<_ACEOF
9911 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9917 # Check whether --with-smbconfigfile was given.
9918 if test "${with_smbconfigfile+set}" = set; then :
9919 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9921 default_smbconfigfile="default"
9925 if test x$default_smbconfigfile != xno; then
9926 if test "x$default_smbconfigfile" = "xdefault"; then
9927 if test -f /etc/smb.conf; then
9928 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9930 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9933 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9936 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9939 cat >>confdefs.h <<_ACEOF
9940 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9946 # Check whether --with-max-copies was given.
9947 if test "${with_max_copies+set}" = set; then :
9948 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9950 CUPS_MAX_COPIES="9999"
9955 cat >>confdefs.h <<_ACEOF
9956 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9960 # Check whether --enable-raw_printing was given.
9961 if test "${enable_raw_printing+set}" = set; then :
9962 enableval=$enable_raw_printing;
9965 if test "x$enable_raw_printing" != xno; then
9966 DEFAULT_RAW_PRINTING=""
9968 DEFAULT_RAW_PRINTING="#"
9973 # Check whether --with-snmp-address was given.
9974 if test "${with_snmp_address+set}" = set; then :
9975 withval=$with_snmp_address; if test "x$withval" = x; then
9976 CUPS_SNMP_ADDRESS=""
9978 CUPS_SNMP_ADDRESS="Address $withval"
9981 if test "x$host_os_name" = xdarwin; then
9982 CUPS_SNMP_ADDRESS=""
9984 CUPS_SNMP_ADDRESS="Address @LOCAL"
9990 # Check whether --with-snmp-community was given.
9991 if test "${with_snmp_community+set}" = set; then :
9992 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9994 CUPS_SNMP_COMMUNITY="Community public"
10002 # Check whether --with-ipp-port was given.
10003 if test "${with_ipp_port+set}" = set; then :
10004 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
10006 DEFAULT_IPP_PORT="631"
10011 cat >>confdefs.h <<_ACEOF
10012 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
10016 # Check whether --enable-webif was given.
10017 if test "${enable_webif+set}" = set; then :
10018 enableval=$enable_webif;
10021 case "x$enable_webif" in
10024 CUPS_DEFAULT_WEBIF=0
10028 CUPS_DEFAULT_WEBIF=1
10031 if test $host_os_name = darwin; then
10033 CUPS_DEFAULT_WEBIF=0
10036 CUPS_DEFAULT_WEBIF=1
10042 cat >>confdefs.h <<_ACEOF
10043 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
10049 # Check whether --with-java was given.
10050 if test "${with_java+set}" = set; then :
10051 withval=$with_java; CUPS_JAVA="$withval"
10057 if test "x$CUPS_JAVA" = x; then
10058 # Extract the first word of "java", so it can be a program name with args.
10059 set dummy java; ac_word=$2
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if ${ac_cv_path_JAVA+:} false; then :
10063 $as_echo_n "(cached) " >&6
10067 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
10078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10088 JAVA=$ac_cv_path_JAVA
10089 if test -n "$JAVA"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
10091 $as_echo "$JAVA" >&6; }
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10101 cat >>confdefs.h <<_ACEOF
10102 #define CUPS_JAVA "$CUPS_JAVA"
10106 if test "x$CUPS_JAVA" != x; then
10107 $as_echo "#define HAVE_JAVA 1" >>confdefs.h
10112 # Check whether --with-perl was given.
10113 if test "${with_perl+set}" = set; then :
10114 withval=$with_perl; CUPS_PERL="$withval"
10120 if test "x$CUPS_PERL" = x; then
10121 # Extract the first word of "perl", so it can be a program name with args.
10122 set dummy perl; ac_word=$2
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10124 $as_echo_n "checking for $ac_word... " >&6; }
10125 if ${ac_cv_path_PERL+:} false; then :
10126 $as_echo_n "(cached) " >&6
10130 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10134 for as_dir in $PATH
10137 test -z "$as_dir" && as_dir=.
10138 for ac_exec_ext in '' $ac_executable_extensions; do
10139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10140 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10151 PERL=$ac_cv_path_PERL
10152 if test -n "$PERL"; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10154 $as_echo "$PERL" >&6; }
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 $as_echo "no" >&6; }
10164 cat >>confdefs.h <<_ACEOF
10165 #define CUPS_PERL "$CUPS_PERL"
10169 if test "x$CUPS_PERL" != x; then
10170 $as_echo "#define HAVE_PERL 1" >>confdefs.h
10175 # Check whether --with-php was given.
10176 if test "${with_php+set}" = set; then :
10177 withval=$with_php; CUPS_PHP="$withval"
10183 if test "x$CUPS_PHP" = x; then
10184 # Extract the first word of "php-cgi", so it can be a program name with args.
10185 set dummy php-cgi; ac_word=$2
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 $as_echo_n "checking for $ac_word... " >&6; }
10188 if ${ac_cv_path_PHPCGI+:} false; then :
10189 $as_echo_n "(cached) " >&6
10193 ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
10196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in $PATH
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10203 ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10214 PHPCGI=$ac_cv_path_PHPCGI
10215 if test -n "$PHPCGI"; then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
10217 $as_echo "$PHPCGI" >&6; }
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10224 if test "x$PHPCGI" = x; then
10225 # Extract the first word of "php", so it can be a program name with args.
10226 set dummy php; ac_word=$2
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10228 $as_echo_n "checking for $ac_word... " >&6; }
10229 if ${ac_cv_path_PHP+:} false; then :
10230 $as_echo_n "(cached) " >&6
10234 ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
10237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238 for as_dir in $PATH
10241 test -z "$as_dir" && as_dir=.
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10244 ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
10245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10255 PHP=$ac_cv_path_PHP
10256 if test -n "$PHP"; then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
10258 $as_echo "$PHP" >&6; }
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261 $as_echo "no" >&6; }
10271 cat >>confdefs.h <<_ACEOF
10272 #define CUPS_PHP "$CUPS_PHP"
10276 if test "x$CUPS_PHP" = x; then
10279 $as_echo "#define HAVE_PHP 1" >>confdefs.h
10284 # Check whether --with-python was given.
10285 if test "${with_python+set}" = set; then :
10286 withval=$with_python; CUPS_PYTHON="$withval"
10292 if test "x$CUPS_PYTHON" = x; then
10293 # Extract the first word of "python", so it can be a program name with args.
10294 set dummy python; ac_word=$2
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10296 $as_echo_n "checking for $ac_word... " >&6; }
10297 if ${ac_cv_path_PYTHON+:} false; then :
10298 $as_echo_n "(cached) " >&6
10302 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306 for as_dir in $PATH
10309 test -z "$as_dir" && as_dir=.
10310 for ac_exec_ext in '' $ac_executable_extensions; do
10311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10312 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10323 PYTHON=$ac_cv_path_PYTHON
10324 if test -n "$PYTHON"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10326 $as_echo "$PYTHON" >&6; }
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 $as_echo "no" >&6; }
10333 CUPS_PYTHON="$PYTHON"
10336 cat >>confdefs.h <<_ACEOF
10337 #define CUPS_PYTHON "$CUPS_PYTHON"
10341 if test "x$CUPS_PYTHON" != x; then
10342 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10347 INSTALL_LANGUAGES=""
10348 UNINSTALL_LANGUAGES=""
10350 if test "x$LANGUAGES" != x; then
10351 INSTALL_LANGUAGES="install-languages"
10352 UNINSTALL_LANGUAGES="uninstall-languages"
10353 for lang in $LANGUAGES; do
10354 if test -f doc/$lang/index.html.in; then
10355 LANGFILES="$LANGFILES doc/$lang/index.html"
10358 if test -f templates/$lang/header.tmpl.in; then
10359 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10362 elif test "x$CUPS_BUNDLEDIR" != x; then
10363 INSTALL_LANGUAGES="install-langbundle"
10364 UNINSTALL_LANGUAGES="uninstall-langbundle"
10370 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"
10372 cat >confcache <<\_ACEOF
10373 # This file is a shell script that caches the results of configure
10374 # tests run on this system so they can be shared between configure
10375 # scripts and configure runs, see configure's option --config-cache.
10376 # It is not useful on other systems. If it contains results you don't
10377 # want to keep, you may remove or edit it.
10379 # config.status only pays attention to the cache file if you give it
10380 # the --recheck option to rerun configure.
10382 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10383 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10384 # following values.
10388 # The following way of writing the cache mishandles newlines in values,
10389 # but we know of no workaround that is simple, portable, and efficient.
10390 # So, we kill variables containing newlines.
10391 # Ultrix sh set writes to stderr and can't be redirected directly,
10392 # and sets the high bit in the cache file unless we assign to the vars.
10394 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10395 eval ac_val
=\$
$ac_var
10399 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10400 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10403 _ | IFS | as_nl
) ;; #(
10404 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10405 *) { eval $ac_var=; unset $ac_var;} ;;
10411 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10412 *${as_nl}ac_space
=\
*)
10413 # `set' does not quote correctly, so add quotes: double-quote
10414 # substitution turns \\\\ into \\, and sed turns \\ into \.
10417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10420 # `set' quotes correctly as required by POSIX, so do not add quotes.
10421 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10432 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10434 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10435 if test -w "$cache_file"; then
10436 if test "x$cache_file" != "x/dev/null"; then
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10438 $as_echo "$as_me: updating cache $cache_file" >&6;}
10439 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10440 cat confcache
>"$cache_file"
10442 case $cache_file in #(
10444 mv -f confcache
"$cache_file"$$
&&
10445 mv -f "$cache_file"$$
"$cache_file" ;; #(
10447 mv -f confcache
"$cache_file" ;;
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10453 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10458 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10459 # Let make expand exec_prefix.
10460 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10462 DEFS
=-DHAVE_CONFIG_H
10467 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10468 # 1. Remove the extension, and $U if already installed.
10469 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10470 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10471 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10472 # will be set to the directory where LIBOBJS objects are built.
10473 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10474 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10476 LIBOBJS
=$ac_libobjs
10478 LTLIBOBJS
=$ac_ltlibobjs
10482 : "${CONFIG_STATUS=./config.status}"
10484 ac_clean_files_save
=$ac_clean_files
10485 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10487 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10489 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10491 # Generated by $as_me.
10492 # Run this file to recreate the current configuration.
10493 # Compiler output produced by configure, useful for debugging
10494 # configure, is in config.log if it exists.
10497 ac_cs_recheck=false
10500 SHELL=\${CONFIG_SHELL-$SHELL}
10503 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10504 ## -------------------- ##
10505 ## M4sh Initialization. ##
10506 ## -------------------- ##
10508 # Be more Bourne compatible
10509 DUALCASE
=1; export DUALCASE
# for MKS sh
10510 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10513 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10514 # is contrary to our usage. Disable this feature.
10515 alias -g '${1+"$@"}'='"$@"'
10516 setopt NO_GLOB_SUBST
10518 case `(set -o) 2>/dev/null` in #(
10530 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10531 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10532 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10533 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10534 # Prefer a ksh shell builtin over an external printf program on Solaris,
10535 # but without wasting forks for bash or zsh.
10536 if test -z "$BASH_VERSION$ZSH_VERSION" \
10537 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10538 as_echo='print
-r --'
10539 as_echo_n='print
-rn --'
10540 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10541 as_echo='printf %s
\n'
10542 as_echo_n='printf %s
'
10544 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10545 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10546 as_echo_n='/usr
/ucb
/echo -n'
10548 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10549 as_echo_n_body='eval
10553 expr "X$arg" : "X\\(.*\\)$as_nl";
10554 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10556 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10558 export as_echo_n_body
10559 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10561 export as_echo_body
10562 as_echo='sh
-c $as_echo_body as_echo
'
10565 # The user is always right.
10566 if test "${PATH_SEPARATOR+set}" != set; then
10568 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10569 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10576 # We need space, tab and new line, in precisely that order. Quoting is
10577 # there to prevent editors from complaining about space-tab.
10578 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10579 # splitting by setting IFS to empty value.)
10582 # Find who we are. Look in the path if we contain no directory separator.
10585 *[\\/]* ) as_myself=$0 ;;
10586 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in $PATH
10590 test -z "$as_dir" && as_dir=.
10591 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10597 # We did not find ourselves, most probably we were run as `sh COMMAND'
10598 # in which case we are not to be found in the path.
10599 if test "x$as_myself" = x
; then
10602 if test ! -f "$as_myself"; then
10603 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10607 # Unset variables that we do not need and which cause bugs (e.g. in
10608 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10609 # suppresses any "Segmentation fault" message there. '((' could
10610 # trigger a bug in pdksh 5.2.14.
10611 for as_var
in BASH_ENV ENV MAIL MAILPATH
10612 do eval test x\
${$as_var+set} = xset \
10613 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10626 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10629 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10630 # ----------------------------------------
10631 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10632 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10633 # script with STATUS, using 1 if that was 0.
10636 as_status
=$1; test $as_status -eq 0 && as_status
=1
10638 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10639 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10641 $as_echo "$as_me: error: $2" >&2
10642 as_fn_exit
$as_status
10646 # as_fn_set_status STATUS
10647 # -----------------------
10648 # Set $? to STATUS, without forking.
10649 as_fn_set_status
()
10652 } # as_fn_set_status
10654 # as_fn_exit STATUS
10655 # -----------------
10656 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10660 as_fn_set_status
$1
10666 # Portably unset VAR.
10669 { eval $1=; unset $1;}
10671 as_unset
=as_fn_unset
10672 # as_fn_append VAR VALUE
10673 # ----------------------
10674 # Append the text in VALUE to the end of the definition contained in VAR. Take
10675 # advantage of any shell optimizations that allow amortized linear growth over
10676 # repeated appends, instead of the typical quadratic growth present in naive
10678 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10679 eval 'as_fn_append ()
10690 # as_fn_arith ARG...
10691 # ------------------
10692 # Perform arithmetic evaluation on the ARGs, and store the result in the
10693 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10694 # must be portable across $(()) and expr.
10695 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10696 eval 'as_fn_arith ()
10703 as_val
=`expr "$@" || test $? -eq 1`
10708 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10709 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10715 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10716 as_basename
=basename
10721 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10727 as_me
=`$as_basename -- "$0" ||
10728 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10729 X"$0" : 'X\(//\)$' \| \
10730 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10732 sed '/^.*\/\([^/][^/]*\)\/*$/{
10746 # Avoid depending upon Character Ranges.
10747 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10748 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10749 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10750 as_cr_digits
='0123456789'
10751 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10753 ECHO_C
= ECHO_N
= ECHO_T
=
10754 case `echo -n x` in #(((((
10756 case `echo 'xy\c'` in
10757 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10759 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10766 rm -f conf$$ conf$$.exe conf$$.
file
10767 if test -d conf$$.dir
; then
10768 rm -f conf$$.dir
/conf$$.
file
10771 mkdir conf$$.dir
2>/dev
/null
10773 if (echo >conf$$.
file) 2>/dev
/null
; then
10774 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10776 # ... but there are two gotchas:
10777 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10778 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10779 # In both cases, we have to default to `cp -p'.
10780 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10782 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10790 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10791 rmdir conf$$.dir
2>/dev
/null
10796 # Create "$as_dir" as a directory, including parents if necessary.
10801 -*) as_dir
=.
/$as_dir;;
10803 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10807 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10808 *) as_qdir
=$as_dir;;
10810 as_dirs
="'$as_qdir' $as_dirs"
10811 as_dir
=`$as_dirname -- "$as_dir" ||
10812 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10813 X"$as_dir" : 'X\(//\)[^/]' \| \
10814 X"$as_dir" : 'X\(//\)$' \| \
10815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10816 $as_echo X"$as_dir" |
10817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10821 /^X\(\/\/\)[^/].*/{
10834 test -d "$as_dir" && break
10836 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10837 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10841 if mkdir
-p .
2>/dev
/null
; then
10842 as_mkdir_p
='mkdir -p "$as_dir"'
10844 test -d .
/-p && rmdir .
/-p
10848 if test -x / >/dev
/null
2>&1; then
10849 as_test_x
='test -x'
10851 if ls -dL / >/dev
/null
2>&1; then
10858 if test -d "$1"; then
10864 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10865 ???[sx]*):;;*)false;;esac;fi
10869 as_executable_p
=$as_test_x
10871 # Sed expression to map a string onto a valid CPP name.
10872 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10874 # Sed expression to map a string onto a valid variable name.
10875 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10879 ## ----------------------------------- ##
10880 ## Main body of $CONFIG_STATUS script. ##
10881 ## ----------------------------------- ##
10883 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10886 # Save the log message, to keep $0 and so on meaningful, and to
10887 # report actual input values of CONFIG_FILES etc. instead of their
10888 # values after options handling.
10890 This file was extended by CUPS $as_me 2.2.4, which was
10891 generated by GNU Autoconf 2.68. Invocation command line was
10893 CONFIG_FILES = $CONFIG_FILES
10894 CONFIG_HEADERS = $CONFIG_HEADERS
10895 CONFIG_LINKS = $CONFIG_LINKS
10896 CONFIG_COMMANDS = $CONFIG_COMMANDS
10899 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10904 case $ac_config_files in *"
10905 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10908 case $ac_config_headers in *"
10909 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10914 # Files that config.status was made for.
10915 config_files="$ac_config_files"
10916 config_headers="$ac_config_headers"
10920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10922 \`$as_me' instantiates files and other configuration actions
10923 from templates according to the current configuration. Unless the files
10924 and actions are specified as TAGs, all are instantiated by default.
10926 Usage: $0 [OPTION]... [TAG]...
10928 -h, --help print this help, then exit
10929 -V, --version print version number and configuration settings, then exit
10930 --config print configuration, then exit
10931 -q, --quiet, --silent
10932 do not print progress messages
10933 -d, --debug don't remove temporary files
10934 --recheck update $as_me by reconfiguring in the same conditions
10935 --file=FILE[:TEMPLATE]
10936 instantiate the configuration file FILE
10937 --header=FILE[:TEMPLATE]
10938 instantiate the configuration header FILE
10940 Configuration files:
10943 Configuration headers:
10946 Report bugs to <https://github.com/apple/cups/issues>.
10947 CUPS home page: <https://www.cups.org/>."
10950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10951 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10953 CUPS config.status 2.2.4
10954 configured by $0, generated by GNU Autoconf 2.68,
10955 with options \\"\$ac_cs_config\\"
10957 Copyright (C) 2010 Free Software Foundation, Inc.
10958 This config.status script is free software; the Free Software Foundation
10959 gives unlimited permission to copy, distribute and modify it."
10964 test -n "\$AWK" || AWK=awk
10967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10968 # The default lists apply if the user does not specify any file.
10974 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10975 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10979 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10991 # Handling of the options.
10992 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10994 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10995 $as_echo "$ac_cs_version"; exit ;;
10996 --config |
--confi |
--conf |
--con |
--co |
--c )
10997 $as_echo "$ac_cs_config"; exit ;;
10998 --debug |
--debu |
--deb |
--de |
--d |
-d )
11000 --file |
--fil |
--fi |
--f )
11003 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11004 '') as_fn_error $?
"missing file argument" ;;
11006 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11007 ac_need_defaults
=false
;;
11008 --header |
--heade |
--head |
--hea )
11011 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11013 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11014 ac_need_defaults
=false
;;
11016 # Conflict between --help and --header
11017 as_fn_error $?
"ambiguous option: \`$1'
11018 Try \`$0 --help' for more information.";;
11019 --help |
--hel |
-h )
11020 $as_echo "$ac_cs_usage"; exit ;;
11021 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11022 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11025 # This is an error.
11026 -*) as_fn_error $?
"unrecognized option: \`$1'
11027 Try \`$0 --help' for more information." ;;
11029 *) as_fn_append ac_config_targets
" $1"
11030 ac_need_defaults
=false
;;
11036 ac_configure_extra_args
=
11038 if $ac_cs_silent; then
11040 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11045 if \$ac_cs_recheck; then
11046 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11048 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11049 CONFIG_SHELL='$SHELL'
11050 export CONFIG_SHELL
11055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11060 ## Running $as_me. ##
11066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11071 # Handling of arguments.
11072 for ac_config_target
in $ac_config_targets
11074 case $ac_config_target in
11075 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11076 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
11077 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
11078 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
11079 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
11080 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
11081 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
11082 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
11083 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
11084 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
11085 "man/client.conf.man") CONFIG_FILES
="$CONFIG_FILES man/client.conf.man" ;;
11086 "man/cups-files.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cups-files.conf.man" ;;
11087 "man/cups-lpd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-lpd.man" ;;
11088 "man/cups-snmp.man") CONFIG_FILES
="$CONFIG_FILES man/cups-snmp.man" ;;
11089 "man/cupsaddsmb.man") CONFIG_FILES
="$CONFIG_FILES man/cupsaddsmb.man" ;;
11090 "man/cupsd.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.conf.man" ;;
11091 "man/cupsd.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.man" ;;
11092 "man/lpoptions.man") CONFIG_FILES
="$CONFIG_FILES man/lpoptions.man" ;;
11093 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
11094 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
11095 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
11096 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
11097 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
11098 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
11099 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
11100 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
11101 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
11102 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
11103 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
11105 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11110 # If the user did not use the arguments to specify the items to instantiate,
11111 # then the envvar interface is used. Set only those that are not.
11112 # We use the long form for the default assignment because of an extremely
11113 # bizarre bug on SunOS 4.1.3.
11114 if $ac_need_defaults; then
11115 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11116 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11119 # Have a temporary directory for convenience. Make it in the build tree
11120 # simply because there is no reason against having it here, and in addition,
11121 # creating and moving files from /tmp can sometimes cause problems.
11122 # Hook for its removal unless debugging.
11123 # Note that there is a small window in which the directory will not be cleaned:
11124 # after its creation but before its name has been assigned to `$tmp'.
11128 trap 'exit_status=$?
11129 : "${ac_tmp:=$tmp}"
11130 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11132 trap 'as_fn_exit 1' 1 2 13 15
11134 # Create a (secure) tmp directory for tmp files.
11137 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11141 tmp
=.
/conf$$
-$RANDOM
11142 (umask 077 && mkdir
"$tmp")
11143 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11146 # Set up the scripts for CONFIG_FILES section.
11147 # No need to generate them if there are no CONFIG_FILES.
11148 # This happens for instance with `./config.status config.h'.
11149 if test -n "$CONFIG_FILES"; then
11152 ac_cr
=`echo X | tr X '\015'`
11153 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11154 # But we know of no other shell where ac_cr would be empty at this
11155 # point, so we can use a bashism as a fallback.
11156 if test "x$ac_cr" = x
; then
11157 eval ac_cr
=\$
\'\\r
\'
11159 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11160 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11163 ac_cs_awk_cr
=$ac_cr
11166 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11171 echo "cat >conf$$subs.awk <<_ACEOF" &&
11172 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11174 } >conf$$subs.sh ||
11175 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11176 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11178 for ac_last_try in false false false false false :; do
11179 . ./conf$$subs.sh ||
11180 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11182 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11183 if test $ac_delim_n = $ac_delim_num; then
11185 elif $ac_last_try; then
11186 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11188 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11191 rm -f conf$$subs.sh
11193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11194 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11198 s/^/S["/; s
/!.
*/"]=/
11208 s/\(.\{148\}\)..*/\1/
11210 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11215 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11222 s/\(.\{148\}\)..*/\1/
11224 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11228 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11233 ' <conf$$subs.awk | sed '
11238 ' >>$CONFIG_STATUS || ac_write_fail=1
11239 rm -f conf$$subs.awk
11240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11242 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11243 for (key in S) S_is_set[key] = 1
11249 nfields = split(line, field, "@
")
11251 len = length(field[1])
11252 for (i = 2; i < nfields; i++) {
11254 keylen = length(key)
11255 if (S_is_set[key]) {
11257 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11258 len += length(value) + length(field[++i])
11269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11270 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11271 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11274 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11275 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11278 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11279 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11280 # trailing colons and then remove the whole line if VPATH becomes empty
11281 # (actually we leave an empty line to preserve line numbers).
11282 if test "x
$srcdir" = x.; then
11283 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11302 fi # test -n "$CONFIG_FILES"
11304 # Set up the scripts for CONFIG_HEADERS section.
11305 # No need to generate them if there are no CONFIG_HEADERS.
11306 # This happens for instance with `./config.status Makefile'.
11307 if test -n "$CONFIG_HEADERS"; then
11308 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11312 # Transform confdefs.h into an awk script `defines.awk', embedded as
11313 # here-document in config.status, that substitutes the proper values into
11314 # config.h.in to produce config.h.
11316 # Create a delimiter string that does not exist in confdefs.h, to ease
11317 # handling of long lines.
11319 for ac_last_try in false false :; do
11320 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11321 if test -z "$ac_tt"; then
11323 elif $ac_last_try; then
11324 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11326 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11330 # For the awk script, D is an array of macro values keyed by name,
11331 # likewise P contains macro parameters if any. Preserve backslash
11332 # newline sequences.
11334 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11336 s/.\{148\}/&'"$ac_delim"'/g
11339 s/^[ ]*#[ ]*define[ ][ ]*/ /
11346 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11348 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11352 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11353 D["\
1"]=" \
3\\\\\\n
"\\/p
11355 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11360 s/.\{148\}/&'"$ac_delim"'/g
11365 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11368 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11370 ' <confdefs.h | sed '
11371 s/'"$ac_delim"'/"\\\
11372 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11375 for (key in D) D_is_set[key] = 1
11378 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11380 split(line, arg, " ")
11381 if (arg[1] == "#") {
11385 defundef
= substr
(arg
[1], 2)
11388 split(mac1
, mac2
, "(") #)
11390 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11391 if (D_is_set
[macro
]) {
11392 # Preserve the white space surrounding the "#".
11393 print prefix
"define", macro P
[macro
] D
[macro
]
11396 # Replace #undef with comments. This is necessary, for example,
11397 # in the case of _POSIX_SOURCE, which is predefined and required
11398 # on some systems where configure will not decide to define it.
11399 if (defundef
== "undef") {
11400 print
"/*", prefix defundef
, macro
, "*/"
11408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11409 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11410 fi # test -n "$CONFIG_HEADERS"
11413 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11418 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11420 case $ac_mode$ac_tag in
11422 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11423 :[FH
]-) ac_tag
=-:-;;
11424 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11441 -) ac_f
="$ac_tmp/stdin";;
11442 *) # Look for the file first in the build tree, then in the source tree
11443 # (if the path is not absolute). The absolute path cannot be DOS-style,
11444 # because $ac_f cannot contain `:'.
11448 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11450 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11452 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11453 as_fn_append ac_file_inputs
" '$ac_f'"
11456 # Let's still pretend it is `configure' which instantiates (i.e., don't
11457 # use $as_me), people would be surprised to read:
11458 # /* config.h. Generated by config.status. */
11459 configure_input
='Generated from '`
11460 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11462 if test x
"$ac_file" != x-
; then
11463 configure_input
="$ac_file. $configure_input"
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11465 $as_echo "$as_me: creating $ac_file" >&6;}
11467 # Neutralize special characters interpreted by sed in replacement strings.
11468 case $configure_input in #(
11469 *\
&* |
*\|
* |
*\\* )
11470 ac_sed_conf_input
=`$as_echo "$configure_input" |
11471 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11472 *) ac_sed_conf_input
=$configure_input;;
11476 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11477 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11482 ac_dir
=`$as_dirname -- "$ac_file" ||
11483 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11484 X"$ac_file" : 'X\(//\)[^/]' \| \
11485 X"$ac_file" : 'X\(//\)$' \| \
11486 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11487 $as_echo X"$ac_file" |
11488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11492 /^X\(\/\/\)[^/].*/{
11505 as_dir
="$ac_dir"; as_fn_mkdir_p
11509 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11511 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11512 # A ".." for each directory in $ac_dir_suffix.
11513 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11514 case $ac_top_builddir_sub in
11515 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11516 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11519 ac_abs_top_builddir
=$ac_pwd
11520 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11521 # for backward compatibility:
11522 ac_top_builddir
=$ac_top_build_prefix
11525 .
) # We are building in place.
11527 ac_top_srcdir
=$ac_top_builddir_sub
11528 ac_abs_top_srcdir
=$ac_pwd ;;
11529 [\\/]* | ?
:[\\/]* ) # Absolute name.
11530 ac_srcdir
=$srcdir$ac_dir_suffix;
11531 ac_top_srcdir
=$srcdir
11532 ac_abs_top_srcdir
=$srcdir ;;
11533 *) # Relative name.
11534 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11535 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11536 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11538 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11550 # If the template does not know about datarootdir, expand it.
11551 # FIXME: This hack should be removed a few years after 2.60.
11552 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11563 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11564 *datarootdir
*) ac_datarootdir_seen
=yes;;
11565 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11567 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11570 ac_datarootdir_hack='
11571 s&@datadir@&$datadir&g
11572 s&@docdir@&$docdir&g
11573 s&@infodir@&$infodir&g
11574 s&@localedir@&$localedir&g
11575 s&@mandir@&$mandir&g
11576 s&\\\${datarootdir}&$datarootdir&g' ;;
11580 # Neutralize VPATH when `$srcdir' = `.'.
11581 # Shell code in configure.ac might set extrasub.
11582 # FIXME: do we really want to maintain this feature?
11583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11584 ac_sed_extra="$ac_vpsub
11587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11589 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11590 s|@configure_input@|
$ac_sed_conf_input|
;t t
11591 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11592 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11593 s
&@srcdir@
&$ac_srcdir&;t t
11594 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11595 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11596 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11597 s
&@builddir@
&$ac_builddir&;t t
11598 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11599 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11600 $ac_datarootdir_hack
11602 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11603 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11605 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11606 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11607 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11608 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11610 which seems to be undefined. Please make sure it is defined" >&5
11611 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11612 which seems to be undefined. Please make sure it is defined" >&2;}
11614 rm -f "$ac_tmp/stdin"
11616 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11617 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11625 if test x"$ac_file" != x-; then
11627 $as_echo "/* $configure_input */" \
11628 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11629 } >"$ac_tmp/config.h" \
11630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11631 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11633 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11636 mv "$ac_tmp/config.h" "$ac_file" \
11637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11640 $as_echo "/* $configure_input */" \
11641 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11642 || as_fn_error $? "could not create -" "$LINENO" 5
11654 ac_clean_files=$ac_clean_files_save
11656 test $ac_write_fail = 0 ||
11657 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11660 # configure is writing to config.log, and then calls config.status.
11661 # config.status does its own redirection, appending to config.log.
11662 # Unfortunately, on DOS this fails, as config.log is still kept open
11663 # by configure, so config.status won't be able to
write to it
; its
11664 # output is simply discarded. So we exec the FD to /dev/null,
11665 # effectively closing config.log, so it can be properly (re)opened and
11666 # appended to by config.status. When coming back to configure, we
11667 # need to make the FD available again.
11668 if test "$no_create" != yes; then
11670 ac_config_status_args
=
11671 test "$silent" = yes &&
11672 ac_config_status_args
="$ac_config_status_args --quiet"
11674 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11676 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11677 # would make configure fail if this is the last instruction.
11678 $ac_cs_success || as_fn_exit
1
11680 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11682 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11686 chmod +x cups-config