2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for CUPS 2.3b7.
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.3b7'
564 PACKAGE_STRING
='CUPS 2.3b7'
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
724 CUPS_DEFAULT_PRINTOPERATOR_AUTH
809 program_transform_name
822 enable_option_checking
846 enable_libtool_unsupported
884 with_config_file_perm
889 with_access_log_level
893 enable_default_shared
907 ac_precious_vars
='build_alias
921 # Initialize some variables set by options.
923 ac_init_version
=false
924 ac_unrecognized_opts
=
926 # The variables have the same names as the options, with
927 # dashes changed to underlines.
935 program_transform_name
=s
,x
,x
,
943 # Installation directory options.
944 # These are left unexpanded so users can "make install exec_prefix=/foo"
945 # and all the variables that are supposed to be based on exec_prefix
946 # by default will actually change.
947 # Use braces instead of parens because sh, perl, etc. also accept them.
948 # (The list follows the same order as the GNU Coding Standards.)
949 bindir
='${exec_prefix}/bin'
950 sbindir
='${exec_prefix}/sbin'
951 libexecdir
='${exec_prefix}/libexec'
952 datarootdir
='${prefix}/share'
953 datadir
='${datarootdir}'
954 sysconfdir
='${prefix}/etc'
955 sharedstatedir
='${prefix}/com'
956 localstatedir
='${prefix}/var'
957 includedir
='${prefix}/include'
958 oldincludedir
='/usr/include'
959 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
960 infodir
='${datarootdir}/info'
965 libdir
='${exec_prefix}/lib'
966 localedir
='${datarootdir}/locale'
967 mandir
='${datarootdir}/man'
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
975 eval $ac_prev=\
$ac_option
981 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986 # Accept the important Cygnus configure options, so we can diagnose typos.
988 case $ac_dashdash$ac_option in
992 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
994 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
997 -build |
--build |
--buil |
--bui |
--bu)
998 ac_prev
=build_alias
;;
999 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1000 build_alias
=$ac_optarg ;;
1002 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1003 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1004 ac_prev
=cache_file
;;
1005 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1006 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1007 cache_file
=$ac_optarg ;;
1009 --config-cache |
-C)
1010 cache_file
=config.cache
;;
1012 -datadir |
--datadir |
--datadi |
--datad)
1014 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1015 datadir
=$ac_optarg ;;
1017 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1018 |
--dataroo |
--dataro |
--datar)
1019 ac_prev
=datarootdir
;;
1020 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1021 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1022 datarootdir
=$ac_optarg ;;
1024 -disable-* |
--disable-*)
1025 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1028 as_fn_error $?
"invalid feature name: $ac_useropt"
1029 ac_useropt_orig
=$ac_useropt
1030 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_
$ac_useropt"
1035 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036 ac_unrecognized_sep
=', ';;
1038 eval enable_
$ac_useropt=no
;;
1040 -docdir |
--docdir |
--docdi |
--doc |
--do)
1042 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1043 docdir
=$ac_optarg ;;
1045 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1047 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1048 dvidir
=$ac_optarg ;;
1050 -enable-* |
--enable-*)
1051 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1054 as_fn_error $?
"invalid feature name: $ac_useropt"
1055 ac_useropt_orig
=$ac_useropt
1056 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_
$ac_useropt"
1061 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062 ac_unrecognized_sep
=', ';;
1064 eval enable_
$ac_useropt=\
$ac_optarg ;;
1066 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1067 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1068 |
--exec |
--exe |
--ex)
1069 ac_prev
=exec_prefix
;;
1070 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1071 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1072 |
--exec=* |
--exe=* |
--ex=*)
1073 exec_prefix
=$ac_optarg ;;
1075 -gas |
--gas |
--ga |
--g)
1076 # Obsolete; use --with-gas.
1079 -help |
--help |
--hel |
--he |
-h)
1080 ac_init_help
=long
;;
1081 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1082 ac_init_help
=recursive
;;
1083 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1084 ac_init_help
=short
;;
1086 -host |
--host |
--hos |
--ho)
1087 ac_prev
=host_alias
;;
1088 -host=* |
--host=* |
--hos=* |
--ho=*)
1089 host_alias
=$ac_optarg ;;
1091 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1093 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1095 htmldir
=$ac_optarg ;;
1097 -includedir |
--includedir |
--includedi |
--included |
--include \
1098 |
--includ |
--inclu |
--incl |
--inc)
1099 ac_prev
=includedir
;;
1100 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1101 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1102 includedir
=$ac_optarg ;;
1104 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1106 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1107 infodir
=$ac_optarg ;;
1109 -libdir |
--libdir |
--libdi |
--libd)
1111 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1112 libdir
=$ac_optarg ;;
1114 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1115 |
--libexe |
--libex |
--libe)
1116 ac_prev
=libexecdir
;;
1117 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1118 |
--libexe=* |
--libex=* |
--libe=*)
1119 libexecdir
=$ac_optarg ;;
1121 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1122 ac_prev
=localedir
;;
1123 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1124 localedir
=$ac_optarg ;;
1126 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1127 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1128 ac_prev
=localstatedir
;;
1129 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1130 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1131 localstatedir
=$ac_optarg ;;
1133 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1135 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1136 mandir
=$ac_optarg ;;
1138 -nfp |
--nfp |
--nf)
1139 # Obsolete; use --without-fp.
1142 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1143 |
--no-cr |
--no-c |
-n)
1146 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1147 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1150 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1151 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1152 |
--oldin |
--oldi |
--old |
--ol |
--o)
1153 ac_prev
=oldincludedir
;;
1154 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1155 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1156 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1157 oldincludedir
=$ac_optarg ;;
1159 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1161 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1162 prefix
=$ac_optarg ;;
1164 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1165 |
--program-pre |
--program-pr |
--program-p)
1166 ac_prev
=program_prefix
;;
1167 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1168 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1169 program_prefix
=$ac_optarg ;;
1171 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1172 |
--program-suf |
--program-su |
--program-s)
1173 ac_prev
=program_suffix
;;
1174 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1175 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1176 program_suffix
=$ac_optarg ;;
1178 -program-transform-name |
--program-transform-name \
1179 |
--program-transform-nam |
--program-transform-na \
1180 |
--program-transform-n |
--program-transform- \
1181 |
--program-transform |
--program-transfor \
1182 |
--program-transfo |
--program-transf \
1183 |
--program-trans |
--program-tran \
1184 |
--progr-tra |
--program-tr |
--program-t)
1185 ac_prev
=program_transform_name
;;
1186 -program-transform-name=* |
--program-transform-name=* \
1187 |
--program-transform-nam=* |
--program-transform-na=* \
1188 |
--program-transform-n=* |
--program-transform-=* \
1189 |
--program-transform=* |
--program-transfor=* \
1190 |
--program-transfo=* |
--program-transf=* \
1191 |
--program-trans=* |
--program-tran=* \
1192 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1193 program_transform_name
=$ac_optarg ;;
1195 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1197 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1198 pdfdir
=$ac_optarg ;;
1200 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1202 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1205 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1206 |
-silent |
--silent |
--silen |
--sile |
--sil)
1209 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1211 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1213 sbindir
=$ac_optarg ;;
1215 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1216 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1217 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1219 ac_prev
=sharedstatedir
;;
1220 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1221 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1222 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1224 sharedstatedir
=$ac_optarg ;;
1226 -site |
--site |
--sit)
1228 -site=* |
--site=* |
--sit=*)
1231 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1233 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1234 srcdir
=$ac_optarg ;;
1236 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1237 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1238 ac_prev
=sysconfdir
;;
1239 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1240 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1241 sysconfdir
=$ac_optarg ;;
1243 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1244 ac_prev
=target_alias
;;
1245 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1246 target_alias
=$ac_optarg ;;
1248 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1251 -version |
--version |
--versio |
--versi |
--vers |
-V)
1252 ac_init_version
=: ;;
1255 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1258 as_fn_error $?
"invalid package name: $ac_useropt"
1259 ac_useropt_orig
=$ac_useropt
1260 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1265 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep
=', ';;
1268 eval with_
$ac_useropt=\
$ac_optarg ;;
1270 -without-* |
--without-*)
1271 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1274 as_fn_error $?
"invalid package name: $ac_useropt"
1275 ac_useropt_orig
=$ac_useropt
1276 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1281 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep
=', ';;
1284 eval with_
$ac_useropt=no
;;
1287 # Obsolete; use --with-x.
1290 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1291 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1292 ac_prev
=x_includes
;;
1293 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1294 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1295 x_includes
=$ac_optarg ;;
1297 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1298 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1299 ac_prev
=x_libraries
;;
1300 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1301 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1302 x_libraries
=$ac_optarg ;;
1304 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information"
1309 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 case $ac_envvar in #(
1312 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1313 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1315 eval $ac_envvar=\
$ac_optarg
1316 export $ac_envvar ;;
1319 # FIXME: should be removed in autoconf 3.0.
1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1329 if test -n "$ac_prev"; then
1330 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1331 as_fn_error $?
"missing argument to $ac_option"
1334 if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1337 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342 # Check all directory arguments for consistency.
1343 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
1348 eval ac_val
=\$
$ac_var
1349 # Remove trailing slashes.
1352 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\
$ac_val;;
1355 # Be sure to have absolute directory names.
1357 [\\/$
]* | ?
:[\\/]* ) continue;;
1358 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1360 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1368 target
=$target_alias
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x
; then
1372 if test "x$build_alias" = x
; then
1373 cross_compiling
=maybe
1374 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1375 If a cross compiler is detected then cross compile mode will be used" >&2
1376 elif test "x$build_alias" != "x$host_alias"; then
1382 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1384 test "$silent" = yes && exec 6>/dev
/null
1387 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1388 ac_ls_di
=`ls -di .` &&
1389 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1390 as_fn_error $?
"working directory cannot be determined"
1391 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392 as_fn_error $?
"pwd does not report name of working directory"
1395 # Find the source files, if location was not specified.
1396 if test -z "$srcdir"; then
1397 ac_srcdir_defaulted
=yes
1398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir
=`$as_dirname -- "$as_myself" ||
1400 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401 X"$as_myself" : 'X\(//\)[^/]' \| \
1402 X"$as_myself" : 'X\(//\)$' \| \
1403 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404 $as_echo X"$as_myself" |
1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1427 ac_srcdir_defaulted
=no
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1431 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1433 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1445 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 for ac_var
in $ac_precious_vars; do
1448 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1450 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1455 # Report the --help message.
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1461 \`configure' configures CUPS 2.3b7 to adapt to many kinds of systems.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking ...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1519 --build=BUILD configure
for building on BUILD
[guessed
]
1520 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1524 if test -n "$ac_init_help"; then
1525 case $ac_init_help in
1526 short | recursive
) echo "Configuration of CUPS 2.3b7:";;
1531 --disable-option-checking ignore unrecognized
--enable/--with options
1532 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1533 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1534 --enable-static install static libraries
1535 --enable-mallinfo build with malloc debug logging
1536 --enable-libpaper build with libpaper support
1537 --enable-libusb use libusb
for USB printing
1538 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1539 --enable-acl build with POSIX ACL support
1540 --disable-dbus build without DBUS support
1541 --disable-shared do not create shared libraries
1542 --enable-libtool-unsupported=/path
/to
/libtool
1543 build with libtool
(UNSUPPORTED
!)
1544 --enable-debug build with debugging symbols
1545 --enable-debug-guards build with memory allocation guards
1546 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1547 --enable-unit-tests build and run unit tests
1548 --enable-relro build with the GCC relro option
1549 --enable-sanitizer build with AddressSanitizer
1550 --disable-gssapi disable GSSAPI support
1551 --disable-threads disable multi-threading support
1552 --disable-ssl disable SSL
/TLS support
1553 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1554 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1555 --disable-pam disable PAM support
1556 --disable-largefile omit support
for large files
1557 --disable-avahi disable DNS Service Discovery support using Avahi
1558 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1559 --disable-launchd disable launchd support
1560 --disable-systemd disable systemd support
1561 --enable-upstart enable upstart support
1562 --enable-page-logging enable page_log by default
1563 --disable-browsing disable Browsing by default
1564 --disable-default-shared
1565 disable DefaultShared by default
1566 --disable-raw-printing do not allow raw printing by default
1567 --enable-webif enable the web interface by default
, default
=no
for macOS
1570 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1571 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1572 --with-cups-build set "cups-config --build" string
1573 --with-dbusdir set DBUS configuration directory
1574 --with-adminkey set the default SystemAuthKey value
1575 --with-operkey set the default operator @AUTHKEY value
1576 --with-components set components to build
:
1577 - "all" (default
) builds everything
1578 - "core" builds libcups and ipptool
1579 - "libcups" builds just libcups
1580 - "libcupslite" builds just libcups without driver support
1581 --with-privateinclude set path
for private include files
, default
=none
1582 --with-lpdconfig set URI
for LPD config
file
1583 --with-smbconfig set URI
for Samba config
file
1584 --with-cachedir set path
for cache files
1585 --with-icondir set path
for application icons
1586 --with-menudir set path
for application menus
1587 --with-docdir set path
for documentation
1588 --with-fontpath set font path
for pstoraster
1589 --with-logdir set path
for log files
1590 --with-rundir set transient run-time state directory
1591 --with-optim set optimization flags
1592 --with-archflags set default architecture flags
1593 --with-ldarchflags set program architecture flags
1594 --with-domainsocket set unix domain socket name
1595 --with-gssservicename set default gss service name
1596 --with-pam-module set the PAM module to use
1597 --with-dnssd-libs set directory
for DNS Service Discovery library
1598 --with-dnssd-includes set directory
for DNS Service Discovery includes
1599 --with-systemd set directory
for systemd service files
1600 --with-smfmanifestdir set path
for Solaris SMF manifest
1601 --with-rcdir set path
for rc scripts
1602 --with-rclevels set run levels
for rc scripts
1603 --with-rcstart set start number
for rc scripts
1604 --with-rcstop set stop number
for rc scripts
1605 --with-xinetd set path
for xinetd config files
1606 --with-languages set installed languages
, default
=all
1607 --with-bundledir set localization bundle directory
1608 --with-bundlelang set localization bundle base language
(English or en
)
1609 --with-exe-file-perm set default executable permissions value
, default
=0555
1610 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1611 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1612 --with-log-file-perm set default LogFilePerm value
, default
=0644
1613 --with-fatal-errors set default FatalErrors value
, default
=config
1614 --with-log-level set default LogLevel value
, default
=warn
1615 --with-access-log-level set default AccessLogLevel value
, default
=none
1616 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1617 --with-cups-user set default user
for CUPS
1618 --with-cups-group set default group
for CUPS
1619 --with-system-groups set default system groups
for CUPS
1620 --with-printcap set default printcap
file
1621 --with-lpdconfigfile set default LPDConfigFile URI
1622 --with-smbconfigfile set default SMBConfigFile URI
1623 --with-max-copies set default max copies value
, default
=9999
1624 --with-snmp-address set SNMP query address
, default
=auto
1625 --with-snmp-community set SNMP community
, default
=public
1626 --with-ipp-port set port number
for IPP
, default
=631
1628 Some influential environment variables
:
1629 CC C compiler
command
1630 CFLAGS C compiler flags
1631 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1632 nonstandard directory
<lib dir
>
1633 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1634 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1635 you have headers
in a nonstandard directory
<include dir
>
1637 CXX C
++ compiler
command
1638 CXXFLAGS C
++ compiler flags
1640 Use these variables to override the choices made by
`configure' or to help
1641 it to find libraries and programs with nonstandard names/locations.
1643 Report bugs to <https://github.com/apple/cups/issues>.
1644 CUPS home page: <https://www.cups.org/>.
1649 if test "$ac_init_help" = "recursive"; then
1650 # If there are subdirs, report their specific --help.
1651 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1652 test -d "$ac_dir" ||
1653 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1661 # A ".." for each directory in $ac_dir_suffix.
1662 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1663 case $ac_top_builddir_sub in
1664 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1668 ac_abs_top_builddir=$ac_pwd
1669 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1670 # for backward compatibility:
1671 ac_top_builddir=$ac_top_build_prefix
1674 .) # We are building in place.
1676 ac_top_srcdir=$ac_top_builddir_sub
1677 ac_abs_top_srcdir=$ac_pwd ;;
1678 [\\/]* | ?:[\\/]* ) # Absolute name.
1679 ac_srcdir=$srcdir$ac_dir_suffix;
1680 ac_top_srcdir=$srcdir
1681 ac_abs_top_srcdir=$srcdir ;;
1683 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1684 ac_top_srcdir=$ac_top_build_prefix$srcdir
1685 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689 cd "$ac_dir" || { ac_status=$?; continue; }
1690 # Check for guested configure.
1691 if test -f "$ac_srcdir/configure.gnu"; then
1693 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1694 elif test -f "$ac_srcdir/configure"; then
1696 $SHELL "$ac_srcdir/configure" --help=recursive
1698 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700 cd "$ac_pwd" || { ac_status=$?; break; }
1704 test -n "$ac_init_help" && exit $ac_status
1705 if $ac_init_version; then
1707 CUPS configure 2.3b7
1708 generated by GNU Autoconf 2.68
1710 Copyright (C) 2010 Free Software Foundation, Inc.
1711 This configure script is free software; the Free Software Foundation
1712 gives unlimited permission to copy, distribute and modify it.
1717 ## ------------------------ ##
1718 ## Autoconf initialization. ##
1719 ## ------------------------ ##
1721 # ac_fn_c_try_compile LINENO
1722 # --------------------------
1723 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_c_try_compile ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 rm -f conftest.$ac_objext
1728 if { { ac_try="$ac_compile"
1730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1731 *) ac_try_echo
=$ac_try;;
1733 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_compile") 2>conftest.err
1737 if test -s conftest.err
; then
1738 grep -v '^ *+' conftest.err
>conftest.er1
1739 cat conftest.er1
>&5
1740 mv -f conftest.er1 conftest.err
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && {
1744 test -z "$ac_c_werror_flag" ||
1745 test ! -s conftest.err
1746 } && test -s conftest.
$ac_objext; then :
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.
$ac_ext >&5
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status
$ac_retval
1757 } # ac_fn_c_try_compile
1759 # ac_fn_c_try_cpp LINENO
1760 # ----------------------
1761 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1764 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1765 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } > conftest.i && {
1781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1796 # ac_fn_cxx_try_compile LINENO
1797 # ----------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1806 *) ac_try_echo
=$ac_try;;
1808 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1812 if test -s conftest.err
; then
1813 grep -v '^ *+' conftest.err
>conftest.er1
1814 cat conftest.er1
>&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.
$ac_objext; then :
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.
$ac_ext >&5
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status
$ac_retval
1832 } # ac_fn_cxx_try_compile
1834 # ac_fn_c_try_link LINENO
1835 # -----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1839 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1840 rm -f conftest.
$ac_objext conftest
$ac_exeext
1841 if { { ac_try
="$ac_link"
1843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1878 } # ac_fn_c_try_link
1880 # ac_fn_c_try_run LINENO
1881 # ----------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1883 # that executables *can* be run.
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_link"
1889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1890 *) ac_try_echo
=$ac_try;;
1892 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>&5
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1898 { { case "(($ac_try" in
1899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_try") 2>&5
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; }; }; then :
1910 $as_echo "$as_me: program exited with status $ac_status" >&5
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=$ac_status
1916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 as_fn_set_status $ac_retval
1922 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1923 # -------------------------------------------------------
1924 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1925 # the include files in INCLUDES and setting the cache variable VAR
1927 ac_fn_c_check_header_mongrel ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if eval \${$3+:} false; then :
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1940 # Is the header compilable?
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1942 $as_echo_n "checking $2 usability... " >&6; }
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949 ac_header_compiler=yes
1951 ac_header_compiler=no
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1955 $as_echo "$ac_header_compiler" >&6; }
1957 # Is the header present?
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1959 $as_echo_n "checking $2 presence... " >&6; }
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1964 if ac_fn_c_try_cpp "$LINENO"; then :
1965 ac_header_preproc=yes
1967 ac_header_preproc=no
1969 rm -f conftest.err conftest.i conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1971 $as_echo "$ac_header_preproc" >&6; }
1973 # So? What about this header?
1974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1977 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1979 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1983 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1985 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1987 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1989 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1991 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1992 ( $as_echo "## --------------------------------------------------- ##
1993 ## Report this to https://github.com/apple/cups/issues ##
1994 ## --------------------------------------------------- ##"
1995 ) | sed "s/^/$as_me: WARNING: /" >&2
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2003 eval "$3=\$ac_header_compiler"
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011 } # ac_fn_c_check_header_mongrel
2013 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2014 # -------------------------------------------------------
2015 # Tests whether HEADER exists and can be compiled using the include files in
2016 # INCLUDES, setting the cache variable VAR accordingly.
2017 ac_fn_c_check_header_compile ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2030 if ac_fn_c_try_compile "$LINENO"; then :
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 } # ac_fn_c_check_header_compile
2044 # ac_fn_c_check_func LINENO FUNC VAR
2045 # ----------------------------------
2046 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2047 ac_fn_c_check_func ()
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053 $as_echo_n "(cached) " >&6
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2059 #define $2 innocuous_$2
2061 /* System header to define __stub macros and hopefully few prototypes,
2062 which can conflict with char $2 (); below.
2063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2064 <limits.h> exists even on freestanding compilers. */
2067 # include <limits.h>
2069 # include <assert.h>
2074 /* Override any GCC internal prototype to avoid an error.
2075 Use char because int might match the return type of a GCC
2076 builtin and then its argument prototype would still apply. */
2081 /* The GNU C library defines this for functions which it implements
2082 to always fail with ENOSYS. Some functions are actually named
2083 something starting with __ and the normal name is an alias. */
2084 #if defined __stub_$2 || defined __stub___$2
2096 if ac_fn_c_try_link "$LINENO"; then :
2101 rm -f core conftest.err conftest.$ac_objext \
2102 conftest$ac_exeext conftest.$ac_ext
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109 } # ac_fn_c_check_func
2111 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2112 # ----------------------------------------------------
2113 # Tries to find if the field MEMBER exists in type AGGR, after including
2114 # INCLUDES, setting cache variable VAR accordingly.
2115 ac_fn_c_check_member ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2119 $as_echo_n "checking for $2.$3... " >&6; }
2120 if eval \${$4+:} false; then :
2121 $as_echo_n "(cached) " >&6
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2136 if ac_fn_c_try_compile "$LINENO"; then :
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2146 if (sizeof ac_aggr.$3)
2152 if ac_fn_c_try_compile "$LINENO"; then :
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 } # ac_fn_c_check_member
2167 cat >config.log <<_ACEOF
2168 This file contains any messages produced by compilers while
2169 running configure, to aid debugging if configure makes a mistake.
2171 It was created by CUPS $as_me 2.3b7, which was
2172 generated by GNU Autoconf 2.68. Invocation command line was
2184 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2185 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2186 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2187 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2188 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2190 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2191 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2193 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2194 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2195 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2196 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2197 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2198 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2199 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 test -z "$as_dir" && as_dir=.
2208 $as_echo "PATH: $as_dir"
2224 # Keep a trace of the command line.
2225 # Strip out --no-create and --no-recursion so they do not pile up.
2226 # Strip out --silent because we don't want to record it for future runs.
2227 # Also quote any args containing shell meta-characters.
2228 # Make two passes to allow for proper duplicate-argument suppression.
2232 ac_must_keep_next=false
2238 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2240 | -silent | --silent | --silen | --sile | --sil)
2243 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2246 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2248 as_fn_append ac_configure_args1 " '$ac_arg'"
2249 if test $ac_must_keep_next = true; then
2250 ac_must_keep_next=false # Got value, back to normal.
2253 *=* | --config-cache | -C | -disable-* | --disable-* \
2254 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2255 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2256 | -with-* | --with-* | -without-* | --without-* | --x)
2257 case "$ac_configure_args0 " in
2258 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2261 -* ) ac_must_keep_next=true ;;
2264 as_fn_append ac_configure_args " '$ac_arg'"
2269 { ac_configure_args0=; unset ac_configure_args0;}
2270 { ac_configure_args1=; unset ac_configure_args1;}
2272 # When interrupted or exit'd, cleanup temporary files, and complete
2273 # config.log. We remove comments because anyway the quotes in there
2274 # would cause problems or look ugly.
2275 # WARNING: Use '\'' to represent an apostrophe within the trap.
2276 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2277 trap 'exit_status=$?
2278 # Save into config.log some information that might help in debugging.
2282 $as_echo "## ---------------- ##
2283 ## Cache variables. ##
2284 ## ---------------- ##"
2286 # The following way of writing the cache mishandles newlines in values,
2288 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2289 eval ac_val=\$$ac_var
2293 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2294 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2297 _ | IFS | as_nl) ;; #(
2298 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2299 *) { eval $ac_var=; unset $ac_var;} ;;
2304 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2305 *${as_nl}ac_space=\ *)
2307 "s/'\''/'\''\\\\'\'''\''/g;
2308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2311 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2318 $as_echo "## ----------------- ##
2319 ## Output variables. ##
2320 ## ----------------- ##"
2322 for ac_var in $ac_subst_vars
2324 eval ac_val=\$$ac_var
2326 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328 $as_echo "$ac_var='\''$ac_val'\''"
2332 if test -n "$ac_subst_files"; then
2333 $as_echo "## ------------------- ##
2334 ## File substitutions. ##
2335 ## ------------------- ##"
2337 for ac_var in $ac_subst_files
2339 eval ac_val=\$$ac_var
2341 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 $as_echo "$ac_var='\''$ac_val'\''"
2348 if test -s confdefs.h; then
2349 $as_echo "## ----------- ##
2356 test "$ac_signal" != 0 &&
2357 $as_echo "$as_me: caught signal $ac_signal"
2358 $as_echo "$as_me: exit $exit_status"
2360 rm -f core *.core core.conftest.* &&
2361 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2364 for ac_signal in 1 2 13 15; do
2365 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2370 rm -f -r conftest* confdefs.h
2372 $as_echo "/* confdefs.h */" > confdefs.h
2374 # Predefined preprocessor variables.
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_NAME "$PACKAGE_NAME"
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_STRING "$PACKAGE_STRING"
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_URL "$PACKAGE_URL"
2401 # Let the site file select an alternate cache file if it wants to.
2402 # Prefer an explicitly selected file to automatically selected ones.
2405 if test -n "$CONFIG_SITE"; then
2406 # We do not want a PATH search for config.site.
2407 case $CONFIG_SITE in #((
2408 -*) ac_site_file1=./$CONFIG_SITE;;
2409 */*) ac_site_file1=$CONFIG_SITE;;
2410 *) ac_site_file1=./$CONFIG_SITE;;
2412 elif test "x$prefix" != xNONE; then
2413 ac_site_file1=$prefix/share/config.site
2414 ac_site_file2=$prefix/etc/config.site
2416 ac_site_file1=$ac_default_prefix/share/config.site
2417 ac_site_file2=$ac_default_prefix/etc/config.site
2419 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2421 test "x$ac_site_file" = xNONE && continue
2422 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2424 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2425 sed 's/^/| /' "$ac_site_file" >&5
2427 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429 as_fn_error $? "failed to load site
script $ac_site_file
2430 See \
`config.log' for more details" "$LINENO" 5; }
2434 if test -r "$cache_file"; then
2435 # Some versions of bash will fail to source /dev/null (special files
2436 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2437 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2439 $as_echo "$as_me: loading cache $cache_file" >&6;}
2441 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2442 *) . "./$cache_file";;
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2447 $as_echo "$as_me: creating cache $cache_file" >&6;}
2451 # Check that the precious variables saved in the cache have kept the same
2453 ac_cache_corrupted=false
2454 for ac_var in $ac_precious_vars; do
2455 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2456 eval ac_new_set=\$ac_env_${ac_var}_set
2457 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2458 eval ac_new_val=\$ac_env_${ac_var}_value
2459 case $ac_old_set,$ac_new_set in
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2462 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2463 ac_cache_corrupted=: ;;
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2466 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2470 if test "x$ac_old_val" != "x$ac_new_val"; then
2471 # differences in whitespace do not lead to failure.
2472 ac_old_val_w=`echo x
$ac_old_val`
2473 ac_new_val_w=`echo x
$ac_new_val`
2474 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2476 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2477 ac_cache_corrupted=:
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2480 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2481 eval $ac_var=\$ac_old_val
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2484 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2486 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2489 # Pass precious variables to config.status.
2490 if test "$ac_new_set" = set; then
2492 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2493 *) ac_arg=$ac_var=$ac_new_val ;;
2495 case " $ac_configure_args " in
2496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2497 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2501 if $ac_cache_corrupted; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2505 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2506 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2508 ## -------------------- ##
2509 ## Main body of script. ##
2510 ## -------------------- ##
2513 ac_cpp='$CPP $CPPFLAGS'
2514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2523 if test -f "$ac_dir/install-sh"; then
2525 ac_install_sh="$ac_aux_dir/install-sh -c"
2527 elif test -f "$ac_dir/install.sh"; then
2529 ac_install_sh="$ac_aux_dir/install.sh -c"
2531 elif test -f "$ac_dir/shtool"; then
2533 ac_install_sh="$ac_aux_dir/shtool install -c"
2537 if test -z "$ac_aux_dir"; then
2538 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2541 # These three variables are undocumented and unsupported,
2542 # and are intended to be withdrawn in a future Autoconf release.
2543 # They can cause serious problems if a builder's source tree is in a directory
2544 # whose full name contains unusual characters.
2545 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2546 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2547 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2550 # Make sure we can run config.sub.
2551 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2552 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2555 $as_echo_n "checking build system type... " >&6; }
2556 if ${ac_cv_build+:} false; then :
2557 $as_echo_n "(cached) " >&6
2559 ac_build_alias=$build_alias
2560 test "x$ac_build_alias" = x &&
2561 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2562 test "x$ac_build_alias" = x &&
2563 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2564 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2565 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2569 $as_echo "$ac_cv_build" >&6; }
2570 case $ac_cv_build in
2572 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2575 ac_save_IFS=$IFS; IFS='-'
2581 # Remember, the first character of IFS is used to create $*,
2582 # except with old shells:
2585 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2589 $as_echo_n "checking host system type... " >&6; }
2590 if ${ac_cv_host+:} false; then :
2591 $as_echo_n "(cached) " >&6
2593 if test "x$host_alias" = x; then
2594 ac_cv_host=$ac_cv_build
2596 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2597 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2602 $as_echo "$ac_cv_host" >&6; }
2605 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2608 ac_save_IFS=$IFS; IFS='-'
2614 # Remember, the first character of IFS is used to create $*,
2615 # except with old shells:
2618 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2622 host_os_name=`echo $host_os |
sed -e '1,$s/[0-9.]*$//g'`
2623 host_os_version=`echo $host_os |
sed -e '1,$s/^[^0-9.]*//g' |
awk -F.
'{print $1 $2}'`
2624 # Linux often does not yield an OS version we can use...
2625 if test "x$host_os_version" = x; then
2629 if test "$build" = "$host"; then
2630 # No, build local targets
2633 # Yes, don't build local targets
2638 for ac_prog in codesign true
2640 # Extract the first word of "$ac_prog", so it can be a program name with args.
2641 set dummy $ac_prog; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_path_CODE_SIGN+:} false; then :
2645 $as_echo_n "(cached) " >&6
2649 ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path.
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_path_CODE_SIGN="$as_dir/$ac_word$ac_exec_ext"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 CODE_SIGN=$ac_cv_path_CODE_SIGN
2671 if test -n "$CODE_SIGN"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5
2673 $as_echo "$CODE_SIGN" >&6; }
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2680 test -n "$CODE_SIGN" && break
2685 ac_config_headers="$ac_config_headers config.h"
2688 CUPS_VERSION="2.3b7"
2690 CUPS_BUILD="cups-$CUPS_VERSION"
2693 # Check whether --with-cups_build was given.
2694 if test "${with_cups_build+set}" = set; then :
2695 withval=$with_cups_build; CUPS_BUILD="$withval"
2702 cat >>confdefs.h <<_ACEOF
2703 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2706 cat >>confdefs.h <<_ACEOF
2707 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2711 CFLAGS="${CFLAGS:=}"
2712 CPPFLAGS="${CPPFLAGS:=}"
2713 CXXFLAGS="${CXXFLAGS:=}"
2714 LDFLAGS="${LDFLAGS:=}"
2716 for ac_prog in gawk mawk nawk awk
2718 # Extract the first word of "$ac_prog", so it can be a program name with args.
2719 set dummy $ac_prog; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if ${ac_cv_prog_AWK+:} false; then :
2723 $as_echo_n "(cached) " >&6
2725 if test -n "$AWK"; then
2726 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735 ac_cv_prog_AWK="$ac_prog"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 if test -n "$AWK"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2748 $as_echo "$AWK" >&6; }
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2755 test -n "$AWK" && break
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763 if test -n "$ac_tool_prefix"; then
2764 for ac_prog in clang cc gcc
2766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_CC+:} false; then :
2771 $as_echo_n "(cached) " >&6
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 if test -n "$CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796 $as_echo "$CC" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2803 test -n "$CC" && break
2806 if test -z "$CC"; then
2808 for ac_prog in clang cc gcc
2810 # Extract the first word of "$ac_prog", so it can be a program name with args.
2811 set dummy $ac_prog; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2815 $as_echo_n "(cached) " >&6
2817 if test -n "$ac_ct_CC"; then
2818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_ac_ct_CC="$ac_prog"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2838 if test -n "$ac_ct_CC"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2840 $as_echo "$ac_ct_CC" >&6; }
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2847 test -n "$ac_ct_CC" && break
2850 if test "x$ac_ct_CC" = x; then
2853 case $cross_compiling:$ac_tool_warned in
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2857 ac_tool_warned=yes ;;
2864 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2866 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2867 See \
`config.log' for more details" "$LINENO" 5; }
2869 # Provide some information about the compiler.
2870 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2873 for ac_option in --version -v -V -qversion; do
2874 { { ac_try="$ac_compiler $ac_option >&5"
2876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2877 *) ac_try_echo
=$ac_try;;
2879 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2880 $as_echo "$ac_try_echo"; } >&5
2881 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2883 if test -s conftest.err
; then
2885 ... rest of stderr output deleted ...
2886 10q' conftest.err
>conftest.er1
2887 cat conftest.er1
>&5
2889 rm -f conftest.er1 conftest.err
2890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2891 test $ac_status = 0; }
2894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2905 ac_clean_files_save
=$ac_clean_files
2906 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2907 # Try to create an executable without -o first, disregard a.out.
2908 # It will help us diagnose broken compilers, and finding out an intuition
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2911 $as_echo_n "checking whether the C compiler works... " >&6; }
2912 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2914 # The possible output files:
2915 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2918 for ac_file
in $ac_files
2921 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2922 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2927 if { { ac_try
="$ac_link_default"
2929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2933 $as_echo "$ac_try_echo"; } >&5
2934 (eval "$ac_link_default") 2>&5
2936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2937 test $ac_status = 0; }; then :
2938 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2939 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2940 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2941 # so that the user can short-circuit this test for compilers unknown to
2943 for ac_file in $ac_files ''
2945 test -f "$ac_file" || continue
2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2950 # We found the default executable, but exeext='' is most
2954 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2956 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2958 # We set ac_cv_exeext here because the later test for it is not
2959 # safe: cross compilers may not add the suffix if given an `-o'
2960 # argument, so we may need to know it at that point already.
2961 # Even if this section looks crufty: it has the advantage of
2968 test "$ac_cv_exeext" = no && ac_cv_exeext=
2973 if test -z "$ac_file"; then :
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 $as_echo "$as_me: failed program was:" >&5
2977 sed 's
/^
/|
/' conftest.$ac_ext >&5
2979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2981 as_fn_error 77 "C compiler cannot create executables
2982 See \`config.log
' for more details" "$LINENO" 5; }
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2985 $as_echo "yes" >&6; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2988 $as_echo_n "checking for C compiler default output file name... " >&6; }
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2990 $as_echo "$ac_file" >&6; }
2991 ac_exeext=$ac_cv_exeext
2993 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2994 ac_clean_files=$ac_clean_files_save
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2996 $as_echo_n "checking for suffix of executables... " >&6; }
2997 if { { ac_try="$ac_link"
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003 $as_echo "$ac_try_echo"; } >&5
3004 (eval "$ac_link") 2>&5
3006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; }; then :
3008 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3009 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3010 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3012 for ac_file
in conftest.exe conftest conftest.
*; do
3013 test -f "$ac_file" ||
continue
3015 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3016 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3025 See \`config.log' for more details" "$LINENO" 5; }
3027 rm -f conftest conftest
$ac_cv_exeext
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3029 $as_echo "$ac_cv_exeext" >&6; }
3031 rm -f conftest.
$ac_ext
3032 EXEEXT
=$ac_cv_exeext
3034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3035 /* end confdefs.h. */
3040 FILE *f = fopen ("conftest.out", "w");
3041 return ferror (f) || fclose (f) != 0;
3047 ac_clean_files
="$ac_clean_files conftest.out"
3048 # Check that the compiler produces executables we can run. If not, either
3049 # the compiler is broken, or we cross compile.
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3051 $as_echo_n "checking whether we are cross compiling... " >&6; }
3052 if test "$cross_compiling" != yes; then
3053 { { ac_try
="$ac_link"
3055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059 $as_echo "$ac_try_echo"; } >&5
3060 (eval "$ac_link") 2>&5
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }
3064 if { ac_try='./conftest$ac_cv_exeext'
3065 { { case "(($ac_try" in
3066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3067 *) ac_try_echo
=$ac_try;;
3069 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070 $as_echo "$ac_try_echo"; } >&5
3071 (eval "$ac_try") 2>&5
3073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074 test $ac_status = 0; }; }; then
3077 if test "$cross_compiling" = maybe
; then
3080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082 as_fn_error $?
"cannot run C compiled programs.
3083 If you meant to cross compile, use \`--host'.
3084 See \`config.log' for more details" "$LINENO" 5; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3089 $as_echo "$cross_compiling" >&6; }
3091 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3092 ac_clean_files
=$ac_clean_files_save
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3094 $as_echo_n "checking for suffix of object files... " >&6; }
3095 if ${ac_cv_objext+:} false
; then :
3096 $as_echo_n "(cached) " >&6
3098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h. */
3109 rm -f conftest.o conftest.obj
3110 if { { ac_try
="$ac_compile"
3112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_compile") 2>&5
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }; then :
3121 for ac_file in conftest.o conftest.obj conftest.*; do
3122 test -f "$ac_file" || continue;
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3125 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3130 $as_echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3136 See \
`config.log' for more details" "$LINENO" 5; }
3138 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3141 $as_echo "$ac_cv_objext" >&6; }
3142 OBJEXT=$ac_cv_objext
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3145 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3146 if ${ac_cv_c_compiler_gnu+:} false; then :
3147 $as_echo_n "(cached) " >&6
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3163 if ac_fn_c_try_compile "$LINENO"; then :
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3173 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3174 if test $ac_compiler_gnu = yes; then
3179 ac_test_CFLAGS=${CFLAGS+set}
3180 ac_save_CFLAGS=$CFLAGS
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3182 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3183 if ${ac_cv_prog_cc_g+:} false; then :
3184 $as_echo_n "(cached) " >&6
3186 ac_save_c_werror_flag=$ac_c_werror_flag
3187 ac_c_werror_flag=yes
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3201 if ac_fn_c_try_compile "$LINENO"; then :
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3216 if ac_fn_c_try_compile "$LINENO"; then :
3219 ac_c_werror_flag=$ac_save_c_werror_flag
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3232 if ac_fn_c_try_compile "$LINENO"; then :
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_c_werror_flag=$ac_save_c_werror_flag
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3243 $as_echo "$ac_cv_prog_cc_g" >&6; }
3244 if test "$ac_test_CFLAGS" = set; then
3245 CFLAGS=$ac_save_CFLAGS
3246 elif test $ac_cv_prog_cc_g = yes; then
3247 if test "$GCC" = yes; then
3253 if test "$GCC" = yes; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3260 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3261 if ${ac_cv_prog_cc_c89+:} false; then :
3262 $as_echo_n "(cached) " >&6
3264 ac_cv_prog_cc_c89=no
3266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267 /* end confdefs.h. */
3270 #include <sys/types.h>
3271 #include <sys/stat.h>
3272 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3273 struct buf { int x; };
3274 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3275 static char *e (p, i)
3281 static char *f (char * (*g) (char **, int), char **p, ...)
3286 s = g (p, va_arg (v,int));
3291 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3292 function prototypes and stuff, but not '\xHH' hex character constants.
3293 These don't provoke an error unfortunately, instead are silently treated
3294 as 'x'. The following induces an error, until -std is added to get
3295 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3296 array size at least. It's necessary to write '\x00'==0 to get something
3297 that's true only with -std. */
3298 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3300 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301 inside strings and character constants. */
3303 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3305 int test (int i, double x);
3306 struct s1 {int (*f) (int a);};
3307 struct s2 {int (*f) (double a);};
3308 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3319 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3322 CC="$ac_save_CC $ac_arg"
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324 ac_cv_prog_cc_c89=$ac_arg
3326 rm -f core conftest.err conftest.$ac_objext
3327 test "x$ac_cv_prog_cc_c89" != "xno" && break
3329 rm -f conftest.$ac_ext
3334 case "x$ac_cv_prog_cc_c89" in
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3337 $as_echo "none needed" >&6; } ;;
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3340 $as_echo "unsupported" >&6; } ;;
3342 CC="$CC $ac_cv_prog_cc_c89"
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3344 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3346 if test "x$ac_cv_prog_cc_c89" != xno; then :
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3362 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3363 # On Suns, sometimes $CPP names a directory.
3364 if test -n "$CPP" && test -d "$CPP"; then
3367 if test -z "$CPP"; then
3368 if ${ac_cv_prog_CPP+:} false; then :
3369 $as_echo_n "(cached) " >&6
3371 # Double quotes because CPP needs to be expanded
3372 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3375 for ac_c_preproc_warn_flag in '' yes
3377 # Use a header file that comes with gcc, so configuring glibc
3378 # with a fresh cross-compiler works.
3379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3380 # <limits.h> exists even on freestanding compilers.
3381 # On the NeXT, cc -E runs the code through the compiler's parser,
3382 # not just through cpp. "Syntax error" is here to catch this case.
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3386 # include <limits.h>
3388 # include <assert.h>
3392 if ac_fn_c_try_cpp "$LINENO"; then :
3395 # Broken: fails on valid input.
3398 rm -f conftest.err conftest.i conftest.$ac_ext
3400 # OK, works on sane cases. Now check whether nonexistent headers
3401 # can be detected and how.
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3404 #include <ac_nonexistent.h>
3406 if ac_fn_c_try_cpp "$LINENO"; then :
3407 # Broken: success on invalid input.
3410 # Passes both tests.
3414 rm -f conftest.err conftest.i conftest.$ac_ext
3417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3418 rm -f conftest.i conftest.err conftest.
$ac_ext
3419 if $ac_preproc_ok; then :
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3432 $as_echo "$CPP" >&6; }
3434 for ac_c_preproc_warn_flag
in '' yes
3436 # Use a header file that comes with gcc, so configuring glibc
3437 # with a fresh cross-compiler works.
3438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3439 # <limits.h> exists even on freestanding compilers.
3440 # On the NeXT, cc -E runs the code through the compiler's parser,
3441 # not just through cpp. "Syntax error" is here to catch this case.
3442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3445 # include <limits.h>
3447 # include <assert.h>
3451 if ac_fn_c_try_cpp
"$LINENO"; then :
3454 # Broken: fails on valid input.
3457 rm -f conftest.err conftest.i conftest.
$ac_ext
3459 # OK, works on sane cases. Now check whether nonexistent headers
3460 # can be detected and how.
3461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3463 #include <ac_nonexistent.h>
3465 if ac_fn_c_try_cpp
"$LINENO"; then :
3466 # Broken: success on invalid input.
3469 # Passes both tests.
3473 rm -f conftest.err conftest.i conftest.
$ac_ext
3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477 rm -f conftest.i conftest.err conftest.
$ac_ext
3478 if $ac_preproc_ok; then :
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3484 See \`config.log' for more details" "$LINENO" 5; }
3488 ac_cpp
='$CPP $CPPFLAGS'
3489 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3494 ac_cpp
='$CXXCPP $CPPFLAGS'
3495 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3498 if test -z "$CXX"; then
3499 if test -n "$CCC"; then
3502 if test -n "$ac_tool_prefix"; then
3503 for ac_prog
in clang
++ c
++ g
++
3505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3506 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_prog_CXX+:} false
; then :
3510 $as_echo_n "(cached) " >&6
3512 if test -n "$CXX"; then
3513 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3519 test -z "$as_dir" && as_dir
=.
3520 for ac_exec_ext
in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 if test -n "$CXX"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3535 $as_echo "$CXX" >&6; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3542 test -n "$CXX" && break
3545 if test -z "$CXX"; then
3547 for ac_prog
in clang
++ c
++ g
++
3549 # Extract the first word of "$ac_prog", so it can be a program name with args.
3550 set dummy
$ac_prog; ac_word
=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3554 $as_echo_n "(cached) " >&6
3556 if test -n "$ac_ct_CXX"; then
3557 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3563 test -z "$as_dir" && as_dir
=.
3564 for ac_exec_ext
in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3577 if test -n "$ac_ct_CXX"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3579 $as_echo "$ac_ct_CXX" >&6; }
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3586 test -n "$ac_ct_CXX" && break
3589 if test "x$ac_ct_CXX" = x
; then
3592 case $cross_compiling:$ac_tool_warned in
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3596 ac_tool_warned
=yes ;;
3604 # Provide some information about the compiler.
3605 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3608 for ac_option
in --version -v -V -qversion; do
3609 { { ac_try
="$ac_compiler $ac_option >&5"
3611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3618 if test -s conftest.err; then
3620 ... rest of stderr output deleted ...
3621 10q' conftest.err >conftest.er1
3622 cat conftest.er1 >&5
3624 rm -f conftest.er1 conftest.err
3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626 test $ac_status = 0; }
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3630 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3631 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3632 $as_echo_n "(cached) " >&6
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3648 if ac_fn_cxx_try_compile "$LINENO"; then :
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3658 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3659 if test $ac_compiler_gnu = yes; then
3664 ac_test_CXXFLAGS=${CXXFLAGS+set}
3665 ac_save_CXXFLAGS=$CXXFLAGS
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3667 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3668 if ${ac_cv_prog_cxx_g+:} false; then :
3669 $as_echo_n "(cached) " >&6
3671 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3672 ac_cxx_werror_flag=yes
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3686 if ac_fn_cxx_try_compile "$LINENO"; then :
3687 ac_cv_prog_cxx_g=yes
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3701 if ac_fn_cxx_try_compile "$LINENO"; then :
3704 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3717 if ac_fn_cxx_try_compile "$LINENO"; then :
3718 ac_cv_prog_cxx_g=yes
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3728 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3729 if test "$ac_test_CXXFLAGS" = set; then
3730 CXXFLAGS=$ac_save_CXXFLAGS
3731 elif test $ac_cv_prog_cxx_g = yes; then
3732 if test "$GXX" = yes; then
3738 if test "$GXX" = yes; then
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 if test -n "$ac_tool_prefix"; then
3751 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3752 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if ${ac_cv_prog_RANLIB+:} false; then :
3756 $as_echo_n "(cached) " >&6
3758 if test -n "$RANLIB"; then
3759 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3768 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 RANLIB=$ac_cv_prog_RANLIB
3779 if test -n "$RANLIB"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3781 $as_echo "$RANLIB" >&6; }
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3789 if test -z "$ac_cv_prog_RANLIB"; then
3790 ac_ct_RANLIB=$RANLIB
3791 # Extract the first word of "ranlib", so it can be a program name with args.
3792 set dummy ranlib; ac_word=$2
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794 $as_echo_n "checking for $ac_word... " >&6; }
3795 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3796 $as_echo_n "(cached) " >&6
3798 if test -n "$ac_ct_RANLIB"; then
3799 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3808 ac_cv_prog_ac_ct_RANLIB="ranlib"
3809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3819 if test -n "$ac_ct_RANLIB"; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3821 $as_echo "$ac_ct_RANLIB" >&6; }
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3827 if test "x$ac_ct_RANLIB" = x; then
3830 case $cross_compiling:$ac_tool_warned in
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3834 ac_tool_warned=yes ;;
3836 RANLIB=$ac_ct_RANLIB
3839 RANLIB="$ac_cv_prog_RANLIB"
3842 # Extract the first word of "ar", so it can be a program name with args.
3843 set dummy ar; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if ${ac_cv_path_AR+:} false; then :
3847 $as_echo_n "(cached) " >&6
3851 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 if test -n "$AR"; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3875 $as_echo "$AR" >&6; }
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878 $as_echo "no" >&6; }
3882 # Extract the first word of "chmod", so it can be a program name with args.
3883 set dummy chmod; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if ${ac_cv_path_CHMOD+:} false; then :
3887 $as_echo_n "(cached) " >&6
3891 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3901 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 CHMOD=$ac_cv_path_CHMOD
3913 if test -n "$CHMOD"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3915 $as_echo "$CHMOD" >&6; }
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3922 # Extract the first word of "gzip", so it can be a program name with args.
3923 set dummy gzip; ac_word=$2
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925 $as_echo_n "checking for $ac_word... " >&6; }
3926 if ${ac_cv_path_GZIP+:} false; then :
3927 $as_echo_n "(cached) " >&6
3931 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3941 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 GZIP=$ac_cv_path_GZIP
3953 if test -n "$GZIP"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3955 $as_echo "$GZIP" >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3962 # Extract the first word of "ld", so it can be a program name with args.
3963 set dummy ld; ac_word=$2
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 $as_echo_n "checking for $ac_word... " >&6; }
3966 if ${ac_cv_path_LD+:} false; then :
3967 $as_echo_n "(cached) " >&6
3971 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3981 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 if test -n "$LD"; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3995 $as_echo "$LD" >&6; }
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
4002 # Extract the first word of "ln", so it can be a program name with args.
4003 set dummy ln; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_path_LN+:} false; then :
4007 $as_echo_n "(cached) " >&6
4011 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4021 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 if test -n "$LN"; then
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4035 $as_echo "$LN" >&6; }
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4042 # Extract the first word of "mkdir", so it can be a program name with args.
4043 set dummy mkdir; ac_word=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_path_MKDIR+:} false; then :
4047 $as_echo_n "(cached) " >&6
4051 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4061 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 MKDIR=$ac_cv_path_MKDIR
4073 if test -n "$MKDIR"; then
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4075 $as_echo "$MKDIR" >&6; }
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4082 # Extract the first word of "mv", so it can be a program name with args.
4083 set dummy mv; ac_word=$2
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085 $as_echo_n "checking for $ac_word... " >&6; }
4086 if ${ac_cv_path_MV+:} false; then :
4087 $as_echo_n "(cached) " >&6
4091 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4101 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 if test -n "$MV"; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4115 $as_echo "$MV" >&6; }
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4122 # Extract the first word of "rm", so it can be a program name with args.
4123 set dummy rm; ac_word=$2
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if ${ac_cv_path_RM+:} false; then :
4127 $as_echo_n "(cached) " >&6
4131 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 if test -n "$RM"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4155 $as_echo "$RM" >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4162 # Extract the first word of "rmdir", so it can be a program name with args.
4163 set dummy rmdir; ac_word=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if ${ac_cv_path_RMDIR+:} false; then :
4167 $as_echo_n "(cached) " >&6
4171 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 RMDIR=$ac_cv_path_RMDIR
4193 if test -n "$RMDIR"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4195 $as_echo "$RMDIR" >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4202 # Extract the first word of "sed", so it can be a program name with args.
4203 set dummy sed; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if ${ac_cv_path_SED+:} false; then :
4207 $as_echo_n "(cached) " >&6
4211 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 if test -n "$SED"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4235 $as_echo "$SED" >&6; }
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4242 # Extract the first word of "xdg-open", so it can be a program name with args.
4243 set dummy xdg-open; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_path_XDGOPEN+:} false; then :
4247 $as_echo_n "(cached) " >&6
4251 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 XDGOPEN=$ac_cv_path_XDGOPEN
4273 if test -n "$XDGOPEN"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4275 $as_echo "$XDGOPEN" >&6; }
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4282 if test "x$XDGOPEN" = x; then
4283 CUPS_HTMLVIEW="htmlview"
4285 CUPS_HTMLVIEW="$XDGOPEN"
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4290 $as_echo_n "checking for install-sh script... " >&6; }
4291 INSTALL="`pwd`/install-sh"
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4294 $as_echo "using $INSTALL" >&6; }
4296 if test "x$AR" = x; then
4297 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4299 if test "x$CC" = x; then
4300 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4304 # Check whether --enable-static was given.
4305 if test "${enable_static+set}" = set; then :
4306 enableval=$enable_static;
4310 if test x$enable_static = xyes; then
4311 echo Installing static libraries...
4312 INSTALLSTATIC="installstatic"
4317 if test -n "$ac_tool_prefix"; then
4318 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4319 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if ${ac_cv_path_PKGCONFIG+:} false; then :
4323 $as_echo_n "(cached) " >&6
4327 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 PKGCONFIG=$ac_cv_path_PKGCONFIG
4349 if test -n "$PKGCONFIG"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4351 $as_echo "$PKGCONFIG" >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4359 if test -z "$ac_cv_path_PKGCONFIG"; then
4360 ac_pt_PKGCONFIG=$PKGCONFIG
4361 # Extract the first word of "pkg-config", so it can be a program name with args.
4362 set dummy pkg-config; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 case $ac_pt_PKGCONFIG in
4370 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4392 if test -n "$ac_pt_PKGCONFIG"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4394 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 $as_echo "no" >&6; }
4400 if test "x$ac_pt_PKGCONFIG" = x; then
4403 case $cross_compiling:$ac_tool_warned in
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4407 ac_tool_warned=yes ;;
4409 PKGCONFIG=$ac_pt_PKGCONFIG
4412 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4418 $as_echo_n "checking for library containing abs... " >&6; }
4419 if ${ac_cv_search_abs+:} false; then :
4420 $as_echo_n "(cached) " >&6
4422 ac_func_search_save_LIBS=$LIBS
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4426 /* Override any GCC internal prototype to avoid an error.
4427 Use char because int might match the return type of a GCC
4428 builtin and then its argument prototype would still apply. */
4441 for ac_lib in '' m; do
4442 if test -z "$ac_lib"; then
4443 ac_res="none required"
4446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4448 if ac_fn_c_try_link "$LINENO"; then :
4449 ac_cv_search_abs=$ac_res
4451 rm -f core conftest.err conftest.$ac_objext \
4453 if ${ac_cv_search_abs+:} false; then :
4457 if ${ac_cv_search_abs+:} false; then :
4463 LIBS=$ac_func_search_save_LIBS
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4466 $as_echo "$ac_cv_search_abs" >&6; }
4467 ac_res=$ac_cv_search_abs
4468 if test "$ac_res" != no; then :
4469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4470 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4475 $as_echo_n "checking for library containing crypt... " >&6; }
4476 if ${ac_cv_search_crypt+:} false; then :
4477 $as_echo_n "(cached) " >&6
4479 ac_func_search_save_LIBS=$LIBS
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4483 /* Override any GCC internal prototype to avoid an error.
4484 Use char because int might match the return type of a GCC
4485 builtin and then its argument prototype would still apply. */
4498 for ac_lib in '' crypt; do
4499 if test -z "$ac_lib"; then
4500 ac_res="none required"
4503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4505 if ac_fn_c_try_link "$LINENO"; then :
4506 ac_cv_search_crypt=$ac_res
4508 rm -f core conftest.err conftest.$ac_objext \
4510 if ${ac_cv_search_crypt+:} false; then :
4514 if ${ac_cv_search_crypt+:} false; then :
4517 ac_cv_search_crypt=no
4520 LIBS=$ac_func_search_save_LIBS
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4523 $as_echo "$ac_cv_search_crypt" >&6; }
4524 ac_res=$ac_cv_search_crypt
4525 if test "$ac_res" != no; then :
4526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4531 $as_echo_n "checking for library containing fmod... " >&6; }
4532 if ${ac_cv_search_fmod+:} false; then :
4533 $as_echo_n "(cached) " >&6
4535 ac_func_search_save_LIBS=$LIBS
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4539 /* Override any GCC internal prototype to avoid an error.
4540 Use char because int might match the return type of a GCC
4541 builtin and then its argument prototype would still apply. */
4554 for ac_lib in '' m; do
4555 if test -z "$ac_lib"; then
4556 ac_res="none required"
4559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4561 if ac_fn_c_try_link "$LINENO"; then :
4562 ac_cv_search_fmod=$ac_res
4564 rm -f core conftest.err conftest.$ac_objext \
4566 if ${ac_cv_search_fmod+:} false; then :
4570 if ${ac_cv_search_fmod+:} false; then :
4573 ac_cv_search_fmod=no
4576 LIBS=$ac_func_search_save_LIBS
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4579 $as_echo "$ac_cv_search_fmod" >&6; }
4580 ac_res=$ac_cv_search_fmod
4581 if test "$ac_res" != no; then :
4582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4587 $as_echo_n "checking for library containing getspent... " >&6; }
4588 if ${ac_cv_search_getspent+:} false; then :
4589 $as_echo_n "(cached) " >&6
4591 ac_func_search_save_LIBS=$LIBS
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4595 /* Override any GCC internal prototype to avoid an error.
4596 Use char because int might match the return type of a GCC
4597 builtin and then its argument prototype would still apply. */
4610 for ac_lib in '' sec gen; do
4611 if test -z "$ac_lib"; then
4612 ac_res="none required"
4615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4617 if ac_fn_c_try_link "$LINENO"; then :
4618 ac_cv_search_getspent=$ac_res
4620 rm -f core conftest.err conftest.$ac_objext \
4622 if ${ac_cv_search_getspent+:} false; then :
4626 if ${ac_cv_search_getspent+:} false; then :
4629 ac_cv_search_getspent=no
4632 LIBS=$ac_func_search_save_LIBS
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4635 $as_echo "$ac_cv_search_getspent" >&6; }
4636 ac_res=$ac_cv_search_getspent
4637 if test "$ac_res" != no; then :
4638 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4644 # Check whether --enable-mallinfo was given.
4645 if test "${enable_mallinfo+set}" = set; then :
4646 enableval=$enable_mallinfo;
4650 if test x$enable_mallinfo = xyes; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4654 $as_echo_n "checking for library containing mallinfo... " >&6; }
4655 if ${ac_cv_search_mallinfo+:} false; then :
4656 $as_echo_n "(cached) " >&6
4658 ac_func_search_save_LIBS=$LIBS
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4662 /* Override any GCC internal prototype to avoid an error.
4663 Use char because int might match the return type of a GCC
4664 builtin and then its argument prototype would still apply. */
4677 for ac_lib in '' malloc; do
4678 if test -z "$ac_lib"; then
4679 ac_res="none required"
4682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4684 if ac_fn_c_try_link "$LINENO"; then :
4685 ac_cv_search_mallinfo=$ac_res
4687 rm -f core conftest.err conftest.$ac_objext \
4689 if ${ac_cv_search_mallinfo+:} false; then :
4693 if ${ac_cv_search_mallinfo+:} false; then :
4696 ac_cv_search_mallinfo=no
4699 LIBS=$ac_func_search_save_LIBS
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4702 $as_echo "$ac_cv_search_mallinfo" >&6; }
4703 ac_res=$ac_cv_search_mallinfo
4704 if test "$ac_res" != no; then :
4705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4706 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4716 # Check whether --enable-libpaper was given.
4717 if test "${enable_libpaper+set}" = set; then :
4718 enableval=$enable_libpaper;
4722 if test x$enable_libpaper = xyes; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4724 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4725 if ${ac_cv_lib_paper_systempapername+:} false; then :
4726 $as_echo_n "(cached) " >&6
4728 ac_check_lib_save_LIBS=$LIBS
4729 LIBS="-lpaper $LIBS"
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4733 /* Override any GCC internal prototype to avoid an error.
4734 Use char because int might match the return type of a GCC
4735 builtin and then its argument prototype would still apply. */
4739 char systempapername ();
4743 return systempapername ();
4748 if ac_fn_c_try_link "$LINENO"; then :
4749 ac_cv_lib_paper_systempapername=yes
4751 ac_cv_lib_paper_systempapername=no
4753 rm -f core conftest.err conftest.$ac_objext \
4754 conftest$ac_exeext conftest.$ac_ext
4755 LIBS=$ac_check_lib_save_LIBS
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4758 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4759 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4760 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4774 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4775 if ${ac_cv_path_GREP+:} false; then :
4776 $as_echo_n "(cached) " >&6
4778 if test -z "$GREP"; then
4779 ac_path_GREP_found=false
4780 # Loop through the user's path and test for each of PROGNAME-LIST
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4785 test -z "$as_dir" && as_dir=.
4786 for ac_prog in grep ggrep; do
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4789 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4790 # Check for GNU ac_path_GREP and select it if it is found.
4791 # Check for GNU $ac_path_GREP
4792 case `"$ac_path_GREP" --version 2>&1` in
4794 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4797 $as_echo_n 0123456789 >"conftest.in"
4800 cat "conftest.in" "conftest.in" >"conftest.tmp"
4801 mv "conftest.tmp" "conftest.in"
4802 cp "conftest.in" "conftest.nl"
4803 $as_echo 'GREP' >> "conftest.nl"
4804 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4806 as_fn_arith $ac_count + 1 && ac_count=$as_val
4807 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4808 # Best one so far, save it but keep looking for a better one
4809 ac_cv_path_GREP="$ac_path_GREP"
4810 ac_path_GREP_max=$ac_count
4812 # 10*(2^10) chars as input seems more than enough
4813 test $ac_count -gt 10 && break
4815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4818 $ac_path_GREP_found && break 3
4823 if test -z "$ac_cv_path_GREP"; then
4824 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4827 ac_cv_path_GREP=$GREP
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4832 $as_echo "$ac_cv_path_GREP" >&6; }
4833 GREP="$ac_cv_path_GREP"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4837 $as_echo_n "checking for egrep... " >&6; }
4838 if ${ac_cv_path_EGREP+:} false; then :
4839 $as_echo_n "(cached) " >&6
4841 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4842 then ac_cv_path_EGREP="$GREP -E"
4844 if test -z "$EGREP"; then
4845 ac_path_EGREP_found=false
4846 # Loop through the user's path and test for each of PROGNAME-LIST
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4851 test -z "$as_dir" && as_dir=.
4852 for ac_prog in egrep; do
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4855 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4856 # Check for GNU ac_path_EGREP and select it if it is found.
4857 # Check for GNU $ac_path_EGREP
4858 case `"$ac_path_EGREP" --version 2>&1` in
4860 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4863 $as_echo_n 0123456789 >"conftest.in"
4866 cat "conftest.in" "conftest.in" >"conftest.tmp"
4867 mv "conftest.tmp" "conftest.in"
4868 cp "conftest.in" "conftest.nl"
4869 $as_echo 'EGREP' >> "conftest.nl"
4870 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4872 as_fn_arith $ac_count + 1 && ac_count=$as_val
4873 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4874 # Best one so far, save it but keep looking for a better one
4875 ac_cv_path_EGREP="$ac_path_EGREP"
4876 ac_path_EGREP_max=$ac_count
4878 # 10*(2^10) chars as input seems more than enough
4879 test $ac_count -gt 10 && break
4881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4884 $ac_path_EGREP_found && break 3
4889 if test -z "$ac_cv_path_EGREP"; then
4890 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4893 ac_cv_path_EGREP=$EGREP
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4899 $as_echo "$ac_cv_path_EGREP" >&6; }
4900 EGREP="$ac_cv_path_EGREP"
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4904 $as_echo_n "checking for ANSI C header files... " >&6; }
4905 if ${ac_cv_header_stdc+:} false; then :
4906 $as_echo_n "(cached) " >&6
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 ac_cv_header_stdc=yes
4926 ac_cv_header_stdc=no
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 if test $ac_cv_header_stdc = yes; then
4931 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4938 $EGREP "memchr" >/dev/null 2>&1; then :
4941 ac_cv_header_stdc=no
4947 if test $ac_cv_header_stdc = yes; then
4948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4955 $EGREP "free" >/dev/null 2>&1; then :
4958 ac_cv_header_stdc=no
4964 if test $ac_cv_header_stdc = yes; then
4965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4966 if test "$cross_compiling" = yes; then :
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4973 #if ((' ' & 0x0FF) == 0x020)
4974 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4975 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4977 # define ISLOWER(c) \
4978 (('a' <= (c) && (c) <= 'i') \
4979 || ('j' <= (c) && (c) <= 'r') \
4980 || ('s' <= (c) && (c) <= 'z'))
4981 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4984 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4989 for (i = 0; i < 256; i++)
4990 if (XOR (islower (i), ISLOWER (i))
4991 || toupper (i) != TOUPPER (i))
4996 if ac_fn_c_try_run "$LINENO"; then :
4999 ac_cv_header_stdc=no
5001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5002 conftest.$ac_objext conftest.beam conftest.$ac_ext
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5008 $as_echo "$ac_cv_header_stdc" >&6; }
5009 if test $ac_cv_header_stdc = yes; then
5011 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5015 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5016 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5017 inttypes.h stdint.h unistd.h
5019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5020 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5022 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5023 cat >>confdefs.h <<_ACEOF
5024 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5032 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5033 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5034 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
5039 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5040 if test "x$ac_cv_header_crypt_h" = xyes; then :
5041 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5046 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5047 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5048 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5053 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5054 if test "x$ac_cv_header_malloc_h" = xyes; then :
5055 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5060 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5061 if test "x$ac_cv_header_shadow_h" = xyes; then :
5062 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5067 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5068 if test "x$ac_cv_header_stdint_h" = xyes; then :
5069 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
5074 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5075 if test "x$ac_cv_header_string_h" = xyes; then :
5076 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5081 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5082 if test "x$ac_cv_header_strings_h" = xyes; then :
5083 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5088 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5089 if test "x$ac_cv_header_bstring_h" = xyes; then :
5090 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5095 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5096 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5097 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5102 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5103 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5104 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5109 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5110 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5111 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5117 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5118 if test "x$ac_cv_header_iconv_h" = xyes; then :
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5122 $as_echo_n "checking for library containing iconv_open... " >&6; }
5123 if ${ac_cv_search_iconv_open+:} false; then :
5124 $as_echo_n "(cached) " >&6
5126 ac_func_search_save_LIBS=$LIBS
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5130 /* Override any GCC internal prototype to avoid an error.
5131 Use char because int might match the return type of a GCC
5132 builtin and then its argument prototype would still apply. */
5140 return iconv_open ();
5145 for ac_lib in '' iconv; do
5146 if test -z "$ac_lib"; then
5147 ac_res="none required"
5150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5152 if ac_fn_c_try_link "$LINENO"; then :
5153 ac_cv_search_iconv_open=$ac_res
5155 rm -f core conftest.err conftest.$ac_objext \
5157 if ${ac_cv_search_iconv_open+:} false; then :
5161 if ${ac_cv_search_iconv_open+:} false; then :
5164 ac_cv_search_iconv_open=no
5167 LIBS=$ac_func_search_save_LIBS
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5170 $as_echo "$ac_cv_search_iconv_open" >&6; }
5171 ac_res=$ac_cv_search_iconv_open
5172 if test "$ac_res" != no; then :
5173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5174 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5176 SAVELIBS="$SAVELIBS $LIBS"
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5180 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5181 if ${ac_cv_search_libiconv_open+:} false; then :
5182 $as_echo_n "(cached) " >&6
5184 ac_func_search_save_LIBS=$LIBS
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5188 /* Override any GCC internal prototype to avoid an error.
5189 Use char because int might match the return type of a GCC
5190 builtin and then its argument prototype would still apply. */
5194 char libiconv_open ();
5198 return libiconv_open ();
5203 for ac_lib in '' iconv; do
5204 if test -z "$ac_lib"; then
5205 ac_res="none required"
5208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5210 if ac_fn_c_try_link "$LINENO"; then :
5211 ac_cv_search_libiconv_open=$ac_res
5213 rm -f core conftest.err conftest.$ac_objext \
5215 if ${ac_cv_search_libiconv_open+:} false; then :
5219 if ${ac_cv_search_libiconv_open+:} false; then :
5222 ac_cv_search_libiconv_open=no
5225 LIBS=$ac_func_search_save_LIBS
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5228 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5229 ac_res=$ac_cv_search_libiconv_open
5230 if test "$ac_res" != no; then :
5231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5232 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5234 SAVELIBS="$SAVELIBS $LIBS"
5243 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5244 if test "x$ac_cv_header_mxml_h" = xyes; then :
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5247 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5248 if ${ac_cv_search_mmxlNewElement+:} false; then :
5249 $as_echo_n "(cached) " >&6
5251 ac_func_search_save_LIBS=$LIBS
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5255 /* Override any GCC internal prototype to avoid an error.
5256 Use char because int might match the return type of a GCC
5257 builtin and then its argument prototype would still apply. */
5261 char mmxlNewElement ();
5265 return mmxlNewElement ();
5270 for ac_lib in '' mxml; do
5271 if test -z "$ac_lib"; then
5272 ac_res="none required"
5275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5277 if ac_fn_c_try_link "$LINENO"; then :
5278 ac_cv_search_mmxlNewElement=$ac_res
5280 rm -f core conftest.err conftest.$ac_objext \
5282 if ${ac_cv_search_mmxlNewElement+:} false; then :
5286 if ${ac_cv_search_mmxlNewElement+:} false; then :
5289 ac_cv_search_mmxlNewElement=no
5292 LIBS=$ac_func_search_save_LIBS
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5295 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5296 ac_res=$ac_cv_search_mmxlNewElement
5297 if test "$ac_res" != no; then :
5298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5299 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5310 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5311 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5312 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5317 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5318 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5319 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5324 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5325 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5326 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5331 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5332 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5333 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5338 for ac_func in statfs statvfs
5340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5341 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5342 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5343 cat >>confdefs.h <<_ACEOF
5344 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5351 for ac_func in strdup strlcat strlcpy
5353 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5354 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5355 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5356 cat >>confdefs.h <<_ACEOF
5357 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5363 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5364 echo Forcing snprintf emulation for HP-UX.
5366 for ac_func in snprintf vsnprintf
5368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5370 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5371 cat >>confdefs.h <<_ACEOF
5372 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5380 for ac_func in random lrand48 arc4random
5382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5383 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5384 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5385 cat >>confdefs.h <<_ACEOF
5386 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5393 for ac_func in geteuid
5395 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5396 if test "x$ac_cv_func_geteuid" = xyes; then :
5397 cat >>confdefs.h <<_ACEOF
5398 #define HAVE_GETEUID 1
5405 for ac_func in setpgid
5407 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5408 if test "x$ac_cv_func_setpgid" = xyes; then :
5409 cat >>confdefs.h <<_ACEOF
5410 #define HAVE_SETPGID 1
5417 for ac_func in vsyslog
5419 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5420 if test "x$ac_cv_func_vsyslog" = xyes; then :
5421 cat >>confdefs.h <<_ACEOF
5422 #define HAVE_VSYSLOG 1
5429 case "$host_os_name" in
5431 # Do not use sigset on Linux or GNU HURD
5434 # Use sigset on other platforms, if available
5435 for ac_func in sigset
5437 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5438 if test "x$ac_cv_func_sigset" = xyes; then :
5439 cat >>confdefs.h <<_ACEOF
5440 #define HAVE_SIGSET 1
5449 for ac_func in sigaction
5451 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5452 if test "x$ac_cv_func_sigaction" = xyes; then :
5453 cat >>confdefs.h <<_ACEOF
5454 #define HAVE_SIGACTION 1
5461 for ac_func in waitpid wait3
5463 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5464 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5465 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5466 cat >>confdefs.h <<_ACEOF
5467 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5474 for ac_func in posix_spawn
5476 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5477 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5478 cat >>confdefs.h <<_ACEOF
5479 #define HAVE_POSIX_SPAWN 1
5486 for ac_func in getgrouplist
5488 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5489 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5490 cat >>confdefs.h <<_ACEOF
5491 #define HAVE_GETGROUPLIST 1
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5499 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5507 int o = t.tm_gmtoff;
5512 if ac_fn_c_try_compile "$LINENO"; then :
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5514 $as_echo "yes" >&6; }
5515 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5524 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 #include <sys/stat.h>
5537 if ac_fn_c_try_compile "$LINENO"; then :
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5540 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 for ac_func in removefile
5550 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5551 if test "x$ac_cv_func_removefile" = xyes; then :
5552 cat >>confdefs.h <<_ACEOF
5553 #define HAVE_REMOVEFILE 1
5560 # Check whether --enable-libusb was given.
5561 if test "${enable_libusb+set}" = set; then :
5562 enableval=$enable_libusb;
5571 if test "x$PKGCONFIG" != x; then
5572 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5574 $as_echo_n "checking for libusb-1.0... " >&6; }
5575 if $PKGCONFIG --exists libusb-1.0; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5577 $as_echo "yes" >&6; }
5578 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5580 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5581 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5582 USBQUIRKS="\$(DATADIR)/usb"
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 $as_echo "no" >&6; }
5586 if test x$enable_libusb = xyes; then
5587 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5591 elif test x$enable_libusb = xyes; then
5592 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5595 # Check whether --enable-tcp_wrappers was given.
5596 if test "${enable_tcp_wrappers+set}" = set; then :
5597 enableval=$enable_tcp_wrappers;
5604 if test x$enable_tcp_wrappers = xyes; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5606 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5607 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5608 $as_echo_n "(cached) " >&6
5610 ac_check_lib_save_LIBS=$LIBS
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5615 /* Override any GCC internal prototype to avoid an error.
5616 Use char because int might match the return type of a GCC
5617 builtin and then its argument prototype would still apply. */
5621 char hosts_access ();
5625 return hosts_access ();
5630 if ac_fn_c_try_link "$LINENO"; then :
5631 ac_cv_lib_wrap_hosts_access=yes
5633 ac_cv_lib_wrap_hosts_access=no
5635 rm -f core conftest.err conftest.$ac_objext \
5636 conftest$ac_exeext conftest.$ac_ext
5637 LIBS=$ac_check_lib_save_LIBS
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5640 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5641 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5643 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5644 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5645 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5657 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5658 if test "x$ac_cv_header_zlib_h" = xyes; then :
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5660 $as_echo_n "checking for gzgets in -lz... " >&6; }
5661 if ${ac_cv_lib_z_gzgets+:} false; then :
5662 $as_echo_n "(cached) " >&6
5664 ac_check_lib_save_LIBS=$LIBS
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5669 /* Override any GCC internal prototype to avoid an error.
5670 Use char because int might match the return type of a GCC
5671 builtin and then its argument prototype would still apply. */
5684 if ac_fn_c_try_link "$LINENO"; then :
5685 ac_cv_lib_z_gzgets=yes
5687 ac_cv_lib_z_gzgets=no
5689 rm -f core conftest.err conftest.$ac_objext \
5690 conftest$ac_exeext conftest.$ac_ext
5691 LIBS=$ac_check_lib_save_LIBS
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5694 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5695 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5696 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5701 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5702 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5703 $as_echo_n "(cached) " >&6
5705 ac_check_lib_save_LIBS=$LIBS
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5710 /* Override any GCC internal prototype to avoid an error.
5711 Use char because int might match the return type of a GCC
5712 builtin and then its argument prototype would still apply. */
5716 char inflateCopy ();
5720 return inflateCopy ();
5725 if ac_fn_c_try_link "$LINENO"; then :
5726 ac_cv_lib_z_inflateCopy=yes
5728 ac_cv_lib_z_inflateCopy=no
5730 rm -f core conftest.err conftest.$ac_objext \
5731 conftest$ac_exeext conftest.$ac_ext
5732 LIBS=$ac_check_lib_save_LIBS
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5735 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5736 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5737 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5741 if test "x$GZIP" != z; then
5752 case $host_os_name in
5770 # Check whether --enable-acl was given.
5771 if test "${enable_acl+set}" = set; then :
5772 enableval=$enable_acl;
5775 if test "x$enable_acl" != xno; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5777 $as_echo_n "checking for library containing acl_init... " >&6; }
5778 if ${ac_cv_search_acl_init+:} false; then :
5779 $as_echo_n "(cached) " >&6
5781 ac_func_search_save_LIBS=$LIBS
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5785 /* Override any GCC internal prototype to avoid an error.
5786 Use char because int might match the return type of a GCC
5787 builtin and then its argument prototype would still apply. */
5800 for ac_lib in '' acl; do
5801 if test -z "$ac_lib"; then
5802 ac_res="none required"
5805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5807 if ac_fn_c_try_link "$LINENO"; then :
5808 ac_cv_search_acl_init=$ac_res
5810 rm -f core conftest.err conftest.$ac_objext \
5812 if ${ac_cv_search_acl_init+:} false; then :
5816 if ${ac_cv_search_acl_init+:} false; then :
5819 ac_cv_search_acl_init=no
5822 LIBS=$ac_func_search_save_LIBS
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5825 $as_echo "$ac_cv_search_acl_init" >&6; }
5826 ac_res=$ac_cv_search_acl_init
5827 if test "$ac_res" != no; then :
5828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5829 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5833 SERVERLIBS="$SERVERLIBS $LIBS"
5837 # Check whether --enable-dbus was given.
5838 if test "${enable_dbus+set}" = set; then :
5839 enableval=$enable_dbus;
5843 # Check whether --with-dbusdir was given.
5844 if test "${with_dbusdir+set}" = set; then :
5845 withval=$with_dbusdir; DBUSDIR="$withval"
5851 DBUS_NOTIFIERLIBS=""
5853 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5855 $as_echo_n "checking for DBUS... " >&6; }
5856 if $PKGCONFIG --exists dbus-1; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5858 $as_echo "yes" >&6; }
5859 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5861 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5862 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5863 DBUS_NOTIFIER="dbus"
5864 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5866 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5867 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5868 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5869 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5873 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5874 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5875 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5880 if test -d /etc/dbus-1; then
5881 DBUSDIR="/etc/dbus-1"
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5893 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5894 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5895 CUPS_SYSTEM_AUTHKEY=""
5898 case $host_os_name in
5900 BACKLIBS="$BACKLIBS -framework IOKit"
5901 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5902 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5904 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5905 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5906 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5911 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5912 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5913 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5918 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5919 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5920 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5925 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5926 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5927 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5933 for ac_func in SCDynamicStoreCopyComputerName
5935 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5936 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5937 cat >>confdefs.h <<_ACEOF
5938 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5945 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5946 if test "x$ac_cv_header_membership_h" = xyes; then :
5947 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5952 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5953 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5954 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5959 for ac_func in mbr_uid_to_uuid
5961 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5962 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5963 cat >>confdefs.h <<_ACEOF
5964 #define HAVE_MBR_UID_TO_UUID 1
5971 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5972 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5973 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5979 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5980 if test "x$ac_cv_header_notify_h" = xyes; then :
5981 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5986 for ac_func in notify_post
5988 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5989 if test "x$ac_cv_func_notify_post" = xyes; then :
5990 cat >>confdefs.h <<_ACEOF
5991 #define HAVE_NOTIFY_POST 1
5999 # Check whether --with-adminkey was given.
6000 if test "${with_adminkey+set}" = set; then :
6001 withval=$with_adminkey; default_adminkey="$withval"
6003 default_adminkey="default"
6007 # Check whether --with-operkey was given.
6008 if test "${with_operkey+set}" = set; then :
6009 withval=$with_operkey; default_operkey="$withval"
6011 default_operkey="default"
6015 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
6016 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
6018 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
6021 if test "x$default_adminkey" != xdefault; then
6022 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
6023 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
6025 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
6026 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
6029 if test "x$default_operkey" != xdefault; then
6030 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
6032 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
6037 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
6038 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
6039 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
6045 if test $host_os_version -ge 100; then
6046 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6047 if test "x$ac_cv_header_sandbox_h" = xyes; then :
6048 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
6054 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
6055 # Broken public headers in 10.7.x...
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
6057 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
6058 if test -f /usr/local/include/sandbox/private.h; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6060 $as_echo "yes" >&6; }
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6064 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
6068 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
6069 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
6070 $as_echo "#define HAVE_XPC 1" >>confdefs.h
6072 INSTALLXPC="install-xpc"
6076 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
6077 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
6078 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
6087 cat >>confdefs.h <<_ACEOF
6088 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6091 cat >>confdefs.h <<_ACEOF
6092 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6101 # Check whether --with-components was given.
6102 if test "${with_components+set}" = set; then :
6103 withval=$with_components; COMPONENTS="$withval"
6107 cupsimagebase="cupsimage"
6108 LIBCUPSOBJS="\$(COREOBJS) \$(DRIVEROBJS)"
6109 case "$COMPONENTS" in
6111 BUILDDIRS="test filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6115 BUILDDIRS="test locale"
6126 LIBCUPSOBJS="\$(COREOBJS)"
6130 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6140 if test "$prefix" = "NONE"; then
6144 if test "$exec_prefix" = "NONE"; then
6145 if test "$prefix" = "/"; then
6148 exec_prefix="$prefix"
6152 if test "$bindir" = "\${exec_prefix}/bin"; then
6153 bindir="$exec_prefix/bin"
6156 cat >>confdefs.h <<_ACEOF
6157 #define CUPS_BINDIR "$bindir"
6161 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6162 sbindir="$exec_prefix/sbin"
6165 cat >>confdefs.h <<_ACEOF
6166 #define CUPS_SBINDIR "$sbindir"
6170 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6171 sharedstatedir="/usr/com"
6174 if test "$datarootdir" = "\${prefix}/share"; then
6175 if test "$prefix" = "/"; then
6176 datarootdir="/usr/share"
6178 datarootdir="$prefix/share"
6182 if test "$datadir" = "\${prefix}/share"; then
6183 if test "$prefix" = "/"; then
6184 datadir="/usr/share"
6186 datadir="$prefix/share"
6188 elif test "$datadir" = "\${datarootdir}"; then
6189 datadir="$datarootdir"
6192 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6193 includedir="/usr/include"
6196 if test "$localstatedir" = "\${prefix}/var"; then
6197 if test "$prefix" = "/"; then
6198 if test "$host_os_name" = darwin; then
6199 localstatedir="/private/var"
6201 localstatedir="/var"
6204 localstatedir="$prefix/var"
6208 if test "$sysconfdir" = "\${prefix}/etc"; then
6209 if test "$prefix" = "/"; then
6210 if test "$host_os_name" = darwin; then
6211 sysconfdir="/private/etc"
6216 sysconfdir="$prefix/etc"
6220 if test "$libdir" = "\${exec_prefix}/lib"; then
6221 case "$host_os_name" in
6223 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6224 libdir="$exec_prefix/lib64"
6231 # Check whether --with-privateinclude was given.
6232 if test "${with_privateinclude+set}" = set; then :
6233 withval=$with_privateinclude; privateinclude="$withval"
6238 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6239 PRIVATEINCLUDE="$privateinclude/cups"
6248 # Check whether --with-lpdconfig was given.
6249 if test "${with_lpdconfig+set}" = set; then :
6250 withval=$with_lpdconfig; LPDCONFIG="$withval"
6256 if test "x$LPDCONFIG" = x; then
6257 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6258 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6259 elif test "x$XINETD" != x; then
6260 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6264 if test "x$LPDCONFIG" = xoff; then
6265 cat >>confdefs.h <<_ACEOF
6266 #define CUPS_DEFAULT_LPD_CONFIG ""
6270 cat >>confdefs.h <<_ACEOF
6271 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6277 # Check whether --with-smbconfig was given.
6278 if test "${with_smbconfig+set}" = set; then :
6279 withval=$with_smbconfig; SMBCONFIG="$withval"
6285 if test "x$SMBCONFIG" = x; then
6286 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6287 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6289 for dir in /etc /etc/samba /usr/local/etc; do
6290 if test -f $dir/smb.conf; then
6291 SMBCONFIG="samba://$dir/smb.conf"
6298 if test "x$SMBCONFIG" = xoff; then
6299 cat >>confdefs.h <<_ACEOF
6300 #define CUPS_DEFAULT_SMB_CONFIG ""
6304 cat >>confdefs.h <<_ACEOF
6305 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6312 # Check whether --with-cachedir was given.
6313 if test "${with_cachedir+set}" = set; then :
6314 withval=$with_cachedir; cachedir="$withval"
6320 if test x$cachedir = x; then
6321 if test "x$host_os_name" = xdarwin; then
6322 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6324 CUPS_CACHEDIR="$localstatedir/cache/cups"
6327 CUPS_CACHEDIR="$cachedir"
6329 cat >>confdefs.h <<_ACEOF
6330 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6336 CUPS_DATADIR="$datadir/cups"
6337 cat >>confdefs.h <<_ACEOF
6338 #define CUPS_DATADIR "$datadir/cups"
6345 # Check whether --with-icondir was given.
6346 if test "${with_icondir+set}" = set; then :
6347 withval=$with_icondir; icondir="$withval"
6353 if test "x$icondir" = x -a -d /usr/share/icons; then
6354 ICONDIR="/usr/share/icons"
6363 # Check whether --with-menudir was given.
6364 if test "${with_menudir+set}" = set; then :
6365 withval=$with_menudir; menudir="$withval"
6371 if test "x$menudir" = x -a -d /usr/share/applications; then
6372 MENUDIR="/usr/share/applications"
6379 # Documentation files
6381 # Check whether --with-docdir was given.
6382 if test "${with_docdir+set}" = set; then :
6383 withval=$with_docdir; docdir="$withval"
6389 if test x$docdir = x; then
6390 CUPS_DOCROOT="$datadir/doc/cups"
6391 docdir="$datadir/doc/cups"
6393 CUPS_DOCROOT="$docdir"
6396 cat >>confdefs.h <<_ACEOF
6397 #define CUPS_DOCROOT "$docdir"
6404 # Check whether --with-fontpath was given.
6405 if test "${with_fontpath+set}" = set; then :
6406 withval=$with_fontpath; fontpath="$withval"
6412 if test "x$fontpath" = "x"; then
6413 CUPS_FONTPATH="$datadir/cups/fonts"
6415 CUPS_FONTPATH="$fontpath"
6419 cat >>confdefs.h <<_ACEOF
6420 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6425 if test "$localedir" = "\${datarootdir}/locale"; then
6426 case "$host_os_name" in
6427 linux* | gnu* | *bsd* | darwin*)
6428 CUPS_LOCALEDIR="$datarootdir/locale"
6432 # This is the standard System V location...
6433 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6437 CUPS_LOCALEDIR="$localedir"
6440 cat >>confdefs.h <<_ACEOF
6441 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6448 # Check whether --with-logdir was given.
6449 if test "${with_logdir+set}" = set; then :
6450 withval=$with_logdir; logdir="$withval"
6456 if test x$logdir = x; then
6457 CUPS_LOGDIR="$localstatedir/log/cups"
6458 cat >>confdefs.h <<_ACEOF
6459 #define CUPS_LOGDIR "$localstatedir/log/cups"
6463 CUPS_LOGDIR="$logdir"
6465 cat >>confdefs.h <<_ACEOF
6466 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6471 # Longer-term spool data
6472 CUPS_REQUESTS="$localstatedir/spool/cups"
6473 cat >>confdefs.h <<_ACEOF
6474 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6479 # Server executables...
6480 case "$host_os_name" in
6482 # *BSD and Darwin (macOS)
6484 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6488 INSTALL_SYSV="install-sysv"
6489 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6493 cat >>confdefs.h <<_ACEOF
6494 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6500 # Configuration files
6501 CUPS_SERVERROOT="$sysconfdir/cups"
6502 cat >>confdefs.h <<_ACEOF
6503 #define CUPS_SERVERROOT "$sysconfdir/cups"
6508 # Transient run-time state
6510 # Check whether --with-rundir was given.
6511 if test "${with_rundir+set}" = set; then :
6512 withval=$with_rundir; CUPS_STATEDIR="$withval"
6515 case "$host_os_name" in
6518 CUPS_STATEDIR="$CUPS_SERVERROOT"
6522 CUPS_STATEDIR="$localstatedir/run/cups"
6527 cat >>confdefs.h <<_ACEOF
6528 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6534 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6535 # New GNU "standards" break previous ones, so make sure we use
6536 # the right default location for the operating system...
6537 mandir="\${prefix}/man"
6540 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6541 case "$host_os_name" in
6542 darwin* | linux* | gnu* | *bsd*)
6543 # Darwin, macOS, Linux, GNU HURD, and *BSD
6544 mandir="/usr/share/man"
6545 AMANDIR="/usr/share/man"
6546 PMANDIR="/usr/share/man"
6563 case "$host_os_name" in
6572 linux* | gnu* | darwin*)
6573 # Linux, GNU Hurd, and macOS
6599 DSOFLAGS="${DSOFLAGS:=}"
6601 # Check whether --enable-shared was given.
6602 if test "${enable_shared+set}" = set; then :
6603 enableval=$enable_shared;
6608 LIBCUPSBASE="lib$cupsbase"
6610 LIBCUPSSTATIC="lib$cupsbase.a"
6612 if test x$enable_shared != xno; then
6613 case "$host_os_name" in
6615 LIBCUPS="lib$cupsbase.so.2"
6616 if test "x$cupsimagebase" != x; then
6617 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6621 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G"
6623 linux* | gnu* | *bsd*)
6624 LIBCUPS="lib$cupsbase.so.2"
6625 if test "x$cupsimagebase" != x; then
6626 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6630 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared"
6633 LIBCUPS="lib$cupsbase.2.dylib"
6634 if test "x$cupsimagebase" != x; then
6635 LIBCUPSIMAGE="lib$cupsimagebase.2.dylib"
6639 DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc"
6642 echo "Warning: shared libraries may not be supported. Trying -shared"
6643 echo " option with compiler."
6644 LIBCUPS="lib$cupsbase.so.2"
6645 if test "x$cupsimagebase" != x; then
6646 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6650 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared"
6655 LIBCUPS="lib$cupsbase.a"
6656 if test "x$cupsimagebase" != x; then
6657 LIBCUPSIMAGE="lib$cupsimagebase.a"
6671 if test x$enable_shared = xno; then
6672 LINKCUPS="../cups/lib$cupsbase.a"
6673 EXTLINKCUPS="-lcups"
6675 if test "x$cupsimagebase" != x; then
6676 LINKCUPSIMAGE="../cups/lib$cupsimagebase.a"
6677 EXTLINKCUPSIMAGE="-l$cupsimagebase"
6683 LINKCUPS="-l${cupsbase}"
6684 EXTLINKCUPS="-lcups"
6686 if test "x$cupsimagebase" != x; then
6687 LINKCUPSIMAGE="-l$cupsimagebase"
6688 EXTLINKCUPSIMAGE="-l$cupsimagebase"
6702 if test "$DSO" != ":"; then
6703 # When using DSOs the image libraries are linked to libcupsimage.so
6704 # rather than to the executables. This makes things smaller if you
6705 # are using any static libraries, and it also allows us to distribute
6706 # a single DSO rather than a bunch...
6710 # Tell the run-time linkers where to find a DSO. Some platforms
6711 # need this option, even when the library is installed in a
6712 # standard location...
6713 case $host_os_name in
6716 if test $exec_prefix != /usr; then
6717 DSOFLAGS="-R$libdir $DSOFLAGS"
6718 LDFLAGS="$LDFLAGS -R$libdir"
6719 EXPORT_LDFLAGS="-R$libdir"
6724 if test $exec_prefix != /usr; then
6725 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6726 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6727 EXPORT_LDFLAGS="-Wl,-R$libdir"
6731 # Linux, and HURD...
6732 if test $exec_prefix != /usr; then
6733 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6734 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6735 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6749 # Check whether --enable-libtool_unsupported was given.
6750 if test "${enable_libtool_unsupported+set}" = set; then :
6751 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6752 if test x$enable_libtool_unsupported == xyes; then
6753 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6755 LIBTOOL="$enable_libtool_unsupported"
6757 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6758 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6765 if test x$LIBTOOL != x; then
6766 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6767 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6769 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6770 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6772 LIBCUPS="libcups.la"
6773 LIBCUPSSTATIC="libcups.la"
6774 LIBCUPSCGI="libcupscgi.la"
6775 LIBCUPSIMAGE="libcupsimage.la"
6776 LIBCUPSMIME="libcupsmime.la"
6777 LIBCUPSPPDC="libcupsppdc.la"
6779 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
6780 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
6781 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
6783 LINKCUPS="../cups/\$(LIBCUPS)"
6784 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
6808 # Check whether --with-optim was given.
6809 if test "${with_optim+set}" = set; then :
6810 withval=$with_optim; OPTIM="$withval"
6817 # Check whether --enable-debug was given.
6818 if test "${enable_debug+set}" = set; then :
6819 enableval=$enable_debug;
6822 # Check whether --enable-debug_guards was given.
6823 if test "${enable_debug_guards+set}" = set; then :
6824 enableval=$enable_debug_guards;
6827 # Check whether --enable-debug_printfs was given.
6828 if test "${enable_debug_printfs+set}" = set; then :
6829 enableval=$enable_debug_printfs;
6832 # Check whether --enable-unit_tests was given.
6833 if test "${enable_unit_tests+set}" = set; then :
6834 enableval=$enable_unit_tests;
6838 if test x$enable_debug = xyes -a "x$OPTIM" = x; then
6844 if test x$enable_debug_printfs = xyes; then
6845 CFLAGS="$CFLAGS -DDEBUG"
6846 CXXFLAGS="$CXXFLAGS -DDEBUG"
6849 if test x$enable_debug_guards = xyes; then
6850 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6851 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6854 if test x$enable_unit_tests = xyes; then
6855 if test "$build" != "$host"; then
6856 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6859 UNITTESTS="unittests"
6866 # Check whether --with-archflags was given.
6867 if test "${with_archflags+set}" = set; then :
6868 withval=$with_archflags;
6872 # Check whether --with-ldarchflags was given.
6873 if test "${with_ldarchflags+set}" = set; then :
6874 withval=$with_ldarchflags;
6878 if test -z "$with_archflags"; then
6881 ARCHFLAGS="$with_archflags"
6884 if test -z "$with_ldarchflags"; then
6885 if test "$host_os_name" = darwin; then
6886 # Only create Intel programs by default
6887 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6889 LDARCHFLAGS="$ARCHFLAGS"
6892 LDARCHFLAGS="$with_ldarchflags"
6898 # Check whether --enable-relro was given.
6899 if test "${enable_relro+set}" = set; then :
6900 enableval=$enable_relro;
6904 # Check whether --enable-sanitizer was given.
6905 if test "${enable_sanitizer+set}" = set; then :
6906 enableval=$enable_sanitizer;
6910 CXXLIBS="${CXXLIBS:=}"
6922 if test -n "$GCC"; then
6923 # Add GCC-specific compiler options...
6925 # Address sanitizer is a useful tool to use when developing/debugging
6926 # code but adds about 2x overhead...
6927 if test x$enable_sanitizer = xyes; then
6928 # Use -fsanitize=address with debugging...
6929 OPTIM="$OPTIM -g -fsanitize=address"
6931 # Otherwise use the Fortify enhancements to catch any unbounded
6932 # string operations...
6933 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
6934 CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2"
6937 # Default optimization options...
6938 if test -z "$OPTIM"; then
6939 # Default to optimize-for-size and debug
6943 # Generate position-independent code as needed...
6944 if test $PICFLAG = 1; then
6945 OPTIM="-fPIC $OPTIM"
6948 # The -fstack-protector option is available with some versions of
6949 # GCC and adds "stack canaries" which detect when the return address
6950 # has been overwritten, preventing many types of exploit attacks.
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6952 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6954 CFLAGS="$CFLAGS -fstack-protector"
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6966 if ac_fn_c_try_link "$LINENO"; then :
6967 if test "x$LSB_BUILD" = xy; then
6968 # Can't use stack-protector with LSB binaries...
6969 OPTIM="$OPTIM -fno-stack-protector"
6971 OPTIM="$OPTIM -fstack-protector"
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6974 $as_echo "yes" >&6; }
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6979 rm -f core conftest.err conftest.$ac_objext \
6980 conftest$ac_exeext conftest.$ac_ext
6983 if test "x$LSB_BUILD" != xy; then
6984 # The -fPIE option is available with some versions of GCC and
6985 # adds randomization of addresses, which avoids another class of
6986 # exploits that depend on a fixed address for common functions.
6988 # Not available to LSB binaries...
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6990 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6992 case "$host_os_name" in
6994 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
7006 if ac_fn_c_try_compile "$LINENO"; then :
7008 PIEFLAGS="-fPIE -Wl,-pie"
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7010 $as_echo "yes" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 CFLAGS="$CFLAGS -fPIE -pie"
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7031 if ac_fn_c_try_compile "$LINENO"; then :
7033 PIEFLAGS="-fPIE -pie"
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7035 $as_echo "yes" >&6; }
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046 # Add useful warning options for tracking down problems...
7047 WARNING_OPTIONS="-Wall -Wno-format-y2k -Wunused -Wno-unused-result -Wsign-conversion"
7049 # Test GCC version for certain warning flags since -Werror
7050 # doesn't trigger...
7051 gccversion=`$CC --version |
head -1 |
awk '{print $NF}'`
7052 case "$gccversion" in
7054 WARNING_OPTIONS="$WARNING_OPTIONS -Wno-format-truncation -Wno-tautological-compare"
7058 # Additional warning options for development testing...
7059 if test -d .git; then
7060 WARNING_OPTIONS="-Werror -Wno-error=deprecated-declarations $WARNING_OPTIONS"
7063 # Add vendor-specific compiler options...
7064 case $host_os_name in
7067 if test -z "$OPTIM"; then
7071 if test $PICFLAG = 1; then
7072 OPTIM="-KPIC $OPTIM"
7076 # Running some other operating system; inform the user
7077 # they should contribute the necessary options via
7079 echo "Building CUPS with default compiler optimizations; contact the CUPS developers on Github"
7080 echo "(https://github.com/apple/cups/issues) with the uname and compiler options needed for"
7081 echo "your platform, or set the CFLAGS and LDFLAGS environment variables before running"
7087 # Add general compiler options per platform...
7088 case $host_os_name in
7090 # glibc 2.8 and higher breaks peer credentials unless you
7091 # define _GNU_SOURCE...
7092 OPTIM="$OPTIM -D_GNU_SOURCE"
7094 # The -z relro option is provided by the Linux linker command to
7095 # make relocatable data read-only.
7096 if test x$enable_relro = xyes; then
7097 RELROFLAGS="-Wl,-z,relro,-z,now"
7104 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
7105 #include <sys/socket.h>
7106 #include <netinet/in.h>
7107 #include <arpa/inet.h>
7108 #include <netinet/in_systm.h>
7109 #include <netinet/ip.h>
7111 if test "x$ac_cv_header_resolv_h" = xyes; then :
7112 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7118 $as_echo_n "checking for library containing socket... " >&6; }
7119 if ${ac_cv_search_socket+:} false; then :
7120 $as_echo_n "(cached) " >&6
7122 ac_func_search_save_LIBS=$LIBS
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7126 /* Override any GCC internal prototype to avoid an error.
7127 Use char because int might match the return type of a GCC
7128 builtin and then its argument prototype would still apply. */
7141 for ac_lib in '' socket; do
7142 if test -z "$ac_lib"; then
7143 ac_res="none required"
7146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7148 if ac_fn_c_try_link "$LINENO"; then :
7149 ac_cv_search_socket=$ac_res
7151 rm -f core conftest.err conftest.$ac_objext \
7153 if ${ac_cv_search_socket+:} false; then :
7157 if ${ac_cv_search_socket+:} false; then :
7160 ac_cv_search_socket=no
7163 LIBS=$ac_func_search_save_LIBS
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7166 $as_echo "$ac_cv_search_socket" >&6; }
7167 ac_res=$ac_cv_search_socket
7168 if test "$ac_res" != no; then :
7169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7174 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7175 if ${ac_cv_search_gethostbyaddr+:} false; then :
7176 $as_echo_n "(cached) " >&6
7178 ac_func_search_save_LIBS=$LIBS
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7182 /* Override any GCC internal prototype to avoid an error.
7183 Use char because int might match the return type of a GCC
7184 builtin and then its argument prototype would still apply. */
7188 char gethostbyaddr ();
7192 return gethostbyaddr ();
7197 for ac_lib in '' nsl; do
7198 if test -z "$ac_lib"; then
7199 ac_res="none required"
7202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7204 if ac_fn_c_try_link "$LINENO"; then :
7205 ac_cv_search_gethostbyaddr=$ac_res
7207 rm -f core conftest.err conftest.$ac_objext \
7209 if ${ac_cv_search_gethostbyaddr+:} false; then :
7213 if ${ac_cv_search_gethostbyaddr+:} false; then :
7216 ac_cv_search_gethostbyaddr=no
7219 LIBS=$ac_func_search_save_LIBS
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7222 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7223 ac_res=$ac_cv_search_gethostbyaddr
7224 if test "$ac_res" != no; then :
7225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7230 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7231 if ${ac_cv_search_getifaddrs+:} false; then :
7232 $as_echo_n "(cached) " >&6
7234 ac_func_search_save_LIBS=$LIBS
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7238 /* Override any GCC internal prototype to avoid an error.
7239 Use char because int might match the return type of a GCC
7240 builtin and then its argument prototype would still apply. */
7248 return getifaddrs ();
7253 for ac_lib in '' nsl; do
7254 if test -z "$ac_lib"; then
7255 ac_res="none required"
7258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7260 if ac_fn_c_try_link "$LINENO"; then :
7261 ac_cv_search_getifaddrs=$ac_res
7263 rm -f core conftest.err conftest.$ac_objext \
7265 if ${ac_cv_search_getifaddrs+:} false; then :
7269 if ${ac_cv_search_getifaddrs+:} false; then :
7272 ac_cv_search_getifaddrs=no
7275 LIBS=$ac_func_search_save_LIBS
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7278 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7279 ac_res=$ac_cv_search_getifaddrs
7280 if test "$ac_res" != no; then :
7281 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7282 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7287 $as_echo_n "checking for library containing hstrerror... " >&6; }
7288 if ${ac_cv_search_hstrerror+:} false; then :
7289 $as_echo_n "(cached) " >&6
7291 ac_func_search_save_LIBS=$LIBS
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7295 /* Override any GCC internal prototype to avoid an error.
7296 Use char because int might match the return type of a GCC
7297 builtin and then its argument prototype would still apply. */
7305 return hstrerror ();
7310 for ac_lib in '' nsl socket resolv; do
7311 if test -z "$ac_lib"; then
7312 ac_res="none required"
7315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7317 if ac_fn_c_try_link "$LINENO"; then :
7318 ac_cv_search_hstrerror=$ac_res
7320 rm -f core conftest.err conftest.$ac_objext \
7322 if ${ac_cv_search_hstrerror+:} false; then :
7326 if ${ac_cv_search_hstrerror+:} false; then :
7329 ac_cv_search_hstrerror=no
7332 LIBS=$ac_func_search_save_LIBS
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7335 $as_echo "$ac_cv_search_hstrerror" >&6; }
7336 ac_res=$ac_cv_search_hstrerror
7337 if test "$ac_res" != no; then :
7338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7339 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7344 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7345 if ${ac_cv_search_rresvport_af+:} false; then :
7346 $as_echo_n "(cached) " >&6
7348 ac_func_search_save_LIBS=$LIBS
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7352 /* Override any GCC internal prototype to avoid an error.
7353 Use char because int might match the return type of a GCC
7354 builtin and then its argument prototype would still apply. */
7358 char rresvport_af ();
7362 return rresvport_af ();
7367 for ac_lib in '' nsl; do
7368 if test -z "$ac_lib"; then
7369 ac_res="none required"
7372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7374 if ac_fn_c_try_link "$LINENO"; then :
7375 ac_cv_search_rresvport_af=$ac_res
7377 rm -f core conftest.err conftest.$ac_objext \
7379 if ${ac_cv_search_rresvport_af+:} false; then :
7383 if ${ac_cv_search_rresvport_af+:} false; then :
7386 ac_cv_search_rresvport_af=no
7389 LIBS=$ac_func_search_save_LIBS
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7392 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7393 ac_res=$ac_cv_search_rresvport_af
7394 if test "$ac_res" != no; then :
7395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7396 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7401 $as_echo_n "checking for library containing __res_init... " >&6; }
7402 if ${ac_cv_search___res_init+:} false; then :
7403 $as_echo_n "(cached) " >&6
7405 ac_func_search_save_LIBS=$LIBS
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7409 /* Override any GCC internal prototype to avoid an error.
7410 Use char because int might match the return type of a GCC
7411 builtin and then its argument prototype would still apply. */
7419 return __res_init ();
7424 for ac_lib in '' resolv bind; do
7425 if test -z "$ac_lib"; then
7426 ac_res="none required"
7429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7431 if ac_fn_c_try_link "$LINENO"; then :
7432 ac_cv_search___res_init=$ac_res
7434 rm -f core conftest.err conftest.$ac_objext \
7436 if ${ac_cv_search___res_init+:} false; then :
7440 if ${ac_cv_search___res_init+:} false; then :
7443 ac_cv_search___res_init=no
7446 LIBS=$ac_func_search_save_LIBS
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7449 $as_echo "$ac_cv_search___res_init" >&6; }
7450 ac_res=$ac_cv_search___res_init
7451 if test "$ac_res" != no; then :
7452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7453 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7457 $as_echo_n "checking for library containing res_9_init... " >&6; }
7458 if ${ac_cv_search_res_9_init+:} false; then :
7459 $as_echo_n "(cached) " >&6
7461 ac_func_search_save_LIBS=$LIBS
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7465 /* Override any GCC internal prototype to avoid an error.
7466 Use char because int might match the return type of a GCC
7467 builtin and then its argument prototype would still apply. */
7475 return res_9_init ();
7480 for ac_lib in '' resolv bind; do
7481 if test -z "$ac_lib"; then
7482 ac_res="none required"
7485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7487 if ac_fn_c_try_link "$LINENO"; then :
7488 ac_cv_search_res_9_init=$ac_res
7490 rm -f core conftest.err conftest.$ac_objext \
7492 if ${ac_cv_search_res_9_init+:} false; then :
7496 if ${ac_cv_search_res_9_init+:} false; then :
7499 ac_cv_search_res_9_init=no
7502 LIBS=$ac_func_search_save_LIBS
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7505 $as_echo "$ac_cv_search_res_9_init" >&6; }
7506 ac_res=$ac_cv_search_res_9_init
7507 if test "$ac_res" != no; then :
7508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7509 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7513 $as_echo_n "checking for library containing res_init... " >&6; }
7514 if ${ac_cv_search_res_init+:} false; then :
7515 $as_echo_n "(cached) " >&6
7517 ac_func_search_save_LIBS=$LIBS
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7521 /* Override any GCC internal prototype to avoid an error.
7522 Use char because int might match the return type of a GCC
7523 builtin and then its argument prototype would still apply. */
7536 for ac_lib in '' resolv bind; do
7537 if test -z "$ac_lib"; then
7538 ac_res="none required"
7541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7543 if ac_fn_c_try_link "$LINENO"; then :
7544 ac_cv_search_res_init=$ac_res
7546 rm -f core conftest.err conftest.$ac_objext \
7548 if ${ac_cv_search_res_init+:} false; then :
7552 if ${ac_cv_search_res_init+:} false; then :
7555 ac_cv_search_res_init=no
7558 LIBS=$ac_func_search_save_LIBS
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7561 $as_echo "$ac_cv_search_res_init" >&6; }
7562 ac_res=$ac_cv_search_res_init
7563 if test "$ac_res" != no; then :
7564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7565 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7574 # Tru64 5.1b leaks file descriptors with these functions; disable until
7575 # we can come up with a test for this...
7576 if test "$host_os_name" != "osf1"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7578 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7579 if ${ac_cv_search_getaddrinfo+:} false; then :
7580 $as_echo_n "(cached) " >&6
7582 ac_func_search_save_LIBS=$LIBS
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7586 /* Override any GCC internal prototype to avoid an error.
7587 Use char because int might match the return type of a GCC
7588 builtin and then its argument prototype would still apply. */
7592 char getaddrinfo ();
7596 return getaddrinfo ();
7601 for ac_lib in '' nsl; do
7602 if test -z "$ac_lib"; then
7603 ac_res="none required"
7606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7608 if ac_fn_c_try_link "$LINENO"; then :
7609 ac_cv_search_getaddrinfo=$ac_res
7611 rm -f core conftest.err conftest.$ac_objext \
7613 if ${ac_cv_search_getaddrinfo+:} false; then :
7617 if ${ac_cv_search_getaddrinfo+:} false; then :
7620 ac_cv_search_getaddrinfo=no
7623 LIBS=$ac_func_search_save_LIBS
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7626 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7627 ac_res=$ac_cv_search_getaddrinfo
7628 if test "$ac_res" != no; then :
7629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7630 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7635 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7636 if ${ac_cv_search_getnameinfo+:} false; then :
7637 $as_echo_n "(cached) " >&6
7639 ac_func_search_save_LIBS=$LIBS
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7643 /* Override any GCC internal prototype to avoid an error.
7644 Use char because int might match the return type of a GCC
7645 builtin and then its argument prototype would still apply. */
7649 char getnameinfo ();
7653 return getnameinfo ();
7658 for ac_lib in '' nsl; do
7659 if test -z "$ac_lib"; then
7660 ac_res="none required"
7663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7665 if ac_fn_c_try_link "$LINENO"; then :
7666 ac_cv_search_getnameinfo=$ac_res
7668 rm -f core conftest.err conftest.$ac_objext \
7670 if ${ac_cv_search_getnameinfo+:} false; then :
7674 if ${ac_cv_search_getnameinfo+:} false; then :
7677 ac_cv_search_getnameinfo=no
7680 LIBS=$ac_func_search_save_LIBS
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7683 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7684 ac_res=$ac_cv_search_getnameinfo
7685 if test "$ac_res" != no; then :
7686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7687 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7693 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7695 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7699 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7700 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7701 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7707 CUPS_DEFAULT_DOMAINSOCKET=""
7710 # Check whether --with-domainsocket was given.
7711 if test "${with_domainsocket+set}" = set; then :
7712 withval=$with_domainsocket; default_domainsocket="$withval"
7714 default_domainsocket=""
7718 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7719 if test "x$default_domainsocket" = x; then
7720 case "$host_os_name" in
7722 # Darwin and macOS do their own thing...
7723 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7726 # All others use FHS standard...
7727 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7731 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7734 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7736 cat >>confdefs.h <<_ACEOF
7737 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7741 CUPS_LISTEN_DOMAINSOCKET=""
7748 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7749 if test "x$ac_cv_func_poll" = xyes; then :
7750 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7754 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7755 if test "x$ac_cv_func_epoll_create" = xyes; then :
7756 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7760 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7761 if test "x$ac_cv_func_kqueue" = xyes; then :
7762 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7768 # Check whether --enable-gssapi was given.
7769 if test "${enable_gssapi+set}" = set; then :
7770 enableval=$enable_gssapi;
7777 if test x$enable_gssapi != xno; then
7778 if test -n "$ac_tool_prefix"; then
7779 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7780 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7784 $as_echo_n "(cached) " >&6
7788 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7798 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7810 if test -n "$KRB5CONFIG"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7812 $as_echo "$KRB5CONFIG" >&6; }
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7820 if test -z "$ac_cv_path_KRB5CONFIG"; then
7821 ac_pt_KRB5CONFIG=$KRB5CONFIG
7822 # Extract the first word of "krb5-config", so it can be a program name with args.
7823 set dummy krb5-config; ac_word=$2
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825 $as_echo_n "checking for $ac_word... " >&6; }
7826 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7827 $as_echo_n "(cached) " >&6
7829 case $ac_pt_KRB5CONFIG in
7831 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7841 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7853 if test -n "$ac_pt_KRB5CONFIG"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7855 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7861 if test "x$ac_pt_KRB5CONFIG" = x; then
7864 case $cross_compiling:$ac_tool_warned in
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7868 ac_tool_warned=yes ;;
7870 KRB5CONFIG=$ac_pt_KRB5CONFIG
7873 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7876 if test "x$KRB5CONFIG" != x; then
7877 case "$host_os_name" in
7879 # macOS weak-links to the Kerberos framework...
7880 LIBGSSAPI="-weak_framework Kerberos"
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7882 $as_echo_n "checking for GSS framework... " >&6; }
7883 if test -d /System/Library/Frameworks/GSS.framework; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7885 $as_echo "yes" >&6; }
7886 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7893 # Solaris has a non-standard krb5-config, don't use it!
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7895 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7896 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7897 $as_echo_n "(cached) " >&6
7899 ac_check_lib_save_LIBS=$LIBS
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7904 /* Override any GCC internal prototype to avoid an error.
7905 Use char because int might match the return type of a GCC
7906 builtin and then its argument prototype would still apply. */
7910 char gss_display_status ();
7914 return gss_display_status ();
7919 if ac_fn_c_try_link "$LINENO"; then :
7920 ac_cv_lib_gss_gss_display_status=yes
7922 ac_cv_lib_gss_gss_display_status=no
7924 rm -f core conftest.err conftest.$ac_objext \
7925 conftest$ac_exeext conftest.$ac_ext
7926 LIBS=$ac_check_lib_save_LIBS
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7929 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7930 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7932 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7934 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7935 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7936 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7941 # Other platforms just ask for GSSAPI
7942 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7943 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7944 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7948 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7951 # Check for vendor-specific implementations...
7952 case "$host_os_name" in
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7955 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7956 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7957 $as_echo_n "(cached) " >&6
7959 ac_check_lib_save_LIBS=$LIBS
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7964 /* Override any GCC internal prototype to avoid an error.
7965 Use char because int might match the return type of a GCC
7966 builtin and then its argument prototype would still apply. */
7970 char gss_display_status ();
7974 return gss_display_status ();
7979 if ac_fn_c_try_link "$LINENO"; then :
7980 ac_cv_lib_gss_gss_display_status=yes
7982 ac_cv_lib_gss_gss_display_status=no
7984 rm -f core conftest.err conftest.$ac_objext \
7985 conftest$ac_exeext conftest.$ac_ext
7986 LIBS=$ac_check_lib_save_LIBS
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7989 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7990 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7992 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7994 LIBGSSAPI="-lgss -lgssapi_krb5"
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8000 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8001 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8002 $as_echo_n "(cached) " >&6
8004 ac_check_lib_save_LIBS=$LIBS
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8009 /* Override any GCC internal prototype to avoid an error.
8010 Use char because int might match the return type of a GCC
8011 builtin and then its argument prototype would still apply. */
8015 char gss_display_status ();
8019 return gss_display_status ();
8024 if ac_fn_c_try_link "$LINENO"; then :
8025 ac_cv_lib_gss_gss_display_status=yes
8027 ac_cv_lib_gss_gss_display_status=no
8029 rm -f core conftest.err conftest.$ac_objext \
8030 conftest$ac_exeext conftest.$ac_ext
8031 LIBS=$ac_check_lib_save_LIBS
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8034 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8035 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8037 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8046 if test "x$LIBGSSAPI" != x; then
8047 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8048 if test "x$ac_cv_header_krb5_h" = xyes; then :
8049 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8054 if test -d /System/Library/Frameworks/GSS.framework; then
8055 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
8056 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
8057 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8062 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
8063 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
8064 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
8069 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
8070 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
8071 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8077 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8078 if test "x$ac_cv_header_gssapi_h" = xyes; then :
8079 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8084 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8085 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8086 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8094 LIBS="$LIBS $LIBGSSAPI"
8096 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8097 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8098 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8104 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8105 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108 #include <gssapi/gssapi.h>
8112 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8117 if ac_fn_c_try_compile "$LINENO"; then :
8118 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8121 $as_echo "yes" >&6; }
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8130 #include <GSS/gssapi.h>
8134 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8139 if ac_fn_c_try_compile "$LINENO"; then :
8140 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8143 $as_echo "yes" >&6; }
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8156 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8161 if ac_fn_c_try_compile "$LINENO"; then :
8162 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8165 $as_echo "yes" >&6; }
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168 $as_echo "no" >&6; }
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 # Check whether --with-gssservicename was given.
8179 if test "${with_gssservicename+set}" = set; then :
8180 withval=$with_gssservicename; default_gssservicename="$withval"
8182 default_gssservicename="default"
8186 if test x$default_gssservicename != xno; then
8187 if test "x$default_gssservicename" = "xdefault"; then
8188 CUPS_DEFAULT_GSSSERVICENAME="host"
8190 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8193 CUPS_DEFAULT_GSSSERVICENAME=""
8197 cat >>confdefs.h <<_ACEOF
8198 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8203 # Check whether --enable-threads was given.
8204 if test "${enable_threads+set}" = set; then :
8205 enableval=$enable_threads;
8212 if test "x$enable_threads" != xno; then
8213 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8214 if test "x$ac_cv_header_pthread_h" = xyes; then :
8215 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8221 if test x$ac_cv_header_pthread_h = xyes; then
8222 for flag in -lpthreads -lpthread -pthread; do
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8224 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8229 #include <pthread.h>
8233 pthread_create(0, 0, 0, 0);
8238 if ac_fn_c_try_link "$LINENO"; then :
8243 rm -f core conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8246 $as_echo "$have_pthread" >&6; }
8248 if test $have_pthread = yes; then
8249 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8251 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8252 # be POSIX-compliant... :(
8253 if test $host_os_name = sunos; then
8254 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8265 # Check whether --enable-ssl was given.
8266 if test "${enable_ssl+set}" = set; then :
8267 enableval=$enable_ssl;
8270 # Check whether --enable-cdsassl was given.
8271 if test "${enable_cdsassl+set}" = set; then :
8272 enableval=$enable_cdsassl;
8275 # Check whether --enable-gnutls was given.
8276 if test "${enable_gnutls+set}" = set; then :
8277 enableval=$enable_gnutls;
8284 CUPS_SERVERKEYCHAIN=""
8286 if test x$enable_ssl != xno; then
8287 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8288 if test $host_os_name = darwin; then
8289 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8290 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8293 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8295 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8297 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8299 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8300 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8301 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8306 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8307 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8308 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8313 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8314 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8315 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8320 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8322 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8323 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8328 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8329 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8330 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8335 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8336 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8337 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8342 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8343 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8344 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8349 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8350 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8351 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8357 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8359 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8365 if test $host_os_version -ge 150; then
8366 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8372 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8373 if test -n "$ac_tool_prefix"; then
8374 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8375 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8379 $as_echo_n "(cached) " >&6
8381 case $LIBGNUTLSCONFIG in
8383 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 test -z "$as_dir" && as_dir=.
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8393 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8405 if test -n "$LIBGNUTLSCONFIG"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8407 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8415 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8416 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8417 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8418 set dummy libgnutls-config; ac_word=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8422 $as_echo_n "(cached) " >&6
8424 case $ac_pt_LIBGNUTLSCONFIG in
8426 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 test -z "$as_dir" && as_dir=.
8434 for ac_exec_ext in '' $ac_executable_extensions; do
8435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8436 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8448 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8450 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8456 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8459 case $cross_compiling:$ac_tool_warned in
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8463 ac_tool_warned=yes ;;
8465 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8468 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8471 if $PKGCONFIG --exists gnutls; then
8473 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8474 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8475 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8477 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8479 elif test "x$LIBGNUTLSCONFIG" != x; then
8481 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8482 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8483 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8485 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8489 if test $have_ssl = 1; then
8490 CUPS_SERVERKEYCHAIN="ssl"
8493 LIBS="$LIBS $SSLLIBS"
8494 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8495 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8496 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8500 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8501 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8502 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8512 if test $have_ssl = 1; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8514 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8516 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8517 IPPALIASES="http https ipps"
8518 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8519 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8527 EXPORT_SSLLIBS="$SSLLIBS"
8531 # Check whether --enable-pam was given.
8532 if test "${enable_pam+set}" = set; then :
8533 enableval=$enable_pam;
8537 # Check whether --with-pam_module was given.
8538 if test "${with_pam_module+set}" = set; then :
8539 withval=$with_pam_module;
8546 PAMMOD="pam_unknown.so"
8547 PAMMODAUTH="pam_unknown.so"
8549 if test x$enable_pam != xno; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8553 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8554 if ${ac_cv_lib_dl_dlopen+:} false; then :
8555 $as_echo_n "(cached) " >&6
8557 ac_check_lib_save_LIBS=$LIBS
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8562 /* Override any GCC internal prototype to avoid an error.
8563 Use char because int might match the return type of a GCC
8564 builtin and then its argument prototype would still apply. */
8577 if ac_fn_c_try_link "$LINENO"; then :
8578 ac_cv_lib_dl_dlopen=yes
8580 ac_cv_lib_dl_dlopen=no
8582 rm -f core conftest.err conftest.$ac_objext \
8583 conftest$ac_exeext conftest.$ac_ext
8584 LIBS=$ac_check_lib_save_LIBS
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8587 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8588 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8589 cat >>confdefs.h <<_ACEOF
8590 #define HAVE_LIBDL 1
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8598 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8599 if ${ac_cv_lib_pam_pam_start+:} false; then :
8600 $as_echo_n "(cached) " >&6
8602 ac_check_lib_save_LIBS=$LIBS
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8607 /* Override any GCC internal prototype to avoid an error.
8608 Use char because int might match the return type of a GCC
8609 builtin and then its argument prototype would still apply. */
8617 return pam_start ();
8622 if ac_fn_c_try_link "$LINENO"; then :
8623 ac_cv_lib_pam_pam_start=yes
8625 ac_cv_lib_pam_pam_start=no
8627 rm -f core conftest.err conftest.$ac_objext \
8628 conftest$ac_exeext conftest.$ac_ext
8629 LIBS=$ac_check_lib_save_LIBS
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8632 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8633 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8634 cat >>confdefs.h <<_ACEOF
8635 #define HAVE_LIBPAM 1
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8643 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8644 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8645 $as_echo_n "(cached) " >&6
8647 ac_check_lib_save_LIBS=$LIBS
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8652 /* Override any GCC internal prototype to avoid an error.
8653 Use char because int might match the return type of a GCC
8654 builtin and then its argument prototype would still apply. */
8658 char pam_set_item ();
8662 return pam_set_item ();
8667 if ac_fn_c_try_link "$LINENO"; then :
8668 ac_cv_lib_pam_pam_set_item=yes
8670 ac_cv_lib_pam_pam_set_item=no
8672 rm -f core conftest.err conftest.$ac_objext \
8673 conftest$ac_exeext conftest.$ac_ext
8674 LIBS=$ac_check_lib_save_LIBS
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8677 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8678 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8679 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8684 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8685 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8686 $as_echo_n "(cached) " >&6
8688 ac_check_lib_save_LIBS=$LIBS
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8693 /* Override any GCC internal prototype to avoid an error.
8694 Use char because int might match the return type of a GCC
8695 builtin and then its argument prototype would still apply. */
8699 char pam_setcred ();
8703 return pam_setcred ();
8708 if ac_fn_c_try_link "$LINENO"; then :
8709 ac_cv_lib_pam_pam_setcred=yes
8711 ac_cv_lib_pam_pam_setcred=no
8713 rm -f core conftest.err conftest.$ac_objext \
8714 conftest$ac_exeext conftest.$ac_ext
8715 LIBS=$ac_check_lib_save_LIBS
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8718 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8719 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8720 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8724 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8725 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8730 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8731 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8732 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8733 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8740 if test x$ac_cv_lib_pam_pam_start != xno; then
8741 # Set the necessary libraries for PAM...
8742 if test x$ac_cv_lib_dl_dlopen != xno; then
8743 PAMLIBS="-lpam -ldl"
8748 # Find the PAM configuration directory, if any...
8749 for dir in /private/etc/pam.d /etc/pam.d; do
8750 if test -d $dir; then
8759 case "$host_os_name" in
8762 if test "x$with_pam_module" != x; then
8763 PAMFILE="pam.$with_pam_module"
8764 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8765 PAMFILE="pam.opendirectory"
8767 PAMFILE="pam.securityserver"
8772 # All others; this test might need to be updated
8773 # as Linux distributors move things around...
8774 if test "x$with_pam_module" != x; then
8775 PAMMOD="pam_${with_pam_module}.so"
8776 elif test -f /etc/pam.d/common-auth; then
8777 PAMFILE="pam.common"
8780 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
8781 if test -d $dir; then
8787 if test -f $moddir/pam_unix2.so; then
8788 PAMMOD="pam_unix2.so"
8789 elif test -f $moddir/pam_unix.so; then
8790 PAMMOD="pam_unix.so"
8794 if test "x$PAMMOD" = xpam_unix.so; then
8795 PAMMODAUTH="$PAMMOD shadow nodelay"
8797 PAMMODAUTH="$PAMMOD nodelay"
8810 # Check whether --enable-largefile was given.
8811 if test "${enable_largefile+set}" = set; then :
8812 enableval=$enable_largefile;
8815 if test "$enable_largefile" != no; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8818 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8819 if ${ac_cv_sys_largefile_CC+:} false; then :
8820 $as_echo_n "(cached) " >&6
8822 ac_cv_sys_largefile_CC=no
8823 if test "$GCC" != yes; then
8826 # IRIX 6.2 and later do not support large files by default,
8827 # so use the C compiler's -n32 option if that helps.
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h. */
8830 #include <sys/types.h>
8831 /* Check that off_t can represent 2**63 - 1 correctly.
8832 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8833 since some C++ compilers masquerading as C compilers
8834 incorrectly reject 9223372036854775807. */
8835 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8837 && LARGE_OFF_T % 2147483647 == 1)
8847 if ac_fn_c_try_compile "$LINENO"; then :
8850 rm -f core conftest.err conftest.$ac_objext
8852 if ac_fn_c_try_compile "$LINENO"; then :
8853 ac_cv_sys_largefile_CC=' -n32'; break
8855 rm -f core conftest.err conftest.$ac_objext
8859 rm -f conftest.$ac_ext
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8863 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8864 if test "$ac_cv_sys_largefile_CC" != no; then
8865 CC=$CC$ac_cv_sys_largefile_CC
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8869 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8870 if ${ac_cv_sys_file_offset_bits+:} false; then :
8871 $as_echo_n "(cached) " >&6
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876 #include <sys/types.h>
8877 /* Check that off_t can represent 2**63 - 1 correctly.
8878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8879 since some C++ compilers masquerading as C compilers
8880 incorrectly reject 9223372036854775807. */
8881 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8883 && LARGE_OFF_T % 2147483647 == 1)
8893 if ac_fn_c_try_compile "$LINENO"; then :
8894 ac_cv_sys_file_offset_bits=no; break
8896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8899 #define _FILE_OFFSET_BITS 64
8900 #include <sys/types.h>
8901 /* Check that off_t can represent 2**63 - 1 correctly.
8902 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8903 since some C++ compilers masquerading as C compilers
8904 incorrectly reject 9223372036854775807. */
8905 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8906 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8907 && LARGE_OFF_T % 2147483647 == 1)
8917 if ac_fn_c_try_compile "$LINENO"; then :
8918 ac_cv_sys_file_offset_bits=64; break
8920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8921 ac_cv_sys_file_offset_bits=unknown
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8926 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8927 case $ac_cv_sys_file_offset_bits in #(
8930 cat >>confdefs.h <<_ACEOF
8931 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8936 if test $ac_cv_sys_file_offset_bits = unknown; then
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8938 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8939 if ${ac_cv_sys_large_files+:} false; then :
8940 $as_echo_n "(cached) " >&6
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 #include <sys/types.h>
8946 /* Check that off_t can represent 2**63 - 1 correctly.
8947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8948 since some C++ compilers masquerading as C compilers
8949 incorrectly reject 9223372036854775807. */
8950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8952 && LARGE_OFF_T % 2147483647 == 1)
8962 if ac_fn_c_try_compile "$LINENO"; then :
8963 ac_cv_sys_large_files=no; break
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8968 #define _LARGE_FILES 1
8969 #include <sys/types.h>
8970 /* Check that off_t can represent 2**63 - 1 correctly.
8971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8972 since some C++ compilers masquerading as C compilers
8973 incorrectly reject 9223372036854775807. */
8974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8976 && LARGE_OFF_T % 2147483647 == 1)
8986 if ac_fn_c_try_compile "$LINENO"; then :
8987 ac_cv_sys_large_files=1; break
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 ac_cv_sys_large_files=unknown
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8995 $as_echo "$ac_cv_sys_large_files" >&6; }
8996 case $ac_cv_sys_large_files in #(
8999 cat >>confdefs.h <<_ACEOF
9000 #define _LARGE_FILES $ac_cv_sys_large_files
9010 if test x$enable_largefile != xno; then
9011 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
9013 if test x$ac_cv_sys_large_files = x1; then
9014 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
9017 if test x$ac_cv_sys_file_offset_bits = x64; then
9018 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9024 $as_echo_n "checking for long long int... " >&6; }
9025 if ${ac_cv_c_long_long+:} false; then :
9026 $as_echo_n "(cached) " >&6
9028 if test "$GCC" = yes; then
9029 ac_cv_c_long_long=yes
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9042 if ac_fn_c_try_compile "$LINENO"; then :
9043 ac_cv_c_long_long=yes
9045 ac_cv_c_long_long=no
9047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9051 $as_echo "$ac_cv_c_long_long" >&6; }
9053 if test $ac_cv_c_long_long = yes; then
9054 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9058 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9059 if test "x$ac_cv_func_strtoll" = xyes; then :
9060 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9066 # Check whether --enable-avahi was given.
9067 if test "${enable_avahi+set}" = set; then :
9068 enableval=$enable_avahi;
9071 # Check whether --enable-dnssd was given.
9072 if test "${enable_dnssd+set}" = set; then :
9073 enableval=$enable_dnssd;
9077 # Check whether --with-dnssd-libs was given.
9078 if test "${with_dnssd_libs+set}" = set; then :
9079 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9080 DSOFLAGS="-L$withval $DSOFLAGS"
9084 # Check whether --with-dnssd-includes was given.
9085 if test "${with_dnssd_includes+set}" = set; then :
9086 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9087 CPPFLAGS="-I$withval $CPPFLAGS"
9096 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9098 $as_echo_n "checking for Avahi... " >&6; }
9099 if $PKGCONFIG --exists avahi-client; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9101 $as_echo "yes" >&6; }
9102 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
9103 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
9104 DNSSD_BACKEND="dnssd"
9105 IPPFIND_BIN="ippfind"
9106 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9107 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9115 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9116 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9117 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9119 case "$host_os_name" in
9121 # Darwin and macOS...
9122 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9124 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9125 DNSSD_BACKEND="dnssd"
9126 IPPFIND_BIN="ippfind"
9127 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9132 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9134 LIBS="$LIBS -ldns_sd"
9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9141 int constant = kDNSServiceFlagsShareConnection;
9142 unsigned char txtRecord[100];
9144 TXTRecordGetValuePtr(sizeof(txtRecord),
9145 txtRecord, "value", &valueLen);
9150 if ac_fn_c_try_compile "$LINENO"; then :
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9152 $as_echo "yes" >&6; }
9153 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9155 DNSSDLIBS="-ldns_sd"
9156 DNSSD_BACKEND="dnssd"
9158 IPPFIND_BIN="ippfind"
9159 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161 $as_echo "no" >&6; }
9163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184 # Check whether --enable-launchd was given.
9185 if test "${enable_launchd+set}" = set; then :
9186 enableval=$enable_launchd;
9192 if test x$enable_launchd != xno; then
9193 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9194 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9196 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9198 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9202 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9203 if test "x$ac_cv_header_launch_h" = xyes; then :
9204 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9210 if test "$host_os_name" = darwin; then
9211 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9212 # liblaunch is already part of libSystem
9216 # Check whether --enable-systemd was given.
9217 if test "${enable_systemd+set}" = set; then :
9218 enableval=$enable_systemd;
9222 # Check whether --with-systemd was given.
9223 if test "${with_systemd+set}" = set; then :
9224 withval=$with_systemd; SYSTEMD_DIR="$withval"
9231 if test x$enable_systemd != xno; then
9232 if test "x$PKGCONFIG" = x; then
9233 if test x$enable_systemd = xyes; then
9234 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9239 $as_echo_n "checking for libsystemd... " >&6; }
9240 if $PKGCONFIG --exists libsystemd; then
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9242 $as_echo "yes" >&6; }
9244 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9245 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9246 elif $PKGCONFIG --exists libsystemd-daemon; then
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9248 $as_echo "yes - legacy" >&6; }
9250 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9251 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9253 if $PKGCONFIG --exists libsystemd-journal; then
9254 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9255 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9262 if test $have_systemd = yes; then
9263 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9265 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9267 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9268 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9269 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9274 if test "x$SYSTEMD_DIR" = x; then
9275 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9281 # Check whether --enable-upstart was given.
9282 if test "${enable_upstart+set}" = set; then :
9283 enableval=$enable_upstart;
9286 if test "x$enable_upstart" = "xyes"; then
9287 if test "x$have_systemd" = "xyes"; then
9288 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9290 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9292 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9299 # Check whether --with-smfmanifestdir was given.
9300 if test "${with_smfmanifestdir+set}" = set; then :
9301 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9306 # Check whether --with-rcdir was given.
9307 if test "${with_rcdir+set}" = set; then :
9308 withval=$with_rcdir; rcdir="$withval"
9314 # Check whether --with-rclevels was given.
9315 if test "${with_rclevels+set}" = set; then :
9316 withval=$with_rclevels; rclevels="$withval"
9322 # Check whether --with-rcstart was given.
9323 if test "${with_rcstart+set}" = set; then :
9324 withval=$with_rcstart; rcstart="$withval"
9330 # Check whether --with-rcstop was given.
9331 if test "${with_rcstop+set}" = set; then :
9332 withval=$with_rcstop; rcstop="$withval"
9338 if test x$rcdir = x; then
9339 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9340 # Fall back on "init", the original service startup interface...
9341 if test -d /sbin/init.d; then
9343 rcdir="/sbin/init.d"
9344 elif test -d /etc/init.d; then
9356 if test "x$rcstart" = x; then
9357 case "$host_os_name" in
9375 if test "x$rcstop" = x; then
9376 case "$host_os_name" in
9391 RCLEVELS="$rclevels"
9400 if test "x$rcdir" != xno; then
9401 if test "x$rclevels" = x; then
9409 # Check whether --with-xinetd was given.
9410 if test "${with_xinetd+set}" = set; then :
9411 withval=$with_xinetd; xinetd="$withval"
9419 if test "x$xinetd" = x; then
9420 if test ! -x /sbin/launchd; then
9421 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9422 if test -d $dir; then
9428 elif test "x$xinetd" != xno; then
9433 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9436 # Check whether --with-languages was given.
9437 if test "${with_languages+set}" = set; then :
9438 withval=$with_languages;
9440 none | no) LANGUAGES="" ;;
9442 *) LANGUAGES="$withval" ;;
9449 # Check whether --with-bundledir was given.
9450 if test "${with_bundledir+set}" = set; then :
9451 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9454 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9455 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9464 if test "x$CUPS_BUNDLEDIR" != x; then
9465 cat >>confdefs.h <<_ACEOF
9466 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9472 # Check whether --with-bundlelang was given.
9473 if test "${with_bundlelang+set}" = set; then :
9474 withval=$with_bundlelang; cups_bundlelang="$withval"
9477 if test $host_os_version -ge 190; then
9478 cups_bundlelang="en"
9480 cups_bundlelang="English"
9485 if test "x$cups_bundlelang" != x -a "x$CUPS_BUNDLEDIR" != x; then
9486 CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/$cups_bundlelang.lproj"
9493 # Check whether --with-exe_file_perm was given.
9494 if test "${with_exe_file_perm+set}" = set; then :
9495 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9497 case "$host_os_name" in
9499 CUPS_EXE_FILE_PERM="755"
9502 CUPS_EXE_FILE_PERM="555"
9510 # Check whether --with-config_file_perm was given.
9511 if test "${with_config_file_perm+set}" = set; then :
9512 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9514 if test "x$host_os_name" = xdarwin; then
9515 CUPS_CONFIG_FILE_PERM="644"
9517 CUPS_CONFIG_FILE_PERM="640"
9522 cat >>confdefs.h <<_ACEOF
9523 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9528 # Check whether --with-cupsd_file_perm was given.
9529 if test "${with_cupsd_file_perm+set}" = set; then :
9530 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9532 case "$host_os_name" in
9534 CUPS_CUPSD_FILE_PERM="700"
9537 CUPS_CUPSD_FILE_PERM="500"
9545 # Check whether --with-log_file_perm was given.
9546 if test "${with_log_file_perm+set}" = set; then :
9547 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9549 CUPS_LOG_FILE_PERM="644"
9553 cat >>confdefs.h <<_ACEOF
9554 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9559 # Check whether --with-fatal_errors was given.
9560 if test "${with_fatal_errors+set}" = set; then :
9561 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9563 CUPS_FATAL_ERRORS="config"
9567 cat >>confdefs.h <<_ACEOF
9568 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9573 # Check whether --with-log_level was given.
9574 if test "${with_log_level+set}" = set; then :
9575 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9577 CUPS_LOG_LEVEL="warn"
9581 cat >>confdefs.h <<_ACEOF
9582 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9587 # Check whether --with-access_log_level was given.
9588 if test "${with_access_log_level+set}" = set; then :
9589 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9591 CUPS_ACCESS_LOG_LEVEL="none"
9595 cat >>confdefs.h <<_ACEOF
9596 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9600 # Check whether --enable-page_logging was given.
9601 if test "${enable_page_logging+set}" = set; then :
9602 enableval=$enable_page_logging;
9605 if test "x$enable_page_logging" = xyes; then
9606 CUPS_PAGE_LOG_FORMAT=""
9608 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9612 # Check whether --enable-browsing was given.
9613 if test "${enable_browsing+set}" = set; then :
9614 enableval=$enable_browsing;
9617 if test "x$enable_browsing" = xno; then
9619 cat >>confdefs.h <<_ACEOF
9620 #define CUPS_DEFAULT_BROWSING 0
9625 cat >>confdefs.h <<_ACEOF
9626 #define CUPS_DEFAULT_BROWSING 1
9633 # Check whether --with-local_protocols was given.
9634 if test "${with_local_protocols+set}" = set; then :
9635 withval=$with_local_protocols; default_local_protocols="$withval"
9637 default_local_protocols="default"
9641 if test x$with_local_protocols != xno; then
9642 if test "x$default_local_protocols" = "xdefault"; then
9643 if test "x$DNSSD_BACKEND" != "x"; then
9644 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9646 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9649 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9652 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9656 cat >>confdefs.h <<_ACEOF
9657 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9661 # Check whether --enable-default_shared was given.
9662 if test "${enable_default_shared+set}" = set; then :
9663 enableval=$enable_default_shared;
9666 if test "x$enable_default_shared" = xno; then
9667 CUPS_DEFAULT_SHARED="No"
9668 cat >>confdefs.h <<_ACEOF
9669 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9673 CUPS_DEFAULT_SHARED="Yes"
9674 cat >>confdefs.h <<_ACEOF
9675 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9682 # Check whether --with-cups_user was given.
9683 if test "${with_cups_user+set}" = set; then :
9684 withval=$with_cups_user; CUPS_USER="$withval"
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9687 $as_echo_n "checking for default print user... " >&6; }
9688 if test x$host_os_name = xdarwin; then
9689 if test x`id
-u _lp
2>/dev
/null
` = x; then
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9695 $as_echo "$CUPS_USER" >&6; }
9696 elif test -f /etc/passwd; then
9698 for user in lp lpd guest daemon nobody; do
9699 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9702 $as_echo "$user" >&6; }
9707 if test x$CUPS_USER = x; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9710 $as_echo "not found" >&6; }
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9715 $as_echo "no password file" >&6; }
9720 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9721 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9725 # Check whether --with-cups_group was given.
9726 if test "${with_cups_group+set}" = set; then :
9727 withval=$with_cups_group; CUPS_GROUP="$withval"
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9730 $as_echo_n "checking for default print group... " >&6; }
9731 if test x$host_os_name = xdarwin; then
9732 if test x`id
-g _lp
2>/dev
/null
` = x; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9738 $as_echo "$CUPS_GROUP" >&6; }
9739 elif test -f /etc/group; then
9740 GROUP_LIST="_lp lp nobody"
9742 for group in $GROUP_LIST; do
9743 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9746 $as_echo "$group" >&6; }
9751 if test x$CUPS_GROUP = x; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9754 $as_echo "not found" >&6; }
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9759 $as_echo "no group file" >&6; }
9764 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9765 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9769 # Check whether --with-system_groups was given.
9770 if test "${with_system_groups+set}" = set; then :
9771 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9773 if test x$host_os_name = xdarwin; then
9774 CUPS_SYSTEM_GROUPS="admin"
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9777 $as_echo_n "checking for default system groups... " >&6; }
9778 if test -f /etc/group; then
9779 CUPS_SYSTEM_GROUPS=""
9780 GROUP_LIST="lpadmin sys system root"
9781 for group in $GROUP_LIST; do
9782 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9783 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9784 CUPS_SYSTEM_GROUPS="$group"
9786 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9791 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9792 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9794 $as_echo "no groups found" >&6; }
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9797 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9800 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9802 $as_echo "no group file" >&6; }
9808 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9810 for group in $CUPS_SYSTEM_GROUPS; do
9811 if test "x$CUPS_GROUP" = "x$group"; then
9812 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9821 cat >>confdefs.h <<_ACEOF
9822 #define CUPS_DEFAULT_USER "$CUPS_USER"
9825 cat >>confdefs.h <<_ACEOF
9826 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9829 cat >>confdefs.h <<_ACEOF
9830 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9835 # Check whether --with-printcap was given.
9836 if test "${with_printcap+set}" = set; then :
9837 withval=$with_printcap; default_printcap="$withval"
9839 default_printcap="default"
9843 if test x$default_printcap != xno; then
9844 if test "x$default_printcap" = "xdefault"; then
9845 case $host_os_name in
9847 if test $host_os_version -ge 90; then
9848 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9850 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9854 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9857 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9861 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9864 CUPS_DEFAULT_PRINTCAP=""
9868 cat >>confdefs.h <<_ACEOF
9869 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9874 # Check whether --with-lpdconfigfile was given.
9875 if test "${with_lpdconfigfile+set}" = set; then :
9876 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9878 default_lpdconfigfile="default"
9882 if test x$default_lpdconfigfile != xno; then
9883 if test "x$default_lpdconfigfile" = "xdefault"; then
9884 case $host_os_name in
9886 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9889 if test "x$XINETD" != x; then
9890 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9892 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9897 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9900 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9903 cat >>confdefs.h <<_ACEOF
9904 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9910 # Check whether --with-smbconfigfile was given.
9911 if test "${with_smbconfigfile+set}" = set; then :
9912 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9914 default_smbconfigfile="default"
9918 if test x$default_smbconfigfile != xno; then
9919 if test "x$default_smbconfigfile" = "xdefault"; then
9920 if test -f /etc/smb.conf; then
9921 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9923 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9926 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9929 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9932 cat >>confdefs.h <<_ACEOF
9933 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9939 # Check whether --with-max-copies was given.
9940 if test "${with_max_copies+set}" = set; then :
9941 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9943 CUPS_MAX_COPIES="9999"
9948 cat >>confdefs.h <<_ACEOF
9949 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9953 # Check whether --enable-raw_printing was given.
9954 if test "${enable_raw_printing+set}" = set; then :
9955 enableval=$enable_raw_printing;
9958 if test "x$enable_raw_printing" != xno; then
9959 DEFAULT_RAW_PRINTING=""
9961 DEFAULT_RAW_PRINTING="#"
9966 # Check whether --with-snmp-address was given.
9967 if test "${with_snmp_address+set}" = set; then :
9968 withval=$with_snmp_address; if test "x$withval" = x; then
9969 CUPS_SNMP_ADDRESS=""
9971 CUPS_SNMP_ADDRESS="Address $withval"
9974 if test "x$host_os_name" = xdarwin; then
9975 CUPS_SNMP_ADDRESS=""
9977 CUPS_SNMP_ADDRESS="Address @LOCAL"
9983 # Check whether --with-snmp-community was given.
9984 if test "${with_snmp_community+set}" = set; then :
9985 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9987 CUPS_SNMP_COMMUNITY="Community public"
9995 # Check whether --with-ipp-port was given.
9996 if test "${with_ipp_port+set}" = set; then :
9997 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
9999 DEFAULT_IPP_PORT="631"
10004 cat >>confdefs.h <<_ACEOF
10005 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
10009 # Check whether --enable-webif was given.
10010 if test "${enable_webif+set}" = set; then :
10011 enableval=$enable_webif;
10014 case "x$enable_webif" in
10017 CUPS_DEFAULT_WEBIF=0
10021 CUPS_DEFAULT_WEBIF=1
10024 if test $host_os_name = darwin; then
10026 CUPS_DEFAULT_WEBIF=0
10029 CUPS_DEFAULT_WEBIF=1
10035 cat >>confdefs.h <<_ACEOF
10036 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
10041 INSTALL_LANGUAGES=""
10042 UNINSTALL_LANGUAGES=""
10044 if test "x$LANGUAGES" != x; then
10045 INSTALL_LANGUAGES="install-languages"
10046 UNINSTALL_LANGUAGES="uninstall-languages"
10047 for lang in $LANGUAGES; do
10048 if test -f doc/$lang/index.html.in; then
10049 LANGFILES="$LANGFILES doc/$lang/index.html"
10052 if test -f templates/$lang/header.tmpl.in; then
10053 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10056 elif test "x$CUPS_BUNDLEDIR" != x; then
10057 INSTALL_LANGUAGES="install-langbundle"
10058 UNINSTALL_LANGUAGES="uninstall-langbundle"
10064 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/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"
10066 cat >confcache <<\_ACEOF
10067 # This file is a shell script that caches the results of configure
10068 # tests run on this system so they can be shared between configure
10069 # scripts and configure runs, see configure's option --config-cache.
10070 # It is not useful on other systems. If it contains results you don't
10071 # want to keep, you may remove or edit it.
10073 # config.status only pays attention to the cache file if you give it
10074 # the --recheck option to rerun configure.
10076 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10077 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10078 # following values.
10082 # The following way of writing the cache mishandles newlines in values,
10083 # but we know of no workaround that is simple, portable, and efficient.
10084 # So, we kill variables containing newlines.
10085 # Ultrix sh set writes to stderr and can't be redirected directly,
10086 # and sets the high bit in the cache file unless we assign to the vars.
10088 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10089 eval ac_val
=\$
$ac_var
10093 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10094 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10097 _ | IFS | as_nl
) ;; #(
10098 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10099 *) { eval $ac_var=; unset $ac_var;} ;;
10105 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10106 *${as_nl}ac_space
=\
*)
10107 # `set' does not quote correctly, so add quotes: double-quote
10108 # substitution turns \\\\ into \\, and sed turns \\ into \.
10111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10114 # `set' quotes correctly as required by POSIX, so do not add quotes.
10115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10124 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10126 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10128 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10129 if test -w "$cache_file"; then
10130 if test "x$cache_file" != "x/dev/null"; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10132 $as_echo "$as_me: updating cache $cache_file" >&6;}
10133 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10134 cat confcache
>"$cache_file"
10136 case $cache_file in #(
10138 mv -f confcache
"$cache_file"$$
&&
10139 mv -f "$cache_file"$$
"$cache_file" ;; #(
10141 mv -f confcache
"$cache_file" ;;
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10147 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10152 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10153 # Let make expand exec_prefix.
10154 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10156 DEFS
=-DHAVE_CONFIG_H
10161 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10162 # 1. Remove the extension, and $U if already installed.
10163 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10164 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10165 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10166 # will be set to the directory where LIBOBJS objects are built.
10167 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10168 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10170 LIBOBJS
=$ac_libobjs
10172 LTLIBOBJS
=$ac_ltlibobjs
10176 : "${CONFIG_STATUS=./config.status}"
10178 ac_clean_files_save
=$ac_clean_files
10179 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10181 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10183 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10185 # Generated by $as_me.
10186 # Run this file to recreate the current configuration.
10187 # Compiler output produced by configure, useful for debugging
10188 # configure, is in config.log if it exists.
10191 ac_cs_recheck=false
10194 SHELL=\${CONFIG_SHELL-$SHELL}
10197 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10198 ## -------------------- ##
10199 ## M4sh Initialization. ##
10200 ## -------------------- ##
10202 # Be more Bourne compatible
10203 DUALCASE
=1; export DUALCASE
# for MKS sh
10204 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10207 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10208 # is contrary to our usage. Disable this feature.
10209 alias -g '${1+"$@"}'='"$@"'
10210 setopt NO_GLOB_SUBST
10212 case `(set -o) 2>/dev/null` in #(
10224 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10225 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10227 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10228 # Prefer a ksh shell builtin over an external printf program on Solaris,
10229 # but without wasting forks for bash or zsh.
10230 if test -z "$BASH_VERSION$ZSH_VERSION" \
10231 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10232 as_echo='print
-r --'
10233 as_echo_n='print
-rn --'
10234 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10235 as_echo='printf %s
\n'
10236 as_echo_n='printf %s
'
10238 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10239 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10240 as_echo_n='/usr
/ucb
/echo -n'
10242 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10243 as_echo_n_body='eval
10247 expr "X$arg" : "X\\(.*\\)$as_nl";
10248 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10250 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10252 export as_echo_n_body
10253 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10255 export as_echo_body
10256 as_echo='sh
-c $as_echo_body as_echo
'
10259 # The user is always right.
10260 if test "${PATH_SEPARATOR+set}" != set; then
10262 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10263 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10270 # We need space, tab and new line, in precisely that order. Quoting is
10271 # there to prevent editors from complaining about space-tab.
10272 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10273 # splitting by setting IFS to empty value.)
10276 # Find who we are. Look in the path if we contain no directory separator.
10279 *[\\/]* ) as_myself=$0 ;;
10280 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281 for as_dir in $PATH
10284 test -z "$as_dir" && as_dir=.
10285 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10291 # We did not find ourselves, most probably we were run as `sh COMMAND'
10292 # in which case we are not to be found in the path.
10293 if test "x$as_myself" = x
; then
10296 if test ! -f "$as_myself"; then
10297 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10301 # Unset variables that we do not need and which cause bugs (e.g. in
10302 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10303 # suppresses any "Segmentation fault" message there. '((' could
10304 # trigger a bug in pdksh 5.2.14.
10305 for as_var
in BASH_ENV ENV MAIL MAILPATH
10306 do eval test x\
${$as_var+set} = xset \
10307 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10320 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10323 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10324 # ----------------------------------------
10325 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10326 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10327 # script with STATUS, using 1 if that was 0.
10330 as_status
=$1; test $as_status -eq 0 && as_status
=1
10332 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10333 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10335 $as_echo "$as_me: error: $2" >&2
10336 as_fn_exit
$as_status
10340 # as_fn_set_status STATUS
10341 # -----------------------
10342 # Set $? to STATUS, without forking.
10343 as_fn_set_status
()
10346 } # as_fn_set_status
10348 # as_fn_exit STATUS
10349 # -----------------
10350 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10354 as_fn_set_status
$1
10360 # Portably unset VAR.
10363 { eval $1=; unset $1;}
10365 as_unset
=as_fn_unset
10366 # as_fn_append VAR VALUE
10367 # ----------------------
10368 # Append the text in VALUE to the end of the definition contained in VAR. Take
10369 # advantage of any shell optimizations that allow amortized linear growth over
10370 # repeated appends, instead of the typical quadratic growth present in naive
10372 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10373 eval 'as_fn_append ()
10384 # as_fn_arith ARG...
10385 # ------------------
10386 # Perform arithmetic evaluation on the ARGs, and store the result in the
10387 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10388 # must be portable across $(()) and expr.
10389 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10390 eval 'as_fn_arith ()
10397 as_val
=`expr "$@" || test $? -eq 1`
10402 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10403 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10409 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10410 as_basename
=basename
10415 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10421 as_me
=`$as_basename -- "$0" ||
10422 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10423 X"$0" : 'X\(//\)$' \| \
10424 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10426 sed '/^.*\/\([^/][^/]*\)\/*$/{
10440 # Avoid depending upon Character Ranges.
10441 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10442 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10443 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10444 as_cr_digits
='0123456789'
10445 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10447 ECHO_C
= ECHO_N
= ECHO_T
=
10448 case `echo -n x` in #(((((
10450 case `echo 'xy\c'` in
10451 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10453 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10460 rm -f conf$$ conf$$.exe conf$$.
file
10461 if test -d conf$$.dir
; then
10462 rm -f conf$$.dir
/conf$$.
file
10465 mkdir conf$$.dir
2>/dev
/null
10467 if (echo >conf$$.
file) 2>/dev
/null
; then
10468 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10470 # ... but there are two gotchas:
10471 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10472 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10473 # In both cases, we have to default to `cp -p'.
10474 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10476 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10484 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10485 rmdir conf$$.dir
2>/dev
/null
10490 # Create "$as_dir" as a directory, including parents if necessary.
10495 -*) as_dir
=.
/$as_dir;;
10497 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10501 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10502 *) as_qdir
=$as_dir;;
10504 as_dirs
="'$as_qdir' $as_dirs"
10505 as_dir
=`$as_dirname -- "$as_dir" ||
10506 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10507 X"$as_dir" : 'X\(//\)[^/]' \| \
10508 X"$as_dir" : 'X\(//\)$' \| \
10509 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10510 $as_echo X"$as_dir" |
10511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10515 /^X\(\/\/\)[^/].*/{
10528 test -d "$as_dir" && break
10530 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10531 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10535 if mkdir
-p .
2>/dev
/null
; then
10536 as_mkdir_p
='mkdir -p "$as_dir"'
10538 test -d .
/-p && rmdir .
/-p
10542 if test -x / >/dev
/null
2>&1; then
10543 as_test_x
='test -x'
10545 if ls -dL / >/dev
/null
2>&1; then
10552 if test -d "$1"; then
10558 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10559 ???[sx]*):;;*)false;;esac;fi
10563 as_executable_p
=$as_test_x
10565 # Sed expression to map a string onto a valid CPP name.
10566 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10568 # Sed expression to map a string onto a valid variable name.
10569 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10573 ## ----------------------------------- ##
10574 ## Main body of $CONFIG_STATUS script. ##
10575 ## ----------------------------------- ##
10577 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10580 # Save the log message, to keep $0 and so on meaningful, and to
10581 # report actual input values of CONFIG_FILES etc. instead of their
10582 # values after options handling.
10584 This file was extended by CUPS $as_me 2.3b7, which was
10585 generated by GNU Autoconf 2.68. Invocation command line was
10587 CONFIG_FILES = $CONFIG_FILES
10588 CONFIG_HEADERS = $CONFIG_HEADERS
10589 CONFIG_LINKS = $CONFIG_LINKS
10590 CONFIG_COMMANDS = $CONFIG_COMMANDS
10593 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10598 case $ac_config_files in *"
10599 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10602 case $ac_config_headers in *"
10603 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10608 # Files that config.status was made for.
10609 config_files="$ac_config_files"
10610 config_headers="$ac_config_headers"
10614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10616 \`$as_me' instantiates files and other configuration actions
10617 from templates according to the current configuration. Unless the files
10618 and actions are specified as TAGs, all are instantiated by default.
10620 Usage: $0 [OPTION]... [TAG]...
10622 -h, --help print this help, then exit
10623 -V, --version print version number and configuration settings, then exit
10624 --config print configuration, then exit
10625 -q, --quiet, --silent
10626 do not print progress messages
10627 -d, --debug don't remove temporary files
10628 --recheck update $as_me by reconfiguring in the same conditions
10629 --file=FILE[:TEMPLATE]
10630 instantiate the configuration file FILE
10631 --header=FILE[:TEMPLATE]
10632 instantiate the configuration header FILE
10634 Configuration files:
10637 Configuration headers:
10640 Report bugs to <https://github.com/apple/cups/issues>.
10641 CUPS home page: <https://www.cups.org/>."
10644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10645 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10647 CUPS config.status 2.3b7
10648 configured by $0, generated by GNU Autoconf 2.68,
10649 with options \\"\$ac_cs_config\\"
10651 Copyright (C) 2010 Free Software Foundation, Inc.
10652 This config.status script is free software; the Free Software Foundation
10653 gives unlimited permission to copy, distribute and modify it."
10658 test -n "\$AWK" || AWK=awk
10661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10662 # The default lists apply if the user does not specify any file.
10668 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10669 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10673 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10685 # Handling of the options.
10686 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10688 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10689 $as_echo "$ac_cs_version"; exit ;;
10690 --config |
--confi |
--conf |
--con |
--co |
--c )
10691 $as_echo "$ac_cs_config"; exit ;;
10692 --debug |
--debu |
--deb |
--de |
--d |
-d )
10694 --file |
--fil |
--fi |
--f )
10697 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10698 '') as_fn_error $?
"missing file argument" ;;
10700 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10701 ac_need_defaults
=false
;;
10702 --header |
--heade |
--head |
--hea )
10705 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10707 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10708 ac_need_defaults
=false
;;
10710 # Conflict between --help and --header
10711 as_fn_error $?
"ambiguous option: \`$1'
10712 Try \`$0 --help' for more information.";;
10713 --help |
--hel |
-h )
10714 $as_echo "$ac_cs_usage"; exit ;;
10715 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10716 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10719 # This is an error.
10720 -*) as_fn_error $?
"unrecognized option: \`$1'
10721 Try \`$0 --help' for more information." ;;
10723 *) as_fn_append ac_config_targets
" $1"
10724 ac_need_defaults
=false
;;
10730 ac_configure_extra_args
=
10732 if $ac_cs_silent; then
10734 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10739 if \$ac_cs_recheck; then
10740 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10742 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10743 CONFIG_SHELL='$SHELL'
10744 export CONFIG_SHELL
10749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10753 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10754 ## Running $as_me. ##
10760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10765 # Handling of arguments.
10766 for ac_config_target
in $ac_config_targets
10768 case $ac_config_target in
10769 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10770 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10771 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10772 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10773 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10774 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10775 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10776 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10777 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10778 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10779 "man/client.conf.man") CONFIG_FILES
="$CONFIG_FILES man/client.conf.man" ;;
10780 "man/cups-files.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cups-files.conf.man" ;;
10781 "man/cups-lpd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-lpd.man" ;;
10782 "man/cups-snmp.man") CONFIG_FILES
="$CONFIG_FILES man/cups-snmp.man" ;;
10783 "man/cupsd.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.conf.man" ;;
10784 "man/cupsd.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.man" ;;
10785 "man/lpoptions.man") CONFIG_FILES
="$CONFIG_FILES man/lpoptions.man" ;;
10786 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10787 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10788 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10789 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10790 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10791 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10792 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10793 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10794 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10795 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10796 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10798 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10803 # If the user did not use the arguments to specify the items to instantiate,
10804 # then the envvar interface is used. Set only those that are not.
10805 # We use the long form for the default assignment because of an extremely
10806 # bizarre bug on SunOS 4.1.3.
10807 if $ac_need_defaults; then
10808 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10809 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10812 # Have a temporary directory for convenience. Make it in the build tree
10813 # simply because there is no reason against having it here, and in addition,
10814 # creating and moving files from /tmp can sometimes cause problems.
10815 # Hook for its removal unless debugging.
10816 # Note that there is a small window in which the directory will not be cleaned:
10817 # after its creation but before its name has been assigned to `$tmp'.
10821 trap 'exit_status=$?
10822 : "${ac_tmp:=$tmp}"
10823 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10825 trap 'as_fn_exit 1' 1 2 13 15
10827 # Create a (secure) tmp directory for tmp files.
10830 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10834 tmp
=.
/conf$$
-$RANDOM
10835 (umask 077 && mkdir
"$tmp")
10836 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10839 # Set up the scripts for CONFIG_FILES section.
10840 # No need to generate them if there are no CONFIG_FILES.
10841 # This happens for instance with `./config.status config.h'.
10842 if test -n "$CONFIG_FILES"; then
10845 ac_cr
=`echo X | tr X '\015'`
10846 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10847 # But we know of no other shell where ac_cr would be empty at this
10848 # point, so we can use a bashism as a fallback.
10849 if test "x$ac_cr" = x
; then
10850 eval ac_cr
=\$
\'\\r
\'
10852 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10853 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10856 ac_cs_awk_cr
=$ac_cr
10859 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10864 echo "cat >conf$$subs.awk <<_ACEOF" &&
10865 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10867 } >conf$$subs.sh ||
10868 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10869 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10871 for ac_last_try in false false false false false :; do
10872 . ./conf$$subs.sh ||
10873 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10875 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10876 if test $ac_delim_n = $ac_delim_num; then
10878 elif $ac_last_try; then
10879 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10881 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10884 rm -f conf$$subs.sh
10886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10887 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10891 s/^/S["/; s
/!.
*/"]=/
10901 s/\(.\{148\}\)..*/\1/
10903 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10908 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10915 s/\(.\{148\}\)..*/\1/
10917 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10921 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10926 ' <conf$$subs.awk | sed '
10931 ' >>$CONFIG_STATUS || ac_write_fail=1
10932 rm -f conf$$subs.awk
10933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10935 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10936 for (key in S) S_is_set[key] = 1
10942 nfields = split(line, field, "@
")
10944 len = length(field[1])
10945 for (i = 2; i < nfields; i++) {
10947 keylen = length(key)
10948 if (S_is_set[key]) {
10950 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10951 len += length(value) + length(field[++i])
10962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10963 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10964 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10967 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10968 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10971 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10972 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10973 # trailing colons and then remove the whole line if VPATH becomes empty
10974 # (actually we leave an empty line to preserve line numbers).
10975 if test "x
$srcdir" = x.; then
10976 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10995 fi # test -n "$CONFIG_FILES"
10997 # Set up the scripts for CONFIG_HEADERS section.
10998 # No need to generate them if there are no CONFIG_HEADERS.
10999 # This happens for instance with `./config.status Makefile'.
11000 if test -n "$CONFIG_HEADERS"; then
11001 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11005 # Transform confdefs.h into an awk script `defines.awk', embedded as
11006 # here-document in config.status, that substitutes the proper values into
11007 # config.h.in to produce config.h.
11009 # Create a delimiter string that does not exist in confdefs.h, to ease
11010 # handling of long lines.
11012 for ac_last_try in false false :; do
11013 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11014 if test -z "$ac_tt"; then
11016 elif $ac_last_try; then
11017 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11019 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11023 # For the awk script, D is an array of macro values keyed by name,
11024 # likewise P contains macro parameters if any. Preserve backslash
11025 # newline sequences.
11027 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11029 s/.\{148\}/&'"$ac_delim"'/g
11032 s/^[ ]*#[ ]*define[ ][ ]*/ /
11039 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11041 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11045 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11046 D["\
1"]=" \
3\\\\\\n
"\\/p
11048 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11053 s/.\{148\}/&'"$ac_delim"'/g
11058 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11061 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11063 ' <confdefs.h | sed '
11064 s/'"$ac_delim"'/"\\\
11065 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11068 for (key in D) D_is_set[key] = 1
11071 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11073 split(line, arg, " ")
11074 if (arg[1] == "#") {
11078 defundef
= substr
(arg
[1], 2)
11081 split(mac1
, mac2
, "(") #)
11083 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11084 if (D_is_set
[macro
]) {
11085 # Preserve the white space surrounding the "#".
11086 print prefix
"define", macro P
[macro
] D
[macro
]
11089 # Replace #undef with comments. This is necessary, for example,
11090 # in the case of _POSIX_SOURCE, which is predefined and required
11091 # on some systems where configure will not decide to define it.
11092 if (defundef
== "undef") {
11093 print
"/*", prefix defundef
, macro
, "*/"
11101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11102 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11103 fi # test -n "$CONFIG_HEADERS"
11106 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11111 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11113 case $ac_mode$ac_tag in
11115 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11116 :[FH
]-) ac_tag
=-:-;;
11117 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11134 -) ac_f
="$ac_tmp/stdin";;
11135 *) # Look for the file first in the build tree, then in the source tree
11136 # (if the path is not absolute). The absolute path cannot be DOS-style,
11137 # because $ac_f cannot contain `:'.
11141 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11143 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11145 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11146 as_fn_append ac_file_inputs
" '$ac_f'"
11149 # Let's still pretend it is `configure' which instantiates (i.e., don't
11150 # use $as_me), people would be surprised to read:
11151 # /* config.h. Generated by config.status. */
11152 configure_input
='Generated from '`
11153 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11155 if test x
"$ac_file" != x-
; then
11156 configure_input
="$ac_file. $configure_input"
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11158 $as_echo "$as_me: creating $ac_file" >&6;}
11160 # Neutralize special characters interpreted by sed in replacement strings.
11161 case $configure_input in #(
11162 *\
&* |
*\|
* |
*\\* )
11163 ac_sed_conf_input
=`$as_echo "$configure_input" |
11164 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11165 *) ac_sed_conf_input
=$configure_input;;
11169 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11170 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11175 ac_dir
=`$as_dirname -- "$ac_file" ||
11176 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11177 X"$ac_file" : 'X\(//\)[^/]' \| \
11178 X"$ac_file" : 'X\(//\)$' \| \
11179 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11180 $as_echo X"$ac_file" |
11181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11185 /^X\(\/\/\)[^/].*/{
11198 as_dir
="$ac_dir"; as_fn_mkdir_p
11202 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11204 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11205 # A ".." for each directory in $ac_dir_suffix.
11206 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11207 case $ac_top_builddir_sub in
11208 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11209 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11212 ac_abs_top_builddir
=$ac_pwd
11213 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11214 # for backward compatibility:
11215 ac_top_builddir
=$ac_top_build_prefix
11218 .
) # We are building in place.
11220 ac_top_srcdir
=$ac_top_builddir_sub
11221 ac_abs_top_srcdir
=$ac_pwd ;;
11222 [\\/]* | ?
:[\\/]* ) # Absolute name.
11223 ac_srcdir
=$srcdir$ac_dir_suffix;
11224 ac_top_srcdir
=$srcdir
11225 ac_abs_top_srcdir
=$srcdir ;;
11226 *) # Relative name.
11227 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11228 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11229 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11231 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11243 # If the template does not know about datarootdir, expand it.
11244 # FIXME: This hack should be removed a few years after 2.60.
11245 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11256 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11257 *datarootdir
*) ac_datarootdir_seen
=yes;;
11258 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11260 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11263 ac_datarootdir_hack='
11264 s&@datadir@&$datadir&g
11265 s&@docdir@&$docdir&g
11266 s&@infodir@&$infodir&g
11267 s&@localedir@&$localedir&g
11268 s&@mandir@&$mandir&g
11269 s&\\\${datarootdir}&$datarootdir&g' ;;
11273 # Neutralize VPATH when `$srcdir' = `.'.
11274 # Shell code in configure.ac might set extrasub.
11275 # FIXME: do we really want to maintain this feature?
11276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11277 ac_sed_extra="$ac_vpsub
11280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11282 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11283 s|@configure_input@|
$ac_sed_conf_input|
;t t
11284 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11285 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11286 s
&@srcdir@
&$ac_srcdir&;t t
11287 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11288 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11289 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11290 s
&@builddir@
&$ac_builddir&;t t
11291 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11292 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11293 $ac_datarootdir_hack
11295 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11296 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11298 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11299 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11300 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11301 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11303 which seems to be undefined. Please make sure it is defined" >&5
11304 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11305 which seems to be undefined. Please make sure it is defined" >&2;}
11307 rm -f "$ac_tmp/stdin"
11309 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11310 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11318 if test x"$ac_file" != x-; then
11320 $as_echo "/* $configure_input */" \
11321 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11322 } >"$ac_tmp/config.h" \
11323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11324 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11326 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11329 mv "$ac_tmp/config.h" "$ac_file" \
11330 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11333 $as_echo "/* $configure_input */" \
11334 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11335 || as_fn_error $? "could not create -" "$LINENO" 5
11347 ac_clean_files=$ac_clean_files_save
11349 test $ac_write_fail = 0 ||
11350 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11353 # configure is writing to config.log, and then calls config.status.
11354 # config.status does its own redirection, appending to config.log.
11355 # Unfortunately, on DOS this fails, as config.log is still kept open
11356 # by configure, so config.status won't be able to
write to it
; its
11357 # output is simply discarded. So we exec the FD to /dev/null,
11358 # effectively closing config.log, so it can be properly (re)opened and
11359 # appended to by config.status. When coming back to configure, we
11360 # need to make the FD available again.
11361 if test "$no_create" != yes; then
11363 ac_config_status_args
=
11364 test "$silent" = yes &&
11365 ac_config_status_args
="$ac_config_status_args --quiet"
11367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11370 # would make configure fail if this is the last instruction.
11371 $ac_cs_success || as_fn_exit
1
11373 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11375 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11379 chmod +x cups-config