2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for CUPS 2.3.0.
5 # Report bugs to <https://github.com/apple/cups/issues>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://github.com/apple/cups/issues about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
582 PACKAGE_TARNAME
='cups'
583 PACKAGE_VERSION
='2.3.0'
584 PACKAGE_STRING
='CUPS 2.3.0'
585 PACKAGE_BUGREPORT
='https://github.com/apple/cups/issues'
586 PACKAGE_URL
='https://www.cups.org/'
588 # Factoring default headers for most tests.
589 ac_includes_default
="\
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
601 # ifdef HAVE_STDLIB_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
625 ac_subst_vars
='LTLIBOBJS
635 CUPS_DEFAULT_SMB_CONFIG_FILE
636 CUPS_DEFAULT_LPD_CONFIG_FILE
637 CUPS_DEFAULT_PRINTCAP
638 CUPS_PRIMARY_SYSTEM_GROUP
643 CUPS_BROWSE_LOCAL_PROTOCOLS
646 CUPS_ACCESS_LOG_LEVEL
651 CUPS_CONFIG_FILE_PERM
684 CUPS_DEFAULT_GSSSERVICENAME
687 CUPS_LISTEN_DOMAINSOCKET
688 CUPS_DEFAULT_DOMAINSOCKET
736 CUPS_DEFAULT_PRINTOPERATOR_AUTH
820 program_transform_name
833 enable_option_checking
857 enable_libtool_unsupported
895 with_config_file_perm
900 with_access_log_level
904 enable_default_shared
918 ac_precious_vars
='build_alias
932 # Initialize some variables set by options.
934 ac_init_version
=false
935 ac_unrecognized_opts
=
937 # The variables have the same names as the options, with
938 # dashes changed to underlines.
946 program_transform_name
=s
,x
,x
,
954 # Installation directory options.
955 # These are left unexpanded so users can "make install exec_prefix=/foo"
956 # and all the variables that are supposed to be based on exec_prefix
957 # by default will actually change.
958 # Use braces instead of parens because sh, perl, etc. also accept them.
959 # (The list follows the same order as the GNU Coding Standards.)
960 bindir
='${exec_prefix}/bin'
961 sbindir
='${exec_prefix}/sbin'
962 libexecdir
='${exec_prefix}/libexec'
963 datarootdir
='${prefix}/share'
964 datadir
='${datarootdir}'
965 sysconfdir
='${prefix}/etc'
966 sharedstatedir
='${prefix}/com'
967 localstatedir
='${prefix}/var'
968 includedir
='${prefix}/include'
969 oldincludedir
='/usr/include'
970 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
971 infodir
='${datarootdir}/info'
976 libdir
='${exec_prefix}/lib'
977 localedir
='${datarootdir}/locale'
978 mandir
='${datarootdir}/man'
984 # If the previous option needs an argument, assign it.
985 if test -n "$ac_prev"; then
986 eval $ac_prev=\
$ac_option
992 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 # Accept the important Cygnus configure options, so we can diagnose typos.
999 case $ac_dashdash$ac_option in
1003 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1005 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1006 bindir
=$ac_optarg ;;
1008 -build |
--build |
--buil |
--bui |
--bu)
1009 ac_prev
=build_alias
;;
1010 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1011 build_alias
=$ac_optarg ;;
1013 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1014 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1015 ac_prev
=cache_file
;;
1016 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1017 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1018 cache_file
=$ac_optarg ;;
1020 --config-cache |
-C)
1021 cache_file
=config.cache
;;
1023 -datadir |
--datadir |
--datadi |
--datad)
1025 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1026 datadir
=$ac_optarg ;;
1028 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1029 |
--dataroo |
--dataro |
--datar)
1030 ac_prev
=datarootdir
;;
1031 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1032 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1033 datarootdir
=$ac_optarg ;;
1035 -disable-* |
--disable-*)
1036 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1039 as_fn_error $?
"invalid feature name: $ac_useropt"
1040 ac_useropt_orig
=$ac_useropt
1041 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1044 "enable_
$ac_useropt"
1046 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1047 ac_unrecognized_sep
=', ';;
1049 eval enable_
$ac_useropt=no
;;
1051 -docdir |
--docdir |
--docdi |
--doc |
--do)
1053 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1054 docdir
=$ac_optarg ;;
1056 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1058 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1059 dvidir
=$ac_optarg ;;
1061 -enable-* |
--enable-*)
1062 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1065 as_fn_error $?
"invalid feature name: $ac_useropt"
1066 ac_useropt_orig
=$ac_useropt
1067 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1070 "enable_
$ac_useropt"
1072 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1073 ac_unrecognized_sep
=', ';;
1075 eval enable_
$ac_useropt=\
$ac_optarg ;;
1077 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1078 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1079 |
--exec |
--exe |
--ex)
1080 ac_prev
=exec_prefix
;;
1081 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1082 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1083 |
--exec=* |
--exe=* |
--ex=*)
1084 exec_prefix
=$ac_optarg ;;
1086 -gas |
--gas |
--ga |
--g)
1087 # Obsolete; use --with-gas.
1090 -help |
--help |
--hel |
--he |
-h)
1091 ac_init_help
=long
;;
1092 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1093 ac_init_help
=recursive
;;
1094 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1095 ac_init_help
=short
;;
1097 -host |
--host |
--hos |
--ho)
1098 ac_prev
=host_alias
;;
1099 -host=* |
--host=* |
--hos=* |
--ho=*)
1100 host_alias
=$ac_optarg ;;
1102 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1104 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1106 htmldir
=$ac_optarg ;;
1108 -includedir |
--includedir |
--includedi |
--included |
--include \
1109 |
--includ |
--inclu |
--incl |
--inc)
1110 ac_prev
=includedir
;;
1111 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1112 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1113 includedir
=$ac_optarg ;;
1115 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1117 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1118 infodir
=$ac_optarg ;;
1120 -libdir |
--libdir |
--libdi |
--libd)
1122 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1123 libdir
=$ac_optarg ;;
1125 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1126 |
--libexe |
--libex |
--libe)
1127 ac_prev
=libexecdir
;;
1128 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1129 |
--libexe=* |
--libex=* |
--libe=*)
1130 libexecdir
=$ac_optarg ;;
1132 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1133 ac_prev
=localedir
;;
1134 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1135 localedir
=$ac_optarg ;;
1137 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1138 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1139 ac_prev
=localstatedir
;;
1140 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1141 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1142 localstatedir
=$ac_optarg ;;
1144 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1146 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1147 mandir
=$ac_optarg ;;
1149 -nfp |
--nfp |
--nf)
1150 # Obsolete; use --without-fp.
1153 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1154 |
--no-cr |
--no-c |
-n)
1157 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1158 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1161 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1162 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1163 |
--oldin |
--oldi |
--old |
--ol |
--o)
1164 ac_prev
=oldincludedir
;;
1165 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1166 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1167 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1168 oldincludedir
=$ac_optarg ;;
1170 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1172 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1173 prefix
=$ac_optarg ;;
1175 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1176 |
--program-pre |
--program-pr |
--program-p)
1177 ac_prev
=program_prefix
;;
1178 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1179 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1180 program_prefix
=$ac_optarg ;;
1182 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1183 |
--program-suf |
--program-su |
--program-s)
1184 ac_prev
=program_suffix
;;
1185 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1186 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1187 program_suffix
=$ac_optarg ;;
1189 -program-transform-name |
--program-transform-name \
1190 |
--program-transform-nam |
--program-transform-na \
1191 |
--program-transform-n |
--program-transform- \
1192 |
--program-transform |
--program-transfor \
1193 |
--program-transfo |
--program-transf \
1194 |
--program-trans |
--program-tran \
1195 |
--progr-tra |
--program-tr |
--program-t)
1196 ac_prev
=program_transform_name
;;
1197 -program-transform-name=* |
--program-transform-name=* \
1198 |
--program-transform-nam=* |
--program-transform-na=* \
1199 |
--program-transform-n=* |
--program-transform-=* \
1200 |
--program-transform=* |
--program-transfor=* \
1201 |
--program-transfo=* |
--program-transf=* \
1202 |
--program-trans=* |
--program-tran=* \
1203 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1204 program_transform_name
=$ac_optarg ;;
1206 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1208 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1209 pdfdir
=$ac_optarg ;;
1211 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1213 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1216 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1217 |
-silent |
--silent |
--silen |
--sile |
--sil)
1220 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1222 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1224 sbindir
=$ac_optarg ;;
1226 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1227 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1228 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1230 ac_prev
=sharedstatedir
;;
1231 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1232 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1233 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1235 sharedstatedir
=$ac_optarg ;;
1237 -site |
--site |
--sit)
1239 -site=* |
--site=* |
--sit=*)
1242 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1244 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1245 srcdir
=$ac_optarg ;;
1247 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1248 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1249 ac_prev
=sysconfdir
;;
1250 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1251 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1252 sysconfdir
=$ac_optarg ;;
1254 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1255 ac_prev
=target_alias
;;
1256 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1257 target_alias
=$ac_optarg ;;
1259 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1262 -version |
--version |
--versio |
--versi |
--vers |
-V)
1263 ac_init_version
=: ;;
1266 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1269 as_fn_error $?
"invalid package name: $ac_useropt"
1270 ac_useropt_orig
=$ac_useropt
1271 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1276 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1277 ac_unrecognized_sep
=', ';;
1279 eval with_
$ac_useropt=\
$ac_optarg ;;
1281 -without-* |
--without-*)
1282 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1285 as_fn_error $?
"invalid package name: $ac_useropt"
1286 ac_useropt_orig
=$ac_useropt
1287 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1292 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1293 ac_unrecognized_sep
=', ';;
1295 eval with_
$ac_useropt=no
;;
1298 # Obsolete; use --with-x.
1301 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1302 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1303 ac_prev
=x_includes
;;
1304 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1305 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1306 x_includes
=$ac_optarg ;;
1308 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1309 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1310 ac_prev
=x_libraries
;;
1311 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1312 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1313 x_libraries
=$ac_optarg ;;
1315 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1316 Try \`$0 --help' for more information"
1320 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 case $ac_envvar in #(
1323 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1324 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1326 eval $ac_envvar=\
$ac_optarg
1327 export $ac_envvar ;;
1330 # FIXME: should be removed in autoconf 3.0.
1331 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1333 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1340 if test -n "$ac_prev"; then
1341 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1342 as_fn_error $?
"missing argument to $ac_option"
1345 if test -n "$ac_unrecognized_opts"; then
1346 case $enable_option_checking in
1348 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1349 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1353 # Check all directory arguments for consistency.
1354 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1355 datadir sysconfdir sharedstatedir localstatedir includedir \
1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1357 libdir localedir mandir
1359 eval ac_val
=\$
$ac_var
1360 # Remove trailing slashes.
1363 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1364 eval $ac_var=\
$ac_val;;
1366 # Be sure to have absolute directory names.
1368 [\\/$
]* | ?
:[\\/]* ) continue;;
1369 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1371 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1379 target
=$target_alias
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x
; then
1383 if test "x$build_alias" = x
; then
1384 cross_compiling
=maybe
1385 elif test "x$build_alias" != "x$host_alias"; then
1391 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1393 test "$silent" = yes && exec 6>/dev
/null
1396 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di
=`ls -di .` &&
1398 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1399 as_fn_error $?
"working directory cannot be determined"
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 as_fn_error $?
"pwd does not report name of working directory"
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted
=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir
=`$as_dirname -- "$as_myself" ||
1409 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$as_myself" : 'X\(//\)[^/]' \| \
1411 X"$as_myself" : 'X\(//\)$' \| \
1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413 $as_echo X"$as_myself" |
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1436 ac_srcdir_defaulted
=no
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1440 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1442 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1446 # When building in place, set srcdir=.
1447 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450 # Remove unnecessary trailing slashes from srcdir.
1451 # Double slashes in file names in object file debugging info
1452 # mess up M-x gdb in Emacs.
1454 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456 for ac_var
in $ac_precious_vars; do
1457 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1458 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1459 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1460 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1464 # Report the --help message.
1466 if test "$ac_init_help" = "long"; then
1467 # Omit some internal or obsolete options to make the list less imposing.
1468 # This message is too long to be a string in the A/UX 3.1 sh.
1470 \`configure' configures CUPS 2.3.0 to adapt to many kinds of systems.
1472 Usage: $0 [OPTION]... [VAR=VALUE]...
1474 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475 VAR=VALUE. See below for descriptions of some of the useful variables.
1477 Defaults for the options are specified in brackets.
1480 -h, --help display this help and exit
1481 --help=short display options specific to this package
1482 --help=recursive display the short help of all the included packages
1483 -V, --version display version information and exit
1484 -q, --quiet, --silent do not print \`checking ...' messages
1485 --cache-file=FILE cache test results in FILE [disabled]
1486 -C, --config-cache alias for \`--cache-file=config.cache'
1487 -n, --no-create do not create output files
1488 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1490 Installation directories:
1491 --prefix=PREFIX install architecture-independent files in PREFIX
1492 [$ac_default_prefix]
1493 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1496 By default, \`make install' will install all the files in
1497 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1498 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499 for instance \`--prefix=\$HOME'.
1501 For better control, use the options below.
1503 Fine tuning of the installation directories:
1504 --bindir=DIR user executables [EPREFIX/bin]
1505 --sbindir=DIR system admin executables [EPREFIX/sbin]
1506 --libexecdir=DIR program executables [EPREFIX/libexec]
1507 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1508 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1509 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1510 --libdir=DIR object code libraries [EPREFIX/lib]
1511 --includedir=DIR C header files [PREFIX/include]
1512 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1513 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1514 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1515 --infodir=DIR info documentation [DATAROOTDIR/info]
1516 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1517 --mandir=DIR man documentation [DATAROOTDIR/man]
1518 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1519 --htmldir=DIR html documentation [DOCDIR]
1520 --dvidir=DIR dvi documentation [DOCDIR]
1521 --pdfdir=DIR pdf documentation [DOCDIR]
1522 --psdir=DIR ps documentation [DOCDIR]
1528 --build=BUILD configure
for building on BUILD
[guessed
]
1529 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1533 if test -n "$ac_init_help"; then
1534 case $ac_init_help in
1535 short | recursive
) echo "Configuration of CUPS 2.3.0:";;
1540 --disable-option-checking ignore unrecognized
--enable/--with options
1541 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1542 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1543 --enable-static install static libraries
1544 --enable-mallinfo build with malloc debug logging
1545 --enable-libpaper build with libpaper support
1546 --enable-libusb use libusb
for USB printing
1547 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1548 --enable-acl build with POSIX ACL support
1549 --disable-dbus build without DBUS support
1550 --disable-shared do not create shared libraries
1551 --enable-libtool-unsupported=/path
/to
/libtool
1552 build with libtool
(UNSUPPORTED
!)
1553 --enable-debug build with debugging symbols
1554 --enable-debug-guards build with memory allocation guards
1555 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1556 --enable-unit-tests build and run unit tests
1557 --enable-relro build with the GCC relro option
1558 --enable-sanitizer build with AddressSanitizer
1559 --disable-gssapi disable GSSAPI support
1560 --disable-threads disable multi-threading support
1561 --disable-ssl disable SSL
/TLS support
1562 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1563 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1564 --disable-pam disable PAM support
1565 --disable-largefile omit support
for large files
1566 --disable-avahi disable DNS Service Discovery support using Avahi
1567 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1568 --disable-launchd disable launchd support
1569 --disable-systemd disable systemd support
1570 --enable-upstart enable upstart support
1571 --enable-page-logging enable page_log by default
1572 --disable-browsing disable Browsing by default
1573 --disable-default-shared
1574 disable DefaultShared by default
1575 --disable-raw-printing do not allow raw printing by default
1576 --enable-webif enable the web interface by default
, default
=no
for macOS
1579 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1580 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1581 --with-cups-build set "cups-config --build" string
1582 --with-dbusdir set DBUS configuration directory
1583 --with-adminkey set the default SystemAuthKey value
1584 --with-operkey set the default operator @AUTHKEY value
1585 --with-components set components to build
:
1586 - "all" (default
) builds everything
1587 - "core" builds libcups and ipptool
1588 - "libcups" builds just libcups
1589 - "libcupslite" builds just libcups without driver support
1590 --with-privateinclude set path
for private include files
, default
=none
1591 --with-lpdconfig set URI
for LPD config
file
1592 --with-smbconfig set URI
for Samba config
file
1593 --with-cachedir set path
for cache files
1594 --with-icondir set path
for application icons
1595 --with-menudir set path
for application menus
1596 --with-docdir set path
for documentation
1597 --with-fontpath set font path
for pstoraster
1598 --with-logdir set path
for log files
1599 --with-rundir set transient run-time state directory
1600 --with-optim set optimization flags
1601 --with-archflags set default architecture flags
1602 --with-ldarchflags set program architecture flags
1603 --with-domainsocket set unix domain socket name
1604 --with-gssservicename set default gss service name
1605 --with-pam-module set the PAM module to use
1606 --with-dnssd-libs set directory
for DNS Service Discovery library
1607 --with-dnssd-includes set directory
for DNS Service Discovery includes
1608 --with-systemd set directory
for systemd service files
1609 --with-smfmanifestdir set path
for Solaris SMF manifest
1610 --with-rcdir set path
for rc scripts
1611 --with-rclevels set run levels
for rc scripts
1612 --with-rcstart set start number
for rc scripts
1613 --with-rcstop set stop number
for rc scripts
1614 --with-xinetd set path
for xinetd config files
1615 --with-languages set installed languages
, default
=all
1616 --with-bundledir set localization bundle directory
1617 --with-bundlelang set localization bundle base language
(English or en
)
1618 --with-exe-file-perm set default executable permissions value
, default
=0555
1619 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1620 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1621 --with-log-file-perm set default LogFilePerm value
, default
=0644
1622 --with-fatal-errors set default FatalErrors value
, default
=config
1623 --with-log-level set default LogLevel value
, default
=warn
1624 --with-access-log-level set default AccessLogLevel value
, default
=none
1625 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1626 --with-cups-user set default user
for CUPS
1627 --with-cups-group set default group
for CUPS
1628 --with-system-groups set default system groups
for CUPS
1629 --with-printcap set default printcap
file
1630 --with-lpdconfigfile set default LPDConfigFile URI
1631 --with-smbconfigfile set default SMBConfigFile URI
1632 --with-max-copies set default max copies value
, default
=9999
1633 --with-snmp-address set SNMP query address
, default
=auto
1634 --with-snmp-community set SNMP community
, default
=public
1635 --with-ipp-port set port number
for IPP
, default
=631
1637 Some influential environment variables
:
1638 CC C compiler
command
1639 CFLAGS C compiler flags
1640 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1641 nonstandard directory
<lib dir
>
1642 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1643 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1644 you have headers
in a nonstandard directory
<include dir
>
1646 CXX C
++ compiler
command
1647 CXXFLAGS C
++ compiler flags
1649 Use these variables to override the choices made by
`configure' or to help
1650 it to find libraries and programs with nonstandard names/locations.
1652 Report bugs to <https://github.com/apple/cups/issues>.
1653 CUPS home page: <https://www.cups.org/>.
1658 if test "$ac_init_help" = "recursive"; then
1659 # If there are subdirs, report their specific --help.
1660 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1661 test -d "$ac_dir" ||
1662 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1670 # A ".." for each directory in $ac_dir_suffix.
1671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1672 case $ac_top_builddir_sub in
1673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1677 ac_abs_top_builddir=$ac_pwd
1678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679 # for backward compatibility:
1680 ac_top_builddir=$ac_top_build_prefix
1683 .) # We are building in place.
1685 ac_top_srcdir=$ac_top_builddir_sub
1686 ac_abs_top_srcdir=$ac_pwd ;;
1687 [\\/]* | ?:[\\/]* ) # Absolute name.
1688 ac_srcdir=$srcdir$ac_dir_suffix;
1689 ac_top_srcdir=$srcdir
1690 ac_abs_top_srcdir=$srcdir ;;
1692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693 ac_top_srcdir=$ac_top_build_prefix$srcdir
1694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1698 cd "$ac_dir" || { ac_status=$?; continue; }
1699 # Check for guested configure.
1700 if test -f "$ac_srcdir/configure.gnu"; then
1702 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703 elif test -f "$ac_srcdir/configure"; then
1705 $SHELL "$ac_srcdir/configure" --help=recursive
1707 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1709 cd "$ac_pwd" || { ac_status=$?; break; }
1713 test -n "$ac_init_help" && exit $ac_status
1714 if $ac_init_version; then
1716 CUPS configure 2.3.0
1717 generated by GNU Autoconf 2.69
1719 Copyright (C) 2012 Free Software Foundation, Inc.
1720 This configure script is free software; the Free Software Foundation
1721 gives unlimited permission to copy, distribute and modify it.
1726 ## ------------------------ ##
1727 ## Autoconf initialization. ##
1728 ## ------------------------ ##
1730 # ac_fn_c_try_compile LINENO
1731 # --------------------------
1732 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_compile ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext
1737 if { { ac_try="$ac_compile"
1739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1740 *) ac_try_echo
=$ac_try;;
1742 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_compile") 2>conftest.err
1746 if test -s conftest.err
; then
1747 grep -v '^ *+' conftest.err
>conftest.er1
1748 cat conftest.er1
>&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest.
$ac_objext; then :
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.
$ac_ext >&5
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status
$ac_retval
1766 } # ac_fn_c_try_compile
1768 # ac_fn_c_try_cpp LINENO
1769 # ----------------------
1770 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1773 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1774 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } > conftest.i && {
1790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1805 # ac_fn_cxx_try_compile LINENO
1806 # ----------------------------
1807 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_cxx_try_compile ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext
1812 if { { ac_try="$ac_compile"
1814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1815 *) ac_try_echo
=$ac_try;;
1817 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_compile") 2>conftest.err
1821 if test -s conftest.err
; then
1822 grep -v '^ *+' conftest.err
>conftest.er1
1823 cat conftest.er1
>&5
1824 mv -f conftest.er1 conftest.err
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_cxx_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest.
$ac_objext; then :
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.
$ac_ext >&5
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status
$ac_retval
1841 } # ac_fn_cxx_try_compile
1843 # ac_fn_c_try_link LINENO
1844 # -----------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded.
1848 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1849 rm -f conftest.
$ac_objext conftest
$ac_exeext
1850 if { { ac_try
="$ac_link"
1852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>conftest.err
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && {
1866 test -z "$ac_c_werror_flag" ||
1867 test ! -s conftest.err
1868 } && test -s conftest$ac_exeext && {
1869 test "$cross_compiling" = yes ||
1870 test -x conftest$ac_exeext
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1879 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1880 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1881 # interfere with the next link command; also delete a directory that is
1882 # left behind by Apple's compiler. We do this before executing the actions.
1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1887 } # ac_fn_c_try_link
1889 # ac_fn_c_try_run LINENO
1890 # ----------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1892 # that executables *can* be run.
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if { { ac_try="$ac_link"
1898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1899 *) ac_try_echo
=$ac_try;;
1901 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>&5
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1907 { { case "(($ac_try" in
1908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_try") 2>&5
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; }; }; then :
1919 $as_echo "$as_me: program exited with status $ac_status" >&5
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=$ac_status
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1931 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1934 # the include files in INCLUDES and setting the cache variable VAR
1936 ac_fn_c_check_header_mongrel ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 if eval \${$3+:} false; then :
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1949 # Is the header compilable?
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1951 $as_echo_n "checking $2 usability... " >&6; }
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_header_compiler=yes
1960 ac_header_compiler=no
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1964 $as_echo "$ac_header_compiler" >&6; }
1966 # Is the header present?
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1968 $as_echo_n "checking $2 presence... " >&6; }
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1973 if ac_fn_c_try_cpp "$LINENO"; then :
1974 ac_header_preproc=yes
1976 ac_header_preproc=no
1978 rm -f conftest.err conftest.i conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1980 $as_echo "$ac_header_preproc" >&6; }
1982 # So? What about this header?
1983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1986 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1992 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1994 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1996 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1998 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001 ( $as_echo "## --------------------------------------------------- ##
2002 ## Report this to https://github.com/apple/cups/issues ##
2003 ## --------------------------------------------------- ##"
2004 ) | sed "s/^/$as_me: WARNING: /" >&2
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if eval \${$3+:} false; then :
2010 $as_echo_n "(cached) " >&6
2012 eval "$3=\$ac_header_compiler"
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 } # ac_fn_c_check_header_mongrel
2022 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2023 # -------------------------------------------------------
2024 # Tests whether HEADER exists and can be compiled using the include files in
2025 # INCLUDES, setting the cache variable VAR accordingly.
2026 ac_fn_c_check_header_compile ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if eval \${$3+:} false; then :
2032 $as_echo_n "(cached) " >&6
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2039 if ac_fn_c_try_compile "$LINENO"; then :
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 } # ac_fn_c_check_header_compile
2053 # ac_fn_c_check_func LINENO FUNC VAR
2054 # ----------------------------------
2055 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2056 ac_fn_c_check_func ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2066 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2068 #define $2 innocuous_$2
2070 /* System header to define __stub macros and hopefully few prototypes,
2071 which can conflict with char $2 (); below.
2072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2073 <limits.h> exists even on freestanding compilers. */
2076 # include <limits.h>
2078 # include <assert.h>
2083 /* Override any GCC internal prototype to avoid an error.
2084 Use char because int might match the return type of a GCC
2085 builtin and then its argument prototype would still apply. */
2090 /* The GNU C library defines this for functions which it implements
2091 to always fail with ENOSYS. Some functions are actually named
2092 something starting with __ and the normal name is an alias. */
2093 #if defined __stub_$2 || defined __stub___$2
2105 if ac_fn_c_try_link "$LINENO"; then :
2110 rm -f core conftest.err conftest.$ac_objext \
2111 conftest$ac_exeext conftest.$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 } # ac_fn_c_check_func
2120 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2121 # ----------------------------------------------------
2122 # Tries to find if the field MEMBER exists in type AGGR, after including
2123 # INCLUDES, setting cache variable VAR accordingly.
2124 ac_fn_c_check_member ()
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2128 $as_echo_n "checking for $2.$3... " >&6; }
2129 if eval \${$4+:} false; then :
2130 $as_echo_n "(cached) " >&6
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2145 if ac_fn_c_try_compile "$LINENO"; then :
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2155 if (sizeof ac_aggr.$3)
2161 if ac_fn_c_try_compile "$LINENO"; then :
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 } # ac_fn_c_check_member
2176 cat >config.log <<_ACEOF
2177 This file contains any messages produced by compilers while
2178 running configure, to aid debugging if configure makes a mistake.
2180 It was created by CUPS $as_me 2.3.0, which was
2181 generated by GNU Autoconf 2.69. Invocation command line was
2193 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2194 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2195 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2196 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2197 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2199 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2200 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2202 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2203 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2204 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2205 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2206 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2207 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2208 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 test -z "$as_dir" && as_dir=.
2217 $as_echo "PATH: $as_dir"
2233 # Keep a trace of the command line.
2234 # Strip out --no-create and --no-recursion so they do not pile up.
2235 # Strip out --silent because we don't want to record it for future runs.
2236 # Also quote any args containing shell meta-characters.
2237 # Make two passes to allow for proper duplicate-argument suppression.
2241 ac_must_keep_next=false
2247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2249 | -silent | --silent | --silen | --sile | --sil)
2252 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2255 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2257 as_fn_append ac_configure_args1 " '$ac_arg'"
2258 if test $ac_must_keep_next = true; then
2259 ac_must_keep_next=false # Got value, back to normal.
2262 *=* | --config-cache | -C | -disable-* | --disable-* \
2263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2265 | -with-* | --with-* | -without-* | --without-* | --x)
2266 case "$ac_configure_args0 " in
2267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2270 -* ) ac_must_keep_next=true ;;
2273 as_fn_append ac_configure_args " '$ac_arg'"
2278 { ac_configure_args0=; unset ac_configure_args0;}
2279 { ac_configure_args1=; unset ac_configure_args1;}
2281 # When interrupted or exit'd, cleanup temporary files, and complete
2282 # config.log. We remove comments because anyway the quotes in there
2283 # would cause problems or look ugly.
2284 # WARNING: Use '\'' to represent an apostrophe within the trap.
2285 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2286 trap 'exit_status=$?
2287 # Save into config.log some information that might help in debugging.
2291 $as_echo "## ---------------- ##
2292 ## Cache variables. ##
2293 ## ---------------- ##"
2295 # The following way of writing the cache mishandles newlines in values,
2297 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2298 eval ac_val=\$$ac_var
2302 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2303 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2306 _ | IFS | as_nl) ;; #(
2307 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2308 *) { eval $ac_var=; unset $ac_var;} ;;
2313 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2314 *${as_nl}ac_space=\ *)
2316 "s/'\''/'\''\\\\'\'''\''/g;
2317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2327 $as_echo "## ----------------- ##
2328 ## Output variables. ##
2329 ## ----------------- ##"
2331 for ac_var in $ac_subst_vars
2333 eval ac_val=\$$ac_var
2335 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 $as_echo "$ac_var='\''$ac_val'\''"
2341 if test -n "$ac_subst_files"; then
2342 $as_echo "## ------------------- ##
2343 ## File substitutions. ##
2344 ## ------------------- ##"
2346 for ac_var in $ac_subst_files
2348 eval ac_val=\$$ac_var
2350 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352 $as_echo "$ac_var='\''$ac_val'\''"
2357 if test -s confdefs.h; then
2358 $as_echo "## ----------- ##
2365 test "$ac_signal" != 0 &&
2366 $as_echo "$as_me: caught signal $ac_signal"
2367 $as_echo "$as_me: exit $exit_status"
2369 rm -f core *.core core.conftest.* &&
2370 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2373 for ac_signal in 1 2 13 15; do
2374 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2378 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2379 rm -f -r conftest* confdefs.h
2381 $as_echo "/* confdefs.h */" > confdefs.h
2383 # Predefined preprocessor variables.
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_NAME "$PACKAGE_NAME"
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_STRING "$PACKAGE_STRING"
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_URL "$PACKAGE_URL"
2410 # Let the site file select an alternate cache file if it wants to.
2411 # Prefer an explicitly selected file to automatically selected ones.
2414 if test -n "$CONFIG_SITE"; then
2415 # We do not want a PATH search for config.site.
2416 case $CONFIG_SITE in #((
2417 -*) ac_site_file1=./$CONFIG_SITE;;
2418 */*) ac_site_file1=$CONFIG_SITE;;
2419 *) ac_site_file1=./$CONFIG_SITE;;
2421 elif test "x$prefix" != xNONE; then
2422 ac_site_file1=$prefix/share/config.site
2423 ac_site_file2=$prefix/etc/config.site
2425 ac_site_file1=$ac_default_prefix/share/config.site
2426 ac_site_file2=$ac_default_prefix/etc/config.site
2428 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2430 test "x$ac_site_file" = xNONE && continue
2431 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2433 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2434 sed 's/^/| /' "$ac_site_file" >&5
2436 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 as_fn_error $? "failed to load site
script $ac_site_file
2439 See \
`config.log' for more details" "$LINENO" 5; }
2443 if test -r "$cache_file"; then
2444 # Some versions of bash will fail to source /dev/null (special files
2445 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2446 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2448 $as_echo "$as_me: loading cache $cache_file" >&6;}
2450 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2451 *) . "./$cache_file";;
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2456 $as_echo "$as_me: creating cache $cache_file" >&6;}
2460 # Check that the precious variables saved in the cache have kept the same
2462 ac_cache_corrupted=false
2463 for ac_var in $ac_precious_vars; do
2464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2465 eval ac_new_set=\$ac_env_${ac_var}_set
2466 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2467 eval ac_new_val=\$ac_env_${ac_var}_value
2468 case $ac_old_set,$ac_new_set in
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2471 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2472 ac_cache_corrupted=: ;;
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2475 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2476 ac_cache_corrupted=: ;;
2479 if test "x$ac_old_val" != "x$ac_new_val"; then
2480 # differences in whitespace do not lead to failure.
2481 ac_old_val_w=`echo x
$ac_old_val`
2482 ac_new_val_w=`echo x
$ac_new_val`
2483 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2485 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2486 ac_cache_corrupted=:
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2489 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2490 eval $ac_var=\$ac_old_val
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2493 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2495 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2498 # Pass precious variables to config.status.
2499 if test "$ac_new_set" = set; then
2501 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2502 *) ac_arg=$ac_var=$ac_new_val ;;
2504 case " $ac_configure_args " in
2505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2506 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2510 if $ac_cache_corrupted; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2514 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2515 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2517 ## -------------------- ##
2518 ## Main body of script. ##
2519 ## -------------------- ##
2522 ac_cpp='$CPP $CPPFLAGS'
2523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2532 if test -f "$ac_dir/install-sh"; then
2534 ac_install_sh="$ac_aux_dir/install-sh -c"
2536 elif test -f "$ac_dir/install.sh"; then
2538 ac_install_sh="$ac_aux_dir/install.sh -c"
2540 elif test -f "$ac_dir/shtool"; then
2542 ac_install_sh="$ac_aux_dir/shtool install -c"
2546 if test -z "$ac_aux_dir"; then
2547 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2550 # These three variables are undocumented and unsupported,
2551 # and are intended to be withdrawn in a future Autoconf release.
2552 # They can cause serious problems if a builder's source tree is in a directory
2553 # whose full name contains unusual characters.
2554 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2555 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2556 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2559 # Make sure we can run config.sub.
2560 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2561 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2564 $as_echo_n "checking build system type... " >&6; }
2565 if ${ac_cv_build+:} false; then :
2566 $as_echo_n "(cached) " >&6
2568 ac_build_alias=$build_alias
2569 test "x$ac_build_alias" = x &&
2570 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2571 test "x$ac_build_alias" = x &&
2572 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2573 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2574 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2578 $as_echo "$ac_cv_build" >&6; }
2579 case $ac_cv_build in
2581 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2584 ac_save_IFS=$IFS; IFS='-'
2590 # Remember, the first character of IFS is used to create $*,
2591 # except with old shells:
2594 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2598 $as_echo_n "checking host system type... " >&6; }
2599 if ${ac_cv_host+:} false; then :
2600 $as_echo_n "(cached) " >&6
2602 if test "x$host_alias" = x; then
2603 ac_cv_host=$ac_cv_build
2605 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2606 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2611 $as_echo "$ac_cv_host" >&6; }
2614 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2617 ac_save_IFS=$IFS; IFS='-'
2623 # Remember, the first character of IFS is used to create $*,
2624 # except with old shells:
2627 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2631 host_os_name=`echo $host_os |
sed -e '1,$s/[0-9.]*$//g'`
2632 host_os_version=`echo $host_os |
sed -e '1,$s/^[^0-9.]*//g' |
awk -F.
'{print $1 $2}'`
2633 # Linux often does not yield an OS version we can use...
2634 if test "x$host_os_version" = x; then
2638 if test "$build" = "$host"; then
2639 # No, build local targets
2642 # Yes, don't build local targets
2647 for ac_prog in codesign true
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if ${ac_cv_path_CODE_SIGN+:} false; then :
2654 $as_echo_n "(cached) " >&6
2658 ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_path_CODE_SIGN="$as_dir/$ac_word$ac_exec_ext"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 CODE_SIGN=$ac_cv_path_CODE_SIGN
2680 if test -n "$CODE_SIGN"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5
2682 $as_echo "$CODE_SIGN" >&6; }
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2689 test -n "$CODE_SIGN" && break
2694 ac_config_headers="$ac_config_headers config.h"
2697 CUPS_VERSION="2.3.0"
2699 CUPS_BUILD="cups-$CUPS_VERSION"
2702 # Check whether --with-cups_build was given.
2703 if test "${with_cups_build+set}" = set; then :
2704 withval=$with_cups_build; CUPS_BUILD="$withval"
2711 cat >>confdefs.h <<_ACEOF
2712 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2715 cat >>confdefs.h <<_ACEOF
2716 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2720 CFLAGS="${CFLAGS:=}"
2721 CPPFLAGS="${CPPFLAGS:=}"
2722 CXXFLAGS="${CXXFLAGS:=}"
2723 LDFLAGS="${LDFLAGS:=}"
2725 for ac_prog in gawk mawk nawk awk
2727 # Extract the first word of "$ac_prog", so it can be a program name with args.
2728 set dummy $ac_prog; ac_word=$2
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730 $as_echo_n "checking for $ac_word... " >&6; }
2731 if ${ac_cv_prog_AWK+:} false; then :
2732 $as_echo_n "(cached) " >&6
2734 if test -n "$AWK"; then
2735 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744 ac_cv_prog_AWK="$ac_prog"
2745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 if test -n "$AWK"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2757 $as_echo "$AWK" >&6; }
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2764 test -n "$AWK" && break
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772 if test -n "$ac_tool_prefix"; then
2773 for ac_prog in clang cc gcc
2775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if ${ac_cv_prog_CC+:} false; then :
2780 $as_echo_n "(cached) " >&6
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 if test -n "$CC"; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805 $as_echo "$CC" >&6; }
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2812 test -n "$CC" && break
2815 if test -z "$CC"; then
2817 for ac_prog in clang cc gcc
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2824 $as_echo_n "(cached) " >&6
2826 if test -n "$ac_ct_CC"; then
2827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2836 ac_cv_prog_ac_ct_CC="$ac_prog"
2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2847 if test -n "$ac_ct_CC"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2849 $as_echo "$ac_ct_CC" >&6; }
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2856 test -n "$ac_ct_CC" && break
2859 if test "x$ac_ct_CC" = x; then
2862 case $cross_compiling:$ac_tool_warned in
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2866 ac_tool_warned=yes ;;
2873 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2876 See \
`config.log' for more details" "$LINENO" 5; }
2878 # Provide some information about the compiler.
2879 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2882 for ac_option in --version -v -V -qversion; do
2883 { { ac_try="$ac_compiler $ac_option >&5"
2885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2886 *) ac_try_echo
=$ac_try;;
2888 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2889 $as_echo "$ac_try_echo"; } >&5
2890 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2892 if test -s conftest.err
; then
2894 ... rest of stderr output deleted ...
2895 10q' conftest.err
>conftest.er1
2896 cat conftest.er1
>&5
2898 rm -f conftest.er1 conftest.err
2899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2900 test $ac_status = 0; }
2903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2904 /* end confdefs.h. */
2914 ac_clean_files_save
=$ac_clean_files
2915 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2916 # Try to create an executable without -o first, disregard a.out.
2917 # It will help us diagnose broken compilers, and finding out an intuition
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2920 $as_echo_n "checking whether the C compiler works... " >&6; }
2921 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2923 # The possible output files:
2924 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2927 for ac_file
in $ac_files
2930 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2931 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2936 if { { ac_try
="$ac_link_default"
2938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2942 $as_echo "$ac_try_echo"; } >&5
2943 (eval "$ac_link_default") 2>&5
2945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2946 test $ac_status = 0; }; then :
2947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2948 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2949 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2950 # so that the user can short-circuit this test for compilers unknown to
2952 for ac_file in $ac_files ''
2954 test -f "$ac_file" || continue
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2959 # We found the default executable, but exeext='' is most
2963 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2967 # We set ac_cv_exeext here because the later test for it is not
2968 # safe: cross compilers may not add the suffix if given an `-o'
2969 # argument, so we may need to know it at that point already.
2970 # Even if this section looks crufty: it has the advantage of
2977 test "$ac_cv_exeext" = no && ac_cv_exeext=
2982 if test -z "$ac_file"; then :
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 $as_echo "$as_me: failed program was:" >&5
2986 sed 's
/^
/|
/' conftest.$ac_ext >&5
2988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2990 as_fn_error 77 "C compiler cannot create executables
2991 See \`config.log
' for more details" "$LINENO" 5; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2994 $as_echo "yes" >&6; }
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2997 $as_echo_n "checking for C compiler default output file name... " >&6; }
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2999 $as_echo "$ac_file" >&6; }
3000 ac_exeext=$ac_cv_exeext
3002 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3003 ac_clean_files=$ac_clean_files_save
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3005 $as_echo_n "checking for suffix of executables... " >&6; }
3006 if { { ac_try="$ac_link"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013 (eval "$ac_link") 2>&5
3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }; then :
3017 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3018 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3019 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3021 for ac_file
in conftest.exe conftest conftest.
*; do
3022 test -f "$ac_file" ||
continue
3024 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3025 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3034 See \`config.log' for more details" "$LINENO" 5; }
3036 rm -f conftest conftest
$ac_cv_exeext
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3038 $as_echo "$ac_cv_exeext" >&6; }
3040 rm -f conftest.
$ac_ext
3041 EXEEXT
=$ac_cv_exeext
3043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3044 /* end confdefs.h. */
3049 FILE *f = fopen ("conftest.out", "w");
3050 return ferror (f) || fclose (f) != 0;
3056 ac_clean_files
="$ac_clean_files conftest.out"
3057 # Check that the compiler produces executables we can run. If not, either
3058 # the compiler is broken, or we cross compile.
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3060 $as_echo_n "checking whether we are cross compiling... " >&6; }
3061 if test "$cross_compiling" != yes; then
3062 { { ac_try
="$ac_link"
3064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3068 $as_echo "$ac_try_echo"; } >&5
3069 (eval "$ac_link") 2>&5
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }
3073 if { ac_try='./conftest$ac_cv_exeext'
3074 { { case "(($ac_try" in
3075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3076 *) ac_try_echo
=$ac_try;;
3078 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079 $as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_try") 2>&5
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }; }; then
3086 if test "$cross_compiling" = maybe
; then
3089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091 as_fn_error $?
"cannot run C compiled programs.
3092 If you meant to cross compile, use \`--host'.
3093 See \`config.log' for more details" "$LINENO" 5; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3098 $as_echo "$cross_compiling" >&6; }
3100 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3101 ac_clean_files
=$ac_clean_files_save
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3103 $as_echo_n "checking for suffix of object files... " >&6; }
3104 if ${ac_cv_objext+:} false
; then :
3105 $as_echo_n "(cached) " >&6
3107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3118 rm -f conftest.o conftest.obj
3119 if { { ac_try
="$ac_compile"
3121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_compile") 2>&5
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }; then :
3130 for ac_file in conftest.o conftest.obj conftest.*; do
3131 test -f "$ac_file" || continue;
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3134 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3139 $as_echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3145 See \
`config.log' for more details" "$LINENO" 5; }
3147 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3150 $as_echo "$ac_cv_objext" >&6; }
3151 OBJEXT=$ac_cv_objext
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3154 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3155 if ${ac_cv_c_compiler_gnu+:} false; then :
3156 $as_echo_n "(cached) " >&6
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3172 if ac_fn_c_try_compile "$LINENO"; then :
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3182 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3183 if test $ac_compiler_gnu = yes; then
3188 ac_test_CFLAGS=${CFLAGS+set}
3189 ac_save_CFLAGS=$CFLAGS
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3191 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3192 if ${ac_cv_prog_cc_g+:} false; then :
3193 $as_echo_n "(cached) " >&6
3195 ac_save_c_werror_flag=$ac_c_werror_flag
3196 ac_c_werror_flag=yes
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3210 if ac_fn_c_try_compile "$LINENO"; then :
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3225 if ac_fn_c_try_compile "$LINENO"; then :
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3241 if ac_fn_c_try_compile "$LINENO"; then :
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 ac_c_werror_flag=$ac_save_c_werror_flag
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3252 $as_echo "$ac_cv_prog_cc_g" >&6; }
3253 if test "$ac_test_CFLAGS" = set; then
3254 CFLAGS=$ac_save_CFLAGS
3255 elif test $ac_cv_prog_cc_g = yes; then
3256 if test "$GCC" = yes; then
3262 if test "$GCC" = yes; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3269 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3270 if ${ac_cv_prog_cc_c89+:} false; then :
3271 $as_echo_n "(cached) " >&6
3273 ac_cv_prog_cc_c89=no
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3280 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3281 struct buf { int x; };
3282 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3283 static char *e (p, i)
3289 static char *f (char * (*g) (char **, int), char **p, ...)
3294 s = g (p, va_arg (v,int));
3299 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3300 function prototypes and stuff, but not '\xHH' hex character constants.
3301 These don't provoke an error unfortunately, instead are silently treated
3302 as 'x'. The following induces an error, until -std is added to get
3303 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3304 array size at least. It's necessary to write '\x00'==0 to get something
3305 that's true only with -std. */
3306 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3308 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3309 inside strings and character constants. */
3311 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3313 int test (int i, double x);
3314 struct s1 {int (*f) (int a);};
3315 struct s2 {int (*f) (double a);};
3316 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3322 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3327 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3328 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3330 CC="$ac_save_CC $ac_arg"
3331 if ac_fn_c_try_compile "$LINENO"; then :
3332 ac_cv_prog_cc_c89=$ac_arg
3334 rm -f core conftest.err conftest.$ac_objext
3335 test "x$ac_cv_prog_cc_c89" != "xno" && break
3337 rm -f conftest.$ac_ext
3342 case "x$ac_cv_prog_cc_c89" in
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3345 $as_echo "none needed" >&6; } ;;
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3348 $as_echo "unsupported" >&6; } ;;
3350 CC="$CC $ac_cv_prog_cc_c89"
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3352 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3354 if test "x$ac_cv_prog_cc_c89" != xno; then :
3359 ac_cpp='$CPP $CPPFLAGS'
3360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3370 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3371 # On Suns, sometimes $CPP names a directory.
3372 if test -n "$CPP" && test -d "$CPP"; then
3375 if test -z "$CPP"; then
3376 if ${ac_cv_prog_CPP+:} false; then :
3377 $as_echo_n "(cached) " >&6
3379 # Double quotes because CPP needs to be expanded
3380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3383 for ac_c_preproc_warn_flag in '' yes
3385 # Use a header file that comes with gcc, so configuring glibc
3386 # with a fresh cross-compiler works.
3387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3388 # <limits.h> exists even on freestanding compilers.
3389 # On the NeXT, cc -E runs the code through the compiler's parser,
3390 # not just through cpp. "Syntax error" is here to catch this case.
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3394 # include <limits.h>
3396 # include <assert.h>
3400 if ac_fn_c_try_cpp "$LINENO"; then :
3403 # Broken: fails on valid input.
3406 rm -f conftest.err conftest.i conftest.$ac_ext
3408 # OK, works on sane cases. Now check whether nonexistent headers
3409 # can be detected and how.
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412 #include <ac_nonexistent.h>
3414 if ac_fn_c_try_cpp "$LINENO"; then :
3415 # Broken: success on invalid input.
3418 # Passes both tests.
3422 rm -f conftest.err conftest.i conftest.$ac_ext
3425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3426 rm -f conftest.i conftest.err conftest.
$ac_ext
3427 if $ac_preproc_ok; then :
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3440 $as_echo "$CPP" >&6; }
3442 for ac_c_preproc_warn_flag
in '' yes
3444 # Use a header file that comes with gcc, so configuring glibc
3445 # with a fresh cross-compiler works.
3446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447 # <limits.h> exists even on freestanding compilers.
3448 # On the NeXT, cc -E runs the code through the compiler's parser,
3449 # not just through cpp. "Syntax error" is here to catch this case.
3450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3453 # include <limits.h>
3455 # include <assert.h>
3459 if ac_fn_c_try_cpp
"$LINENO"; then :
3462 # Broken: fails on valid input.
3465 rm -f conftest.err conftest.i conftest.
$ac_ext
3467 # OK, works on sane cases. Now check whether nonexistent headers
3468 # can be detected and how.
3469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3471 #include <ac_nonexistent.h>
3473 if ac_fn_c_try_cpp
"$LINENO"; then :
3474 # Broken: success on invalid input.
3477 # Passes both tests.
3481 rm -f conftest.err conftest.i conftest.
$ac_ext
3484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3485 rm -f conftest.i conftest.err conftest.
$ac_ext
3486 if $ac_preproc_ok; then :
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3492 See \`config.log' for more details" "$LINENO" 5; }
3496 ac_cpp
='$CPP $CPPFLAGS'
3497 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3502 ac_cpp
='$CXXCPP $CPPFLAGS'
3503 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3506 if test -z "$CXX"; then
3507 if test -n "$CCC"; then
3510 if test -n "$ac_tool_prefix"; then
3511 for ac_prog
in clang
++ c
++ g
++
3513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3514 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_CXX+:} false
; then :
3518 $as_echo_n "(cached) " >&6
3520 if test -n "$CXX"; then
3521 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3527 test -z "$as_dir" && as_dir
=.
3528 for ac_exec_ext
in '' $ac_executable_extensions; do
3529 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 if test -n "$CXX"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3543 $as_echo "$CXX" >&6; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3550 test -n "$CXX" && break
3553 if test -z "$CXX"; then
3555 for ac_prog
in clang
++ c
++ g
++
3557 # Extract the first word of "$ac_prog", so it can be a program name with args.
3558 set dummy
$ac_prog; ac_word
=$2
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560 $as_echo_n "checking for $ac_word... " >&6; }
3561 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3562 $as_echo_n "(cached) " >&6
3564 if test -n "$ac_ct_CXX"; then
3565 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3571 test -z "$as_dir" && as_dir
=.
3572 for ac_exec_ext
in '' $ac_executable_extensions; do
3573 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3585 if test -n "$ac_ct_CXX"; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3587 $as_echo "$ac_ct_CXX" >&6; }
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3594 test -n "$ac_ct_CXX" && break
3597 if test "x$ac_ct_CXX" = x
; then
3600 case $cross_compiling:$ac_tool_warned in
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3604 ac_tool_warned
=yes ;;
3612 # Provide some information about the compiler.
3613 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3616 for ac_option
in --version -v -V -qversion; do
3617 { { ac_try
="$ac_compiler $ac_option >&5"
3619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3626 if test -s conftest.err; then
3628 ... rest of stderr output deleted ...
3629 10q' conftest.err >conftest.er1
3630 cat conftest.er1 >&5
3632 rm -f conftest.er1 conftest.err
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3638 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3639 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3640 $as_echo_n "(cached) " >&6
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3656 if ac_fn_cxx_try_compile "$LINENO"; then :
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3666 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3667 if test $ac_compiler_gnu = yes; then
3672 ac_test_CXXFLAGS=${CXXFLAGS+set}
3673 ac_save_CXXFLAGS=$CXXFLAGS
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3675 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3676 if ${ac_cv_prog_cxx_g+:} false; then :
3677 $as_echo_n "(cached) " >&6
3679 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3680 ac_cxx_werror_flag=yes
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3694 if ac_fn_cxx_try_compile "$LINENO"; then :
3695 ac_cv_prog_cxx_g=yes
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3709 if ac_fn_cxx_try_compile "$LINENO"; then :
3712 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3725 if ac_fn_cxx_try_compile "$LINENO"; then :
3726 ac_cv_prog_cxx_g=yes
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3736 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3737 if test "$ac_test_CXXFLAGS" = set; then
3738 CXXFLAGS=$ac_save_CXXFLAGS
3739 elif test $ac_cv_prog_cxx_g = yes; then
3740 if test "$GXX" = yes; then
3746 if test "$GXX" = yes; then
3753 ac_cpp='$CPP $CPPFLAGS'
3754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758 if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if ${ac_cv_prog_RANLIB+:} false; then :
3764 $as_echo_n "(cached) " >&6
3766 if test -n "$RANLIB"; then
3767 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 RANLIB=$ac_cv_prog_RANLIB
3787 if test -n "$RANLIB"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3789 $as_echo "$RANLIB" >&6; }
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3797 if test -z "$ac_cv_prog_RANLIB"; then
3798 ac_ct_RANLIB=$RANLIB
3799 # Extract the first word of "ranlib", so it can be a program name with args.
3800 set dummy ranlib; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3804 $as_echo_n "(cached) " >&6
3806 if test -n "$ac_ct_RANLIB"; then
3807 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_ac_ct_RANLIB="ranlib"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3827 if test -n "$ac_ct_RANLIB"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3829 $as_echo "$ac_ct_RANLIB" >&6; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3835 if test "x$ac_ct_RANLIB" = x; then
3838 case $cross_compiling:$ac_tool_warned in
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842 ac_tool_warned=yes ;;
3844 RANLIB=$ac_ct_RANLIB
3847 RANLIB="$ac_cv_prog_RANLIB"
3850 # Extract the first word of "ar", so it can be a program name with args.
3851 set dummy ar; ac_word=$2
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 $as_echo_n "checking for $ac_word... " >&6; }
3854 if ${ac_cv_path_AR+:} false; then :
3855 $as_echo_n "(cached) " >&6
3859 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 if test -n "$AR"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3883 $as_echo "$AR" >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3890 # Extract the first word of "chmod", so it can be a program name with args.
3891 set dummy chmod; ac_word=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if ${ac_cv_path_CHMOD+:} false; then :
3895 $as_echo_n "(cached) " >&6
3899 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 CHMOD=$ac_cv_path_CHMOD
3921 if test -n "$CHMOD"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3923 $as_echo "$CHMOD" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3930 # Extract the first word of "gzip", so it can be a program name with args.
3931 set dummy gzip; ac_word=$2
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933 $as_echo_n "checking for $ac_word... " >&6; }
3934 if ${ac_cv_path_GZIPPROG+:} false; then :
3935 $as_echo_n "(cached) " >&6
3939 ac_cv_path_GZIPPROG="$GZIPPROG" # Let the user override the test with a path.
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_path_GZIPPROG="$as_dir/$ac_word$ac_exec_ext"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 GZIPPROG=$ac_cv_path_GZIPPROG
3961 if test -n "$GZIPPROG"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIPPROG" >&5
3963 $as_echo "$GZIPPROG" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
3971 $as_echo_n "checking for install-sh script... " >&6; }
3972 INSTALL="`pwd`/install-sh"
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
3975 $as_echo "using $INSTALL" >&6; }
3976 # Extract the first word of "ld", so it can be a program name with args.
3977 set dummy ld; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if ${ac_cv_path_LD+:} false; then :
3981 $as_echo_n "(cached) " >&6
3985 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 if test -n "$LD"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4009 $as_echo "$LD" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4016 # Extract the first word of "ln", so it can be a program name with args.
4017 set dummy ln; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if ${ac_cv_path_LN+:} false; then :
4021 $as_echo_n "(cached) " >&6
4025 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 if test -n "$LN"; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4049 $as_echo "$LN" >&6; }
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4056 # Extract the first word of "mkdir", so it can be a program name with args.
4057 set dummy mkdir; ac_word=$2
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if ${ac_cv_path_MKDIR+:} false; then :
4061 $as_echo_n "(cached) " >&6
4065 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 MKDIR=$ac_cv_path_MKDIR
4087 if test -n "$MKDIR"; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4089 $as_echo "$MKDIR" >&6; }
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092 $as_echo "no" >&6; }
4096 # Extract the first word of "mv", so it can be a program name with args.
4097 set dummy mv; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if ${ac_cv_path_MV+:} false; then :
4101 $as_echo_n "(cached) " >&6
4105 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 if test -n "$MV"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4129 $as_echo "$MV" >&6; }
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4136 # Extract the first word of "rm", so it can be a program name with args.
4137 set dummy rm; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if ${ac_cv_path_RM+:} false; then :
4141 $as_echo_n "(cached) " >&6
4145 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 if test -n "$RM"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4169 $as_echo "$RM" >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4176 # Extract the first word of "rmdir", so it can be a program name with args.
4177 set dummy rmdir; ac_word=$2
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179 $as_echo_n "checking for $ac_word... " >&6; }
4180 if ${ac_cv_path_RMDIR+:} false; then :
4181 $as_echo_n "(cached) " >&6
4185 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 RMDIR=$ac_cv_path_RMDIR
4207 if test -n "$RMDIR"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4209 $as_echo "$RMDIR" >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4216 # Extract the first word of "sed", so it can be a program name with args.
4217 set dummy sed; ac_word=$2
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 $as_echo_n "checking for $ac_word... " >&6; }
4220 if ${ac_cv_path_SED+:} false; then :
4221 $as_echo_n "(cached) " >&6
4225 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 if test -n "$SED"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4249 $as_echo "$SED" >&6; }
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4256 # Extract the first word of "xdg-open", so it can be a program name with args.
4257 set dummy xdg-open; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_path_XDGOPEN+:} false; then :
4261 $as_echo_n "(cached) " >&6
4265 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 XDGOPEN=$ac_cv_path_XDGOPEN
4287 if test -n "$XDGOPEN"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4289 $as_echo "$XDGOPEN" >&6; }
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4297 if test "x$XDGOPEN" = x; then
4298 CUPS_HTMLVIEW="htmlview"
4300 CUPS_HTMLVIEW="$XDGOPEN"
4304 if test "x$AR" = x; then
4305 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4307 if test "x$CC" = x; then
4308 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4312 # Check whether --enable-static was given.
4313 if test "${enable_static+set}" = set; then :
4314 enableval=$enable_static;
4318 if test x$enable_static = xyes; then
4319 echo Installing static libraries...
4320 INSTALLSTATIC="installstatic"
4325 if test -n "$ac_tool_prefix"; then
4326 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4327 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if ${ac_cv_path_PKGCONFIG+:} false; then :
4331 $as_echo_n "(cached) " >&6
4335 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 PKGCONFIG=$ac_cv_path_PKGCONFIG
4357 if test -n "$PKGCONFIG"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4359 $as_echo "$PKGCONFIG" >&6; }
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4367 if test -z "$ac_cv_path_PKGCONFIG"; then
4368 ac_pt_PKGCONFIG=$PKGCONFIG
4369 # Extract the first word of "pkg-config", so it can be a program name with args.
4370 set dummy pkg-config; ac_word=$2
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 $as_echo_n "checking for $ac_word... " >&6; }
4373 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4374 $as_echo_n "(cached) " >&6
4376 case $ac_pt_PKGCONFIG in
4378 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4388 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4400 if test -n "$ac_pt_PKGCONFIG"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4402 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4408 if test "x$ac_pt_PKGCONFIG" = x; then
4411 case $cross_compiling:$ac_tool_warned in
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4415 ac_tool_warned=yes ;;
4417 PKGCONFIG=$ac_pt_PKGCONFIG
4420 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4426 $as_echo_n "checking for library containing abs... " >&6; }
4427 if ${ac_cv_search_abs+:} false; then :
4428 $as_echo_n "(cached) " >&6
4430 ac_func_search_save_LIBS=$LIBS
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4434 /* Override any GCC internal prototype to avoid an error.
4435 Use char because int might match the return type of a GCC
4436 builtin and then its argument prototype would still apply. */
4449 for ac_lib in '' m; do
4450 if test -z "$ac_lib"; then
4451 ac_res="none required"
4454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4456 if ac_fn_c_try_link "$LINENO"; then :
4457 ac_cv_search_abs=$ac_res
4459 rm -f core conftest.err conftest.$ac_objext \
4461 if ${ac_cv_search_abs+:} false; then :
4465 if ${ac_cv_search_abs+:} false; then :
4471 LIBS=$ac_func_search_save_LIBS
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4474 $as_echo "$ac_cv_search_abs" >&6; }
4475 ac_res=$ac_cv_search_abs
4476 if test "$ac_res" != no; then :
4477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4478 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4483 $as_echo_n "checking for library containing crypt... " >&6; }
4484 if ${ac_cv_search_crypt+:} false; then :
4485 $as_echo_n "(cached) " >&6
4487 ac_func_search_save_LIBS=$LIBS
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4491 /* Override any GCC internal prototype to avoid an error.
4492 Use char because int might match the return type of a GCC
4493 builtin and then its argument prototype would still apply. */
4506 for ac_lib in '' crypt; do
4507 if test -z "$ac_lib"; then
4508 ac_res="none required"
4511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4513 if ac_fn_c_try_link "$LINENO"; then :
4514 ac_cv_search_crypt=$ac_res
4516 rm -f core conftest.err conftest.$ac_objext \
4518 if ${ac_cv_search_crypt+:} false; then :
4522 if ${ac_cv_search_crypt+:} false; then :
4525 ac_cv_search_crypt=no
4528 LIBS=$ac_func_search_save_LIBS
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4531 $as_echo "$ac_cv_search_crypt" >&6; }
4532 ac_res=$ac_cv_search_crypt
4533 if test "$ac_res" != no; then :
4534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4539 $as_echo_n "checking for library containing fmod... " >&6; }
4540 if ${ac_cv_search_fmod+:} false; then :
4541 $as_echo_n "(cached) " >&6
4543 ac_func_search_save_LIBS=$LIBS
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4547 /* Override any GCC internal prototype to avoid an error.
4548 Use char because int might match the return type of a GCC
4549 builtin and then its argument prototype would still apply. */
4562 for ac_lib in '' m; do
4563 if test -z "$ac_lib"; then
4564 ac_res="none required"
4567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4569 if ac_fn_c_try_link "$LINENO"; then :
4570 ac_cv_search_fmod=$ac_res
4572 rm -f core conftest.err conftest.$ac_objext \
4574 if ${ac_cv_search_fmod+:} false; then :
4578 if ${ac_cv_search_fmod+:} false; then :
4581 ac_cv_search_fmod=no
4584 LIBS=$ac_func_search_save_LIBS
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4587 $as_echo "$ac_cv_search_fmod" >&6; }
4588 ac_res=$ac_cv_search_fmod
4589 if test "$ac_res" != no; then :
4590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4595 $as_echo_n "checking for library containing getspent... " >&6; }
4596 if ${ac_cv_search_getspent+:} false; then :
4597 $as_echo_n "(cached) " >&6
4599 ac_func_search_save_LIBS=$LIBS
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4603 /* Override any GCC internal prototype to avoid an error.
4604 Use char because int might match the return type of a GCC
4605 builtin and then its argument prototype would still apply. */
4618 for ac_lib in '' sec gen; do
4619 if test -z "$ac_lib"; then
4620 ac_res="none required"
4623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4625 if ac_fn_c_try_link "$LINENO"; then :
4626 ac_cv_search_getspent=$ac_res
4628 rm -f core conftest.err conftest.$ac_objext \
4630 if ${ac_cv_search_getspent+:} false; then :
4634 if ${ac_cv_search_getspent+:} false; then :
4637 ac_cv_search_getspent=no
4640 LIBS=$ac_func_search_save_LIBS
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4643 $as_echo "$ac_cv_search_getspent" >&6; }
4644 ac_res=$ac_cv_search_getspent
4645 if test "$ac_res" != no; then :
4646 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4652 # Check whether --enable-mallinfo was given.
4653 if test "${enable_mallinfo+set}" = set; then :
4654 enableval=$enable_mallinfo;
4658 if test x$enable_mallinfo = xyes; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4662 $as_echo_n "checking for library containing mallinfo... " >&6; }
4663 if ${ac_cv_search_mallinfo+:} false; then :
4664 $as_echo_n "(cached) " >&6
4666 ac_func_search_save_LIBS=$LIBS
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4670 /* Override any GCC internal prototype to avoid an error.
4671 Use char because int might match the return type of a GCC
4672 builtin and then its argument prototype would still apply. */
4685 for ac_lib in '' malloc; do
4686 if test -z "$ac_lib"; then
4687 ac_res="none required"
4690 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4692 if ac_fn_c_try_link "$LINENO"; then :
4693 ac_cv_search_mallinfo=$ac_res
4695 rm -f core conftest.err conftest.$ac_objext \
4697 if ${ac_cv_search_mallinfo+:} false; then :
4701 if ${ac_cv_search_mallinfo+:} false; then :
4704 ac_cv_search_mallinfo=no
4707 LIBS=$ac_func_search_save_LIBS
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4710 $as_echo "$ac_cv_search_mallinfo" >&6; }
4711 ac_res=$ac_cv_search_mallinfo
4712 if test "$ac_res" != no; then :
4713 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4714 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4724 # Check whether --enable-libpaper was given.
4725 if test "${enable_libpaper+set}" = set; then :
4726 enableval=$enable_libpaper;
4730 if test x$enable_libpaper = xyes; then
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4732 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4733 if ${ac_cv_lib_paper_systempapername+:} false; then :
4734 $as_echo_n "(cached) " >&6
4736 ac_check_lib_save_LIBS=$LIBS
4737 LIBS="-lpaper $LIBS"
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4741 /* Override any GCC internal prototype to avoid an error.
4742 Use char because int might match the return type of a GCC
4743 builtin and then its argument prototype would still apply. */
4747 char systempapername ();
4751 return systempapername ();
4756 if ac_fn_c_try_link "$LINENO"; then :
4757 ac_cv_lib_paper_systempapername=yes
4759 ac_cv_lib_paper_systempapername=no
4761 rm -f core conftest.err conftest.$ac_objext \
4762 conftest$ac_exeext conftest.$ac_ext
4763 LIBS=$ac_check_lib_save_LIBS
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4766 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4767 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4768 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4782 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4783 if ${ac_cv_path_GREP+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 if test -z "$GREP"; then
4787 ac_path_GREP_found=false
4788 # Loop through the user's path and test for each of PROGNAME-LIST
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4793 test -z "$as_dir" && as_dir=.
4794 for ac_prog in grep ggrep; do
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4797 as_fn_executable_p "$ac_path_GREP" || continue
4798 # Check for GNU ac_path_GREP and select it if it is found.
4799 # Check for GNU $ac_path_GREP
4800 case `"$ac_path_GREP" --version 2>&1` in
4802 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4805 $as_echo_n 0123456789 >"conftest.in"
4808 cat "conftest.in" "conftest.in" >"conftest.tmp"
4809 mv "conftest.tmp" "conftest.in"
4810 cp "conftest.in" "conftest.nl"
4811 $as_echo 'GREP' >> "conftest.nl"
4812 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4814 as_fn_arith $ac_count + 1 && ac_count=$as_val
4815 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4816 # Best one so far, save it but keep looking for a better one
4817 ac_cv_path_GREP="$ac_path_GREP"
4818 ac_path_GREP_max=$ac_count
4820 # 10*(2^10) chars as input seems more than enough
4821 test $ac_count -gt 10 && break
4823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4826 $ac_path_GREP_found && break 3
4831 if test -z "$ac_cv_path_GREP"; then
4832 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4835 ac_cv_path_GREP=$GREP
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4840 $as_echo "$ac_cv_path_GREP" >&6; }
4841 GREP="$ac_cv_path_GREP"
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4845 $as_echo_n "checking for egrep... " >&6; }
4846 if ${ac_cv_path_EGREP+:} false; then :
4847 $as_echo_n "(cached) " >&6
4849 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4850 then ac_cv_path_EGREP="$GREP -E"
4852 if test -z "$EGREP"; then
4853 ac_path_EGREP_found=false
4854 # Loop through the user's path and test for each of PROGNAME-LIST
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4859 test -z "$as_dir" && as_dir=.
4860 for ac_prog in egrep; do
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4863 as_fn_executable_p "$ac_path_EGREP" || continue
4864 # Check for GNU ac_path_EGREP and select it if it is found.
4865 # Check for GNU $ac_path_EGREP
4866 case `"$ac_path_EGREP" --version 2>&1` in
4868 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4871 $as_echo_n 0123456789 >"conftest.in"
4874 cat "conftest.in" "conftest.in" >"conftest.tmp"
4875 mv "conftest.tmp" "conftest.in"
4876 cp "conftest.in" "conftest.nl"
4877 $as_echo 'EGREP' >> "conftest.nl"
4878 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4880 as_fn_arith $ac_count + 1 && ac_count=$as_val
4881 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4882 # Best one so far, save it but keep looking for a better one
4883 ac_cv_path_EGREP="$ac_path_EGREP"
4884 ac_path_EGREP_max=$ac_count
4886 # 10*(2^10) chars as input seems more than enough
4887 test $ac_count -gt 10 && break
4889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4892 $ac_path_EGREP_found && break 3
4897 if test -z "$ac_cv_path_EGREP"; then
4898 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4901 ac_cv_path_EGREP=$EGREP
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4907 $as_echo "$ac_cv_path_EGREP" >&6; }
4908 EGREP="$ac_cv_path_EGREP"
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4912 $as_echo_n "checking for ANSI C header files... " >&6; }
4913 if ${ac_cv_header_stdc+:} false; then :
4914 $as_echo_n "(cached) " >&6
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4931 if ac_fn_c_try_compile "$LINENO"; then :
4932 ac_cv_header_stdc=yes
4934 ac_cv_header_stdc=no
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 if test $ac_cv_header_stdc = yes; then
4939 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4946 $EGREP "memchr" >/dev/null 2>&1; then :
4949 ac_cv_header_stdc=no
4955 if test $ac_cv_header_stdc = yes; then
4956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4963 $EGREP "free" >/dev/null 2>&1; then :
4966 ac_cv_header_stdc=no
4972 if test $ac_cv_header_stdc = yes; then
4973 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4974 if test "$cross_compiling" = yes; then :
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4981 #if ((' ' & 0x0FF) == 0x020)
4982 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4983 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4985 # define ISLOWER(c) \
4986 (('a' <= (c) && (c) <= 'i') \
4987 || ('j' <= (c) && (c) <= 'r') \
4988 || ('s' <= (c) && (c) <= 'z'))
4989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4997 for (i = 0; i < 256; i++)
4998 if (XOR (islower (i), ISLOWER (i))
4999 || toupper (i) != TOUPPER (i))
5004 if ac_fn_c_try_run "$LINENO"; then :
5007 ac_cv_header_stdc=no
5009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5010 conftest.$ac_objext conftest.beam conftest.$ac_ext
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5016 $as_echo "$ac_cv_header_stdc" >&6; }
5017 if test $ac_cv_header_stdc = yes; then
5019 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5023 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5024 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5025 inttypes.h stdint.h unistd.h
5027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5028 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5030 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5031 cat >>confdefs.h <<_ACEOF
5032 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5040 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5041 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5042 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
5047 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5048 if test "x$ac_cv_header_crypt_h" = xyes; then :
5049 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5054 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5055 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5056 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5061 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5062 if test "x$ac_cv_header_malloc_h" = xyes; then :
5063 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5068 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5069 if test "x$ac_cv_header_shadow_h" = xyes; then :
5070 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5075 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5076 if test "x$ac_cv_header_stdint_h" = xyes; then :
5077 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
5082 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5083 if test "x$ac_cv_header_string_h" = xyes; then :
5084 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5089 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5090 if test "x$ac_cv_header_strings_h" = xyes; then :
5091 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5096 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5097 if test "x$ac_cv_header_bstring_h" = xyes; then :
5098 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5103 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5104 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5105 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5110 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5111 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5112 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5117 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5118 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5119 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5125 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5126 if test "x$ac_cv_header_iconv_h" = xyes; then :
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5130 $as_echo_n "checking for library containing iconv_open... " >&6; }
5131 if ${ac_cv_search_iconv_open+:} false; then :
5132 $as_echo_n "(cached) " >&6
5134 ac_func_search_save_LIBS=$LIBS
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5138 /* Override any GCC internal prototype to avoid an error.
5139 Use char because int might match the return type of a GCC
5140 builtin and then its argument prototype would still apply. */
5148 return iconv_open ();
5153 for ac_lib in '' iconv; do
5154 if test -z "$ac_lib"; then
5155 ac_res="none required"
5158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5160 if ac_fn_c_try_link "$LINENO"; then :
5161 ac_cv_search_iconv_open=$ac_res
5163 rm -f core conftest.err conftest.$ac_objext \
5165 if ${ac_cv_search_iconv_open+:} false; then :
5169 if ${ac_cv_search_iconv_open+:} false; then :
5172 ac_cv_search_iconv_open=no
5175 LIBS=$ac_func_search_save_LIBS
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5178 $as_echo "$ac_cv_search_iconv_open" >&6; }
5179 ac_res=$ac_cv_search_iconv_open
5180 if test "$ac_res" != no; then :
5181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5182 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5184 SAVELIBS="$SAVELIBS $LIBS"
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5188 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5189 if ${ac_cv_search_libiconv_open+:} false; then :
5190 $as_echo_n "(cached) " >&6
5192 ac_func_search_save_LIBS=$LIBS
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5196 /* Override any GCC internal prototype to avoid an error.
5197 Use char because int might match the return type of a GCC
5198 builtin and then its argument prototype would still apply. */
5202 char libiconv_open ();
5206 return libiconv_open ();
5211 for ac_lib in '' iconv; do
5212 if test -z "$ac_lib"; then
5213 ac_res="none required"
5216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5218 if ac_fn_c_try_link "$LINENO"; then :
5219 ac_cv_search_libiconv_open=$ac_res
5221 rm -f core conftest.err conftest.$ac_objext \
5223 if ${ac_cv_search_libiconv_open+:} false; then :
5227 if ${ac_cv_search_libiconv_open+:} false; then :
5230 ac_cv_search_libiconv_open=no
5233 LIBS=$ac_func_search_save_LIBS
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5236 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5237 ac_res=$ac_cv_search_libiconv_open
5238 if test "$ac_res" != no; then :
5239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5240 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5242 SAVELIBS="$SAVELIBS $LIBS"
5250 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5251 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5252 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5257 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5258 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5259 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5264 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5265 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5266 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5271 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5272 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5273 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5278 for ac_func in statfs statvfs
5280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5281 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5282 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5283 cat >>confdefs.h <<_ACEOF
5284 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5291 for ac_func in strdup strlcat strlcpy
5293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5294 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5295 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5296 cat >>confdefs.h <<_ACEOF
5297 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5303 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5304 echo Forcing snprintf emulation for HP-UX.
5306 for ac_func in snprintf vsnprintf
5308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5309 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5310 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5311 cat >>confdefs.h <<_ACEOF
5312 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5320 for ac_func in random lrand48 arc4random
5322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5323 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5324 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5325 cat >>confdefs.h <<_ACEOF
5326 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5333 for ac_func in geteuid
5335 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5336 if test "x$ac_cv_func_geteuid" = xyes; then :
5337 cat >>confdefs.h <<_ACEOF
5338 #define HAVE_GETEUID 1
5345 for ac_func in setpgid
5347 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5348 if test "x$ac_cv_func_setpgid" = xyes; then :
5349 cat >>confdefs.h <<_ACEOF
5350 #define HAVE_SETPGID 1
5357 for ac_func in vsyslog
5359 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5360 if test "x$ac_cv_func_vsyslog" = xyes; then :
5361 cat >>confdefs.h <<_ACEOF
5362 #define HAVE_VSYSLOG 1
5369 case "$host_os_name" in
5371 # Do not use sigset on Linux or GNU HURD
5374 # Use sigset on other platforms, if available
5375 for ac_func in sigset
5377 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5378 if test "x$ac_cv_func_sigset" = xyes; then :
5379 cat >>confdefs.h <<_ACEOF
5380 #define HAVE_SIGSET 1
5389 for ac_func in sigaction
5391 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5392 if test "x$ac_cv_func_sigaction" = xyes; then :
5393 cat >>confdefs.h <<_ACEOF
5394 #define HAVE_SIGACTION 1
5401 for ac_func in waitpid wait3
5403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5404 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5405 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5406 cat >>confdefs.h <<_ACEOF
5407 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5414 for ac_func in posix_spawn
5416 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5417 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5418 cat >>confdefs.h <<_ACEOF
5419 #define HAVE_POSIX_SPAWN 1
5426 for ac_func in getgrouplist
5428 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5429 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5430 cat >>confdefs.h <<_ACEOF
5431 #define HAVE_GETGROUPLIST 1
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5439 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5447 int o = t.tm_gmtoff;
5452 if ac_fn_c_try_compile "$LINENO"; then :
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5454 $as_echo "yes" >&6; }
5455 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5464 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #include <sys/stat.h>
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5479 $as_echo "yes" >&6; }
5480 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 for ac_func in removefile
5490 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5491 if test "x$ac_cv_func_removefile" = xyes; then :
5492 cat >>confdefs.h <<_ACEOF
5493 #define HAVE_REMOVEFILE 1
5500 # Check whether --enable-libusb was given.
5501 if test "${enable_libusb+set}" = set; then :
5502 enableval=$enable_libusb;
5511 if test "x$PKGCONFIG" != x; then
5512 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5514 $as_echo_n "checking for libusb-1.0... " >&6; }
5515 if $PKGCONFIG --exists libusb-1.0; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5517 $as_echo "yes" >&6; }
5518 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5520 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5521 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5522 USBQUIRKS="\$(DATADIR)/usb"
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 if test x$enable_libusb = xyes; then
5527 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5531 elif test x$enable_libusb = xyes; then
5532 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5535 # Check whether --enable-tcp_wrappers was given.
5536 if test "${enable_tcp_wrappers+set}" = set; then :
5537 enableval=$enable_tcp_wrappers;
5544 if test x$enable_tcp_wrappers = xyes; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5546 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5547 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5548 $as_echo_n "(cached) " >&6
5550 ac_check_lib_save_LIBS=$LIBS
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5555 /* Override any GCC internal prototype to avoid an error.
5556 Use char because int might match the return type of a GCC
5557 builtin and then its argument prototype would still apply. */
5561 char hosts_access ();
5565 return hosts_access ();
5570 if ac_fn_c_try_link "$LINENO"; then :
5571 ac_cv_lib_wrap_hosts_access=yes
5573 ac_cv_lib_wrap_hosts_access=no
5575 rm -f core conftest.err conftest.$ac_objext \
5576 conftest$ac_exeext conftest.$ac_ext
5577 LIBS=$ac_check_lib_save_LIBS
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5580 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5581 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5583 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5584 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5585 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5597 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5598 if test "x$ac_cv_header_zlib_h" = xyes; then :
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5600 $as_echo_n "checking for gzgets in -lz... " >&6; }
5601 if ${ac_cv_lib_z_gzgets+:} false; then :
5602 $as_echo_n "(cached) " >&6
5604 ac_check_lib_save_LIBS=$LIBS
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5609 /* Override any GCC internal prototype to avoid an error.
5610 Use char because int might match the return type of a GCC
5611 builtin and then its argument prototype would still apply. */
5624 if ac_fn_c_try_link "$LINENO"; then :
5625 ac_cv_lib_z_gzgets=yes
5627 ac_cv_lib_z_gzgets=no
5629 rm -f core conftest.err conftest.$ac_objext \
5630 conftest$ac_exeext conftest.$ac_ext
5631 LIBS=$ac_check_lib_save_LIBS
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5634 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5635 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5637 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5642 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5643 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5644 $as_echo_n "(cached) " >&6
5646 ac_check_lib_save_LIBS=$LIBS
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5651 /* Override any GCC internal prototype to avoid an error.
5652 Use char because int might match the return type of a GCC
5653 builtin and then its argument prototype would still apply. */
5657 char inflateCopy ();
5661 return inflateCopy ();
5666 if ac_fn_c_try_link "$LINENO"; then :
5667 ac_cv_lib_z_inflateCopy=yes
5669 ac_cv_lib_z_inflateCopy=no
5671 rm -f core conftest.err conftest.$ac_objext \
5672 conftest$ac_exeext conftest.$ac_ext
5673 LIBS=$ac_check_lib_save_LIBS
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5676 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5677 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5678 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5682 if test "x$GZIPPROG" != x; then
5693 case $host_os_name in
5711 # Check whether --enable-acl was given.
5712 if test "${enable_acl+set}" = set; then :
5713 enableval=$enable_acl;
5716 if test "x$enable_acl" != xno; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5718 $as_echo_n "checking for library containing acl_init... " >&6; }
5719 if ${ac_cv_search_acl_init+:} false; then :
5720 $as_echo_n "(cached) " >&6
5722 ac_func_search_save_LIBS=$LIBS
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5726 /* Override any GCC internal prototype to avoid an error.
5727 Use char because int might match the return type of a GCC
5728 builtin and then its argument prototype would still apply. */
5741 for ac_lib in '' acl; do
5742 if test -z "$ac_lib"; then
5743 ac_res="none required"
5746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5748 if ac_fn_c_try_link "$LINENO"; then :
5749 ac_cv_search_acl_init=$ac_res
5751 rm -f core conftest.err conftest.$ac_objext \
5753 if ${ac_cv_search_acl_init+:} false; then :
5757 if ${ac_cv_search_acl_init+:} false; then :
5760 ac_cv_search_acl_init=no
5763 LIBS=$ac_func_search_save_LIBS
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5766 $as_echo "$ac_cv_search_acl_init" >&6; }
5767 ac_res=$ac_cv_search_acl_init
5768 if test "$ac_res" != no; then :
5769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5770 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5774 SERVERLIBS="$SERVERLIBS $LIBS"
5778 # Check whether --enable-dbus was given.
5779 if test "${enable_dbus+set}" = set; then :
5780 enableval=$enable_dbus;
5784 # Check whether --with-dbusdir was given.
5785 if test "${with_dbusdir+set}" = set; then :
5786 withval=$with_dbusdir; DBUSDIR="$withval"
5792 DBUS_NOTIFIERLIBS=""
5794 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5796 $as_echo_n "checking for DBUS... " >&6; }
5797 if $PKGCONFIG --exists dbus-1; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5799 $as_echo "yes" >&6; }
5800 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5802 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5803 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5804 DBUS_NOTIFIER="dbus"
5805 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5807 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5808 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5809 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5810 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5814 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5815 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5816 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5821 if test -d /etc/dbus-1; then
5822 DBUSDIR="/etc/dbus-1"
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5834 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5835 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5836 CUPS_SYSTEM_AUTHKEY=""
5839 case $host_os_name in
5841 BACKLIBS="$BACKLIBS -framework IOKit"
5842 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5843 LIBS="-framework CoreFoundation -framework Security $LIBS"
5845 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5846 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5847 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5852 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5853 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5854 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5861 LIBS="-framework SystemConfiguration $LIBS"
5862 for ac_func in SCDynamicStoreCopyComputerName
5864 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5865 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5866 cat >>confdefs.h <<_ACEOF
5867 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5870 $as_echo "#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1" >>confdefs.h
5879 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5880 if test "x$ac_cv_header_membership_h" = xyes; then :
5881 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5886 for ac_func in mbr_uid_to_uuid
5888 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5889 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5890 cat >>confdefs.h <<_ACEOF
5891 #define HAVE_MBR_UID_TO_UUID 1
5898 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5899 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5900 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5906 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5907 if test "x$ac_cv_header_notify_h" = xyes; then :
5908 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5913 for ac_func in notify_post
5915 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5916 if test "x$ac_cv_func_notify_post" = xyes; then :
5917 cat >>confdefs.h <<_ACEOF
5918 #define HAVE_NOTIFY_POST 1
5926 # Check whether --with-adminkey was given.
5927 if test "${with_adminkey+set}" = set; then :
5928 withval=$with_adminkey; default_adminkey="$withval"
5930 default_adminkey="default"
5934 # Check whether --with-operkey was given.
5935 if test "${with_operkey+set}" = set; then :
5936 withval=$with_operkey; default_operkey="$withval"
5938 default_operkey="default"
5942 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5943 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5945 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5948 if test "x$default_adminkey" != xdefault; then
5949 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5950 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5952 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5953 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5956 if test "x$default_operkey" != xdefault; then
5957 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5959 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5965 if test $host_os_version -ge 100; then
5966 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5967 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5968 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5974 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
5975 # Broken public headers in 10.7.x...
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5977 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5978 if test -f /usr/local/include/sandbox/private.h; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5980 $as_echo "yes" >&6; }
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5984 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
5988 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5989 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5990 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5992 INSTALLXPC="install-xpc"
6000 cat >>confdefs.h <<_ACEOF
6001 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6004 cat >>confdefs.h <<_ACEOF
6005 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6014 # Check whether --with-components was given.
6015 if test "${with_components+set}" = set; then :
6016 withval=$with_components; COMPONENTS="$withval"
6020 cupsimagebase="cupsimage"
6021 IPPEVECOMMANDS="ippevepcl ippeveps"
6022 LIBCUPSOBJS="\$(COREOBJS) \$(DRIVEROBJS)"
6023 LIBHEADERS="\$(COREHEADERS) \$(DRIVERHEADERS)"
6024 LIBHEADERSPRIV="\$(COREHEADERSPRIV) \$(DRIVERHEADERSPRIV)"
6026 case "$COMPONENTS" in
6028 BUILDDIRS="tools filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6032 BUILDDIRS="tools examples locale"
6036 $as_echo "#define CUPS_LITE 1" >>confdefs.h
6038 BUILDDIRS="tools examples locale"
6040 LIBCUPSOBJS="\$(COREOBJS)"
6041 LIBHEADERS="\$(COREHEADERS)"
6042 LIBHEADERSPRIV="\$(COREHEADERSPRIV)"
6051 $as_echo "#define CUPS_LITE 1" >>confdefs.h
6055 LIBCUPSOBJS="\$(COREOBJS)"
6056 LIBHEADERS="\$(COREHEADERS)"
6057 LIBHEADERSPRIV="\$(COREHEADERSPRIV)"
6061 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6074 if test "$prefix" = "NONE"; then
6078 if test "$exec_prefix" = "NONE"; then
6079 if test "$prefix" = "/"; then
6082 exec_prefix="$prefix"
6086 if test "$bindir" = "\${exec_prefix}/bin"; then
6087 bindir="$exec_prefix/bin"
6090 cat >>confdefs.h <<_ACEOF
6091 #define CUPS_BINDIR "$bindir"
6095 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6096 sbindir="$exec_prefix/sbin"
6099 cat >>confdefs.h <<_ACEOF
6100 #define CUPS_SBINDIR "$sbindir"
6104 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6105 sharedstatedir="/usr/com"
6108 if test "$datarootdir" = "\${prefix}/share"; then
6109 if test "$prefix" = "/"; then
6110 datarootdir="/usr/share"
6112 datarootdir="$prefix/share"
6116 if test "$datadir" = "\${prefix}/share"; then
6117 if test "$prefix" = "/"; then
6118 datadir="/usr/share"
6120 datadir="$prefix/share"
6122 elif test "$datadir" = "\${datarootdir}"; then
6123 datadir="$datarootdir"
6126 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6127 includedir="/usr/include"
6130 if test "$localstatedir" = "\${prefix}/var"; then
6131 if test "$prefix" = "/"; then
6132 if test "$host_os_name" = darwin; then
6133 localstatedir="/private/var"
6135 localstatedir="/var"
6138 localstatedir="$prefix/var"
6142 if test "$sysconfdir" = "\${prefix}/etc"; then
6143 if test "$prefix" = "/"; then
6144 if test "$host_os_name" = darwin; then
6145 sysconfdir="/private/etc"
6150 sysconfdir="$prefix/etc"
6154 if test "$libdir" = "\${exec_prefix}/lib"; then
6155 case "$host_os_name" in
6157 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6158 libdir="$exec_prefix/lib64"
6165 # Check whether --with-privateinclude was given.
6166 if test "${with_privateinclude+set}" = set; then :
6167 withval=$with_privateinclude; privateinclude="$withval"
6172 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6173 PRIVATEINCLUDE="$privateinclude/cups"
6182 # Check whether --with-lpdconfig was given.
6183 if test "${with_lpdconfig+set}" = set; then :
6184 withval=$with_lpdconfig; LPDCONFIG="$withval"
6190 if test "x$LPDCONFIG" = x; then
6191 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6192 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6193 elif test "x$XINETD" != x; then
6194 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6198 if test "x$LPDCONFIG" = xoff; then
6199 cat >>confdefs.h <<_ACEOF
6200 #define CUPS_DEFAULT_LPD_CONFIG ""
6204 cat >>confdefs.h <<_ACEOF
6205 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6211 # Check whether --with-smbconfig was given.
6212 if test "${with_smbconfig+set}" = set; then :
6213 withval=$with_smbconfig; SMBCONFIG="$withval"
6219 if test "x$SMBCONFIG" = x; then
6220 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6221 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6223 for dir in /etc /etc/samba /usr/local/etc; do
6224 if test -f $dir/smb.conf; then
6225 SMBCONFIG="samba://$dir/smb.conf"
6232 if test "x$SMBCONFIG" = xoff; then
6233 cat >>confdefs.h <<_ACEOF
6234 #define CUPS_DEFAULT_SMB_CONFIG ""
6238 cat >>confdefs.h <<_ACEOF
6239 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6246 # Check whether --with-cachedir was given.
6247 if test "${with_cachedir+set}" = set; then :
6248 withval=$with_cachedir; cachedir="$withval"
6254 if test x$cachedir = x; then
6255 if test "x$host_os_name" = xdarwin; then
6256 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6258 CUPS_CACHEDIR="$localstatedir/cache/cups"
6261 CUPS_CACHEDIR="$cachedir"
6263 cat >>confdefs.h <<_ACEOF
6264 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6270 CUPS_DATADIR="$datadir/cups"
6271 cat >>confdefs.h <<_ACEOF
6272 #define CUPS_DATADIR "$datadir/cups"
6279 # Check whether --with-icondir was given.
6280 if test "${with_icondir+set}" = set; then :
6281 withval=$with_icondir; icondir="$withval"
6287 if test "x$icondir" = x -a -d /usr/share/icons; then
6288 ICONDIR="/usr/share/icons"
6297 # Check whether --with-menudir was given.
6298 if test "${with_menudir+set}" = set; then :
6299 withval=$with_menudir; menudir="$withval"
6305 if test "x$menudir" = x -a -d /usr/share/applications; then
6306 MENUDIR="/usr/share/applications"
6313 # Documentation files
6315 # Check whether --with-docdir was given.
6316 if test "${with_docdir+set}" = set; then :
6317 withval=$with_docdir; docdir="$withval"
6323 if test x$docdir = x; then
6324 CUPS_DOCROOT="$datadir/doc/cups"
6325 docdir="$datadir/doc/cups"
6327 CUPS_DOCROOT="$docdir"
6330 cat >>confdefs.h <<_ACEOF
6331 #define CUPS_DOCROOT "$docdir"
6338 # Check whether --with-fontpath was given.
6339 if test "${with_fontpath+set}" = set; then :
6340 withval=$with_fontpath; fontpath="$withval"
6346 if test "x$fontpath" = "x"; then
6347 CUPS_FONTPATH="$datadir/cups/fonts"
6349 CUPS_FONTPATH="$fontpath"
6353 cat >>confdefs.h <<_ACEOF
6354 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6359 if test "$localedir" = "\${datarootdir}/locale"; then
6360 case "$host_os_name" in
6361 linux* | gnu* | *bsd* | darwin*)
6362 CUPS_LOCALEDIR="$datarootdir/locale"
6366 # This is the standard System V location...
6367 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6371 CUPS_LOCALEDIR="$localedir"
6374 cat >>confdefs.h <<_ACEOF
6375 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6382 # Check whether --with-logdir was given.
6383 if test "${with_logdir+set}" = set; then :
6384 withval=$with_logdir; logdir="$withval"
6390 if test x$logdir = x; then
6391 CUPS_LOGDIR="$localstatedir/log/cups"
6392 cat >>confdefs.h <<_ACEOF
6393 #define CUPS_LOGDIR "$localstatedir/log/cups"
6397 CUPS_LOGDIR="$logdir"
6399 cat >>confdefs.h <<_ACEOF
6400 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6405 # Longer-term spool data
6406 CUPS_REQUESTS="$localstatedir/spool/cups"
6407 cat >>confdefs.h <<_ACEOF
6408 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6413 # Server executables...
6414 case "$host_os_name" in
6416 # *BSD and Darwin (macOS)
6418 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6422 INSTALL_SYSV="install-sysv"
6423 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6427 cat >>confdefs.h <<_ACEOF
6428 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6434 # Configuration files
6435 CUPS_SERVERROOT="$sysconfdir/cups"
6436 cat >>confdefs.h <<_ACEOF
6437 #define CUPS_SERVERROOT "$sysconfdir/cups"
6442 # Transient run-time state
6444 # Check whether --with-rundir was given.
6445 if test "${with_rundir+set}" = set; then :
6446 withval=$with_rundir; CUPS_STATEDIR="$withval"
6449 case "$host_os_name" in
6452 CUPS_STATEDIR="$CUPS_SERVERROOT"
6456 CUPS_STATEDIR="$localstatedir/run/cups"
6461 cat >>confdefs.h <<_ACEOF
6462 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6468 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6469 # New GNU "standards" break previous ones, so make sure we use
6470 # the right default location for the operating system...
6471 mandir="\${prefix}/man"
6474 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6475 case "$host_os_name" in
6476 darwin* | linux* | gnu* | *bsd*)
6477 # Darwin, macOS, Linux, GNU HURD, and *BSD
6478 mandir="/usr/share/man"
6490 DSOFLAGS="${DSOFLAGS:=}"
6492 # Check whether --enable-shared was given.
6493 if test "${enable_shared+set}" = set; then :
6494 enableval=$enable_shared;
6499 LIBCUPSBASE="lib$cupsbase"
6501 LIBCUPSSTATIC="lib$cupsbase.a"
6503 if test x$enable_shared != xno; then
6504 case "$host_os_name" in
6506 LIBCUPS="lib$cupsbase.so.2"
6507 if test "x$cupsimagebase" != x; then
6508 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6512 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G"
6514 linux* | gnu* | *bsd*)
6515 LIBCUPS="lib$cupsbase.so.2"
6516 if test "x$cupsimagebase" != x; then
6517 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6521 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared"
6524 LIBCUPS="lib$cupsbase.2.dylib"
6525 if test "x$cupsimagebase" != x; then
6526 LIBCUPSIMAGE="lib$cupsimagebase.2.dylib"
6530 DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc"
6533 echo "Warning: shared libraries may not be supported. Trying -shared"
6534 echo " option with compiler."
6535 LIBCUPS="lib$cupsbase.so.2"
6536 if test "x$cupsimagebase" != x; then
6537 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6541 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared"
6546 LIBCUPS="lib$cupsbase.a"
6547 if test "x$cupsimagebase" != x; then
6548 LIBCUPSIMAGE="lib$cupsimagebase.a"
6562 if test x$enable_shared = xno; then
6563 LINKCUPS="../cups/lib$cupsbase.a \$(LIBS)"
6564 EXTLINKCUPS="-lcups \$LIBS"
6566 LINKCUPS="-L../cups -l${cupsbase}"
6567 EXTLINKCUPS="-lcups"
6575 if test "$DSO" != ":"; then
6576 # Tell the run-time linkers where to find a DSO. Some platforms
6577 # need this option, even when the library is installed in a
6578 # standard location...
6579 case $host_os_name in
6582 if test $exec_prefix != /usr; then
6583 DSOFLAGS="-R$libdir $DSOFLAGS"
6584 LDFLAGS="$LDFLAGS -R$libdir"
6585 EXPORT_LDFLAGS="-R$libdir"
6590 if test $exec_prefix != /usr; then
6591 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6592 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6593 EXPORT_LDFLAGS="-Wl,-R$libdir"
6597 # Linux, and HURD...
6598 if test $exec_prefix != /usr; then
6599 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6600 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6601 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6610 # Check whether --enable-libtool_unsupported was given.
6611 if test "${enable_libtool_unsupported+set}" = set; then :
6612 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6613 if test x$enable_libtool_unsupported == xyes; then
6614 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6616 LIBTOOL="$enable_libtool_unsupported"
6618 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6619 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6626 if test x$LIBTOOL != x; then
6627 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6628 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6630 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6631 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6633 LIBCUPS="libcups.la"
6634 LIBCUPSSTATIC="libcups.la"
6635 LIBCUPSCGI="libcupscgi.la"
6636 LIBCUPSIMAGE="libcupsimage.la"
6637 LIBCUPSMIME="libcupsmime.la"
6638 LIBCUPSPPDC="libcupsppdc.la"
6640 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
6641 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
6642 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
6644 LINKCUPS="../cups/\$(LIBCUPS)"
6645 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
6669 # Check whether --with-optim was given.
6670 if test "${with_optim+set}" = set; then :
6671 withval=$with_optim; OPTIM="$withval"
6678 # Check whether --enable-debug was given.
6679 if test "${enable_debug+set}" = set; then :
6680 enableval=$enable_debug;
6683 # Check whether --enable-debug_guards was given.
6684 if test "${enable_debug_guards+set}" = set; then :
6685 enableval=$enable_debug_guards;
6688 # Check whether --enable-debug_printfs was given.
6689 if test "${enable_debug_printfs+set}" = set; then :
6690 enableval=$enable_debug_printfs;
6693 # Check whether --enable-unit_tests was given.
6694 if test "${enable_unit_tests+set}" = set; then :
6695 enableval=$enable_unit_tests;
6699 if test x$enable_debug = xyes -a "x$OPTIM" = x; then
6705 if test x$enable_debug_printfs = xyes; then
6706 CFLAGS="$CFLAGS -DDEBUG"
6707 CXXFLAGS="$CXXFLAGS -DDEBUG"
6710 if test x$enable_debug_guards = xyes; then
6711 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6712 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6715 if test x$enable_unit_tests = xyes; then
6716 if test "$build" != "$host"; then
6717 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6720 UNITTESTS="unittests"
6727 # Check whether --with-archflags was given.
6728 if test "${with_archflags+set}" = set; then :
6729 withval=$with_archflags;
6733 # Check whether --with-ldarchflags was given.
6734 if test "${with_ldarchflags+set}" = set; then :
6735 withval=$with_ldarchflags;
6739 if test -z "$with_archflags"; then
6742 ARCHFLAGS="$with_archflags"
6745 if test -z "$with_ldarchflags"; then
6746 if test "$host_os_name" = darwin; then
6747 # Only create Intel programs by default
6748 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6750 LDARCHFLAGS="$ARCHFLAGS"
6753 LDARCHFLAGS="$with_ldarchflags"
6759 # Check whether --enable-relro was given.
6760 if test "${enable_relro+set}" = set; then :
6761 enableval=$enable_relro;
6765 # Check whether --enable-sanitizer was given.
6766 if test "${enable_sanitizer+set}" = set; then :
6767 enableval=$enable_sanitizer;
6771 CXXLIBS="${CXXLIBS:=}"
6783 if test -n "$GCC"; then
6784 # Add GCC-specific compiler options...
6786 # Address sanitizer is a useful tool to use when developing/debugging
6787 # code but adds about 2x overhead...
6788 if test x$enable_sanitizer = xyes; then
6789 # Use -fsanitize=address with debugging...
6790 OPTIM="$OPTIM -g -fsanitize=address"
6792 # Otherwise use the Fortify enhancements to catch any unbounded
6793 # string operations...
6794 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
6795 CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2"
6798 # Default optimization options...
6799 if test -z "$OPTIM"; then
6800 # Default to optimize-for-size and debug
6804 # Generate position-independent code as needed...
6805 if test $PICFLAG = 1; then
6806 OPTIM="-fPIC $OPTIM"
6809 # The -fstack-protector option is available with some versions of
6810 # GCC and adds "stack canaries" which detect when the return address
6811 # has been overwritten, preventing many types of exploit attacks.
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6813 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6815 CFLAGS="$CFLAGS -fstack-protector"
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6827 if ac_fn_c_try_link "$LINENO"; then :
6828 if test "x$LSB_BUILD" = xy; then
6829 # Can't use stack-protector with LSB binaries...
6830 OPTIM="$OPTIM -fno-stack-protector"
6832 OPTIM="$OPTIM -fstack-protector"
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6835 $as_echo "yes" >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6840 rm -f core conftest.err conftest.$ac_objext \
6841 conftest$ac_exeext conftest.$ac_ext
6844 if test "x$LSB_BUILD" != xy; then
6845 # The -fPIE option is available with some versions of GCC and
6846 # adds randomization of addresses, which avoids another class of
6847 # exploits that depend on a fixed address for common functions.
6849 # Not available to LSB binaries...
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6851 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6853 case "$host_os_name" in
6855 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6867 if ac_fn_c_try_compile "$LINENO"; then :
6869 PIEFLAGS="-fPIE -Wl,-pie"
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6871 $as_echo "yes" >&6; }
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880 CFLAGS="$CFLAGS -fPIE -pie"
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6892 if ac_fn_c_try_compile "$LINENO"; then :
6894 PIEFLAGS="-fPIE -pie"
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6896 $as_echo "yes" >&6; }
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 # Add useful warning options for tracking down problems...
6908 WARNING_OPTIONS="-Wall -Wno-format-y2k -Wunused -Wno-unused-result -Wsign-conversion"
6910 # Test GCC version for certain warning flags since -Werror
6911 # doesn't trigger...
6912 gccversion=`$CC --version |
head -1 |
awk '{print $NF}'`
6913 case "$gccversion" in
6914 1.* | 2.* | 3.* | 4.* | 5.* | 6.* | \(clang-*)
6917 WARNING_OPTIONS="$WARNING_OPTIONS -Wno-format-truncation -Wno-format-overflow -Wno-tautological-compare"
6921 # Additional warning options for development testing...
6922 if test -d .git; then
6923 WARNING_OPTIONS="-Werror -Wno-error=deprecated-declarations $WARNING_OPTIONS"
6926 # Add vendor-specific compiler options...
6927 case $host_os_name in
6930 if test -z "$OPTIM"; then
6934 if test $PICFLAG = 1; then
6935 OPTIM="-KPIC $OPTIM"
6939 # Running some other operating system; inform the user
6940 # they should contribute the necessary options via
6942 echo "Building CUPS with default compiler optimizations; contact the CUPS developers on Github"
6943 echo "(https://github.com/apple/cups/issues) with the uname and compiler options needed for"
6944 echo "your platform, or set the CFLAGS and LDFLAGS environment variables before running"
6950 # Add general compiler options per platform...
6951 case $host_os_name in
6953 # glibc 2.8 and higher breaks peer credentials unless you
6954 # define _GNU_SOURCE...
6955 OPTIM="$OPTIM -D_GNU_SOURCE"
6957 # The -z relro option is provided by the Linux linker command to
6958 # make relocatable data read-only.
6959 if test x$enable_relro = xyes; then
6960 RELROFLAGS="-Wl,-z,relro,-z,now"
6967 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
6968 #include <sys/socket.h>
6969 #include <netinet/in.h>
6970 #include <arpa/inet.h>
6971 #include <netinet/in_systm.h>
6972 #include <netinet/ip.h>
6974 if test "x$ac_cv_header_resolv_h" = xyes; then :
6975 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6981 $as_echo_n "checking for library containing socket... " >&6; }
6982 if ${ac_cv_search_socket+:} false; then :
6983 $as_echo_n "(cached) " >&6
6985 ac_func_search_save_LIBS=$LIBS
6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h. */
6989 /* Override any GCC internal prototype to avoid an error.
6990 Use char because int might match the return type of a GCC
6991 builtin and then its argument prototype would still apply. */
7004 for ac_lib in '' socket; do
7005 if test -z "$ac_lib"; then
7006 ac_res="none required"
7009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7011 if ac_fn_c_try_link "$LINENO"; then :
7012 ac_cv_search_socket=$ac_res
7014 rm -f core conftest.err conftest.$ac_objext \
7016 if ${ac_cv_search_socket+:} false; then :
7020 if ${ac_cv_search_socket+:} false; then :
7023 ac_cv_search_socket=no
7026 LIBS=$ac_func_search_save_LIBS
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7029 $as_echo "$ac_cv_search_socket" >&6; }
7030 ac_res=$ac_cv_search_socket
7031 if test "$ac_res" != no; then :
7032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7037 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7038 if ${ac_cv_search_gethostbyaddr+:} false; then :
7039 $as_echo_n "(cached) " >&6
7041 ac_func_search_save_LIBS=$LIBS
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7045 /* Override any GCC internal prototype to avoid an error.
7046 Use char because int might match the return type of a GCC
7047 builtin and then its argument prototype would still apply. */
7051 char gethostbyaddr ();
7055 return gethostbyaddr ();
7060 for ac_lib in '' nsl; do
7061 if test -z "$ac_lib"; then
7062 ac_res="none required"
7065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7067 if ac_fn_c_try_link "$LINENO"; then :
7068 ac_cv_search_gethostbyaddr=$ac_res
7070 rm -f core conftest.err conftest.$ac_objext \
7072 if ${ac_cv_search_gethostbyaddr+:} false; then :
7076 if ${ac_cv_search_gethostbyaddr+:} false; then :
7079 ac_cv_search_gethostbyaddr=no
7082 LIBS=$ac_func_search_save_LIBS
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7085 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7086 ac_res=$ac_cv_search_gethostbyaddr
7087 if test "$ac_res" != no; then :
7088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7093 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7094 if ${ac_cv_search_getifaddrs+:} false; then :
7095 $as_echo_n "(cached) " >&6
7097 ac_func_search_save_LIBS=$LIBS
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7101 /* Override any GCC internal prototype to avoid an error.
7102 Use char because int might match the return type of a GCC
7103 builtin and then its argument prototype would still apply. */
7111 return getifaddrs ();
7116 for ac_lib in '' nsl; do
7117 if test -z "$ac_lib"; then
7118 ac_res="none required"
7121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7123 if ac_fn_c_try_link "$LINENO"; then :
7124 ac_cv_search_getifaddrs=$ac_res
7126 rm -f core conftest.err conftest.$ac_objext \
7128 if ${ac_cv_search_getifaddrs+:} false; then :
7132 if ${ac_cv_search_getifaddrs+:} false; then :
7135 ac_cv_search_getifaddrs=no
7138 LIBS=$ac_func_search_save_LIBS
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7141 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7142 ac_res=$ac_cv_search_getifaddrs
7143 if test "$ac_res" != no; then :
7144 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7145 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7150 $as_echo_n "checking for library containing hstrerror... " >&6; }
7151 if ${ac_cv_search_hstrerror+:} false; then :
7152 $as_echo_n "(cached) " >&6
7154 ac_func_search_save_LIBS=$LIBS
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7158 /* Override any GCC internal prototype to avoid an error.
7159 Use char because int might match the return type of a GCC
7160 builtin and then its argument prototype would still apply. */
7168 return hstrerror ();
7173 for ac_lib in '' nsl socket resolv; do
7174 if test -z "$ac_lib"; then
7175 ac_res="none required"
7178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7180 if ac_fn_c_try_link "$LINENO"; then :
7181 ac_cv_search_hstrerror=$ac_res
7183 rm -f core conftest.err conftest.$ac_objext \
7185 if ${ac_cv_search_hstrerror+:} false; then :
7189 if ${ac_cv_search_hstrerror+:} false; then :
7192 ac_cv_search_hstrerror=no
7195 LIBS=$ac_func_search_save_LIBS
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7198 $as_echo "$ac_cv_search_hstrerror" >&6; }
7199 ac_res=$ac_cv_search_hstrerror
7200 if test "$ac_res" != no; then :
7201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7202 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7207 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7208 if ${ac_cv_search_rresvport_af+:} false; then :
7209 $as_echo_n "(cached) " >&6
7211 ac_func_search_save_LIBS=$LIBS
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7215 /* Override any GCC internal prototype to avoid an error.
7216 Use char because int might match the return type of a GCC
7217 builtin and then its argument prototype would still apply. */
7221 char rresvport_af ();
7225 return rresvport_af ();
7230 for ac_lib in '' nsl; do
7231 if test -z "$ac_lib"; then
7232 ac_res="none required"
7235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7237 if ac_fn_c_try_link "$LINENO"; then :
7238 ac_cv_search_rresvport_af=$ac_res
7240 rm -f core conftest.err conftest.$ac_objext \
7242 if ${ac_cv_search_rresvport_af+:} false; then :
7246 if ${ac_cv_search_rresvport_af+:} false; then :
7249 ac_cv_search_rresvport_af=no
7252 LIBS=$ac_func_search_save_LIBS
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7255 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7256 ac_res=$ac_cv_search_rresvport_af
7257 if test "$ac_res" != no; then :
7258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7259 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7264 $as_echo_n "checking for library containing __res_init... " >&6; }
7265 if ${ac_cv_search___res_init+:} false; then :
7266 $as_echo_n "(cached) " >&6
7268 ac_func_search_save_LIBS=$LIBS
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7272 /* Override any GCC internal prototype to avoid an error.
7273 Use char because int might match the return type of a GCC
7274 builtin and then its argument prototype would still apply. */
7282 return __res_init ();
7287 for ac_lib in '' resolv bind; do
7288 if test -z "$ac_lib"; then
7289 ac_res="none required"
7292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7294 if ac_fn_c_try_link "$LINENO"; then :
7295 ac_cv_search___res_init=$ac_res
7297 rm -f core conftest.err conftest.$ac_objext \
7299 if ${ac_cv_search___res_init+:} false; then :
7303 if ${ac_cv_search___res_init+:} false; then :
7306 ac_cv_search___res_init=no
7309 LIBS=$ac_func_search_save_LIBS
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7312 $as_echo "$ac_cv_search___res_init" >&6; }
7313 ac_res=$ac_cv_search___res_init
7314 if test "$ac_res" != no; then :
7315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7316 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7320 $as_echo_n "checking for library containing res_9_init... " >&6; }
7321 if ${ac_cv_search_res_9_init+:} false; then :
7322 $as_echo_n "(cached) " >&6
7324 ac_func_search_save_LIBS=$LIBS
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7328 /* Override any GCC internal prototype to avoid an error.
7329 Use char because int might match the return type of a GCC
7330 builtin and then its argument prototype would still apply. */
7338 return res_9_init ();
7343 for ac_lib in '' resolv bind; do
7344 if test -z "$ac_lib"; then
7345 ac_res="none required"
7348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7350 if ac_fn_c_try_link "$LINENO"; then :
7351 ac_cv_search_res_9_init=$ac_res
7353 rm -f core conftest.err conftest.$ac_objext \
7355 if ${ac_cv_search_res_9_init+:} false; then :
7359 if ${ac_cv_search_res_9_init+:} false; then :
7362 ac_cv_search_res_9_init=no
7365 LIBS=$ac_func_search_save_LIBS
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7368 $as_echo "$ac_cv_search_res_9_init" >&6; }
7369 ac_res=$ac_cv_search_res_9_init
7370 if test "$ac_res" != no; then :
7371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7372 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7376 $as_echo_n "checking for library containing res_init... " >&6; }
7377 if ${ac_cv_search_res_init+:} false; then :
7378 $as_echo_n "(cached) " >&6
7380 ac_func_search_save_LIBS=$LIBS
7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h. */
7384 /* Override any GCC internal prototype to avoid an error.
7385 Use char because int might match the return type of a GCC
7386 builtin and then its argument prototype would still apply. */
7399 for ac_lib in '' resolv bind; do
7400 if test -z "$ac_lib"; then
7401 ac_res="none required"
7404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7406 if ac_fn_c_try_link "$LINENO"; then :
7407 ac_cv_search_res_init=$ac_res
7409 rm -f core conftest.err conftest.$ac_objext \
7411 if ${ac_cv_search_res_init+:} false; then :
7415 if ${ac_cv_search_res_init+:} false; then :
7418 ac_cv_search_res_init=no
7421 LIBS=$ac_func_search_save_LIBS
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7424 $as_echo "$ac_cv_search_res_init" >&6; }
7425 ac_res=$ac_cv_search_res_init
7426 if test "$ac_res" != no; then :
7427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7428 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7437 # Tru64 5.1b leaks file descriptors with these functions; disable until
7438 # we can come up with a test for this...
7439 if test "$host_os_name" != "osf1"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7441 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7442 if ${ac_cv_search_getaddrinfo+:} false; then :
7443 $as_echo_n "(cached) " >&6
7445 ac_func_search_save_LIBS=$LIBS
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7449 /* Override any GCC internal prototype to avoid an error.
7450 Use char because int might match the return type of a GCC
7451 builtin and then its argument prototype would still apply. */
7455 char getaddrinfo ();
7459 return getaddrinfo ();
7464 for ac_lib in '' nsl; do
7465 if test -z "$ac_lib"; then
7466 ac_res="none required"
7469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7471 if ac_fn_c_try_link "$LINENO"; then :
7472 ac_cv_search_getaddrinfo=$ac_res
7474 rm -f core conftest.err conftest.$ac_objext \
7476 if ${ac_cv_search_getaddrinfo+:} false; then :
7480 if ${ac_cv_search_getaddrinfo+:} false; then :
7483 ac_cv_search_getaddrinfo=no
7486 LIBS=$ac_func_search_save_LIBS
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7489 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7490 ac_res=$ac_cv_search_getaddrinfo
7491 if test "$ac_res" != no; then :
7492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7493 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7498 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7499 if ${ac_cv_search_getnameinfo+:} false; then :
7500 $as_echo_n "(cached) " >&6
7502 ac_func_search_save_LIBS=$LIBS
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7506 /* Override any GCC internal prototype to avoid an error.
7507 Use char because int might match the return type of a GCC
7508 builtin and then its argument prototype would still apply. */
7512 char getnameinfo ();
7516 return getnameinfo ();
7521 for ac_lib in '' nsl; do
7522 if test -z "$ac_lib"; then
7523 ac_res="none required"
7526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7528 if ac_fn_c_try_link "$LINENO"; then :
7529 ac_cv_search_getnameinfo=$ac_res
7531 rm -f core conftest.err conftest.$ac_objext \
7533 if ${ac_cv_search_getnameinfo+:} false; then :
7537 if ${ac_cv_search_getnameinfo+:} false; then :
7540 ac_cv_search_getnameinfo=no
7543 LIBS=$ac_func_search_save_LIBS
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7546 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7547 ac_res=$ac_cv_search_getnameinfo
7548 if test "$ac_res" != no; then :
7549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7550 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7556 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7558 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7562 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7563 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7564 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7570 CUPS_DEFAULT_DOMAINSOCKET=""
7573 # Check whether --with-domainsocket was given.
7574 if test "${with_domainsocket+set}" = set; then :
7575 withval=$with_domainsocket; default_domainsocket="$withval"
7577 default_domainsocket=""
7581 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7582 if test "x$default_domainsocket" = x; then
7583 case "$host_os_name" in
7585 # Darwin and macOS do their own thing...
7586 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7589 # All others use FHS standard...
7590 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7594 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7597 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7599 cat >>confdefs.h <<_ACEOF
7600 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7604 CUPS_LISTEN_DOMAINSOCKET=""
7611 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7612 if test "x$ac_cv_func_poll" = xyes; then :
7613 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7617 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7618 if test "x$ac_cv_func_epoll_create" = xyes; then :
7619 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7623 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7624 if test "x$ac_cv_func_kqueue" = xyes; then :
7625 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7631 # Check whether --enable-gssapi was given.
7632 if test "${enable_gssapi+set}" = set; then :
7633 enableval=$enable_gssapi;
7640 if test x$enable_gssapi != xno; then
7641 if test -n "$ac_tool_prefix"; then
7642 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7643 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7647 $as_echo_n "(cached) " >&6
7651 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7673 if test -n "$KRB5CONFIG"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7675 $as_echo "$KRB5CONFIG" >&6; }
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7683 if test -z "$ac_cv_path_KRB5CONFIG"; then
7684 ac_pt_KRB5CONFIG=$KRB5CONFIG
7685 # Extract the first word of "krb5-config", so it can be a program name with args.
7686 set dummy krb5-config; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7690 $as_echo_n "(cached) " >&6
7692 case $ac_pt_KRB5CONFIG in
7694 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7704 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7716 if test -n "$ac_pt_KRB5CONFIG"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7718 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7724 if test "x$ac_pt_KRB5CONFIG" = x; then
7727 case $cross_compiling:$ac_tool_warned in
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7731 ac_tool_warned=yes ;;
7733 KRB5CONFIG=$ac_pt_KRB5CONFIG
7736 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7739 if test "x$KRB5CONFIG" != x; then
7740 case "$host_os_name" in
7742 # macOS weak-links to the Kerberos framework...
7743 LIBGSSAPI="-weak_framework Kerberos"
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7745 $as_echo_n "checking for GSS framework... " >&6; }
7746 if test -d /System/Library/Frameworks/GSS.framework; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7748 $as_echo "yes" >&6; }
7749 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7756 # Solaris has a non-standard krb5-config, don't use it!
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7758 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7759 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7760 $as_echo_n "(cached) " >&6
7762 ac_check_lib_save_LIBS=$LIBS
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7767 /* Override any GCC internal prototype to avoid an error.
7768 Use char because int might match the return type of a GCC
7769 builtin and then its argument prototype would still apply. */
7773 char gss_display_status ();
7777 return gss_display_status ();
7782 if ac_fn_c_try_link "$LINENO"; then :
7783 ac_cv_lib_gss_gss_display_status=yes
7785 ac_cv_lib_gss_gss_display_status=no
7787 rm -f core conftest.err conftest.$ac_objext \
7788 conftest$ac_exeext conftest.$ac_ext
7789 LIBS=$ac_check_lib_save_LIBS
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7792 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7793 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7795 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7797 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7798 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7799 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7804 # Other platforms just ask for GSSAPI
7805 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7806 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7807 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7811 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7814 # Check for vendor-specific implementations...
7815 case "$host_os_name" in
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7818 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7819 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7820 $as_echo_n "(cached) " >&6
7822 ac_check_lib_save_LIBS=$LIBS
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7827 /* Override any GCC internal prototype to avoid an error.
7828 Use char because int might match the return type of a GCC
7829 builtin and then its argument prototype would still apply. */
7833 char gss_display_status ();
7837 return gss_display_status ();
7842 if ac_fn_c_try_link "$LINENO"; then :
7843 ac_cv_lib_gss_gss_display_status=yes
7845 ac_cv_lib_gss_gss_display_status=no
7847 rm -f core conftest.err conftest.$ac_objext \
7848 conftest$ac_exeext conftest.$ac_ext
7849 LIBS=$ac_check_lib_save_LIBS
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7852 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7853 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7855 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7857 LIBGSSAPI="-lgss -lgssapi_krb5"
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7863 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7864 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7865 $as_echo_n "(cached) " >&6
7867 ac_check_lib_save_LIBS=$LIBS
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7872 /* Override any GCC internal prototype to avoid an error.
7873 Use char because int might match the return type of a GCC
7874 builtin and then its argument prototype would still apply. */
7878 char gss_display_status ();
7882 return gss_display_status ();
7887 if ac_fn_c_try_link "$LINENO"; then :
7888 ac_cv_lib_gss_gss_display_status=yes
7890 ac_cv_lib_gss_gss_display_status=no
7892 rm -f core conftest.err conftest.$ac_objext \
7893 conftest$ac_exeext conftest.$ac_ext
7894 LIBS=$ac_check_lib_save_LIBS
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7897 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7898 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7900 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7909 if test "x$LIBGSSAPI" != x; then
7910 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
7911 if test "x$ac_cv_header_krb5_h" = xyes; then :
7912 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
7917 if test -d /System/Library/Frameworks/GSS.framework; then
7918 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
7919 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
7920 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
7925 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
7926 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
7927 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
7932 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
7933 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
7934 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
7940 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
7941 if test "x$ac_cv_header_gssapi_h" = xyes; then :
7942 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
7947 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
7948 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
7949 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
7957 LIBS="$LIBS $LIBGSSAPI"
7959 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
7960 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
7961 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
7967 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
7968 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971 #include <gssapi/gssapi.h>
7975 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
7980 if ac_fn_c_try_compile "$LINENO"; then :
7981 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7984 $as_echo "yes" >&6; }
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993 #include <GSS/gssapi.h>
7997 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8002 if ac_fn_c_try_compile "$LINENO"; then :
8003 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8006 $as_echo "yes" >&6; }
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8019 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8024 if ac_fn_c_try_compile "$LINENO"; then :
8025 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8028 $as_echo "yes" >&6; }
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041 # Check whether --with-gssservicename was given.
8042 if test "${with_gssservicename+set}" = set; then :
8043 withval=$with_gssservicename; default_gssservicename="$withval"
8045 default_gssservicename="default"
8049 if test x$default_gssservicename != xno; then
8050 if test "x$default_gssservicename" = "xdefault"; then
8051 CUPS_DEFAULT_GSSSERVICENAME="host"
8053 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8056 CUPS_DEFAULT_GSSSERVICENAME=""
8060 cat >>confdefs.h <<_ACEOF
8061 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8066 # Check whether --enable-threads was given.
8067 if test "${enable_threads+set}" = set; then :
8068 enableval=$enable_threads;
8075 if test "x$enable_threads" != xno; then
8076 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8077 if test "x$ac_cv_header_pthread_h" = xyes; then :
8078 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8084 if test x$ac_cv_header_pthread_h = xyes; then
8085 for flag in -lpthreads -lpthread -pthread; do
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8087 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8092 #include <pthread.h>
8096 pthread_create(0, 0, 0, 0);
8101 if ac_fn_c_try_link "$LINENO"; then :
8106 rm -f core conftest.err conftest.$ac_objext \
8107 conftest$ac_exeext conftest.$ac_ext
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8109 $as_echo "$have_pthread" >&6; }
8111 if test $have_pthread = yes; then
8112 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8114 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8115 # be POSIX-compliant... :(
8116 if test $host_os_name = sunos; then
8117 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8128 # Check whether --enable-ssl was given.
8129 if test "${enable_ssl+set}" = set; then :
8130 enableval=$enable_ssl;
8133 # Check whether --enable-cdsassl was given.
8134 if test "${enable_cdsassl+set}" = set; then :
8135 enableval=$enable_cdsassl;
8138 # Check whether --enable-gnutls was given.
8139 if test "${enable_gnutls+set}" = set; then :
8140 enableval=$enable_gnutls;
8147 CUPS_SERVERKEYCHAIN=""
8149 if test x$enable_ssl != xno; then
8150 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8151 if test $host_os_name = darwin; then
8152 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8153 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8156 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8158 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8160 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8162 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8163 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8164 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8169 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8170 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8171 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8176 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8177 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8178 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8189 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8190 if test -n "$ac_tool_prefix"; then
8191 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8192 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8196 $as_echo_n "(cached) " >&6
8198 case $LIBGNUTLSCONFIG in
8200 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8222 if test -n "$LIBGNUTLSCONFIG"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8224 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8232 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8233 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8234 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8235 set dummy libgnutls-config; ac_word=$2
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237 $as_echo_n "checking for $ac_word... " >&6; }
8238 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8239 $as_echo_n "(cached) " >&6
8241 case $ac_pt_LIBGNUTLSCONFIG in
8243 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8253 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8265 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8267 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8273 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8276 case $cross_compiling:$ac_tool_warned in
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8280 ac_tool_warned=yes ;;
8282 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8285 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8288 if $PKGCONFIG --exists gnutls; then
8290 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8291 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8292 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8294 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8296 elif test "x$LIBGNUTLSCONFIG" != x; then
8298 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8299 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8300 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8302 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8306 if test $have_ssl = 1; then
8307 CUPS_SERVERKEYCHAIN="ssl"
8310 LIBS="$LIBS $SSLLIBS"
8311 ac_fn_c_check_func "$LINENO" "gnutls_fips140_set_mode" "ac_cv_func_gnutls_fips140_set_mode"
8312 if test "x$ac_cv_func_gnutls_fips140_set_mode" = xyes; then :
8313 $as_echo "#define HAVE_GNUTLS_FIPS140_SET_MODE 1" >>confdefs.h
8317 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8318 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8319 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8323 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8324 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8325 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8335 if test $have_ssl = 1; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8337 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8339 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8340 IPPALIASES="http https ipps"
8341 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8342 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8350 EXPORT_SSLLIBS="$SSLLIBS"
8354 # Check whether --enable-pam was given.
8355 if test "${enable_pam+set}" = set; then :
8356 enableval=$enable_pam;
8360 # Check whether --with-pam_module was given.
8361 if test "${with_pam_module+set}" = set; then :
8362 withval=$with_pam_module;
8369 PAMMOD="pam_unknown.so"
8370 PAMMODAUTH="pam_unknown.so"
8372 if test x$enable_pam != xno; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8376 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8377 if ${ac_cv_lib_dl_dlopen+:} false; then :
8378 $as_echo_n "(cached) " >&6
8380 ac_check_lib_save_LIBS=$LIBS
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8385 /* Override any GCC internal prototype to avoid an error.
8386 Use char because int might match the return type of a GCC
8387 builtin and then its argument prototype would still apply. */
8400 if ac_fn_c_try_link "$LINENO"; then :
8401 ac_cv_lib_dl_dlopen=yes
8403 ac_cv_lib_dl_dlopen=no
8405 rm -f core conftest.err conftest.$ac_objext \
8406 conftest$ac_exeext conftest.$ac_ext
8407 LIBS=$ac_check_lib_save_LIBS
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8410 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8411 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8412 cat >>confdefs.h <<_ACEOF
8413 #define HAVE_LIBDL 1
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8421 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8422 if ${ac_cv_lib_pam_pam_start+:} false; then :
8423 $as_echo_n "(cached) " >&6
8425 ac_check_lib_save_LIBS=$LIBS
8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8430 /* Override any GCC internal prototype to avoid an error.
8431 Use char because int might match the return type of a GCC
8432 builtin and then its argument prototype would still apply. */
8440 return pam_start ();
8445 if ac_fn_c_try_link "$LINENO"; then :
8446 ac_cv_lib_pam_pam_start=yes
8448 ac_cv_lib_pam_pam_start=no
8450 rm -f core conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8452 LIBS=$ac_check_lib_save_LIBS
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8455 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8456 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8457 cat >>confdefs.h <<_ACEOF
8458 #define HAVE_LIBPAM 1
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8466 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8467 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8468 $as_echo_n "(cached) " >&6
8470 ac_check_lib_save_LIBS=$LIBS
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8475 /* Override any GCC internal prototype to avoid an error.
8476 Use char because int might match the return type of a GCC
8477 builtin and then its argument prototype would still apply. */
8481 char pam_set_item ();
8485 return pam_set_item ();
8490 if ac_fn_c_try_link "$LINENO"; then :
8491 ac_cv_lib_pam_pam_set_item=yes
8493 ac_cv_lib_pam_pam_set_item=no
8495 rm -f core conftest.err conftest.$ac_objext \
8496 conftest$ac_exeext conftest.$ac_ext
8497 LIBS=$ac_check_lib_save_LIBS
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8500 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8501 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8502 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8507 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8508 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8509 $as_echo_n "(cached) " >&6
8511 ac_check_lib_save_LIBS=$LIBS
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8516 /* Override any GCC internal prototype to avoid an error.
8517 Use char because int might match the return type of a GCC
8518 builtin and then its argument prototype would still apply. */
8522 char pam_setcred ();
8526 return pam_setcred ();
8531 if ac_fn_c_try_link "$LINENO"; then :
8532 ac_cv_lib_pam_pam_setcred=yes
8534 ac_cv_lib_pam_pam_setcred=no
8536 rm -f core conftest.err conftest.$ac_objext \
8537 conftest$ac_exeext conftest.$ac_ext
8538 LIBS=$ac_check_lib_save_LIBS
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8541 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8542 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8543 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8547 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8548 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8553 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8554 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8555 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8556 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8563 if test x$ac_cv_lib_pam_pam_start != xno; then
8564 # Set the necessary libraries for PAM...
8565 if test x$ac_cv_lib_dl_dlopen != xno; then
8566 PAMLIBS="-lpam -ldl"
8571 # Find the PAM configuration directory, if any...
8572 for dir in /private/etc/pam.d /etc/pam.d; do
8573 if test -d $dir; then
8582 case "$host_os_name" in
8585 if test "x$with_pam_module" != x; then
8586 PAMFILE="pam.$with_pam_module"
8587 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8588 PAMFILE="pam.opendirectory"
8590 PAMFILE="pam.securityserver"
8595 # All others; this test might need to be updated
8596 # as Linux distributors move things around...
8597 if test "x$with_pam_module" != x; then
8598 PAMMOD="pam_${with_pam_module}.so"
8599 elif test -f /etc/pam.d/common-auth; then
8600 PAMFILE="pam.common"
8603 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
8604 if test -d $dir; then
8610 if test -f $moddir/pam_unix2.so; then
8611 PAMMOD="pam_unix2.so"
8612 elif test -f $moddir/pam_unix.so; then
8613 PAMMOD="pam_unix.so"
8617 if test "x$PAMMOD" = xpam_unix.so; then
8618 PAMMODAUTH="$PAMMOD shadow nodelay"
8620 PAMMODAUTH="$PAMMOD nodelay"
8633 # Check whether --enable-largefile was given.
8634 if test "${enable_largefile+set}" = set; then :
8635 enableval=$enable_largefile;
8638 if test "$enable_largefile" != no; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8641 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8642 if ${ac_cv_sys_largefile_CC+:} false; then :
8643 $as_echo_n "(cached) " >&6
8645 ac_cv_sys_largefile_CC=no
8646 if test "$GCC" != yes; then
8649 # IRIX 6.2 and later do not support large files by default,
8650 # so use the C compiler's -n32 option if that helps.
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 #include <sys/types.h>
8654 /* Check that off_t can represent 2**63 - 1 correctly.
8655 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8656 since some C++ compilers masquerading as C compilers
8657 incorrectly reject 9223372036854775807. */
8658 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8660 && LARGE_OFF_T % 2147483647 == 1)
8670 if ac_fn_c_try_compile "$LINENO"; then :
8673 rm -f core conftest.err conftest.$ac_objext
8675 if ac_fn_c_try_compile "$LINENO"; then :
8676 ac_cv_sys_largefile_CC=' -n32'; break
8678 rm -f core conftest.err conftest.$ac_objext
8682 rm -f conftest.$ac_ext
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8686 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8687 if test "$ac_cv_sys_largefile_CC" != no; then
8688 CC=$CC$ac_cv_sys_largefile_CC
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8692 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8693 if ${ac_cv_sys_file_offset_bits+:} false; then :
8694 $as_echo_n "(cached) " >&6
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699 #include <sys/types.h>
8700 /* Check that off_t can represent 2**63 - 1 correctly.
8701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8702 since some C++ compilers masquerading as C compilers
8703 incorrectly reject 9223372036854775807. */
8704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8706 && LARGE_OFF_T % 2147483647 == 1)
8716 if ac_fn_c_try_compile "$LINENO"; then :
8717 ac_cv_sys_file_offset_bits=no; break
8719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 #define _FILE_OFFSET_BITS 64
8723 #include <sys/types.h>
8724 /* Check that off_t can represent 2**63 - 1 correctly.
8725 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8726 since some C++ compilers masquerading as C compilers
8727 incorrectly reject 9223372036854775807. */
8728 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8729 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8730 && LARGE_OFF_T % 2147483647 == 1)
8740 if ac_fn_c_try_compile "$LINENO"; then :
8741 ac_cv_sys_file_offset_bits=64; break
8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 ac_cv_sys_file_offset_bits=unknown
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8749 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8750 case $ac_cv_sys_file_offset_bits in #(
8753 cat >>confdefs.h <<_ACEOF
8754 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8759 if test $ac_cv_sys_file_offset_bits = unknown; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8761 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8762 if ${ac_cv_sys_large_files+:} false; then :
8763 $as_echo_n "(cached) " >&6
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8768 #include <sys/types.h>
8769 /* Check that off_t can represent 2**63 - 1 correctly.
8770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8771 since some C++ compilers masquerading as C compilers
8772 incorrectly reject 9223372036854775807. */
8773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8775 && LARGE_OFF_T % 2147483647 == 1)
8785 if ac_fn_c_try_compile "$LINENO"; then :
8786 ac_cv_sys_large_files=no; break
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 #define _LARGE_FILES 1
8792 #include <sys/types.h>
8793 /* Check that off_t can represent 2**63 - 1 correctly.
8794 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8795 since some C++ compilers masquerading as C compilers
8796 incorrectly reject 9223372036854775807. */
8797 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8799 && LARGE_OFF_T % 2147483647 == 1)
8809 if ac_fn_c_try_compile "$LINENO"; then :
8810 ac_cv_sys_large_files=1; break
8812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8813 ac_cv_sys_large_files=unknown
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8818 $as_echo "$ac_cv_sys_large_files" >&6; }
8819 case $ac_cv_sys_large_files in #(
8822 cat >>confdefs.h <<_ACEOF
8823 #define _LARGE_FILES $ac_cv_sys_large_files
8835 if test x$enable_largefile != xno; then
8836 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
8838 if test x$ac_cv_sys_large_files = x1; then
8839 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
8842 if test x$ac_cv_sys_file_offset_bits = x64; then
8843 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8849 $as_echo_n "checking for long long int... " >&6; }
8850 if ${ac_cv_c_long_long+:} false; then :
8851 $as_echo_n "(cached) " >&6
8853 if test "$GCC" = yes; then
8854 ac_cv_c_long_long=yes
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8867 if ac_fn_c_try_compile "$LINENO"; then :
8868 ac_cv_c_long_long=yes
8870 ac_cv_c_long_long=no
8872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
8876 $as_echo "$ac_cv_c_long_long" >&6; }
8878 if test $ac_cv_c_long_long = yes; then
8879 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
8883 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
8884 if test "x$ac_cv_func_strtoll" = xyes; then :
8885 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
8891 # Check whether --enable-avahi was given.
8892 if test "${enable_avahi+set}" = set; then :
8893 enableval=$enable_avahi;
8896 # Check whether --enable-dnssd was given.
8897 if test "${enable_dnssd+set}" = set; then :
8898 enableval=$enable_dnssd;
8902 # Check whether --with-dnssd-libs was given.
8903 if test "${with_dnssd_libs+set}" = set; then :
8904 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
8905 DSOFLAGS="-L$withval $DSOFLAGS"
8909 # Check whether --with-dnssd-includes was given.
8910 if test "${with_dnssd_includes+set}" = set; then :
8911 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
8912 CPPFLAGS="-I$withval $CPPFLAGS"
8921 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
8923 $as_echo_n "checking for Avahi... " >&6; }
8924 if $PKGCONFIG --exists avahi-client; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8926 $as_echo "yes" >&6; }
8927 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
8928 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
8929 DNSSD_BACKEND="dnssd"
8930 IPPFIND_BIN="ippfind"
8931 IPPFIND_MAN="ippfind.1"
8932 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936 $as_echo "no" >&6; }
8940 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
8941 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
8942 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
8944 case "$host_os_name" in
8946 # Darwin and macOS...
8947 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
8949 DNSSD_BACKEND="dnssd"
8950 IPPFIND_BIN="ippfind"
8951 IPPFIND_MAN="ippfind.1"
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
8956 $as_echo_n "checking for current version of dns_sd library... " >&6; }
8958 LIBS="$LIBS -ldns_sd"
8959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8965 int constant = kDNSServiceFlagsShareConnection;
8966 unsigned char txtRecord[100];
8968 TXTRecordGetValuePtr(sizeof(txtRecord),
8969 txtRecord, "value", &valueLen);
8974 if ac_fn_c_try_compile "$LINENO"; then :
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8976 $as_echo "yes" >&6; }
8977 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
8979 DNSSDLIBS="-ldns_sd"
8980 DNSSD_BACKEND="dnssd"
8982 IPPFIND_BIN="ippfind"
8983 IPPFIND_MAN="ippfind.1"
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008 # Check whether --enable-launchd was given.
9009 if test "${enable_launchd+set}" = set; then :
9010 enableval=$enable_launchd;
9016 if test x$enable_launchd != xno; then
9017 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9018 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9020 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9022 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9026 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9027 if test "x$ac_cv_header_launch_h" = xyes; then :
9028 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9034 if test "$host_os_name" = darwin; then
9035 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9036 # liblaunch is already part of libSystem
9040 # Check whether --enable-systemd was given.
9041 if test "${enable_systemd+set}" = set; then :
9042 enableval=$enable_systemd;
9046 # Check whether --with-systemd was given.
9047 if test "${with_systemd+set}" = set; then :
9048 withval=$with_systemd; SYSTEMD_DIR="$withval"
9055 if test x$enable_systemd != xno; then
9056 if test "x$PKGCONFIG" = x; then
9057 if test x$enable_systemd = xyes; then
9058 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9063 $as_echo_n "checking for libsystemd... " >&6; }
9064 if $PKGCONFIG --exists libsystemd; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9066 $as_echo "yes" >&6; }
9068 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9069 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9070 elif $PKGCONFIG --exists libsystemd-daemon; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9072 $as_echo "yes - legacy" >&6; }
9074 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9075 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9077 if $PKGCONFIG --exists libsystemd-journal; then
9078 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9079 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9083 $as_echo "no" >&6; }
9086 if test $have_systemd = yes; then
9087 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9089 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9091 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9092 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9093 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9098 if test "x$SYSTEMD_DIR" = x; then
9099 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9105 # Check whether --enable-upstart was given.
9106 if test "${enable_upstart+set}" = set; then :
9107 enableval=$enable_upstart;
9110 if test "x$enable_upstart" = "xyes"; then
9111 if test "x$have_systemd" = "xyes"; then
9112 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9114 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9116 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9123 # Check whether --with-smfmanifestdir was given.
9124 if test "${with_smfmanifestdir+set}" = set; then :
9125 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9130 # Check whether --with-rcdir was given.
9131 if test "${with_rcdir+set}" = set; then :
9132 withval=$with_rcdir; rcdir="$withval"
9138 # Check whether --with-rclevels was given.
9139 if test "${with_rclevels+set}" = set; then :
9140 withval=$with_rclevels; rclevels="$withval"
9146 # Check whether --with-rcstart was given.
9147 if test "${with_rcstart+set}" = set; then :
9148 withval=$with_rcstart; rcstart="$withval"
9154 # Check whether --with-rcstop was given.
9155 if test "${with_rcstop+set}" = set; then :
9156 withval=$with_rcstop; rcstop="$withval"
9162 if test x$rcdir = x; then
9163 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9164 # Fall back on "init", the original service startup interface...
9165 if test -d /sbin/init.d; then
9167 rcdir="/sbin/init.d"
9168 elif test -d /etc/init.d; then
9180 if test "x$rcstart" = x; then
9181 case "$host_os_name" in
9199 if test "x$rcstop" = x; then
9200 case "$host_os_name" in
9215 RCLEVELS="$rclevels"
9224 if test "x$rcdir" != xno; then
9225 if test "x$rclevels" = x; then
9233 # Check whether --with-xinetd was given.
9234 if test "${with_xinetd+set}" = set; then :
9235 withval=$with_xinetd; xinetd="$withval"
9243 if test "x$xinetd" = x; then
9244 if test ! -x /sbin/launchd; then
9245 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9246 if test -d $dir; then
9252 elif test "x$xinetd" != xno; then
9257 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9260 # Check whether --with-languages was given.
9261 if test "${with_languages+set}" = set; then :
9262 withval=$with_languages;
9264 none | no) LANGUAGES="" ;;
9266 *) LANGUAGES="$withval" ;;
9273 # Check whether --with-bundledir was given.
9274 if test "${with_bundledir+set}" = set; then :
9275 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9278 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9279 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9288 if test "x$CUPS_BUNDLEDIR" != x; then
9289 cat >>confdefs.h <<_ACEOF
9290 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9296 # Check whether --with-bundlelang was given.
9297 if test "${with_bundlelang+set}" = set; then :
9298 withval=$with_bundlelang; cups_bundlelang="$withval"
9301 if test $host_os_version -ge 190; then
9302 cups_bundlelang="en"
9304 cups_bundlelang="English"
9309 if test "x$cups_bundlelang" != x -a "x$CUPS_BUNDLEDIR" != x; then
9310 CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/$cups_bundlelang.lproj"
9317 # Check whether --with-exe_file_perm was given.
9318 if test "${with_exe_file_perm+set}" = set; then :
9319 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9321 case "$host_os_name" in
9323 CUPS_EXE_FILE_PERM="755"
9326 CUPS_EXE_FILE_PERM="555"
9334 # Check whether --with-config_file_perm was given.
9335 if test "${with_config_file_perm+set}" = set; then :
9336 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9338 if test "x$host_os_name" = xdarwin; then
9339 CUPS_CONFIG_FILE_PERM="644"
9341 CUPS_CONFIG_FILE_PERM="640"
9346 cat >>confdefs.h <<_ACEOF
9347 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9352 # Check whether --with-cupsd_file_perm was given.
9353 if test "${with_cupsd_file_perm+set}" = set; then :
9354 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9356 case "$host_os_name" in
9358 CUPS_CUPSD_FILE_PERM="700"
9361 CUPS_CUPSD_FILE_PERM="500"
9369 # Check whether --with-log_file_perm was given.
9370 if test "${with_log_file_perm+set}" = set; then :
9371 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9373 CUPS_LOG_FILE_PERM="644"
9377 cat >>confdefs.h <<_ACEOF
9378 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9383 # Check whether --with-fatal_errors was given.
9384 if test "${with_fatal_errors+set}" = set; then :
9385 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9387 CUPS_FATAL_ERRORS="config"
9391 cat >>confdefs.h <<_ACEOF
9392 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9397 # Check whether --with-log_level was given.
9398 if test "${with_log_level+set}" = set; then :
9399 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9401 CUPS_LOG_LEVEL="warn"
9405 cat >>confdefs.h <<_ACEOF
9406 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9411 # Check whether --with-access_log_level was given.
9412 if test "${with_access_log_level+set}" = set; then :
9413 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9415 CUPS_ACCESS_LOG_LEVEL="none"
9419 cat >>confdefs.h <<_ACEOF
9420 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9424 # Check whether --enable-page_logging was given.
9425 if test "${enable_page_logging+set}" = set; then :
9426 enableval=$enable_page_logging;
9429 if test "x$enable_page_logging" = xyes; then
9430 CUPS_PAGE_LOG_FORMAT=""
9432 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9436 # Check whether --enable-browsing was given.
9437 if test "${enable_browsing+set}" = set; then :
9438 enableval=$enable_browsing;
9441 if test "x$enable_browsing" = xno; then
9443 cat >>confdefs.h <<_ACEOF
9444 #define CUPS_DEFAULT_BROWSING 0
9449 cat >>confdefs.h <<_ACEOF
9450 #define CUPS_DEFAULT_BROWSING 1
9457 # Check whether --with-local_protocols was given.
9458 if test "${with_local_protocols+set}" = set; then :
9459 withval=$with_local_protocols; default_local_protocols="$withval"
9461 default_local_protocols="default"
9465 if test x$with_local_protocols != xno; then
9466 if test "x$default_local_protocols" = "xdefault"; then
9467 if test "x$DNSSD_BACKEND" != "x"; then
9468 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9470 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9473 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9476 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9480 cat >>confdefs.h <<_ACEOF
9481 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9485 # Check whether --enable-default_shared was given.
9486 if test "${enable_default_shared+set}" = set; then :
9487 enableval=$enable_default_shared;
9490 if test "x$enable_default_shared" = xno; then
9491 CUPS_DEFAULT_SHARED="No"
9492 cat >>confdefs.h <<_ACEOF
9493 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9497 CUPS_DEFAULT_SHARED="Yes"
9498 cat >>confdefs.h <<_ACEOF
9499 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9506 # Check whether --with-cups_user was given.
9507 if test "${with_cups_user+set}" = set; then :
9508 withval=$with_cups_user; CUPS_USER="$withval"
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9511 $as_echo_n "checking for default print user... " >&6; }
9512 if test x$host_os_name = xdarwin; then
9513 if test x`id
-u _lp
2>/dev
/null
` = x; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9519 $as_echo "$CUPS_USER" >&6; }
9520 elif test -f /etc/passwd; then
9522 for user in lp lpd guest daemon nobody; do
9523 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9526 $as_echo "$user" >&6; }
9531 if test x$CUPS_USER = x; then
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9534 $as_echo "not found" >&6; }
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9539 $as_echo "no password file" >&6; }
9544 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9545 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9549 # Check whether --with-cups_group was given.
9550 if test "${with_cups_group+set}" = set; then :
9551 withval=$with_cups_group; CUPS_GROUP="$withval"
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9554 $as_echo_n "checking for default print group... " >&6; }
9555 if test x$host_os_name = xdarwin; then
9556 if test x`id
-g _lp
2>/dev
/null
` = x; then
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9562 $as_echo "$CUPS_GROUP" >&6; }
9563 elif test -f /etc/group; then
9564 GROUP_LIST="_lp lp nobody"
9566 for group in $GROUP_LIST; do
9567 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9570 $as_echo "$group" >&6; }
9575 if test x$CUPS_GROUP = x; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9578 $as_echo "not found" >&6; }
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9583 $as_echo "no group file" >&6; }
9588 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9589 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9593 # Check whether --with-system_groups was given.
9594 if test "${with_system_groups+set}" = set; then :
9595 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9597 if test x$host_os_name = xdarwin; then
9598 CUPS_SYSTEM_GROUPS="admin"
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9601 $as_echo_n "checking for default system groups... " >&6; }
9602 if test -f /etc/group; then
9603 CUPS_SYSTEM_GROUPS=""
9604 GROUP_LIST="lpadmin sys system root wheel"
9605 for group in $GROUP_LIST; do
9606 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9607 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9608 CUPS_SYSTEM_GROUPS="$group"
9610 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9615 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9616 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9618 $as_echo "no groups found" >&6; }
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9621 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9624 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9626 $as_echo "no group file" >&6; }
9632 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9634 for group in $CUPS_SYSTEM_GROUPS; do
9635 if test "x$CUPS_GROUP" = "x$group"; then
9636 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9645 cat >>confdefs.h <<_ACEOF
9646 #define CUPS_DEFAULT_USER "$CUPS_USER"
9649 cat >>confdefs.h <<_ACEOF
9650 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9653 cat >>confdefs.h <<_ACEOF
9654 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9659 # Check whether --with-printcap was given.
9660 if test "${with_printcap+set}" = set; then :
9661 withval=$with_printcap; default_printcap="$withval"
9663 default_printcap="default"
9667 if test x$default_printcap != xno; then
9668 if test "x$default_printcap" = "xdefault"; then
9669 case $host_os_name in
9671 if test $host_os_version -ge 90; then
9672 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9674 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9678 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9681 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9685 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9688 CUPS_DEFAULT_PRINTCAP=""
9692 cat >>confdefs.h <<_ACEOF
9693 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9698 # Check whether --with-lpdconfigfile was given.
9699 if test "${with_lpdconfigfile+set}" = set; then :
9700 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9702 default_lpdconfigfile="default"
9706 if test x$default_lpdconfigfile != xno; then
9707 if test "x$default_lpdconfigfile" = "xdefault"; then
9708 case $host_os_name in
9710 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9713 if test "x$XINETD" != x; then
9714 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9716 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9721 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9724 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9727 cat >>confdefs.h <<_ACEOF
9728 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9734 # Check whether --with-smbconfigfile was given.
9735 if test "${with_smbconfigfile+set}" = set; then :
9736 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9738 default_smbconfigfile="default"
9742 if test x$default_smbconfigfile != xno; then
9743 if test "x$default_smbconfigfile" = "xdefault"; then
9744 if test -f /etc/smb.conf; then
9745 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9747 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9750 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9753 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9756 cat >>confdefs.h <<_ACEOF
9757 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9763 # Check whether --with-max-copies was given.
9764 if test "${with_max_copies+set}" = set; then :
9765 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9767 CUPS_MAX_COPIES="9999"
9772 cat >>confdefs.h <<_ACEOF
9773 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9777 # Check whether --enable-raw_printing was given.
9778 if test "${enable_raw_printing+set}" = set; then :
9779 enableval=$enable_raw_printing;
9782 if test "x$enable_raw_printing" != xno; then
9783 DEFAULT_RAW_PRINTING=""
9785 DEFAULT_RAW_PRINTING="#"
9790 # Check whether --with-snmp-address was given.
9791 if test "${with_snmp_address+set}" = set; then :
9792 withval=$with_snmp_address; if test "x$withval" = x; then
9793 CUPS_SNMP_ADDRESS=""
9795 CUPS_SNMP_ADDRESS="Address $withval"
9798 if test "x$host_os_name" = xdarwin; then
9799 CUPS_SNMP_ADDRESS=""
9801 CUPS_SNMP_ADDRESS="Address @LOCAL"
9807 # Check whether --with-snmp-community was given.
9808 if test "${with_snmp_community+set}" = set; then :
9809 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9811 CUPS_SNMP_COMMUNITY="Community public"
9819 # Check whether --with-ipp-port was given.
9820 if test "${with_ipp_port+set}" = set; then :
9821 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
9823 DEFAULT_IPP_PORT="631"
9828 cat >>confdefs.h <<_ACEOF
9829 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
9833 # Check whether --enable-webif was given.
9834 if test "${enable_webif+set}" = set; then :
9835 enableval=$enable_webif;
9838 case "x$enable_webif" in
9841 CUPS_DEFAULT_WEBIF=0
9845 CUPS_DEFAULT_WEBIF=1
9848 if test $host_os_name = darwin; then
9850 CUPS_DEFAULT_WEBIF=0
9853 CUPS_DEFAULT_WEBIF=1
9859 cat >>confdefs.h <<_ACEOF
9860 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
9865 INSTALL_LANGUAGES=""
9866 UNINSTALL_LANGUAGES=""
9868 if test "x$LANGUAGES" != x; then
9869 INSTALL_LANGUAGES="install-languages"
9870 UNINSTALL_LANGUAGES="uninstall-languages"
9871 for lang in $LANGUAGES; do
9872 if test -f doc/$lang/index.html.in; then
9873 LANGFILES="$LANGFILES doc/$lang/index.html"
9876 if test -f templates/$lang/header.tmpl.in; then
9877 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
9880 elif test "x$CUPS_BUNDLEDIR" != x; then
9881 INSTALL_LANGUAGES="install-langbundle"
9882 UNINSTALL_LANGUAGES="uninstall-langbundle"
9888 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 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"
9890 cat >confcache <<\_ACEOF
9891 # This file is a shell script that caches the results of configure
9892 # tests run on this system so they can be shared between configure
9893 # scripts and configure runs, see configure's option --config-cache.
9894 # It is not useful on other systems. If it contains results you don't
9895 # want to keep, you may remove or edit it.
9897 # config.status only pays attention to the cache file if you give it
9898 # the --recheck option to rerun configure.
9900 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
9901 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9906 # The following way of writing the cache mishandles newlines in values,
9907 # but we know of no workaround that is simple, portable, and efficient.
9908 # So, we kill variables containing newlines.
9909 # Ultrix sh set writes to stderr and can't be redirected directly,
9910 # and sets the high bit in the cache file unless we assign to the vars.
9912 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9913 eval ac_val
=\$
$ac_var
9917 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9918 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9921 _ | IFS | as_nl
) ;; #(
9922 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9923 *) { eval $ac_var=; unset $ac_var;} ;;
9929 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9930 *${as_nl}ac_space
=\
*)
9931 # `set' does not quote correctly, so add quotes: double-quote
9932 # substitution turns \\\\ into \\, and sed turns \\ into \.
9935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9938 # `set' quotes correctly as required by POSIX, so do not add quotes.
9939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9948 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9950 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9952 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9953 if test -w "$cache_file"; then
9954 if test "x$cache_file" != "x/dev/null"; then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9956 $as_echo "$as_me: updating cache $cache_file" >&6;}
9957 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9958 cat confcache
>"$cache_file"
9960 case $cache_file in #(
9962 mv -f confcache
"$cache_file"$$
&&
9963 mv -f "$cache_file"$$
"$cache_file" ;; #(
9965 mv -f confcache
"$cache_file" ;;
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9971 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9976 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9977 # Let make expand exec_prefix.
9978 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9980 DEFS
=-DHAVE_CONFIG_H
9985 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9986 # 1. Remove the extension, and $U if already installed.
9987 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9988 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9989 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9990 # will be set to the directory where LIBOBJS objects are built.
9991 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9992 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9996 LTLIBOBJS
=$ac_ltlibobjs
10000 : "${CONFIG_STATUS=./config.status}"
10002 ac_clean_files_save
=$ac_clean_files
10003 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10005 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10007 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10009 # Generated by $as_me.
10010 # Run this file to recreate the current configuration.
10011 # Compiler output produced by configure, useful for debugging
10012 # configure, is in config.log if it exists.
10015 ac_cs_recheck=false
10018 SHELL=\${CONFIG_SHELL-$SHELL}
10021 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10022 ## -------------------- ##
10023 ## M4sh Initialization. ##
10024 ## -------------------- ##
10026 # Be more Bourne compatible
10027 DUALCASE
=1; export DUALCASE
# for MKS sh
10028 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10031 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10032 # is contrary to our usage. Disable this feature.
10033 alias -g '${1+"$@"}'='"$@"'
10034 setopt NO_GLOB_SUBST
10036 case `(set -o) 2>/dev/null` in #(
10048 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10049 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10050 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10051 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10052 # Prefer a ksh shell builtin over an external printf program on Solaris,
10053 # but without wasting forks for bash or zsh.
10054 if test -z "$BASH_VERSION$ZSH_VERSION" \
10055 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10056 as_echo='print
-r --'
10057 as_echo_n='print
-rn --'
10058 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10059 as_echo='printf %s
\n'
10060 as_echo_n='printf %s
'
10062 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10063 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10064 as_echo_n='/usr
/ucb
/echo -n'
10066 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10067 as_echo_n_body='eval
10071 expr "X$arg" : "X\\(.*\\)$as_nl";
10072 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10074 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10076 export as_echo_n_body
10077 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10079 export as_echo_body
10080 as_echo='sh
-c $as_echo_body as_echo
'
10083 # The user is always right.
10084 if test "${PATH_SEPARATOR+set}" != set; then
10086 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10087 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10094 # We need space, tab and new line, in precisely that order. Quoting is
10095 # there to prevent editors from complaining about space-tab.
10096 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10097 # splitting by setting IFS to empty value.)
10100 # Find who we are. Look in the path if we contain no directory separator.
10103 *[\\/]* ) as_myself=$0 ;;
10104 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105 for as_dir in $PATH
10108 test -z "$as_dir" && as_dir=.
10109 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10115 # We did not find ourselves, most probably we were run as `sh COMMAND'
10116 # in which case we are not to be found in the path.
10117 if test "x$as_myself" = x
; then
10120 if test ! -f "$as_myself"; then
10121 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10125 # Unset variables that we do not need and which cause bugs (e.g. in
10126 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10127 # suppresses any "Segmentation fault" message there. '((' could
10128 # trigger a bug in pdksh 5.2.14.
10129 for as_var
in BASH_ENV ENV MAIL MAILPATH
10130 do eval test x\
${$as_var+set} = xset \
10131 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10144 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10147 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10148 # ----------------------------------------
10149 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10150 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10151 # script with STATUS, using 1 if that was 0.
10154 as_status
=$1; test $as_status -eq 0 && as_status
=1
10156 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10157 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10159 $as_echo "$as_me: error: $2" >&2
10160 as_fn_exit
$as_status
10164 # as_fn_set_status STATUS
10165 # -----------------------
10166 # Set $? to STATUS, without forking.
10167 as_fn_set_status
()
10170 } # as_fn_set_status
10172 # as_fn_exit STATUS
10173 # -----------------
10174 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10178 as_fn_set_status
$1
10184 # Portably unset VAR.
10187 { eval $1=; unset $1;}
10189 as_unset
=as_fn_unset
10190 # as_fn_append VAR VALUE
10191 # ----------------------
10192 # Append the text in VALUE to the end of the definition contained in VAR. Take
10193 # advantage of any shell optimizations that allow amortized linear growth over
10194 # repeated appends, instead of the typical quadratic growth present in naive
10196 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10197 eval 'as_fn_append ()
10208 # as_fn_arith ARG...
10209 # ------------------
10210 # Perform arithmetic evaluation on the ARGs, and store the result in the
10211 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10212 # must be portable across $(()) and expr.
10213 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10214 eval 'as_fn_arith ()
10221 as_val
=`expr "$@" || test $? -eq 1`
10226 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10227 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10233 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10234 as_basename
=basename
10239 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10245 as_me
=`$as_basename -- "$0" ||
10246 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10247 X"$0" : 'X\(//\)$' \| \
10248 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10250 sed '/^.*\/\([^/][^/]*\)\/*$/{
10264 # Avoid depending upon Character Ranges.
10265 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10266 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10267 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10268 as_cr_digits
='0123456789'
10269 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10271 ECHO_C
= ECHO_N
= ECHO_T
=
10272 case `echo -n x` in #(((((
10274 case `echo 'xy\c'` in
10275 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10277 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10284 rm -f conf$$ conf$$.exe conf$$.
file
10285 if test -d conf$$.dir
; then
10286 rm -f conf$$.dir
/conf$$.
file
10289 mkdir conf$$.dir
2>/dev
/null
10291 if (echo >conf$$.
file) 2>/dev
/null
; then
10292 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10294 # ... but there are two gotchas:
10295 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10296 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10297 # In both cases, we have to default to `cp -pR'.
10298 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10300 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10308 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10309 rmdir conf$$.dir
2>/dev
/null
10314 # Create "$as_dir" as a directory, including parents if necessary.
10319 -*) as_dir
=.
/$as_dir;;
10321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10326 *) as_qdir
=$as_dir;;
10328 as_dirs
="'$as_qdir' $as_dirs"
10329 as_dir
=`$as_dirname -- "$as_dir" ||
10330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10331 X"$as_dir" : 'X\(//\)[^/]' \| \
10332 X"$as_dir" : 'X\(//\)$' \| \
10333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10334 $as_echo X"$as_dir" |
10335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10339 /^X\(\/\/\)[^/].*/{
10352 test -d "$as_dir" && break
10354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10359 if mkdir
-p .
2>/dev
/null
; then
10360 as_mkdir_p
='mkdir -p "$as_dir"'
10362 test -d .
/-p && rmdir .
/-p
10367 # as_fn_executable_p FILE
10368 # -----------------------
10369 # Test if FILE is an executable regular file.
10370 as_fn_executable_p
()
10372 test -f "$1" && test -x "$1"
10373 } # as_fn_executable_p
10374 as_test_x
='test -x'
10375 as_executable_p
=as_fn_executable_p
10377 # Sed expression to map a string onto a valid CPP name.
10378 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10380 # Sed expression to map a string onto a valid variable name.
10381 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10385 ## ----------------------------------- ##
10386 ## Main body of $CONFIG_STATUS script. ##
10387 ## ----------------------------------- ##
10389 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10392 # Save the log message, to keep $0 and so on meaningful, and to
10393 # report actual input values of CONFIG_FILES etc. instead of their
10394 # values after options handling.
10396 This file was extended by CUPS $as_me 2.3.0, which was
10397 generated by GNU Autoconf 2.69. Invocation command line was
10399 CONFIG_FILES = $CONFIG_FILES
10400 CONFIG_HEADERS = $CONFIG_HEADERS
10401 CONFIG_LINKS = $CONFIG_LINKS
10402 CONFIG_COMMANDS = $CONFIG_COMMANDS
10405 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10410 case $ac_config_files in *"
10411 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10414 case $ac_config_headers in *"
10415 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10420 # Files that config.status was made for.
10421 config_files="$ac_config_files"
10422 config_headers="$ac_config_headers"
10426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10428 \`$as_me' instantiates files and other configuration actions
10429 from templates according to the current configuration. Unless the files
10430 and actions are specified as TAGs, all are instantiated by default.
10432 Usage: $0 [OPTION]... [TAG]...
10434 -h, --help print this help, then exit
10435 -V, --version print version number and configuration settings, then exit
10436 --config print configuration, then exit
10437 -q, --quiet, --silent
10438 do not print progress messages
10439 -d, --debug don't remove temporary files
10440 --recheck update $as_me by reconfiguring in the same conditions
10441 --file=FILE[:TEMPLATE]
10442 instantiate the configuration file FILE
10443 --header=FILE[:TEMPLATE]
10444 instantiate the configuration header FILE
10446 Configuration files:
10449 Configuration headers:
10452 Report bugs to <https://github.com/apple/cups/issues>.
10453 CUPS home page: <https://www.cups.org/>."
10456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10457 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10459 CUPS config.status 2.3.0
10460 configured by $0, generated by GNU Autoconf 2.69,
10461 with options \\"\$ac_cs_config\\"
10463 Copyright (C) 2012 Free Software Foundation, Inc.
10464 This config.status script is free software; the Free Software Foundation
10465 gives unlimited permission to copy, distribute and modify it."
10470 test -n "\$AWK" || AWK=awk
10473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10474 # The default lists apply if the user does not specify any file.
10480 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10481 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10485 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10497 # Handling of the options.
10498 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10500 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10501 $as_echo "$ac_cs_version"; exit ;;
10502 --config |
--confi |
--conf |
--con |
--co |
--c )
10503 $as_echo "$ac_cs_config"; exit ;;
10504 --debug |
--debu |
--deb |
--de |
--d |
-d )
10506 --file |
--fil |
--fi |
--f )
10509 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10510 '') as_fn_error $?
"missing file argument" ;;
10512 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10513 ac_need_defaults
=false
;;
10514 --header |
--heade |
--head |
--hea )
10517 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10519 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10520 ac_need_defaults
=false
;;
10522 # Conflict between --help and --header
10523 as_fn_error $?
"ambiguous option: \`$1'
10524 Try \`$0 --help' for more information.";;
10525 --help |
--hel |
-h )
10526 $as_echo "$ac_cs_usage"; exit ;;
10527 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10528 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10531 # This is an error.
10532 -*) as_fn_error $?
"unrecognized option: \`$1'
10533 Try \`$0 --help' for more information." ;;
10535 *) as_fn_append ac_config_targets
" $1"
10536 ac_need_defaults
=false
;;
10542 ac_configure_extra_args
=
10544 if $ac_cs_silent; then
10546 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10551 if \$ac_cs_recheck; then
10552 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10554 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10555 CONFIG_SHELL='$SHELL'
10556 export CONFIG_SHELL
10561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10566 ## Running $as_me. ##
10572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10577 # Handling of arguments.
10578 for ac_config_target
in $ac_config_targets
10580 case $ac_config_target in
10581 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10582 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10583 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10584 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10585 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10586 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10587 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10588 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10589 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10590 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10591 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10592 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10593 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10594 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10595 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10596 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10597 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10598 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10599 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10600 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10601 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10603 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10608 # If the user did not use the arguments to specify the items to instantiate,
10609 # then the envvar interface is used. Set only those that are not.
10610 # We use the long form for the default assignment because of an extremely
10611 # bizarre bug on SunOS 4.1.3.
10612 if $ac_need_defaults; then
10613 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10614 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10617 # Have a temporary directory for convenience. Make it in the build tree
10618 # simply because there is no reason against having it here, and in addition,
10619 # creating and moving files from /tmp can sometimes cause problems.
10620 # Hook for its removal unless debugging.
10621 # Note that there is a small window in which the directory will not be cleaned:
10622 # after its creation but before its name has been assigned to `$tmp'.
10626 trap 'exit_status=$?
10627 : "${ac_tmp:=$tmp}"
10628 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10630 trap 'as_fn_exit 1' 1 2 13 15
10632 # Create a (secure) tmp directory for tmp files.
10635 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10639 tmp
=.
/conf$$
-$RANDOM
10640 (umask 077 && mkdir
"$tmp")
10641 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10644 # Set up the scripts for CONFIG_FILES section.
10645 # No need to generate them if there are no CONFIG_FILES.
10646 # This happens for instance with `./config.status config.h'.
10647 if test -n "$CONFIG_FILES"; then
10650 ac_cr
=`echo X | tr X '\015'`
10651 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10652 # But we know of no other shell where ac_cr would be empty at this
10653 # point, so we can use a bashism as a fallback.
10654 if test "x$ac_cr" = x
; then
10655 eval ac_cr
=\$
\'\\r
\'
10657 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10658 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10661 ac_cs_awk_cr
=$ac_cr
10664 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10669 echo "cat >conf$$subs.awk <<_ACEOF" &&
10670 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10672 } >conf$$subs.sh ||
10673 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10674 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10676 for ac_last_try in false false false false false :; do
10677 . ./conf$$subs.sh ||
10678 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10680 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10681 if test $ac_delim_n = $ac_delim_num; then
10683 elif $ac_last_try; then
10684 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10686 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10689 rm -f conf$$subs.sh
10691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10692 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10696 s/^/S["/; s
/!.
*/"]=/
10706 s/\(.\{148\}\)..*/\1/
10708 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10713 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10720 s/\(.\{148\}\)..*/\1/
10722 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10726 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10731 ' <conf$$subs.awk | sed '
10736 ' >>$CONFIG_STATUS || ac_write_fail=1
10737 rm -f conf$$subs.awk
10738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10740 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10741 for (key in S) S_is_set[key] = 1
10747 nfields = split(line, field, "@
")
10749 len = length(field[1])
10750 for (i = 2; i < nfields; i++) {
10752 keylen = length(key)
10753 if (S_is_set[key]) {
10755 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10756 len += length(value) + length(field[++i])
10767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10768 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10769 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10772 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10773 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10776 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10777 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10778 # trailing colons and then remove the whole line if VPATH becomes empty
10779 # (actually we leave an empty line to preserve line numbers).
10780 if test "x
$srcdir" = x.; then
10781 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10800 fi # test -n "$CONFIG_FILES"
10802 # Set up the scripts for CONFIG_HEADERS section.
10803 # No need to generate them if there are no CONFIG_HEADERS.
10804 # This happens for instance with `./config.status Makefile'.
10805 if test -n "$CONFIG_HEADERS"; then
10806 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10810 # Transform confdefs.h into an awk script `defines.awk', embedded as
10811 # here-document in config.status, that substitutes the proper values into
10812 # config.h.in to produce config.h.
10814 # Create a delimiter string that does not exist in confdefs.h, to ease
10815 # handling of long lines.
10817 for ac_last_try in false false :; do
10818 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10819 if test -z "$ac_tt"; then
10821 elif $ac_last_try; then
10822 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10824 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10828 # For the awk script, D is an array of macro values keyed by name,
10829 # likewise P contains macro parameters if any. Preserve backslash
10830 # newline sequences.
10832 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10834 s/.\{148\}/&'"$ac_delim"'/g
10837 s/^[ ]*#[ ]*define[ ][ ]*/ /
10844 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10846 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10850 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10851 D["\
1"]=" \
3\\\\\\n
"\\/p
10853 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10858 s/.\{148\}/&'"$ac_delim"'/g
10863 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10866 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10868 ' <confdefs.h | sed '
10869 s/'"$ac_delim"'/"\\\
10870 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10873 for (key in D) D_is_set[key] = 1
10876 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10878 split(line, arg, " ")
10879 if (arg[1] == "#") {
10883 defundef
= substr
(arg
[1], 2)
10886 split(mac1
, mac2
, "(") #)
10888 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10889 if (D_is_set
[macro
]) {
10890 # Preserve the white space surrounding the "#".
10891 print prefix
"define", macro P
[macro
] D
[macro
]
10894 # Replace #undef with comments. This is necessary, for example,
10895 # in the case of _POSIX_SOURCE, which is predefined and required
10896 # on some systems where configure will not decide to define it.
10897 if (defundef
== "undef") {
10898 print
"/*", prefix defundef
, macro
, "*/"
10906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10907 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10908 fi # test -n "$CONFIG_HEADERS"
10911 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
10916 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10918 case $ac_mode$ac_tag in
10920 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10921 :[FH
]-) ac_tag
=-:-;;
10922 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10939 -) ac_f
="$ac_tmp/stdin";;
10940 *) # Look for the file first in the build tree, then in the source tree
10941 # (if the path is not absolute). The absolute path cannot be DOS-style,
10942 # because $ac_f cannot contain `:'.
10946 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10948 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10950 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10951 as_fn_append ac_file_inputs
" '$ac_f'"
10954 # Let's still pretend it is `configure' which instantiates (i.e., don't
10955 # use $as_me), people would be surprised to read:
10956 # /* config.h. Generated by config.status. */
10957 configure_input
='Generated from '`
10958 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10960 if test x
"$ac_file" != x-
; then
10961 configure_input
="$ac_file. $configure_input"
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10963 $as_echo "$as_me: creating $ac_file" >&6;}
10965 # Neutralize special characters interpreted by sed in replacement strings.
10966 case $configure_input in #(
10967 *\
&* |
*\|
* |
*\\* )
10968 ac_sed_conf_input
=`$as_echo "$configure_input" |
10969 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10970 *) ac_sed_conf_input
=$configure_input;;
10974 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10975 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10980 ac_dir
=`$as_dirname -- "$ac_file" ||
10981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10982 X"$ac_file" : 'X\(//\)[^/]' \| \
10983 X"$ac_file" : 'X\(//\)$' \| \
10984 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10985 $as_echo X"$ac_file" |
10986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10990 /^X\(\/\/\)[^/].*/{
11003 as_dir
="$ac_dir"; as_fn_mkdir_p
11007 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11009 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11010 # A ".." for each directory in $ac_dir_suffix.
11011 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11012 case $ac_top_builddir_sub in
11013 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11014 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11017 ac_abs_top_builddir
=$ac_pwd
11018 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11019 # for backward compatibility:
11020 ac_top_builddir
=$ac_top_build_prefix
11023 .
) # We are building in place.
11025 ac_top_srcdir
=$ac_top_builddir_sub
11026 ac_abs_top_srcdir
=$ac_pwd ;;
11027 [\\/]* | ?
:[\\/]* ) # Absolute name.
11028 ac_srcdir
=$srcdir$ac_dir_suffix;
11029 ac_top_srcdir
=$srcdir
11030 ac_abs_top_srcdir
=$srcdir ;;
11031 *) # Relative name.
11032 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11033 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11034 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11036 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11048 # If the template does not know about datarootdir, expand it.
11049 # FIXME: This hack should be removed a few years after 2.60.
11050 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11061 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11062 *datarootdir
*) ac_datarootdir_seen
=yes;;
11063 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11065 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11068 ac_datarootdir_hack='
11069 s&@datadir@&$datadir&g
11070 s&@docdir@&$docdir&g
11071 s&@infodir@&$infodir&g
11072 s&@localedir@&$localedir&g
11073 s&@mandir@&$mandir&g
11074 s&\\\${datarootdir}&$datarootdir&g' ;;
11078 # Neutralize VPATH when `$srcdir' = `.'.
11079 # Shell code in configure.ac might set extrasub.
11080 # FIXME: do we really want to maintain this feature?
11081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11082 ac_sed_extra="$ac_vpsub
11085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11087 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11088 s|@configure_input@|
$ac_sed_conf_input|
;t t
11089 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11090 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11091 s
&@srcdir@
&$ac_srcdir&;t t
11092 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11093 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11094 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11095 s
&@builddir@
&$ac_builddir&;t t
11096 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11097 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11098 $ac_datarootdir_hack
11100 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11101 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11103 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11104 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11105 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11106 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11108 which seems to be undefined. Please make sure it is defined" >&5
11109 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11110 which seems to be undefined. Please make sure it is defined" >&2;}
11112 rm -f "$ac_tmp/stdin"
11114 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11115 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11123 if test x"$ac_file" != x-; then
11125 $as_echo "/* $configure_input */" \
11126 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11127 } >"$ac_tmp/config.h" \
11128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11129 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11131 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11134 mv "$ac_tmp/config.h" "$ac_file" \
11135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11138 $as_echo "/* $configure_input */" \
11139 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11140 || as_fn_error $? "could not create -" "$LINENO" 5
11152 ac_clean_files=$ac_clean_files_save
11154 test $ac_write_fail = 0 ||
11155 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11158 # configure is writing to config.log, and then calls config.status.
11159 # config.status does its own redirection, appending to config.log.
11160 # Unfortunately, on DOS this fails, as config.log is still kept open
11161 # by configure, so config.status won't be able to
write to it
; its
11162 # output is simply discarded. So we exec the FD to /dev/null,
11163 # effectively closing config.log, so it can be properly (re)opened and
11164 # appended to by config.status. When coming back to configure, we
11165 # need to make the FD available again.
11166 if test "$no_create" != yes; then
11168 ac_config_status_args
=
11169 test "$silent" = yes &&
11170 ac_config_status_args
="$ac_config_status_args --quiet"
11172 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11174 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11175 # would make configure fail if this is the last instruction.
11176 $ac_cs_success || as_fn_exit
1
11178 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11180 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11184 chmod +x cups-config