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
664 CUPS_DEFAULT_GSSSERVICENAME
667 CUPS_LISTEN_DOMAINSOCKET
668 CUPS_DEFAULT_DOMAINSOCKET
725 CUPS_DEFAULT_PRINTOPERATOR_AUTH
810 program_transform_name
823 enable_option_checking
847 enable_libtool_unsupported
883 with_config_file_perm
888 with_access_log_level
892 enable_default_shared
906 ac_precious_vars
='build_alias
920 # Initialize some variables set by options.
922 ac_init_version
=false
923 ac_unrecognized_opts
=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
934 program_transform_name
=s
,x
,x
,
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir
='${exec_prefix}/bin'
949 sbindir
='${exec_prefix}/sbin'
950 libexecdir
='${exec_prefix}/libexec'
951 datarootdir
='${prefix}/share'
952 datadir
='${datarootdir}'
953 sysconfdir
='${prefix}/etc'
954 sharedstatedir
='${prefix}/com'
955 localstatedir
='${prefix}/var'
956 includedir
='${prefix}/include'
957 oldincludedir
='/usr/include'
958 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
959 infodir
='${datarootdir}/info'
964 libdir
='${exec_prefix}/lib'
965 localedir
='${datarootdir}/locale'
966 mandir
='${datarootdir}/man'
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\
$ac_option
980 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
991 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
993 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
996 -build |
--build |
--buil |
--bui |
--bu)
997 ac_prev
=build_alias
;;
998 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
999 build_alias
=$ac_optarg ;;
1001 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1002 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1003 ac_prev
=cache_file
;;
1004 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1005 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1006 cache_file
=$ac_optarg ;;
1008 --config-cache |
-C)
1009 cache_file
=config.cache
;;
1011 -datadir |
--datadir |
--datadi |
--datad)
1013 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1014 datadir
=$ac_optarg ;;
1016 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1017 |
--dataroo |
--dataro |
--datar)
1018 ac_prev
=datarootdir
;;
1019 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1020 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1021 datarootdir
=$ac_optarg ;;
1023 -disable-* |
--disable-*)
1024 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1027 as_fn_error $?
"invalid feature name: $ac_useropt"
1028 ac_useropt_orig
=$ac_useropt
1029 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_
$ac_useropt"
1034 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep
=', ';;
1037 eval enable_
$ac_useropt=no
;;
1039 -docdir |
--docdir |
--docdi |
--doc |
--do)
1041 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1042 docdir
=$ac_optarg ;;
1044 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1046 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1047 dvidir
=$ac_optarg ;;
1049 -enable-* |
--enable-*)
1050 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1053 as_fn_error $?
"invalid feature name: $ac_useropt"
1054 ac_useropt_orig
=$ac_useropt
1055 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_
$ac_useropt"
1060 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep
=', ';;
1063 eval enable_
$ac_useropt=\
$ac_optarg ;;
1065 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1066 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1067 |
--exec |
--exe |
--ex)
1068 ac_prev
=exec_prefix
;;
1069 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1070 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1071 |
--exec=* |
--exe=* |
--ex=*)
1072 exec_prefix
=$ac_optarg ;;
1074 -gas |
--gas |
--ga |
--g)
1075 # Obsolete; use --with-gas.
1078 -help |
--help |
--hel |
--he |
-h)
1079 ac_init_help
=long
;;
1080 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1081 ac_init_help
=recursive
;;
1082 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1083 ac_init_help
=short
;;
1085 -host |
--host |
--hos |
--ho)
1086 ac_prev
=host_alias
;;
1087 -host=* |
--host=* |
--hos=* |
--ho=*)
1088 host_alias
=$ac_optarg ;;
1090 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1092 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1094 htmldir
=$ac_optarg ;;
1096 -includedir |
--includedir |
--includedi |
--included |
--include \
1097 |
--includ |
--inclu |
--incl |
--inc)
1098 ac_prev
=includedir
;;
1099 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1100 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1101 includedir
=$ac_optarg ;;
1103 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1105 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1106 infodir
=$ac_optarg ;;
1108 -libdir |
--libdir |
--libdi |
--libd)
1110 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1111 libdir
=$ac_optarg ;;
1113 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1114 |
--libexe |
--libex |
--libe)
1115 ac_prev
=libexecdir
;;
1116 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1117 |
--libexe=* |
--libex=* |
--libe=*)
1118 libexecdir
=$ac_optarg ;;
1120 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1121 ac_prev
=localedir
;;
1122 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1123 localedir
=$ac_optarg ;;
1125 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1126 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1127 ac_prev
=localstatedir
;;
1128 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1129 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1130 localstatedir
=$ac_optarg ;;
1132 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1134 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1135 mandir
=$ac_optarg ;;
1137 -nfp |
--nfp |
--nf)
1138 # Obsolete; use --without-fp.
1141 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1142 |
--no-cr |
--no-c |
-n)
1145 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1146 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1149 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1150 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1151 |
--oldin |
--oldi |
--old |
--ol |
--o)
1152 ac_prev
=oldincludedir
;;
1153 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1154 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1155 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1156 oldincludedir
=$ac_optarg ;;
1158 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1160 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1161 prefix
=$ac_optarg ;;
1163 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1164 |
--program-pre |
--program-pr |
--program-p)
1165 ac_prev
=program_prefix
;;
1166 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1167 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1168 program_prefix
=$ac_optarg ;;
1170 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1171 |
--program-suf |
--program-su |
--program-s)
1172 ac_prev
=program_suffix
;;
1173 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1174 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1175 program_suffix
=$ac_optarg ;;
1177 -program-transform-name |
--program-transform-name \
1178 |
--program-transform-nam |
--program-transform-na \
1179 |
--program-transform-n |
--program-transform- \
1180 |
--program-transform |
--program-transfor \
1181 |
--program-transfo |
--program-transf \
1182 |
--program-trans |
--program-tran \
1183 |
--progr-tra |
--program-tr |
--program-t)
1184 ac_prev
=program_transform_name
;;
1185 -program-transform-name=* |
--program-transform-name=* \
1186 |
--program-transform-nam=* |
--program-transform-na=* \
1187 |
--program-transform-n=* |
--program-transform-=* \
1188 |
--program-transform=* |
--program-transfor=* \
1189 |
--program-transfo=* |
--program-transf=* \
1190 |
--program-trans=* |
--program-tran=* \
1191 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1192 program_transform_name
=$ac_optarg ;;
1194 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1196 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1197 pdfdir
=$ac_optarg ;;
1199 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1201 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1204 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1205 |
-silent |
--silent |
--silen |
--sile |
--sil)
1208 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1210 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1212 sbindir
=$ac_optarg ;;
1214 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1215 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1216 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1218 ac_prev
=sharedstatedir
;;
1219 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1220 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1221 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1223 sharedstatedir
=$ac_optarg ;;
1225 -site |
--site |
--sit)
1227 -site=* |
--site=* |
--sit=*)
1230 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1232 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1233 srcdir
=$ac_optarg ;;
1235 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1236 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1237 ac_prev
=sysconfdir
;;
1238 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1239 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1240 sysconfdir
=$ac_optarg ;;
1242 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1243 ac_prev
=target_alias
;;
1244 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1245 target_alias
=$ac_optarg ;;
1247 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1250 -version |
--version |
--versio |
--versi |
--vers |
-V)
1251 ac_init_version
=: ;;
1254 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1257 as_fn_error $?
"invalid package name: $ac_useropt"
1258 ac_useropt_orig
=$ac_useropt
1259 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1264 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep
=', ';;
1267 eval with_
$ac_useropt=\
$ac_optarg ;;
1269 -without-* |
--without-*)
1270 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1273 as_fn_error $?
"invalid package name: $ac_useropt"
1274 ac_useropt_orig
=$ac_useropt
1275 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep
=', ';;
1283 eval with_
$ac_useropt=no
;;
1286 # Obsolete; use --with-x.
1289 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1290 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1291 ac_prev
=x_includes
;;
1292 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1293 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1294 x_includes
=$ac_optarg ;;
1296 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1297 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1298 ac_prev
=x_libraries
;;
1299 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1300 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1301 x_libraries
=$ac_optarg ;;
1303 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1308 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1312 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1314 eval $ac_envvar=\
$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328 if test -n "$ac_prev"; then
1329 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $?
"missing argument to $ac_option"
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1336 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341 # Check all directory arguments for consistency.
1342 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1347 eval ac_val
=\$
$ac_var
1348 # Remove trailing slashes.
1351 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\
$ac_val;;
1354 # Be sure to have absolute directory names.
1356 [\\/$
]* | ?
:[\\/]* ) continue;;
1357 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1359 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1367 target
=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x
; then
1371 if test "x$build_alias" = x
; then
1372 cross_compiling
=maybe
1373 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1374 If a cross compiler is detected then cross compile mode will be used" >&2
1375 elif test "x$build_alias" != "x$host_alias"; then
1381 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1383 test "$silent" = yes && exec 6>/dev
/null
1386 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di
=`ls -di .` &&
1388 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1389 as_fn_error $?
"working directory cannot be determined"
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 as_fn_error $?
"pwd does not report name of working directory"
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396 ac_srcdir_defaulted
=yes
1397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir
=`$as_dirname -- "$as_myself" ||
1399 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400 X"$as_myself" : 'X\(//\)[^/]' \| \
1401 X"$as_myself" : 'X\(//\)$' \| \
1402 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1403 $as_echo X"$as_myself" |
1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1426 ac_srcdir_defaulted
=no
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1430 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1432 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1444 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 for ac_var
in $ac_precious_vars; do
1447 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1449 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1454 # Report the --help message.
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1460 \`configure' configures CUPS 2.3b6 to adapt to many kinds of systems.
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1467 Defaults for the options are specified in brackets.
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking ...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1491 For better control, use the options below.
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1518 --build=BUILD configure
for building on BUILD
[guessed
]
1519 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1523 if test -n "$ac_init_help"; then
1524 case $ac_init_help in
1525 short | recursive
) echo "Configuration of CUPS 2.3b6:";;
1530 --disable-option-checking ignore unrecognized
--enable/--with options
1531 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1532 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1533 --enable-static install static libraries
1534 --enable-mallinfo build with malloc debug logging
1535 --enable-libpaper build with libpaper support
1536 --enable-libusb use libusb
for USB printing
1537 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1538 --enable-acl build with POSIX ACL support
1539 --disable-dbus build without DBUS support
1540 --disable-shared do not create shared libraries
1541 --enable-libtool-unsupported=/path
/to
/libtool
1542 build with libtool
(UNSUPPORTED
!)
1543 --enable-debug build with debugging symbols
1544 --enable-debug-guards build with memory allocation guards
1545 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1546 --enable-unit-tests build and run unit tests
1547 --enable-relro build with the GCC relro option
1548 --disable-gssapi disable GSSAPI support
1549 --disable-threads disable multi-threading support
1550 --disable-ssl disable SSL
/TLS support
1551 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1552 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1553 --disable-pam disable PAM support
1554 --disable-largefile omit support
for large files
1555 --disable-avahi disable DNS Service Discovery support using Avahi
1556 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1557 --disable-launchd disable launchd support
1558 --disable-systemd disable systemd support
1559 --enable-upstart enable upstart support
1560 --enable-page-logging enable page_log by default
1561 --disable-browsing disable Browsing by default
1562 --disable-default-shared
1563 disable DefaultShared by default
1564 --disable-raw-printing do not allow raw printing by default
1565 --enable-webif enable the web interface by default
, default
=no
for macOS
1568 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1569 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1570 --with-cups-build set "cups-config --build" string
1571 --with-dbusdir set DBUS configuration directory
1572 --with-adminkey set the default SystemAuthKey value
1573 --with-operkey set the default operator @AUTHKEY value
1574 --with-components set components to build
:
1575 - "all" (default
) builds everything
1576 - "core" builds libcups and ipptool
1577 --with-privateinclude set path
for private include files
, default
=none
1578 --with-lpdconfig set URI
for LPD config
file
1579 --with-smbconfig set URI
for Samba config
file
1580 --with-cachedir set path
for cache files
1581 --with-icondir set path
for application icons
1582 --with-menudir set path
for application menus
1583 --with-docdir set path
for documentation
1584 --with-fontpath set font path
for pstoraster
1585 --with-logdir set path
for log files
1586 --with-rundir set transient run-time state directory
1587 --with-optim set optimization flags
1588 --with-archflags set default architecture flags
1589 --with-ldarchflags set program architecture flags
1590 --with-domainsocket set unix domain socket name
1591 --with-gssservicename set default gss service name
1592 --with-pam-module set the PAM module to use
1593 --with-dnssd-libs set directory
for DNS Service Discovery library
1594 --with-dnssd-includes set directory
for DNS Service Discovery includes
1595 --with-systemd set directory
for systemd service files
1596 --with-smfmanifestdir set path
for Solaris SMF manifest
1597 --with-rcdir set path
for rc scripts
1598 --with-rclevels set run levels
for rc scripts
1599 --with-rcstart set start number
for rc scripts
1600 --with-rcstop set stop number
for rc scripts
1601 --with-xinetd set path
for xinetd config files
1602 --with-languages set installed languages
, default
=all
1603 --with-bundledir set macOS localization bundle directory
1604 --with-exe-file-perm set default executable permissions value
, default
=0555
1605 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1606 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1607 --with-log-file-perm set default LogFilePerm value
, default
=0644
1608 --with-fatal-errors set default FatalErrors value
, default
=config
1609 --with-log-level set default LogLevel value
, default
=warn
1610 --with-access-log-level set default AccessLogLevel value
, default
=none
1611 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1612 --with-cups-user set default user
for CUPS
1613 --with-cups-group set default group
for CUPS
1614 --with-system-groups set default system groups
for CUPS
1615 --with-printcap set default printcap
file
1616 --with-lpdconfigfile set default LPDConfigFile URI
1617 --with-smbconfigfile set default SMBConfigFile URI
1618 --with-max-copies set default max copies value
, default
=9999
1619 --with-snmp-address set SNMP query address
, default
=auto
1620 --with-snmp-community set SNMP community
, default
=public
1621 --with-ipp-port set port number
for IPP
, default
=631
1623 Some influential environment variables
:
1624 CC C compiler
command
1625 CFLAGS C compiler flags
1626 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1627 nonstandard directory
<lib dir
>
1628 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1629 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1630 you have headers
in a nonstandard directory
<include dir
>
1632 CXX C
++ compiler
command
1633 CXXFLAGS C
++ compiler flags
1635 Use these variables to override the choices made by
`configure' or to help
1636 it to find libraries and programs with nonstandard names/locations.
1638 Report bugs to <https://github.com/apple/cups/issues>.
1639 CUPS home page: <https://www.cups.org/>.
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1669 .) # We are building in place.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1702 CUPS configure 2.3b6
1703 generated by GNU Autoconf 2.68
1705 Copyright (C) 2010 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1726 *) ac_try_echo
=$ac_try;;
1728 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1732 if test -s conftest.err
; then
1733 grep -v '^ *+' conftest.err
>conftest.er1
1734 cat conftest.er1
>&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.
$ac_objext; then :
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.
$ac_ext >&5
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status
$ac_retval
1752 } # ac_fn_c_try_compile
1754 # ac_fn_c_try_cpp LINENO
1755 # ----------------------
1756 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1759 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1760 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } > conftest.i && {
1776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1791 # ac_fn_cxx_try_compile LINENO
1792 # ----------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_cxx_try_compile ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1801 *) ac_try_echo
=$ac_try;;
1803 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1807 if test -s conftest.err
; then
1808 grep -v '^ *+' conftest.err
>conftest.er1
1809 cat conftest.er1
>&5
1810 mv -f conftest.er1 conftest.err
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_cxx_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.
$ac_objext; then :
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.
$ac_ext >&5
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status
$ac_retval
1827 } # ac_fn_cxx_try_compile
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1834 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1835 rm -f conftest.
$ac_objext conftest
$ac_exeext
1836 if { { ac_try
="$ac_link"
1838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 $as_test_x conftest$ac_exeext
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_c_try_link
1875 # ac_fn_c_try_run LINENO
1876 # ----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878 # that executables *can* be run.
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_link"
1884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1885 *) ac_try_echo
=$ac_try;;
1887 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>&5
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1893 { { case "(($ac_try" in
1894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_try") 2>&5
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; }; }; then :
1905 $as_echo "$as_me: program exited with status $ac_status" >&5
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 ac_retval=$ac_status
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1917 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1918 # -------------------------------------------------------
1919 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1920 # the include files in INCLUDES and setting the cache variable VAR
1922 ac_fn_c_check_header_mongrel ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if eval \${$3+:} false; then :
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1935 # Is the header compilable?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1937 $as_echo_n "checking $2 usability... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_header_compiler=yes
1946 ac_header_compiler=no
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1950 $as_echo "$ac_header_compiler" >&6; }
1952 # Is the header present?
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1954 $as_echo_n "checking $2 presence... " >&6; }
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1959 if ac_fn_c_try_cpp "$LINENO"; then :
1960 ac_header_preproc=yes
1962 ac_header_preproc=no
1964 rm -f conftest.err conftest.i conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1966 $as_echo "$ac_header_preproc" >&6; }
1968 # So? What about this header?
1969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1972 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1978 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1980 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1982 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1984 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 ( $as_echo "## --------------------------------------------------- ##
1988 ## Report this to https://github.com/apple/cups/issues ##
1989 ## --------------------------------------------------- ##"
1990 ) | sed "s/^/$as_me: WARNING: /" >&2
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if eval \${$3+:} false; then :
1996 $as_echo_n "(cached) " >&6
1998 eval "$3=\$ac_header_compiler"
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 } # ac_fn_c_check_header_mongrel
2008 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009 # -------------------------------------------------------
2010 # Tests whether HEADER exists and can be compiled using the include files in
2011 # INCLUDES, setting the cache variable VAR accordingly.
2012 ac_fn_c_check_header_compile ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if eval \${$3+:} false; then :
2018 $as_echo_n "(cached) " >&6
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2025 if ac_fn_c_try_compile "$LINENO"; then :
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037 } # ac_fn_c_check_header_compile
2039 # ac_fn_c_check_func LINENO FUNC VAR
2040 # ----------------------------------
2041 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2042 ac_fn_c_check_func ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval \${$3+:} false; then :
2048 $as_echo_n "(cached) " >&6
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2054 #define $2 innocuous_$2
2056 /* System header to define __stub macros and hopefully few prototypes,
2057 which can conflict with char $2 (); below.
2058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2059 <limits.h> exists even on freestanding compilers. */
2062 # include <limits.h>
2064 # include <assert.h>
2069 /* Override any GCC internal prototype to avoid an error.
2070 Use char because int might match the return type of a GCC
2071 builtin and then its argument prototype would still apply. */
2076 /* The GNU C library defines this for functions which it implements
2077 to always fail with ENOSYS. Some functions are actually named
2078 something starting with __ and the normal name is an alias. */
2079 #if defined __stub_$2 || defined __stub___$2
2091 if ac_fn_c_try_link "$LINENO"; then :
2096 rm -f core conftest.err conftest.$ac_objext \
2097 conftest$ac_exeext conftest.$ac_ext
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 } # ac_fn_c_check_func
2106 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2107 # ----------------------------------------------------
2108 # Tries to find if the field MEMBER exists in type AGGR, after including
2109 # INCLUDES, setting cache variable VAR accordingly.
2110 ac_fn_c_check_member ()
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2114 $as_echo_n "checking for $2.$3... " >&6; }
2115 if eval \${$4+:} false; then :
2116 $as_echo_n "(cached) " >&6
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2131 if ac_fn_c_try_compile "$LINENO"; then :
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2141 if (sizeof ac_aggr.$3)
2147 if ac_fn_c_try_compile "$LINENO"; then :
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161 } # ac_fn_c_check_member
2162 cat >config.log <<_ACEOF
2163 This file contains any messages produced by compilers while
2164 running configure, to aid debugging if configure makes a mistake.
2166 It was created by CUPS $as_me 2.3b6, which was
2167 generated by GNU Autoconf 2.68. Invocation command line was
2179 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2180 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2181 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2182 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2183 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2185 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2186 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2188 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2189 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2190 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2191 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2192 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2193 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2194 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 test -z "$as_dir" && as_dir=.
2203 $as_echo "PATH: $as_dir"
2219 # Keep a trace of the command line.
2220 # Strip out --no-create and --no-recursion so they do not pile up.
2221 # Strip out --silent because we don't want to record it for future runs.
2222 # Also quote any args containing shell meta-characters.
2223 # Make two passes to allow for proper duplicate-argument suppression.
2227 ac_must_keep_next=false
2233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235 | -silent | --silent | --silen | --sile | --sil)
2238 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2241 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2243 as_fn_append ac_configure_args1 " '$ac_arg'"
2244 if test $ac_must_keep_next = true; then
2245 ac_must_keep_next=false # Got value, back to normal.
2248 *=* | --config-cache | -C | -disable-* | --disable-* \
2249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251 | -with-* | --with-* | -without-* | --without-* | --x)
2252 case "$ac_configure_args0 " in
2253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2256 -* ) ac_must_keep_next=true ;;
2259 as_fn_append ac_configure_args " '$ac_arg'"
2264 { ac_configure_args0=; unset ac_configure_args0;}
2265 { ac_configure_args1=; unset ac_configure_args1;}
2267 # When interrupted or exit'd, cleanup temporary files, and complete
2268 # config.log. We remove comments because anyway the quotes in there
2269 # would cause problems or look ugly.
2270 # WARNING: Use '\'' to represent an apostrophe within the trap.
2271 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272 trap 'exit_status=$?
2273 # Save into config.log some information that might help in debugging.
2277 $as_echo "## ---------------- ##
2278 ## Cache variables. ##
2279 ## ---------------- ##"
2281 # The following way of writing the cache mishandles newlines in values,
2283 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2284 eval ac_val=\$$ac_var
2288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2292 _ | IFS | as_nl) ;; #(
2293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294 *) { eval $ac_var=; unset $ac_var;} ;;
2299 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2300 *${as_nl}ac_space=\ *)
2302 "s/'\''/'\''\\\\'\'''\''/g;
2303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2313 $as_echo "## ----------------- ##
2314 ## Output variables. ##
2315 ## ----------------- ##"
2317 for ac_var in $ac_subst_vars
2319 eval ac_val=\$$ac_var
2321 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2323 $as_echo "$ac_var='\''$ac_val'\''"
2327 if test -n "$ac_subst_files"; then
2328 $as_echo "## ------------------- ##
2329 ## File substitutions. ##
2330 ## ------------------- ##"
2332 for ac_var in $ac_subst_files
2334 eval ac_val=\$$ac_var
2336 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338 $as_echo "$ac_var='\''$ac_val'\''"
2343 if test -s confdefs.h; then
2344 $as_echo "## ----------- ##
2351 test "$ac_signal" != 0 &&
2352 $as_echo "$as_me: caught signal $ac_signal"
2353 $as_echo "$as_me: exit $exit_status"
2355 rm -f core *.core core.conftest.* &&
2356 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2359 for ac_signal in 1 2 13 15; do
2360 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2365 rm -f -r conftest* confdefs.h
2367 $as_echo "/* confdefs.h */" > confdefs.h
2369 # Predefined preprocessor variables.
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_NAME "$PACKAGE_NAME"
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_STRING "$PACKAGE_STRING"
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_URL "$PACKAGE_URL"
2396 # Let the site file select an alternate cache file if it wants to.
2397 # Prefer an explicitly selected file to automatically selected ones.
2400 if test -n "$CONFIG_SITE"; then
2401 # We do not want a PATH search for config.site.
2402 case $CONFIG_SITE in #((
2403 -*) ac_site_file1=./$CONFIG_SITE;;
2404 */*) ac_site_file1=$CONFIG_SITE;;
2405 *) ac_site_file1=./$CONFIG_SITE;;
2407 elif test "x$prefix" != xNONE; then
2408 ac_site_file1=$prefix/share/config.site
2409 ac_site_file2=$prefix/etc/config.site
2411 ac_site_file1=$ac_default_prefix/share/config.site
2412 ac_site_file2=$ac_default_prefix/etc/config.site
2414 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2416 test "x$ac_site_file" = xNONE && continue
2417 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420 sed 's/^/| /' "$ac_site_file" >&5
2422 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 as_fn_error $? "failed to load site
script $ac_site_file
2425 See \
`config.log' for more details" "$LINENO" 5; }
2429 if test -r "$cache_file"; then
2430 # Some versions of bash will fail to source /dev/null (special files
2431 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2432 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434 $as_echo "$as_me: loading cache $cache_file" >&6;}
2436 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2437 *) . "./$cache_file";;
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2442 $as_echo "$as_me: creating cache $cache_file" >&6;}
2446 # Check that the precious variables saved in the cache have kept the same
2448 ac_cache_corrupted=false
2449 for ac_var in $ac_precious_vars; do
2450 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2451 eval ac_new_set=\$ac_env_${ac_var}_set
2452 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2453 eval ac_new_val=\$ac_env_${ac_var}_value
2454 case $ac_old_set,$ac_new_set in
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2457 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2461 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2462 ac_cache_corrupted=: ;;
2465 if test "x$ac_old_val" != "x$ac_new_val"; then
2466 # differences in whitespace do not lead to failure.
2467 ac_old_val_w=`echo x
$ac_old_val`
2468 ac_new_val_w=`echo x
$ac_new_val`
2469 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2471 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2472 ac_cache_corrupted=:
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2475 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2476 eval $ac_var=\$ac_old_val
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2479 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2481 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2484 # Pass precious variables to config.status.
2485 if test "$ac_new_set" = set; then
2487 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2488 *) ac_arg=$ac_var=$ac_new_val ;;
2490 case " $ac_configure_args " in
2491 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2492 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2496 if $ac_cache_corrupted; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2500 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2501 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2503 ## -------------------- ##
2504 ## Main body of script. ##
2505 ## -------------------- ##
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2517 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2518 if test -f "$ac_dir/install-sh"; then
2520 ac_install_sh="$ac_aux_dir/install-sh -c"
2522 elif test -f "$ac_dir/install.sh"; then
2524 ac_install_sh="$ac_aux_dir/install.sh -c"
2526 elif test -f "$ac_dir/shtool"; then
2528 ac_install_sh="$ac_aux_dir/shtool install -c"
2532 if test -z "$ac_aux_dir"; then
2533 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2536 # These three variables are undocumented and unsupported,
2537 # and are intended to be withdrawn in a future Autoconf release.
2538 # They can cause serious problems if a builder's source tree is in a directory
2539 # whose full name contains unusual characters.
2540 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2541 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2542 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2545 # Make sure we can run config.sub.
2546 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2547 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2550 $as_echo_n "checking build system type... " >&6; }
2551 if ${ac_cv_build+:} false; then :
2552 $as_echo_n "(cached) " >&6
2554 ac_build_alias=$build_alias
2555 test "x$ac_build_alias" = x &&
2556 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2557 test "x$ac_build_alias" = x &&
2558 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2559 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2560 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2564 $as_echo "$ac_cv_build" >&6; }
2565 case $ac_cv_build in
2567 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2570 ac_save_IFS=$IFS; IFS='-'
2576 # Remember, the first character of IFS is used to create $*,
2577 # except with old shells:
2580 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2584 $as_echo_n "checking host system type... " >&6; }
2585 if ${ac_cv_host+:} false; then :
2586 $as_echo_n "(cached) " >&6
2588 if test "x$host_alias" = x; then
2589 ac_cv_host=$ac_cv_build
2591 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2592 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2597 $as_echo "$ac_cv_host" >&6; }
2600 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2603 ac_save_IFS=$IFS; IFS='-'
2609 # Remember, the first character of IFS is used to create $*,
2610 # except with old shells:
2613 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2617 host_os_name=`echo $host_os |
sed -e '1,$s/[0-9.]*$//g'`
2618 host_os_version=`echo $host_os |
sed -e '1,$s/^[^0-9.]*//g' |
awk -F.
'{print $1 $2}'`
2619 # Linux often does not yield an OS version we can use...
2620 if test "x$host_os_version" = x; then
2624 if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
2625 as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
2628 echo host_os_version=$host_os_version
2630 if test "$build" = "$host"; then
2631 # No, build local targets
2634 # Yes, don't build local targets
2639 for ac_prog in codesign true
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if ${ac_cv_path_CODE_SIGN+:} false; then :
2646 $as_echo_n "(cached) " >&6
2650 ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_path_CODE_SIGN="$as_dir/$ac_word$ac_exec_ext"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 CODE_SIGN=$ac_cv_path_CODE_SIGN
2672 if test -n "$CODE_SIGN"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5
2674 $as_echo "$CODE_SIGN" >&6; }
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2681 test -n "$CODE_SIGN" && break
2686 ac_config_headers="$ac_config_headers config.h"
2689 CUPS_VERSION="2.3b6"
2691 CUPS_BUILD="cups-$CUPS_VERSION"
2694 # Check whether --with-cups_build was given.
2695 if test "${with_cups_build+set}" = set; then :
2696 withval=$with_cups_build; CUPS_BUILD="$withval"
2703 cat >>confdefs.h <<_ACEOF
2704 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2707 cat >>confdefs.h <<_ACEOF
2708 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2712 CFLAGS="${CFLAGS:=}"
2713 CPPFLAGS="${CPPFLAGS:=}"
2714 CXXFLAGS="${CXXFLAGS:=}"
2715 LDFLAGS="${LDFLAGS:=}"
2717 for ac_prog in gawk mawk nawk awk
2719 # Extract the first word of "$ac_prog", so it can be a program name with args.
2720 set dummy $ac_prog; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if ${ac_cv_prog_AWK+:} false; then :
2724 $as_echo_n "(cached) " >&6
2726 if test -n "$AWK"; then
2727 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 ac_cv_prog_AWK="$ac_prog"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 if test -n "$AWK"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2749 $as_echo "$AWK" >&6; }
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2756 test -n "$AWK" && break
2760 ac_cpp='$CPP $CPPFLAGS'
2761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764 if test -n "$ac_tool_prefix"; then
2765 for ac_prog in clang cc gcc
2767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if ${ac_cv_prog_CC+:} false; then :
2772 $as_echo_n "(cached) " >&6
2774 if test -n "$CC"; then
2775 ac_cv_prog_CC="$CC" # Let the user override the test.
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 if test -n "$CC"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2797 $as_echo "$CC" >&6; }
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2804 test -n "$CC" && break
2807 if test -z "$CC"; then
2809 for ac_prog in clang cc gcc
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$ac_ct_CC"; then
2819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_ac_ct_CC="$ac_prog"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2841 $as_echo "$ac_ct_CC" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2848 test -n "$ac_ct_CC" && break
2851 if test "x$ac_ct_CC" = x; then
2854 case $cross_compiling:$ac_tool_warned in
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2858 ac_tool_warned=yes ;;
2865 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2867 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2868 See \
`config.log' for more details" "$LINENO" 5; }
2870 # Provide some information about the compiler.
2871 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2874 for ac_option in --version -v -V -qversion; do
2875 { { ac_try="$ac_compiler $ac_option >&5"
2877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2878 *) ac_try_echo
=$ac_try;;
2880 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2881 $as_echo "$ac_try_echo"; } >&5
2882 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2884 if test -s conftest.err
; then
2886 ... rest of stderr output deleted ...
2887 10q' conftest.err
>conftest.er1
2888 cat conftest.er1
>&5
2890 rm -f conftest.er1 conftest.err
2891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2892 test $ac_status = 0; }
2895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2896 /* end confdefs.h. */
2906 ac_clean_files_save
=$ac_clean_files
2907 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2908 # Try to create an executable without -o first, disregard a.out.
2909 # It will help us diagnose broken compilers, and finding out an intuition
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2912 $as_echo_n "checking whether the C compiler works... " >&6; }
2913 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2915 # The possible output files:
2916 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2919 for ac_file
in $ac_files
2922 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2923 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2928 if { { ac_try
="$ac_link_default"
2930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2934 $as_echo "$ac_try_echo"; } >&5
2935 (eval "$ac_link_default") 2>&5
2937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938 test $ac_status = 0; }; then :
2939 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2940 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2941 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2942 # so that the user can short-circuit this test for compilers unknown to
2944 for ac_file in $ac_files ''
2946 test -f "$ac_file" || continue
2948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2951 # We found the default executable, but exeext='' is most
2955 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2957 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2959 # We set ac_cv_exeext here because the later test for it is not
2960 # safe: cross compilers may not add the suffix if given an `-o'
2961 # argument, so we may need to know it at that point already.
2962 # Even if this section looks crufty: it has the advantage of
2969 test "$ac_cv_exeext" = no && ac_cv_exeext=
2974 if test -z "$ac_file"; then :
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 $as_echo "$as_me: failed program was:" >&5
2978 sed 's
/^
/|
/' conftest.$ac_ext >&5
2980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2982 as_fn_error 77 "C compiler cannot create executables
2983 See \`config.log
' for more details" "$LINENO" 5; }
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2986 $as_echo "yes" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2989 $as_echo_n "checking for C compiler default output file name... " >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2991 $as_echo "$ac_file" >&6; }
2992 ac_exeext=$ac_cv_exeext
2994 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2995 ac_clean_files=$ac_clean_files_save
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2997 $as_echo_n "checking for suffix of executables... " >&6; }
2998 if { { ac_try="$ac_link"
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004 $as_echo "$ac_try_echo"; } >&5
3005 (eval "$ac_link") 2>&5
3007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008 test $ac_status = 0; }; then :
3009 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3010 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3011 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3013 for ac_file
in conftest.exe conftest conftest.
*; do
3014 test -f "$ac_file" ||
continue
3016 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3017 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3026 See \`config.log' for more details" "$LINENO" 5; }
3028 rm -f conftest conftest
$ac_cv_exeext
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3030 $as_echo "$ac_cv_exeext" >&6; }
3032 rm -f conftest.
$ac_ext
3033 EXEEXT
=$ac_cv_exeext
3035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3041 FILE *f = fopen ("conftest.out", "w");
3042 return ferror (f) || fclose (f) != 0;
3048 ac_clean_files
="$ac_clean_files conftest.out"
3049 # Check that the compiler produces executables we can run. If not, either
3050 # the compiler is broken, or we cross compile.
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3052 $as_echo_n "checking whether we are cross compiling... " >&6; }
3053 if test "$cross_compiling" != yes; then
3054 { { ac_try
="$ac_link"
3056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_link") 2>&5
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }
3065 if { ac_try='./conftest$ac_cv_exeext'
3066 { { case "(($ac_try" in
3067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3068 *) ac_try_echo
=$ac_try;;
3070 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 $as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_try") 2>&5
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }; }; then
3078 if test "$cross_compiling" = maybe
; then
3081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 as_fn_error $?
"cannot run C compiled programs.
3084 If you meant to cross compile, use \`--host'.
3085 See \`config.log' for more details" "$LINENO" 5; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3090 $as_echo "$cross_compiling" >&6; }
3092 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3093 ac_clean_files
=$ac_clean_files_save
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3095 $as_echo_n "checking for suffix of object files... " >&6; }
3096 if ${ac_cv_objext+:} false
; then :
3097 $as_echo_n "(cached) " >&6
3099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3100 /* end confdefs.h. */
3110 rm -f conftest.o conftest.obj
3111 if { { ac_try
="$ac_compile"
3113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_compile") 2>&5
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; then :
3122 for ac_file in conftest.o conftest.obj conftest.*; do
3123 test -f "$ac_file" || continue;
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3131 $as_echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3137 See \
`config.log' for more details" "$LINENO" 5; }
3139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3142 $as_echo "$ac_cv_objext" >&6; }
3143 OBJEXT=$ac_cv_objext
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3146 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3147 if ${ac_cv_c_compiler_gnu+:} false; then :
3148 $as_echo_n "(cached) " >&6
3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h. */
3164 if ac_fn_c_try_compile "$LINENO"; then :
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3174 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3175 if test $ac_compiler_gnu = yes; then
3180 ac_test_CFLAGS=${CFLAGS+set}
3181 ac_save_CFLAGS=$CFLAGS
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3183 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3184 if ${ac_cv_prog_cc_g+:} false; then :
3185 $as_echo_n "(cached) " >&6
3187 ac_save_c_werror_flag=$ac_c_werror_flag
3188 ac_c_werror_flag=yes
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3202 if ac_fn_c_try_compile "$LINENO"; then :
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3217 if ac_fn_c_try_compile "$LINENO"; then :
3220 ac_c_werror_flag=$ac_save_c_werror_flag
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3233 if ac_fn_c_try_compile "$LINENO"; then :
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_c_werror_flag=$ac_save_c_werror_flag
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3244 $as_echo "$ac_cv_prog_cc_g" >&6; }
3245 if test "$ac_test_CFLAGS" = set; then
3246 CFLAGS=$ac_save_CFLAGS
3247 elif test $ac_cv_prog_cc_g = yes; then
3248 if test "$GCC" = yes; then
3254 if test "$GCC" = yes; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3261 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3262 if ${ac_cv_prog_cc_c89+:} false; then :
3263 $as_echo_n "(cached) " >&6
3265 ac_cv_prog_cc_c89=no
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3271 #include <sys/types.h>
3272 #include <sys/stat.h>
3273 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3274 struct buf { int x; };
3275 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3276 static char *e (p, i)
3282 static char *f (char * (*g) (char **, int), char **p, ...)
3287 s = g (p, va_arg (v,int));
3292 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3293 function prototypes and stuff, but not '\xHH' hex character constants.
3294 These don't provoke an error unfortunately, instead are silently treated
3295 as 'x'. The following induces an error, until -std is added to get
3296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3297 array size at least. It's necessary to write '\x00'==0 to get something
3298 that's true only with -std. */
3299 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3301 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3302 inside strings and character constants. */
3304 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3306 int test (int i, double x);
3307 struct s1 {int (*f) (int a);};
3308 struct s2 {int (*f) (double a);};
3309 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3315 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3320 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3323 CC="$ac_save_CC $ac_arg"
3324 if ac_fn_c_try_compile "$LINENO"; then :
3325 ac_cv_prog_cc_c89=$ac_arg
3327 rm -f core conftest.err conftest.$ac_objext
3328 test "x$ac_cv_prog_cc_c89" != "xno" && break
3330 rm -f conftest.$ac_ext
3335 case "x$ac_cv_prog_cc_c89" in
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3338 $as_echo "none needed" >&6; } ;;
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3341 $as_echo "unsupported" >&6; } ;;
3343 CC="$CC $ac_cv_prog_cc_c89"
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3345 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3347 if test "x$ac_cv_prog_cc_c89" != xno; then :
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3363 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3364 # On Suns, sometimes $CPP names a directory.
3365 if test -n "$CPP" && test -d "$CPP"; then
3368 if test -z "$CPP"; then
3369 if ${ac_cv_prog_CPP+:} false; then :
3370 $as_echo_n "(cached) " >&6
3372 # Double quotes because CPP needs to be expanded
3373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3376 for ac_c_preproc_warn_flag in '' yes
3378 # Use a header file that comes with gcc, so configuring glibc
3379 # with a fresh cross-compiler works.
3380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381 # <limits.h> exists even on freestanding compilers.
3382 # On the NeXT, cc -E runs the code through the compiler's parser,
3383 # not just through cpp. "Syntax error" is here to catch this case.
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3387 # include <limits.h>
3389 # include <assert.h>
3393 if ac_fn_c_try_cpp "$LINENO"; then :
3396 # Broken: fails on valid input.
3399 rm -f conftest.err conftest.i conftest.$ac_ext
3401 # OK, works on sane cases. Now check whether nonexistent headers
3402 # can be detected and how.
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405 #include <ac_nonexistent.h>
3407 if ac_fn_c_try_cpp "$LINENO"; then :
3408 # Broken: success on invalid input.
3411 # Passes both tests.
3415 rm -f conftest.err conftest.i conftest.$ac_ext
3418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3419 rm -f conftest.i conftest.err conftest.
$ac_ext
3420 if $ac_preproc_ok; then :
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3433 $as_echo "$CPP" >&6; }
3435 for ac_c_preproc_warn_flag
in '' yes
3437 # Use a header file that comes with gcc, so configuring glibc
3438 # with a fresh cross-compiler works.
3439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3440 # <limits.h> exists even on freestanding compilers.
3441 # On the NeXT, cc -E runs the code through the compiler's parser,
3442 # not just through cpp. "Syntax error" is here to catch this case.
3443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3446 # include <limits.h>
3448 # include <assert.h>
3452 if ac_fn_c_try_cpp
"$LINENO"; then :
3455 # Broken: fails on valid input.
3458 rm -f conftest.err conftest.i conftest.
$ac_ext
3460 # OK, works on sane cases. Now check whether nonexistent headers
3461 # can be detected and how.
3462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464 #include <ac_nonexistent.h>
3466 if ac_fn_c_try_cpp
"$LINENO"; then :
3467 # Broken: success on invalid input.
3470 # Passes both tests.
3474 rm -f conftest.err conftest.i conftest.
$ac_ext
3477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3478 rm -f conftest.i conftest.err conftest.
$ac_ext
3479 if $ac_preproc_ok; then :
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3485 See \`config.log' for more details" "$LINENO" 5; }
3489 ac_cpp
='$CPP $CPPFLAGS'
3490 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3495 ac_cpp
='$CXXCPP $CPPFLAGS'
3496 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3499 if test -z "$CXX"; then
3500 if test -n "$CCC"; then
3503 if test -n "$ac_tool_prefix"; then
3504 for ac_prog
in clang
++ c
++ g
++
3506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3507 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if ${ac_cv_prog_CXX+:} false
; then :
3511 $as_echo_n "(cached) " >&6
3513 if test -n "$CXX"; then
3514 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir
=.
3521 for ac_exec_ext
in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 if test -n "$CXX"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3536 $as_echo "$CXX" >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3543 test -n "$CXX" && break
3546 if test -z "$CXX"; then
3548 for ac_prog
in clang
++ c
++ g
++
3550 # Extract the first word of "$ac_prog", so it can be a program name with args.
3551 set dummy
$ac_prog; ac_word
=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3555 $as_echo_n "(cached) " >&6
3557 if test -n "$ac_ct_CXX"; then
3558 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir
=.
3565 for ac_exec_ext
in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3578 if test -n "$ac_ct_CXX"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3580 $as_echo "$ac_ct_CXX" >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3587 test -n "$ac_ct_CXX" && break
3590 if test "x$ac_ct_CXX" = x
; then
3593 case $cross_compiling:$ac_tool_warned in
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3597 ac_tool_warned
=yes ;;
3605 # Provide some information about the compiler.
3606 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3609 for ac_option
in --version -v -V -qversion; do
3610 { { ac_try
="$ac_compiler $ac_option >&5"
3612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616 $as_echo "$ac_try_echo"; } >&5
3617 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3619 if test -s conftest.err; then
3621 ... rest of stderr output deleted ...
3622 10q' conftest.err >conftest.er1
3623 cat conftest.er1 >&5
3625 rm -f conftest.er1 conftest.err
3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627 test $ac_status = 0; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3631 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3632 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3633 $as_echo_n "(cached) " >&6
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3649 if ac_fn_cxx_try_compile "$LINENO"; then :
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3659 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3660 if test $ac_compiler_gnu = yes; then
3665 ac_test_CXXFLAGS=${CXXFLAGS+set}
3666 ac_save_CXXFLAGS=$CXXFLAGS
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3668 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3669 if ${ac_cv_prog_cxx_g+:} false; then :
3670 $as_echo_n "(cached) " >&6
3672 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3673 ac_cxx_werror_flag=yes
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3687 if ac_fn_cxx_try_compile "$LINENO"; then :
3688 ac_cv_prog_cxx_g=yes
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3702 if ac_fn_cxx_try_compile "$LINENO"; then :
3705 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3718 if ac_fn_cxx_try_compile "$LINENO"; then :
3719 ac_cv_prog_cxx_g=yes
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3729 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3730 if test "$ac_test_CXXFLAGS" = set; then
3731 CXXFLAGS=$ac_save_CXXFLAGS
3732 elif test $ac_cv_prog_cxx_g = yes; then
3733 if test "$GXX" = yes; then
3739 if test "$GXX" = yes; then
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 if test -n "$ac_tool_prefix"; then
3752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 $as_echo_n "checking for $ac_word... " >&6; }
3756 if ${ac_cv_prog_RANLIB+:} false; then :
3757 $as_echo_n "(cached) " >&6
3759 if test -n "$RANLIB"; then
3760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 RANLIB=$ac_cv_prog_RANLIB
3780 if test -n "$RANLIB"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3782 $as_echo "$RANLIB" >&6; }
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3790 if test -z "$ac_cv_prog_RANLIB"; then
3791 ac_ct_RANLIB=$RANLIB
3792 # Extract the first word of "ranlib", so it can be a program name with args.
3793 set dummy ranlib; ac_word=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3797 $as_echo_n "(cached) " >&6
3799 if test -n "$ac_ct_RANLIB"; then
3800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809 ac_cv_prog_ac_ct_RANLIB="ranlib"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3820 if test -n "$ac_ct_RANLIB"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3822 $as_echo "$ac_ct_RANLIB" >&6; }
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3828 if test "x$ac_ct_RANLIB" = x; then
3831 case $cross_compiling:$ac_tool_warned in
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835 ac_tool_warned=yes ;;
3837 RANLIB=$ac_ct_RANLIB
3840 RANLIB="$ac_cv_prog_RANLIB"
3843 # Extract the first word of "ar", so it can be a program name with args.
3844 set dummy ar; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if ${ac_cv_path_AR+:} false; then :
3848 $as_echo_n "(cached) " >&6
3852 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3862 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 if test -n "$AR"; then
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3876 $as_echo "$AR" >&6; }
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3883 # Extract the first word of "chmod", so it can be a program name with args.
3884 set dummy chmod; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_path_CHMOD+:} false; then :
3888 $as_echo_n "(cached) " >&6
3892 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3902 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 CHMOD=$ac_cv_path_CHMOD
3914 if test -n "$CHMOD"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3916 $as_echo "$CHMOD" >&6; }
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3923 # Extract the first word of "gzip", so it can be a program name with args.
3924 set dummy gzip; ac_word=$2
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 $as_echo_n "checking for $ac_word... " >&6; }
3927 if ${ac_cv_path_GZIP+:} false; then :
3928 $as_echo_n "(cached) " >&6
3932 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 GZIP=$ac_cv_path_GZIP
3954 if test -n "$GZIP"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3956 $as_echo "$GZIP" >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3963 # Extract the first word of "ld", so it can be a program name with args.
3964 set dummy ld; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_path_LD+:} false; then :
3968 $as_echo_n "(cached) " >&6
3972 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 if test -n "$LD"; then
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3996 $as_echo "$LD" >&6; }
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999 $as_echo "no" >&6; }
4003 # Extract the first word of "ln", so it can be a program name with args.
4004 set dummy ln; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_path_LN+:} false; then :
4008 $as_echo_n "(cached) " >&6
4012 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4022 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 if test -n "$LN"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4036 $as_echo "$LN" >&6; }
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4043 # Extract the first word of "mkdir", so it can be a program name with args.
4044 set dummy mkdir; ac_word=$2
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046 $as_echo_n "checking for $ac_word... " >&6; }
4047 if ${ac_cv_path_MKDIR+:} false; then :
4048 $as_echo_n "(cached) " >&6
4052 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4062 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 MKDIR=$ac_cv_path_MKDIR
4074 if test -n "$MKDIR"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4076 $as_echo "$MKDIR" >&6; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4083 # Extract the first word of "mv", so it can be a program name with args.
4084 set dummy mv; ac_word=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if ${ac_cv_path_MV+:} false; then :
4088 $as_echo_n "(cached) " >&6
4092 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4102 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 if test -n "$MV"; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4116 $as_echo "$MV" >&6; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4123 # Extract the first word of "rm", so it can be a program name with args.
4124 set dummy rm; ac_word=$2
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126 $as_echo_n "checking for $ac_word... " >&6; }
4127 if ${ac_cv_path_RM+:} false; then :
4128 $as_echo_n "(cached) " >&6
4132 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 if test -n "$RM"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4156 $as_echo "$RM" >&6; }
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4163 # Extract the first word of "rmdir", so it can be a program name with args.
4164 set dummy rmdir; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if ${ac_cv_path_RMDIR+:} false; then :
4168 $as_echo_n "(cached) " >&6
4172 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 RMDIR=$ac_cv_path_RMDIR
4194 if test -n "$RMDIR"; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4196 $as_echo "$RMDIR" >&6; }
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4203 # Extract the first word of "sed", so it can be a program name with args.
4204 set dummy sed; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if ${ac_cv_path_SED+:} false; then :
4208 $as_echo_n "(cached) " >&6
4212 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 if test -n "$SED"; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4236 $as_echo "$SED" >&6; }
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4243 # Extract the first word of "xdg-open", so it can be a program name with args.
4244 set dummy xdg-open; ac_word=$2
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246 $as_echo_n "checking for $ac_word... " >&6; }
4247 if ${ac_cv_path_XDGOPEN+:} false; then :
4248 $as_echo_n "(cached) " >&6
4252 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4262 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 XDGOPEN=$ac_cv_path_XDGOPEN
4274 if test -n "$XDGOPEN"; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4276 $as_echo "$XDGOPEN" >&6; }
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4283 if test "x$XDGOPEN" = x; then
4284 CUPS_HTMLVIEW="htmlview"
4286 CUPS_HTMLVIEW="$XDGOPEN"
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4291 $as_echo_n "checking for install-sh script... " >&6; }
4292 INSTALL="`pwd`/install-sh"
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4295 $as_echo "using $INSTALL" >&6; }
4297 if test "x$AR" = x; then
4298 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4300 if test "x$CC" = x; then
4301 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4305 # Check whether --enable-static was given.
4306 if test "${enable_static+set}" = set; then :
4307 enableval=$enable_static;
4311 if test x$enable_static = xyes; then
4312 echo Installing static libraries...
4313 INSTALLSTATIC="installstatic"
4318 if test -n "$ac_tool_prefix"; then
4319 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4320 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322 $as_echo_n "checking for $ac_word... " >&6; }
4323 if ${ac_cv_path_PKGCONFIG+:} false; then :
4324 $as_echo_n "(cached) " >&6
4328 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 PKGCONFIG=$ac_cv_path_PKGCONFIG
4350 if test -n "$PKGCONFIG"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4352 $as_echo "$PKGCONFIG" >&6; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4360 if test -z "$ac_cv_path_PKGCONFIG"; then
4361 ac_pt_PKGCONFIG=$PKGCONFIG
4362 # Extract the first word of "pkg-config", so it can be a program name with args.
4363 set dummy pkg-config; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4367 $as_echo_n "(cached) " >&6
4369 case $ac_pt_PKGCONFIG in
4371 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4393 if test -n "$ac_pt_PKGCONFIG"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4395 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4401 if test "x$ac_pt_PKGCONFIG" = x; then
4404 case $cross_compiling:$ac_tool_warned in
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4408 ac_tool_warned=yes ;;
4410 PKGCONFIG=$ac_pt_PKGCONFIG
4413 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4419 $as_echo_n "checking for library containing abs... " >&6; }
4420 if ${ac_cv_search_abs+:} false; then :
4421 $as_echo_n "(cached) " >&6
4423 ac_func_search_save_LIBS=$LIBS
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4427 /* Override any GCC internal prototype to avoid an error.
4428 Use char because int might match the return type of a GCC
4429 builtin and then its argument prototype would still apply. */
4442 for ac_lib in '' m; do
4443 if test -z "$ac_lib"; then
4444 ac_res="none required"
4447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4449 if ac_fn_c_try_link "$LINENO"; then :
4450 ac_cv_search_abs=$ac_res
4452 rm -f core conftest.err conftest.$ac_objext \
4454 if ${ac_cv_search_abs+:} false; then :
4458 if ${ac_cv_search_abs+:} false; then :
4464 LIBS=$ac_func_search_save_LIBS
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4467 $as_echo "$ac_cv_search_abs" >&6; }
4468 ac_res=$ac_cv_search_abs
4469 if test "$ac_res" != no; then :
4470 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4471 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4476 $as_echo_n "checking for library containing crypt... " >&6; }
4477 if ${ac_cv_search_crypt+:} false; then :
4478 $as_echo_n "(cached) " >&6
4480 ac_func_search_save_LIBS=$LIBS
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4484 /* Override any GCC internal prototype to avoid an error.
4485 Use char because int might match the return type of a GCC
4486 builtin and then its argument prototype would still apply. */
4499 for ac_lib in '' crypt; do
4500 if test -z "$ac_lib"; then
4501 ac_res="none required"
4504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4506 if ac_fn_c_try_link "$LINENO"; then :
4507 ac_cv_search_crypt=$ac_res
4509 rm -f core conftest.err conftest.$ac_objext \
4511 if ${ac_cv_search_crypt+:} false; then :
4515 if ${ac_cv_search_crypt+:} false; then :
4518 ac_cv_search_crypt=no
4521 LIBS=$ac_func_search_save_LIBS
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4524 $as_echo "$ac_cv_search_crypt" >&6; }
4525 ac_res=$ac_cv_search_crypt
4526 if test "$ac_res" != no; then :
4527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4532 $as_echo_n "checking for library containing fmod... " >&6; }
4533 if ${ac_cv_search_fmod+:} false; then :
4534 $as_echo_n "(cached) " >&6
4536 ac_func_search_save_LIBS=$LIBS
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4540 /* Override any GCC internal prototype to avoid an error.
4541 Use char because int might match the return type of a GCC
4542 builtin and then its argument prototype would still apply. */
4555 for ac_lib in '' m; do
4556 if test -z "$ac_lib"; then
4557 ac_res="none required"
4560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4562 if ac_fn_c_try_link "$LINENO"; then :
4563 ac_cv_search_fmod=$ac_res
4565 rm -f core conftest.err conftest.$ac_objext \
4567 if ${ac_cv_search_fmod+:} false; then :
4571 if ${ac_cv_search_fmod+:} false; then :
4574 ac_cv_search_fmod=no
4577 LIBS=$ac_func_search_save_LIBS
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4580 $as_echo "$ac_cv_search_fmod" >&6; }
4581 ac_res=$ac_cv_search_fmod
4582 if test "$ac_res" != no; then :
4583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4588 $as_echo_n "checking for library containing getspent... " >&6; }
4589 if ${ac_cv_search_getspent+:} false; then :
4590 $as_echo_n "(cached) " >&6
4592 ac_func_search_save_LIBS=$LIBS
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4596 /* Override any GCC internal prototype to avoid an error.
4597 Use char because int might match the return type of a GCC
4598 builtin and then its argument prototype would still apply. */
4611 for ac_lib in '' sec gen; do
4612 if test -z "$ac_lib"; then
4613 ac_res="none required"
4616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4618 if ac_fn_c_try_link "$LINENO"; then :
4619 ac_cv_search_getspent=$ac_res
4621 rm -f core conftest.err conftest.$ac_objext \
4623 if ${ac_cv_search_getspent+:} false; then :
4627 if ${ac_cv_search_getspent+:} false; then :
4630 ac_cv_search_getspent=no
4633 LIBS=$ac_func_search_save_LIBS
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4636 $as_echo "$ac_cv_search_getspent" >&6; }
4637 ac_res=$ac_cv_search_getspent
4638 if test "$ac_res" != no; then :
4639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4645 # Check whether --enable-mallinfo was given.
4646 if test "${enable_mallinfo+set}" = set; then :
4647 enableval=$enable_mallinfo;
4651 if test x$enable_mallinfo = xyes; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4655 $as_echo_n "checking for library containing mallinfo... " >&6; }
4656 if ${ac_cv_search_mallinfo+:} false; then :
4657 $as_echo_n "(cached) " >&6
4659 ac_func_search_save_LIBS=$LIBS
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4663 /* Override any GCC internal prototype to avoid an error.
4664 Use char because int might match the return type of a GCC
4665 builtin and then its argument prototype would still apply. */
4678 for ac_lib in '' malloc; do
4679 if test -z "$ac_lib"; then
4680 ac_res="none required"
4683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4685 if ac_fn_c_try_link "$LINENO"; then :
4686 ac_cv_search_mallinfo=$ac_res
4688 rm -f core conftest.err conftest.$ac_objext \
4690 if ${ac_cv_search_mallinfo+:} false; then :
4694 if ${ac_cv_search_mallinfo+:} false; then :
4697 ac_cv_search_mallinfo=no
4700 LIBS=$ac_func_search_save_LIBS
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4703 $as_echo "$ac_cv_search_mallinfo" >&6; }
4704 ac_res=$ac_cv_search_mallinfo
4705 if test "$ac_res" != no; then :
4706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4707 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4717 # Check whether --enable-libpaper was given.
4718 if test "${enable_libpaper+set}" = set; then :
4719 enableval=$enable_libpaper;
4723 if test x$enable_libpaper = xyes; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4725 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4726 if ${ac_cv_lib_paper_systempapername+:} false; then :
4727 $as_echo_n "(cached) " >&6
4729 ac_check_lib_save_LIBS=$LIBS
4730 LIBS="-lpaper $LIBS"
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4734 /* Override any GCC internal prototype to avoid an error.
4735 Use char because int might match the return type of a GCC
4736 builtin and then its argument prototype would still apply. */
4740 char systempapername ();
4744 return systempapername ();
4749 if ac_fn_c_try_link "$LINENO"; then :
4750 ac_cv_lib_paper_systempapername=yes
4752 ac_cv_lib_paper_systempapername=no
4754 rm -f core conftest.err conftest.$ac_objext \
4755 conftest$ac_exeext conftest.$ac_ext
4756 LIBS=$ac_check_lib_save_LIBS
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4759 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4760 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4761 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4775 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4776 if ${ac_cv_path_GREP+:} false; then :
4777 $as_echo_n "(cached) " >&6
4779 if test -z "$GREP"; then
4780 ac_path_GREP_found=false
4781 # Loop through the user's path and test for each of PROGNAME-LIST
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4786 test -z "$as_dir" && as_dir=.
4787 for ac_prog in grep ggrep; do
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4790 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4791 # Check for GNU ac_path_GREP and select it if it is found.
4792 # Check for GNU $ac_path_GREP
4793 case `"$ac_path_GREP" --version 2>&1` in
4795 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4798 $as_echo_n 0123456789 >"conftest.in"
4801 cat "conftest.in" "conftest.in" >"conftest.tmp"
4802 mv "conftest.tmp" "conftest.in"
4803 cp "conftest.in" "conftest.nl"
4804 $as_echo 'GREP' >> "conftest.nl"
4805 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4806 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4807 as_fn_arith $ac_count + 1 && ac_count=$as_val
4808 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4809 # Best one so far, save it but keep looking for a better one
4810 ac_cv_path_GREP="$ac_path_GREP"
4811 ac_path_GREP_max=$ac_count
4813 # 10*(2^10) chars as input seems more than enough
4814 test $ac_count -gt 10 && break
4816 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4819 $ac_path_GREP_found && break 3
4824 if test -z "$ac_cv_path_GREP"; then
4825 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4828 ac_cv_path_GREP=$GREP
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4833 $as_echo "$ac_cv_path_GREP" >&6; }
4834 GREP="$ac_cv_path_GREP"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4838 $as_echo_n "checking for egrep... " >&6; }
4839 if ${ac_cv_path_EGREP+:} false; then :
4840 $as_echo_n "(cached) " >&6
4842 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4843 then ac_cv_path_EGREP="$GREP -E"
4845 if test -z "$EGREP"; then
4846 ac_path_EGREP_found=false
4847 # Loop through the user's path and test for each of PROGNAME-LIST
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4852 test -z "$as_dir" && as_dir=.
4853 for ac_prog in egrep; do
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4856 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4857 # Check for GNU ac_path_EGREP and select it if it is found.
4858 # Check for GNU $ac_path_EGREP
4859 case `"$ac_path_EGREP" --version 2>&1` in
4861 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4864 $as_echo_n 0123456789 >"conftest.in"
4867 cat "conftest.in" "conftest.in" >"conftest.tmp"
4868 mv "conftest.tmp" "conftest.in"
4869 cp "conftest.in" "conftest.nl"
4870 $as_echo 'EGREP' >> "conftest.nl"
4871 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4873 as_fn_arith $ac_count + 1 && ac_count=$as_val
4874 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4875 # Best one so far, save it but keep looking for a better one
4876 ac_cv_path_EGREP="$ac_path_EGREP"
4877 ac_path_EGREP_max=$ac_count
4879 # 10*(2^10) chars as input seems more than enough
4880 test $ac_count -gt 10 && break
4882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4885 $ac_path_EGREP_found && break 3
4890 if test -z "$ac_cv_path_EGREP"; then
4891 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4894 ac_cv_path_EGREP=$EGREP
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4900 $as_echo "$ac_cv_path_EGREP" >&6; }
4901 EGREP="$ac_cv_path_EGREP"
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4905 $as_echo_n "checking for ANSI C header files... " >&6; }
4906 if ${ac_cv_header_stdc+:} false; then :
4907 $as_echo_n "(cached) " >&6
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4924 if ac_fn_c_try_compile "$LINENO"; then :
4925 ac_cv_header_stdc=yes
4927 ac_cv_header_stdc=no
4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 if test $ac_cv_header_stdc = yes; then
4932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4939 $EGREP "memchr" >/dev/null 2>&1; then :
4942 ac_cv_header_stdc=no
4948 if test $ac_cv_header_stdc = yes; then
4949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956 $EGREP "free" >/dev/null 2>&1; then :
4959 ac_cv_header_stdc=no
4965 if test $ac_cv_header_stdc = yes; then
4966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4967 if test "$cross_compiling" = yes; then :
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4974 #if ((' ' & 0x0FF) == 0x020)
4975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4978 # define ISLOWER(c) \
4979 (('a' <= (c) && (c) <= 'i') \
4980 || ('j' <= (c) && (c) <= 'r') \
4981 || ('s' <= (c) && (c) <= 'z'))
4982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4990 for (i = 0; i < 256; i++)
4991 if (XOR (islower (i), ISLOWER (i))
4992 || toupper (i) != TOUPPER (i))
4997 if ac_fn_c_try_run "$LINENO"; then :
5000 ac_cv_header_stdc=no
5002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5003 conftest.$ac_objext conftest.beam conftest.$ac_ext
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5009 $as_echo "$ac_cv_header_stdc" >&6; }
5010 if test $ac_cv_header_stdc = yes; then
5012 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5017 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5018 inttypes.h stdint.h unistd.h
5020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5021 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5024 cat >>confdefs.h <<_ACEOF
5025 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5033 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5034 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5035 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
5040 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5041 if test "x$ac_cv_header_crypt_h" = xyes; then :
5042 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5047 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5048 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5049 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5054 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5055 if test "x$ac_cv_header_malloc_h" = xyes; then :
5056 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5061 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5062 if test "x$ac_cv_header_shadow_h" = xyes; then :
5063 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5068 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5069 if test "x$ac_cv_header_stdint_h" = xyes; then :
5070 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
5075 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5076 if test "x$ac_cv_header_string_h" = xyes; then :
5077 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5082 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5083 if test "x$ac_cv_header_strings_h" = xyes; then :
5084 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5089 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5090 if test "x$ac_cv_header_bstring_h" = xyes; then :
5091 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5096 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5097 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5098 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5103 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5104 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5105 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5110 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5111 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5112 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5118 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5119 if test "x$ac_cv_header_iconv_h" = xyes; then :
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5123 $as_echo_n "checking for library containing iconv_open... " >&6; }
5124 if ${ac_cv_search_iconv_open+:} false; then :
5125 $as_echo_n "(cached) " >&6
5127 ac_func_search_save_LIBS=$LIBS
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5131 /* Override any GCC internal prototype to avoid an error.
5132 Use char because int might match the return type of a GCC
5133 builtin and then its argument prototype would still apply. */
5141 return iconv_open ();
5146 for ac_lib in '' iconv; do
5147 if test -z "$ac_lib"; then
5148 ac_res="none required"
5151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5153 if ac_fn_c_try_link "$LINENO"; then :
5154 ac_cv_search_iconv_open=$ac_res
5156 rm -f core conftest.err conftest.$ac_objext \
5158 if ${ac_cv_search_iconv_open+:} false; then :
5162 if ${ac_cv_search_iconv_open+:} false; then :
5165 ac_cv_search_iconv_open=no
5168 LIBS=$ac_func_search_save_LIBS
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5171 $as_echo "$ac_cv_search_iconv_open" >&6; }
5172 ac_res=$ac_cv_search_iconv_open
5173 if test "$ac_res" != no; then :
5174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5175 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5177 SAVELIBS="$SAVELIBS $LIBS"
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5181 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5182 if ${ac_cv_search_libiconv_open+:} false; then :
5183 $as_echo_n "(cached) " >&6
5185 ac_func_search_save_LIBS=$LIBS
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5189 /* Override any GCC internal prototype to avoid an error.
5190 Use char because int might match the return type of a GCC
5191 builtin and then its argument prototype would still apply. */
5195 char libiconv_open ();
5199 return libiconv_open ();
5204 for ac_lib in '' iconv; do
5205 if test -z "$ac_lib"; then
5206 ac_res="none required"
5209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5211 if ac_fn_c_try_link "$LINENO"; then :
5212 ac_cv_search_libiconv_open=$ac_res
5214 rm -f core conftest.err conftest.$ac_objext \
5216 if ${ac_cv_search_libiconv_open+:} false; then :
5220 if ${ac_cv_search_libiconv_open+:} false; then :
5223 ac_cv_search_libiconv_open=no
5226 LIBS=$ac_func_search_save_LIBS
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5229 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5230 ac_res=$ac_cv_search_libiconv_open
5231 if test "$ac_res" != no; then :
5232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5233 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5235 SAVELIBS="$SAVELIBS $LIBS"
5244 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5245 if test "x$ac_cv_header_mxml_h" = xyes; then :
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5248 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5249 if ${ac_cv_search_mmxlNewElement+:} false; then :
5250 $as_echo_n "(cached) " >&6
5252 ac_func_search_save_LIBS=$LIBS
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5256 /* Override any GCC internal prototype to avoid an error.
5257 Use char because int might match the return type of a GCC
5258 builtin and then its argument prototype would still apply. */
5262 char mmxlNewElement ();
5266 return mmxlNewElement ();
5271 for ac_lib in '' mxml; do
5272 if test -z "$ac_lib"; then
5273 ac_res="none required"
5276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5278 if ac_fn_c_try_link "$LINENO"; then :
5279 ac_cv_search_mmxlNewElement=$ac_res
5281 rm -f core conftest.err conftest.$ac_objext \
5283 if ${ac_cv_search_mmxlNewElement+:} false; then :
5287 if ${ac_cv_search_mmxlNewElement+:} false; then :
5290 ac_cv_search_mmxlNewElement=no
5293 LIBS=$ac_func_search_save_LIBS
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5296 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5297 ac_res=$ac_cv_search_mmxlNewElement
5298 if test "$ac_res" != no; then :
5299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5300 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5311 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5312 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5313 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5318 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5319 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5320 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5325 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5326 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5327 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5332 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5333 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5334 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5339 for ac_func in statfs statvfs
5341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5342 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5343 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5344 cat >>confdefs.h <<_ACEOF
5345 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5352 for ac_func in strdup strlcat strlcpy
5354 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5355 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5356 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5357 cat >>confdefs.h <<_ACEOF
5358 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5364 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5365 echo Forcing snprintf emulation for HP-UX.
5367 for ac_func in snprintf vsnprintf
5369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5370 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5371 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5372 cat >>confdefs.h <<_ACEOF
5373 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5381 for ac_func in random lrand48 arc4random
5383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5384 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5385 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5386 cat >>confdefs.h <<_ACEOF
5387 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5394 for ac_func in geteuid
5396 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5397 if test "x$ac_cv_func_geteuid" = xyes; then :
5398 cat >>confdefs.h <<_ACEOF
5399 #define HAVE_GETEUID 1
5406 for ac_func in setpgid
5408 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5409 if test "x$ac_cv_func_setpgid" = xyes; then :
5410 cat >>confdefs.h <<_ACEOF
5411 #define HAVE_SETPGID 1
5418 for ac_func in vsyslog
5420 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5421 if test "x$ac_cv_func_vsyslog" = xyes; then :
5422 cat >>confdefs.h <<_ACEOF
5423 #define HAVE_VSYSLOG 1
5430 case "$host_os_name" in
5432 # Do not use sigset on Linux or GNU HURD
5435 # Use sigset on other platforms, if available
5436 for ac_func in sigset
5438 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5439 if test "x$ac_cv_func_sigset" = xyes; then :
5440 cat >>confdefs.h <<_ACEOF
5441 #define HAVE_SIGSET 1
5450 for ac_func in sigaction
5452 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5453 if test "x$ac_cv_func_sigaction" = xyes; then :
5454 cat >>confdefs.h <<_ACEOF
5455 #define HAVE_SIGACTION 1
5462 for ac_func in waitpid wait3
5464 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5465 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5466 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5467 cat >>confdefs.h <<_ACEOF
5468 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5475 for ac_func in posix_spawn
5477 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5478 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5479 cat >>confdefs.h <<_ACEOF
5480 #define HAVE_POSIX_SPAWN 1
5487 for ac_func in getgrouplist
5489 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5490 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5491 cat >>confdefs.h <<_ACEOF
5492 #define HAVE_GETGROUPLIST 1
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5500 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5508 int o = t.tm_gmtoff;
5513 if ac_fn_c_try_compile "$LINENO"; then :
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515 $as_echo "yes" >&6; }
5516 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5525 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 #include <sys/stat.h>
5538 if ac_fn_c_try_compile "$LINENO"; then :
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5540 $as_echo "yes" >&6; }
5541 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 for ac_func in removefile
5551 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5552 if test "x$ac_cv_func_removefile" = xyes; then :
5553 cat >>confdefs.h <<_ACEOF
5554 #define HAVE_REMOVEFILE 1
5561 # Check whether --enable-libusb was given.
5562 if test "${enable_libusb+set}" = set; then :
5563 enableval=$enable_libusb;
5572 if test "x$PKGCONFIG" != x; then
5573 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5575 $as_echo_n "checking for libusb-1.0... " >&6; }
5576 if $PKGCONFIG --exists libusb-1.0; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5578 $as_echo "yes" >&6; }
5579 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5581 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5582 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5583 USBQUIRKS="\$(DATADIR)/usb"
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 if test x$enable_libusb = xyes; then
5588 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5592 elif test x$enable_libusb = xyes; then
5593 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5596 # Check whether --enable-tcp_wrappers was given.
5597 if test "${enable_tcp_wrappers+set}" = set; then :
5598 enableval=$enable_tcp_wrappers;
5605 if test x$enable_tcp_wrappers = xyes; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5607 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5608 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5609 $as_echo_n "(cached) " >&6
5611 ac_check_lib_save_LIBS=$LIBS
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5616 /* Override any GCC internal prototype to avoid an error.
5617 Use char because int might match the return type of a GCC
5618 builtin and then its argument prototype would still apply. */
5622 char hosts_access ();
5626 return hosts_access ();
5631 if ac_fn_c_try_link "$LINENO"; then :
5632 ac_cv_lib_wrap_hosts_access=yes
5634 ac_cv_lib_wrap_hosts_access=no
5636 rm -f core conftest.err conftest.$ac_objext \
5637 conftest$ac_exeext conftest.$ac_ext
5638 LIBS=$ac_check_lib_save_LIBS
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5641 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5642 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5644 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5645 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5646 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5658 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5659 if test "x$ac_cv_header_zlib_h" = xyes; then :
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5661 $as_echo_n "checking for gzgets in -lz... " >&6; }
5662 if ${ac_cv_lib_z_gzgets+:} false; then :
5663 $as_echo_n "(cached) " >&6
5665 ac_check_lib_save_LIBS=$LIBS
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5670 /* Override any GCC internal prototype to avoid an error.
5671 Use char because int might match the return type of a GCC
5672 builtin and then its argument prototype would still apply. */
5685 if ac_fn_c_try_link "$LINENO"; then :
5686 ac_cv_lib_z_gzgets=yes
5688 ac_cv_lib_z_gzgets=no
5690 rm -f core conftest.err conftest.$ac_objext \
5691 conftest$ac_exeext conftest.$ac_ext
5692 LIBS=$ac_check_lib_save_LIBS
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5695 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5696 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5697 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5702 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5703 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5704 $as_echo_n "(cached) " >&6
5706 ac_check_lib_save_LIBS=$LIBS
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5711 /* Override any GCC internal prototype to avoid an error.
5712 Use char because int might match the return type of a GCC
5713 builtin and then its argument prototype would still apply. */
5717 char inflateCopy ();
5721 return inflateCopy ();
5726 if ac_fn_c_try_link "$LINENO"; then :
5727 ac_cv_lib_z_inflateCopy=yes
5729 ac_cv_lib_z_inflateCopy=no
5731 rm -f core conftest.err conftest.$ac_objext \
5732 conftest$ac_exeext conftest.$ac_ext
5733 LIBS=$ac_check_lib_save_LIBS
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5736 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5737 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5738 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5742 if test "x$GZIP" != z; then
5753 case $host_os_name in
5771 # Check whether --enable-acl was given.
5772 if test "${enable_acl+set}" = set; then :
5773 enableval=$enable_acl;
5776 if test "x$enable_acl" != xno; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5778 $as_echo_n "checking for library containing acl_init... " >&6; }
5779 if ${ac_cv_search_acl_init+:} false; then :
5780 $as_echo_n "(cached) " >&6
5782 ac_func_search_save_LIBS=$LIBS
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5786 /* Override any GCC internal prototype to avoid an error.
5787 Use char because int might match the return type of a GCC
5788 builtin and then its argument prototype would still apply. */
5801 for ac_lib in '' acl; do
5802 if test -z "$ac_lib"; then
5803 ac_res="none required"
5806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5808 if ac_fn_c_try_link "$LINENO"; then :
5809 ac_cv_search_acl_init=$ac_res
5811 rm -f core conftest.err conftest.$ac_objext \
5813 if ${ac_cv_search_acl_init+:} false; then :
5817 if ${ac_cv_search_acl_init+:} false; then :
5820 ac_cv_search_acl_init=no
5823 LIBS=$ac_func_search_save_LIBS
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5826 $as_echo "$ac_cv_search_acl_init" >&6; }
5827 ac_res=$ac_cv_search_acl_init
5828 if test "$ac_res" != no; then :
5829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5830 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5834 SERVERLIBS="$SERVERLIBS $LIBS"
5838 # Check whether --enable-dbus was given.
5839 if test "${enable_dbus+set}" = set; then :
5840 enableval=$enable_dbus;
5844 # Check whether --with-dbusdir was given.
5845 if test "${with_dbusdir+set}" = set; then :
5846 withval=$with_dbusdir; DBUSDIR="$withval"
5852 DBUS_NOTIFIERLIBS=""
5854 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5856 $as_echo_n "checking for DBUS... " >&6; }
5857 if $PKGCONFIG --exists dbus-1; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5859 $as_echo "yes" >&6; }
5860 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5862 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5863 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5864 DBUS_NOTIFIER="dbus"
5865 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5867 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5868 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5869 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5870 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5874 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5875 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5876 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5881 if test -d /etc/dbus-1; then
5882 DBUSDIR="/etc/dbus-1"
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5894 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5895 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5896 CUPS_SYSTEM_AUTHKEY=""
5899 case $host_os_name in
5901 BACKLIBS="$BACKLIBS -framework IOKit"
5902 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5903 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5905 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5906 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5907 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5912 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5913 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5914 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5919 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5920 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5921 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5926 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5927 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5928 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5934 for ac_func in SCDynamicStoreCopyComputerName
5936 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5937 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5938 cat >>confdefs.h <<_ACEOF
5939 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5946 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5947 if test "x$ac_cv_header_membership_h" = xyes; then :
5948 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5953 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5954 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5955 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5960 for ac_func in mbr_uid_to_uuid
5962 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5963 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5964 cat >>confdefs.h <<_ACEOF
5965 #define HAVE_MBR_UID_TO_UUID 1
5972 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5973 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5974 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5980 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5981 if test "x$ac_cv_header_notify_h" = xyes; then :
5982 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5987 for ac_func in notify_post
5989 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5990 if test "x$ac_cv_func_notify_post" = xyes; then :
5991 cat >>confdefs.h <<_ACEOF
5992 #define HAVE_NOTIFY_POST 1
6000 # Check whether --with-adminkey was given.
6001 if test "${with_adminkey+set}" = set; then :
6002 withval=$with_adminkey; default_adminkey="$withval"
6004 default_adminkey="default"
6008 # Check whether --with-operkey was given.
6009 if test "${with_operkey+set}" = set; then :
6010 withval=$with_operkey; default_operkey="$withval"
6012 default_operkey="default"
6016 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
6017 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
6019 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
6022 if test "x$default_adminkey" != xdefault; then
6023 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
6024 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
6026 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
6027 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
6030 if test "x$default_operkey" != xdefault; then
6031 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
6033 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
6038 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
6039 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
6040 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
6046 if test $host_os_version -ge 100; then
6047 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6048 if test "x$ac_cv_header_sandbox_h" = xyes; then :
6049 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
6055 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
6056 # Broken public headers in 10.7.x...
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
6058 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
6059 if test -f /usr/local/include/sandbox/private.h; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6061 $as_echo "yes" >&6; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 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
6069 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
6070 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
6071 $as_echo "#define HAVE_XPC 1" >>confdefs.h
6073 INSTALLXPC="install-xpc"
6077 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
6078 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
6079 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
6088 cat >>confdefs.h <<_ACEOF
6089 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6092 cat >>confdefs.h <<_ACEOF
6093 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6102 # Check whether --with-components was given.
6103 if test "${with_components+set}" = set; then :
6104 withval=$with_components; COMPONENTS="$withval"
6108 case "$COMPONENTS" in
6110 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6114 BUILDDIRS="data locale"
6118 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6127 if test "$prefix" = "NONE"; then
6131 if test "$exec_prefix" = "NONE"; then
6132 if test "$prefix" = "/"; then
6135 exec_prefix="$prefix"
6139 if test "$bindir" = "\${exec_prefix}/bin"; then
6140 bindir="$exec_prefix/bin"
6143 cat >>confdefs.h <<_ACEOF
6144 #define CUPS_BINDIR "$bindir"
6148 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6149 sbindir="$exec_prefix/sbin"
6152 cat >>confdefs.h <<_ACEOF
6153 #define CUPS_SBINDIR "$sbindir"
6157 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6158 sharedstatedir="/usr/com"
6161 if test "$datarootdir" = "\${prefix}/share"; then
6162 if test "$prefix" = "/"; then
6163 datarootdir="/usr/share"
6165 datarootdir="$prefix/share"
6169 if test "$datadir" = "\${prefix}/share"; then
6170 if test "$prefix" = "/"; then
6171 datadir="/usr/share"
6173 datadir="$prefix/share"
6175 elif test "$datadir" = "\${datarootdir}"; then
6176 datadir="$datarootdir"
6179 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6180 includedir="/usr/include"
6183 if test "$localstatedir" = "\${prefix}/var"; then
6184 if test "$prefix" = "/"; then
6185 if test "$host_os_name" = darwin; then
6186 localstatedir="/private/var"
6188 localstatedir="/var"
6191 localstatedir="$prefix/var"
6195 if test "$sysconfdir" = "\${prefix}/etc"; then
6196 if test "$prefix" = "/"; then
6197 if test "$host_os_name" = darwin; then
6198 sysconfdir="/private/etc"
6203 sysconfdir="$prefix/etc"
6207 if test "$libdir" = "\${exec_prefix}/lib"; then
6208 case "$host_os_name" in
6210 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6211 libdir="$exec_prefix/lib64"
6218 # Check whether --with-privateinclude was given.
6219 if test "${with_privateinclude+set}" = set; then :
6220 withval=$with_privateinclude; privateinclude="$withval"
6225 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6226 PRIVATEINCLUDE="$privateinclude/cups"
6235 # Check whether --with-lpdconfig was given.
6236 if test "${with_lpdconfig+set}" = set; then :
6237 withval=$with_lpdconfig; LPDCONFIG="$withval"
6243 if test "x$LPDCONFIG" = x; then
6244 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6245 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6246 elif test "x$XINETD" != x; then
6247 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6251 if test "x$LPDCONFIG" = xoff; then
6252 cat >>confdefs.h <<_ACEOF
6253 #define CUPS_DEFAULT_LPD_CONFIG ""
6257 cat >>confdefs.h <<_ACEOF
6258 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6264 # Check whether --with-smbconfig was given.
6265 if test "${with_smbconfig+set}" = set; then :
6266 withval=$with_smbconfig; SMBCONFIG="$withval"
6272 if test "x$SMBCONFIG" = x; then
6273 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6274 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6276 for dir in /etc /etc/samba /usr/local/etc; do
6277 if test -f $dir/smb.conf; then
6278 SMBCONFIG="samba://$dir/smb.conf"
6285 if test "x$SMBCONFIG" = xoff; then
6286 cat >>confdefs.h <<_ACEOF
6287 #define CUPS_DEFAULT_SMB_CONFIG ""
6291 cat >>confdefs.h <<_ACEOF
6292 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6299 # Check whether --with-cachedir was given.
6300 if test "${with_cachedir+set}" = set; then :
6301 withval=$with_cachedir; cachedir="$withval"
6307 if test x$cachedir = x; then
6308 if test "x$host_os_name" = xdarwin; then
6309 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6311 CUPS_CACHEDIR="$localstatedir/cache/cups"
6314 CUPS_CACHEDIR="$cachedir"
6316 cat >>confdefs.h <<_ACEOF
6317 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6323 CUPS_DATADIR="$datadir/cups"
6324 cat >>confdefs.h <<_ACEOF
6325 #define CUPS_DATADIR "$datadir/cups"
6332 # Check whether --with-icondir was given.
6333 if test "${with_icondir+set}" = set; then :
6334 withval=$with_icondir; icondir="$withval"
6340 if test "x$icondir" = x -a -d /usr/share/icons; then
6341 ICONDIR="/usr/share/icons"
6350 # Check whether --with-menudir was given.
6351 if test "${with_menudir+set}" = set; then :
6352 withval=$with_menudir; menudir="$withval"
6358 if test "x$menudir" = x -a -d /usr/share/applications; then
6359 MENUDIR="/usr/share/applications"
6366 # Documentation files
6368 # Check whether --with-docdir was given.
6369 if test "${with_docdir+set}" = set; then :
6370 withval=$with_docdir; docdir="$withval"
6376 if test x$docdir = x; then
6377 CUPS_DOCROOT="$datadir/doc/cups"
6378 docdir="$datadir/doc/cups"
6380 CUPS_DOCROOT="$docdir"
6383 cat >>confdefs.h <<_ACEOF
6384 #define CUPS_DOCROOT "$docdir"
6391 # Check whether --with-fontpath was given.
6392 if test "${with_fontpath+set}" = set; then :
6393 withval=$with_fontpath; fontpath="$withval"
6399 if test "x$fontpath" = "x"; then
6400 CUPS_FONTPATH="$datadir/cups/fonts"
6402 CUPS_FONTPATH="$fontpath"
6406 cat >>confdefs.h <<_ACEOF
6407 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6412 if test "$localedir" = "\${datarootdir}/locale"; then
6413 case "$host_os_name" in
6414 linux* | gnu* | *bsd* | darwin*)
6415 CUPS_LOCALEDIR="$datarootdir/locale"
6419 # This is the standard System V location...
6420 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6424 CUPS_LOCALEDIR="$localedir"
6427 cat >>confdefs.h <<_ACEOF
6428 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6435 # Check whether --with-logdir was given.
6436 if test "${with_logdir+set}" = set; then :
6437 withval=$with_logdir; logdir="$withval"
6443 if test x$logdir = x; then
6444 CUPS_LOGDIR="$localstatedir/log/cups"
6445 cat >>confdefs.h <<_ACEOF
6446 #define CUPS_LOGDIR "$localstatedir/log/cups"
6450 CUPS_LOGDIR="$logdir"
6452 cat >>confdefs.h <<_ACEOF
6453 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6458 # Longer-term spool data
6459 CUPS_REQUESTS="$localstatedir/spool/cups"
6460 cat >>confdefs.h <<_ACEOF
6461 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6466 # Server executables...
6467 case "$host_os_name" in
6469 # *BSD and Darwin (macOS)
6471 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6475 INSTALL_SYSV="install-sysv"
6476 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6480 cat >>confdefs.h <<_ACEOF
6481 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6487 # Configuration files
6488 CUPS_SERVERROOT="$sysconfdir/cups"
6489 cat >>confdefs.h <<_ACEOF
6490 #define CUPS_SERVERROOT "$sysconfdir/cups"
6495 # Transient run-time state
6497 # Check whether --with-rundir was given.
6498 if test "${with_rundir+set}" = set; then :
6499 withval=$with_rundir; CUPS_STATEDIR="$withval"
6502 case "$host_os_name" in
6505 CUPS_STATEDIR="$CUPS_SERVERROOT"
6509 CUPS_STATEDIR="$localstatedir/run/cups"
6514 cat >>confdefs.h <<_ACEOF
6515 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6521 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6522 # New GNU "standards" break previous ones, so make sure we use
6523 # the right default location for the operating system...
6524 mandir="\${prefix}/man"
6527 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6528 case "$host_os_name" in
6529 darwin* | linux* | gnu* | *bsd*)
6530 # Darwin, macOS, Linux, GNU HURD, and *BSD
6531 mandir="/usr/share/man"
6532 AMANDIR="/usr/share/man"
6533 PMANDIR="/usr/share/man"
6550 case "$host_os_name" in
6559 linux* | gnu* | darwin*)
6560 # Linux, GNU Hurd, and macOS
6586 DSOFLAGS="${DSOFLAGS:=}"
6588 # Check whether --enable-shared was given.
6589 if test "${enable_shared+set}" = set; then :
6590 enableval=$enable_shared;
6595 LIBCUPSBASE="lib$cupsbase"
6596 LIBCUPSSTATIC="lib$cupsbase.a"
6598 if test x$enable_shared != xno; then
6599 case "$host_os_name" in
6601 LIBCUPS="lib$cupsbase.so.2"
6602 LIBCUPSCGI="libcupscgi.so.1"
6603 LIBCUPSIMAGE="libcupsimage.so.2"
6604 LIBCUPSMIME="libcupsmime.so.1"
6605 LIBCUPSPPDC="libcupsppdc.so.1"
6608 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G \$(OPTIM)"
6610 linux* | gnu* | *bsd*)
6611 LIBCUPS="lib$cupsbase.so.2"
6612 LIBCUPSCGI="libcupscgi.so.1"
6613 LIBCUPSIMAGE="libcupsimage.so.2"
6614 LIBCUPSMIME="libcupsmime.so.1"
6615 LIBCUPSPPDC="libcupsppdc.so.1"
6618 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6621 LIBCUPS="lib$cupsbase.2.dylib"
6622 LIBCUPSCGI="libcupscgi.1.dylib"
6623 LIBCUPSIMAGE="libcupsimage.2.dylib"
6624 LIBCUPSMIME="libcupsmime.1.dylib"
6625 LIBCUPSPPDC="libcupsppdc.1.dylib"
6628 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6631 echo "Warning: shared libraries may not be supported. Trying -shared"
6632 echo " option with compiler."
6633 LIBCUPS="lib$cupsbase.so.2"
6634 LIBCUPSCGI="libcupscgi.so.1"
6635 LIBCUPSIMAGE="libcupsimage.so.2"
6636 LIBCUPSMIME="libcupsmime.so.1"
6637 LIBCUPSPPDC="libcupsppdc.so.1"
6640 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6645 LIBCUPS="lib$cupsbase.a"
6646 LIBCUPSCGI="libcupscgi.a"
6647 LIBCUPSIMAGE="libcupsimage.a"
6648 LIBCUPSMIME="libcupsmime.a"
6649 LIBCUPSPPDC="libcupsppdc.a"
6665 if test x$enable_shared = xno; then
6666 LINKCUPS="../cups/lib$cupsbase.a"
6667 LINKCUPSIMAGE="../cups/libcupsimage.a"
6669 EXTLINKCUPS="-lcups"
6670 EXTLINKCUPSIMAGE="-lcupsimage"
6672 LINKCUPS="-l${cupsbase}"
6673 LINKCUPSIMAGE="-lcupsimage"
6675 EXTLINKCUPS="-lcups"
6676 EXTLINKCUPSIMAGE="-lcupsimage"
6686 if test "$DSO" != ":"; then
6687 # When using DSOs the image libraries are linked to libcupsimage.so
6688 # rather than to the executables. This makes things smaller if you
6689 # are using any static libraries, and it also allows us to distribute
6690 # a single DSO rather than a bunch...
6694 # Tell the run-time linkers where to find a DSO. Some platforms
6695 # need this option, even when the library is installed in a
6696 # standard location...
6697 case $host_os_name in
6700 if test $exec_prefix != /usr; then
6701 DSOFLAGS="-R$libdir $DSOFLAGS"
6702 LDFLAGS="$LDFLAGS -R$libdir"
6703 EXPORT_LDFLAGS="-R$libdir"
6708 if test $exec_prefix != /usr; then
6709 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6710 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6711 EXPORT_LDFLAGS="-Wl,-R$libdir"
6715 # Linux, and HURD...
6716 if test $exec_prefix != /usr; then
6717 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6718 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6719 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6733 # Check whether --enable-libtool_unsupported was given.
6734 if test "${enable_libtool_unsupported+set}" = set; then :
6735 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6736 if test x$enable_libtool_unsupported == xyes; then
6737 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6739 LIBTOOL="$enable_libtool_unsupported"
6741 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6742 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6749 if test x$LIBTOOL != x; then
6750 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6751 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6753 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6754 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6756 LIBCUPS="libcups.la"
6757 LIBCUPSSTATIC="libcups.la"
6758 LIBCUPSCGI="libcupscgi.la"
6759 LIBCUPSIMAGE="libcupsimage.la"
6760 LIBCUPSMIME="libcupsmime.la"
6761 LIBCUPSPPDC="libcupsppdc.la"
6763 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
6764 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
6765 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
6767 LINKCUPS="../cups/\$(LIBCUPS)"
6768 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
6794 # Check whether --with-optim was given.
6795 if test "${with_optim+set}" = set; then :
6796 withval=$with_optim;
6799 # Check whether --enable-debug was given.
6800 if test "${enable_debug+set}" = set; then :
6801 enableval=$enable_debug;
6804 # Check whether --enable-debug_guards was given.
6805 if test "${enable_debug_guards+set}" = set; then :
6806 enableval=$enable_debug_guards;
6809 # Check whether --enable-debug_printfs was given.
6810 if test "${enable_debug_printfs+set}" = set; then :
6811 enableval=$enable_debug_printfs;
6814 # Check whether --enable-unit_tests was given.
6815 if test "${enable_unit_tests+set}" = set; then :
6816 enableval=$enable_unit_tests;
6820 if test x$enable_debug = xyes; then
6826 if test x$enable_debug_printfs = xyes; then
6827 CFLAGS="$CFLAGS -DDEBUG"
6828 CXXFLAGS="$CXXFLAGS -DDEBUG"
6831 if test x$enable_debug_guards = xyes; then
6832 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6833 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6836 if test x$enable_unit_tests = xyes; then
6837 if test "$build" != "$host"; then
6838 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6841 UNITTESTS="unittests"
6848 # Check whether --with-archflags was given.
6849 if test "${with_archflags+set}" = set; then :
6850 withval=$with_archflags;
6854 # Check whether --with-ldarchflags was given.
6855 if test "${with_ldarchflags+set}" = set; then :
6856 withval=$with_ldarchflags;
6860 if test -z "$with_archflags"; then
6863 ARCHFLAGS="$with_archflags"
6866 if test -z "$with_ldarchflags"; then
6867 if test "$host_os_name" = darwin; then
6868 # Only create Intel programs by default
6869 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6871 LDARCHFLAGS="$ARCHFLAGS"
6874 LDARCHFLAGS="$with_ldarchflags"
6880 # Check whether --enable-relro was given.
6881 if test "${enable_relro+set}" = set; then :
6882 enableval=$enable_relro;
6886 CXXLIBS="${CXXLIBS:=}"
6895 if test -n "$GCC"; then
6896 # Add GCC-specific compiler options...
6897 if test -z "$OPTIM"; then
6898 if test "x$with_optim" = x; then
6899 # Default to optimize-for-size and debug
6902 OPTIM="$with_optim $OPTIM"
6906 # Generate position-independent code as needed...
6907 if test $PICFLAG = 1; then
6908 OPTIM="-fPIC $OPTIM"
6911 # The -fstack-protector option is available with some versions of
6912 # GCC and adds "stack canaries" which detect when the return address
6913 # has been overwritten, preventing many types of exploit attacks.
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6915 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6917 CFLAGS="$CFLAGS -fstack-protector"
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6929 if ac_fn_c_try_link "$LINENO"; then :
6930 if test "x$LSB_BUILD" = xy; then
6931 # Can't use stack-protector with LSB binaries...
6932 OPTIM="$OPTIM -fno-stack-protector"
6934 OPTIM="$OPTIM -fstack-protector"
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6937 $as_echo "yes" >&6; }
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6942 rm -f core conftest.err conftest.$ac_objext \
6943 conftest$ac_exeext conftest.$ac_ext
6946 if test "x$LSB_BUILD" != xy; then
6947 # The -fPIE option is available with some versions of GCC and
6948 # adds randomization of addresses, which avoids another class of
6949 # exploits that depend on a fixed address for common functions.
6951 # Not available to LSB binaries...
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6953 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6955 case "$host_os_name" in
6957 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6969 if ac_fn_c_try_compile "$LINENO"; then :
6971 PIEFLAGS="-fPIE -Wl,-pie"
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6973 $as_echo "yes" >&6; }
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 $as_echo "no" >&6; }
6978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 CFLAGS="$CFLAGS -fPIE -pie"
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6994 if ac_fn_c_try_compile "$LINENO"; then :
6996 PIEFLAGS="-fPIE -pie"
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6998 $as_echo "yes" >&6; }
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009 if test "x$with_optim" = x; then
7010 # Add useful warning options for tracking down problems...
7011 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-unused-result" >&5
7014 $as_echo_n "checking whether compiler supports -Wno-unused-result... " >&6; }
7016 CFLAGS="$CFLAGS -Werror -Wno-unused-result"
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7028 if ac_fn_c_try_compile "$LINENO"; then :
7029 OPTIM="$OPTIM -Wno-unused-result"
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7031 $as_echo "yes" >&6; }
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-conversion" >&5
7040 $as_echo_n "checking whether compiler supports -Wsign-conversion... " >&6; }
7042 CFLAGS="$CFLAGS -Werror -Wsign-conversion"
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7054 if ac_fn_c_try_compile "$LINENO"; then :
7055 OPTIM="$OPTIM -Wsign-conversion"
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7057 $as_echo "yes" >&6; }
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-compare" >&5
7066 $as_echo_n "checking whether compiler supports -Wno-tautological-compare... " >&6; }
7068 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7080 if ac_fn_c_try_compile "$LINENO"; then :
7081 OPTIM="$OPTIM -Wno-tautological-compare"
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7083 $as_echo "yes" >&6; }
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 # Additional warning options for development testing...
7092 if test -d .git; then
7093 OPTIM="-Werror $OPTIM"
7097 case "$host_os_name" in
7099 # -D_FORTIFY_SOURCE=2 adds additional object size
7100 # checking, basically wrapping all string functions
7101 # with buffer-limited ones. Not strictly needed for
7102 # CUPS since we already use buffer-limited calls, but
7103 # this will catch any additions that are broken.
7104 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7108 # The -z relro option is provided by the Linux linker command to
7109 # make relocatable data read-only.
7110 if test x$enable_relro = xyes; then
7111 RELROFLAGS="-Wl,-z,relro,-z,now"
7116 # Add vendor-specific compiler options...
7117 case $host_os_name in
7120 if test -z "$OPTIM"; then
7121 if test "x$with_optim" = x; then
7124 OPTIM="$with_optim $OPTIM"
7128 if test $PICFLAG = 1; then
7129 OPTIM="-KPIC $OPTIM"
7133 # Running some other operating system; inform the user they
7134 # should contribute the necessary options to
7135 # cups-support@cups.org...
7136 echo "Building CUPS with default compiler optimizations; contact"
7137 echo "cups-devel@cups.org with uname and compiler options needed"
7138 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7139 echo "variables before running configure."
7144 # Add general compiler options per platform...
7145 case $host_os_name in
7147 # glibc 2.8 and higher breaks peer credentials unless you
7148 # define _GNU_SOURCE...
7149 OPTIM="$OPTIM -D_GNU_SOURCE"
7155 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
7156 #include <sys/socket.h>
7157 #include <netinet/in.h>
7158 #include <arpa/inet.h>
7159 #include <netinet/in_systm.h>
7160 #include <netinet/ip.h>
7162 if test "x$ac_cv_header_resolv_h" = xyes; then :
7163 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7169 $as_echo_n "checking for library containing socket... " >&6; }
7170 if ${ac_cv_search_socket+:} false; then :
7171 $as_echo_n "(cached) " >&6
7173 ac_func_search_save_LIBS=$LIBS
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7177 /* Override any GCC internal prototype to avoid an error.
7178 Use char because int might match the return type of a GCC
7179 builtin and then its argument prototype would still apply. */
7192 for ac_lib in '' socket; do
7193 if test -z "$ac_lib"; then
7194 ac_res="none required"
7197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7199 if ac_fn_c_try_link "$LINENO"; then :
7200 ac_cv_search_socket=$ac_res
7202 rm -f core conftest.err conftest.$ac_objext \
7204 if ${ac_cv_search_socket+:} false; then :
7208 if ${ac_cv_search_socket+:} false; then :
7211 ac_cv_search_socket=no
7214 LIBS=$ac_func_search_save_LIBS
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7217 $as_echo "$ac_cv_search_socket" >&6; }
7218 ac_res=$ac_cv_search_socket
7219 if test "$ac_res" != no; then :
7220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7225 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7226 if ${ac_cv_search_gethostbyaddr+:} false; then :
7227 $as_echo_n "(cached) " >&6
7229 ac_func_search_save_LIBS=$LIBS
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7233 /* Override any GCC internal prototype to avoid an error.
7234 Use char because int might match the return type of a GCC
7235 builtin and then its argument prototype would still apply. */
7239 char gethostbyaddr ();
7243 return gethostbyaddr ();
7248 for ac_lib in '' nsl; do
7249 if test -z "$ac_lib"; then
7250 ac_res="none required"
7253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7255 if ac_fn_c_try_link "$LINENO"; then :
7256 ac_cv_search_gethostbyaddr=$ac_res
7258 rm -f core conftest.err conftest.$ac_objext \
7260 if ${ac_cv_search_gethostbyaddr+:} false; then :
7264 if ${ac_cv_search_gethostbyaddr+:} false; then :
7267 ac_cv_search_gethostbyaddr=no
7270 LIBS=$ac_func_search_save_LIBS
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7273 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7274 ac_res=$ac_cv_search_gethostbyaddr
7275 if test "$ac_res" != no; then :
7276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7281 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7282 if ${ac_cv_search_getifaddrs+:} false; then :
7283 $as_echo_n "(cached) " >&6
7285 ac_func_search_save_LIBS=$LIBS
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7289 /* Override any GCC internal prototype to avoid an error.
7290 Use char because int might match the return type of a GCC
7291 builtin and then its argument prototype would still apply. */
7299 return getifaddrs ();
7304 for ac_lib in '' nsl; do
7305 if test -z "$ac_lib"; then
7306 ac_res="none required"
7309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7311 if ac_fn_c_try_link "$LINENO"; then :
7312 ac_cv_search_getifaddrs=$ac_res
7314 rm -f core conftest.err conftest.$ac_objext \
7316 if ${ac_cv_search_getifaddrs+:} false; then :
7320 if ${ac_cv_search_getifaddrs+:} false; then :
7323 ac_cv_search_getifaddrs=no
7326 LIBS=$ac_func_search_save_LIBS
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7329 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7330 ac_res=$ac_cv_search_getifaddrs
7331 if test "$ac_res" != no; then :
7332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7333 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7338 $as_echo_n "checking for library containing hstrerror... " >&6; }
7339 if ${ac_cv_search_hstrerror+:} false; then :
7340 $as_echo_n "(cached) " >&6
7342 ac_func_search_save_LIBS=$LIBS
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7346 /* Override any GCC internal prototype to avoid an error.
7347 Use char because int might match the return type of a GCC
7348 builtin and then its argument prototype would still apply. */
7356 return hstrerror ();
7361 for ac_lib in '' nsl socket resolv; do
7362 if test -z "$ac_lib"; then
7363 ac_res="none required"
7366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7368 if ac_fn_c_try_link "$LINENO"; then :
7369 ac_cv_search_hstrerror=$ac_res
7371 rm -f core conftest.err conftest.$ac_objext \
7373 if ${ac_cv_search_hstrerror+:} false; then :
7377 if ${ac_cv_search_hstrerror+:} false; then :
7380 ac_cv_search_hstrerror=no
7383 LIBS=$ac_func_search_save_LIBS
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7386 $as_echo "$ac_cv_search_hstrerror" >&6; }
7387 ac_res=$ac_cv_search_hstrerror
7388 if test "$ac_res" != no; then :
7389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7390 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7395 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7396 if ${ac_cv_search_rresvport_af+:} false; then :
7397 $as_echo_n "(cached) " >&6
7399 ac_func_search_save_LIBS=$LIBS
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7403 /* Override any GCC internal prototype to avoid an error.
7404 Use char because int might match the return type of a GCC
7405 builtin and then its argument prototype would still apply. */
7409 char rresvport_af ();
7413 return rresvport_af ();
7418 for ac_lib in '' nsl; do
7419 if test -z "$ac_lib"; then
7420 ac_res="none required"
7423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7425 if ac_fn_c_try_link "$LINENO"; then :
7426 ac_cv_search_rresvport_af=$ac_res
7428 rm -f core conftest.err conftest.$ac_objext \
7430 if ${ac_cv_search_rresvport_af+:} false; then :
7434 if ${ac_cv_search_rresvport_af+:} false; then :
7437 ac_cv_search_rresvport_af=no
7440 LIBS=$ac_func_search_save_LIBS
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7443 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7444 ac_res=$ac_cv_search_rresvport_af
7445 if test "$ac_res" != no; then :
7446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7447 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7452 $as_echo_n "checking for library containing __res_init... " >&6; }
7453 if ${ac_cv_search___res_init+:} false; then :
7454 $as_echo_n "(cached) " >&6
7456 ac_func_search_save_LIBS=$LIBS
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7460 /* Override any GCC internal prototype to avoid an error.
7461 Use char because int might match the return type of a GCC
7462 builtin and then its argument prototype would still apply. */
7470 return __res_init ();
7475 for ac_lib in '' resolv bind; do
7476 if test -z "$ac_lib"; then
7477 ac_res="none required"
7480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7482 if ac_fn_c_try_link "$LINENO"; then :
7483 ac_cv_search___res_init=$ac_res
7485 rm -f core conftest.err conftest.$ac_objext \
7487 if ${ac_cv_search___res_init+:} false; then :
7491 if ${ac_cv_search___res_init+:} false; then :
7494 ac_cv_search___res_init=no
7497 LIBS=$ac_func_search_save_LIBS
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7500 $as_echo "$ac_cv_search___res_init" >&6; }
7501 ac_res=$ac_cv_search___res_init
7502 if test "$ac_res" != no; then :
7503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7504 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7508 $as_echo_n "checking for library containing res_9_init... " >&6; }
7509 if ${ac_cv_search_res_9_init+:} false; then :
7510 $as_echo_n "(cached) " >&6
7512 ac_func_search_save_LIBS=$LIBS
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7516 /* Override any GCC internal prototype to avoid an error.
7517 Use char because int might match the return type of a GCC
7518 builtin and then its argument prototype would still apply. */
7526 return res_9_init ();
7531 for ac_lib in '' resolv bind; do
7532 if test -z "$ac_lib"; then
7533 ac_res="none required"
7536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7538 if ac_fn_c_try_link "$LINENO"; then :
7539 ac_cv_search_res_9_init=$ac_res
7541 rm -f core conftest.err conftest.$ac_objext \
7543 if ${ac_cv_search_res_9_init+:} false; then :
7547 if ${ac_cv_search_res_9_init+:} false; then :
7550 ac_cv_search_res_9_init=no
7553 LIBS=$ac_func_search_save_LIBS
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7556 $as_echo "$ac_cv_search_res_9_init" >&6; }
7557 ac_res=$ac_cv_search_res_9_init
7558 if test "$ac_res" != no; then :
7559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7560 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7564 $as_echo_n "checking for library containing res_init... " >&6; }
7565 if ${ac_cv_search_res_init+:} false; then :
7566 $as_echo_n "(cached) " >&6
7568 ac_func_search_save_LIBS=$LIBS
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7572 /* Override any GCC internal prototype to avoid an error.
7573 Use char because int might match the return type of a GCC
7574 builtin and then its argument prototype would still apply. */
7587 for ac_lib in '' resolv bind; do
7588 if test -z "$ac_lib"; then
7589 ac_res="none required"
7592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7594 if ac_fn_c_try_link "$LINENO"; then :
7595 ac_cv_search_res_init=$ac_res
7597 rm -f core conftest.err conftest.$ac_objext \
7599 if ${ac_cv_search_res_init+:} false; then :
7603 if ${ac_cv_search_res_init+:} false; then :
7606 ac_cv_search_res_init=no
7609 LIBS=$ac_func_search_save_LIBS
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7612 $as_echo "$ac_cv_search_res_init" >&6; }
7613 ac_res=$ac_cv_search_res_init
7614 if test "$ac_res" != no; then :
7615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7616 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7625 # Tru64 5.1b leaks file descriptors with these functions; disable until
7626 # we can come up with a test for this...
7627 if test "$host_os_name" != "osf1"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7629 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7630 if ${ac_cv_search_getaddrinfo+:} false; then :
7631 $as_echo_n "(cached) " >&6
7633 ac_func_search_save_LIBS=$LIBS
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7637 /* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7643 char getaddrinfo ();
7647 return getaddrinfo ();
7652 for ac_lib in '' nsl; do
7653 if test -z "$ac_lib"; then
7654 ac_res="none required"
7657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7659 if ac_fn_c_try_link "$LINENO"; then :
7660 ac_cv_search_getaddrinfo=$ac_res
7662 rm -f core conftest.err conftest.$ac_objext \
7664 if ${ac_cv_search_getaddrinfo+:} false; then :
7668 if ${ac_cv_search_getaddrinfo+:} false; then :
7671 ac_cv_search_getaddrinfo=no
7674 LIBS=$ac_func_search_save_LIBS
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7677 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7678 ac_res=$ac_cv_search_getaddrinfo
7679 if test "$ac_res" != no; then :
7680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7681 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7686 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7687 if ${ac_cv_search_getnameinfo+:} false; then :
7688 $as_echo_n "(cached) " >&6
7690 ac_func_search_save_LIBS=$LIBS
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7694 /* Override any GCC internal prototype to avoid an error.
7695 Use char because int might match the return type of a GCC
7696 builtin and then its argument prototype would still apply. */
7700 char getnameinfo ();
7704 return getnameinfo ();
7709 for ac_lib in '' nsl; do
7710 if test -z "$ac_lib"; then
7711 ac_res="none required"
7714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7716 if ac_fn_c_try_link "$LINENO"; then :
7717 ac_cv_search_getnameinfo=$ac_res
7719 rm -f core conftest.err conftest.$ac_objext \
7721 if ${ac_cv_search_getnameinfo+:} false; then :
7725 if ${ac_cv_search_getnameinfo+:} false; then :
7728 ac_cv_search_getnameinfo=no
7731 LIBS=$ac_func_search_save_LIBS
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7734 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7735 ac_res=$ac_cv_search_getnameinfo
7736 if test "$ac_res" != no; then :
7737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7738 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7744 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7746 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7750 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7751 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7752 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7758 CUPS_DEFAULT_DOMAINSOCKET=""
7761 # Check whether --with-domainsocket was given.
7762 if test "${with_domainsocket+set}" = set; then :
7763 withval=$with_domainsocket; default_domainsocket="$withval"
7765 default_domainsocket=""
7769 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7770 if test "x$default_domainsocket" = x; then
7771 case "$host_os_name" in
7773 # Darwin and macOS do their own thing...
7774 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7777 # All others use FHS standard...
7778 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7782 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7785 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7787 cat >>confdefs.h <<_ACEOF
7788 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7792 CUPS_LISTEN_DOMAINSOCKET=""
7799 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7800 if test "x$ac_cv_func_poll" = xyes; then :
7801 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7805 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7806 if test "x$ac_cv_func_epoll_create" = xyes; then :
7807 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7811 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7812 if test "x$ac_cv_func_kqueue" = xyes; then :
7813 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7819 # Check whether --enable-gssapi was given.
7820 if test "${enable_gssapi+set}" = set; then :
7821 enableval=$enable_gssapi;
7828 if test x$enable_gssapi != xno; then
7829 if test -n "$ac_tool_prefix"; then
7830 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7831 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7835 $as_echo_n "(cached) " >&6
7839 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7849 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7861 if test -n "$KRB5CONFIG"; then
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7863 $as_echo "$KRB5CONFIG" >&6; }
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7871 if test -z "$ac_cv_path_KRB5CONFIG"; then
7872 ac_pt_KRB5CONFIG=$KRB5CONFIG
7873 # Extract the first word of "krb5-config", so it can be a program name with args.
7874 set dummy krb5-config; ac_word=$2
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876 $as_echo_n "checking for $ac_word... " >&6; }
7877 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7878 $as_echo_n "(cached) " >&6
7880 case $ac_pt_KRB5CONFIG in
7882 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7892 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7904 if test -n "$ac_pt_KRB5CONFIG"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7906 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7912 if test "x$ac_pt_KRB5CONFIG" = x; then
7915 case $cross_compiling:$ac_tool_warned in
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7919 ac_tool_warned=yes ;;
7921 KRB5CONFIG=$ac_pt_KRB5CONFIG
7924 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7927 if test "x$KRB5CONFIG" != x; then
7928 case "$host_os_name" in
7930 # macOS weak-links to the Kerberos framework...
7931 LIBGSSAPI="-weak_framework Kerberos"
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7933 $as_echo_n "checking for GSS framework... " >&6; }
7934 if test -d /System/Library/Frameworks/GSS.framework; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7936 $as_echo "yes" >&6; }
7937 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940 $as_echo "no" >&6; }
7944 # Solaris has a non-standard krb5-config, don't use it!
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7946 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7947 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7948 $as_echo_n "(cached) " >&6
7950 ac_check_lib_save_LIBS=$LIBS
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7955 /* Override any GCC internal prototype to avoid an error.
7956 Use char because int might match the return type of a GCC
7957 builtin and then its argument prototype would still apply. */
7961 char gss_display_status ();
7965 return gss_display_status ();
7970 if ac_fn_c_try_link "$LINENO"; then :
7971 ac_cv_lib_gss_gss_display_status=yes
7973 ac_cv_lib_gss_gss_display_status=no
7975 rm -f core conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977 LIBS=$ac_check_lib_save_LIBS
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7980 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7981 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7983 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7985 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7986 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7987 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7992 # Other platforms just ask for GSSAPI
7993 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7994 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7995 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7999 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8002 # Check for vendor-specific implementations...
8003 case "$host_os_name" in
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8006 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8007 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8008 $as_echo_n "(cached) " >&6
8010 ac_check_lib_save_LIBS=$LIBS
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8015 /* Override any GCC internal prototype to avoid an error.
8016 Use char because int might match the return type of a GCC
8017 builtin and then its argument prototype would still apply. */
8021 char gss_display_status ();
8025 return gss_display_status ();
8030 if ac_fn_c_try_link "$LINENO"; then :
8031 ac_cv_lib_gss_gss_display_status=yes
8033 ac_cv_lib_gss_gss_display_status=no
8035 rm -f core conftest.err conftest.$ac_objext \
8036 conftest$ac_exeext conftest.$ac_ext
8037 LIBS=$ac_check_lib_save_LIBS
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8040 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8041 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8043 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8045 LIBGSSAPI="-lgss -lgssapi_krb5"
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8051 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8052 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8053 $as_echo_n "(cached) " >&6
8055 ac_check_lib_save_LIBS=$LIBS
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8060 /* Override any GCC internal prototype to avoid an error.
8061 Use char because int might match the return type of a GCC
8062 builtin and then its argument prototype would still apply. */
8066 char gss_display_status ();
8070 return gss_display_status ();
8075 if ac_fn_c_try_link "$LINENO"; then :
8076 ac_cv_lib_gss_gss_display_status=yes
8078 ac_cv_lib_gss_gss_display_status=no
8080 rm -f core conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
8082 LIBS=$ac_check_lib_save_LIBS
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8085 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8086 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8088 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8097 if test "x$LIBGSSAPI" != x; then
8098 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8099 if test "x$ac_cv_header_krb5_h" = xyes; then :
8100 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8105 if test -d /System/Library/Frameworks/GSS.framework; then
8106 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
8107 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
8108 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8113 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
8114 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
8115 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
8120 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
8121 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
8122 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8128 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8129 if test "x$ac_cv_header_gssapi_h" = xyes; then :
8130 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8135 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8136 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8137 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8145 LIBS="$LIBS $LIBGSSAPI"
8147 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8148 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8149 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8155 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8156 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8159 #include <gssapi/gssapi.h>
8163 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8168 if ac_fn_c_try_compile "$LINENO"; then :
8169 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8172 $as_echo "yes" >&6; }
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 $as_echo "no" >&6; }
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8181 #include <GSS/gssapi.h>
8185 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8190 if ac_fn_c_try_compile "$LINENO"; then :
8191 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8194 $as_echo "yes" >&6; }
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8207 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8212 if ac_fn_c_try_compile "$LINENO"; then :
8213 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8216 $as_echo "yes" >&6; }
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8229 # Check whether --with-gssservicename was given.
8230 if test "${with_gssservicename+set}" = set; then :
8231 withval=$with_gssservicename; default_gssservicename="$withval"
8233 default_gssservicename="default"
8237 if test x$default_gssservicename != xno; then
8238 if test "x$default_gssservicename" = "xdefault"; then
8239 CUPS_DEFAULT_GSSSERVICENAME="host"
8241 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8244 CUPS_DEFAULT_GSSSERVICENAME=""
8248 cat >>confdefs.h <<_ACEOF
8249 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8254 # Check whether --enable-threads was given.
8255 if test "${enable_threads+set}" = set; then :
8256 enableval=$enable_threads;
8263 if test "x$enable_threads" != xno; then
8264 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8265 if test "x$ac_cv_header_pthread_h" = xyes; then :
8266 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8272 if test x$ac_cv_header_pthread_h = xyes; then
8273 for flag in -lpthreads -lpthread -pthread; do
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8275 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8280 #include <pthread.h>
8284 pthread_create(0, 0, 0, 0);
8289 if ac_fn_c_try_link "$LINENO"; then :
8294 rm -f core conftest.err conftest.$ac_objext \
8295 conftest$ac_exeext conftest.$ac_ext
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8297 $as_echo "$have_pthread" >&6; }
8299 if test $have_pthread = yes; then
8300 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8302 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8303 # be POSIX-compliant... :(
8304 if test $host_os_name = sunos; then
8305 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8316 # Check whether --enable-ssl was given.
8317 if test "${enable_ssl+set}" = set; then :
8318 enableval=$enable_ssl;
8321 # Check whether --enable-cdsassl was given.
8322 if test "${enable_cdsassl+set}" = set; then :
8323 enableval=$enable_cdsassl;
8326 # Check whether --enable-gnutls was given.
8327 if test "${enable_gnutls+set}" = set; then :
8328 enableval=$enable_gnutls;
8335 CUPS_SERVERKEYCHAIN=""
8337 if test x$enable_ssl != xno; then
8338 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8339 if test $host_os_name = darwin; then
8340 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8341 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8344 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8346 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8348 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8350 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8351 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8352 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8357 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8358 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8359 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8364 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8365 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8366 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8371 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8373 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8374 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8379 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8380 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8381 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8386 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8387 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8388 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8393 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8394 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8395 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8400 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8401 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8402 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8408 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8410 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8416 if test $host_os_version -ge 150; then
8417 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8423 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8424 if test -n "$ac_tool_prefix"; then
8425 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8426 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8430 $as_echo_n "(cached) " >&6
8432 case $LIBGNUTLSCONFIG in
8434 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8456 if test -n "$LIBGNUTLSCONFIG"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8458 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8466 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8467 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8468 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8469 set dummy libgnutls-config; ac_word=$2
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 $as_echo_n "checking for $ac_word... " >&6; }
8472 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8473 $as_echo_n "(cached) " >&6
8475 case $ac_pt_LIBGNUTLSCONFIG in
8477 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484 test -z "$as_dir" && as_dir=.
8485 for ac_exec_ext in '' $ac_executable_extensions; do
8486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8487 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8499 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8501 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8507 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8510 case $cross_compiling:$ac_tool_warned in
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8514 ac_tool_warned=yes ;;
8516 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8519 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8522 if $PKGCONFIG --exists gnutls; then
8524 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8525 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8526 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8528 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8530 elif test "x$LIBGNUTLSCONFIG" != x; then
8532 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8533 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8534 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8536 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8540 if test $have_ssl = 1; then
8541 CUPS_SERVERKEYCHAIN="ssl"
8544 LIBS="$LIBS $SSLLIBS"
8545 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8546 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8547 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8551 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8552 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8553 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8563 if test $have_ssl = 1; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8565 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8567 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8568 IPPALIASES="http https ipps"
8569 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8570 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8578 EXPORT_SSLLIBS="$SSLLIBS"
8582 # Check whether --enable-pam was given.
8583 if test "${enable_pam+set}" = set; then :
8584 enableval=$enable_pam;
8588 # Check whether --with-pam_module was given.
8589 if test "${with_pam_module+set}" = set; then :
8590 withval=$with_pam_module;
8597 PAMMOD="pam_unknown.so"
8598 PAMMODAUTH="pam_unknown.so"
8600 if test x$enable_pam != xno; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8604 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8605 if ${ac_cv_lib_dl_dlopen+:} false; then :
8606 $as_echo_n "(cached) " >&6
8608 ac_check_lib_save_LIBS=$LIBS
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8613 /* Override any GCC internal prototype to avoid an error.
8614 Use char because int might match the return type of a GCC
8615 builtin and then its argument prototype would still apply. */
8628 if ac_fn_c_try_link "$LINENO"; then :
8629 ac_cv_lib_dl_dlopen=yes
8631 ac_cv_lib_dl_dlopen=no
8633 rm -f core conftest.err conftest.$ac_objext \
8634 conftest$ac_exeext conftest.$ac_ext
8635 LIBS=$ac_check_lib_save_LIBS
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8638 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8639 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8640 cat >>confdefs.h <<_ACEOF
8641 #define HAVE_LIBDL 1
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8649 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8650 if ${ac_cv_lib_pam_pam_start+:} false; then :
8651 $as_echo_n "(cached) " >&6
8653 ac_check_lib_save_LIBS=$LIBS
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8658 /* Override any GCC internal prototype to avoid an error.
8659 Use char because int might match the return type of a GCC
8660 builtin and then its argument prototype would still apply. */
8668 return pam_start ();
8673 if ac_fn_c_try_link "$LINENO"; then :
8674 ac_cv_lib_pam_pam_start=yes
8676 ac_cv_lib_pam_pam_start=no
8678 rm -f core conftest.err conftest.$ac_objext \
8679 conftest$ac_exeext conftest.$ac_ext
8680 LIBS=$ac_check_lib_save_LIBS
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8683 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8684 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8685 cat >>confdefs.h <<_ACEOF
8686 #define HAVE_LIBPAM 1
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8694 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8695 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8696 $as_echo_n "(cached) " >&6
8698 ac_check_lib_save_LIBS=$LIBS
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8703 /* Override any GCC internal prototype to avoid an error.
8704 Use char because int might match the return type of a GCC
8705 builtin and then its argument prototype would still apply. */
8709 char pam_set_item ();
8713 return pam_set_item ();
8718 if ac_fn_c_try_link "$LINENO"; then :
8719 ac_cv_lib_pam_pam_set_item=yes
8721 ac_cv_lib_pam_pam_set_item=no
8723 rm -f core conftest.err conftest.$ac_objext \
8724 conftest$ac_exeext conftest.$ac_ext
8725 LIBS=$ac_check_lib_save_LIBS
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8728 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8729 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8730 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8735 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8736 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8737 $as_echo_n "(cached) " >&6
8739 ac_check_lib_save_LIBS=$LIBS
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8744 /* Override any GCC internal prototype to avoid an error.
8745 Use char because int might match the return type of a GCC
8746 builtin and then its argument prototype would still apply. */
8750 char pam_setcred ();
8754 return pam_setcred ();
8759 if ac_fn_c_try_link "$LINENO"; then :
8760 ac_cv_lib_pam_pam_setcred=yes
8762 ac_cv_lib_pam_pam_setcred=no
8764 rm -f core conftest.err conftest.$ac_objext \
8765 conftest$ac_exeext conftest.$ac_ext
8766 LIBS=$ac_check_lib_save_LIBS
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8769 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8770 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8771 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8775 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8776 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8781 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8782 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8783 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8784 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8791 if test x$ac_cv_lib_pam_pam_start != xno; then
8792 # Set the necessary libraries for PAM...
8793 if test x$ac_cv_lib_dl_dlopen != xno; then
8794 PAMLIBS="-lpam -ldl"
8799 # Find the PAM configuration directory, if any...
8800 for dir in /private/etc/pam.d /etc/pam.d; do
8801 if test -d $dir; then
8810 case "$host_os_name" in
8813 if test "x$with_pam_module" != x; then
8814 PAMFILE="pam.$with_pam_module"
8815 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8816 PAMFILE="pam.opendirectory"
8818 PAMFILE="pam.securityserver"
8823 # All others; this test might need to be updated
8824 # as Linux distributors move things around...
8825 if test "x$with_pam_module" != x; then
8826 PAMMOD="pam_${with_pam_module}.so"
8827 elif test -f /etc/pam.d/common-auth; then
8828 PAMFILE="pam.common"
8831 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
8832 if test -d $dir; then
8838 if test -f $moddir/pam_unix2.so; then
8839 PAMMOD="pam_unix2.so"
8840 elif test -f $moddir/pam_unix.so; then
8841 PAMMOD="pam_unix.so"
8845 if test "x$PAMMOD" = xpam_unix.so; then
8846 PAMMODAUTH="$PAMMOD shadow nodelay"
8848 PAMMODAUTH="$PAMMOD nodelay"
8861 # Check whether --enable-largefile was given.
8862 if test "${enable_largefile+set}" = set; then :
8863 enableval=$enable_largefile;
8866 if test "$enable_largefile" != no; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8869 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8870 if ${ac_cv_sys_largefile_CC+:} false; then :
8871 $as_echo_n "(cached) " >&6
8873 ac_cv_sys_largefile_CC=no
8874 if test "$GCC" != yes; then
8877 # IRIX 6.2 and later do not support large files by default,
8878 # so use the C compiler's -n32 option if that helps.
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 #include <sys/types.h>
8882 /* Check that off_t can represent 2**63 - 1 correctly.
8883 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8884 since some C++ compilers masquerading as C compilers
8885 incorrectly reject 9223372036854775807. */
8886 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8887 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8888 && LARGE_OFF_T % 2147483647 == 1)
8898 if ac_fn_c_try_compile "$LINENO"; then :
8901 rm -f core conftest.err conftest.$ac_objext
8903 if ac_fn_c_try_compile "$LINENO"; then :
8904 ac_cv_sys_largefile_CC=' -n32'; break
8906 rm -f core conftest.err conftest.$ac_objext
8910 rm -f conftest.$ac_ext
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8914 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8915 if test "$ac_cv_sys_largefile_CC" != no; then
8916 CC=$CC$ac_cv_sys_largefile_CC
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8920 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8921 if ${ac_cv_sys_file_offset_bits+:} false; then :
8922 $as_echo_n "(cached) " >&6
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 #include <sys/types.h>
8928 /* Check that off_t can represent 2**63 - 1 correctly.
8929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8930 since some C++ compilers masquerading as C compilers
8931 incorrectly reject 9223372036854775807. */
8932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8934 && LARGE_OFF_T % 2147483647 == 1)
8944 if ac_fn_c_try_compile "$LINENO"; then :
8945 ac_cv_sys_file_offset_bits=no; break
8947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950 #define _FILE_OFFSET_BITS 64
8951 #include <sys/types.h>
8952 /* Check that off_t can represent 2**63 - 1 correctly.
8953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8954 since some C++ compilers masquerading as C compilers
8955 incorrectly reject 9223372036854775807. */
8956 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8958 && LARGE_OFF_T % 2147483647 == 1)
8968 if ac_fn_c_try_compile "$LINENO"; then :
8969 ac_cv_sys_file_offset_bits=64; break
8971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972 ac_cv_sys_file_offset_bits=unknown
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8977 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8978 case $ac_cv_sys_file_offset_bits in #(
8981 cat >>confdefs.h <<_ACEOF
8982 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8987 if test $ac_cv_sys_file_offset_bits = unknown; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8989 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8990 if ${ac_cv_sys_large_files+:} false; then :
8991 $as_echo_n "(cached) " >&6
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996 #include <sys/types.h>
8997 /* Check that off_t can represent 2**63 - 1 correctly.
8998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8999 since some C++ compilers masquerading as C compilers
9000 incorrectly reject 9223372036854775807. */
9001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9003 && LARGE_OFF_T % 2147483647 == 1)
9013 if ac_fn_c_try_compile "$LINENO"; then :
9014 ac_cv_sys_large_files=no; break
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9019 #define _LARGE_FILES 1
9020 #include <sys/types.h>
9021 /* Check that off_t can represent 2**63 - 1 correctly.
9022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9023 since some C++ compilers masquerading as C compilers
9024 incorrectly reject 9223372036854775807. */
9025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9027 && LARGE_OFF_T % 2147483647 == 1)
9037 if ac_fn_c_try_compile "$LINENO"; then :
9038 ac_cv_sys_large_files=1; break
9040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041 ac_cv_sys_large_files=unknown
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9046 $as_echo "$ac_cv_sys_large_files" >&6; }
9047 case $ac_cv_sys_large_files in #(
9050 cat >>confdefs.h <<_ACEOF
9051 #define _LARGE_FILES $ac_cv_sys_large_files
9061 if test x$enable_largefile != xno; then
9062 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
9064 if test x$ac_cv_sys_large_files = x1; then
9065 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
9068 if test x$ac_cv_sys_file_offset_bits = x64; then
9069 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9075 $as_echo_n "checking for long long int... " >&6; }
9076 if ${ac_cv_c_long_long+:} false; then :
9077 $as_echo_n "(cached) " >&6
9079 if test "$GCC" = yes; then
9080 ac_cv_c_long_long=yes
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9093 if ac_fn_c_try_compile "$LINENO"; then :
9094 ac_cv_c_long_long=yes
9096 ac_cv_c_long_long=no
9098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9102 $as_echo "$ac_cv_c_long_long" >&6; }
9104 if test $ac_cv_c_long_long = yes; then
9105 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9109 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9110 if test "x$ac_cv_func_strtoll" = xyes; then :
9111 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9117 # Check whether --enable-avahi was given.
9118 if test "${enable_avahi+set}" = set; then :
9119 enableval=$enable_avahi;
9122 # Check whether --enable-dnssd was given.
9123 if test "${enable_dnssd+set}" = set; then :
9124 enableval=$enable_dnssd;
9128 # Check whether --with-dnssd-libs was given.
9129 if test "${with_dnssd_libs+set}" = set; then :
9130 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9131 DSOFLAGS="-L$withval $DSOFLAGS"
9135 # Check whether --with-dnssd-includes was given.
9136 if test "${with_dnssd_includes+set}" = set; then :
9137 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9138 CPPFLAGS="-I$withval $CPPFLAGS"
9147 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9149 $as_echo_n "checking for Avahi... " >&6; }
9150 if $PKGCONFIG --exists avahi-client; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9152 $as_echo "yes" >&6; }
9153 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
9154 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
9155 DNSSD_BACKEND="dnssd"
9156 IPPFIND_BIN="ippfind"
9157 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9158 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162 $as_echo "no" >&6; }
9166 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9167 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9168 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9170 case "$host_os_name" in
9172 # Darwin and macOS...
9173 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9175 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9176 DNSSD_BACKEND="dnssd"
9177 IPPFIND_BIN="ippfind"
9178 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9183 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9185 LIBS="$LIBS -ldns_sd"
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9192 int constant = kDNSServiceFlagsShareConnection;
9193 unsigned char txtRecord[100];
9195 TXTRecordGetValuePtr(sizeof(txtRecord),
9196 txtRecord, "value", &valueLen);
9201 if ac_fn_c_try_compile "$LINENO"; then :
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9203 $as_echo "yes" >&6; }
9204 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9206 DNSSDLIBS="-ldns_sd"
9207 DNSSD_BACKEND="dnssd"
9209 IPPFIND_BIN="ippfind"
9210 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 # Check whether --enable-launchd was given.
9236 if test "${enable_launchd+set}" = set; then :
9237 enableval=$enable_launchd;
9243 if test x$enable_launchd != xno; then
9244 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9245 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9247 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9249 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9253 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9254 if test "x$ac_cv_header_launch_h" = xyes; then :
9255 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9261 if test "$host_os_name" = darwin; then
9262 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9263 # liblaunch is already part of libSystem
9267 # Check whether --enable-systemd was given.
9268 if test "${enable_systemd+set}" = set; then :
9269 enableval=$enable_systemd;
9273 # Check whether --with-systemd was given.
9274 if test "${with_systemd+set}" = set; then :
9275 withval=$with_systemd; SYSTEMD_DIR="$withval"
9282 if test x$enable_systemd != xno; then
9283 if test "x$PKGCONFIG" = x; then
9284 if test x$enable_systemd = xyes; then
9285 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9290 $as_echo_n "checking for libsystemd... " >&6; }
9291 if $PKGCONFIG --exists libsystemd; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9293 $as_echo "yes" >&6; }
9295 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9296 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9297 elif $PKGCONFIG --exists libsystemd-daemon; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9299 $as_echo "yes - legacy" >&6; }
9301 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9302 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9304 if $PKGCONFIG --exists libsystemd-journal; then
9305 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9306 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310 $as_echo "no" >&6; }
9313 if test $have_systemd = yes; then
9314 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9316 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9318 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9319 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9320 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9325 if test "x$SYSTEMD_DIR" = x; then
9326 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9332 # Check whether --enable-upstart was given.
9333 if test "${enable_upstart+set}" = set; then :
9334 enableval=$enable_upstart;
9337 if test "x$enable_upstart" = "xyes"; then
9338 if test "x$have_systemd" = "xyes"; then
9339 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9341 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9343 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9350 # Check whether --with-smfmanifestdir was given.
9351 if test "${with_smfmanifestdir+set}" = set; then :
9352 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9357 # Check whether --with-rcdir was given.
9358 if test "${with_rcdir+set}" = set; then :
9359 withval=$with_rcdir; rcdir="$withval"
9365 # Check whether --with-rclevels was given.
9366 if test "${with_rclevels+set}" = set; then :
9367 withval=$with_rclevels; rclevels="$withval"
9373 # Check whether --with-rcstart was given.
9374 if test "${with_rcstart+set}" = set; then :
9375 withval=$with_rcstart; rcstart="$withval"
9381 # Check whether --with-rcstop was given.
9382 if test "${with_rcstop+set}" = set; then :
9383 withval=$with_rcstop; rcstop="$withval"
9389 if test x$rcdir = x; then
9390 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9391 # Fall back on "init", the original service startup interface...
9392 if test -d /sbin/init.d; then
9394 rcdir="/sbin/init.d"
9395 elif test -d /etc/init.d; then
9407 if test "x$rcstart" = x; then
9408 case "$host_os_name" in
9426 if test "x$rcstop" = x; then
9427 case "$host_os_name" in
9442 RCLEVELS="$rclevels"
9451 if test "x$rcdir" != xno; then
9452 if test "x$rclevels" = x; then
9460 # Check whether --with-xinetd was given.
9461 if test "${with_xinetd+set}" = set; then :
9462 withval=$with_xinetd; xinetd="$withval"
9470 if test "x$xinetd" = x; then
9471 if test ! -x /sbin/launchd; then
9472 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9473 if test -d $dir; then
9479 elif test "x$xinetd" != xno; then
9484 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9487 # Check whether --with-languages was given.
9488 if test "${with_languages+set}" = set; then :
9489 withval=$with_languages;
9491 none | no) LANGUAGES="" ;;
9493 *) LANGUAGES="$withval" ;;
9500 # Check whether --with-bundledir was given.
9501 if test "${with_bundledir+set}" = set; then :
9502 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9505 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9506 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9515 if test "x$CUPS_BUNDLEDIR" != x; then
9516 cat >>confdefs.h <<_ACEOF
9517 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9521 if test $host_os_version -ge 190; then
9522 CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/en.lproj"
9524 CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/English.lproj"
9532 # Check whether --with-exe_file_perm was given.
9533 if test "${with_exe_file_perm+set}" = set; then :
9534 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9536 case "$host_os_name" in
9538 CUPS_EXE_FILE_PERM="755"
9541 CUPS_EXE_FILE_PERM="555"
9549 # Check whether --with-config_file_perm was given.
9550 if test "${with_config_file_perm+set}" = set; then :
9551 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9553 if test "x$host_os_name" = xdarwin; then
9554 CUPS_CONFIG_FILE_PERM="644"
9556 CUPS_CONFIG_FILE_PERM="640"
9561 cat >>confdefs.h <<_ACEOF
9562 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9567 # Check whether --with-cupsd_file_perm was given.
9568 if test "${with_cupsd_file_perm+set}" = set; then :
9569 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9571 case "$host_os_name" in
9573 CUPS_CUPSD_FILE_PERM="700"
9576 CUPS_CUPSD_FILE_PERM="500"
9584 # Check whether --with-log_file_perm was given.
9585 if test "${with_log_file_perm+set}" = set; then :
9586 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9588 CUPS_LOG_FILE_PERM="644"
9592 cat >>confdefs.h <<_ACEOF
9593 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9598 # Check whether --with-fatal_errors was given.
9599 if test "${with_fatal_errors+set}" = set; then :
9600 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9602 CUPS_FATAL_ERRORS="config"
9606 cat >>confdefs.h <<_ACEOF
9607 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9612 # Check whether --with-log_level was given.
9613 if test "${with_log_level+set}" = set; then :
9614 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9616 CUPS_LOG_LEVEL="warn"
9620 cat >>confdefs.h <<_ACEOF
9621 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9626 # Check whether --with-access_log_level was given.
9627 if test "${with_access_log_level+set}" = set; then :
9628 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9630 CUPS_ACCESS_LOG_LEVEL="none"
9634 cat >>confdefs.h <<_ACEOF
9635 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9639 # Check whether --enable-page_logging was given.
9640 if test "${enable_page_logging+set}" = set; then :
9641 enableval=$enable_page_logging;
9644 if test "x$enable_page_logging" = xyes; then
9645 CUPS_PAGE_LOG_FORMAT=""
9647 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9651 # Check whether --enable-browsing was given.
9652 if test "${enable_browsing+set}" = set; then :
9653 enableval=$enable_browsing;
9656 if test "x$enable_browsing" = xno; then
9658 cat >>confdefs.h <<_ACEOF
9659 #define CUPS_DEFAULT_BROWSING 0
9664 cat >>confdefs.h <<_ACEOF
9665 #define CUPS_DEFAULT_BROWSING 1
9672 # Check whether --with-local_protocols was given.
9673 if test "${with_local_protocols+set}" = set; then :
9674 withval=$with_local_protocols; default_local_protocols="$withval"
9676 default_local_protocols="default"
9680 if test x$with_local_protocols != xno; then
9681 if test "x$default_local_protocols" = "xdefault"; then
9682 if test "x$DNSSD_BACKEND" != "x"; then
9683 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9685 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9688 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9691 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9695 cat >>confdefs.h <<_ACEOF
9696 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9700 # Check whether --enable-default_shared was given.
9701 if test "${enable_default_shared+set}" = set; then :
9702 enableval=$enable_default_shared;
9705 if test "x$enable_default_shared" = xno; then
9706 CUPS_DEFAULT_SHARED="No"
9707 cat >>confdefs.h <<_ACEOF
9708 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9712 CUPS_DEFAULT_SHARED="Yes"
9713 cat >>confdefs.h <<_ACEOF
9714 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9721 # Check whether --with-cups_user was given.
9722 if test "${with_cups_user+set}" = set; then :
9723 withval=$with_cups_user; CUPS_USER="$withval"
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9726 $as_echo_n "checking for default print user... " >&6; }
9727 if test x$host_os_name = xdarwin; then
9728 if test x`id
-u _lp
2>/dev
/null
` = x; then
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9734 $as_echo "$CUPS_USER" >&6; }
9735 elif test -f /etc/passwd; then
9737 for user in lp lpd guest daemon nobody; do
9738 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9741 $as_echo "$user" >&6; }
9746 if test x$CUPS_USER = x; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9749 $as_echo "not found" >&6; }
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9754 $as_echo "no password file" >&6; }
9759 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9760 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9764 # Check whether --with-cups_group was given.
9765 if test "${with_cups_group+set}" = set; then :
9766 withval=$with_cups_group; CUPS_GROUP="$withval"
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9769 $as_echo_n "checking for default print group... " >&6; }
9770 if test x$host_os_name = xdarwin; then
9771 if test x`id
-g _lp
2>/dev
/null
` = x; then
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9777 $as_echo "$CUPS_GROUP" >&6; }
9778 elif test -f /etc/group; then
9779 GROUP_LIST="_lp lp nobody"
9781 for group in $GROUP_LIST; do
9782 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9785 $as_echo "$group" >&6; }
9790 if test x$CUPS_GROUP = x; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9793 $as_echo "not found" >&6; }
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9798 $as_echo "no group file" >&6; }
9803 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9804 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9808 # Check whether --with-system_groups was given.
9809 if test "${with_system_groups+set}" = set; then :
9810 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9812 if test x$host_os_name = xdarwin; then
9813 CUPS_SYSTEM_GROUPS="admin"
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9816 $as_echo_n "checking for default system groups... " >&6; }
9817 if test -f /etc/group; then
9818 CUPS_SYSTEM_GROUPS=""
9819 GROUP_LIST="lpadmin sys system root"
9820 for group in $GROUP_LIST; do
9821 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9822 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9823 CUPS_SYSTEM_GROUPS="$group"
9825 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9830 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9831 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9833 $as_echo "no groups found" >&6; }
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9836 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9839 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9841 $as_echo "no group file" >&6; }
9847 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9849 for group in $CUPS_SYSTEM_GROUPS; do
9850 if test "x$CUPS_GROUP" = "x$group"; then
9851 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9860 cat >>confdefs.h <<_ACEOF
9861 #define CUPS_DEFAULT_USER "$CUPS_USER"
9864 cat >>confdefs.h <<_ACEOF
9865 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9868 cat >>confdefs.h <<_ACEOF
9869 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9874 # Check whether --with-printcap was given.
9875 if test "${with_printcap+set}" = set; then :
9876 withval=$with_printcap; default_printcap="$withval"
9878 default_printcap="default"
9882 if test x$default_printcap != xno; then
9883 if test "x$default_printcap" = "xdefault"; then
9884 case $host_os_name in
9886 if test $host_os_version -ge 90; then
9887 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9889 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9893 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9896 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9900 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9903 CUPS_DEFAULT_PRINTCAP=""
9907 cat >>confdefs.h <<_ACEOF
9908 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9913 # Check whether --with-lpdconfigfile was given.
9914 if test "${with_lpdconfigfile+set}" = set; then :
9915 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9917 default_lpdconfigfile="default"
9921 if test x$default_lpdconfigfile != xno; then
9922 if test "x$default_lpdconfigfile" = "xdefault"; then
9923 case $host_os_name in
9925 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9928 if test "x$XINETD" != x; then
9929 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9931 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9936 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9939 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9942 cat >>confdefs.h <<_ACEOF
9943 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9949 # Check whether --with-smbconfigfile was given.
9950 if test "${with_smbconfigfile+set}" = set; then :
9951 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9953 default_smbconfigfile="default"
9957 if test x$default_smbconfigfile != xno; then
9958 if test "x$default_smbconfigfile" = "xdefault"; then
9959 if test -f /etc/smb.conf; then
9960 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9962 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9965 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9968 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9971 cat >>confdefs.h <<_ACEOF
9972 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9978 # Check whether --with-max-copies was given.
9979 if test "${with_max_copies+set}" = set; then :
9980 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9982 CUPS_MAX_COPIES="9999"
9987 cat >>confdefs.h <<_ACEOF
9988 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9992 # Check whether --enable-raw_printing was given.
9993 if test "${enable_raw_printing+set}" = set; then :
9994 enableval=$enable_raw_printing;
9997 if test "x$enable_raw_printing" != xno; then
9998 DEFAULT_RAW_PRINTING=""
10000 DEFAULT_RAW_PRINTING="#"
10005 # Check whether --with-snmp-address was given.
10006 if test "${with_snmp_address+set}" = set; then :
10007 withval=$with_snmp_address; if test "x$withval" = x; then
10008 CUPS_SNMP_ADDRESS=""
10010 CUPS_SNMP_ADDRESS="Address $withval"
10013 if test "x$host_os_name" = xdarwin; then
10014 CUPS_SNMP_ADDRESS=""
10016 CUPS_SNMP_ADDRESS="Address @LOCAL"
10022 # Check whether --with-snmp-community was given.
10023 if test "${with_snmp_community+set}" = set; then :
10024 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
10026 CUPS_SNMP_COMMUNITY="Community public"
10034 # Check whether --with-ipp-port was given.
10035 if test "${with_ipp_port+set}" = set; then :
10036 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
10038 DEFAULT_IPP_PORT="631"
10043 cat >>confdefs.h <<_ACEOF
10044 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
10048 # Check whether --enable-webif was given.
10049 if test "${enable_webif+set}" = set; then :
10050 enableval=$enable_webif;
10053 case "x$enable_webif" in
10056 CUPS_DEFAULT_WEBIF=0
10060 CUPS_DEFAULT_WEBIF=1
10063 if test $host_os_name = darwin; then
10065 CUPS_DEFAULT_WEBIF=0
10068 CUPS_DEFAULT_WEBIF=1
10074 cat >>confdefs.h <<_ACEOF
10075 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
10080 INSTALL_LANGUAGES=""
10081 UNINSTALL_LANGUAGES=""
10083 if test "x$LANGUAGES" != x; then
10084 INSTALL_LANGUAGES="install-languages"
10085 UNINSTALL_LANGUAGES="uninstall-languages"
10086 for lang in $LANGUAGES; do
10087 if test -f doc/$lang/index.html.in; then
10088 LANGFILES="$LANGFILES doc/$lang/index.html"
10091 if test -f templates/$lang/header.tmpl.in; then
10092 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10095 elif test "x$CUPS_BUNDLEDIR" != x; then
10096 INSTALL_LANGUAGES="install-langbundle"
10097 UNINSTALL_LANGUAGES="uninstall-langbundle"
10103 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"
10105 cat >confcache <<\_ACEOF
10106 # This file is a shell script that caches the results of configure
10107 # tests run on this system so they can be shared between configure
10108 # scripts and configure runs, see configure's option --config-cache.
10109 # It is not useful on other systems. If it contains results you don't
10110 # want to keep, you may remove or edit it.
10112 # config.status only pays attention to the cache file if you give it
10113 # the --recheck option to rerun configure.
10115 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10116 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10117 # following values.
10121 # The following way of writing the cache mishandles newlines in values,
10122 # but we know of no workaround that is simple, portable, and efficient.
10123 # So, we kill variables containing newlines.
10124 # Ultrix sh set writes to stderr and can't be redirected directly,
10125 # and sets the high bit in the cache file unless we assign to the vars.
10127 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10128 eval ac_val
=\$
$ac_var
10132 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10133 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10136 _ | IFS | as_nl
) ;; #(
10137 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10138 *) { eval $ac_var=; unset $ac_var;} ;;
10144 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10145 *${as_nl}ac_space
=\
*)
10146 # `set' does not quote correctly, so add quotes: double-quote
10147 # substitution turns \\\\ into \\, and sed turns \\ into \.
10150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10153 # `set' quotes correctly as required by POSIX, so do not add quotes.
10154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10165 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10167 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10168 if test -w "$cache_file"; then
10169 if test "x$cache_file" != "x/dev/null"; then
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10171 $as_echo "$as_me: updating cache $cache_file" >&6;}
10172 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10173 cat confcache
>"$cache_file"
10175 case $cache_file in #(
10177 mv -f confcache
"$cache_file"$$
&&
10178 mv -f "$cache_file"$$
"$cache_file" ;; #(
10180 mv -f confcache
"$cache_file" ;;
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10186 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10191 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10192 # Let make expand exec_prefix.
10193 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10195 DEFS
=-DHAVE_CONFIG_H
10200 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10201 # 1. Remove the extension, and $U if already installed.
10202 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10203 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10204 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10205 # will be set to the directory where LIBOBJS objects are built.
10206 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10207 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10209 LIBOBJS
=$ac_libobjs
10211 LTLIBOBJS
=$ac_ltlibobjs
10215 : "${CONFIG_STATUS=./config.status}"
10217 ac_clean_files_save
=$ac_clean_files
10218 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10220 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10222 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10224 # Generated by $as_me.
10225 # Run this file to recreate the current configuration.
10226 # Compiler output produced by configure, useful for debugging
10227 # configure, is in config.log if it exists.
10230 ac_cs_recheck=false
10233 SHELL=\${CONFIG_SHELL-$SHELL}
10236 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10237 ## -------------------- ##
10238 ## M4sh Initialization. ##
10239 ## -------------------- ##
10241 # Be more Bourne compatible
10242 DUALCASE
=1; export DUALCASE
# for MKS sh
10243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10246 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10247 # is contrary to our usage. Disable this feature.
10248 alias -g '${1+"$@"}'='"$@"'
10249 setopt NO_GLOB_SUBST
10251 case `(set -o) 2>/dev/null` in #(
10263 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10264 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10265 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10267 # Prefer a ksh shell builtin over an external printf program on Solaris,
10268 # but without wasting forks for bash or zsh.
10269 if test -z "$BASH_VERSION$ZSH_VERSION" \
10270 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10271 as_echo='print
-r --'
10272 as_echo_n='print
-rn --'
10273 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10274 as_echo='printf %s
\n'
10275 as_echo_n='printf %s
'
10277 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10278 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10279 as_echo_n='/usr
/ucb
/echo -n'
10281 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10282 as_echo_n_body='eval
10286 expr "X$arg" : "X\\(.*\\)$as_nl";
10287 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10289 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10291 export as_echo_n_body
10292 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10294 export as_echo_body
10295 as_echo='sh
-c $as_echo_body as_echo
'
10298 # The user is always right.
10299 if test "${PATH_SEPARATOR+set}" != set; then
10301 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10302 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10309 # We need space, tab and new line, in precisely that order. Quoting is
10310 # there to prevent editors from complaining about space-tab.
10311 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10312 # splitting by setting IFS to empty value.)
10315 # Find who we are. Look in the path if we contain no directory separator.
10318 *[\\/]* ) as_myself=$0 ;;
10319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320 for as_dir in $PATH
10323 test -z "$as_dir" && as_dir=.
10324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10330 # We did not find ourselves, most probably we were run as `sh COMMAND'
10331 # in which case we are not to be found in the path.
10332 if test "x$as_myself" = x
; then
10335 if test ! -f "$as_myself"; then
10336 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10340 # Unset variables that we do not need and which cause bugs (e.g. in
10341 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10342 # suppresses any "Segmentation fault" message there. '((' could
10343 # trigger a bug in pdksh 5.2.14.
10344 for as_var
in BASH_ENV ENV MAIL MAILPATH
10345 do eval test x\
${$as_var+set} = xset \
10346 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10359 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10363 # ----------------------------------------
10364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10366 # script with STATUS, using 1 if that was 0.
10369 as_status
=$1; test $as_status -eq 0 && as_status
=1
10371 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10374 $as_echo "$as_me: error: $2" >&2
10375 as_fn_exit
$as_status
10379 # as_fn_set_status STATUS
10380 # -----------------------
10381 # Set $? to STATUS, without forking.
10382 as_fn_set_status
()
10385 } # as_fn_set_status
10387 # as_fn_exit STATUS
10388 # -----------------
10389 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10393 as_fn_set_status
$1
10399 # Portably unset VAR.
10402 { eval $1=; unset $1;}
10404 as_unset
=as_fn_unset
10405 # as_fn_append VAR VALUE
10406 # ----------------------
10407 # Append the text in VALUE to the end of the definition contained in VAR. Take
10408 # advantage of any shell optimizations that allow amortized linear growth over
10409 # repeated appends, instead of the typical quadratic growth present in naive
10411 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10412 eval 'as_fn_append ()
10423 # as_fn_arith ARG...
10424 # ------------------
10425 # Perform arithmetic evaluation on the ARGs, and store the result in the
10426 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10427 # must be portable across $(()) and expr.
10428 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10429 eval 'as_fn_arith ()
10436 as_val
=`expr "$@" || test $? -eq 1`
10441 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10442 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10448 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10449 as_basename
=basename
10454 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10460 as_me
=`$as_basename -- "$0" ||
10461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10462 X"$0" : 'X\(//\)$' \| \
10463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10465 sed '/^.*\/\([^/][^/]*\)\/*$/{
10479 # Avoid depending upon Character Ranges.
10480 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10481 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10482 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10483 as_cr_digits
='0123456789'
10484 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10486 ECHO_C
= ECHO_N
= ECHO_T
=
10487 case `echo -n x` in #(((((
10489 case `echo 'xy\c'` in
10490 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10492 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10499 rm -f conf$$ conf$$.exe conf$$.
file
10500 if test -d conf$$.dir
; then
10501 rm -f conf$$.dir
/conf$$.
file
10504 mkdir conf$$.dir
2>/dev
/null
10506 if (echo >conf$$.
file) 2>/dev
/null
; then
10507 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10509 # ... but there are two gotchas:
10510 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10511 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10512 # In both cases, we have to default to `cp -p'.
10513 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10515 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10523 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10524 rmdir conf$$.dir
2>/dev
/null
10529 # Create "$as_dir" as a directory, including parents if necessary.
10534 -*) as_dir
=.
/$as_dir;;
10536 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10540 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10541 *) as_qdir
=$as_dir;;
10543 as_dirs
="'$as_qdir' $as_dirs"
10544 as_dir
=`$as_dirname -- "$as_dir" ||
10545 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10546 X"$as_dir" : 'X\(//\)[^/]' \| \
10547 X"$as_dir" : 'X\(//\)$' \| \
10548 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10549 $as_echo X"$as_dir" |
10550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10554 /^X\(\/\/\)[^/].*/{
10567 test -d "$as_dir" && break
10569 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10570 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10574 if mkdir
-p .
2>/dev
/null
; then
10575 as_mkdir_p
='mkdir -p "$as_dir"'
10577 test -d .
/-p && rmdir .
/-p
10581 if test -x / >/dev
/null
2>&1; then
10582 as_test_x
='test -x'
10584 if ls -dL / >/dev
/null
2>&1; then
10591 if test -d "$1"; then
10597 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10598 ???[sx]*):;;*)false;;esac;fi
10602 as_executable_p
=$as_test_x
10604 # Sed expression to map a string onto a valid CPP name.
10605 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10607 # Sed expression to map a string onto a valid variable name.
10608 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10612 ## ----------------------------------- ##
10613 ## Main body of $CONFIG_STATUS script. ##
10614 ## ----------------------------------- ##
10616 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10619 # Save the log message, to keep $0 and so on meaningful, and to
10620 # report actual input values of CONFIG_FILES etc. instead of their
10621 # values after options handling.
10623 This file was extended by CUPS $as_me 2.3b6, which was
10624 generated by GNU Autoconf 2.68. Invocation command line was
10626 CONFIG_FILES = $CONFIG_FILES
10627 CONFIG_HEADERS = $CONFIG_HEADERS
10628 CONFIG_LINKS = $CONFIG_LINKS
10629 CONFIG_COMMANDS = $CONFIG_COMMANDS
10632 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10637 case $ac_config_files in *"
10638 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10641 case $ac_config_headers in *"
10642 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10647 # Files that config.status was made for.
10648 config_files="$ac_config_files"
10649 config_headers="$ac_config_headers"
10653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10655 \`$as_me' instantiates files and other configuration actions
10656 from templates according to the current configuration. Unless the files
10657 and actions are specified as TAGs, all are instantiated by default.
10659 Usage: $0 [OPTION]... [TAG]...
10661 -h, --help print this help, then exit
10662 -V, --version print version number and configuration settings, then exit
10663 --config print configuration, then exit
10664 -q, --quiet, --silent
10665 do not print progress messages
10666 -d, --debug don't remove temporary files
10667 --recheck update $as_me by reconfiguring in the same conditions
10668 --file=FILE[:TEMPLATE]
10669 instantiate the configuration file FILE
10670 --header=FILE[:TEMPLATE]
10671 instantiate the configuration header FILE
10673 Configuration files:
10676 Configuration headers:
10679 Report bugs to <https://github.com/apple/cups/issues>.
10680 CUPS home page: <https://www.cups.org/>."
10683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10684 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10686 CUPS config.status 2.3b6
10687 configured by $0, generated by GNU Autoconf 2.68,
10688 with options \\"\$ac_cs_config\\"
10690 Copyright (C) 2010 Free Software Foundation, Inc.
10691 This config.status script is free software; the Free Software Foundation
10692 gives unlimited permission to copy, distribute and modify it."
10697 test -n "\$AWK" || AWK=awk
10700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10701 # The default lists apply if the user does not specify any file.
10707 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10708 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10712 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10724 # Handling of the options.
10725 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10727 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10728 $as_echo "$ac_cs_version"; exit ;;
10729 --config |
--confi |
--conf |
--con |
--co |
--c )
10730 $as_echo "$ac_cs_config"; exit ;;
10731 --debug |
--debu |
--deb |
--de |
--d |
-d )
10733 --file |
--fil |
--fi |
--f )
10736 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10737 '') as_fn_error $?
"missing file argument" ;;
10739 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10740 ac_need_defaults
=false
;;
10741 --header |
--heade |
--head |
--hea )
10744 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10746 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10747 ac_need_defaults
=false
;;
10749 # Conflict between --help and --header
10750 as_fn_error $?
"ambiguous option: \`$1'
10751 Try \`$0 --help' for more information.";;
10752 --help |
--hel |
-h )
10753 $as_echo "$ac_cs_usage"; exit ;;
10754 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10755 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10758 # This is an error.
10759 -*) as_fn_error $?
"unrecognized option: \`$1'
10760 Try \`$0 --help' for more information." ;;
10762 *) as_fn_append ac_config_targets
" $1"
10763 ac_need_defaults
=false
;;
10769 ac_configure_extra_args
=
10771 if $ac_cs_silent; then
10773 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10778 if \$ac_cs_recheck; then
10779 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10781 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10782 CONFIG_SHELL='$SHELL'
10783 export CONFIG_SHELL
10788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10792 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10793 ## Running $as_me. ##
10799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10804 # Handling of arguments.
10805 for ac_config_target
in $ac_config_targets
10807 case $ac_config_target in
10808 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10809 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10810 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10811 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10812 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10813 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10814 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10815 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10816 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10817 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10818 "man/client.conf.man") CONFIG_FILES
="$CONFIG_FILES man/client.conf.man" ;;
10819 "man/cups-files.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cups-files.conf.man" ;;
10820 "man/cups-lpd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-lpd.man" ;;
10821 "man/cups-snmp.man") CONFIG_FILES
="$CONFIG_FILES man/cups-snmp.man" ;;
10822 "man/cupsaddsmb.man") CONFIG_FILES
="$CONFIG_FILES man/cupsaddsmb.man" ;;
10823 "man/cupsd.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.conf.man" ;;
10824 "man/cupsd.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.man" ;;
10825 "man/lpoptions.man") CONFIG_FILES
="$CONFIG_FILES man/lpoptions.man" ;;
10826 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10827 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10828 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10829 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10830 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10831 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10832 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10833 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10834 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10835 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10836 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10838 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10843 # If the user did not use the arguments to specify the items to instantiate,
10844 # then the envvar interface is used. Set only those that are not.
10845 # We use the long form for the default assignment because of an extremely
10846 # bizarre bug on SunOS 4.1.3.
10847 if $ac_need_defaults; then
10848 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10849 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10852 # Have a temporary directory for convenience. Make it in the build tree
10853 # simply because there is no reason against having it here, and in addition,
10854 # creating and moving files from /tmp can sometimes cause problems.
10855 # Hook for its removal unless debugging.
10856 # Note that there is a small window in which the directory will not be cleaned:
10857 # after its creation but before its name has been assigned to `$tmp'.
10861 trap 'exit_status=$?
10862 : "${ac_tmp:=$tmp}"
10863 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10865 trap 'as_fn_exit 1' 1 2 13 15
10867 # Create a (secure) tmp directory for tmp files.
10870 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10874 tmp
=.
/conf$$
-$RANDOM
10875 (umask 077 && mkdir
"$tmp")
10876 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10879 # Set up the scripts for CONFIG_FILES section.
10880 # No need to generate them if there are no CONFIG_FILES.
10881 # This happens for instance with `./config.status config.h'.
10882 if test -n "$CONFIG_FILES"; then
10885 ac_cr
=`echo X | tr X '\015'`
10886 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10887 # But we know of no other shell where ac_cr would be empty at this
10888 # point, so we can use a bashism as a fallback.
10889 if test "x$ac_cr" = x
; then
10890 eval ac_cr
=\$
\'\\r
\'
10892 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10893 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10896 ac_cs_awk_cr
=$ac_cr
10899 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10904 echo "cat >conf$$subs.awk <<_ACEOF" &&
10905 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10907 } >conf$$subs.sh ||
10908 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10909 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10911 for ac_last_try in false false false false false :; do
10912 . ./conf$$subs.sh ||
10913 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10915 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10916 if test $ac_delim_n = $ac_delim_num; then
10918 elif $ac_last_try; then
10919 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10921 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10924 rm -f conf$$subs.sh
10926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10927 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10931 s/^/S["/; s
/!.
*/"]=/
10941 s/\(.\{148\}\)..*/\1/
10943 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10948 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10955 s/\(.\{148\}\)..*/\1/
10957 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10961 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10966 ' <conf$$subs.awk | sed '
10971 ' >>$CONFIG_STATUS || ac_write_fail=1
10972 rm -f conf$$subs.awk
10973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10975 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10976 for (key in S) S_is_set[key] = 1
10982 nfields = split(line, field, "@
")
10984 len = length(field[1])
10985 for (i = 2; i < nfields; i++) {
10987 keylen = length(key)
10988 if (S_is_set[key]) {
10990 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10991 len += length(value) + length(field[++i])
11002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11003 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11004 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11007 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11008 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11011 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11012 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11013 # trailing colons and then remove the whole line if VPATH becomes empty
11014 # (actually we leave an empty line to preserve line numbers).
11015 if test "x
$srcdir" = x.; then
11016 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11035 fi # test -n "$CONFIG_FILES"
11037 # Set up the scripts for CONFIG_HEADERS section.
11038 # No need to generate them if there are no CONFIG_HEADERS.
11039 # This happens for instance with `./config.status Makefile'.
11040 if test -n "$CONFIG_HEADERS"; then
11041 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11045 # Transform confdefs.h into an awk script `defines.awk', embedded as
11046 # here-document in config.status, that substitutes the proper values into
11047 # config.h.in to produce config.h.
11049 # Create a delimiter string that does not exist in confdefs.h, to ease
11050 # handling of long lines.
11052 for ac_last_try in false false :; do
11053 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11054 if test -z "$ac_tt"; then
11056 elif $ac_last_try; then
11057 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11059 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11063 # For the awk script, D is an array of macro values keyed by name,
11064 # likewise P contains macro parameters if any. Preserve backslash
11065 # newline sequences.
11067 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11069 s/.\{148\}/&'"$ac_delim"'/g
11072 s/^[ ]*#[ ]*define[ ][ ]*/ /
11079 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11081 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11085 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11086 D["\
1"]=" \
3\\\\\\n
"\\/p
11088 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11093 s/.\{148\}/&'"$ac_delim"'/g
11098 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11101 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11103 ' <confdefs.h | sed '
11104 s/'"$ac_delim"'/"\\\
11105 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11108 for (key in D) D_is_set[key] = 1
11111 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11113 split(line, arg, " ")
11114 if (arg[1] == "#") {
11118 defundef
= substr
(arg
[1], 2)
11121 split(mac1
, mac2
, "(") #)
11123 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11124 if (D_is_set
[macro
]) {
11125 # Preserve the white space surrounding the "#".
11126 print prefix
"define", macro P
[macro
] D
[macro
]
11129 # Replace #undef with comments. This is necessary, for example,
11130 # in the case of _POSIX_SOURCE, which is predefined and required
11131 # on some systems where configure will not decide to define it.
11132 if (defundef
== "undef") {
11133 print
"/*", prefix defundef
, macro
, "*/"
11141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11142 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11143 fi # test -n "$CONFIG_HEADERS"
11146 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11151 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11153 case $ac_mode$ac_tag in
11155 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11156 :[FH
]-) ac_tag
=-:-;;
11157 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11174 -) ac_f
="$ac_tmp/stdin";;
11175 *) # Look for the file first in the build tree, then in the source tree
11176 # (if the path is not absolute). The absolute path cannot be DOS-style,
11177 # because $ac_f cannot contain `:'.
11181 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11183 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11185 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11186 as_fn_append ac_file_inputs
" '$ac_f'"
11189 # Let's still pretend it is `configure' which instantiates (i.e., don't
11190 # use $as_me), people would be surprised to read:
11191 # /* config.h. Generated by config.status. */
11192 configure_input
='Generated from '`
11193 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11195 if test x
"$ac_file" != x-
; then
11196 configure_input
="$ac_file. $configure_input"
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11198 $as_echo "$as_me: creating $ac_file" >&6;}
11200 # Neutralize special characters interpreted by sed in replacement strings.
11201 case $configure_input in #(
11202 *\
&* |
*\|
* |
*\\* )
11203 ac_sed_conf_input
=`$as_echo "$configure_input" |
11204 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11205 *) ac_sed_conf_input
=$configure_input;;
11209 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11210 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11215 ac_dir
=`$as_dirname -- "$ac_file" ||
11216 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11217 X"$ac_file" : 'X\(//\)[^/]' \| \
11218 X"$ac_file" : 'X\(//\)$' \| \
11219 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11220 $as_echo X"$ac_file" |
11221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11225 /^X\(\/\/\)[^/].*/{
11238 as_dir
="$ac_dir"; as_fn_mkdir_p
11242 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11244 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11245 # A ".." for each directory in $ac_dir_suffix.
11246 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11247 case $ac_top_builddir_sub in
11248 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11249 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11252 ac_abs_top_builddir
=$ac_pwd
11253 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11254 # for backward compatibility:
11255 ac_top_builddir
=$ac_top_build_prefix
11258 .
) # We are building in place.
11260 ac_top_srcdir
=$ac_top_builddir_sub
11261 ac_abs_top_srcdir
=$ac_pwd ;;
11262 [\\/]* | ?
:[\\/]* ) # Absolute name.
11263 ac_srcdir
=$srcdir$ac_dir_suffix;
11264 ac_top_srcdir
=$srcdir
11265 ac_abs_top_srcdir
=$srcdir ;;
11266 *) # Relative name.
11267 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11268 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11269 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11271 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11283 # If the template does not know about datarootdir, expand it.
11284 # FIXME: This hack should be removed a few years after 2.60.
11285 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11296 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11297 *datarootdir
*) ac_datarootdir_seen
=yes;;
11298 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11300 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11303 ac_datarootdir_hack='
11304 s&@datadir@&$datadir&g
11305 s&@docdir@&$docdir&g
11306 s&@infodir@&$infodir&g
11307 s&@localedir@&$localedir&g
11308 s&@mandir@&$mandir&g
11309 s&\\\${datarootdir}&$datarootdir&g' ;;
11313 # Neutralize VPATH when `$srcdir' = `.'.
11314 # Shell code in configure.ac might set extrasub.
11315 # FIXME: do we really want to maintain this feature?
11316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11317 ac_sed_extra="$ac_vpsub
11320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11322 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11323 s|@configure_input@|
$ac_sed_conf_input|
;t t
11324 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11325 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11326 s
&@srcdir@
&$ac_srcdir&;t t
11327 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11328 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11329 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11330 s
&@builddir@
&$ac_builddir&;t t
11331 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11332 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11333 $ac_datarootdir_hack
11335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11336 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11339 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11340 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11341 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11343 which seems to be undefined. Please make sure it is defined" >&5
11344 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11345 which seems to be undefined. Please make sure it is defined" >&2;}
11347 rm -f "$ac_tmp/stdin"
11349 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11350 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11358 if test x"$ac_file" != x-; then
11360 $as_echo "/* $configure_input */" \
11361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11362 } >"$ac_tmp/config.h" \
11363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11364 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11366 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11369 mv "$ac_tmp/config.h" "$ac_file" \
11370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11373 $as_echo "/* $configure_input */" \
11374 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11375 || as_fn_error $? "could not create -" "$LINENO" 5
11387 ac_clean_files=$ac_clean_files_save
11389 test $ac_write_fail = 0 ||
11390 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11393 # configure is writing to config.log, and then calls config.status.
11394 # config.status does its own redirection, appending to config.log.
11395 # Unfortunately, on DOS this fails, as config.log is still kept open
11396 # by configure, so config.status won't be able to
write to it
; its
11397 # output is simply discarded. So we exec the FD to /dev/null,
11398 # effectively closing config.log, so it can be properly (re)opened and
11399 # appended to by config.status. When coming back to configure, we
11400 # need to make the FD available again.
11401 if test "$no_create" != yes; then
11403 ac_config_status_args
=
11404 test "$silent" = yes &&
11405 ac_config_status_args
="$ac_config_status_args --quiet"
11407 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11409 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11410 # would make configure fail if this is the last instruction.
11411 $ac_cs_success || as_fn_exit
1
11413 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11415 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11419 chmod +x cups-config