2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for CUPS 2.3b6.
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.3b6'
564 PACKAGE_STRING
='CUPS 2.3b6'
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
615 CUPS_DEFAULT_SMB_CONFIG_FILE
616 CUPS_DEFAULT_LPD_CONFIG_FILE
617 CUPS_DEFAULT_PRINTCAP
618 CUPS_PRIMARY_SYSTEM_GROUP
623 CUPS_BROWSE_LOCAL_PROTOCOLS
626 CUPS_ACCESS_LOG_LEVEL
631 CUPS_CONFIG_FILE_PERM
663 CUPS_DEFAULT_GSSSERVICENAME
666 CUPS_LISTEN_DOMAINSOCKET
667 CUPS_DEFAULT_DOMAINSOCKET
724 CUPS_DEFAULT_PRINTOPERATOR_AUTH
809 program_transform_name
822 enable_option_checking
846 enable_libtool_unsupported
882 with_config_file_perm
887 with_access_log_level
891 enable_default_shared
905 ac_precious_vars
='build_alias
919 # Initialize some variables set by options.
921 ac_init_version
=false
922 ac_unrecognized_opts
=
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
933 program_transform_name
=s
,x
,x
,
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir
='${exec_prefix}/bin'
948 sbindir
='${exec_prefix}/sbin'
949 libexecdir
='${exec_prefix}/libexec'
950 datarootdir
='${prefix}/share'
951 datadir
='${datarootdir}'
952 sysconfdir
='${prefix}/etc'
953 sharedstatedir
='${prefix}/com'
954 localstatedir
='${prefix}/var'
955 includedir
='${prefix}/include'
956 oldincludedir
='/usr/include'
957 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
958 infodir
='${datarootdir}/info'
963 libdir
='${exec_prefix}/lib'
964 localedir
='${datarootdir}/locale'
965 mandir
='${datarootdir}/man'
971 # If the previous option needs an argument, assign it.
972 if test -n "$ac_prev"; then
973 eval $ac_prev=\
$ac_option
979 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984 # Accept the important Cygnus configure options, so we can diagnose typos.
986 case $ac_dashdash$ac_option in
990 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
992 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
995 -build |
--build |
--buil |
--bui |
--bu)
996 ac_prev
=build_alias
;;
997 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
998 build_alias
=$ac_optarg ;;
1000 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1001 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1002 ac_prev
=cache_file
;;
1003 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1004 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1005 cache_file
=$ac_optarg ;;
1007 --config-cache |
-C)
1008 cache_file
=config.cache
;;
1010 -datadir |
--datadir |
--datadi |
--datad)
1012 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1013 datadir
=$ac_optarg ;;
1015 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1016 |
--dataroo |
--dataro |
--datar)
1017 ac_prev
=datarootdir
;;
1018 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1019 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1020 datarootdir
=$ac_optarg ;;
1022 -disable-* |
--disable-*)
1023 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1026 as_fn_error $?
"invalid feature name: $ac_useropt"
1027 ac_useropt_orig
=$ac_useropt
1028 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1031 "enable_
$ac_useropt"
1033 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034 ac_unrecognized_sep
=', ';;
1036 eval enable_
$ac_useropt=no
;;
1038 -docdir |
--docdir |
--docdi |
--doc |
--do)
1040 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1041 docdir
=$ac_optarg ;;
1043 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1045 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1046 dvidir
=$ac_optarg ;;
1048 -enable-* |
--enable-*)
1049 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1052 as_fn_error $?
"invalid feature name: $ac_useropt"
1053 ac_useropt_orig
=$ac_useropt
1054 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1057 "enable_
$ac_useropt"
1059 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060 ac_unrecognized_sep
=', ';;
1062 eval enable_
$ac_useropt=\
$ac_optarg ;;
1064 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1065 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1066 |
--exec |
--exe |
--ex)
1067 ac_prev
=exec_prefix
;;
1068 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1069 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1070 |
--exec=* |
--exe=* |
--ex=*)
1071 exec_prefix
=$ac_optarg ;;
1073 -gas |
--gas |
--ga |
--g)
1074 # Obsolete; use --with-gas.
1077 -help |
--help |
--hel |
--he |
-h)
1078 ac_init_help
=long
;;
1079 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1080 ac_init_help
=recursive
;;
1081 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1082 ac_init_help
=short
;;
1084 -host |
--host |
--hos |
--ho)
1085 ac_prev
=host_alias
;;
1086 -host=* |
--host=* |
--hos=* |
--ho=*)
1087 host_alias
=$ac_optarg ;;
1089 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1091 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1093 htmldir
=$ac_optarg ;;
1095 -includedir |
--includedir |
--includedi |
--included |
--include \
1096 |
--includ |
--inclu |
--incl |
--inc)
1097 ac_prev
=includedir
;;
1098 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1099 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1100 includedir
=$ac_optarg ;;
1102 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1104 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1105 infodir
=$ac_optarg ;;
1107 -libdir |
--libdir |
--libdi |
--libd)
1109 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1110 libdir
=$ac_optarg ;;
1112 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1113 |
--libexe |
--libex |
--libe)
1114 ac_prev
=libexecdir
;;
1115 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1116 |
--libexe=* |
--libex=* |
--libe=*)
1117 libexecdir
=$ac_optarg ;;
1119 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1120 ac_prev
=localedir
;;
1121 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1122 localedir
=$ac_optarg ;;
1124 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1125 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1126 ac_prev
=localstatedir
;;
1127 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1128 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1129 localstatedir
=$ac_optarg ;;
1131 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1133 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1134 mandir
=$ac_optarg ;;
1136 -nfp |
--nfp |
--nf)
1137 # Obsolete; use --without-fp.
1140 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1141 |
--no-cr |
--no-c |
-n)
1144 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1145 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1148 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1149 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1150 |
--oldin |
--oldi |
--old |
--ol |
--o)
1151 ac_prev
=oldincludedir
;;
1152 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1153 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1154 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1155 oldincludedir
=$ac_optarg ;;
1157 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1159 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1160 prefix
=$ac_optarg ;;
1162 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1163 |
--program-pre |
--program-pr |
--program-p)
1164 ac_prev
=program_prefix
;;
1165 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1166 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1167 program_prefix
=$ac_optarg ;;
1169 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1170 |
--program-suf |
--program-su |
--program-s)
1171 ac_prev
=program_suffix
;;
1172 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1173 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1174 program_suffix
=$ac_optarg ;;
1176 -program-transform-name |
--program-transform-name \
1177 |
--program-transform-nam |
--program-transform-na \
1178 |
--program-transform-n |
--program-transform- \
1179 |
--program-transform |
--program-transfor \
1180 |
--program-transfo |
--program-transf \
1181 |
--program-trans |
--program-tran \
1182 |
--progr-tra |
--program-tr |
--program-t)
1183 ac_prev
=program_transform_name
;;
1184 -program-transform-name=* |
--program-transform-name=* \
1185 |
--program-transform-nam=* |
--program-transform-na=* \
1186 |
--program-transform-n=* |
--program-transform-=* \
1187 |
--program-transform=* |
--program-transfor=* \
1188 |
--program-transfo=* |
--program-transf=* \
1189 |
--program-trans=* |
--program-tran=* \
1190 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1191 program_transform_name
=$ac_optarg ;;
1193 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1195 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1196 pdfdir
=$ac_optarg ;;
1198 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1200 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1203 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1204 |
-silent |
--silent |
--silen |
--sile |
--sil)
1207 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1209 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1211 sbindir
=$ac_optarg ;;
1213 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1214 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1215 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1217 ac_prev
=sharedstatedir
;;
1218 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1219 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1220 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1222 sharedstatedir
=$ac_optarg ;;
1224 -site |
--site |
--sit)
1226 -site=* |
--site=* |
--sit=*)
1229 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1231 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1232 srcdir
=$ac_optarg ;;
1234 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1235 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1236 ac_prev
=sysconfdir
;;
1237 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1238 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1239 sysconfdir
=$ac_optarg ;;
1241 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1242 ac_prev
=target_alias
;;
1243 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1244 target_alias
=$ac_optarg ;;
1246 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1249 -version |
--version |
--versio |
--versi |
--vers |
-V)
1250 ac_init_version
=: ;;
1253 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1256 as_fn_error $?
"invalid package name: $ac_useropt"
1257 ac_useropt_orig
=$ac_useropt
1258 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1263 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264 ac_unrecognized_sep
=', ';;
1266 eval with_
$ac_useropt=\
$ac_optarg ;;
1268 -without-* |
--without-*)
1269 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1272 as_fn_error $?
"invalid package name: $ac_useropt"
1273 ac_useropt_orig
=$ac_useropt
1274 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1279 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280 ac_unrecognized_sep
=', ';;
1282 eval with_
$ac_useropt=no
;;
1285 # Obsolete; use --with-x.
1288 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1289 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1290 ac_prev
=x_includes
;;
1291 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1292 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1293 x_includes
=$ac_optarg ;;
1295 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1296 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1297 ac_prev
=x_libraries
;;
1298 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1299 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1300 x_libraries
=$ac_optarg ;;
1302 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1303 Try \`$0 --help' for more information"
1307 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1308 # Reject names that are not valid shell variable names.
1309 case $ac_envvar in #(
1310 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1311 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1313 eval $ac_envvar=\
$ac_optarg
1314 export $ac_envvar ;;
1317 # FIXME: should be removed in autoconf 3.0.
1318 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1320 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1327 if test -n "$ac_prev"; then
1328 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1329 as_fn_error $?
"missing argument to $ac_option"
1332 if test -n "$ac_unrecognized_opts"; then
1333 case $enable_option_checking in
1335 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1336 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1340 # Check all directory arguments for consistency.
1341 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342 datadir sysconfdir sharedstatedir localstatedir includedir \
1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344 libdir localedir mandir
1346 eval ac_val
=\$
$ac_var
1347 # Remove trailing slashes.
1350 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351 eval $ac_var=\
$ac_val;;
1353 # Be sure to have absolute directory names.
1355 [\\/$
]* | ?
:[\\/]* ) continue;;
1356 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1358 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1366 target
=$target_alias
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x
; then
1370 if test "x$build_alias" = x
; then
1371 cross_compiling
=maybe
1372 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used" >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1380 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1382 test "$silent" = yes && exec 6>/dev
/null
1385 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di
=`ls -di .` &&
1387 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1388 as_fn_error $?
"working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 as_fn_error $?
"pwd does not report name of working directory"
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted
=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir
=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted
=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1429 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1431 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1443 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 for ac_var
in $ac_precious_vars; do
1446 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1448 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1459 \`configure' configures CUPS 2.3b6 to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1517 --build=BUILD configure
for building on BUILD
[guessed
]
1518 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1522 if test -n "$ac_init_help"; then
1523 case $ac_init_help in
1524 short | recursive
) echo "Configuration of CUPS 2.3b6:";;
1529 --disable-option-checking ignore unrecognized
--enable/--with options
1530 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1531 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1532 --enable-static install static libraries
1533 --enable-mallinfo build with malloc debug logging
1534 --enable-libpaper build with libpaper support
1535 --enable-libusb use libusb
for USB printing
1536 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1537 --enable-acl build with POSIX ACL support
1538 --disable-dbus build without DBUS support
1539 --disable-shared do not create shared libraries
1540 --enable-libtool-unsupported=/path
/to
/libtool
1541 build with libtool
(UNSUPPORTED
!)
1542 --enable-debug build with debugging symbols
1543 --enable-debug-guards build with memory allocation guards
1544 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1545 --enable-unit-tests build and run unit tests
1546 --enable-relro build with the GCC relro option
1547 --disable-gssapi disable GSSAPI support
1548 --disable-threads disable multi-threading support
1549 --disable-ssl disable SSL
/TLS support
1550 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1551 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1552 --disable-pam disable PAM support
1553 --disable-largefile omit support
for large files
1554 --disable-avahi disable DNS Service Discovery support using Avahi
1555 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1556 --disable-launchd disable launchd support
1557 --disable-systemd disable systemd support
1558 --enable-upstart enable upstart support
1559 --enable-page-logging enable page_log by default
1560 --disable-browsing disable Browsing by default
1561 --disable-default-shared
1562 disable DefaultShared by default
1563 --disable-raw-printing do not allow raw printing by default
1564 --enable-webif enable the web interface by default
, default
=no
for macOS
1567 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1568 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1569 --with-cups-build set "cups-config --build" string
1570 --with-dbusdir set DBUS configuration directory
1571 --with-adminkey set the default SystemAuthKey value
1572 --with-operkey set the default operator @AUTHKEY value
1573 --with-components set components to build
:
1574 - "all" (default
) builds everything
1575 - "core" builds libcups and ipptool
1576 --with-privateinclude set path
for private include files
, default
=none
1577 --with-lpdconfig set URI
for LPD config
file
1578 --with-smbconfig set URI
for Samba config
file
1579 --with-cachedir set path
for cache files
1580 --with-icondir set path
for application icons
1581 --with-menudir set path
for application menus
1582 --with-docdir set path
for documentation
1583 --with-fontpath set font path
for pstoraster
1584 --with-logdir set path
for log files
1585 --with-rundir set transient run-time state directory
1586 --with-optim set optimization flags
1587 --with-archflags set default architecture flags
1588 --with-ldarchflags set program architecture flags
1589 --with-domainsocket set unix domain socket name
1590 --with-gssservicename set default gss service name
1591 --with-pam-module set the PAM module to use
1592 --with-dnssd-libs set directory
for DNS Service Discovery library
1593 --with-dnssd-includes set directory
for DNS Service Discovery includes
1594 --with-systemd set directory
for systemd service files
1595 --with-smfmanifestdir set path
for Solaris SMF manifest
1596 --with-rcdir set path
for rc scripts
1597 --with-rclevels set run levels
for rc scripts
1598 --with-rcstart set start number
for rc scripts
1599 --with-rcstop set stop number
for rc scripts
1600 --with-xinetd set path
for xinetd config files
1601 --with-languages set installed languages
, default
=all
1602 --with-bundledir set macOS localization bundle directory
1603 --with-exe-file-perm set default executable permissions value
, default
=0555
1604 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1605 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1606 --with-log-file-perm set default LogFilePerm value
, default
=0644
1607 --with-fatal-errors set default FatalErrors value
, default
=config
1608 --with-log-level set default LogLevel value
, default
=warn
1609 --with-access-log-level set default AccessLogLevel value
, default
=none
1610 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1611 --with-cups-user set default user
for CUPS
1612 --with-cups-group set default group
for CUPS
1613 --with-system-groups set default system groups
for CUPS
1614 --with-printcap set default printcap
file
1615 --with-lpdconfigfile set default LPDConfigFile URI
1616 --with-smbconfigfile set default SMBConfigFile URI
1617 --with-max-copies set default max copies value
, default
=9999
1618 --with-snmp-address set SNMP query address
, default
=auto
1619 --with-snmp-community set SNMP community
, default
=public
1620 --with-ipp-port set port number
for IPP
, default
=631
1622 Some influential environment variables
:
1623 CC C compiler
command
1624 CFLAGS C compiler flags
1625 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1626 nonstandard directory
<lib dir
>
1627 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1628 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1629 you have headers
in a nonstandard directory
<include dir
>
1631 CXX C
++ compiler
command
1632 CXXFLAGS C
++ compiler flags
1634 Use these variables to override the choices made by
`configure' or to help
1635 it to find libraries and programs with nonstandard names/locations.
1637 Report bugs to <https://github.com/apple/cups/issues>.
1638 CUPS home page: <https://www.cups.org/>.
1643 if test "$ac_init_help" = "recursive"; then
1644 # If there are subdirs, report their specific --help.
1645 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1646 test -d "$ac_dir" ||
1647 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1655 # A ".." for each directory in $ac_dir_suffix.
1656 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1657 case $ac_top_builddir_sub in
1658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662 ac_abs_top_builddir=$ac_pwd
1663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1664 # for backward compatibility:
1665 ac_top_builddir=$ac_top_build_prefix
1668 .) # We are building in place.
1670 ac_top_srcdir=$ac_top_builddir_sub
1671 ac_abs_top_srcdir=$ac_pwd ;;
1672 [\\/]* | ?:[\\/]* ) # Absolute name.
1673 ac_srcdir=$srcdir$ac_dir_suffix;
1674 ac_top_srcdir=$srcdir
1675 ac_abs_top_srcdir=$srcdir ;;
1677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1678 ac_top_srcdir=$ac_top_build_prefix$srcdir
1679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683 cd "$ac_dir" || { ac_status=$?; continue; }
1684 # Check for guested configure.
1685 if test -f "$ac_srcdir/configure.gnu"; then
1687 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1688 elif test -f "$ac_srcdir/configure"; then
1690 $SHELL "$ac_srcdir/configure" --help=recursive
1692 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 cd "$ac_pwd" || { ac_status=$?; break; }
1698 test -n "$ac_init_help" && exit $ac_status
1699 if $ac_init_version; then
1701 CUPS configure 2.3b6
1702 generated by GNU Autoconf 2.68
1704 Copyright (C) 2010 Free Software Foundation, Inc.
1705 This configure script is free software; the Free Software Foundation
1706 gives unlimited permission to copy, distribute and modify it.
1711 ## ------------------------ ##
1712 ## Autoconf initialization. ##
1713 ## ------------------------ ##
1715 # ac_fn_c_try_compile LINENO
1716 # --------------------------
1717 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_compile ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext
1722 if { { ac_try="$ac_compile"
1724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1725 *) ac_try_echo
=$ac_try;;
1727 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_compile") 2>conftest.err
1731 if test -s conftest.err
; then
1732 grep -v '^ *+' conftest.err
>conftest.er1
1733 cat conftest.er1
>&5
1734 mv -f conftest.er1 conftest.err
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest.
$ac_objext; then :
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.
$ac_ext >&5
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status
$ac_retval
1751 } # ac_fn_c_try_compile
1753 # ac_fn_c_try_cpp LINENO
1754 # ----------------------
1755 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1759 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } > conftest.i && {
1775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1776 test ! -s conftest.err
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1790 # ac_fn_cxx_try_compile LINENO
1791 # ----------------------------
1792 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_cxx_try_compile ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext
1797 if { { ac_try="$ac_compile"
1799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1800 *) ac_try_echo
=$ac_try;;
1802 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_compile") 2>conftest.err
1806 if test -s conftest.err
; then
1807 grep -v '^ *+' conftest.err
>conftest.er1
1808 cat conftest.er1
>&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_cxx_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest.
$ac_objext; then :
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.
$ac_ext >&5
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status
$ac_retval
1826 } # ac_fn_cxx_try_compile
1828 # ac_fn_c_try_link LINENO
1829 # -----------------------
1830 # Try to link conftest.$ac_ext, and return whether this succeeded.
1833 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1834 rm -f conftest.
$ac_objext conftest
$ac_exeext
1835 if { { ac_try
="$ac_link"
1837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>conftest.err
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest$ac_exeext && {
1854 test "$cross_compiling" = yes ||
1855 $as_test_x conftest$ac_exeext
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1864 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1865 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1866 # interfere with the next link command; also delete a directory that is
1867 # left behind by Apple's compiler. We do this before executing the actions.
1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
1872 } # ac_fn_c_try_link
1874 # ac_fn_c_try_run LINENO
1875 # ----------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1877 # that executables *can* be run.
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { { ac_try="$ac_link"
1883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1884 *) ac_try_echo
=$ac_try;;
1886 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>&5
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1892 { { case "(($ac_try" in
1893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_try") 2>&5
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; }; }; then :
1904 $as_echo "$as_me: program exited with status $ac_status" >&5
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1908 ac_retval=$ac_status
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1916 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1919 # the include files in INCLUDES and setting the cache variable VAR
1921 ac_fn_c_check_header_mongrel ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if eval \${$3+:} false; then :
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1934 # Is the header compilable?
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1936 $as_echo_n "checking $2 usability... " >&6; }
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 ac_header_compiler=yes
1945 ac_header_compiler=no
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1949 $as_echo "$ac_header_compiler" >&6; }
1951 # Is the header present?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1953 $as_echo_n "checking $2 presence... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1958 if ac_fn_c_try_cpp "$LINENO"; then :
1959 ac_header_preproc=yes
1961 ac_header_preproc=no
1963 rm -f conftest.err conftest.i conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1965 $as_echo "$ac_header_preproc" >&6; }
1967 # So? What about this header?
1968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1971 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1977 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1979 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1981 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1983 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986 ( $as_echo "## --------------------------------------------------- ##
1987 ## Report this to https://github.com/apple/cups/issues ##
1988 ## --------------------------------------------------- ##"
1989 ) | sed "s/^/$as_me: WARNING: /" >&2
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995 $as_echo_n "(cached) " >&6
1997 eval "$3=\$ac_header_compiler"
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 } # ac_fn_c_check_header_mongrel
2007 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2008 # -------------------------------------------------------
2009 # Tests whether HEADER exists and can be compiled using the include files in
2010 # INCLUDES, setting the cache variable VAR accordingly.
2011 ac_fn_c_check_header_compile ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2024 if ac_fn_c_try_compile "$LINENO"; then :
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036 } # ac_fn_c_check_header_compile
2038 # ac_fn_c_check_func LINENO FUNC VAR
2039 # ----------------------------------
2040 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2041 ac_fn_c_check_func ()
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if eval \${$3+:} false; then :
2047 $as_echo_n "(cached) " >&6
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2051 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2053 #define $2 innocuous_$2
2055 /* System header to define __stub macros and hopefully few prototypes,
2056 which can conflict with char $2 (); below.
2057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2058 <limits.h> exists even on freestanding compilers. */
2061 # include <limits.h>
2063 # include <assert.h>
2068 /* Override any GCC internal prototype to avoid an error.
2069 Use char because int might match the return type of a GCC
2070 builtin and then its argument prototype would still apply. */
2075 /* The GNU C library defines this for functions which it implements
2076 to always fail with ENOSYS. Some functions are actually named
2077 something starting with __ and the normal name is an alias. */
2078 #if defined __stub_$2 || defined __stub___$2
2090 if ac_fn_c_try_link "$LINENO"; then :
2095 rm -f core conftest.err conftest.$ac_objext \
2096 conftest$ac_exeext conftest.$ac_ext
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103 } # ac_fn_c_check_func
2105 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2106 # ----------------------------------------------------
2107 # Tries to find if the field MEMBER exists in type AGGR, after including
2108 # INCLUDES, setting cache variable VAR accordingly.
2109 ac_fn_c_check_member ()
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2113 $as_echo_n "checking for $2.$3... " >&6; }
2114 if eval \${$4+:} false; then :
2115 $as_echo_n "(cached) " >&6
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2130 if ac_fn_c_try_compile "$LINENO"; then :
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2140 if (sizeof ac_aggr.$3)
2146 if ac_fn_c_try_compile "$LINENO"; then :
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157 $as_echo "$ac_res" >&6; }
2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160 } # ac_fn_c_check_member
2161 cat >config.log <<_ACEOF
2162 This file contains any messages produced by compilers while
2163 running configure, to aid debugging if configure makes a mistake.
2165 It was created by CUPS $as_me 2.3b6, which was
2166 generated by GNU Autoconf 2.68. Invocation command line was
2178 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2179 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2180 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2181 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2182 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2184 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2185 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2187 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2188 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2189 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2190 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2191 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2192 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2193 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 test -z "$as_dir" && as_dir=.
2202 $as_echo "PATH: $as_dir"
2218 # Keep a trace of the command line.
2219 # Strip out --no-create and --no-recursion so they do not pile up.
2220 # Strip out --silent because we don't want to record it for future runs.
2221 # Also quote any args containing shell meta-characters.
2222 # Make two passes to allow for proper duplicate-argument suppression.
2226 ac_must_keep_next=false
2232 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2234 | -silent | --silent | --silen | --sile | --sil)
2237 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2240 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2242 as_fn_append ac_configure_args1 " '$ac_arg'"
2243 if test $ac_must_keep_next = true; then
2244 ac_must_keep_next=false # Got value, back to normal.
2247 *=* | --config-cache | -C | -disable-* | --disable-* \
2248 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2249 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2250 | -with-* | --with-* | -without-* | --without-* | --x)
2251 case "$ac_configure_args0 " in
2252 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2255 -* ) ac_must_keep_next=true ;;
2258 as_fn_append ac_configure_args " '$ac_arg'"
2263 { ac_configure_args0=; unset ac_configure_args0;}
2264 { ac_configure_args1=; unset ac_configure_args1;}
2266 # When interrupted or exit'd, cleanup temporary files, and complete
2267 # config.log. We remove comments because anyway the quotes in there
2268 # would cause problems or look ugly.
2269 # WARNING: Use '\'' to represent an apostrophe within the trap.
2270 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2271 trap 'exit_status=$?
2272 # Save into config.log some information that might help in debugging.
2276 $as_echo "## ---------------- ##
2277 ## Cache variables. ##
2278 ## ---------------- ##"
2280 # The following way of writing the cache mishandles newlines in values,
2282 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2283 eval ac_val=\$$ac_var
2287 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2288 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2291 _ | IFS | as_nl) ;; #(
2292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2293 *) { eval $ac_var=; unset $ac_var;} ;;
2298 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2299 *${as_nl}ac_space=\ *)
2301 "s/'\''/'\''\\\\'\'''\''/g;
2302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2312 $as_echo "## ----------------- ##
2313 ## Output variables. ##
2314 ## ----------------- ##"
2316 for ac_var in $ac_subst_vars
2318 eval ac_val=\$$ac_var
2320 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 $as_echo "$ac_var='\''$ac_val'\''"
2326 if test -n "$ac_subst_files"; then
2327 $as_echo "## ------------------- ##
2328 ## File substitutions. ##
2329 ## ------------------- ##"
2331 for ac_var in $ac_subst_files
2333 eval ac_val=\$$ac_var
2335 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 $as_echo "$ac_var='\''$ac_val'\''"
2342 if test -s confdefs.h; then
2343 $as_echo "## ----------- ##
2350 test "$ac_signal" != 0 &&
2351 $as_echo "$as_me: caught signal $ac_signal"
2352 $as_echo "$as_me: exit $exit_status"
2354 rm -f core *.core core.conftest.* &&
2355 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2358 for ac_signal in 1 2 13 15; do
2359 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2364 rm -f -r conftest* confdefs.h
2366 $as_echo "/* confdefs.h */" > confdefs.h
2368 # Predefined preprocessor variables.
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_NAME "$PACKAGE_NAME"
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_STRING "$PACKAGE_STRING"
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_URL "$PACKAGE_URL"
2395 # Let the site file select an alternate cache file if it wants to.
2396 # Prefer an explicitly selected file to automatically selected ones.
2399 if test -n "$CONFIG_SITE"; then
2400 # We do not want a PATH search for config.site.
2401 case $CONFIG_SITE in #((
2402 -*) ac_site_file1=./$CONFIG_SITE;;
2403 */*) ac_site_file1=$CONFIG_SITE;;
2404 *) ac_site_file1=./$CONFIG_SITE;;
2406 elif test "x$prefix" != xNONE; then
2407 ac_site_file1=$prefix/share/config.site
2408 ac_site_file2=$prefix/etc/config.site
2410 ac_site_file1=$ac_default_prefix/share/config.site
2411 ac_site_file2=$ac_default_prefix/etc/config.site
2413 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2415 test "x$ac_site_file" = xNONE && continue
2416 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2418 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2419 sed 's/^/| /' "$ac_site_file" >&5
2421 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2423 as_fn_error $? "failed to load site
script $ac_site_file
2424 See \
`config.log' for more details" "$LINENO" 5; }
2428 if test -r "$cache_file"; then
2429 # Some versions of bash will fail to source /dev/null (special files
2430 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2431 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2433 $as_echo "$as_me: loading cache $cache_file" >&6;}
2435 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2436 *) . "./$cache_file";;
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2441 $as_echo "$as_me: creating cache $cache_file" >&6;}
2445 # Check that the precious variables saved in the cache have kept the same
2447 ac_cache_corrupted=false
2448 for ac_var in $ac_precious_vars; do
2449 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2450 eval ac_new_set=\$ac_env_${ac_var}_set
2451 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2452 eval ac_new_val=\$ac_env_${ac_var}_value
2453 case $ac_old_set,$ac_new_set in
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2456 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2457 ac_cache_corrupted=: ;;
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2460 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2461 ac_cache_corrupted=: ;;
2464 if test "x$ac_old_val" != "x$ac_new_val"; then
2465 # differences in whitespace do not lead to failure.
2466 ac_old_val_w=`echo x
$ac_old_val`
2467 ac_new_val_w=`echo x
$ac_new_val`
2468 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2470 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2471 ac_cache_corrupted=:
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2474 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2475 eval $ac_var=\$ac_old_val
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2478 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2480 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2483 # Pass precious variables to config.status.
2484 if test "$ac_new_set" = set; then
2486 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2487 *) ac_arg=$ac_var=$ac_new_val ;;
2489 case " $ac_configure_args " in
2490 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2491 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2495 if $ac_cache_corrupted; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2499 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2500 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2502 ## -------------------- ##
2503 ## Main body of script. ##
2504 ## -------------------- ##
2507 ac_cpp='$CPP $CPPFLAGS'
2508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2516 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2517 if test -f "$ac_dir/install-sh"; then
2519 ac_install_sh="$ac_aux_dir/install-sh -c"
2521 elif test -f "$ac_dir/install.sh"; then
2523 ac_install_sh="$ac_aux_dir/install.sh -c"
2525 elif test -f "$ac_dir/shtool"; then
2527 ac_install_sh="$ac_aux_dir/shtool install -c"
2531 if test -z "$ac_aux_dir"; then
2532 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2535 # These three variables are undocumented and unsupported,
2536 # and are intended to be withdrawn in a future Autoconf release.
2537 # They can cause serious problems if a builder's source tree is in a directory
2538 # whose full name contains unusual characters.
2539 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2540 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2541 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2544 # Make sure we can run config.sub.
2545 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2546 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2549 $as_echo_n "checking build system type... " >&6; }
2550 if ${ac_cv_build+:} false; then :
2551 $as_echo_n "(cached) " >&6
2553 ac_build_alias=$build_alias
2554 test "x$ac_build_alias" = x &&
2555 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2556 test "x$ac_build_alias" = x &&
2557 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2558 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2559 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2563 $as_echo "$ac_cv_build" >&6; }
2564 case $ac_cv_build in
2566 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2569 ac_save_IFS=$IFS; IFS='-'
2575 # Remember, the first character of IFS is used to create $*,
2576 # except with old shells:
2579 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2583 $as_echo_n "checking host system type... " >&6; }
2584 if ${ac_cv_host+:} false; then :
2585 $as_echo_n "(cached) " >&6
2587 if test "x$host_alias" = x; then
2588 ac_cv_host=$ac_cv_build
2590 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2591 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2596 $as_echo "$ac_cv_host" >&6; }
2599 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2602 ac_save_IFS=$IFS; IFS='-'
2608 # Remember, the first character of IFS is used to create $*,
2609 # except with old shells:
2612 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2616 host_os_name=`echo $host_os |
sed -e '1,$s/[0-9.]*$//g'`
2617 host_os_version=`echo $host_os |
sed -e '1,$s/^[^0-9.]*//g' |
awk -F.
'{print $1 $2}'`
2618 # Linux often does not yield an OS version we can use...
2619 if test "x$host_os_version" = x; then
2623 if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
2624 as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
2627 if test "$build" = "$host"; then
2628 # No, build local targets
2631 # Yes, don't build local targets
2637 ac_config_headers="$ac_config_headers config.h"
2640 CUPS_VERSION="2.3b6"
2642 CUPS_BUILD="cups-$CUPS_VERSION"
2645 # Check whether --with-cups_build was given.
2646 if test "${with_cups_build+set}" = set; then :
2647 withval=$with_cups_build; CUPS_BUILD="$withval"
2654 cat >>confdefs.h <<_ACEOF
2655 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2658 cat >>confdefs.h <<_ACEOF
2659 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2663 CFLAGS="${CFLAGS:=}"
2664 CPPFLAGS="${CPPFLAGS:=}"
2665 CXXFLAGS="${CXXFLAGS:=}"
2666 LDFLAGS="${LDFLAGS:=}"
2668 for ac_prog in gawk mawk nawk awk
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671 set dummy $ac_prog; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if ${ac_cv_prog_AWK+:} false; then :
2675 $as_echo_n "(cached) " >&6
2677 if test -n "$AWK"; then
2678 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_AWK="$ac_prog"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 if test -n "$AWK"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2700 $as_echo "$AWK" >&6; }
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2707 test -n "$AWK" && break
2711 ac_cpp='$CPP $CPPFLAGS'
2712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715 if test -n "$ac_tool_prefix"; then
2716 for ac_prog in clang cc gcc
2718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if ${ac_cv_prog_CC+:} false; then :
2723 $as_echo_n "(cached) " >&6
2725 if test -n "$CC"; then
2726 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 if test -n "$CC"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2748 $as_echo "$CC" >&6; }
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2755 test -n "$CC" && break
2758 if test -z "$CC"; then
2760 for ac_prog in clang cc gcc
2762 # Extract the first word of "$ac_prog", so it can be a program name with args.
2763 set dummy $ac_prog; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2767 $as_echo_n "(cached) " >&6
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_ac_ct_CC="$ac_prog"
2780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2790 if test -n "$ac_ct_CC"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2792 $as_echo "$ac_ct_CC" >&6; }
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2799 test -n "$ac_ct_CC" && break
2802 if test "x$ac_ct_CC" = x; then
2805 case $cross_compiling:$ac_tool_warned in
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2809 ac_tool_warned=yes ;;
2816 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2818 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2819 See \
`config.log' for more details" "$LINENO" 5; }
2821 # Provide some information about the compiler.
2822 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2825 for ac_option in --version -v -V -qversion; do
2826 { { ac_try="$ac_compiler $ac_option >&5"
2828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2829 *) ac_try_echo
=$ac_try;;
2831 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2832 $as_echo "$ac_try_echo"; } >&5
2833 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2835 if test -s conftest.err
; then
2837 ... rest of stderr output deleted ...
2838 10q' conftest.err
>conftest.er1
2839 cat conftest.er1
>&5
2841 rm -f conftest.er1 conftest.err
2842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2843 test $ac_status = 0; }
2846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2847 /* end confdefs.h. */
2857 ac_clean_files_save
=$ac_clean_files
2858 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2859 # Try to create an executable without -o first, disregard a.out.
2860 # It will help us diagnose broken compilers, and finding out an intuition
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2863 $as_echo_n "checking whether the C compiler works... " >&6; }
2864 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2866 # The possible output files:
2867 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2870 for ac_file
in $ac_files
2873 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2874 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2879 if { { ac_try
="$ac_link_default"
2881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2885 $as_echo "$ac_try_echo"; } >&5
2886 (eval "$ac_link_default") 2>&5
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }; then :
2890 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2891 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2892 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2893 # so that the user can short-circuit this test for compilers unknown to
2895 for ac_file in $ac_files ''
2897 test -f "$ac_file" || continue
2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2902 # We found the default executable, but exeext='' is most
2906 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2910 # We set ac_cv_exeext here because the later test for it is not
2911 # safe: cross compilers may not add the suffix if given an `-o'
2912 # argument, so we may need to know it at that point already.
2913 # Even if this section looks crufty: it has the advantage of
2920 test "$ac_cv_exeext" = no && ac_cv_exeext=
2925 if test -z "$ac_file"; then :
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 $as_echo "$as_me: failed program was:" >&5
2929 sed 's
/^
/|
/' conftest.$ac_ext >&5
2931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2933 as_fn_error 77 "C compiler cannot create executables
2934 See \`config.log
' for more details" "$LINENO" 5; }
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2937 $as_echo "yes" >&6; }
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2940 $as_echo_n "checking for C compiler default output file name... " >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2942 $as_echo "$ac_file" >&6; }
2943 ac_exeext=$ac_cv_exeext
2945 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2946 ac_clean_files=$ac_clean_files_save
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2948 $as_echo_n "checking for suffix of executables... " >&6; }
2949 if { { ac_try="$ac_link"
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2955 $as_echo "$ac_try_echo"; } >&5
2956 (eval "$ac_link") 2>&5
2958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2959 test $ac_status = 0; }; then :
2960 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2961 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2962 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2964 for ac_file
in conftest.exe conftest conftest.
*; do
2965 test -f "$ac_file" ||
continue
2967 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2968 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2977 See \`config.log' for more details" "$LINENO" 5; }
2979 rm -f conftest conftest
$ac_cv_exeext
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2981 $as_echo "$ac_cv_exeext" >&6; }
2983 rm -f conftest.
$ac_ext
2984 EXEEXT
=$ac_cv_exeext
2986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2987 /* end confdefs.h. */
2992 FILE *f = fopen ("conftest.out", "w");
2993 return ferror (f) || fclose (f) != 0;
2999 ac_clean_files
="$ac_clean_files conftest.out"
3000 # Check that the compiler produces executables we can run. If not, either
3001 # the compiler is broken, or we cross compile.
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3003 $as_echo_n "checking whether we are cross compiling... " >&6; }
3004 if test "$cross_compiling" != yes; then
3005 { { ac_try
="$ac_link"
3007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3011 $as_echo "$ac_try_echo"; } >&5
3012 (eval "$ac_link") 2>&5
3014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3015 test $ac_status = 0; }
3016 if { ac_try='./conftest$ac_cv_exeext'
3017 { { case "(($ac_try" in
3018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3019 *) ac_try_echo
=$ac_try;;
3021 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3022 $as_echo "$ac_try_echo"; } >&5
3023 (eval "$ac_try") 2>&5
3025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3026 test $ac_status = 0; }; }; then
3029 if test "$cross_compiling" = maybe
; then
3032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034 as_fn_error $?
"cannot run C compiled programs.
3035 If you meant to cross compile, use \`--host'.
3036 See \`config.log' for more details" "$LINENO" 5; }
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3041 $as_echo "$cross_compiling" >&6; }
3043 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3044 ac_clean_files
=$ac_clean_files_save
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3046 $as_echo_n "checking for suffix of object files... " >&6; }
3047 if ${ac_cv_objext+:} false
; then :
3048 $as_echo_n "(cached) " >&6
3050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3051 /* end confdefs.h. */
3061 rm -f conftest.o conftest.obj
3062 if { { ac_try
="$ac_compile"
3064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3068 $as_echo "$ac_try_echo"; } >&5
3069 (eval "$ac_compile") 2>&5
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }; then :
3073 for ac_file in conftest.o conftest.obj conftest.*; do
3074 test -f "$ac_file" || continue;
3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3077 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3082 $as_echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3088 See \
`config.log' for more details" "$LINENO" 5; }
3090 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3093 $as_echo "$ac_cv_objext" >&6; }
3094 OBJEXT=$ac_cv_objext
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3097 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3098 if ${ac_cv_c_compiler_gnu+:} false; then :
3099 $as_echo_n "(cached) " >&6
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3115 if ac_fn_c_try_compile "$LINENO"; then :
3120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3125 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3126 if test $ac_compiler_gnu = yes; then
3131 ac_test_CFLAGS=${CFLAGS+set}
3132 ac_save_CFLAGS=$CFLAGS
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3134 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3135 if ${ac_cv_prog_cc_g+:} false; then :
3136 $as_echo_n "(cached) " >&6
3138 ac_save_c_werror_flag=$ac_c_werror_flag
3139 ac_c_werror_flag=yes
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3153 if ac_fn_c_try_compile "$LINENO"; then :
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3168 if ac_fn_c_try_compile "$LINENO"; then :
3171 ac_c_werror_flag=$ac_save_c_werror_flag
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3184 if ac_fn_c_try_compile "$LINENO"; then :
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 ac_c_werror_flag=$ac_save_c_werror_flag
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3195 $as_echo "$ac_cv_prog_cc_g" >&6; }
3196 if test "$ac_test_CFLAGS" = set; then
3197 CFLAGS=$ac_save_CFLAGS
3198 elif test $ac_cv_prog_cc_g = yes; then
3199 if test "$GCC" = yes; then
3205 if test "$GCC" = yes; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3212 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3213 if ${ac_cv_prog_cc_c89+:} false; then :
3214 $as_echo_n "(cached) " >&6
3216 ac_cv_prog_cc_c89=no
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3222 #include <sys/types.h>
3223 #include <sys/stat.h>
3224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3225 struct buf { int x; };
3226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3227 static char *e (p, i)
3233 static char *f (char * (*g) (char **, int), char **p, ...)
3238 s = g (p, va_arg (v,int));
3243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3244 function prototypes and stuff, but not '\xHH' hex character constants.
3245 These don't provoke an error unfortunately, instead are silently treated
3246 as 'x'. The following induces an error, until -std is added to get
3247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3248 array size at least. It's necessary to write '\x00'==0 to get something
3249 that's true only with -std. */
3250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3252 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3253 inside strings and character constants. */
3255 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3257 int test (int i, double x);
3258 struct s1 {int (*f) (int a);};
3259 struct s2 {int (*f) (double a);};
3260 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3266 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3271 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3272 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3274 CC="$ac_save_CC $ac_arg"
3275 if ac_fn_c_try_compile "$LINENO"; then :
3276 ac_cv_prog_cc_c89=$ac_arg
3278 rm -f core conftest.err conftest.$ac_objext
3279 test "x$ac_cv_prog_cc_c89" != "xno" && break
3281 rm -f conftest.$ac_ext
3286 case "x$ac_cv_prog_cc_c89" in
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3289 $as_echo "none needed" >&6; } ;;
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3292 $as_echo "unsupported" >&6; } ;;
3294 CC="$CC $ac_cv_prog_cc_c89"
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3296 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3298 if test "x$ac_cv_prog_cc_c89" != xno; then :
3303 ac_cpp='$CPP $CPPFLAGS'
3304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3309 ac_cpp='$CPP $CPPFLAGS'
3310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3314 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3315 # On Suns, sometimes $CPP names a directory.
3316 if test -n "$CPP" && test -d "$CPP"; then
3319 if test -z "$CPP"; then
3320 if ${ac_cv_prog_CPP+:} false; then :
3321 $as_echo_n "(cached) " >&6
3323 # Double quotes because CPP needs to be expanded
3324 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3327 for ac_c_preproc_warn_flag in '' yes
3329 # Use a header file that comes with gcc, so configuring glibc
3330 # with a fresh cross-compiler works.
3331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3332 # <limits.h> exists even on freestanding compilers.
3333 # On the NeXT, cc -E runs the code through the compiler's parser,
3334 # not just through cpp. "Syntax error" is here to catch this case.
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3338 # include <limits.h>
3340 # include <assert.h>
3344 if ac_fn_c_try_cpp "$LINENO"; then :
3347 # Broken: fails on valid input.
3350 rm -f conftest.err conftest.i conftest.$ac_ext
3352 # OK, works on sane cases. Now check whether nonexistent headers
3353 # can be detected and how.
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3356 #include <ac_nonexistent.h>
3358 if ac_fn_c_try_cpp "$LINENO"; then :
3359 # Broken: success on invalid input.
3362 # Passes both tests.
3366 rm -f conftest.err conftest.i conftest.$ac_ext
3369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3370 rm -f conftest.i conftest.err conftest.
$ac_ext
3371 if $ac_preproc_ok; then :
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3384 $as_echo "$CPP" >&6; }
3386 for ac_c_preproc_warn_flag
in '' yes
3388 # Use a header file that comes with gcc, so configuring glibc
3389 # with a fresh cross-compiler works.
3390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3391 # <limits.h> exists even on freestanding compilers.
3392 # On the NeXT, cc -E runs the code through the compiler's parser,
3393 # not just through cpp. "Syntax error" is here to catch this case.
3394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3397 # include <limits.h>
3399 # include <assert.h>
3403 if ac_fn_c_try_cpp
"$LINENO"; then :
3406 # Broken: fails on valid input.
3409 rm -f conftest.err conftest.i conftest.
$ac_ext
3411 # OK, works on sane cases. Now check whether nonexistent headers
3412 # can be detected and how.
3413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3415 #include <ac_nonexistent.h>
3417 if ac_fn_c_try_cpp
"$LINENO"; then :
3418 # Broken: success on invalid input.
3421 # Passes both tests.
3425 rm -f conftest.err conftest.i conftest.
$ac_ext
3428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3429 rm -f conftest.i conftest.err conftest.
$ac_ext
3430 if $ac_preproc_ok; then :
3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details" "$LINENO" 5; }
3440 ac_cpp
='$CPP $CPPFLAGS'
3441 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3446 ac_cpp
='$CXXCPP $CPPFLAGS'
3447 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3450 if test -z "$CXX"; then
3451 if test -n "$CCC"; then
3454 if test -n "$ac_tool_prefix"; then
3455 for ac_prog
in clang
++ c
++ g
++
3457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3458 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460 $as_echo_n "checking for $ac_word... " >&6; }
3461 if ${ac_cv_prog_CXX+:} false
; then :
3462 $as_echo_n "(cached) " >&6
3464 if test -n "$CXX"; then
3465 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3471 test -z "$as_dir" && as_dir
=.
3472 for ac_exec_ext
in '' $ac_executable_extensions; do
3473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3474 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 if test -n "$CXX"; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3487 $as_echo "$CXX" >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 $as_echo "no" >&6; }
3494 test -n "$CXX" && break
3497 if test -z "$CXX"; then
3499 for ac_prog
in clang
++ c
++ g
++
3501 # Extract the first word of "$ac_prog", so it can be a program name with args.
3502 set dummy
$ac_prog; ac_word
=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3506 $as_echo_n "(cached) " >&6
3508 if test -n "$ac_ct_CXX"; then
3509 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir
=.
3516 for ac_exec_ext
in '' $ac_executable_extensions; do
3517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3529 if test -n "$ac_ct_CXX"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3531 $as_echo "$ac_ct_CXX" >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3538 test -n "$ac_ct_CXX" && break
3541 if test "x$ac_ct_CXX" = x
; then
3544 case $cross_compiling:$ac_tool_warned in
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3548 ac_tool_warned
=yes ;;
3556 # Provide some information about the compiler.
3557 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3560 for ac_option
in --version -v -V -qversion; do
3561 { { ac_try
="$ac_compiler $ac_option >&5"
3563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567 $as_echo "$ac_try_echo"; } >&5
3568 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3570 if test -s conftest.err; then
3572 ... rest of stderr output deleted ...
3573 10q' conftest.err >conftest.er1
3574 cat conftest.er1 >&5
3576 rm -f conftest.er1 conftest.err
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3582 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3583 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3584 $as_echo_n "(cached) " >&6
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3600 if ac_fn_cxx_try_compile "$LINENO"; then :
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3610 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3611 if test $ac_compiler_gnu = yes; then
3616 ac_test_CXXFLAGS=${CXXFLAGS+set}
3617 ac_save_CXXFLAGS=$CXXFLAGS
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3619 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3620 if ${ac_cv_prog_cxx_g+:} false; then :
3621 $as_echo_n "(cached) " >&6
3623 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3624 ac_cxx_werror_flag=yes
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3638 if ac_fn_cxx_try_compile "$LINENO"; then :
3639 ac_cv_prog_cxx_g=yes
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3653 if ac_fn_cxx_try_compile "$LINENO"; then :
3656 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3669 if ac_fn_cxx_try_compile "$LINENO"; then :
3670 ac_cv_prog_cxx_g=yes
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3680 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3681 if test "$ac_test_CXXFLAGS" = set; then
3682 CXXFLAGS=$ac_save_CXXFLAGS
3683 elif test $ac_cv_prog_cxx_g = yes; then
3684 if test "$GXX" = yes; then
3690 if test "$GXX" = yes; then
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702 if test -n "$ac_tool_prefix"; then
3703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3704 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if ${ac_cv_prog_RANLIB+:} false; then :
3708 $as_echo_n "(cached) " >&6
3710 if test -n "$RANLIB"; then
3711 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 RANLIB=$ac_cv_prog_RANLIB
3731 if test -n "$RANLIB"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3733 $as_echo "$RANLIB" >&6; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3741 if test -z "$ac_cv_prog_RANLIB"; then
3742 ac_ct_RANLIB=$RANLIB
3743 # Extract the first word of "ranlib", so it can be a program name with args.
3744 set dummy ranlib; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3748 $as_echo_n "(cached) " >&6
3750 if test -n "$ac_ct_RANLIB"; then
3751 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_ac_ct_RANLIB="ranlib"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3771 if test -n "$ac_ct_RANLIB"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3773 $as_echo "$ac_ct_RANLIB" >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3779 if test "x$ac_ct_RANLIB" = x; then
3782 case $cross_compiling:$ac_tool_warned in
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned=yes ;;
3788 RANLIB=$ac_ct_RANLIB
3791 RANLIB="$ac_cv_prog_RANLIB"
3794 # Extract the first word of "ar", so it can be a program name with args.
3795 set dummy ar; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_path_AR+:} false; then :
3799 $as_echo_n "(cached) " >&6
3803 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3813 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 if test -n "$AR"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3827 $as_echo "$AR" >&6; }
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3834 # Extract the first word of "chmod", so it can be a program name with args.
3835 set dummy chmod; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if ${ac_cv_path_CHMOD+:} false; then :
3839 $as_echo_n "(cached) " >&6
3843 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 CHMOD=$ac_cv_path_CHMOD
3865 if test -n "$CHMOD"; then
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3867 $as_echo "$CHMOD" >&6; }
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 $as_echo "no" >&6; }
3874 # Extract the first word of "gzip", so it can be a program name with args.
3875 set dummy gzip; ac_word=$2
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 $as_echo_n "checking for $ac_word... " >&6; }
3878 if ${ac_cv_path_GZIP+:} false; then :
3879 $as_echo_n "(cached) " >&6
3883 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 GZIP=$ac_cv_path_GZIP
3905 if test -n "$GZIP"; then
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3907 $as_echo "$GZIP" >&6; }
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910 $as_echo "no" >&6; }
3914 # Extract the first word of "ld", so it can be a program name with args.
3915 set dummy ld; ac_word=$2
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 $as_echo_n "checking for $ac_word... " >&6; }
3918 if ${ac_cv_path_LD+:} false; then :
3919 $as_echo_n "(cached) " >&6
3923 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3933 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 if test -n "$LD"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3947 $as_echo "$LD" >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3954 # Extract the first word of "ln", so it can be a program name with args.
3955 set dummy ln; ac_word=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if ${ac_cv_path_LN+:} false; then :
3959 $as_echo_n "(cached) " >&6
3963 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3973 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 if test -n "$LN"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
3987 $as_echo "$LN" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3994 # Extract the first word of "mkdir", so it can be a program name with args.
3995 set dummy mkdir; ac_word=$2
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997 $as_echo_n "checking for $ac_word... " >&6; }
3998 if ${ac_cv_path_MKDIR+:} false; then :
3999 $as_echo_n "(cached) " >&6
4003 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4013 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 MKDIR=$ac_cv_path_MKDIR
4025 if test -n "$MKDIR"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4027 $as_echo "$MKDIR" >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4034 # Extract the first word of "mv", so it can be a program name with args.
4035 set dummy mv; ac_word=$2
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037 $as_echo_n "checking for $ac_word... " >&6; }
4038 if ${ac_cv_path_MV+:} false; then :
4039 $as_echo_n "(cached) " >&6
4043 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 if test -n "$MV"; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4067 $as_echo "$MV" >&6; }
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 $as_echo "no" >&6; }
4074 # Extract the first word of "rm", so it can be a program name with args.
4075 set dummy rm; ac_word=$2
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077 $as_echo_n "checking for $ac_word... " >&6; }
4078 if ${ac_cv_path_RM+:} false; then :
4079 $as_echo_n "(cached) " >&6
4083 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105 if test -n "$RM"; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4107 $as_echo "$RM" >&6; }
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 $as_echo "no" >&6; }
4114 # Extract the first word of "rmdir", so it can be a program name with args.
4115 set dummy rmdir; ac_word=$2
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if ${ac_cv_path_RMDIR+:} false; then :
4119 $as_echo_n "(cached) " >&6
4123 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 RMDIR=$ac_cv_path_RMDIR
4145 if test -n "$RMDIR"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4147 $as_echo "$RMDIR" >&6; }
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4154 # Extract the first word of "sed", so it can be a program name with args.
4155 set dummy sed; ac_word=$2
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4157 $as_echo_n "checking for $ac_word... " >&6; }
4158 if ${ac_cv_path_SED+:} false; then :
4159 $as_echo_n "(cached) " >&6
4163 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 if test -n "$SED"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4187 $as_echo "$SED" >&6; }
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4194 # Extract the first word of "xdg-open", so it can be a program name with args.
4195 set dummy xdg-open; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_path_XDGOPEN+:} false; then :
4199 $as_echo_n "(cached) " >&6
4203 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 XDGOPEN=$ac_cv_path_XDGOPEN
4225 if test -n "$XDGOPEN"; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4227 $as_echo "$XDGOPEN" >&6; }
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4234 if test "x$XDGOPEN" = x; then
4235 CUPS_HTMLVIEW="htmlview"
4237 CUPS_HTMLVIEW="$XDGOPEN"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4242 $as_echo_n "checking for install-sh script... " >&6; }
4243 INSTALL="`pwd`/install-sh"
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4246 $as_echo "using $INSTALL" >&6; }
4248 if test "x$AR" = x; then
4249 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4251 if test "x$CC" = x; then
4252 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for codesign utility" >&5
4256 $as_echo_n "checking for codesign utility... " >&6; }
4257 CODE_SIGN="/usr/bin/true"
4259 if test $uname = Darwin; then
4260 CODE_SIGN="/usr/bin/codesign"
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $CODE_SIGN" >&5
4263 $as_echo "using $CODE_SIGN" >&6; }
4266 # Check whether --enable-static was given.
4267 if test "${enable_static+set}" = set; then :
4268 enableval=$enable_static;
4272 if test x$enable_static = xyes; then
4273 echo Installing static libraries...
4274 INSTALLSTATIC="installstatic"
4279 if test -n "$ac_tool_prefix"; then
4280 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4281 set dummy ${ac_tool_prefix}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_PKGCONFIG+:} false; then :
4285 $as_echo_n "(cached) " >&6
4289 ac_cv_path_PKGCONFIG="$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_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 PKGCONFIG=$ac_cv_path_PKGCONFIG
4311 if test -n "$PKGCONFIG"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4313 $as_echo "$PKGCONFIG" >&6; }
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4321 if test -z "$ac_cv_path_PKGCONFIG"; then
4322 ac_pt_PKGCONFIG=$PKGCONFIG
4323 # Extract the first word of "pkg-config", so it can be a program name with args.
4324 set dummy pkg-config; ac_word=$2
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326 $as_echo_n "checking for $ac_word... " >&6; }
4327 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4328 $as_echo_n "(cached) " >&6
4330 case $ac_pt_PKGCONFIG in
4332 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4354 if test -n "$ac_pt_PKGCONFIG"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4356 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4362 if test "x$ac_pt_PKGCONFIG" = x; then
4365 case $cross_compiling:$ac_tool_warned in
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4369 ac_tool_warned=yes ;;
4371 PKGCONFIG=$ac_pt_PKGCONFIG
4374 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4380 $as_echo_n "checking for library containing abs... " >&6; }
4381 if ${ac_cv_search_abs+:} false; then :
4382 $as_echo_n "(cached) " >&6
4384 ac_func_search_save_LIBS=$LIBS
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4388 /* Override any GCC internal prototype to avoid an error.
4389 Use char because int might match the return type of a GCC
4390 builtin and then its argument prototype would still apply. */
4403 for ac_lib in '' m; do
4404 if test -z "$ac_lib"; then
4405 ac_res="none required"
4408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4410 if ac_fn_c_try_link "$LINENO"; then :
4411 ac_cv_search_abs=$ac_res
4413 rm -f core conftest.err conftest.$ac_objext \
4415 if ${ac_cv_search_abs+:} false; then :
4419 if ${ac_cv_search_abs+:} false; then :
4425 LIBS=$ac_func_search_save_LIBS
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4428 $as_echo "$ac_cv_search_abs" >&6; }
4429 ac_res=$ac_cv_search_abs
4430 if test "$ac_res" != no; then :
4431 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4432 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4437 $as_echo_n "checking for library containing crypt... " >&6; }
4438 if ${ac_cv_search_crypt+:} false; then :
4439 $as_echo_n "(cached) " >&6
4441 ac_func_search_save_LIBS=$LIBS
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4445 /* Override any GCC internal prototype to avoid an error.
4446 Use char because int might match the return type of a GCC
4447 builtin and then its argument prototype would still apply. */
4460 for ac_lib in '' crypt; do
4461 if test -z "$ac_lib"; then
4462 ac_res="none required"
4465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4467 if ac_fn_c_try_link "$LINENO"; then :
4468 ac_cv_search_crypt=$ac_res
4470 rm -f core conftest.err conftest.$ac_objext \
4472 if ${ac_cv_search_crypt+:} false; then :
4476 if ${ac_cv_search_crypt+:} false; then :
4479 ac_cv_search_crypt=no
4482 LIBS=$ac_func_search_save_LIBS
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4485 $as_echo "$ac_cv_search_crypt" >&6; }
4486 ac_res=$ac_cv_search_crypt
4487 if test "$ac_res" != no; then :
4488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4493 $as_echo_n "checking for library containing fmod... " >&6; }
4494 if ${ac_cv_search_fmod+:} false; then :
4495 $as_echo_n "(cached) " >&6
4497 ac_func_search_save_LIBS=$LIBS
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4501 /* Override any GCC internal prototype to avoid an error.
4502 Use char because int might match the return type of a GCC
4503 builtin and then its argument prototype would still apply. */
4516 for ac_lib in '' m; do
4517 if test -z "$ac_lib"; then
4518 ac_res="none required"
4521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4523 if ac_fn_c_try_link "$LINENO"; then :
4524 ac_cv_search_fmod=$ac_res
4526 rm -f core conftest.err conftest.$ac_objext \
4528 if ${ac_cv_search_fmod+:} false; then :
4532 if ${ac_cv_search_fmod+:} false; then :
4535 ac_cv_search_fmod=no
4538 LIBS=$ac_func_search_save_LIBS
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4541 $as_echo "$ac_cv_search_fmod" >&6; }
4542 ac_res=$ac_cv_search_fmod
4543 if test "$ac_res" != no; then :
4544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4549 $as_echo_n "checking for library containing getspent... " >&6; }
4550 if ${ac_cv_search_getspent+:} false; then :
4551 $as_echo_n "(cached) " >&6
4553 ac_func_search_save_LIBS=$LIBS
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4557 /* Override any GCC internal prototype to avoid an error.
4558 Use char because int might match the return type of a GCC
4559 builtin and then its argument prototype would still apply. */
4572 for ac_lib in '' sec gen; do
4573 if test -z "$ac_lib"; then
4574 ac_res="none required"
4577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4579 if ac_fn_c_try_link "$LINENO"; then :
4580 ac_cv_search_getspent=$ac_res
4582 rm -f core conftest.err conftest.$ac_objext \
4584 if ${ac_cv_search_getspent+:} false; then :
4588 if ${ac_cv_search_getspent+:} false; then :
4591 ac_cv_search_getspent=no
4594 LIBS=$ac_func_search_save_LIBS
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4597 $as_echo "$ac_cv_search_getspent" >&6; }
4598 ac_res=$ac_cv_search_getspent
4599 if test "$ac_res" != no; then :
4600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4606 # Check whether --enable-mallinfo was given.
4607 if test "${enable_mallinfo+set}" = set; then :
4608 enableval=$enable_mallinfo;
4612 if test x$enable_mallinfo = xyes; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4616 $as_echo_n "checking for library containing mallinfo... " >&6; }
4617 if ${ac_cv_search_mallinfo+:} false; then :
4618 $as_echo_n "(cached) " >&6
4620 ac_func_search_save_LIBS=$LIBS
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4624 /* Override any GCC internal prototype to avoid an error.
4625 Use char because int might match the return type of a GCC
4626 builtin and then its argument prototype would still apply. */
4639 for ac_lib in '' malloc; do
4640 if test -z "$ac_lib"; then
4641 ac_res="none required"
4644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4646 if ac_fn_c_try_link "$LINENO"; then :
4647 ac_cv_search_mallinfo=$ac_res
4649 rm -f core conftest.err conftest.$ac_objext \
4651 if ${ac_cv_search_mallinfo+:} false; then :
4655 if ${ac_cv_search_mallinfo+:} false; then :
4658 ac_cv_search_mallinfo=no
4661 LIBS=$ac_func_search_save_LIBS
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4664 $as_echo "$ac_cv_search_mallinfo" >&6; }
4665 ac_res=$ac_cv_search_mallinfo
4666 if test "$ac_res" != no; then :
4667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4668 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4678 # Check whether --enable-libpaper was given.
4679 if test "${enable_libpaper+set}" = set; then :
4680 enableval=$enable_libpaper;
4684 if test x$enable_libpaper = xyes; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4686 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4687 if ${ac_cv_lib_paper_systempapername+:} false; then :
4688 $as_echo_n "(cached) " >&6
4690 ac_check_lib_save_LIBS=$LIBS
4691 LIBS="-lpaper $LIBS"
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4695 /* Override any GCC internal prototype to avoid an error.
4696 Use char because int might match the return type of a GCC
4697 builtin and then its argument prototype would still apply. */
4701 char systempapername ();
4705 return systempapername ();
4710 if ac_fn_c_try_link "$LINENO"; then :
4711 ac_cv_lib_paper_systempapername=yes
4713 ac_cv_lib_paper_systempapername=no
4715 rm -f core conftest.err conftest.$ac_objext \
4716 conftest$ac_exeext conftest.$ac_ext
4717 LIBS=$ac_check_lib_save_LIBS
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4720 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4721 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4722 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4736 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4737 if ${ac_cv_path_GREP+:} false; then :
4738 $as_echo_n "(cached) " >&6
4740 if test -z "$GREP"; then
4741 ac_path_GREP_found=false
4742 # Loop through the user's path and test for each of PROGNAME-LIST
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4747 test -z "$as_dir" && as_dir=.
4748 for ac_prog in grep ggrep; do
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4751 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4752 # Check for GNU ac_path_GREP and select it if it is found.
4753 # Check for GNU $ac_path_GREP
4754 case `"$ac_path_GREP" --version 2>&1` in
4756 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4759 $as_echo_n 0123456789 >"conftest.in"
4762 cat "conftest.in" "conftest.in" >"conftest.tmp"
4763 mv "conftest.tmp" "conftest.in"
4764 cp "conftest.in" "conftest.nl"
4765 $as_echo 'GREP' >> "conftest.nl"
4766 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4767 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4768 as_fn_arith $ac_count + 1 && ac_count=$as_val
4769 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4770 # Best one so far, save it but keep looking for a better one
4771 ac_cv_path_GREP="$ac_path_GREP"
4772 ac_path_GREP_max=$ac_count
4774 # 10*(2^10) chars as input seems more than enough
4775 test $ac_count -gt 10 && break
4777 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4780 $ac_path_GREP_found && break 3
4785 if test -z "$ac_cv_path_GREP"; then
4786 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4789 ac_cv_path_GREP=$GREP
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4794 $as_echo "$ac_cv_path_GREP" >&6; }
4795 GREP="$ac_cv_path_GREP"
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4799 $as_echo_n "checking for egrep... " >&6; }
4800 if ${ac_cv_path_EGREP+:} false; then :
4801 $as_echo_n "(cached) " >&6
4803 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4804 then ac_cv_path_EGREP="$GREP -E"
4806 if test -z "$EGREP"; then
4807 ac_path_EGREP_found=false
4808 # Loop through the user's path and test for each of PROGNAME-LIST
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4813 test -z "$as_dir" && as_dir=.
4814 for ac_prog in egrep; do
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4817 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4818 # Check for GNU ac_path_EGREP and select it if it is found.
4819 # Check for GNU $ac_path_EGREP
4820 case `"$ac_path_EGREP" --version 2>&1` in
4822 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4825 $as_echo_n 0123456789 >"conftest.in"
4828 cat "conftest.in" "conftest.in" >"conftest.tmp"
4829 mv "conftest.tmp" "conftest.in"
4830 cp "conftest.in" "conftest.nl"
4831 $as_echo 'EGREP' >> "conftest.nl"
4832 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4834 as_fn_arith $ac_count + 1 && ac_count=$as_val
4835 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4836 # Best one so far, save it but keep looking for a better one
4837 ac_cv_path_EGREP="$ac_path_EGREP"
4838 ac_path_EGREP_max=$ac_count
4840 # 10*(2^10) chars as input seems more than enough
4841 test $ac_count -gt 10 && break
4843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4846 $ac_path_EGREP_found && break 3
4851 if test -z "$ac_cv_path_EGREP"; then
4852 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4855 ac_cv_path_EGREP=$EGREP
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4861 $as_echo "$ac_cv_path_EGREP" >&6; }
4862 EGREP="$ac_cv_path_EGREP"
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4866 $as_echo_n "checking for ANSI C header files... " >&6; }
4867 if ${ac_cv_header_stdc+:} false; then :
4868 $as_echo_n "(cached) " >&6
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4885 if ac_fn_c_try_compile "$LINENO"; then :
4886 ac_cv_header_stdc=yes
4888 ac_cv_header_stdc=no
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 if test $ac_cv_header_stdc = yes; then
4893 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4900 $EGREP "memchr" >/dev/null 2>&1; then :
4903 ac_cv_header_stdc=no
4909 if test $ac_cv_header_stdc = yes; then
4910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4917 $EGREP "free" >/dev/null 2>&1; then :
4920 ac_cv_header_stdc=no
4926 if test $ac_cv_header_stdc = yes; then
4927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4928 if test "$cross_compiling" = yes; then :
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4935 #if ((' ' & 0x0FF) == 0x020)
4936 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4937 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4939 # define ISLOWER(c) \
4940 (('a' <= (c) && (c) <= 'i') \
4941 || ('j' <= (c) && (c) <= 'r') \
4942 || ('s' <= (c) && (c) <= 'z'))
4943 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4946 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4951 for (i = 0; i < 256; i++)
4952 if (XOR (islower (i), ISLOWER (i))
4953 || toupper (i) != TOUPPER (i))
4958 if ac_fn_c_try_run "$LINENO"; then :
4961 ac_cv_header_stdc=no
4963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4964 conftest.$ac_objext conftest.beam conftest.$ac_ext
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4970 $as_echo "$ac_cv_header_stdc" >&6; }
4971 if test $ac_cv_header_stdc = yes; then
4973 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4977 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4979 inttypes.h stdint.h unistd.h
4981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4982 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4984 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4985 cat >>confdefs.h <<_ACEOF
4986 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4994 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4995 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4996 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
5001 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5002 if test "x$ac_cv_header_crypt_h" = xyes; then :
5003 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5008 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5009 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5010 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5015 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5016 if test "x$ac_cv_header_malloc_h" = xyes; then :
5017 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5022 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5023 if test "x$ac_cv_header_shadow_h" = xyes; then :
5024 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5029 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5030 if test "x$ac_cv_header_stdint_h" = xyes; then :
5031 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
5036 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5037 if test "x$ac_cv_header_string_h" = xyes; then :
5038 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5043 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5044 if test "x$ac_cv_header_strings_h" = xyes; then :
5045 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5050 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5051 if test "x$ac_cv_header_bstring_h" = xyes; then :
5052 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5057 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5058 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5059 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5064 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5065 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5066 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5071 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5072 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5073 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5079 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5080 if test "x$ac_cv_header_iconv_h" = xyes; then :
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5084 $as_echo_n "checking for library containing iconv_open... " >&6; }
5085 if ${ac_cv_search_iconv_open+:} false; then :
5086 $as_echo_n "(cached) " >&6
5088 ac_func_search_save_LIBS=$LIBS
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5092 /* Override any GCC internal prototype to avoid an error.
5093 Use char because int might match the return type of a GCC
5094 builtin and then its argument prototype would still apply. */
5102 return iconv_open ();
5107 for ac_lib in '' iconv; do
5108 if test -z "$ac_lib"; then
5109 ac_res="none required"
5112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5114 if ac_fn_c_try_link "$LINENO"; then :
5115 ac_cv_search_iconv_open=$ac_res
5117 rm -f core conftest.err conftest.$ac_objext \
5119 if ${ac_cv_search_iconv_open+:} false; then :
5123 if ${ac_cv_search_iconv_open+:} false; then :
5126 ac_cv_search_iconv_open=no
5129 LIBS=$ac_func_search_save_LIBS
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5132 $as_echo "$ac_cv_search_iconv_open" >&6; }
5133 ac_res=$ac_cv_search_iconv_open
5134 if test "$ac_res" != no; then :
5135 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5136 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5138 SAVELIBS="$SAVELIBS $LIBS"
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5142 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5143 if ${ac_cv_search_libiconv_open+:} false; then :
5144 $as_echo_n "(cached) " >&6
5146 ac_func_search_save_LIBS=$LIBS
5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5150 /* Override any GCC internal prototype to avoid an error.
5151 Use char because int might match the return type of a GCC
5152 builtin and then its argument prototype would still apply. */
5156 char libiconv_open ();
5160 return libiconv_open ();
5165 for ac_lib in '' iconv; do
5166 if test -z "$ac_lib"; then
5167 ac_res="none required"
5170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5172 if ac_fn_c_try_link "$LINENO"; then :
5173 ac_cv_search_libiconv_open=$ac_res
5175 rm -f core conftest.err conftest.$ac_objext \
5177 if ${ac_cv_search_libiconv_open+:} false; then :
5181 if ${ac_cv_search_libiconv_open+:} false; then :
5184 ac_cv_search_libiconv_open=no
5187 LIBS=$ac_func_search_save_LIBS
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5190 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5191 ac_res=$ac_cv_search_libiconv_open
5192 if test "$ac_res" != no; then :
5193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5194 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5196 SAVELIBS="$SAVELIBS $LIBS"
5205 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5206 if test "x$ac_cv_header_mxml_h" = xyes; then :
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5209 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5210 if ${ac_cv_search_mmxlNewElement+:} false; then :
5211 $as_echo_n "(cached) " >&6
5213 ac_func_search_save_LIBS=$LIBS
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5217 /* Override any GCC internal prototype to avoid an error.
5218 Use char because int might match the return type of a GCC
5219 builtin and then its argument prototype would still apply. */
5223 char mmxlNewElement ();
5227 return mmxlNewElement ();
5232 for ac_lib in '' mxml; do
5233 if test -z "$ac_lib"; then
5234 ac_res="none required"
5237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5239 if ac_fn_c_try_link "$LINENO"; then :
5240 ac_cv_search_mmxlNewElement=$ac_res
5242 rm -f core conftest.err conftest.$ac_objext \
5244 if ${ac_cv_search_mmxlNewElement+:} false; then :
5248 if ${ac_cv_search_mmxlNewElement+:} false; then :
5251 ac_cv_search_mmxlNewElement=no
5254 LIBS=$ac_func_search_save_LIBS
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5257 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5258 ac_res=$ac_cv_search_mmxlNewElement
5259 if test "$ac_res" != no; then :
5260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5261 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5272 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5273 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5274 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5279 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5280 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5281 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5286 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5287 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5288 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5293 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5294 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5295 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5300 for ac_func in statfs statvfs
5302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5304 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5305 cat >>confdefs.h <<_ACEOF
5306 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5313 for ac_func in strdup strlcat strlcpy
5315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5316 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5317 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5318 cat >>confdefs.h <<_ACEOF
5319 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5325 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5326 echo Forcing snprintf emulation for HP-UX.
5328 for ac_func in snprintf vsnprintf
5330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5332 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5333 cat >>confdefs.h <<_ACEOF
5334 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5342 for ac_func in random lrand48 arc4random
5344 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5345 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5346 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5347 cat >>confdefs.h <<_ACEOF
5348 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5355 for ac_func in geteuid
5357 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5358 if test "x$ac_cv_func_geteuid" = xyes; then :
5359 cat >>confdefs.h <<_ACEOF
5360 #define HAVE_GETEUID 1
5367 for ac_func in setpgid
5369 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5370 if test "x$ac_cv_func_setpgid" = xyes; then :
5371 cat >>confdefs.h <<_ACEOF
5372 #define HAVE_SETPGID 1
5379 for ac_func in vsyslog
5381 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5382 if test "x$ac_cv_func_vsyslog" = xyes; then :
5383 cat >>confdefs.h <<_ACEOF
5384 #define HAVE_VSYSLOG 1
5391 case "$host_os_name" in
5393 # Do not use sigset on Linux or GNU HURD
5396 # Use sigset on other platforms, if available
5397 for ac_func in sigset
5399 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5400 if test "x$ac_cv_func_sigset" = xyes; then :
5401 cat >>confdefs.h <<_ACEOF
5402 #define HAVE_SIGSET 1
5411 for ac_func in sigaction
5413 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5414 if test "x$ac_cv_func_sigaction" = xyes; then :
5415 cat >>confdefs.h <<_ACEOF
5416 #define HAVE_SIGACTION 1
5423 for ac_func in waitpid wait3
5425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5427 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5428 cat >>confdefs.h <<_ACEOF
5429 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5436 for ac_func in posix_spawn
5438 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5439 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5440 cat >>confdefs.h <<_ACEOF
5441 #define HAVE_POSIX_SPAWN 1
5448 for ac_func in getgrouplist
5450 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5451 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5452 cat >>confdefs.h <<_ACEOF
5453 #define HAVE_GETGROUPLIST 1
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5461 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5469 int o = t.tm_gmtoff;
5474 if ac_fn_c_try_compile "$LINENO"; then :
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5476 $as_echo "yes" >&6; }
5477 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5486 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5489 #include <sys/stat.h>
5499 if ac_fn_c_try_compile "$LINENO"; then :
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5501 $as_echo "yes" >&6; }
5502 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 for ac_func in removefile
5512 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5513 if test "x$ac_cv_func_removefile" = xyes; then :
5514 cat >>confdefs.h <<_ACEOF
5515 #define HAVE_REMOVEFILE 1
5522 # Check whether --enable-libusb was given.
5523 if test "${enable_libusb+set}" = set; then :
5524 enableval=$enable_libusb;
5533 if test "x$PKGCONFIG" != x; then
5534 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5536 $as_echo_n "checking for libusb-1.0... " >&6; }
5537 if $PKGCONFIG --exists libusb-1.0; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5540 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5542 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5543 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5544 USBQUIRKS="\$(DATADIR)/usb"
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547 $as_echo "no" >&6; }
5548 if test x$enable_libusb = xyes; then
5549 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5553 elif test x$enable_libusb = xyes; then
5554 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5557 # Check whether --enable-tcp_wrappers was given.
5558 if test "${enable_tcp_wrappers+set}" = set; then :
5559 enableval=$enable_tcp_wrappers;
5566 if test x$enable_tcp_wrappers = xyes; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5568 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5569 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5570 $as_echo_n "(cached) " >&6
5572 ac_check_lib_save_LIBS=$LIBS
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5577 /* Override any GCC internal prototype to avoid an error.
5578 Use char because int might match the return type of a GCC
5579 builtin and then its argument prototype would still apply. */
5583 char hosts_access ();
5587 return hosts_access ();
5592 if ac_fn_c_try_link "$LINENO"; then :
5593 ac_cv_lib_wrap_hosts_access=yes
5595 ac_cv_lib_wrap_hosts_access=no
5597 rm -f core conftest.err conftest.$ac_objext \
5598 conftest$ac_exeext conftest.$ac_ext
5599 LIBS=$ac_check_lib_save_LIBS
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5602 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5603 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5605 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5606 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5607 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5619 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5620 if test "x$ac_cv_header_zlib_h" = xyes; then :
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5622 $as_echo_n "checking for gzgets in -lz... " >&6; }
5623 if ${ac_cv_lib_z_gzgets+:} false; then :
5624 $as_echo_n "(cached) " >&6
5626 ac_check_lib_save_LIBS=$LIBS
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5631 /* Override any GCC internal prototype to avoid an error.
5632 Use char because int might match the return type of a GCC
5633 builtin and then its argument prototype would still apply. */
5646 if ac_fn_c_try_link "$LINENO"; then :
5647 ac_cv_lib_z_gzgets=yes
5649 ac_cv_lib_z_gzgets=no
5651 rm -f core conftest.err conftest.$ac_objext \
5652 conftest$ac_exeext conftest.$ac_ext
5653 LIBS=$ac_check_lib_save_LIBS
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5656 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5657 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5658 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5663 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5664 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5665 $as_echo_n "(cached) " >&6
5667 ac_check_lib_save_LIBS=$LIBS
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5672 /* Override any GCC internal prototype to avoid an error.
5673 Use char because int might match the return type of a GCC
5674 builtin and then its argument prototype would still apply. */
5678 char inflateCopy ();
5682 return inflateCopy ();
5687 if ac_fn_c_try_link "$LINENO"; then :
5688 ac_cv_lib_z_inflateCopy=yes
5690 ac_cv_lib_z_inflateCopy=no
5692 rm -f core conftest.err conftest.$ac_objext \
5693 conftest$ac_exeext conftest.$ac_ext
5694 LIBS=$ac_check_lib_save_LIBS
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5697 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5698 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5699 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5703 if test "x$GZIP" != z; then
5714 case $host_os_name in
5732 # Check whether --enable-acl was given.
5733 if test "${enable_acl+set}" = set; then :
5734 enableval=$enable_acl;
5737 if test "x$enable_acl" != xno; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5739 $as_echo_n "checking for library containing acl_init... " >&6; }
5740 if ${ac_cv_search_acl_init+:} false; then :
5741 $as_echo_n "(cached) " >&6
5743 ac_func_search_save_LIBS=$LIBS
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5747 /* Override any GCC internal prototype to avoid an error.
5748 Use char because int might match the return type of a GCC
5749 builtin and then its argument prototype would still apply. */
5762 for ac_lib in '' acl; do
5763 if test -z "$ac_lib"; then
5764 ac_res="none required"
5767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5769 if ac_fn_c_try_link "$LINENO"; then :
5770 ac_cv_search_acl_init=$ac_res
5772 rm -f core conftest.err conftest.$ac_objext \
5774 if ${ac_cv_search_acl_init+:} false; then :
5778 if ${ac_cv_search_acl_init+:} false; then :
5781 ac_cv_search_acl_init=no
5784 LIBS=$ac_func_search_save_LIBS
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5787 $as_echo "$ac_cv_search_acl_init" >&6; }
5788 ac_res=$ac_cv_search_acl_init
5789 if test "$ac_res" != no; then :
5790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5791 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5795 SERVERLIBS="$SERVERLIBS $LIBS"
5799 # Check whether --enable-dbus was given.
5800 if test "${enable_dbus+set}" = set; then :
5801 enableval=$enable_dbus;
5805 # Check whether --with-dbusdir was given.
5806 if test "${with_dbusdir+set}" = set; then :
5807 withval=$with_dbusdir; DBUSDIR="$withval"
5813 DBUS_NOTIFIERLIBS=""
5815 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5817 $as_echo_n "checking for DBUS... " >&6; }
5818 if $PKGCONFIG --exists dbus-1; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5820 $as_echo "yes" >&6; }
5821 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5823 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5824 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5825 DBUS_NOTIFIER="dbus"
5826 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5828 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5829 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5830 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5831 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5835 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5836 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5837 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5842 if test -d /etc/dbus-1; then
5843 DBUSDIR="/etc/dbus-1"
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5855 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5856 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5857 CUPS_SYSTEM_AUTHKEY=""
5860 case $host_os_name in
5862 BACKLIBS="$BACKLIBS -framework IOKit"
5863 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5864 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5866 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5867 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5868 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5873 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5874 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5875 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5880 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5881 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5882 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5887 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5888 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5889 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5895 for ac_func in SCDynamicStoreCopyComputerName
5897 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5898 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5899 cat >>confdefs.h <<_ACEOF
5900 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5907 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5908 if test "x$ac_cv_header_membership_h" = xyes; then :
5909 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5914 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5915 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5916 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5921 for ac_func in mbr_uid_to_uuid
5923 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5924 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5925 cat >>confdefs.h <<_ACEOF
5926 #define HAVE_MBR_UID_TO_UUID 1
5933 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5934 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5935 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5941 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5942 if test "x$ac_cv_header_notify_h" = xyes; then :
5943 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5948 for ac_func in notify_post
5950 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5951 if test "x$ac_cv_func_notify_post" = xyes; then :
5952 cat >>confdefs.h <<_ACEOF
5953 #define HAVE_NOTIFY_POST 1
5961 # Check whether --with-adminkey was given.
5962 if test "${with_adminkey+set}" = set; then :
5963 withval=$with_adminkey; default_adminkey="$withval"
5965 default_adminkey="default"
5969 # Check whether --with-operkey was given.
5970 if test "${with_operkey+set}" = set; then :
5971 withval=$with_operkey; default_operkey="$withval"
5973 default_operkey="default"
5977 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5978 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5980 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5983 if test "x$default_adminkey" != xdefault; then
5984 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5985 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5987 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5988 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5991 if test "x$default_operkey" != xdefault; then
5992 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5994 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5999 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
6000 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
6001 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
6007 if test $host_os_version -ge 100; then
6008 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6009 if test "x$ac_cv_header_sandbox_h" = xyes; then :
6010 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
6016 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
6017 # Broken public headers in 10.7.x...
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
6019 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
6020 if test -f /usr/local/include/sandbox/private.h; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6022 $as_echo "yes" >&6; }
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6026 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
6030 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
6031 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
6032 $as_echo "#define HAVE_XPC 1" >>confdefs.h
6034 INSTALLXPC="install-xpc"
6038 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
6039 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
6040 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
6049 cat >>confdefs.h <<_ACEOF
6050 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6053 cat >>confdefs.h <<_ACEOF
6054 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6063 # Check whether --with-components was given.
6064 if test "${with_components+set}" = set; then :
6065 withval=$with_components; COMPONENTS="$withval"
6069 case "$COMPONENTS" in
6071 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6075 BUILDDIRS="data locale"
6079 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6088 if test "$prefix" = "NONE"; then
6092 if test "$exec_prefix" = "NONE"; then
6093 if test "$prefix" = "/"; then
6096 exec_prefix="$prefix"
6100 if test "$bindir" = "\${exec_prefix}/bin"; then
6101 bindir="$exec_prefix/bin"
6104 cat >>confdefs.h <<_ACEOF
6105 #define CUPS_BINDIR "$bindir"
6109 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6110 sbindir="$exec_prefix/sbin"
6113 cat >>confdefs.h <<_ACEOF
6114 #define CUPS_SBINDIR "$sbindir"
6118 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6119 sharedstatedir="/usr/com"
6122 if test "$datarootdir" = "\${prefix}/share"; then
6123 if test "$prefix" = "/"; then
6124 datarootdir="/usr/share"
6126 datarootdir="$prefix/share"
6130 if test "$datadir" = "\${prefix}/share"; then
6131 if test "$prefix" = "/"; then
6132 datadir="/usr/share"
6134 datadir="$prefix/share"
6136 elif test "$datadir" = "\${datarootdir}"; then
6137 datadir="$datarootdir"
6140 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6141 includedir="/usr/include"
6144 if test "$localstatedir" = "\${prefix}/var"; then
6145 if test "$prefix" = "/"; then
6146 if test "$host_os_name" = darwin; then
6147 localstatedir="/private/var"
6149 localstatedir="/var"
6152 localstatedir="$prefix/var"
6156 if test "$sysconfdir" = "\${prefix}/etc"; then
6157 if test "$prefix" = "/"; then
6158 if test "$host_os_name" = darwin; then
6159 sysconfdir="/private/etc"
6164 sysconfdir="$prefix/etc"
6168 if test "$libdir" = "\${exec_prefix}/lib"; then
6169 case "$host_os_name" in
6171 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6172 libdir="$exec_prefix/lib64"
6179 # Check whether --with-privateinclude was given.
6180 if test "${with_privateinclude+set}" = set; then :
6181 withval=$with_privateinclude; privateinclude="$withval"
6186 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6187 PRIVATEINCLUDE="$privateinclude/cups"
6196 # Check whether --with-lpdconfig was given.
6197 if test "${with_lpdconfig+set}" = set; then :
6198 withval=$with_lpdconfig; LPDCONFIG="$withval"
6204 if test "x$LPDCONFIG" = x; then
6205 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6206 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6207 elif test "x$XINETD" != x; then
6208 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6212 if test "x$LPDCONFIG" = xoff; then
6213 cat >>confdefs.h <<_ACEOF
6214 #define CUPS_DEFAULT_LPD_CONFIG ""
6218 cat >>confdefs.h <<_ACEOF
6219 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6225 # Check whether --with-smbconfig was given.
6226 if test "${with_smbconfig+set}" = set; then :
6227 withval=$with_smbconfig; SMBCONFIG="$withval"
6233 if test "x$SMBCONFIG" = x; then
6234 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6235 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6237 for dir in /etc /etc/samba /usr/local/etc; do
6238 if test -f $dir/smb.conf; then
6239 SMBCONFIG="samba://$dir/smb.conf"
6246 if test "x$SMBCONFIG" = xoff; then
6247 cat >>confdefs.h <<_ACEOF
6248 #define CUPS_DEFAULT_SMB_CONFIG ""
6252 cat >>confdefs.h <<_ACEOF
6253 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6260 # Check whether --with-cachedir was given.
6261 if test "${with_cachedir+set}" = set; then :
6262 withval=$with_cachedir; cachedir="$withval"
6268 if test x$cachedir = x; then
6269 if test "x$host_os_name" = xdarwin; then
6270 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6272 CUPS_CACHEDIR="$localstatedir/cache/cups"
6275 CUPS_CACHEDIR="$cachedir"
6277 cat >>confdefs.h <<_ACEOF
6278 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6284 CUPS_DATADIR="$datadir/cups"
6285 cat >>confdefs.h <<_ACEOF
6286 #define CUPS_DATADIR "$datadir/cups"
6293 # Check whether --with-icondir was given.
6294 if test "${with_icondir+set}" = set; then :
6295 withval=$with_icondir; icondir="$withval"
6301 if test "x$icondir" = x -a -d /usr/share/icons; then
6302 ICONDIR="/usr/share/icons"
6311 # Check whether --with-menudir was given.
6312 if test "${with_menudir+set}" = set; then :
6313 withval=$with_menudir; menudir="$withval"
6319 if test "x$menudir" = x -a -d /usr/share/applications; then
6320 MENUDIR="/usr/share/applications"
6327 # Documentation files
6329 # Check whether --with-docdir was given.
6330 if test "${with_docdir+set}" = set; then :
6331 withval=$with_docdir; docdir="$withval"
6337 if test x$docdir = x; then
6338 CUPS_DOCROOT="$datadir/doc/cups"
6339 docdir="$datadir/doc/cups"
6341 CUPS_DOCROOT="$docdir"
6344 cat >>confdefs.h <<_ACEOF
6345 #define CUPS_DOCROOT "$docdir"
6352 # Check whether --with-fontpath was given.
6353 if test "${with_fontpath+set}" = set; then :
6354 withval=$with_fontpath; fontpath="$withval"
6360 if test "x$fontpath" = "x"; then
6361 CUPS_FONTPATH="$datadir/cups/fonts"
6363 CUPS_FONTPATH="$fontpath"
6367 cat >>confdefs.h <<_ACEOF
6368 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6373 if test "$localedir" = "\${datarootdir}/locale"; then
6374 case "$host_os_name" in
6375 linux* | gnu* | *bsd* | darwin*)
6376 CUPS_LOCALEDIR="$datarootdir/locale"
6380 # This is the standard System V location...
6381 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6385 CUPS_LOCALEDIR="$localedir"
6388 cat >>confdefs.h <<_ACEOF
6389 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6396 # Check whether --with-logdir was given.
6397 if test "${with_logdir+set}" = set; then :
6398 withval=$with_logdir; logdir="$withval"
6404 if test x$logdir = x; then
6405 CUPS_LOGDIR="$localstatedir/log/cups"
6406 cat >>confdefs.h <<_ACEOF
6407 #define CUPS_LOGDIR "$localstatedir/log/cups"
6411 CUPS_LOGDIR="$logdir"
6413 cat >>confdefs.h <<_ACEOF
6414 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6419 # Longer-term spool data
6420 CUPS_REQUESTS="$localstatedir/spool/cups"
6421 cat >>confdefs.h <<_ACEOF
6422 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6427 # Server executables...
6428 case "$host_os_name" in
6430 # *BSD and Darwin (macOS)
6432 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6436 INSTALL_SYSV="install-sysv"
6437 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6441 cat >>confdefs.h <<_ACEOF
6442 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6448 # Configuration files
6449 CUPS_SERVERROOT="$sysconfdir/cups"
6450 cat >>confdefs.h <<_ACEOF
6451 #define CUPS_SERVERROOT "$sysconfdir/cups"
6456 # Transient run-time state
6458 # Check whether --with-rundir was given.
6459 if test "${with_rundir+set}" = set; then :
6460 withval=$with_rundir; CUPS_STATEDIR="$withval"
6463 case "$host_os_name" in
6466 CUPS_STATEDIR="$CUPS_SERVERROOT"
6470 CUPS_STATEDIR="$localstatedir/run/cups"
6475 cat >>confdefs.h <<_ACEOF
6476 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6482 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6483 # New GNU "standards" break previous ones, so make sure we use
6484 # the right default location for the operating system...
6485 mandir="\${prefix}/man"
6488 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6489 case "$host_os_name" in
6490 darwin* | linux* | gnu* | *bsd*)
6491 # Darwin, macOS, Linux, GNU HURD, and *BSD
6492 mandir="/usr/share/man"
6493 AMANDIR="/usr/share/man"
6494 PMANDIR="/usr/share/man"
6511 case "$host_os_name" in
6520 linux* | gnu* | darwin*)
6521 # Linux, GNU Hurd, and macOS
6547 DSOFLAGS="${DSOFLAGS:=}"
6549 # Check whether --enable-shared was given.
6550 if test "${enable_shared+set}" = set; then :
6551 enableval=$enable_shared;
6556 LIBCUPSBASE="lib$cupsbase"
6557 LIBCUPSSTATIC="lib$cupsbase.a"
6559 if test x$enable_shared != xno; then
6560 case "$host_os_name" in
6562 LIBCUPS="lib$cupsbase.so.2"
6563 LIBCUPSCGI="libcupscgi.so.1"
6564 LIBCUPSIMAGE="libcupsimage.so.2"
6565 LIBCUPSMIME="libcupsmime.so.1"
6566 LIBCUPSPPDC="libcupsppdc.so.1"
6569 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G \$(OPTIM)"
6571 linux* | gnu* | *bsd*)
6572 LIBCUPS="lib$cupsbase.so.2"
6573 LIBCUPSCGI="libcupscgi.so.1"
6574 LIBCUPSIMAGE="libcupsimage.so.2"
6575 LIBCUPSMIME="libcupsmime.so.1"
6576 LIBCUPSPPDC="libcupsppdc.so.1"
6579 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6582 LIBCUPS="lib$cupsbase.2.dylib"
6583 LIBCUPSCGI="libcupscgi.1.dylib"
6584 LIBCUPSIMAGE="libcupsimage.2.dylib"
6585 LIBCUPSMIME="libcupsmime.1.dylib"
6586 LIBCUPSPPDC="libcupsppdc.1.dylib"
6589 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6592 echo "Warning: shared libraries may not be supported. Trying -shared"
6593 echo " option with compiler."
6594 LIBCUPS="lib$cupsbase.so.2"
6595 LIBCUPSCGI="libcupscgi.so.1"
6596 LIBCUPSIMAGE="libcupsimage.so.2"
6597 LIBCUPSMIME="libcupsmime.so.1"
6598 LIBCUPSPPDC="libcupsppdc.so.1"
6601 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6606 LIBCUPS="lib$cupsbase.a"
6607 LIBCUPSCGI="libcupscgi.a"
6608 LIBCUPSIMAGE="libcupsimage.a"
6609 LIBCUPSMIME="libcupsmime.a"
6610 LIBCUPSPPDC="libcupsppdc.a"
6626 if test x$enable_shared = xno; then
6627 LINKCUPS="../cups/lib$cupsbase.a"
6628 LINKCUPSIMAGE="../cups/libcupsimage.a"
6630 EXTLINKCUPS="-lcups"
6631 EXTLINKCUPSIMAGE="-lcupsimage"
6633 LINKCUPS="-l${cupsbase}"
6634 LINKCUPSIMAGE="-lcupsimage"
6636 EXTLINKCUPS="-lcups"
6637 EXTLINKCUPSIMAGE="-lcupsimage"
6647 if test "$DSO" != ":"; then
6648 # When using DSOs the image libraries are linked to libcupsimage.so
6649 # rather than to the executables. This makes things smaller if you
6650 # are using any static libraries, and it also allows us to distribute
6651 # a single DSO rather than a bunch...
6655 # Tell the run-time linkers where to find a DSO. Some platforms
6656 # need this option, even when the library is installed in a
6657 # standard location...
6658 case $host_os_name in
6661 if test $exec_prefix != /usr; then
6662 DSOFLAGS="-R$libdir $DSOFLAGS"
6663 LDFLAGS="$LDFLAGS -R$libdir"
6664 EXPORT_LDFLAGS="-R$libdir"
6669 if test $exec_prefix != /usr; then
6670 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6671 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6672 EXPORT_LDFLAGS="-Wl,-R$libdir"
6676 # Linux, and HURD...
6677 if test $exec_prefix != /usr; then
6678 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6679 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6680 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6694 # Check whether --enable-libtool_unsupported was given.
6695 if test "${enable_libtool_unsupported+set}" = set; then :
6696 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6697 if test x$enable_libtool_unsupported == xyes; then
6698 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6700 LIBTOOL="$enable_libtool_unsupported"
6702 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6703 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6710 if test x$LIBTOOL != x; then
6711 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6712 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6714 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6715 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6717 LIBCUPS="libcups.la"
6718 LIBCUPSSTATIC="libcups.la"
6719 LIBCUPSCGI="libcupscgi.la"
6720 LIBCUPSIMAGE="libcupsimage.la"
6721 LIBCUPSMIME="libcupsmime.la"
6722 LIBCUPSPPDC="libcupsppdc.la"
6724 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
6725 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
6726 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
6728 LINKCUPS="../cups/\$(LIBCUPS)"
6729 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
6755 # Check whether --with-optim was given.
6756 if test "${with_optim+set}" = set; then :
6757 withval=$with_optim;
6760 # Check whether --enable-debug was given.
6761 if test "${enable_debug+set}" = set; then :
6762 enableval=$enable_debug;
6765 # Check whether --enable-debug_guards was given.
6766 if test "${enable_debug_guards+set}" = set; then :
6767 enableval=$enable_debug_guards;
6770 # Check whether --enable-debug_printfs was given.
6771 if test "${enable_debug_printfs+set}" = set; then :
6772 enableval=$enable_debug_printfs;
6775 # Check whether --enable-unit_tests was given.
6776 if test "${enable_unit_tests+set}" = set; then :
6777 enableval=$enable_unit_tests;
6781 if test x$enable_debug = xyes; then
6787 if test x$enable_debug_printfs = xyes; then
6788 CFLAGS="$CFLAGS -DDEBUG"
6789 CXXFLAGS="$CXXFLAGS -DDEBUG"
6792 if test x$enable_debug_guards = xyes; then
6793 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6794 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6797 if test x$enable_unit_tests = xyes; then
6798 if test "$build" != "$host"; then
6799 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6802 UNITTESTS="unittests"
6809 # Check whether --with-archflags was given.
6810 if test "${with_archflags+set}" = set; then :
6811 withval=$with_archflags;
6815 # Check whether --with-ldarchflags was given.
6816 if test "${with_ldarchflags+set}" = set; then :
6817 withval=$with_ldarchflags;
6821 if test -z "$with_archflags"; then
6824 ARCHFLAGS="$with_archflags"
6827 if test -z "$with_ldarchflags"; then
6828 if test "$host_os_name" = darwin; then
6829 # Only create Intel programs by default
6830 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6832 LDARCHFLAGS="$ARCHFLAGS"
6835 LDARCHFLAGS="$with_ldarchflags"
6841 # Check whether --enable-relro was given.
6842 if test "${enable_relro+set}" = set; then :
6843 enableval=$enable_relro;
6847 CXXLIBS="${CXXLIBS:=}"
6856 if test -n "$GCC"; then
6857 # Add GCC-specific compiler options...
6858 if test -z "$OPTIM"; then
6859 if test "x$with_optim" = x; then
6860 # Default to optimize-for-size and debug
6863 OPTIM="$with_optim $OPTIM"
6867 # Generate position-independent code as needed...
6868 if test $PICFLAG = 1; then
6869 OPTIM="-fPIC $OPTIM"
6872 # The -fstack-protector option is available with some versions of
6873 # GCC and adds "stack canaries" which detect when the return address
6874 # has been overwritten, preventing many types of exploit attacks.
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6876 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6878 CFLAGS="$CFLAGS -fstack-protector"
6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6890 if ac_fn_c_try_link "$LINENO"; then :
6891 if test "x$LSB_BUILD" = xy; then
6892 # Can't use stack-protector with LSB binaries...
6893 OPTIM="$OPTIM -fno-stack-protector"
6895 OPTIM="$OPTIM -fstack-protector"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6898 $as_echo "yes" >&6; }
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901 $as_echo "no" >&6; }
6903 rm -f core conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6907 if test "x$LSB_BUILD" != xy; then
6908 # The -fPIE option is available with some versions of GCC and
6909 # adds randomization of addresses, which avoids another class of
6910 # exploits that depend on a fixed address for common functions.
6912 # Not available to LSB binaries...
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6914 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6916 case "$host_os_name" in
6918 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6930 if ac_fn_c_try_compile "$LINENO"; then :
6932 PIEFLAGS="-fPIE -Wl,-pie"
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6934 $as_echo "yes" >&6; }
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943 CFLAGS="$CFLAGS -fPIE -pie"
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6955 if ac_fn_c_try_compile "$LINENO"; then :
6957 PIEFLAGS="-fPIE -pie"
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6959 $as_echo "yes" >&6; }
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970 if test "x$with_optim" = x; then
6971 # Add useful warning options for tracking down problems...
6972 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-unused-result" >&5
6975 $as_echo_n "checking whether compiler supports -Wno-unused-result... " >&6; }
6977 CFLAGS="$CFLAGS -Werror -Wno-unused-result"
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6989 if ac_fn_c_try_compile "$LINENO"; then :
6990 OPTIM="$OPTIM -Wno-unused-result"
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6992 $as_echo "yes" >&6; }
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-conversion" >&5
7001 $as_echo_n "checking whether compiler supports -Wsign-conversion... " >&6; }
7003 CFLAGS="$CFLAGS -Werror -Wsign-conversion"
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7015 if ac_fn_c_try_compile "$LINENO"; then :
7016 OPTIM="$OPTIM -Wsign-conversion"
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7018 $as_echo "yes" >&6; }
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-compare" >&5
7027 $as_echo_n "checking whether compiler supports -Wno-tautological-compare... " >&6; }
7029 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7041 if ac_fn_c_try_compile "$LINENO"; then :
7042 OPTIM="$OPTIM -Wno-tautological-compare"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7044 $as_echo "yes" >&6; }
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-truncation" >&5
7053 $as_echo_n "checking whether compiler supports -Wno-format-truncation... " >&6; }
7055 CFLAGS="$CFLAGS -Werror -Wno-format-truncation"
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7067 if ac_fn_c_try_compile "$LINENO"; then :
7068 OPTIM="$OPTIM -Wno-format-truncation"
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7070 $as_echo "yes" >&6; }
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078 # Additional warning options for development testing...
7079 if test -d .svn; then
7080 OPTIM="-Werror $OPTIM"
7084 case "$host_os_name" in
7086 # -D_FORTIFY_SOURCE=2 adds additional object size
7087 # checking, basically wrapping all string functions
7088 # with buffer-limited ones. Not strictly needed for
7089 # CUPS since we already use buffer-limited calls, but
7090 # this will catch any additions that are broken.
7091 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7095 # The -z relro option is provided by the Linux linker command to
7096 # make relocatable data read-only.
7097 if test x$enable_relro = xyes; then
7098 RELROFLAGS="-Wl,-z,relro,-z,now"
7103 # Add vendor-specific compiler options...
7104 case $host_os_name in
7107 if test -z "$OPTIM"; then
7108 if test "x$with_optim" = x; then
7111 OPTIM="$with_optim $OPTIM"
7115 if test $PICFLAG = 1; then
7116 OPTIM="-KPIC $OPTIM"
7120 # Running some other operating system; inform the user they
7121 # should contribute the necessary options to
7122 # cups-support@cups.org...
7123 echo "Building CUPS with default compiler optimizations; contact"
7124 echo "cups-devel@cups.org with uname and compiler options needed"
7125 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7126 echo "variables before running configure."
7131 # Add general compiler options per platform...
7132 case $host_os_name in
7134 # glibc 2.8 and higher breaks peer credentials unless you
7135 # define _GNU_SOURCE...
7136 OPTIM="$OPTIM -D_GNU_SOURCE"
7142 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
7143 #include <sys/socket.h>
7144 #include <netinet/in.h>
7145 #include <arpa/inet.h>
7146 #include <netinet/in_systm.h>
7147 #include <netinet/ip.h>
7149 if test "x$ac_cv_header_resolv_h" = xyes; then :
7150 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7156 $as_echo_n "checking for library containing socket... " >&6; }
7157 if ${ac_cv_search_socket+:} false; then :
7158 $as_echo_n "(cached) " >&6
7160 ac_func_search_save_LIBS=$LIBS
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7164 /* Override any GCC internal prototype to avoid an error.
7165 Use char because int might match the return type of a GCC
7166 builtin and then its argument prototype would still apply. */
7179 for ac_lib in '' socket; do
7180 if test -z "$ac_lib"; then
7181 ac_res="none required"
7184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7186 if ac_fn_c_try_link "$LINENO"; then :
7187 ac_cv_search_socket=$ac_res
7189 rm -f core conftest.err conftest.$ac_objext \
7191 if ${ac_cv_search_socket+:} false; then :
7195 if ${ac_cv_search_socket+:} false; then :
7198 ac_cv_search_socket=no
7201 LIBS=$ac_func_search_save_LIBS
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7204 $as_echo "$ac_cv_search_socket" >&6; }
7205 ac_res=$ac_cv_search_socket
7206 if test "$ac_res" != no; then :
7207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7212 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7213 if ${ac_cv_search_gethostbyaddr+:} false; then :
7214 $as_echo_n "(cached) " >&6
7216 ac_func_search_save_LIBS=$LIBS
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7220 /* Override any GCC internal prototype to avoid an error.
7221 Use char because int might match the return type of a GCC
7222 builtin and then its argument prototype would still apply. */
7226 char gethostbyaddr ();
7230 return gethostbyaddr ();
7235 for ac_lib in '' nsl; do
7236 if test -z "$ac_lib"; then
7237 ac_res="none required"
7240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7242 if ac_fn_c_try_link "$LINENO"; then :
7243 ac_cv_search_gethostbyaddr=$ac_res
7245 rm -f core conftest.err conftest.$ac_objext \
7247 if ${ac_cv_search_gethostbyaddr+:} false; then :
7251 if ${ac_cv_search_gethostbyaddr+:} false; then :
7254 ac_cv_search_gethostbyaddr=no
7257 LIBS=$ac_func_search_save_LIBS
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7260 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7261 ac_res=$ac_cv_search_gethostbyaddr
7262 if test "$ac_res" != no; then :
7263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7268 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7269 if ${ac_cv_search_getifaddrs+:} false; then :
7270 $as_echo_n "(cached) " >&6
7272 ac_func_search_save_LIBS=$LIBS
7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7276 /* Override any GCC internal prototype to avoid an error.
7277 Use char because int might match the return type of a GCC
7278 builtin and then its argument prototype would still apply. */
7286 return getifaddrs ();
7291 for ac_lib in '' nsl; do
7292 if test -z "$ac_lib"; then
7293 ac_res="none required"
7296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7298 if ac_fn_c_try_link "$LINENO"; then :
7299 ac_cv_search_getifaddrs=$ac_res
7301 rm -f core conftest.err conftest.$ac_objext \
7303 if ${ac_cv_search_getifaddrs+:} false; then :
7307 if ${ac_cv_search_getifaddrs+:} false; then :
7310 ac_cv_search_getifaddrs=no
7313 LIBS=$ac_func_search_save_LIBS
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7316 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7317 ac_res=$ac_cv_search_getifaddrs
7318 if test "$ac_res" != no; then :
7319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7320 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7325 $as_echo_n "checking for library containing hstrerror... " >&6; }
7326 if ${ac_cv_search_hstrerror+:} false; then :
7327 $as_echo_n "(cached) " >&6
7329 ac_func_search_save_LIBS=$LIBS
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7333 /* Override any GCC internal prototype to avoid an error.
7334 Use char because int might match the return type of a GCC
7335 builtin and then its argument prototype would still apply. */
7343 return hstrerror ();
7348 for ac_lib in '' nsl socket resolv; do
7349 if test -z "$ac_lib"; then
7350 ac_res="none required"
7353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7355 if ac_fn_c_try_link "$LINENO"; then :
7356 ac_cv_search_hstrerror=$ac_res
7358 rm -f core conftest.err conftest.$ac_objext \
7360 if ${ac_cv_search_hstrerror+:} false; then :
7364 if ${ac_cv_search_hstrerror+:} false; then :
7367 ac_cv_search_hstrerror=no
7370 LIBS=$ac_func_search_save_LIBS
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7373 $as_echo "$ac_cv_search_hstrerror" >&6; }
7374 ac_res=$ac_cv_search_hstrerror
7375 if test "$ac_res" != no; then :
7376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7377 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7382 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7383 if ${ac_cv_search_rresvport_af+:} false; then :
7384 $as_echo_n "(cached) " >&6
7386 ac_func_search_save_LIBS=$LIBS
7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h. */
7390 /* Override any GCC internal prototype to avoid an error.
7391 Use char because int might match the return type of a GCC
7392 builtin and then its argument prototype would still apply. */
7396 char rresvport_af ();
7400 return rresvport_af ();
7405 for ac_lib in '' nsl; do
7406 if test -z "$ac_lib"; then
7407 ac_res="none required"
7410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7412 if ac_fn_c_try_link "$LINENO"; then :
7413 ac_cv_search_rresvport_af=$ac_res
7415 rm -f core conftest.err conftest.$ac_objext \
7417 if ${ac_cv_search_rresvport_af+:} false; then :
7421 if ${ac_cv_search_rresvport_af+:} false; then :
7424 ac_cv_search_rresvport_af=no
7427 LIBS=$ac_func_search_save_LIBS
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7430 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7431 ac_res=$ac_cv_search_rresvport_af
7432 if test "$ac_res" != no; then :
7433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7434 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7439 $as_echo_n "checking for library containing __res_init... " >&6; }
7440 if ${ac_cv_search___res_init+:} false; then :
7441 $as_echo_n "(cached) " >&6
7443 ac_func_search_save_LIBS=$LIBS
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7447 /* Override any GCC internal prototype to avoid an error.
7448 Use char because int might match the return type of a GCC
7449 builtin and then its argument prototype would still apply. */
7457 return __res_init ();
7462 for ac_lib in '' resolv bind; do
7463 if test -z "$ac_lib"; then
7464 ac_res="none required"
7467 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7469 if ac_fn_c_try_link "$LINENO"; then :
7470 ac_cv_search___res_init=$ac_res
7472 rm -f core conftest.err conftest.$ac_objext \
7474 if ${ac_cv_search___res_init+:} false; then :
7478 if ${ac_cv_search___res_init+:} false; then :
7481 ac_cv_search___res_init=no
7484 LIBS=$ac_func_search_save_LIBS
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7487 $as_echo "$ac_cv_search___res_init" >&6; }
7488 ac_res=$ac_cv_search___res_init
7489 if test "$ac_res" != no; then :
7490 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7491 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7495 $as_echo_n "checking for library containing res_9_init... " >&6; }
7496 if ${ac_cv_search_res_9_init+:} false; then :
7497 $as_echo_n "(cached) " >&6
7499 ac_func_search_save_LIBS=$LIBS
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7503 /* Override any GCC internal prototype to avoid an error.
7504 Use char because int might match the return type of a GCC
7505 builtin and then its argument prototype would still apply. */
7513 return res_9_init ();
7518 for ac_lib in '' resolv bind; do
7519 if test -z "$ac_lib"; then
7520 ac_res="none required"
7523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7525 if ac_fn_c_try_link "$LINENO"; then :
7526 ac_cv_search_res_9_init=$ac_res
7528 rm -f core conftest.err conftest.$ac_objext \
7530 if ${ac_cv_search_res_9_init+:} false; then :
7534 if ${ac_cv_search_res_9_init+:} false; then :
7537 ac_cv_search_res_9_init=no
7540 LIBS=$ac_func_search_save_LIBS
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7543 $as_echo "$ac_cv_search_res_9_init" >&6; }
7544 ac_res=$ac_cv_search_res_9_init
7545 if test "$ac_res" != no; then :
7546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7547 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7551 $as_echo_n "checking for library containing res_init... " >&6; }
7552 if ${ac_cv_search_res_init+:} false; then :
7553 $as_echo_n "(cached) " >&6
7555 ac_func_search_save_LIBS=$LIBS
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7559 /* Override any GCC internal prototype to avoid an error.
7560 Use char because int might match the return type of a GCC
7561 builtin and then its argument prototype would still apply. */
7574 for ac_lib in '' resolv bind; do
7575 if test -z "$ac_lib"; then
7576 ac_res="none required"
7579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7581 if ac_fn_c_try_link "$LINENO"; then :
7582 ac_cv_search_res_init=$ac_res
7584 rm -f core conftest.err conftest.$ac_objext \
7586 if ${ac_cv_search_res_init+:} false; then :
7590 if ${ac_cv_search_res_init+:} false; then :
7593 ac_cv_search_res_init=no
7596 LIBS=$ac_func_search_save_LIBS
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7599 $as_echo "$ac_cv_search_res_init" >&6; }
7600 ac_res=$ac_cv_search_res_init
7601 if test "$ac_res" != no; then :
7602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7603 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7612 # Tru64 5.1b leaks file descriptors with these functions; disable until
7613 # we can come up with a test for this...
7614 if test "$host_os_name" != "osf1"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7616 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7617 if ${ac_cv_search_getaddrinfo+:} false; then :
7618 $as_echo_n "(cached) " >&6
7620 ac_func_search_save_LIBS=$LIBS
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7624 /* Override any GCC internal prototype to avoid an error.
7625 Use char because int might match the return type of a GCC
7626 builtin and then its argument prototype would still apply. */
7630 char getaddrinfo ();
7634 return getaddrinfo ();
7639 for ac_lib in '' nsl; do
7640 if test -z "$ac_lib"; then
7641 ac_res="none required"
7644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7646 if ac_fn_c_try_link "$LINENO"; then :
7647 ac_cv_search_getaddrinfo=$ac_res
7649 rm -f core conftest.err conftest.$ac_objext \
7651 if ${ac_cv_search_getaddrinfo+:} false; then :
7655 if ${ac_cv_search_getaddrinfo+:} false; then :
7658 ac_cv_search_getaddrinfo=no
7661 LIBS=$ac_func_search_save_LIBS
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7664 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7665 ac_res=$ac_cv_search_getaddrinfo
7666 if test "$ac_res" != no; then :
7667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7668 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7673 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7674 if ${ac_cv_search_getnameinfo+:} false; then :
7675 $as_echo_n "(cached) " >&6
7677 ac_func_search_save_LIBS=$LIBS
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7681 /* Override any GCC internal prototype to avoid an error.
7682 Use char because int might match the return type of a GCC
7683 builtin and then its argument prototype would still apply. */
7687 char getnameinfo ();
7691 return getnameinfo ();
7696 for ac_lib in '' nsl; do
7697 if test -z "$ac_lib"; then
7698 ac_res="none required"
7701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7703 if ac_fn_c_try_link "$LINENO"; then :
7704 ac_cv_search_getnameinfo=$ac_res
7706 rm -f core conftest.err conftest.$ac_objext \
7708 if ${ac_cv_search_getnameinfo+:} false; then :
7712 if ${ac_cv_search_getnameinfo+:} false; then :
7715 ac_cv_search_getnameinfo=no
7718 LIBS=$ac_func_search_save_LIBS
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7721 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7722 ac_res=$ac_cv_search_getnameinfo
7723 if test "$ac_res" != no; then :
7724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7725 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7731 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7733 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7737 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7738 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7739 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7745 CUPS_DEFAULT_DOMAINSOCKET=""
7748 # Check whether --with-domainsocket was given.
7749 if test "${with_domainsocket+set}" = set; then :
7750 withval=$with_domainsocket; default_domainsocket="$withval"
7752 default_domainsocket=""
7756 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7757 if test "x$default_domainsocket" = x; then
7758 case "$host_os_name" in
7760 # Darwin and macOS do their own thing...
7761 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7764 # All others use FHS standard...
7765 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7769 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7772 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7774 cat >>confdefs.h <<_ACEOF
7775 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7779 CUPS_LISTEN_DOMAINSOCKET=""
7786 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7787 if test "x$ac_cv_func_poll" = xyes; then :
7788 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7792 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7793 if test "x$ac_cv_func_epoll_create" = xyes; then :
7794 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7798 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7799 if test "x$ac_cv_func_kqueue" = xyes; then :
7800 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7806 # Check whether --enable-gssapi was given.
7807 if test "${enable_gssapi+set}" = set; then :
7808 enableval=$enable_gssapi;
7815 if test x$enable_gssapi != xno; then
7816 if test -n "$ac_tool_prefix"; then
7817 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7818 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7822 $as_echo_n "(cached) " >&6
7826 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7848 if test -n "$KRB5CONFIG"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7850 $as_echo "$KRB5CONFIG" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7858 if test -z "$ac_cv_path_KRB5CONFIG"; then
7859 ac_pt_KRB5CONFIG=$KRB5CONFIG
7860 # Extract the first word of "krb5-config", so it can be a program name with args.
7861 set dummy krb5-config; ac_word=$2
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7865 $as_echo_n "(cached) " >&6
7867 case $ac_pt_KRB5CONFIG in
7869 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7891 if test -n "$ac_pt_KRB5CONFIG"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7893 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7899 if test "x$ac_pt_KRB5CONFIG" = x; then
7902 case $cross_compiling:$ac_tool_warned in
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7906 ac_tool_warned=yes ;;
7908 KRB5CONFIG=$ac_pt_KRB5CONFIG
7911 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7914 if test "x$KRB5CONFIG" != x; then
7915 case "$host_os_name" in
7917 # macOS weak-links to the Kerberos framework...
7918 LIBGSSAPI="-weak_framework Kerberos"
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7920 $as_echo_n "checking for GSS framework... " >&6; }
7921 if test -d /System/Library/Frameworks/GSS.framework; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7923 $as_echo "yes" >&6; }
7924 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927 $as_echo "no" >&6; }
7931 # Solaris has a non-standard krb5-config, don't use it!
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7933 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7934 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7935 $as_echo_n "(cached) " >&6
7937 ac_check_lib_save_LIBS=$LIBS
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7942 /* Override any GCC internal prototype to avoid an error.
7943 Use char because int might match the return type of a GCC
7944 builtin and then its argument prototype would still apply. */
7948 char gss_display_status ();
7952 return gss_display_status ();
7957 if ac_fn_c_try_link "$LINENO"; then :
7958 ac_cv_lib_gss_gss_display_status=yes
7960 ac_cv_lib_gss_gss_display_status=no
7962 rm -f core conftest.err conftest.$ac_objext \
7963 conftest$ac_exeext conftest.$ac_ext
7964 LIBS=$ac_check_lib_save_LIBS
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7967 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7968 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7970 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7972 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7973 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7974 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7979 # Other platforms just ask for GSSAPI
7980 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7981 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7982 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7986 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7989 # Check for vendor-specific implementations...
7990 case "$host_os_name" in
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7993 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7994 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7995 $as_echo_n "(cached) " >&6
7997 ac_check_lib_save_LIBS=$LIBS
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8002 /* Override any GCC internal prototype to avoid an error.
8003 Use char because int might match the return type of a GCC
8004 builtin and then its argument prototype would still apply. */
8008 char gss_display_status ();
8012 return gss_display_status ();
8017 if ac_fn_c_try_link "$LINENO"; then :
8018 ac_cv_lib_gss_gss_display_status=yes
8020 ac_cv_lib_gss_gss_display_status=no
8022 rm -f core conftest.err conftest.$ac_objext \
8023 conftest$ac_exeext conftest.$ac_ext
8024 LIBS=$ac_check_lib_save_LIBS
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8027 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8028 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8030 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8032 LIBGSSAPI="-lgss -lgssapi_krb5"
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8038 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8039 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8040 $as_echo_n "(cached) " >&6
8042 ac_check_lib_save_LIBS=$LIBS
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8047 /* Override any GCC internal prototype to avoid an error.
8048 Use char because int might match the return type of a GCC
8049 builtin and then its argument prototype would still apply. */
8053 char gss_display_status ();
8057 return gss_display_status ();
8062 if ac_fn_c_try_link "$LINENO"; then :
8063 ac_cv_lib_gss_gss_display_status=yes
8065 ac_cv_lib_gss_gss_display_status=no
8067 rm -f core conftest.err conftest.$ac_objext \
8068 conftest$ac_exeext conftest.$ac_ext
8069 LIBS=$ac_check_lib_save_LIBS
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8072 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8073 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8075 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8084 if test "x$LIBGSSAPI" != x; then
8085 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8086 if test "x$ac_cv_header_krb5_h" = xyes; then :
8087 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8092 if test -d /System/Library/Frameworks/GSS.framework; then
8093 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
8094 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
8095 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8100 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
8101 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
8102 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
8107 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
8108 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
8109 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8115 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8116 if test "x$ac_cv_header_gssapi_h" = xyes; then :
8117 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8122 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8123 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8124 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8132 LIBS="$LIBS $LIBGSSAPI"
8134 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8135 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8136 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8142 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8143 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 #include <gssapi/gssapi.h>
8150 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8155 if ac_fn_c_try_compile "$LINENO"; then :
8156 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8159 $as_echo "yes" >&6; }
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 #include <GSS/gssapi.h>
8172 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8177 if ac_fn_c_try_compile "$LINENO"; then :
8178 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8181 $as_echo "yes" >&6; }
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8194 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8199 if ac_fn_c_try_compile "$LINENO"; then :
8200 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8203 $as_echo "yes" >&6; }
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 # Check whether --with-gssservicename was given.
8217 if test "${with_gssservicename+set}" = set; then :
8218 withval=$with_gssservicename; default_gssservicename="$withval"
8220 default_gssservicename="default"
8224 if test x$default_gssservicename != xno; then
8225 if test "x$default_gssservicename" = "xdefault"; then
8226 CUPS_DEFAULT_GSSSERVICENAME="host"
8228 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8231 CUPS_DEFAULT_GSSSERVICENAME=""
8235 cat >>confdefs.h <<_ACEOF
8236 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8241 # Check whether --enable-threads was given.
8242 if test "${enable_threads+set}" = set; then :
8243 enableval=$enable_threads;
8250 if test "x$enable_threads" != xno; then
8251 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8252 if test "x$ac_cv_header_pthread_h" = xyes; then :
8253 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8259 if test x$ac_cv_header_pthread_h = xyes; then
8260 for flag in -lpthreads -lpthread -pthread; do
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8262 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8267 #include <pthread.h>
8271 pthread_create(0, 0, 0, 0);
8276 if ac_fn_c_try_link "$LINENO"; then :
8281 rm -f core conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext conftest.$ac_ext
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8284 $as_echo "$have_pthread" >&6; }
8286 if test $have_pthread = yes; then
8287 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8289 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8290 # be POSIX-compliant... :(
8291 if test $host_os_name = sunos; then
8292 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8303 # Check whether --enable-ssl was given.
8304 if test "${enable_ssl+set}" = set; then :
8305 enableval=$enable_ssl;
8308 # Check whether --enable-cdsassl was given.
8309 if test "${enable_cdsassl+set}" = set; then :
8310 enableval=$enable_cdsassl;
8313 # Check whether --enable-gnutls was given.
8314 if test "${enable_gnutls+set}" = set; then :
8315 enableval=$enable_gnutls;
8322 CUPS_SERVERKEYCHAIN=""
8324 if test x$enable_ssl != xno; then
8325 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8326 if test $host_os_name = darwin; then
8327 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8328 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8331 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8333 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8335 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8337 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8338 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8339 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8344 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8345 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8346 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8351 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8352 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8353 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8358 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8360 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8361 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8366 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8367 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8368 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8373 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8374 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8375 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8380 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8381 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8382 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8387 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8388 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8389 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8395 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8397 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8403 if test $host_os_version -ge 150; then
8404 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8410 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8411 if test -n "$ac_tool_prefix"; then
8412 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8413 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8417 $as_echo_n "(cached) " >&6
8419 case $LIBGNUTLSCONFIG in
8421 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 test -z "$as_dir" && as_dir=.
8429 for ac_exec_ext in '' $ac_executable_extensions; do
8430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8431 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8443 if test -n "$LIBGNUTLSCONFIG"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8445 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448 $as_echo "no" >&6; }
8453 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8454 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8455 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8456 set dummy libgnutls-config; ac_word=$2
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458 $as_echo_n "checking for $ac_word... " >&6; }
8459 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8460 $as_echo_n "(cached) " >&6
8462 case $ac_pt_LIBGNUTLSCONFIG in
8464 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 test -z "$as_dir" && as_dir=.
8472 for ac_exec_ext in '' $ac_executable_extensions; do
8473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8474 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8486 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8488 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491 $as_echo "no" >&6; }
8494 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8497 case $cross_compiling:$ac_tool_warned in
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8501 ac_tool_warned=yes ;;
8503 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8506 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8509 if $PKGCONFIG --exists gnutls; then
8511 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8512 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8513 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8515 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8517 elif test "x$LIBGNUTLSCONFIG" != x; then
8519 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8520 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8521 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8523 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8527 if test $have_ssl = 1; then
8528 CUPS_SERVERKEYCHAIN="ssl"
8531 LIBS="$LIBS $SSLLIBS"
8532 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8533 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8534 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8538 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8539 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8540 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8550 if test $have_ssl = 1; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8552 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8554 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8555 IPPALIASES="http https ipps"
8556 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8557 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8565 EXPORT_SSLLIBS="$SSLLIBS"
8569 # Check whether --enable-pam was given.
8570 if test "${enable_pam+set}" = set; then :
8571 enableval=$enable_pam;
8575 # Check whether --with-pam_module was given.
8576 if test "${with_pam_module+set}" = set; then :
8577 withval=$with_pam_module;
8584 PAMMOD="pam_unknown.so"
8585 PAMMODAUTH="pam_unknown.so"
8587 if test x$enable_pam != xno; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8591 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8592 if ${ac_cv_lib_dl_dlopen+:} false; then :
8593 $as_echo_n "(cached) " >&6
8595 ac_check_lib_save_LIBS=$LIBS
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8600 /* Override any GCC internal prototype to avoid an error.
8601 Use char because int might match the return type of a GCC
8602 builtin and then its argument prototype would still apply. */
8615 if ac_fn_c_try_link "$LINENO"; then :
8616 ac_cv_lib_dl_dlopen=yes
8618 ac_cv_lib_dl_dlopen=no
8620 rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 LIBS=$ac_check_lib_save_LIBS
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8625 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8626 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8627 cat >>confdefs.h <<_ACEOF
8628 #define HAVE_LIBDL 1
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8636 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8637 if ${ac_cv_lib_pam_pam_start+:} false; then :
8638 $as_echo_n "(cached) " >&6
8640 ac_check_lib_save_LIBS=$LIBS
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8645 /* Override any GCC internal prototype to avoid an error.
8646 Use char because int might match the return type of a GCC
8647 builtin and then its argument prototype would still apply. */
8655 return pam_start ();
8660 if ac_fn_c_try_link "$LINENO"; then :
8661 ac_cv_lib_pam_pam_start=yes
8663 ac_cv_lib_pam_pam_start=no
8665 rm -f core conftest.err conftest.$ac_objext \
8666 conftest$ac_exeext conftest.$ac_ext
8667 LIBS=$ac_check_lib_save_LIBS
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8670 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8671 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8672 cat >>confdefs.h <<_ACEOF
8673 #define HAVE_LIBPAM 1
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8681 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8682 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8683 $as_echo_n "(cached) " >&6
8685 ac_check_lib_save_LIBS=$LIBS
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8690 /* Override any GCC internal prototype to avoid an error.
8691 Use char because int might match the return type of a GCC
8692 builtin and then its argument prototype would still apply. */
8696 char pam_set_item ();
8700 return pam_set_item ();
8705 if ac_fn_c_try_link "$LINENO"; then :
8706 ac_cv_lib_pam_pam_set_item=yes
8708 ac_cv_lib_pam_pam_set_item=no
8710 rm -f core conftest.err conftest.$ac_objext \
8711 conftest$ac_exeext conftest.$ac_ext
8712 LIBS=$ac_check_lib_save_LIBS
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8715 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8716 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8717 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8722 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8723 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8724 $as_echo_n "(cached) " >&6
8726 ac_check_lib_save_LIBS=$LIBS
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8731 /* Override any GCC internal prototype to avoid an error.
8732 Use char because int might match the return type of a GCC
8733 builtin and then its argument prototype would still apply. */
8737 char pam_setcred ();
8741 return pam_setcred ();
8746 if ac_fn_c_try_link "$LINENO"; then :
8747 ac_cv_lib_pam_pam_setcred=yes
8749 ac_cv_lib_pam_pam_setcred=no
8751 rm -f core conftest.err conftest.$ac_objext \
8752 conftest$ac_exeext conftest.$ac_ext
8753 LIBS=$ac_check_lib_save_LIBS
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8756 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8757 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8758 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8762 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8763 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8768 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8769 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8770 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8771 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8778 if test x$ac_cv_lib_pam_pam_start != xno; then
8779 # Set the necessary libraries for PAM...
8780 if test x$ac_cv_lib_dl_dlopen != xno; then
8781 PAMLIBS="-lpam -ldl"
8786 # Find the PAM configuration directory, if any...
8787 for dir in /private/etc/pam.d /etc/pam.d; do
8788 if test -d $dir; then
8797 case "$host_os_name" in
8800 if test "x$with_pam_module" != x; then
8801 PAMFILE="pam.$with_pam_module"
8802 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8803 PAMFILE="pam.opendirectory"
8805 PAMFILE="pam.securityserver"
8810 # All others; this test might need to be updated
8811 # as Linux distributors move things around...
8812 if test "x$with_pam_module" != x; then
8813 PAMMOD="pam_${with_pam_module}.so"
8814 elif test -f /etc/pam.d/common-auth; then
8815 PAMFILE="pam.common"
8818 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
8819 if test -d $dir; then
8825 if test -f $moddir/pam_unix2.so; then
8826 PAMMOD="pam_unix2.so"
8827 elif test -f $moddir/pam_unix.so; then
8828 PAMMOD="pam_unix.so"
8832 if test "x$PAMMOD" = xpam_unix.so; then
8833 PAMMODAUTH="$PAMMOD shadow nodelay"
8835 PAMMODAUTH="$PAMMOD nodelay"
8848 # Check whether --enable-largefile was given.
8849 if test "${enable_largefile+set}" = set; then :
8850 enableval=$enable_largefile;
8853 if test "$enable_largefile" != no; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8856 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8857 if ${ac_cv_sys_largefile_CC+:} false; then :
8858 $as_echo_n "(cached) " >&6
8860 ac_cv_sys_largefile_CC=no
8861 if test "$GCC" != yes; then
8864 # IRIX 6.2 and later do not support large files by default,
8865 # so use the C compiler's -n32 option if that helps.
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 #include <sys/types.h>
8869 /* Check that off_t can represent 2**63 - 1 correctly.
8870 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8871 since some C++ compilers masquerading as C compilers
8872 incorrectly reject 9223372036854775807. */
8873 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8874 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8875 && LARGE_OFF_T % 2147483647 == 1)
8885 if ac_fn_c_try_compile "$LINENO"; then :
8888 rm -f core conftest.err conftest.$ac_objext
8890 if ac_fn_c_try_compile "$LINENO"; then :
8891 ac_cv_sys_largefile_CC=' -n32'; break
8893 rm -f core conftest.err conftest.$ac_objext
8897 rm -f conftest.$ac_ext
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8901 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8902 if test "$ac_cv_sys_largefile_CC" != no; then
8903 CC=$CC$ac_cv_sys_largefile_CC
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8907 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8908 if ${ac_cv_sys_file_offset_bits+:} false; then :
8909 $as_echo_n "(cached) " >&6
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 #include <sys/types.h>
8915 /* Check that off_t can represent 2**63 - 1 correctly.
8916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8917 since some C++ compilers masquerading as C compilers
8918 incorrectly reject 9223372036854775807. */
8919 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8921 && LARGE_OFF_T % 2147483647 == 1)
8931 if ac_fn_c_try_compile "$LINENO"; then :
8932 ac_cv_sys_file_offset_bits=no; break
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8937 #define _FILE_OFFSET_BITS 64
8938 #include <sys/types.h>
8939 /* Check that off_t can represent 2**63 - 1 correctly.
8940 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8941 since some C++ compilers masquerading as C compilers
8942 incorrectly reject 9223372036854775807. */
8943 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8944 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8945 && LARGE_OFF_T % 2147483647 == 1)
8955 if ac_fn_c_try_compile "$LINENO"; then :
8956 ac_cv_sys_file_offset_bits=64; break
8958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959 ac_cv_sys_file_offset_bits=unknown
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8964 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8965 case $ac_cv_sys_file_offset_bits in #(
8968 cat >>confdefs.h <<_ACEOF
8969 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8974 if test $ac_cv_sys_file_offset_bits = unknown; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8976 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8977 if ${ac_cv_sys_large_files+:} false; then :
8978 $as_echo_n "(cached) " >&6
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8983 #include <sys/types.h>
8984 /* Check that off_t can represent 2**63 - 1 correctly.
8985 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8986 since some C++ compilers masquerading as C compilers
8987 incorrectly reject 9223372036854775807. */
8988 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8989 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8990 && LARGE_OFF_T % 2147483647 == 1)
9000 if ac_fn_c_try_compile "$LINENO"; then :
9001 ac_cv_sys_large_files=no; break
9003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h. */
9006 #define _LARGE_FILES 1
9007 #include <sys/types.h>
9008 /* Check that off_t can represent 2**63 - 1 correctly.
9009 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9010 since some C++ compilers masquerading as C compilers
9011 incorrectly reject 9223372036854775807. */
9012 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9014 && LARGE_OFF_T % 2147483647 == 1)
9024 if ac_fn_c_try_compile "$LINENO"; then :
9025 ac_cv_sys_large_files=1; break
9027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9028 ac_cv_sys_large_files=unknown
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9033 $as_echo "$ac_cv_sys_large_files" >&6; }
9034 case $ac_cv_sys_large_files in #(
9037 cat >>confdefs.h <<_ACEOF
9038 #define _LARGE_FILES $ac_cv_sys_large_files
9048 if test x$enable_largefile != xno; then
9049 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
9051 if test x$ac_cv_sys_large_files = x1; then
9052 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
9055 if test x$ac_cv_sys_file_offset_bits = x64; then
9056 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9062 $as_echo_n "checking for long long int... " >&6; }
9063 if ${ac_cv_c_long_long+:} false; then :
9064 $as_echo_n "(cached) " >&6
9066 if test "$GCC" = yes; then
9067 ac_cv_c_long_long=yes
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9080 if ac_fn_c_try_compile "$LINENO"; then :
9081 ac_cv_c_long_long=yes
9083 ac_cv_c_long_long=no
9085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9089 $as_echo "$ac_cv_c_long_long" >&6; }
9091 if test $ac_cv_c_long_long = yes; then
9092 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9096 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9097 if test "x$ac_cv_func_strtoll" = xyes; then :
9098 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9104 # Check whether --enable-avahi was given.
9105 if test "${enable_avahi+set}" = set; then :
9106 enableval=$enable_avahi;
9109 # Check whether --enable-dnssd was given.
9110 if test "${enable_dnssd+set}" = set; then :
9111 enableval=$enable_dnssd;
9115 # Check whether --with-dnssd-libs was given.
9116 if test "${with_dnssd_libs+set}" = set; then :
9117 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9118 DSOFLAGS="-L$withval $DSOFLAGS"
9122 # Check whether --with-dnssd-includes was given.
9123 if test "${with_dnssd_includes+set}" = set; then :
9124 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9125 CPPFLAGS="-I$withval $CPPFLAGS"
9134 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9136 $as_echo_n "checking for Avahi... " >&6; }
9137 if $PKGCONFIG --exists avahi-client; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9139 $as_echo "yes" >&6; }
9140 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
9141 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
9142 DNSSD_BACKEND="dnssd"
9143 IPPFIND_BIN="ippfind"
9144 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9145 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 $as_echo "no" >&6; }
9153 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9154 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9155 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9157 case "$host_os_name" in
9159 # Darwin and macOS...
9160 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9162 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9163 DNSSD_BACKEND="dnssd"
9164 IPPFIND_BIN="ippfind"
9165 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9170 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9172 LIBS="$LIBS -ldns_sd"
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9179 int constant = kDNSServiceFlagsShareConnection;
9180 unsigned char txtRecord[100];
9182 TXTRecordGetValuePtr(sizeof(txtRecord),
9183 txtRecord, "value", &valueLen);
9188 if ac_fn_c_try_compile "$LINENO"; then :
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9190 $as_echo "yes" >&6; }
9191 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9193 DNSSDLIBS="-ldns_sd"
9194 DNSSD_BACKEND="dnssd"
9196 IPPFIND_BIN="ippfind"
9197 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199 $as_echo "no" >&6; }
9201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9222 # Check whether --enable-launchd was given.
9223 if test "${enable_launchd+set}" = set; then :
9224 enableval=$enable_launchd;
9230 if test x$enable_launchd != xno; then
9231 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9232 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9234 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9236 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9240 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9241 if test "x$ac_cv_header_launch_h" = xyes; then :
9242 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9248 if test "$host_os_name" = darwin; then
9249 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9250 # liblaunch is already part of libSystem
9254 # Check whether --enable-systemd was given.
9255 if test "${enable_systemd+set}" = set; then :
9256 enableval=$enable_systemd;
9260 # Check whether --with-systemd was given.
9261 if test "${with_systemd+set}" = set; then :
9262 withval=$with_systemd; SYSTEMD_DIR="$withval"
9269 if test x$enable_systemd != xno; then
9270 if test "x$PKGCONFIG" = x; then
9271 if test x$enable_systemd = xyes; then
9272 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9277 $as_echo_n "checking for libsystemd... " >&6; }
9278 if $PKGCONFIG --exists libsystemd; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9280 $as_echo "yes" >&6; }
9282 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9283 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9284 elif $PKGCONFIG --exists libsystemd-daemon; then
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9286 $as_echo "yes - legacy" >&6; }
9288 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9289 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9291 if $PKGCONFIG --exists libsystemd-journal; then
9292 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9293 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9297 $as_echo "no" >&6; }
9300 if test $have_systemd = yes; then
9301 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9303 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9305 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9306 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9307 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9312 if test "x$SYSTEMD_DIR" = x; then
9313 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9319 # Check whether --enable-upstart was given.
9320 if test "${enable_upstart+set}" = set; then :
9321 enableval=$enable_upstart;
9324 if test "x$enable_upstart" = "xyes"; then
9325 if test "x$have_systemd" = "xyes"; then
9326 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9328 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9330 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9337 # Check whether --with-smfmanifestdir was given.
9338 if test "${with_smfmanifestdir+set}" = set; then :
9339 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9344 # Check whether --with-rcdir was given.
9345 if test "${with_rcdir+set}" = set; then :
9346 withval=$with_rcdir; rcdir="$withval"
9352 # Check whether --with-rclevels was given.
9353 if test "${with_rclevels+set}" = set; then :
9354 withval=$with_rclevels; rclevels="$withval"
9360 # Check whether --with-rcstart was given.
9361 if test "${with_rcstart+set}" = set; then :
9362 withval=$with_rcstart; rcstart="$withval"
9368 # Check whether --with-rcstop was given.
9369 if test "${with_rcstop+set}" = set; then :
9370 withval=$with_rcstop; rcstop="$withval"
9376 if test x$rcdir = x; then
9377 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9378 # Fall back on "init", the original service startup interface...
9379 if test -d /sbin/init.d; then
9381 rcdir="/sbin/init.d"
9382 elif test -d /etc/init.d; then
9394 if test "x$rcstart" = x; then
9395 case "$host_os_name" in
9413 if test "x$rcstop" = x; then
9414 case "$host_os_name" in
9429 RCLEVELS="$rclevels"
9438 if test "x$rcdir" != xno; then
9439 if test "x$rclevels" = x; then
9447 # Check whether --with-xinetd was given.
9448 if test "${with_xinetd+set}" = set; then :
9449 withval=$with_xinetd; xinetd="$withval"
9457 if test "x$xinetd" = x; then
9458 if test ! -x /sbin/launchd; then
9459 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9460 if test -d $dir; then
9466 elif test "x$xinetd" != xno; then
9471 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9474 # Check whether --with-languages was given.
9475 if test "${with_languages+set}" = set; then :
9476 withval=$with_languages;
9478 none | no) LANGUAGES="" ;;
9480 *) LANGUAGES="$withval" ;;
9487 # Check whether --with-bundledir was given.
9488 if test "${with_bundledir+set}" = set; then :
9489 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9491 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9492 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9501 if test "x$CUPS_BUNDLEDIR" != x; then
9502 cat >>confdefs.h <<_ACEOF
9503 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9509 # Check whether --with-exe_file_perm was given.
9510 if test "${with_exe_file_perm+set}" = set; then :
9511 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9513 case "$host_os_name" in
9515 CUPS_EXE_FILE_PERM="755"
9518 CUPS_EXE_FILE_PERM="555"
9526 # Check whether --with-config_file_perm was given.
9527 if test "${with_config_file_perm+set}" = set; then :
9528 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9530 if test "x$host_os_name" = xdarwin; then
9531 CUPS_CONFIG_FILE_PERM="644"
9533 CUPS_CONFIG_FILE_PERM="640"
9538 cat >>confdefs.h <<_ACEOF
9539 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9544 # Check whether --with-cupsd_file_perm was given.
9545 if test "${with_cupsd_file_perm+set}" = set; then :
9546 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9548 case "$host_os_name" in
9550 CUPS_CUPSD_FILE_PERM="700"
9553 CUPS_CUPSD_FILE_PERM="500"
9561 # Check whether --with-log_file_perm was given.
9562 if test "${with_log_file_perm+set}" = set; then :
9563 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9565 CUPS_LOG_FILE_PERM="644"
9569 cat >>confdefs.h <<_ACEOF
9570 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9575 # Check whether --with-fatal_errors was given.
9576 if test "${with_fatal_errors+set}" = set; then :
9577 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9579 CUPS_FATAL_ERRORS="config"
9583 cat >>confdefs.h <<_ACEOF
9584 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9589 # Check whether --with-log_level was given.
9590 if test "${with_log_level+set}" = set; then :
9591 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9593 CUPS_LOG_LEVEL="warn"
9597 cat >>confdefs.h <<_ACEOF
9598 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9603 # Check whether --with-access_log_level was given.
9604 if test "${with_access_log_level+set}" = set; then :
9605 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9607 CUPS_ACCESS_LOG_LEVEL="none"
9611 cat >>confdefs.h <<_ACEOF
9612 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9616 # Check whether --enable-page_logging was given.
9617 if test "${enable_page_logging+set}" = set; then :
9618 enableval=$enable_page_logging;
9621 if test "x$enable_page_logging" = xyes; then
9622 CUPS_PAGE_LOG_FORMAT=""
9624 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9628 # Check whether --enable-browsing was given.
9629 if test "${enable_browsing+set}" = set; then :
9630 enableval=$enable_browsing;
9633 if test "x$enable_browsing" = xno; then
9635 cat >>confdefs.h <<_ACEOF
9636 #define CUPS_DEFAULT_BROWSING 0
9641 cat >>confdefs.h <<_ACEOF
9642 #define CUPS_DEFAULT_BROWSING 1
9649 # Check whether --with-local_protocols was given.
9650 if test "${with_local_protocols+set}" = set; then :
9651 withval=$with_local_protocols; default_local_protocols="$withval"
9653 default_local_protocols="default"
9657 if test x$with_local_protocols != xno; then
9658 if test "x$default_local_protocols" = "xdefault"; then
9659 if test "x$DNSSD_BACKEND" != "x"; then
9660 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9662 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9665 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9668 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9672 cat >>confdefs.h <<_ACEOF
9673 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9677 # Check whether --enable-default_shared was given.
9678 if test "${enable_default_shared+set}" = set; then :
9679 enableval=$enable_default_shared;
9682 if test "x$enable_default_shared" = xno; then
9683 CUPS_DEFAULT_SHARED="No"
9684 cat >>confdefs.h <<_ACEOF
9685 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9689 CUPS_DEFAULT_SHARED="Yes"
9690 cat >>confdefs.h <<_ACEOF
9691 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9698 # Check whether --with-cups_user was given.
9699 if test "${with_cups_user+set}" = set; then :
9700 withval=$with_cups_user; CUPS_USER="$withval"
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9703 $as_echo_n "checking for default print user... " >&6; }
9704 if test x$host_os_name = xdarwin; then
9705 if test x`id
-u _lp
2>/dev
/null
` = x; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9711 $as_echo "$CUPS_USER" >&6; }
9712 elif test -f /etc/passwd; then
9714 for user in lp lpd guest daemon nobody; do
9715 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9718 $as_echo "$user" >&6; }
9723 if test x$CUPS_USER = x; then
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9726 $as_echo "not found" >&6; }
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9731 $as_echo "no password file" >&6; }
9736 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9737 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9741 # Check whether --with-cups_group was given.
9742 if test "${with_cups_group+set}" = set; then :
9743 withval=$with_cups_group; CUPS_GROUP="$withval"
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9746 $as_echo_n "checking for default print group... " >&6; }
9747 if test x$host_os_name = xdarwin; then
9748 if test x`id
-g _lp
2>/dev
/null
` = x; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9754 $as_echo "$CUPS_GROUP" >&6; }
9755 elif test -f /etc/group; then
9756 GROUP_LIST="_lp lp nobody"
9758 for group in $GROUP_LIST; do
9759 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9762 $as_echo "$group" >&6; }
9767 if test x$CUPS_GROUP = x; then
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9770 $as_echo "not found" >&6; }
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9775 $as_echo "no group file" >&6; }
9780 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9781 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9785 # Check whether --with-system_groups was given.
9786 if test "${with_system_groups+set}" = set; then :
9787 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9789 if test x$host_os_name = xdarwin; then
9790 CUPS_SYSTEM_GROUPS="admin"
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9793 $as_echo_n "checking for default system groups... " >&6; }
9794 if test -f /etc/group; then
9795 CUPS_SYSTEM_GROUPS=""
9796 GROUP_LIST="lpadmin sys system root"
9797 for group in $GROUP_LIST; do
9798 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9799 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9800 CUPS_SYSTEM_GROUPS="$group"
9802 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9807 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9808 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9810 $as_echo "no groups found" >&6; }
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9813 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9816 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9818 $as_echo "no group file" >&6; }
9824 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9826 for group in $CUPS_SYSTEM_GROUPS; do
9827 if test "x$CUPS_GROUP" = "x$group"; then
9828 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9837 cat >>confdefs.h <<_ACEOF
9838 #define CUPS_DEFAULT_USER "$CUPS_USER"
9841 cat >>confdefs.h <<_ACEOF
9842 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9845 cat >>confdefs.h <<_ACEOF
9846 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9851 # Check whether --with-printcap was given.
9852 if test "${with_printcap+set}" = set; then :
9853 withval=$with_printcap; default_printcap="$withval"
9855 default_printcap="default"
9859 if test x$default_printcap != xno; then
9860 if test "x$default_printcap" = "xdefault"; then
9861 case $host_os_name in
9863 if test $host_os_version -ge 90; then
9864 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9866 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9870 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9873 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9877 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9880 CUPS_DEFAULT_PRINTCAP=""
9884 cat >>confdefs.h <<_ACEOF
9885 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9890 # Check whether --with-lpdconfigfile was given.
9891 if test "${with_lpdconfigfile+set}" = set; then :
9892 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9894 default_lpdconfigfile="default"
9898 if test x$default_lpdconfigfile != xno; then
9899 if test "x$default_lpdconfigfile" = "xdefault"; then
9900 case $host_os_name in
9902 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9905 if test "x$XINETD" != x; then
9906 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9908 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9913 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9916 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9919 cat >>confdefs.h <<_ACEOF
9920 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9926 # Check whether --with-smbconfigfile was given.
9927 if test "${with_smbconfigfile+set}" = set; then :
9928 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9930 default_smbconfigfile="default"
9934 if test x$default_smbconfigfile != xno; then
9935 if test "x$default_smbconfigfile" = "xdefault"; then
9936 if test -f /etc/smb.conf; then
9937 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9939 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9942 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9945 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9948 cat >>confdefs.h <<_ACEOF
9949 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9955 # Check whether --with-max-copies was given.
9956 if test "${with_max_copies+set}" = set; then :
9957 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9959 CUPS_MAX_COPIES="9999"
9964 cat >>confdefs.h <<_ACEOF
9965 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9969 # Check whether --enable-raw_printing was given.
9970 if test "${enable_raw_printing+set}" = set; then :
9971 enableval=$enable_raw_printing;
9974 if test "x$enable_raw_printing" != xno; then
9975 DEFAULT_RAW_PRINTING=""
9977 DEFAULT_RAW_PRINTING="#"
9982 # Check whether --with-snmp-address was given.
9983 if test "${with_snmp_address+set}" = set; then :
9984 withval=$with_snmp_address; if test "x$withval" = x; then
9985 CUPS_SNMP_ADDRESS=""
9987 CUPS_SNMP_ADDRESS="Address $withval"
9990 if test "x$host_os_name" = xdarwin; then
9991 CUPS_SNMP_ADDRESS=""
9993 CUPS_SNMP_ADDRESS="Address @LOCAL"
9999 # Check whether --with-snmp-community was given.
10000 if test "${with_snmp_community+set}" = set; then :
10001 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
10003 CUPS_SNMP_COMMUNITY="Community public"
10011 # Check whether --with-ipp-port was given.
10012 if test "${with_ipp_port+set}" = set; then :
10013 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
10015 DEFAULT_IPP_PORT="631"
10020 cat >>confdefs.h <<_ACEOF
10021 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
10025 # Check whether --enable-webif was given.
10026 if test "${enable_webif+set}" = set; then :
10027 enableval=$enable_webif;
10030 case "x$enable_webif" in
10033 CUPS_DEFAULT_WEBIF=0
10037 CUPS_DEFAULT_WEBIF=1
10040 if test $host_os_name = darwin; then
10042 CUPS_DEFAULT_WEBIF=0
10045 CUPS_DEFAULT_WEBIF=1
10051 cat >>confdefs.h <<_ACEOF
10052 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
10057 INSTALL_LANGUAGES=""
10058 UNINSTALL_LANGUAGES=""
10060 if test "x$LANGUAGES" != x; then
10061 INSTALL_LANGUAGES="install-languages"
10062 UNINSTALL_LANGUAGES="uninstall-languages"
10063 for lang in $LANGUAGES; do
10064 if test -f doc/$lang/index.html.in; then
10065 LANGFILES="$LANGFILES doc/$lang/index.html"
10068 if test -f templates/$lang/header.tmpl.in; then
10069 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10072 elif test "x$CUPS_BUNDLEDIR" != x; then
10073 INSTALL_LANGUAGES="install-langbundle"
10074 UNINSTALL_LANGUAGES="uninstall-langbundle"
10080 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"
10082 cat >confcache <<\_ACEOF
10083 # This file is a shell script that caches the results of configure
10084 # tests run on this system so they can be shared between configure
10085 # scripts and configure runs, see configure's option --config-cache.
10086 # It is not useful on other systems. If it contains results you don't
10087 # want to keep, you may remove or edit it.
10089 # config.status only pays attention to the cache file if you give it
10090 # the --recheck option to rerun configure.
10092 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10093 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10094 # following values.
10098 # The following way of writing the cache mishandles newlines in values,
10099 # but we know of no workaround that is simple, portable, and efficient.
10100 # So, we kill variables containing newlines.
10101 # Ultrix sh set writes to stderr and can't be redirected directly,
10102 # and sets the high bit in the cache file unless we assign to the vars.
10104 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10105 eval ac_val
=\$
$ac_var
10109 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10110 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10113 _ | IFS | as_nl
) ;; #(
10114 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10115 *) { eval $ac_var=; unset $ac_var;} ;;
10121 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10122 *${as_nl}ac_space
=\
*)
10123 # `set' does not quote correctly, so add quotes: double-quote
10124 # substitution turns \\\\ into \\, and sed turns \\ into \.
10127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10130 # `set' quotes correctly as required by POSIX, so do not add quotes.
10131 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10142 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10144 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10145 if test -w "$cache_file"; then
10146 if test "x$cache_file" != "x/dev/null"; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10148 $as_echo "$as_me: updating cache $cache_file" >&6;}
10149 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10150 cat confcache
>"$cache_file"
10152 case $cache_file in #(
10154 mv -f confcache
"$cache_file"$$
&&
10155 mv -f "$cache_file"$$
"$cache_file" ;; #(
10157 mv -f confcache
"$cache_file" ;;
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10163 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10168 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10169 # Let make expand exec_prefix.
10170 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10172 DEFS
=-DHAVE_CONFIG_H
10177 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10178 # 1. Remove the extension, and $U if already installed.
10179 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10180 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10181 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10182 # will be set to the directory where LIBOBJS objects are built.
10183 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10184 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10186 LIBOBJS
=$ac_libobjs
10188 LTLIBOBJS
=$ac_ltlibobjs
10192 : "${CONFIG_STATUS=./config.status}"
10194 ac_clean_files_save
=$ac_clean_files
10195 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10197 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10199 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10201 # Generated by $as_me.
10202 # Run this file to recreate the current configuration.
10203 # Compiler output produced by configure, useful for debugging
10204 # configure, is in config.log if it exists.
10207 ac_cs_recheck=false
10210 SHELL=\${CONFIG_SHELL-$SHELL}
10213 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10214 ## -------------------- ##
10215 ## M4sh Initialization. ##
10216 ## -------------------- ##
10218 # Be more Bourne compatible
10219 DUALCASE
=1; export DUALCASE
# for MKS sh
10220 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10223 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10224 # is contrary to our usage. Disable this feature.
10225 alias -g '${1+"$@"}'='"$@"'
10226 setopt NO_GLOB_SUBST
10228 case `(set -o) 2>/dev/null` in #(
10240 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10241 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10243 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10244 # Prefer a ksh shell builtin over an external printf program on Solaris,
10245 # but without wasting forks for bash or zsh.
10246 if test -z "$BASH_VERSION$ZSH_VERSION" \
10247 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10248 as_echo='print
-r --'
10249 as_echo_n='print
-rn --'
10250 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10251 as_echo='printf %s
\n'
10252 as_echo_n='printf %s
'
10254 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10255 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10256 as_echo_n='/usr
/ucb
/echo -n'
10258 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10259 as_echo_n_body='eval
10263 expr "X$arg" : "X\\(.*\\)$as_nl";
10264 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10266 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10268 export as_echo_n_body
10269 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10271 export as_echo_body
10272 as_echo='sh
-c $as_echo_body as_echo
'
10275 # The user is always right.
10276 if test "${PATH_SEPARATOR+set}" != set; then
10278 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10279 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10286 # We need space, tab and new line, in precisely that order. Quoting is
10287 # there to prevent editors from complaining about space-tab.
10288 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10289 # splitting by setting IFS to empty value.)
10292 # Find who we are. Look in the path if we contain no directory separator.
10295 *[\\/]* ) as_myself=$0 ;;
10296 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10297 for as_dir in $PATH
10300 test -z "$as_dir" && as_dir=.
10301 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10307 # We did not find ourselves, most probably we were run as `sh COMMAND'
10308 # in which case we are not to be found in the path.
10309 if test "x$as_myself" = x
; then
10312 if test ! -f "$as_myself"; then
10313 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10317 # Unset variables that we do not need and which cause bugs (e.g. in
10318 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10319 # suppresses any "Segmentation fault" message there. '((' could
10320 # trigger a bug in pdksh 5.2.14.
10321 for as_var
in BASH_ENV ENV MAIL MAILPATH
10322 do eval test x\
${$as_var+set} = xset \
10323 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10336 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10339 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10340 # ----------------------------------------
10341 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10342 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10343 # script with STATUS, using 1 if that was 0.
10346 as_status
=$1; test $as_status -eq 0 && as_status
=1
10348 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10349 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10351 $as_echo "$as_me: error: $2" >&2
10352 as_fn_exit
$as_status
10356 # as_fn_set_status STATUS
10357 # -----------------------
10358 # Set $? to STATUS, without forking.
10359 as_fn_set_status
()
10362 } # as_fn_set_status
10364 # as_fn_exit STATUS
10365 # -----------------
10366 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10370 as_fn_set_status
$1
10376 # Portably unset VAR.
10379 { eval $1=; unset $1;}
10381 as_unset
=as_fn_unset
10382 # as_fn_append VAR VALUE
10383 # ----------------------
10384 # Append the text in VALUE to the end of the definition contained in VAR. Take
10385 # advantage of any shell optimizations that allow amortized linear growth over
10386 # repeated appends, instead of the typical quadratic growth present in naive
10388 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10389 eval 'as_fn_append ()
10400 # as_fn_arith ARG...
10401 # ------------------
10402 # Perform arithmetic evaluation on the ARGs, and store the result in the
10403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10404 # must be portable across $(()) and expr.
10405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10406 eval 'as_fn_arith ()
10413 as_val
=`expr "$@" || test $? -eq 1`
10418 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10419 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10425 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10426 as_basename
=basename
10431 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10437 as_me
=`$as_basename -- "$0" ||
10438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10439 X"$0" : 'X\(//\)$' \| \
10440 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10442 sed '/^.*\/\([^/][^/]*\)\/*$/{
10456 # Avoid depending upon Character Ranges.
10457 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10458 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10459 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10460 as_cr_digits
='0123456789'
10461 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10463 ECHO_C
= ECHO_N
= ECHO_T
=
10464 case `echo -n x` in #(((((
10466 case `echo 'xy\c'` in
10467 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10469 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10476 rm -f conf$$ conf$$.exe conf$$.
file
10477 if test -d conf$$.dir
; then
10478 rm -f conf$$.dir
/conf$$.
file
10481 mkdir conf$$.dir
2>/dev
/null
10483 if (echo >conf$$.
file) 2>/dev
/null
; then
10484 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10486 # ... but there are two gotchas:
10487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10489 # In both cases, we have to default to `cp -p'.
10490 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10492 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10500 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10501 rmdir conf$$.dir
2>/dev
/null
10506 # Create "$as_dir" as a directory, including parents if necessary.
10511 -*) as_dir
=.
/$as_dir;;
10513 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10517 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10518 *) as_qdir
=$as_dir;;
10520 as_dirs
="'$as_qdir' $as_dirs"
10521 as_dir
=`$as_dirname -- "$as_dir" ||
10522 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10523 X"$as_dir" : 'X\(//\)[^/]' \| \
10524 X"$as_dir" : 'X\(//\)$' \| \
10525 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10526 $as_echo X"$as_dir" |
10527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10531 /^X\(\/\/\)[^/].*/{
10544 test -d "$as_dir" && break
10546 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10547 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10551 if mkdir
-p .
2>/dev
/null
; then
10552 as_mkdir_p
='mkdir -p "$as_dir"'
10554 test -d .
/-p && rmdir .
/-p
10558 if test -x / >/dev
/null
2>&1; then
10559 as_test_x
='test -x'
10561 if ls -dL / >/dev
/null
2>&1; then
10568 if test -d "$1"; then
10574 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10575 ???[sx]*):;;*)false;;esac;fi
10579 as_executable_p
=$as_test_x
10581 # Sed expression to map a string onto a valid CPP name.
10582 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10584 # Sed expression to map a string onto a valid variable name.
10585 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10589 ## ----------------------------------- ##
10590 ## Main body of $CONFIG_STATUS script. ##
10591 ## ----------------------------------- ##
10593 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10596 # Save the log message, to keep $0 and so on meaningful, and to
10597 # report actual input values of CONFIG_FILES etc. instead of their
10598 # values after options handling.
10600 This file was extended by CUPS $as_me 2.3b6, which was
10601 generated by GNU Autoconf 2.68. Invocation command line was
10603 CONFIG_FILES = $CONFIG_FILES
10604 CONFIG_HEADERS = $CONFIG_HEADERS
10605 CONFIG_LINKS = $CONFIG_LINKS
10606 CONFIG_COMMANDS = $CONFIG_COMMANDS
10609 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10614 case $ac_config_files in *"
10615 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10618 case $ac_config_headers in *"
10619 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10624 # Files that config.status was made for.
10625 config_files="$ac_config_files"
10626 config_headers="$ac_config_headers"
10630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10632 \`$as_me' instantiates files and other configuration actions
10633 from templates according to the current configuration. Unless the files
10634 and actions are specified as TAGs, all are instantiated by default.
10636 Usage: $0 [OPTION]... [TAG]...
10638 -h, --help print this help, then exit
10639 -V, --version print version number and configuration settings, then exit
10640 --config print configuration, then exit
10641 -q, --quiet, --silent
10642 do not print progress messages
10643 -d, --debug don't remove temporary files
10644 --recheck update $as_me by reconfiguring in the same conditions
10645 --file=FILE[:TEMPLATE]
10646 instantiate the configuration file FILE
10647 --header=FILE[:TEMPLATE]
10648 instantiate the configuration header FILE
10650 Configuration files:
10653 Configuration headers:
10656 Report bugs to <https://github.com/apple/cups/issues>.
10657 CUPS home page: <https://www.cups.org/>."
10660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10661 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10663 CUPS config.status 2.3b6
10664 configured by $0, generated by GNU Autoconf 2.68,
10665 with options \\"\$ac_cs_config\\"
10667 Copyright (C) 2010 Free Software Foundation, Inc.
10668 This config.status script is free software; the Free Software Foundation
10669 gives unlimited permission to copy, distribute and modify it."
10674 test -n "\$AWK" || AWK=awk
10677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10678 # The default lists apply if the user does not specify any file.
10684 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10685 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10689 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10701 # Handling of the options.
10702 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10704 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10705 $as_echo "$ac_cs_version"; exit ;;
10706 --config |
--confi |
--conf |
--con |
--co |
--c )
10707 $as_echo "$ac_cs_config"; exit ;;
10708 --debug |
--debu |
--deb |
--de |
--d |
-d )
10710 --file |
--fil |
--fi |
--f )
10713 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10714 '') as_fn_error $?
"missing file argument" ;;
10716 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10717 ac_need_defaults
=false
;;
10718 --header |
--heade |
--head |
--hea )
10721 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10723 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10724 ac_need_defaults
=false
;;
10726 # Conflict between --help and --header
10727 as_fn_error $?
"ambiguous option: \`$1'
10728 Try \`$0 --help' for more information.";;
10729 --help |
--hel |
-h )
10730 $as_echo "$ac_cs_usage"; exit ;;
10731 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10732 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10735 # This is an error.
10736 -*) as_fn_error $?
"unrecognized option: \`$1'
10737 Try \`$0 --help' for more information." ;;
10739 *) as_fn_append ac_config_targets
" $1"
10740 ac_need_defaults
=false
;;
10746 ac_configure_extra_args
=
10748 if $ac_cs_silent; then
10750 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10755 if \$ac_cs_recheck; then
10756 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10758 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10759 CONFIG_SHELL='$SHELL'
10760 export CONFIG_SHELL
10765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10769 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10770 ## Running $as_me. ##
10776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10781 # Handling of arguments.
10782 for ac_config_target
in $ac_config_targets
10784 case $ac_config_target in
10785 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10786 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10787 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10788 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10789 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10790 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10791 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10792 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10793 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10794 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10795 "man/client.conf.man") CONFIG_FILES
="$CONFIG_FILES man/client.conf.man" ;;
10796 "man/cups-files.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cups-files.conf.man" ;;
10797 "man/cups-lpd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-lpd.man" ;;
10798 "man/cups-snmp.man") CONFIG_FILES
="$CONFIG_FILES man/cups-snmp.man" ;;
10799 "man/cupsaddsmb.man") CONFIG_FILES
="$CONFIG_FILES man/cupsaddsmb.man" ;;
10800 "man/cupsd.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.conf.man" ;;
10801 "man/cupsd.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.man" ;;
10802 "man/lpoptions.man") CONFIG_FILES
="$CONFIG_FILES man/lpoptions.man" ;;
10803 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10804 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10805 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10806 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10807 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10808 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10809 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10810 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10811 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10812 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10813 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10815 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10820 # If the user did not use the arguments to specify the items to instantiate,
10821 # then the envvar interface is used. Set only those that are not.
10822 # We use the long form for the default assignment because of an extremely
10823 # bizarre bug on SunOS 4.1.3.
10824 if $ac_need_defaults; then
10825 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10826 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10829 # Have a temporary directory for convenience. Make it in the build tree
10830 # simply because there is no reason against having it here, and in addition,
10831 # creating and moving files from /tmp can sometimes cause problems.
10832 # Hook for its removal unless debugging.
10833 # Note that there is a small window in which the directory will not be cleaned:
10834 # after its creation but before its name has been assigned to `$tmp'.
10838 trap 'exit_status=$?
10839 : "${ac_tmp:=$tmp}"
10840 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10842 trap 'as_fn_exit 1' 1 2 13 15
10844 # Create a (secure) tmp directory for tmp files.
10847 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10851 tmp
=.
/conf$$
-$RANDOM
10852 (umask 077 && mkdir
"$tmp")
10853 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10856 # Set up the scripts for CONFIG_FILES section.
10857 # No need to generate them if there are no CONFIG_FILES.
10858 # This happens for instance with `./config.status config.h'.
10859 if test -n "$CONFIG_FILES"; then
10862 ac_cr
=`echo X | tr X '\015'`
10863 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10864 # But we know of no other shell where ac_cr would be empty at this
10865 # point, so we can use a bashism as a fallback.
10866 if test "x$ac_cr" = x
; then
10867 eval ac_cr
=\$
\'\\r
\'
10869 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10870 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10873 ac_cs_awk_cr
=$ac_cr
10876 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10881 echo "cat >conf$$subs.awk <<_ACEOF" &&
10882 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10884 } >conf$$subs.sh ||
10885 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10886 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10888 for ac_last_try in false false false false false :; do
10889 . ./conf$$subs.sh ||
10890 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10892 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10893 if test $ac_delim_n = $ac_delim_num; then
10895 elif $ac_last_try; then
10896 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10898 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10901 rm -f conf$$subs.sh
10903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10904 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10908 s/^/S["/; s
/!.
*/"]=/
10918 s/\(.\{148\}\)..*/\1/
10920 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10925 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10932 s/\(.\{148\}\)..*/\1/
10934 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10938 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10943 ' <conf$$subs.awk | sed '
10948 ' >>$CONFIG_STATUS || ac_write_fail=1
10949 rm -f conf$$subs.awk
10950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10952 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10953 for (key in S) S_is_set[key] = 1
10959 nfields = split(line, field, "@
")
10961 len = length(field[1])
10962 for (i = 2; i < nfields; i++) {
10964 keylen = length(key)
10965 if (S_is_set[key]) {
10967 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10968 len += length(value) + length(field[++i])
10979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10980 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10981 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10984 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10985 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10988 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10989 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10990 # trailing colons and then remove the whole line if VPATH becomes empty
10991 # (actually we leave an empty line to preserve line numbers).
10992 if test "x
$srcdir" = x.; then
10993 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11012 fi # test -n "$CONFIG_FILES"
11014 # Set up the scripts for CONFIG_HEADERS section.
11015 # No need to generate them if there are no CONFIG_HEADERS.
11016 # This happens for instance with `./config.status Makefile'.
11017 if test -n "$CONFIG_HEADERS"; then
11018 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11022 # Transform confdefs.h into an awk script `defines.awk', embedded as
11023 # here-document in config.status, that substitutes the proper values into
11024 # config.h.in to produce config.h.
11026 # Create a delimiter string that does not exist in confdefs.h, to ease
11027 # handling of long lines.
11029 for ac_last_try in false false :; do
11030 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11031 if test -z "$ac_tt"; then
11033 elif $ac_last_try; then
11034 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11036 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11040 # For the awk script, D is an array of macro values keyed by name,
11041 # likewise P contains macro parameters if any. Preserve backslash
11042 # newline sequences.
11044 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11046 s/.\{148\}/&'"$ac_delim"'/g
11049 s/^[ ]*#[ ]*define[ ][ ]*/ /
11056 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11058 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11062 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11063 D["\
1"]=" \
3\\\\\\n
"\\/p
11065 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11070 s/.\{148\}/&'"$ac_delim"'/g
11075 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11078 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11080 ' <confdefs.h | sed '
11081 s/'"$ac_delim"'/"\\\
11082 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11085 for (key in D) D_is_set[key] = 1
11088 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11090 split(line, arg, " ")
11091 if (arg[1] == "#") {
11095 defundef
= substr
(arg
[1], 2)
11098 split(mac1
, mac2
, "(") #)
11100 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11101 if (D_is_set
[macro
]) {
11102 # Preserve the white space surrounding the "#".
11103 print prefix
"define", macro P
[macro
] D
[macro
]
11106 # Replace #undef with comments. This is necessary, for example,
11107 # in the case of _POSIX_SOURCE, which is predefined and required
11108 # on some systems where configure will not decide to define it.
11109 if (defundef
== "undef") {
11110 print
"/*", prefix defundef
, macro
, "*/"
11118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11119 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11120 fi # test -n "$CONFIG_HEADERS"
11123 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11128 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11130 case $ac_mode$ac_tag in
11132 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11133 :[FH
]-) ac_tag
=-:-;;
11134 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11151 -) ac_f
="$ac_tmp/stdin";;
11152 *) # Look for the file first in the build tree, then in the source tree
11153 # (if the path is not absolute). The absolute path cannot be DOS-style,
11154 # because $ac_f cannot contain `:'.
11158 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11160 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11162 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11163 as_fn_append ac_file_inputs
" '$ac_f'"
11166 # Let's still pretend it is `configure' which instantiates (i.e., don't
11167 # use $as_me), people would be surprised to read:
11168 # /* config.h. Generated by config.status. */
11169 configure_input
='Generated from '`
11170 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11172 if test x
"$ac_file" != x-
; then
11173 configure_input
="$ac_file. $configure_input"
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11175 $as_echo "$as_me: creating $ac_file" >&6;}
11177 # Neutralize special characters interpreted by sed in replacement strings.
11178 case $configure_input in #(
11179 *\
&* |
*\|
* |
*\\* )
11180 ac_sed_conf_input
=`$as_echo "$configure_input" |
11181 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11182 *) ac_sed_conf_input
=$configure_input;;
11186 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11187 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11192 ac_dir
=`$as_dirname -- "$ac_file" ||
11193 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11194 X"$ac_file" : 'X\(//\)[^/]' \| \
11195 X"$ac_file" : 'X\(//\)$' \| \
11196 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11197 $as_echo X"$ac_file" |
11198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11202 /^X\(\/\/\)[^/].*/{
11215 as_dir
="$ac_dir"; as_fn_mkdir_p
11219 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11221 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11222 # A ".." for each directory in $ac_dir_suffix.
11223 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11224 case $ac_top_builddir_sub in
11225 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11226 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11229 ac_abs_top_builddir
=$ac_pwd
11230 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11231 # for backward compatibility:
11232 ac_top_builddir
=$ac_top_build_prefix
11235 .
) # We are building in place.
11237 ac_top_srcdir
=$ac_top_builddir_sub
11238 ac_abs_top_srcdir
=$ac_pwd ;;
11239 [\\/]* | ?
:[\\/]* ) # Absolute name.
11240 ac_srcdir
=$srcdir$ac_dir_suffix;
11241 ac_top_srcdir
=$srcdir
11242 ac_abs_top_srcdir
=$srcdir ;;
11243 *) # Relative name.
11244 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11245 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11246 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11248 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11260 # If the template does not know about datarootdir, expand it.
11261 # FIXME: This hack should be removed a few years after 2.60.
11262 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11273 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11274 *datarootdir
*) ac_datarootdir_seen
=yes;;
11275 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11277 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11280 ac_datarootdir_hack='
11281 s&@datadir@&$datadir&g
11282 s&@docdir@&$docdir&g
11283 s&@infodir@&$infodir&g
11284 s&@localedir@&$localedir&g
11285 s&@mandir@&$mandir&g
11286 s&\\\${datarootdir}&$datarootdir&g' ;;
11290 # Neutralize VPATH when `$srcdir' = `.'.
11291 # Shell code in configure.ac might set extrasub.
11292 # FIXME: do we really want to maintain this feature?
11293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11294 ac_sed_extra="$ac_vpsub
11297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11299 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11300 s|@configure_input@|
$ac_sed_conf_input|
;t t
11301 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11302 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11303 s
&@srcdir@
&$ac_srcdir&;t t
11304 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11305 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11306 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11307 s
&@builddir@
&$ac_builddir&;t t
11308 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11309 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11310 $ac_datarootdir_hack
11312 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11313 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11315 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11316 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11317 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11318 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11320 which seems to be undefined. Please make sure it is defined" >&5
11321 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11322 which seems to be undefined. Please make sure it is defined" >&2;}
11324 rm -f "$ac_tmp/stdin"
11326 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11327 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11335 if test x"$ac_file" != x-; then
11337 $as_echo "/* $configure_input */" \
11338 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11339 } >"$ac_tmp/config.h" \
11340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11341 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11343 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11346 mv "$ac_tmp/config.h" "$ac_file" \
11347 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11350 $as_echo "/* $configure_input */" \
11351 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11352 || as_fn_error $? "could not create -" "$LINENO" 5
11364 ac_clean_files=$ac_clean_files_save
11366 test $ac_write_fail = 0 ||
11367 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11370 # configure is writing to config.log, and then calls config.status.
11371 # config.status does its own redirection, appending to config.log.
11372 # Unfortunately, on DOS this fails, as config.log is still kept open
11373 # by configure, so config.status won't be able to
write to it
; its
11374 # output is simply discarded. So we exec the FD to /dev/null,
11375 # effectively closing config.log, so it can be properly (re)opened and
11376 # appended to by config.status. When coming back to configure, we
11377 # need to make the FD available again.
11378 if test "$no_create" != yes; then
11380 ac_config_status_args
=
11381 test "$silent" = yes &&
11382 ac_config_status_args
="$ac_config_status_args --quiet"
11384 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11386 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11387 # would make configure fail if this is the last instruction.
11388 $ac_cs_success || as_fn_exit
1
11390 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11392 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11396 chmod +x cups-config