2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for CUPS 2.2.13.
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.2.13'
584 PACKAGE_STRING='CUPS 2.2.13'
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
640 CUPS_DEFAULT_SMB_CONFIG_FILE
641 CUPS_DEFAULT_LPD_CONFIG_FILE
642 CUPS_DEFAULT_PRINTCAP
643 CUPS_PRIMARY_SYSTEM_GROUP
648 CUPS_BROWSE_LOCAL_PROTOCOLS
651 CUPS_ACCESS_LOG_LEVEL
656 CUPS_CONFIG_FILE_PERM
688 CUPS_DEFAULT_GSSSERVICENAME
691 CUPS_LISTEN_DOMAINSOCKET
692 CUPS_DEFAULT_DOMAINSOCKET
746 CUPS_DEFAULT_PRINTOPERATOR_AUTH
831 program_transform_name
844 enable_option_checking
868 enable_libtool_unsupported
904 with_config_file_perm
909 with_access_log_level
913 enable_default_shared
931 ac_precious_vars='build_alias
945 # Initialize some variables set by options.
947 ac_init_version=false
948 ac_unrecognized_opts=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
959 program_transform_name=s,x,x,
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984 infodir='${datarootdir}/info'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1005 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1012 case $ac_dashdash$ac_option in
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1036 -datadir | --datadir | --datadi | --datad)
1038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039 datadir=$ac_optarg ;;
1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1048 -disable-* | --disable-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid feature name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1057 "enable_$ac_useropt"
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1062 eval enable_$ac_useropt=no ;;
1064 -docdir | --docdir | --docdi | --doc | --do)
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
1074 -enable-* | --enable-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error $? "invalid feature name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1083 "enable_$ac_useropt"
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1088 eval enable_$ac_useropt=\$ac_optarg ;;
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 htmldir=$ac_optarg ;;
1121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1133 -libdir | --libdir | --libdi | --libd)
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1150 -localstatedir | --localstatedir | --localstatedi | --localstated \
1151 | --localstate | --localstat | --localsta | --localst | --locals)
1152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155 localstatedir=$ac_optarg ;;
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1224 -psdir | --psdir | --psdi | --psd | --ps)
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 sbindir=$ac_optarg ;;
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 sharedstatedir=$ac_optarg ;;
1250 -site | --site | --sit)
1252 -site=* | --site=* | --sit=*)
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1279 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error $? "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1292 eval with_$ac_useropt=\$ac_optarg ;;
1294 -without-* | --without-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid package name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1308 eval with_$ac_useropt=no ;;
1311 # Obsolete; use --with-x.
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1328 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information"
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 case $ac_envvar in #(
1336 '' | [0-9]* | *[!_$as_cr_alnum]* )
1337 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 as_fn_error $? "missing argument to $ac_option"
1358 if test -n "$ac_unrecognized_opts"; then
1359 case $enable_option_checking in
1361 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 # Check all directory arguments for consistency.
1367 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir
1372 eval ac_val=\$$ac_var
1373 # Remove trailing slashes.
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
1379 # Be sure to have absolute directory names.
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1392 target=$target_alias
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x; then
1396 if test "x$build_alias" = x; then
1397 cross_compiling=maybe
1398 elif test "x$build_alias" != "x$host_alias"; then
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406 test "$silent" = yes && exec 6>/dev/null
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error $? "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error $? "pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1449 ac_srcdir_defaulted=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1483 \`configure' configures CUPS 2.2.13 to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking ...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1541 --build=BUILD configure for building on BUILD [guessed]
1542 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1546 if test -n "$ac_init_help"; then
1547 case $ac_init_help in
1548 short | recursive ) echo "Configuration of CUPS 2.2.13:";;
1553 --disable-option-checking ignore unrecognized --enable/--with options
1554 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1555 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1556 --enable-static install static libraries
1557 --enable-mallinfo build with malloc debug logging
1558 --enable-libpaper build with libpaper support
1559 --enable-libusb use libusb for USB printing
1560 --enable-tcp-wrappers use libwrap for TCP wrappers support
1561 --enable-acl build with POSIX ACL support
1562 --disable-dbus build without DBUS support
1563 --disable-shared do not create shared libraries
1564 --enable-libtool-unsupported=/path/to/libtool
1565 build with libtool (UNSUPPORTED!)
1566 --enable-debug build with debugging symbols
1567 --enable-debug-guards build with memory allocation guards
1568 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1569 --enable-unit-tests build and run unit tests
1570 --enable-relro build with the GCC relro option
1571 --disable-gssapi disable GSSAPI support
1572 --disable-threads disable multi-threading support
1573 --disable-ssl disable SSL/TLS support
1574 --enable-cdsassl use CDSA for SSL/TLS support, default=first
1575 --enable-gnutls use GNU TLS for SSL/TLS support, default=second
1576 --disable-pam disable PAM support
1577 --disable-largefile omit support for large files
1578 --disable-avahi disable DNS Service Discovery support using Avahi
1579 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1580 --disable-launchd disable launchd support
1581 --disable-systemd disable systemd support
1582 --enable-upstart enable upstart support
1583 --enable-page-logging enable page_log by default
1584 --disable-browsing disable Browsing by default
1585 --disable-default-shared
1586 disable DefaultShared by default
1587 --disable-raw-printing do not allow raw printing by default
1588 --enable-webif enable the web interface by default, default=no for macOS
1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1593 --with-cups-build set "cups-config --build" string
1594 --with-dbusdir set DBUS configuration directory
1595 --with-adminkey set the default SystemAuthKey value
1596 --with-operkey set the default operator @AUTHKEY value
1597 --with-components set components to build:
1598 - "all" (default) builds everything
1599 - "core" builds libcups and ipptool
1600 --with-privateinclude set path for private include files, default=none
1601 --with-lpdconfig set URI for LPD config file
1602 --with-smbconfig set URI for Samba config file
1603 --with-cachedir set path for cache files
1604 --with-icondir set path for application icons
1605 --with-menudir set path for application menus
1606 --with-docdir set path for documentation
1607 --with-fontpath set font path for pstoraster
1608 --with-logdir set path for log files
1609 --with-rundir set transient run-time state directory
1610 --with-optim set optimization flags
1611 --with-archflags set default architecture flags
1612 --with-ldarchflags set program architecture flags
1613 --with-domainsocket set unix domain socket name
1614 --with-gssservicename set default gss service name
1615 --with-pam-module set the PAM module to use
1616 --with-dnssd-libs set directory for DNS Service Discovery library
1617 --with-dnssd-includes set directory for DNS Service Discovery includes
1618 --with-systemd set directory for systemd service files
1619 --with-smfmanifestdir set path for Solaris SMF manifest
1620 --with-rcdir set path for rc scripts
1621 --with-rclevels set run levels for rc scripts
1622 --with-rcstart set start number for rc scripts
1623 --with-rcstop set stop number for rc scripts
1624 --with-xinetd set path for xinetd config files
1625 --with-languages set installed languages, default=all
1626 --with-bundledir set macOS localization bundle directory
1627 --with-exe-file-perm set default executable permissions value, default=0555
1628 --with-config-file-perm set default ConfigFilePerm value, default=0640
1629 --with-cupsd-file-perm set default cupsd permissions, default=0500
1630 --with-log-file-perm set default LogFilePerm value, default=0644
1631 --with-fatal-errors set default FatalErrors value, default=config
1632 --with-log-level set default LogLevel value, default=warn
1633 --with-access-log-level set default AccessLogLevel value, default=none
1634 --with-local-protocols set default BrowseLocalProtocols, default=""
1635 --with-cups-user set default user for CUPS
1636 --with-cups-group set default group for CUPS
1637 --with-system-groups set default system groups for CUPS
1638 --with-printcap set default printcap file
1639 --with-lpdconfigfile set default LPDConfigFile URI
1640 --with-smbconfigfile set default SMBConfigFile URI
1641 --with-max-copies set default max copies value, default=9999
1642 --with-snmp-address set SNMP query address, default=auto
1643 --with-snmp-community set SNMP community, default=public
1644 --with-ipp-port set port number for IPP, default=631
1645 --with-java set Java interpreter for web interfaces
1646 --with-perl set Perl interpreter for web interfaces
1647 --with-php set PHP interpreter for web interfaces
1648 --with-python set Python interpreter for web interfaces
1650 Some influential environment variables:
1651 CC C compiler command
1652 CFLAGS C compiler flags
1653 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1654 nonstandard directory <lib dir>
1655 LIBS libraries to pass to the linker, e.g. -l<library>
1656 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1657 you have headers in a nonstandard directory <include dir>
1659 CXX C++ compiler command
1660 CXXFLAGS C++ compiler flags
1662 Use these variables to override the choices made by `configure' or to help
1663 it to find libraries and programs with nonstandard names/locations.
1665 Report bugs to <https://github.com/apple/cups/issues>.
1666 CUPS home page: <https://www.cups.org/>.
1671 if test "$ac_init_help" = "recursive"; then
1672 # If there are subdirs, report their specific --help.
1673 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1674 test -d "$ac_dir" ||
1675 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1680 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1682 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1683 # A ".." for each directory in $ac_dir_suffix.
1684 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1685 case $ac_top_builddir_sub in
1686 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1690 ac_abs_top_builddir=$ac_pwd
1691 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1692 # for backward compatibility:
1693 ac_top_builddir=$ac_top_build_prefix
1696 .) # We are building in place.
1698 ac_top_srcdir=$ac_top_builddir_sub
1699 ac_abs_top_srcdir=$ac_pwd ;;
1700 [\\/]* | ?:[\\/]* ) # Absolute name.
1701 ac_srcdir=$srcdir$ac_dir_suffix;
1702 ac_top_srcdir=$srcdir
1703 ac_abs_top_srcdir=$srcdir ;;
1705 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1706 ac_top_srcdir=$ac_top_build_prefix$srcdir
1707 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1709 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1711 cd "$ac_dir" || { ac_status=$?; continue; }
1712 # Check for guested configure.
1713 if test -f "$ac_srcdir/configure.gnu"; then
1715 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1716 elif test -f "$ac_srcdir/configure"; then
1718 $SHELL "$ac_srcdir/configure" --help=recursive
1720 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1722 cd "$ac_pwd" || { ac_status=$?; break; }
1726 test -n "$ac_init_help" && exit $ac_status
1727 if $ac_init_version; then
1729 CUPS configure 2.2.13
1730 generated by GNU Autoconf 2.69
1732 Copyright (C) 2012 Free Software Foundation, Inc.
1733 This configure script is free software; the Free Software Foundation
1734 gives unlimited permission to copy, distribute and modify it.
1739 ## ------------------------ ##
1740 ## Autoconf initialization. ##
1741 ## ------------------------ ##
1743 # ac_fn_c_try_compile LINENO
1744 # --------------------------
1745 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_c_try_compile ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext
1750 if { { ac_try="$ac_compile"
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_compile") 2>conftest.err
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest.$ac_objext; then :
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1779 } # ac_fn_c_try_compile
1781 # ac_fn_c_try_cpp LINENO
1782 # ----------------------
1783 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if { { ac_try="$ac_cpp conftest.$ac_ext"
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } > conftest.i && {
1803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1818 # ac_fn_cxx_try_compile LINENO
1819 # ----------------------------
1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_cxx_try_compile ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 rm -f conftest.$ac_objext
1825 if { { ac_try="$ac_compile"
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_compile") 2>conftest.err
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_cxx_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest.$ac_objext; then :
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status $ac_retval
1854 } # ac_fn_cxx_try_compile
1856 # ac_fn_c_try_link LINENO
1857 # -----------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded.
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 rm -f conftest.$ac_objext conftest$ac_exeext
1863 if { { ac_try="$ac_link"
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_link") 2>conftest.err
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && {
1879 test -z "$ac_c_werror_flag" ||
1880 test ! -s conftest.err
1881 } && test -s conftest$ac_exeext && {
1882 test "$cross_compiling" = yes ||
1883 test -x conftest$ac_exeext
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1892 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1893 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1894 # interfere with the next link command; also delete a directory that is
1895 # left behind by Apple's compiler. We do this before executing the actions.
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 as_fn_set_status $ac_retval
1900 } # ac_fn_c_try_link
1902 # ac_fn_c_try_run LINENO
1903 # ----------------------
1904 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1905 # that executables *can* be run.
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if { { ac_try="$ac_link"
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_link") 2>&5
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1920 { { case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_try") 2>&5
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; }; }; then :
1932 $as_echo "$as_me: program exited with status $ac_status" >&5
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1936 ac_retval=$ac_status
1938 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
1944 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1945 # -------------------------------------------------------
1946 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1947 # the include files in INCLUDES and setting the cache variable VAR
1949 ac_fn_c_check_header_mongrel ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if eval \${$3+:} false; then :
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1962 # Is the header compilable?
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1964 $as_echo_n "checking $2 usability... " >&6; }
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_header_compiler=yes
1973 ac_header_compiler=no
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1977 $as_echo "$ac_header_compiler" >&6; }
1979 # Is the header present?
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1981 $as_echo_n "checking $2 presence... " >&6; }
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1986 if ac_fn_c_try_cpp "$LINENO"; then :
1987 ac_header_preproc=yes
1989 ac_header_preproc=no
1991 rm -f conftest.err conftest.i conftest.$ac_ext
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1993 $as_echo "$ac_header_preproc" >&6; }
1995 # So? What about this header?
1996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1999 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2001 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2005 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2007 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2009 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2011 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2013 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 ( $as_echo "## --------------------------------------------------- ##
2015 ## Report this to https://github.com/apple/cups/issues ##
2016 ## --------------------------------------------------- ##"
2017 ) | sed "s/^/$as_me: WARNING: /" >&2
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2025 eval "$3=\$ac_header_compiler"
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 } # ac_fn_c_check_header_mongrel
2035 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2036 # -------------------------------------------------------
2037 # Tests whether HEADER exists and can be compiled using the include files in
2038 # INCLUDES, setting the cache variable VAR accordingly.
2039 ac_fn_c_check_header_compile ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2052 if ac_fn_c_try_compile "$LINENO"; then :
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 } # ac_fn_c_check_header_compile
2066 # ac_fn_c_check_func LINENO FUNC VAR
2067 # ----------------------------------
2068 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2069 ac_fn_c_check_func ()
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2081 #define $2 innocuous_$2
2083 /* System header to define __stub macros and hopefully few prototypes,
2084 which can conflict with char $2 (); below.
2085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2086 <limits.h> exists even on freestanding compilers. */
2089 # include <limits.h>
2091 # include <assert.h>
2096 /* Override any GCC internal prototype to avoid an error.
2097 Use char because int might match the return type of a GCC
2098 builtin and then its argument prototype would still apply. */
2103 /* The GNU C library defines this for functions which it implements
2104 to always fail with ENOSYS. Some functions are actually named
2105 something starting with __ and the normal name is an alias. */
2106 #if defined __stub_$2 || defined __stub___$2
2118 if ac_fn_c_try_link "$LINENO"; then :
2123 rm -f core conftest.err conftest.$ac_objext \
2124 conftest$ac_exeext conftest.$ac_ext
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131 } # ac_fn_c_check_func
2133 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2134 # ----------------------------------------------------
2135 # Tries to find if the field MEMBER exists in type AGGR, after including
2136 # INCLUDES, setting cache variable VAR accordingly.
2137 ac_fn_c_check_member ()
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2141 $as_echo_n "checking for $2.$3... " >&6; }
2142 if eval \${$4+:} false; then :
2143 $as_echo_n "(cached) " >&6
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2158 if ac_fn_c_try_compile "$LINENO"; then :
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2168 if (sizeof ac_aggr.$3)
2174 if ac_fn_c_try_compile "$LINENO"; then :
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188 } # ac_fn_c_check_member
2189 cat >config.log <<_ACEOF
2190 This file contains any messages produced by compilers while
2191 running configure, to aid debugging if configure makes a mistake.
2193 It was created by CUPS $as_me 2.2.13, which was
2194 generated by GNU Autoconf 2.69. Invocation command line was
2206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2215 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2216 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2219 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2220 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2221 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 test -z "$as_dir" && as_dir=.
2230 $as_echo "PATH: $as_dir"
2246 # Keep a trace of the command line.
2247 # Strip out --no-create and --no-recursion so they do not pile up.
2248 # Strip out --silent because we don't want to record it for future runs.
2249 # Also quote any args containing shell meta-characters.
2250 # Make two passes to allow for proper duplicate-argument suppression.
2254 ac_must_keep_next=false
2260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262 | -silent | --silent | --silen | --sile | --sil)
2265 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2268 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2270 as_fn_append ac_configure_args1 " '$ac_arg'"
2271 if test $ac_must_keep_next = true; then
2272 ac_must_keep_next=false # Got value, back to normal.
2275 *=* | --config-cache | -C | -disable-* | --disable-* \
2276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278 | -with-* | --with-* | -without-* | --without-* | --x)
2279 case "$ac_configure_args0 " in
2280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2283 -* ) ac_must_keep_next=true ;;
2286 as_fn_append ac_configure_args " '$ac_arg'"
2291 { ac_configure_args0=; unset ac_configure_args0;}
2292 { ac_configure_args1=; unset ac_configure_args1;}
2294 # When interrupted or exit'd, cleanup temporary files, and complete
2295 # config.log. We remove comments because anyway the quotes in there
2296 # would cause problems or look ugly.
2297 # WARNING: Use '\'' to represent an apostrophe within the trap.
2298 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299 trap 'exit_status=$?
2300 # Save into config.log some information that might help in debugging.
2304 $as_echo "## ---------------- ##
2305 ## Cache variables. ##
2306 ## ---------------- ##"
2308 # The following way of writing the cache mishandles newlines in values,
2310 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2311 eval ac_val=\$$ac_var
2315 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2316 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319 _ | IFS | as_nl) ;; #(
2320 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2321 *) { eval $ac_var=; unset $ac_var;} ;;
2326 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2327 *${as_nl}ac_space=\ *)
2329 "s/'\''/'\''\\\\'\'''\''/g;
2330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2340 $as_echo "## ----------------- ##
2341 ## Output variables. ##
2342 ## ----------------- ##"
2344 for ac_var in $ac_subst_vars
2346 eval ac_val=\$$ac_var
2348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350 $as_echo "$ac_var='\''$ac_val'\''"
2354 if test -n "$ac_subst_files"; then
2355 $as_echo "## ------------------- ##
2356 ## File substitutions. ##
2357 ## ------------------- ##"
2359 for ac_var in $ac_subst_files
2361 eval ac_val=\$$ac_var
2363 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2365 $as_echo "$ac_var='\''$ac_val'\''"
2370 if test -s confdefs.h; then
2371 $as_echo "## ----------- ##
2378 test "$ac_signal" != 0 &&
2379 $as_echo "$as_me: caught signal $ac_signal"
2380 $as_echo "$as_me: exit $exit_status"
2382 rm -f core *.core core.conftest.* &&
2383 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2386 for ac_signal in 1 2 13 15; do
2387 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2391 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2392 rm -f -r conftest* confdefs.h
2394 $as_echo "/* confdefs.h */" > confdefs.h
2396 # Predefined preprocessor variables.
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_NAME "$PACKAGE_NAME"
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_STRING "$PACKAGE_STRING"
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_URL "$PACKAGE_URL"
2423 # Let the site file select an alternate cache file if it wants to.
2424 # Prefer an explicitly selected file to automatically selected ones.
2427 if test -n "$CONFIG_SITE"; then
2428 # We do not want a PATH search for config.site.
2429 case $CONFIG_SITE in #((
2430 -*) ac_site_file1=./$CONFIG_SITE;;
2431 */*) ac_site_file1=$CONFIG_SITE;;
2432 *) ac_site_file1=./$CONFIG_SITE;;
2434 elif test "x$prefix" != xNONE; then
2435 ac_site_file1=$prefix/share/config.site
2436 ac_site_file2=$prefix/etc/config.site
2438 ac_site_file1=$ac_default_prefix/share/config.site
2439 ac_site_file2=$ac_default_prefix/etc/config.site
2441 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2443 test "x$ac_site_file" = xNONE && continue
2444 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2446 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2447 sed 's/^/| /' "$ac_site_file" >&5
2449 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 as_fn_error $? "failed to load site script $ac_site_file
2452 See \`config.log' for more details" "$LINENO" 5; }
2456 if test -r "$cache_file"; then
2457 # Some versions of bash will fail to source /dev/null (special files
2458 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2459 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2461 $as_echo "$as_me: loading cache $cache_file" >&6;}
2463 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2464 *) . "./$cache_file";;
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2469 $as_echo "$as_me: creating cache $cache_file" >&6;}
2473 # Check that the precious variables saved in the cache have kept the same
2475 ac_cache_corrupted=false
2476 for ac_var in $ac_precious_vars; do
2477 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2478 eval ac_new_set=\$ac_env_${ac_var}_set
2479 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2480 eval ac_new_val=\$ac_env_${ac_var}_value
2481 case $ac_old_set,$ac_new_set in
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2484 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2485 ac_cache_corrupted=: ;;
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2488 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2489 ac_cache_corrupted=: ;;
2492 if test "x$ac_old_val" != "x$ac_new_val"; then
2493 # differences in whitespace do not lead to failure.
2494 ac_old_val_w=`echo x $ac_old_val`
2495 ac_new_val_w=`echo x $ac_new_val`
2496 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2498 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2499 ac_cache_corrupted=:
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2502 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2503 eval $ac_var=\$ac_old_val
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2506 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2508 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2511 # Pass precious variables to config.status.
2512 if test "$ac_new_set" = set; then
2514 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2515 *) ac_arg=$ac_var=$ac_new_val ;;
2517 case " $ac_configure_args " in
2518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2519 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2523 if $ac_cache_corrupted; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2527 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2528 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2530 ## -------------------- ##
2531 ## Main body of script. ##
2532 ## -------------------- ##
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2545 if test -f "$ac_dir/install-sh"; then
2547 ac_install_sh="$ac_aux_dir/install-sh -c"
2549 elif test -f "$ac_dir/install.sh"; then
2551 ac_install_sh="$ac_aux_dir/install.sh -c"
2553 elif test -f "$ac_dir/shtool"; then
2555 ac_install_sh="$ac_aux_dir/shtool install -c"
2559 if test -z "$ac_aux_dir"; then
2560 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2568 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2569 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2572 # Make sure we can run config.sub.
2573 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2574 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2577 $as_echo_n "checking build system type... " >&6; }
2578 if ${ac_cv_build+:} false; then :
2579 $as_echo_n "(cached) " >&6
2581 ac_build_alias=$build_alias
2582 test "x$ac_build_alias" = x &&
2583 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2584 test "x$ac_build_alias" = x &&
2585 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2586 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2587 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2591 $as_echo "$ac_cv_build" >&6; }
2592 case $ac_cv_build in
2594 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2597 ac_save_IFS=$IFS; IFS='-'
2603 # Remember, the first character of IFS is used to create $*,
2604 # except with old shells:
2607 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2611 $as_echo_n "checking host system type... " >&6; }
2612 if ${ac_cv_host+:} false; then :
2613 $as_echo_n "(cached) " >&6
2615 if test "x$host_alias" = x; then
2616 ac_cv_host=$ac_cv_build
2618 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2619 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2624 $as_echo "$ac_cv_host" >&6; }
2627 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2630 ac_save_IFS=$IFS; IFS='-'
2636 # Remember, the first character of IFS is used to create $*,
2637 # except with old shells:
2640 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2644 host_os_name=`echo $host_os | sed -e '1,$s/[0-9.]*$//g'`
2645 host_os_version=`echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}'`
2646 # Linux often does not yield an OS version we can use...
2647 if test "x$host_os_version" = x; then
2651 if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
2652 as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
2655 if test "$build" = "$host"; then
2656 # No, build local targets
2659 # Yes, don't build local targets
2664 for ac_prog in codesign true
2666 # Extract the first word of "$ac_prog", so it can be a program name with args.
2667 set dummy $ac_prog; ac_word=$2
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669 $as_echo_n "checking for $ac_word... " >&6; }
2670 if ${ac_cv_path_CODE_SIGN+:} false; then :
2671 $as_echo_n "(cached) " >&6
2675 ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_path_CODE_SIGN="$as_dir/$ac_word$ac_exec_ext"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 CODE_SIGN=$ac_cv_path_CODE_SIGN
2697 if test -n "$CODE_SIGN"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5
2699 $as_echo "$CODE_SIGN" >&6; }
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2706 test -n "$CODE_SIGN" && break
2711 ac_config_headers="$ac_config_headers config.h"
2714 CUPS_VERSION="2.2.13"
2716 CUPS_BUILD="cups-$CUPS_VERSION"
2719 # Check whether --with-cups_build was given.
2720 if test "${with_cups_build+set}" = set; then :
2721 withval=$with_cups_build; CUPS_BUILD="$withval"
2728 cat >>confdefs.h <<_ACEOF
2729 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2732 cat >>confdefs.h <<_ACEOF
2733 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2737 CFLAGS="${CFLAGS:=}"
2738 CPPFLAGS="${CPPFLAGS:=}"
2739 CXXFLAGS="${CXXFLAGS:=}"
2740 LDFLAGS="${LDFLAGS:=}"
2742 for ac_prog in gawk mawk nawk awk
2744 # Extract the first word of "$ac_prog", so it can be a program name with args.
2745 set dummy $ac_prog; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if ${ac_cv_prog_AWK+:} false; then :
2749 $as_echo_n "(cached) " >&6
2751 if test -n "$AWK"; then
2752 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761 ac_cv_prog_AWK="$ac_prog"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 if test -n "$AWK"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2774 $as_echo "$AWK" >&6; }
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2781 test -n "$AWK" && break
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 if test -n "$ac_tool_prefix"; then
2790 for ac_prog in clang cc gcc
2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_CC+:} false; then :
2797 $as_echo_n "(cached) " >&6
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 if test -n "$CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2829 test -n "$CC" && break
2832 if test -z "$CC"; then
2834 for ac_prog in clang cc gcc
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2841 $as_echo_n "(cached) " >&6
2843 if test -n "$ac_ct_CC"; then
2844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_ac_ct_CC="$ac_prog"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2866 $as_echo "$ac_ct_CC" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2873 test -n "$ac_ct_CC" && break
2876 if test "x$ac_ct_CC" = x; then
2879 case $cross_compiling:$ac_tool_warned in
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2883 ac_tool_warned=yes ;;
2890 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2892 as_fn_error $? "no acceptable C compiler found in \$PATH
2893 See \`config.log' for more details" "$LINENO" 5; }
2895 # Provide some information about the compiler.
2896 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2899 for ac_option in --version -v -V -qversion; do
2900 { { ac_try="$ac_compiler $ac_option >&5"
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2906 $as_echo "$ac_try_echo"; } >&5
2907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2909 if test -s conftest.err; then
2911 ... rest of stderr output deleted ...
2912 10q' conftest.err >conftest.er1
2913 cat conftest.er1 >&5
2915 rm -f conftest.er1 conftest.err
2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2917 test $ac_status = 0; }
2920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2921 /* end confdefs.h. */
2931 ac_clean_files_save=$ac_clean_files
2932 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2933 # Try to create an executable without -o first, disregard a.out.
2934 # It will help us diagnose broken compilers, and finding out an intuition
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2937 $as_echo_n "checking whether the C compiler works... " >&6; }
2938 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2940 # The possible output files:
2941 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2944 for ac_file in $ac_files
2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2948 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2953 if { { ac_try="$ac_link_default"
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959 $as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_link_default") 2>&5
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }; then :
2964 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2965 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2966 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2967 # so that the user can short-circuit this test for compilers unknown to
2969 for ac_file in $ac_files ''
2971 test -f "$ac_file" || continue
2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2976 # We found the default executable, but exeext='' is most
2980 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2984 # We set ac_cv_exeext here because the later test for it is not
2985 # safe: cross compilers may not add the suffix if given an `-o'
2986 # argument, so we may need to know it at that point already.
2987 # Even if this section looks crufty: it has the advantage of
2994 test "$ac_cv_exeext" = no && ac_cv_exeext=
2999 if test -z "$ac_file"; then :
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 $as_echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 as_fn_error 77 "C compiler cannot create executables
3008 See \`config.log' for more details" "$LINENO" 5; }
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3011 $as_echo "yes" >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3014 $as_echo_n "checking for C compiler default output file name... " >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3016 $as_echo "$ac_file" >&6; }
3017 ac_exeext=$ac_cv_exeext
3019 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3020 ac_clean_files=$ac_clean_files_save
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3022 $as_echo_n "checking for suffix of executables... " >&6; }
3023 if { { ac_try="$ac_link"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_link") 2>&5
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }; then :
3034 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3035 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3036 # work properly (i.e., refer to `conftest.exe'), while it won't with
3038 for ac_file in conftest.exe conftest conftest.*; do
3039 test -f "$ac_file" || continue
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3042 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3051 See \`config.log' for more details" "$LINENO" 5; }
3053 rm -f conftest conftest$ac_cv_exeext
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3055 $as_echo "$ac_cv_exeext" >&6; }
3057 rm -f conftest.$ac_ext
3058 EXEEXT=$ac_cv_exeext
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3066 FILE *f = fopen ("conftest.out", "w");
3067 return ferror (f) || fclose (f) != 0;
3073 ac_clean_files="$ac_clean_files conftest.out"
3074 # Check that the compiler produces executables we can run. If not, either
3075 # the compiler is broken, or we cross compile.
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3077 $as_echo_n "checking whether we are cross compiling... " >&6; }
3078 if test "$cross_compiling" != yes; then
3079 { { ac_try="$ac_link"
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085 $as_echo "$ac_try_echo"; } >&5
3086 (eval "$ac_link") 2>&5
3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089 test $ac_status = 0; }
3090 if { ac_try='./conftest$ac_cv_exeext'
3091 { { case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096 $as_echo "$ac_try_echo"; } >&5
3097 (eval "$ac_try") 2>&5
3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100 test $ac_status = 0; }; }; then
3103 if test "$cross_compiling" = maybe; then
3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 as_fn_error $? "cannot run C compiled programs.
3109 If you meant to cross compile, use \`--host'.
3110 See \`config.log' for more details" "$LINENO" 5; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3115 $as_echo "$cross_compiling" >&6; }
3117 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3118 ac_clean_files=$ac_clean_files_save
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3120 $as_echo_n "checking for suffix of object files... " >&6; }
3121 if ${ac_cv_objext+:} false; then :
3122 $as_echo_n "(cached) " >&6
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h. */
3135 rm -f conftest.o conftest.obj
3136 if { { ac_try="$ac_compile"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_compile") 2>&5
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; then :
3147 for ac_file in conftest.o conftest.obj conftest.*; do
3148 test -f "$ac_file" || continue;
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3151 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3156 $as_echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error $? "cannot compute suffix of object files: cannot compile
3162 See \`config.log' for more details" "$LINENO" 5; }
3164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3167 $as_echo "$ac_cv_objext" >&6; }
3168 OBJEXT=$ac_cv_objext
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3171 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3172 if ${ac_cv_c_compiler_gnu+:} false; then :
3173 $as_echo_n "(cached) " >&6
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3189 if ac_fn_c_try_compile "$LINENO"; then :
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3199 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3200 if test $ac_compiler_gnu = yes; then
3205 ac_test_CFLAGS=${CFLAGS+set}
3206 ac_save_CFLAGS=$CFLAGS
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3208 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3209 if ${ac_cv_prog_cc_g+:} false; then :
3210 $as_echo_n "(cached) " >&6
3212 ac_save_c_werror_flag=$ac_c_werror_flag
3213 ac_c_werror_flag=yes
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3227 if ac_fn_c_try_compile "$LINENO"; then :
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3242 if ac_fn_c_try_compile "$LINENO"; then :
3245 ac_c_werror_flag=$ac_save_c_werror_flag
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3258 if ac_fn_c_try_compile "$LINENO"; then :
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3269 $as_echo "$ac_cv_prog_cc_g" >&6; }
3270 if test "$ac_test_CFLAGS" = set; then
3271 CFLAGS=$ac_save_CFLAGS
3272 elif test $ac_cv_prog_cc_g = yes; then
3273 if test "$GCC" = yes; then
3279 if test "$GCC" = yes; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3286 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3287 if ${ac_cv_prog_cc_c89+:} false; then :
3288 $as_echo_n "(cached) " >&6
3290 ac_cv_prog_cc_c89=no
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3297 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3298 struct buf { int x; };
3299 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3300 static char *e (p, i)
3306 static char *f (char * (*g) (char **, int), char **p, ...)
3311 s = g (p, va_arg (v,int));
3316 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3317 function prototypes and stuff, but not '\xHH' hex character constants.
3318 These don't provoke an error unfortunately, instead are silently treated
3319 as 'x'. The following induces an error, until -std is added to get
3320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3321 array size at least. It's necessary to write '\x00'==0 to get something
3322 that's true only with -std. */
3323 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3325 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3326 inside strings and character constants. */
3328 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3330 int test (int i, double x);
3331 struct s1 {int (*f) (int a);};
3332 struct s2 {int (*f) (double a);};
3333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3339 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3344 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3345 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3347 CC="$ac_save_CC $ac_arg"
3348 if ac_fn_c_try_compile "$LINENO"; then :
3349 ac_cv_prog_cc_c89=$ac_arg
3351 rm -f core conftest.err conftest.$ac_objext
3352 test "x$ac_cv_prog_cc_c89" != "xno" && break
3354 rm -f conftest.$ac_ext
3359 case "x$ac_cv_prog_cc_c89" in
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3362 $as_echo "none needed" >&6; } ;;
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3365 $as_echo "unsupported" >&6; } ;;
3367 CC="$CC $ac_cv_prog_cc_c89"
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3369 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3371 if test "x$ac_cv_prog_cc_c89" != xno; then :
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3387 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3388 # On Suns, sometimes $CPP names a directory.
3389 if test -n "$CPP" && test -d "$CPP"; then
3392 if test -z "$CPP"; then
3393 if ${ac_cv_prog_CPP+:} false; then :
3394 $as_echo_n "(cached) " >&6
3396 # Double quotes because CPP needs to be expanded
3397 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3400 for ac_c_preproc_warn_flag in '' yes
3402 # Use a header file that comes with gcc, so configuring glibc
3403 # with a fresh cross-compiler works.
3404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3405 # <limits.h> exists even on freestanding compilers.
3406 # On the NeXT, cc -E runs the code through the compiler's parser,
3407 # not just through cpp. "Syntax error" is here to catch this case.
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3411 # include <limits.h>
3413 # include <assert.h>
3417 if ac_fn_c_try_cpp "$LINENO"; then :
3420 # Broken: fails on valid input.
3423 rm -f conftest.err conftest.i conftest.$ac_ext
3425 # OK, works on sane cases. Now check whether nonexistent headers
3426 # can be detected and how.
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3429 #include <ac_nonexistent.h>
3431 if ac_fn_c_try_cpp "$LINENO"; then :
3432 # Broken: success on invalid input.
3435 # Passes both tests.
3439 rm -f conftest.err conftest.i conftest.$ac_ext
3442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443 rm -f conftest.i conftest.err conftest.$ac_ext
3444 if $ac_preproc_ok; then :
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3457 $as_echo "$CPP" >&6; }
3459 for ac_c_preproc_warn_flag in '' yes
3461 # Use a header file that comes with gcc, so configuring glibc
3462 # with a fresh cross-compiler works.
3463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3464 # <limits.h> exists even on freestanding compilers.
3465 # On the NeXT, cc -E runs the code through the compiler's parser,
3466 # not just through cpp. "Syntax error" is here to catch this case.
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3470 # include <limits.h>
3472 # include <assert.h>
3476 if ac_fn_c_try_cpp "$LINENO"; then :
3479 # Broken: fails on valid input.
3482 rm -f conftest.err conftest.i conftest.$ac_ext
3484 # OK, works on sane cases. Now check whether nonexistent headers
3485 # can be detected and how.
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3488 #include <ac_nonexistent.h>
3490 if ac_fn_c_try_cpp "$LINENO"; then :
3491 # Broken: success on invalid input.
3494 # Passes both tests.
3498 rm -f conftest.err conftest.i conftest.$ac_ext
3501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3502 rm -f conftest.i conftest.err conftest.$ac_ext
3503 if $ac_preproc_ok; then :
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3509 See \`config.log' for more details" "$LINENO" 5; }
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 ac_cpp='$CXXCPP $CPPFLAGS'
3520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3523 if test -z "$CXX"; then
3524 if test -n "$CCC"; then
3527 if test -n "$ac_tool_prefix"; then
3528 for ac_prog in clang++ c++ g++
3530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533 $as_echo_n "checking for $ac_word... " >&6; }
3534 if ${ac_cv_prog_CXX+:} false; then :
3535 $as_echo_n "(cached) " >&6
3537 if test -n "$CXX"; then
3538 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 if test -n "$CXX"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3560 $as_echo "$CXX" >&6; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3567 test -n "$CXX" && break
3570 if test -z "$CXX"; then
3572 for ac_prog in clang++ c++ g++
3574 # Extract the first word of "$ac_prog", so it can be a program name with args.
3575 set dummy $ac_prog; ac_word=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3579 $as_echo_n "(cached) " >&6
3581 if test -n "$ac_ct_CXX"; then
3582 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_ac_ct_CXX="$ac_prog"
3592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3602 if test -n "$ac_ct_CXX"; then
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3604 $as_echo "$ac_ct_CXX" >&6; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3611 test -n "$ac_ct_CXX" && break
3614 if test "x$ac_ct_CXX" = x; then
3617 case $cross_compiling:$ac_tool_warned in
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621 ac_tool_warned=yes ;;
3629 # Provide some information about the compiler.
3630 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3633 for ac_option in --version -v -V -qversion; do
3634 { { ac_try="$ac_compiler $ac_option >&5"
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640 $as_echo "$ac_try_echo"; } >&5
3641 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3643 if test -s conftest.err; then
3645 ... rest of stderr output deleted ...
3646 10q' conftest.err >conftest.er1
3647 cat conftest.er1 >&5
3649 rm -f conftest.er1 conftest.err
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3655 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3656 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3657 $as_echo_n "(cached) " >&6
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3673 if ac_fn_cxx_try_compile "$LINENO"; then :
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3683 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3684 if test $ac_compiler_gnu = yes; then
3689 ac_test_CXXFLAGS=${CXXFLAGS+set}
3690 ac_save_CXXFLAGS=$CXXFLAGS
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3692 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3693 if ${ac_cv_prog_cxx_g+:} false; then :
3694 $as_echo_n "(cached) " >&6
3696 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3697 ac_cxx_werror_flag=yes
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3711 if ac_fn_cxx_try_compile "$LINENO"; then :
3712 ac_cv_prog_cxx_g=yes
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3726 if ac_fn_cxx_try_compile "$LINENO"; then :
3729 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3742 if ac_fn_cxx_try_compile "$LINENO"; then :
3743 ac_cv_prog_cxx_g=yes
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3753 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3754 if test "$ac_test_CXXFLAGS" = set; then
3755 CXXFLAGS=$ac_save_CXXFLAGS
3756 elif test $ac_cv_prog_cxx_g = yes; then
3757 if test "$GXX" = yes; then
3763 if test "$GXX" = yes; then
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 if test -n "$ac_tool_prefix"; then
3776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if ${ac_cv_prog_RANLIB+:} false; then :
3781 $as_echo_n "(cached) " >&6
3783 if test -n "$RANLIB"; then
3784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 RANLIB=$ac_cv_prog_RANLIB
3804 if test -n "$RANLIB"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3806 $as_echo "$RANLIB" >&6; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3814 if test -z "$ac_cv_prog_RANLIB"; then
3815 ac_ct_RANLIB=$RANLIB
3816 # Extract the first word of "ranlib", so it can be a program name with args.
3817 set dummy ranlib; ac_word=$2
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 $as_echo_n "checking for $ac_word... " >&6; }
3820 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3821 $as_echo_n "(cached) " >&6
3823 if test -n "$ac_ct_RANLIB"; then
3824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833 ac_cv_prog_ac_ct_RANLIB="ranlib"
3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3844 if test -n "$ac_ct_RANLIB"; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3846 $as_echo "$ac_ct_RANLIB" >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3852 if test "x$ac_ct_RANLIB" = x; then
3855 case $cross_compiling:$ac_tool_warned in
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3859 ac_tool_warned=yes ;;
3861 RANLIB=$ac_ct_RANLIB
3864 RANLIB="$ac_cv_prog_RANLIB"
3867 # Extract the first word of "ar", so it can be a program name with args.
3868 set dummy ar; ac_word=$2
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 $as_echo_n "checking for $ac_word... " >&6; }
3871 if ${ac_cv_path_AR+:} false; then :
3872 $as_echo_n "(cached) " >&6
3876 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 if test -n "$AR"; then
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3900 $as_echo "$AR" >&6; }
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903 $as_echo "no" >&6; }
3907 # Extract the first word of "chmod", so it can be a program name with args.
3908 set dummy chmod; ac_word=$2
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3910 $as_echo_n "checking for $ac_word... " >&6; }
3911 if ${ac_cv_path_CHMOD+:} false; then :
3912 $as_echo_n "(cached) " >&6
3916 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 CHMOD=$ac_cv_path_CHMOD
3938 if test -n "$CHMOD"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3940 $as_echo "$CHMOD" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3947 # Extract the first word of "gzip", so it can be a program name with args.
3948 set dummy gzip; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if ${ac_cv_path_GZIPPROG+:} false; then :
3952 $as_echo_n "(cached) " >&6
3956 ac_cv_path_GZIPPROG="$GZIPPROG" # Let the user override the test with a path.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_path_GZIPPROG="$as_dir/$ac_word$ac_exec_ext"
3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 GZIPPROG=$ac_cv_path_GZIPPROG
3978 if test -n "$GZIPPROG"; then
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIPPROG" >&5
3980 $as_echo "$GZIPPROG" >&6; }
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983 $as_echo "no" >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
3988 $as_echo_n "checking for install-sh script... " >&6; }
3989 INSTALL="`pwd`/install-sh"
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
3992 $as_echo "using $INSTALL" >&6; }
3993 # Extract the first word of "ld", so it can be a program name with args.
3994 set dummy ld; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_path_LD+:} false; then :
3998 $as_echo_n "(cached) " >&6
4002 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 if test -n "$LD"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4026 $as_echo "$LD" >&6; }
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4033 # Extract the first word of "ln", so it can be a program name with args.
4034 set dummy ln; ac_word=$2
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 $as_echo_n "checking for $ac_word... " >&6; }
4037 if ${ac_cv_path_LN+:} false; then :
4038 $as_echo_n "(cached) " >&6
4042 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4052 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 if test -n "$LN"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4066 $as_echo "$LN" >&6; }
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4073 # Extract the first word of "mkdir", so it can be a program name with args.
4074 set dummy mkdir; ac_word=$2
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076 $as_echo_n "checking for $ac_word... " >&6; }
4077 if ${ac_cv_path_MKDIR+:} false; then :
4078 $as_echo_n "(cached) " >&6
4082 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 MKDIR=$ac_cv_path_MKDIR
4104 if test -n "$MKDIR"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4106 $as_echo "$MKDIR" >&6; }
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4113 # Extract the first word of "mv", so it can be a program name with args.
4114 set dummy mv; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_path_MV+:} false; then :
4118 $as_echo_n "(cached) " >&6
4122 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 if test -n "$MV"; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4146 $as_echo "$MV" >&6; }
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149 $as_echo "no" >&6; }
4153 # Extract the first word of "rm", so it can be a program name with args.
4154 set dummy rm; ac_word=$2
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156 $as_echo_n "checking for $ac_word... " >&6; }
4157 if ${ac_cv_path_RM+:} false; then :
4158 $as_echo_n "(cached) " >&6
4162 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 if test -n "$RM"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4186 $as_echo "$RM" >&6; }
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4193 # Extract the first word of "rmdir", so it can be a program name with args.
4194 set dummy rmdir; ac_word=$2
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 $as_echo_n "checking for $ac_word... " >&6; }
4197 if ${ac_cv_path_RMDIR+:} false; then :
4198 $as_echo_n "(cached) " >&6
4202 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 RMDIR=$ac_cv_path_RMDIR
4224 if test -n "$RMDIR"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4226 $as_echo "$RMDIR" >&6; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4233 # Extract the first word of "sed", so it can be a program name with args.
4234 set dummy sed; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_path_SED+:} false; then :
4238 $as_echo_n "(cached) " >&6
4242 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 if test -n "$SED"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4266 $as_echo "$SED" >&6; }
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4273 # Extract the first word of "xdg-open", so it can be a program name with args.
4274 set dummy xdg-open; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if ${ac_cv_path_XDGOPEN+:} false; then :
4278 $as_echo_n "(cached) " >&6
4282 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4292 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 XDGOPEN=$ac_cv_path_XDGOPEN
4304 if test -n "$XDGOPEN"; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4306 $as_echo "$XDGOPEN" >&6; }
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4314 if test "x$XDGOPEN" = x; then
4315 CUPS_HTMLVIEW="htmlview"
4317 CUPS_HTMLVIEW="$XDGOPEN"
4321 if test "x$AR" = x; then
4322 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4324 if test "x$CC" = x; then
4325 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4329 # Check whether --enable-static was given.
4330 if test "${enable_static+set}" = set; then :
4331 enableval=$enable_static;
4335 if test x$enable_static = xyes; then
4336 echo Installing static libraries...
4337 INSTALLSTATIC="installstatic"
4342 if test -n "$ac_tool_prefix"; then
4343 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4344 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_path_PKGCONFIG+:} false; then :
4348 $as_echo_n "(cached) " >&6
4352 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 PKGCONFIG=$ac_cv_path_PKGCONFIG
4374 if test -n "$PKGCONFIG"; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4376 $as_echo "$PKGCONFIG" >&6; }
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379 $as_echo "no" >&6; }
4384 if test -z "$ac_cv_path_PKGCONFIG"; then
4385 ac_pt_PKGCONFIG=$PKGCONFIG
4386 # Extract the first word of "pkg-config", so it can be a program name with args.
4387 set dummy pkg-config; ac_word=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4391 $as_echo_n "(cached) " >&6
4393 case $ac_pt_PKGCONFIG in
4395 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4405 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4417 if test -n "$ac_pt_PKGCONFIG"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4419 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4425 if test "x$ac_pt_PKGCONFIG" = x; then
4428 case $cross_compiling:$ac_tool_warned in
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4432 ac_tool_warned=yes ;;
4434 PKGCONFIG=$ac_pt_PKGCONFIG
4437 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4443 $as_echo_n "checking for library containing abs... " >&6; }
4444 if ${ac_cv_search_abs+:} false; then :
4445 $as_echo_n "(cached) " >&6
4447 ac_func_search_save_LIBS=$LIBS
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4451 /* Override any GCC internal prototype to avoid an error.
4452 Use char because int might match the return type of a GCC
4453 builtin and then its argument prototype would still apply. */
4466 for ac_lib in '' m; do
4467 if test -z "$ac_lib"; then
4468 ac_res="none required"
4471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4473 if ac_fn_c_try_link "$LINENO"; then :
4474 ac_cv_search_abs=$ac_res
4476 rm -f core conftest.err conftest.$ac_objext \
4478 if ${ac_cv_search_abs+:} false; then :
4482 if ${ac_cv_search_abs+:} false; then :
4488 LIBS=$ac_func_search_save_LIBS
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4491 $as_echo "$ac_cv_search_abs" >&6; }
4492 ac_res=$ac_cv_search_abs
4493 if test "$ac_res" != no; then :
4494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4495 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4500 $as_echo_n "checking for library containing crypt... " >&6; }
4501 if ${ac_cv_search_crypt+:} false; then :
4502 $as_echo_n "(cached) " >&6
4504 ac_func_search_save_LIBS=$LIBS
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4508 /* Override any GCC internal prototype to avoid an error.
4509 Use char because int might match the return type of a GCC
4510 builtin and then its argument prototype would still apply. */
4523 for ac_lib in '' crypt; do
4524 if test -z "$ac_lib"; then
4525 ac_res="none required"
4528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4530 if ac_fn_c_try_link "$LINENO"; then :
4531 ac_cv_search_crypt=$ac_res
4533 rm -f core conftest.err conftest.$ac_objext \
4535 if ${ac_cv_search_crypt+:} false; then :
4539 if ${ac_cv_search_crypt+:} false; then :
4542 ac_cv_search_crypt=no
4545 LIBS=$ac_func_search_save_LIBS
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4548 $as_echo "$ac_cv_search_crypt" >&6; }
4549 ac_res=$ac_cv_search_crypt
4550 if test "$ac_res" != no; then :
4551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4556 $as_echo_n "checking for library containing fmod... " >&6; }
4557 if ${ac_cv_search_fmod+:} false; then :
4558 $as_echo_n "(cached) " >&6
4560 ac_func_search_save_LIBS=$LIBS
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4564 /* Override any GCC internal prototype to avoid an error.
4565 Use char because int might match the return type of a GCC
4566 builtin and then its argument prototype would still apply. */
4579 for ac_lib in '' m; do
4580 if test -z "$ac_lib"; then
4581 ac_res="none required"
4584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4586 if ac_fn_c_try_link "$LINENO"; then :
4587 ac_cv_search_fmod=$ac_res
4589 rm -f core conftest.err conftest.$ac_objext \
4591 if ${ac_cv_search_fmod+:} false; then :
4595 if ${ac_cv_search_fmod+:} false; then :
4598 ac_cv_search_fmod=no
4601 LIBS=$ac_func_search_save_LIBS
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4604 $as_echo "$ac_cv_search_fmod" >&6; }
4605 ac_res=$ac_cv_search_fmod
4606 if test "$ac_res" != no; then :
4607 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4612 $as_echo_n "checking for library containing getspent... " >&6; }
4613 if ${ac_cv_search_getspent+:} false; then :
4614 $as_echo_n "(cached) " >&6
4616 ac_func_search_save_LIBS=$LIBS
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4620 /* Override any GCC internal prototype to avoid an error.
4621 Use char because int might match the return type of a GCC
4622 builtin and then its argument prototype would still apply. */
4635 for ac_lib in '' sec gen; do
4636 if test -z "$ac_lib"; then
4637 ac_res="none required"
4640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4642 if ac_fn_c_try_link "$LINENO"; then :
4643 ac_cv_search_getspent=$ac_res
4645 rm -f core conftest.err conftest.$ac_objext \
4647 if ${ac_cv_search_getspent+:} false; then :
4651 if ${ac_cv_search_getspent+:} false; then :
4654 ac_cv_search_getspent=no
4657 LIBS=$ac_func_search_save_LIBS
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4660 $as_echo "$ac_cv_search_getspent" >&6; }
4661 ac_res=$ac_cv_search_getspent
4662 if test "$ac_res" != no; then :
4663 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4669 # Check whether --enable-mallinfo was given.
4670 if test "${enable_mallinfo+set}" = set; then :
4671 enableval=$enable_mallinfo;
4675 if test x$enable_mallinfo = xyes; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4679 $as_echo_n "checking for library containing mallinfo... " >&6; }
4680 if ${ac_cv_search_mallinfo+:} false; then :
4681 $as_echo_n "(cached) " >&6
4683 ac_func_search_save_LIBS=$LIBS
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4687 /* Override any GCC internal prototype to avoid an error.
4688 Use char because int might match the return type of a GCC
4689 builtin and then its argument prototype would still apply. */
4702 for ac_lib in '' malloc; do
4703 if test -z "$ac_lib"; then
4704 ac_res="none required"
4707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4709 if ac_fn_c_try_link "$LINENO"; then :
4710 ac_cv_search_mallinfo=$ac_res
4712 rm -f core conftest.err conftest.$ac_objext \
4714 if ${ac_cv_search_mallinfo+:} false; then :
4718 if ${ac_cv_search_mallinfo+:} false; then :
4721 ac_cv_search_mallinfo=no
4724 LIBS=$ac_func_search_save_LIBS
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4727 $as_echo "$ac_cv_search_mallinfo" >&6; }
4728 ac_res=$ac_cv_search_mallinfo
4729 if test "$ac_res" != no; then :
4730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4731 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4741 # Check whether --enable-libpaper was given.
4742 if test "${enable_libpaper+set}" = set; then :
4743 enableval=$enable_libpaper;
4747 if test x$enable_libpaper = xyes; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4749 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4750 if ${ac_cv_lib_paper_systempapername+:} false; then :
4751 $as_echo_n "(cached) " >&6
4753 ac_check_lib_save_LIBS=$LIBS
4754 LIBS="-lpaper $LIBS"
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4758 /* Override any GCC internal prototype to avoid an error.
4759 Use char because int might match the return type of a GCC
4760 builtin and then its argument prototype would still apply. */
4764 char systempapername ();
4768 return systempapername ();
4773 if ac_fn_c_try_link "$LINENO"; then :
4774 ac_cv_lib_paper_systempapername=yes
4776 ac_cv_lib_paper_systempapername=no
4778 rm -f core conftest.err conftest.$ac_objext \
4779 conftest$ac_exeext conftest.$ac_ext
4780 LIBS=$ac_check_lib_save_LIBS
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4783 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4784 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4785 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4799 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4800 if ${ac_cv_path_GREP+:} false; then :
4801 $as_echo_n "(cached) " >&6
4803 if test -z "$GREP"; then
4804 ac_path_GREP_found=false
4805 # Loop through the user's path and test for each of PROGNAME-LIST
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4810 test -z "$as_dir" && as_dir=.
4811 for ac_prog in grep ggrep; do
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4814 as_fn_executable_p "$ac_path_GREP" || continue
4815 # Check for GNU ac_path_GREP and select it if it is found.
4816 # Check for GNU $ac_path_GREP
4817 case `"$ac_path_GREP" --version 2>&1` in
4819 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4822 $as_echo_n 0123456789 >"conftest.in"
4825 cat "conftest.in" "conftest.in" >"conftest.tmp"
4826 mv "conftest.tmp" "conftest.in"
4827 cp "conftest.in" "conftest.nl"
4828 $as_echo 'GREP' >> "conftest.nl"
4829 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4831 as_fn_arith $ac_count + 1 && ac_count=$as_val
4832 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4833 # Best one so far, save it but keep looking for a better one
4834 ac_cv_path_GREP="$ac_path_GREP"
4835 ac_path_GREP_max=$ac_count
4837 # 10*(2^10) chars as input seems more than enough
4838 test $ac_count -gt 10 && break
4840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4843 $ac_path_GREP_found && break 3
4848 if test -z "$ac_cv_path_GREP"; then
4849 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4852 ac_cv_path_GREP=$GREP
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4857 $as_echo "$ac_cv_path_GREP" >&6; }
4858 GREP="$ac_cv_path_GREP"
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4862 $as_echo_n "checking for egrep... " >&6; }
4863 if ${ac_cv_path_EGREP+:} false; then :
4864 $as_echo_n "(cached) " >&6
4866 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4867 then ac_cv_path_EGREP="$GREP -E"
4869 if test -z "$EGREP"; then
4870 ac_path_EGREP_found=false
4871 # Loop through the user's path and test for each of PROGNAME-LIST
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4876 test -z "$as_dir" && as_dir=.
4877 for ac_prog in egrep; do
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4880 as_fn_executable_p "$ac_path_EGREP" || continue
4881 # Check for GNU ac_path_EGREP and select it if it is found.
4882 # Check for GNU $ac_path_EGREP
4883 case `"$ac_path_EGREP" --version 2>&1` in
4885 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4888 $as_echo_n 0123456789 >"conftest.in"
4891 cat "conftest.in" "conftest.in" >"conftest.tmp"
4892 mv "conftest.tmp" "conftest.in"
4893 cp "conftest.in" "conftest.nl"
4894 $as_echo 'EGREP' >> "conftest.nl"
4895 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4897 as_fn_arith $ac_count + 1 && ac_count=$as_val
4898 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4899 # Best one so far, save it but keep looking for a better one
4900 ac_cv_path_EGREP="$ac_path_EGREP"
4901 ac_path_EGREP_max=$ac_count
4903 # 10*(2^10) chars as input seems more than enough
4904 test $ac_count -gt 10 && break
4906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909 $ac_path_EGREP_found && break 3
4914 if test -z "$ac_cv_path_EGREP"; then
4915 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4918 ac_cv_path_EGREP=$EGREP
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4924 $as_echo "$ac_cv_path_EGREP" >&6; }
4925 EGREP="$ac_cv_path_EGREP"
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4929 $as_echo_n "checking for ANSI C header files... " >&6; }
4930 if ${ac_cv_header_stdc+:} false; then :
4931 $as_echo_n "(cached) " >&6
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4948 if ac_fn_c_try_compile "$LINENO"; then :
4949 ac_cv_header_stdc=yes
4951 ac_cv_header_stdc=no
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 if test $ac_cv_header_stdc = yes; then
4956 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev/null 2>&1; then :
4966 ac_cv_header_stdc=no
4972 if test $ac_cv_header_stdc = yes; then
4973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4980 $EGREP "free" >/dev/null 2>&1; then :
4983 ac_cv_header_stdc=no
4989 if test $ac_cv_header_stdc = yes; then
4990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4991 if test "$cross_compiling" = yes; then :
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4998 #if ((' ' & 0x0FF) == 0x020)
4999 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5000 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5002 # define ISLOWER(c) \
5003 (('a' <= (c) && (c) <= 'i') \
5004 || ('j' <= (c) && (c) <= 'r') \
5005 || ('s' <= (c) && (c) <= 'z'))
5006 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5009 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5014 for (i = 0; i < 256; i++)
5015 if (XOR (islower (i), ISLOWER (i))
5016 || toupper (i) != TOUPPER (i))
5021 if ac_fn_c_try_run "$LINENO"; then :
5024 ac_cv_header_stdc=no
5026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5027 conftest.$ac_objext conftest.beam conftest.$ac_ext
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5033 $as_echo "$ac_cv_header_stdc" >&6; }
5034 if test $ac_cv_header_stdc = yes; then
5036 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5041 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5042 inttypes.h stdint.h unistd.h
5044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5045 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5047 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5048 cat >>confdefs.h <<_ACEOF
5049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5057 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5058 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5059 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
5064 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5065 if test "x$ac_cv_header_crypt_h" = xyes; then :
5066 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5071 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5072 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5073 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5078 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5079 if test "x$ac_cv_header_malloc_h" = xyes; then :
5080 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5085 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5086 if test "x$ac_cv_header_shadow_h" = xyes; then :
5087 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5092 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5093 if test "x$ac_cv_header_stdint_h" = xyes; then :
5094 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
5099 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5100 if test "x$ac_cv_header_string_h" = xyes; then :
5101 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5106 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5107 if test "x$ac_cv_header_strings_h" = xyes; then :
5108 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5113 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5114 if test "x$ac_cv_header_bstring_h" = xyes; then :
5115 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5120 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5121 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5122 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5127 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5128 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5129 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5134 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5135 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5136 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5142 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5143 if test "x$ac_cv_header_iconv_h" = xyes; then :
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5147 $as_echo_n "checking for library containing iconv_open... " >&6; }
5148 if ${ac_cv_search_iconv_open+:} false; then :
5149 $as_echo_n "(cached) " >&6
5151 ac_func_search_save_LIBS=$LIBS
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5155 /* Override any GCC internal prototype to avoid an error.
5156 Use char because int might match the return type of a GCC
5157 builtin and then its argument prototype would still apply. */
5165 return iconv_open ();
5170 for ac_lib in '' iconv; do
5171 if test -z "$ac_lib"; then
5172 ac_res="none required"
5175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5177 if ac_fn_c_try_link "$LINENO"; then :
5178 ac_cv_search_iconv_open=$ac_res
5180 rm -f core conftest.err conftest.$ac_objext \
5182 if ${ac_cv_search_iconv_open+:} false; then :
5186 if ${ac_cv_search_iconv_open+:} false; then :
5189 ac_cv_search_iconv_open=no
5192 LIBS=$ac_func_search_save_LIBS
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5195 $as_echo "$ac_cv_search_iconv_open" >&6; }
5196 ac_res=$ac_cv_search_iconv_open
5197 if test "$ac_res" != no; then :
5198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5199 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5201 SAVELIBS="$SAVELIBS $LIBS"
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5205 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5206 if ${ac_cv_search_libiconv_open+:} false; then :
5207 $as_echo_n "(cached) " >&6
5209 ac_func_search_save_LIBS=$LIBS
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5213 /* Override any GCC internal prototype to avoid an error.
5214 Use char because int might match the return type of a GCC
5215 builtin and then its argument prototype would still apply. */
5219 char libiconv_open ();
5223 return libiconv_open ();
5228 for ac_lib in '' iconv; do
5229 if test -z "$ac_lib"; then
5230 ac_res="none required"
5233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5235 if ac_fn_c_try_link "$LINENO"; then :
5236 ac_cv_search_libiconv_open=$ac_res
5238 rm -f core conftest.err conftest.$ac_objext \
5240 if ${ac_cv_search_libiconv_open+:} false; then :
5244 if ${ac_cv_search_libiconv_open+:} false; then :
5247 ac_cv_search_libiconv_open=no
5250 LIBS=$ac_func_search_save_LIBS
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5253 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5254 ac_res=$ac_cv_search_libiconv_open
5255 if test "$ac_res" != no; then :
5256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5257 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5259 SAVELIBS="$SAVELIBS $LIBS"
5268 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5269 if test "x$ac_cv_header_mxml_h" = xyes; then :
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5272 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5273 if ${ac_cv_search_mmxlNewElement+:} false; then :
5274 $as_echo_n "(cached) " >&6
5276 ac_func_search_save_LIBS=$LIBS
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5280 /* Override any GCC internal prototype to avoid an error.
5281 Use char because int might match the return type of a GCC
5282 builtin and then its argument prototype would still apply. */
5286 char mmxlNewElement ();
5290 return mmxlNewElement ();
5295 for ac_lib in '' mxml; do
5296 if test -z "$ac_lib"; then
5297 ac_res="none required"
5300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5302 if ac_fn_c_try_link "$LINENO"; then :
5303 ac_cv_search_mmxlNewElement=$ac_res
5305 rm -f core conftest.err conftest.$ac_objext \
5307 if ${ac_cv_search_mmxlNewElement+:} false; then :
5311 if ${ac_cv_search_mmxlNewElement+:} false; then :
5314 ac_cv_search_mmxlNewElement=no
5317 LIBS=$ac_func_search_save_LIBS
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5320 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5321 ac_res=$ac_cv_search_mmxlNewElement
5322 if test "$ac_res" != no; then :
5323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5324 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5335 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5336 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5337 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5342 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5343 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5344 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5349 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5350 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5351 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5356 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5357 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5358 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5363 for ac_func in statfs statvfs
5365 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5366 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5367 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5368 cat >>confdefs.h <<_ACEOF
5369 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5376 for ac_func in strdup strlcat strlcpy
5378 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5379 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5380 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5381 cat >>confdefs.h <<_ACEOF
5382 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5388 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5389 echo Forcing snprintf emulation for HP-UX.
5391 for ac_func in snprintf vsnprintf
5393 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5394 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5395 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5396 cat >>confdefs.h <<_ACEOF
5397 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5405 for ac_func in random lrand48 arc4random
5407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5408 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5409 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5410 cat >>confdefs.h <<_ACEOF
5411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5418 for ac_func in geteuid
5420 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5421 if test "x$ac_cv_func_geteuid" = xyes; then :
5422 cat >>confdefs.h <<_ACEOF
5423 #define HAVE_GETEUID 1
5430 for ac_func in setpgid
5432 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5433 if test "x$ac_cv_func_setpgid" = xyes; then :
5434 cat >>confdefs.h <<_ACEOF
5435 #define HAVE_SETPGID 1
5442 for ac_func in vsyslog
5444 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5445 if test "x$ac_cv_func_vsyslog" = xyes; then :
5446 cat >>confdefs.h <<_ACEOF
5447 #define HAVE_VSYSLOG 1
5454 case "$host_os_name" in
5456 # Do not use sigset on Linux or GNU HURD
5459 # Use sigset on other platforms, if available
5460 for ac_func in sigset
5462 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5463 if test "x$ac_cv_func_sigset" = xyes; then :
5464 cat >>confdefs.h <<_ACEOF
5465 #define HAVE_SIGSET 1
5474 for ac_func in sigaction
5476 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5477 if test "x$ac_cv_func_sigaction" = xyes; then :
5478 cat >>confdefs.h <<_ACEOF
5479 #define HAVE_SIGACTION 1
5486 for ac_func in waitpid wait3
5488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5490 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5491 cat >>confdefs.h <<_ACEOF
5492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5499 for ac_func in posix_spawn
5501 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5502 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5503 cat >>confdefs.h <<_ACEOF
5504 #define HAVE_POSIX_SPAWN 1
5511 for ac_func in getgrouplist
5513 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5514 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5515 cat >>confdefs.h <<_ACEOF
5516 #define HAVE_GETGROUPLIST 1
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5524 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5532 int o = t.tm_gmtoff;
5537 if ac_fn_c_try_compile "$LINENO"; then :
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5540 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5549 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #include <sys/stat.h>
5562 if ac_fn_c_try_compile "$LINENO"; then :
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5564 $as_echo "yes" >&6; }
5565 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 for ac_func in removefile
5575 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5576 if test "x$ac_cv_func_removefile" = xyes; then :
5577 cat >>confdefs.h <<_ACEOF
5578 #define HAVE_REMOVEFILE 1
5585 # Check whether --enable-libusb was given.
5586 if test "${enable_libusb+set}" = set; then :
5587 enableval=$enable_libusb;
5596 if test "x$PKGCONFIG" != x; then
5597 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5599 $as_echo_n "checking for libusb-1.0... " >&6; }
5600 if $PKGCONFIG --exists libusb-1.0; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5602 $as_echo "yes" >&6; }
5603 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5605 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0`"
5606 LIBUSB="`$PKGCONFIG --libs libusb-1.0`"
5607 USBQUIRKS="\$(DATADIR)/usb"
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 if test x$enable_libusb = xyes; then
5612 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5616 elif test x$enable_libusb = xyes; then
5617 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5620 # Check whether --enable-tcp_wrappers was given.
5621 if test "${enable_tcp_wrappers+set}" = set; then :
5622 enableval=$enable_tcp_wrappers;
5629 if test x$enable_tcp_wrappers = xyes; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5631 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5632 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5633 $as_echo_n "(cached) " >&6
5635 ac_check_lib_save_LIBS=$LIBS
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5640 /* Override any GCC internal prototype to avoid an error.
5641 Use char because int might match the return type of a GCC
5642 builtin and then its argument prototype would still apply. */
5646 char hosts_access ();
5650 return hosts_access ();
5655 if ac_fn_c_try_link "$LINENO"; then :
5656 ac_cv_lib_wrap_hosts_access=yes
5658 ac_cv_lib_wrap_hosts_access=no
5660 rm -f core conftest.err conftest.$ac_objext \
5661 conftest$ac_exeext conftest.$ac_ext
5662 LIBS=$ac_check_lib_save_LIBS
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5665 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5666 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5668 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5669 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5670 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5682 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5683 if test "x$ac_cv_header_zlib_h" = xyes; then :
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5685 $as_echo_n "checking for gzgets in -lz... " >&6; }
5686 if ${ac_cv_lib_z_gzgets+:} false; then :
5687 $as_echo_n "(cached) " >&6
5689 ac_check_lib_save_LIBS=$LIBS
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5694 /* Override any GCC internal prototype to avoid an error.
5695 Use char because int might match the return type of a GCC
5696 builtin and then its argument prototype would still apply. */
5709 if ac_fn_c_try_link "$LINENO"; then :
5710 ac_cv_lib_z_gzgets=yes
5712 ac_cv_lib_z_gzgets=no
5714 rm -f core conftest.err conftest.$ac_objext \
5715 conftest$ac_exeext conftest.$ac_ext
5716 LIBS=$ac_check_lib_save_LIBS
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5719 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5720 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5722 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5727 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5728 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5729 $as_echo_n "(cached) " >&6
5731 ac_check_lib_save_LIBS=$LIBS
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5736 /* Override any GCC internal prototype to avoid an error.
5737 Use char because int might match the return type of a GCC
5738 builtin and then its argument prototype would still apply. */
5742 char inflateCopy ();
5746 return inflateCopy ();
5751 if ac_fn_c_try_link "$LINENO"; then :
5752 ac_cv_lib_z_inflateCopy=yes
5754 ac_cv_lib_z_inflateCopy=no
5756 rm -f core conftest.err conftest.$ac_objext \
5757 conftest$ac_exeext conftest.$ac_ext
5758 LIBS=$ac_check_lib_save_LIBS
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5761 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5762 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5763 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5767 if test "x$GZIPPROG" != x; then
5778 case $host_os_name in
5796 # Check whether --enable-acl was given.
5797 if test "${enable_acl+set}" = set; then :
5798 enableval=$enable_acl;
5801 if test "x$enable_acl" != xno; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5803 $as_echo_n "checking for library containing acl_init... " >&6; }
5804 if ${ac_cv_search_acl_init+:} false; then :
5805 $as_echo_n "(cached) " >&6
5807 ac_func_search_save_LIBS=$LIBS
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5811 /* Override any GCC internal prototype to avoid an error.
5812 Use char because int might match the return type of a GCC
5813 builtin and then its argument prototype would still apply. */
5826 for ac_lib in '' acl; do
5827 if test -z "$ac_lib"; then
5828 ac_res="none required"
5831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5833 if ac_fn_c_try_link "$LINENO"; then :
5834 ac_cv_search_acl_init=$ac_res
5836 rm -f core conftest.err conftest.$ac_objext \
5838 if ${ac_cv_search_acl_init+:} false; then :
5842 if ${ac_cv_search_acl_init+:} false; then :
5845 ac_cv_search_acl_init=no
5848 LIBS=$ac_func_search_save_LIBS
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5851 $as_echo "$ac_cv_search_acl_init" >&6; }
5852 ac_res=$ac_cv_search_acl_init
5853 if test "$ac_res" != no; then :
5854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5855 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5859 SERVERLIBS="$SERVERLIBS $LIBS"
5863 # Check whether --enable-dbus was given.
5864 if test "${enable_dbus+set}" = set; then :
5865 enableval=$enable_dbus;
5869 # Check whether --with-dbusdir was given.
5870 if test "${with_dbusdir+set}" = set; then :
5871 withval=$with_dbusdir; DBUSDIR="$withval"
5877 DBUS_NOTIFIERLIBS=""
5879 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5881 $as_echo_n "checking for DBUS... " >&6; }
5882 if $PKGCONFIG --exists dbus-1; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5884 $as_echo "yes" >&6; }
5885 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5887 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE"
5888 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1`"
5889 DBUS_NOTIFIER="dbus"
5890 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1`"
5892 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5893 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5894 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5895 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5899 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5900 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5901 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5906 if test -d /etc/dbus-1; then
5907 DBUSDIR="/etc/dbus-1"
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5919 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5920 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5921 CUPS_SYSTEM_AUTHKEY=""
5924 case $host_os_name in
5926 BACKLIBS="$BACKLIBS -framework IOKit"
5927 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5928 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5930 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5931 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5932 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5937 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5938 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5939 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5944 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5945 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5946 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5951 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5952 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5953 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5959 for ac_func in SCDynamicStoreCopyComputerName
5961 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5962 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5963 cat >>confdefs.h <<_ACEOF
5964 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5971 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5972 if test "x$ac_cv_header_membership_h" = xyes; then :
5973 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5978 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5979 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5980 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5985 for ac_func in mbr_uid_to_uuid
5987 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5988 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5989 cat >>confdefs.h <<_ACEOF
5990 #define HAVE_MBR_UID_TO_UUID 1
5997 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5998 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5999 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
6005 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
6006 if test "x$ac_cv_header_notify_h" = xyes; then :
6007 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
6012 for ac_func in notify_post
6014 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
6015 if test "x$ac_cv_func_notify_post" = xyes; then :
6016 cat >>confdefs.h <<_ACEOF
6017 #define HAVE_NOTIFY_POST 1
6025 # Check whether --with-adminkey was given.
6026 if test "${with_adminkey+set}" = set; then :
6027 withval=$with_adminkey; default_adminkey="$withval"
6029 default_adminkey="default"
6033 # Check whether --with-operkey was given.
6034 if test "${with_operkey+set}" = set; then :
6035 withval=$with_operkey; default_operkey="$withval"
6037 default_operkey="default"
6041 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
6042 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
6044 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
6047 if test "x$default_adminkey" != xdefault; then
6048 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
6049 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
6051 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
6052 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
6055 if test "x$default_operkey" != xdefault; then
6056 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
6058 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
6063 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
6064 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
6065 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
6071 if test $host_os_version -ge 100; then
6072 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6073 if test "x$ac_cv_header_sandbox_h" = xyes; then :
6074 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
6080 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
6081 # Broken public headers in 10.7.x...
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
6083 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
6084 if test -f /usr/local/include/sandbox/private.h; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6086 $as_echo "yes" >&6; }
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6090 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
6094 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
6095 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
6096 $as_echo "#define HAVE_XPC 1" >>confdefs.h
6098 INSTALLXPC="install-xpc"
6102 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
6103 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
6104 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
6113 cat >>confdefs.h <<_ACEOF
6114 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6117 cat >>confdefs.h <<_ACEOF
6118 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6127 # Check whether --with-components was given.
6128 if test "${with_components+set}" = set; then :
6129 withval=$with_components; COMPONENTS="$withval"
6133 case "$COMPONENTS" in
6135 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6139 BUILDDIRS="data locale"
6143 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6152 if test "$prefix" = "NONE"; then
6156 if test "$exec_prefix" = "NONE"; then
6157 if test "$prefix" = "/"; then
6160 exec_prefix="$prefix"
6164 if test "$bindir" = "\${exec_prefix}/bin"; then
6165 bindir="$exec_prefix/bin"
6168 cat >>confdefs.h <<_ACEOF
6169 #define CUPS_BINDIR "$bindir"
6173 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6174 sbindir="$exec_prefix/sbin"
6177 cat >>confdefs.h <<_ACEOF
6178 #define CUPS_SBINDIR "$sbindir"
6182 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6183 sharedstatedir="/usr/com"
6186 if test "$datarootdir" = "\${prefix}/share"; then
6187 if test "$prefix" = "/"; then
6188 datarootdir="/usr/share"
6190 datarootdir="$prefix/share"
6194 if test "$datadir" = "\${prefix}/share"; then
6195 if test "$prefix" = "/"; then
6196 datadir="/usr/share"
6198 datadir="$prefix/share"
6200 elif test "$datadir" = "\${datarootdir}"; then
6201 datadir="$datarootdir"
6204 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6205 includedir="/usr/include"
6208 if test "$localstatedir" = "\${prefix}/var"; then
6209 if test "$prefix" = "/"; then
6210 if test "$host_os_name" = darwin; then
6211 localstatedir="/private/var"
6213 localstatedir="/var"
6216 localstatedir="$prefix/var"
6220 if test "$sysconfdir" = "\${prefix}/etc"; then
6221 if test "$prefix" = "/"; then
6222 if test "$host_os_name" = darwin; then
6223 sysconfdir="/private/etc"
6228 sysconfdir="$prefix/etc"
6232 if test "$libdir" = "\${exec_prefix}/lib"; then
6233 case "$host_os_name" in
6235 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6236 libdir="$exec_prefix/lib64"
6243 # Check whether --with-privateinclude was given.
6244 if test "${with_privateinclude+set}" = set; then :
6245 withval=$with_privateinclude; privateinclude="$withval"
6250 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6251 PRIVATEINCLUDE="$privateinclude/cups"
6260 # Check whether --with-lpdconfig was given.
6261 if test "${with_lpdconfig+set}" = set; then :
6262 withval=$with_lpdconfig; LPDCONFIG="$withval"
6268 if test "x$LPDCONFIG" = x; then
6269 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6270 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6271 elif test "x$XINETD" != x; then
6272 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6276 if test "x$LPDCONFIG" = xoff; then
6277 cat >>confdefs.h <<_ACEOF
6278 #define CUPS_DEFAULT_LPD_CONFIG ""
6282 cat >>confdefs.h <<_ACEOF
6283 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6289 # Check whether --with-smbconfig was given.
6290 if test "${with_smbconfig+set}" = set; then :
6291 withval=$with_smbconfig; SMBCONFIG="$withval"
6297 if test "x$SMBCONFIG" = x; then
6298 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6299 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6301 for dir in /etc /etc/samba /usr/local/etc; do
6302 if test -f $dir/smb.conf; then
6303 SMBCONFIG="samba://$dir/smb.conf"
6310 if test "x$SMBCONFIG" = xoff; then
6311 cat >>confdefs.h <<_ACEOF
6312 #define CUPS_DEFAULT_SMB_CONFIG ""
6316 cat >>confdefs.h <<_ACEOF
6317 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6324 # Check whether --with-cachedir was given.
6325 if test "${with_cachedir+set}" = set; then :
6326 withval=$with_cachedir; cachedir="$withval"
6332 if test x$cachedir = x; then
6333 if test "x$host_os_name" = xdarwin; then
6334 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6336 CUPS_CACHEDIR="$localstatedir/cache/cups"
6339 CUPS_CACHEDIR="$cachedir"
6341 cat >>confdefs.h <<_ACEOF
6342 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6348 CUPS_DATADIR="$datadir/cups"
6349 cat >>confdefs.h <<_ACEOF
6350 #define CUPS_DATADIR "$datadir/cups"
6357 # Check whether --with-icondir was given.
6358 if test "${with_icondir+set}" = set; then :
6359 withval=$with_icondir; icondir="$withval"
6365 if test "x$icondir" = x -a -d /usr/share/icons; then
6366 ICONDIR="/usr/share/icons"
6375 # Check whether --with-menudir was given.
6376 if test "${with_menudir+set}" = set; then :
6377 withval=$with_menudir; menudir="$withval"
6383 if test "x$menudir" = x -a -d /usr/share/applications; then
6384 MENUDIR="/usr/share/applications"
6391 # Documentation files
6393 # Check whether --with-docdir was given.
6394 if test "${with_docdir+set}" = set; then :
6395 withval=$with_docdir; docdir="$withval"
6401 if test x$docdir = x; then
6402 CUPS_DOCROOT="$datadir/doc/cups"
6403 docdir="$datadir/doc/cups"
6405 CUPS_DOCROOT="$docdir"
6408 cat >>confdefs.h <<_ACEOF
6409 #define CUPS_DOCROOT "$docdir"
6416 # Check whether --with-fontpath was given.
6417 if test "${with_fontpath+set}" = set; then :
6418 withval=$with_fontpath; fontpath="$withval"
6424 if test "x$fontpath" = "x"; then
6425 CUPS_FONTPATH="$datadir/cups/fonts"
6427 CUPS_FONTPATH="$fontpath"
6431 cat >>confdefs.h <<_ACEOF
6432 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6437 if test "$localedir" = "\${datarootdir}/locale"; then
6438 case "$host_os_name" in
6439 linux* | gnu* | *bsd* | darwin*)
6440 CUPS_LOCALEDIR="$datarootdir/locale"
6444 # This is the standard System V location...
6445 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6449 CUPS_LOCALEDIR="$localedir"
6452 cat >>confdefs.h <<_ACEOF
6453 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6460 # Check whether --with-logdir was given.
6461 if test "${with_logdir+set}" = set; then :
6462 withval=$with_logdir; logdir="$withval"
6468 if test x$logdir = x; then
6469 CUPS_LOGDIR="$localstatedir/log/cups"
6470 cat >>confdefs.h <<_ACEOF
6471 #define CUPS_LOGDIR "$localstatedir/log/cups"
6475 CUPS_LOGDIR="$logdir"
6477 cat >>confdefs.h <<_ACEOF
6478 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6483 # Longer-term spool data
6484 CUPS_REQUESTS="$localstatedir/spool/cups"
6485 cat >>confdefs.h <<_ACEOF
6486 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6491 # Server executables...
6492 case "$host_os_name" in
6494 # *BSD and Darwin (macOS)
6496 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6500 INSTALL_SYSV="install-sysv"
6501 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6505 cat >>confdefs.h <<_ACEOF
6506 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6512 # Configuration files
6513 CUPS_SERVERROOT="$sysconfdir/cups"
6514 cat >>confdefs.h <<_ACEOF
6515 #define CUPS_SERVERROOT "$sysconfdir/cups"
6520 # Transient run-time state
6522 # Check whether --with-rundir was given.
6523 if test "${with_rundir+set}" = set; then :
6524 withval=$with_rundir; CUPS_STATEDIR="$withval"
6527 case "$host_os_name" in
6530 CUPS_STATEDIR="$CUPS_SERVERROOT"
6534 CUPS_STATEDIR="$localstatedir/run/cups"
6539 cat >>confdefs.h <<_ACEOF
6540 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6546 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6547 # New GNU "standards" break previous ones, so make sure we use
6548 # the right default location for the operating system...
6549 mandir="\${prefix}/man"
6552 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6553 case "$host_os_name" in
6554 darwin* | linux* | gnu* | *bsd*)
6555 # Darwin, macOS, Linux, GNU HURD, and *BSD
6556 mandir="/usr/share/man"
6557 AMANDIR="/usr/share/man"
6558 PMANDIR="/usr/share/man"
6575 case "$host_os_name" in
6584 linux* | gnu* | darwin*)
6585 # Linux, GNU Hurd, and macOS
6611 DSOFLAGS="${DSOFLAGS:=}"
6613 # Check whether --enable-shared was given.
6614 if test "${enable_shared+set}" = set; then :
6615 enableval=$enable_shared;
6620 LIBCUPSBASE="lib$cupsbase"
6621 LIBCUPSSTATIC="lib$cupsbase.a"
6623 if test x$enable_shared != xno; then
6624 case "$host_os_name" in
6626 LIBCUPS="lib$cupsbase.so.2"
6627 LIBCUPSIMAGE="libcupsimage.so.2"
6630 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G \$(OPTIM)"
6632 linux* | gnu* | *bsd*)
6633 LIBCUPS="lib$cupsbase.so.2"
6634 LIBCUPSIMAGE="libcupsimage.so.2"
6637 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6640 LIBCUPS="lib$cupsbase.2.dylib"
6641 LIBCUPSIMAGE="libcupsimage.2.dylib"
6644 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6647 echo "Warning: shared libraries may not be supported. Trying -shared"
6648 echo " option with compiler."
6649 LIBCUPS="lib$cupsbase.so.2"
6650 LIBCUPSIMAGE="libcupsimage.so.2"
6653 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6658 LIBCUPS="lib$cupsbase.a"
6659 LIBCUPSIMAGE="libcupsimage.a"
6672 if test x$enable_shared = xno; then
6673 LINKCUPS="../cups/lib$cupsbase.a"
6674 LINKCUPSIMAGE="../filter/libcupsimage.a"
6676 EXTLINKCUPS="-lcups"
6677 EXTLINKCUPSIMAGE="-lcupsimage"
6679 LINKCUPS="-l${cupsbase}"
6680 LINKCUPSIMAGE="-lcupsimage"
6682 EXTLINKCUPS="-lcups"
6683 EXTLINKCUPSIMAGE="-lcupsimage"
6693 if test "$DSO" != ":"; then
6694 # When using DSOs the image libraries are linked to libcupsimage.so
6695 # rather than to the executables. This makes things smaller if you
6696 # are using any static libraries, and it also allows us to distribute
6697 # a single DSO rather than a bunch...
6701 # Tell the run-time linkers where to find a DSO. Some platforms
6702 # need this option, even when the library is installed in a
6703 # standard location...
6704 case $host_os_name in
6707 if test $exec_prefix != /usr; then
6708 DSOFLAGS="-R$libdir $DSOFLAGS"
6709 LDFLAGS="$LDFLAGS -R$libdir"
6710 EXPORT_LDFLAGS="-R$libdir"
6715 if test $exec_prefix != /usr; then
6716 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6717 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6718 EXPORT_LDFLAGS="-Wl,-R$libdir"
6722 # Linux, and HURD...
6723 if test $exec_prefix != /usr; then
6724 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6725 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6726 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6740 # Check whether --enable-libtool_unsupported was given.
6741 if test "${enable_libtool_unsupported+set}" = set; then :
6742 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6743 if test x$enable_libtool_unsupported == xyes; then
6744 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6746 LIBTOOL="$enable_libtool_unsupported"
6748 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6749 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6756 if test x$LIBTOOL != x; then
6757 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6758 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6760 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6761 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6763 LIBCUPS="libcups.la"
6764 LIBCUPSSTATIC="libcups.la"
6765 LIBCUPSCGI="libcupscgi.la"
6766 LIBCUPSIMAGE="libcupsimage.la"
6767 LIBCUPSMIME="libcupsmime.la"
6768 LIBCUPSPPDC="libcupsppdc.la"
6770 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
6771 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
6772 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
6774 LINKCUPS="../cups/\$(LIBCUPS)"
6775 LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
6801 # Check whether --with-optim was given.
6802 if test "${with_optim+set}" = set; then :
6803 withval=$with_optim;
6806 # Check whether --enable-debug was given.
6807 if test "${enable_debug+set}" = set; then :
6808 enableval=$enable_debug;
6811 # Check whether --enable-debug_guards was given.
6812 if test "${enable_debug_guards+set}" = set; then :
6813 enableval=$enable_debug_guards;
6816 # Check whether --enable-debug_printfs was given.
6817 if test "${enable_debug_printfs+set}" = set; then :
6818 enableval=$enable_debug_printfs;
6821 # Check whether --enable-unit_tests was given.
6822 if test "${enable_unit_tests+set}" = set; then :
6823 enableval=$enable_unit_tests;
6827 if test x$enable_debug = xyes; then
6833 if test x$enable_debug_printfs = xyes; then
6834 CFLAGS="$CFLAGS -DDEBUG"
6835 CXXFLAGS="$CXXFLAGS -DDEBUG"
6838 if test x$enable_debug_guards = xyes; then
6839 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6840 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6843 if test x$enable_unit_tests = xyes; then
6844 if test "$build" != "$host"; then
6845 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6848 UNITTESTS="unittests"
6855 # Check whether --with-archflags was given.
6856 if test "${with_archflags+set}" = set; then :
6857 withval=$with_archflags;
6861 # Check whether --with-ldarchflags was given.
6862 if test "${with_ldarchflags+set}" = set; then :
6863 withval=$with_ldarchflags;
6867 if test -z "$with_archflags"; then
6870 ARCHFLAGS="$with_archflags"
6873 if test -z "$with_ldarchflags"; then
6874 if test "$host_os_name" = darwin; then
6875 # Only create Intel programs by default
6876 LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch ppc64//'`"
6878 LDARCHFLAGS="$ARCHFLAGS"
6881 LDARCHFLAGS="$with_ldarchflags"
6887 # Check whether --enable-relro was given.
6888 if test "${enable_relro+set}" = set; then :
6889 enableval=$enable_relro;
6893 CXXLIBS="${CXXLIBS:=}"
6902 if test -n "$GCC"; then
6903 # Add GCC-specific compiler options...
6904 if test -z "$OPTIM"; then
6905 if test "x$with_optim" = x; then
6906 # Default to optimize-for-size and debug
6909 OPTIM="$with_optim $OPTIM"
6913 # Generate position-independent code as needed...
6914 if test $PICFLAG = 1; then
6915 OPTIM="-fPIC $OPTIM"
6918 # The -fstack-protector option is available with some versions of
6919 # GCC and adds "stack canaries" which detect when the return address
6920 # has been overwritten, preventing many types of exploit attacks.
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6922 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6924 CFLAGS="$CFLAGS -fstack-protector"
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6936 if ac_fn_c_try_link "$LINENO"; then :
6937 if test "x$LSB_BUILD" = xy; then
6938 # Can't use stack-protector with LSB binaries...
6939 OPTIM="$OPTIM -fno-stack-protector"
6941 OPTIM="$OPTIM -fstack-protector"
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6944 $as_echo "yes" >&6; }
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6949 rm -f core conftest.err conftest.$ac_objext \
6950 conftest$ac_exeext conftest.$ac_ext
6953 if test "x$LSB_BUILD" != xy; then
6954 # The -fPIE option is available with some versions of GCC and
6955 # adds randomization of addresses, which avoids another class of
6956 # exploits that depend on a fixed address for common functions.
6958 # Not available to LSB binaries...
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6960 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6962 case "$host_os_name" in
6964 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6976 if ac_fn_c_try_compile "$LINENO"; then :
6978 PIEFLAGS="-fPIE -Wl,-pie"
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6980 $as_echo "yes" >&6; }
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989 CFLAGS="$CFLAGS -fPIE -pie"
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
7001 if ac_fn_c_try_compile "$LINENO"; then :
7003 PIEFLAGS="-fPIE -pie"
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7005 $as_echo "yes" >&6; }
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016 if test "x$with_optim" = x; then
7017 # Add useful warning options for tracking down problems...
7018 OPTIM="-Wall -Wno-format-y2k -Wunused -Wno-unused-result -Wsign-conversion $OPTIM"
7020 # Test GCC version for certain warning flags since -Werror
7021 # doesn't trigger...
7022 gccversion=`$CC --version | head -1 | awk '{print $NF}'`
7023 case "$gccversion" in
7025 OPTIM="$OPTIM -Wno-format-truncation -Wno-tautological-compare"
7029 # Additional warning options for development testing...
7030 if test -d .git; then
7031 OPTIM="-Werror $OPTIM"
7035 case "$host_os_name" in
7037 # -D_FORTIFY_SOURCE=2 adds additional object size
7038 # checking, basically wrapping all string functions
7039 # with buffer-limited ones. Not strictly needed for
7040 # CUPS since we already use buffer-limited calls, but
7041 # this will catch any additions that are broken.
7042 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7046 # The -z relro option is provided by the Linux linker command to
7047 # make relocatable data read-only.
7048 if test x$enable_relro = xyes; then
7049 RELROFLAGS="-Wl,-z,relro,-z,now"
7054 # Add vendor-specific compiler options...
7055 case $host_os_name in
7058 if test -z "$OPTIM"; then
7059 if test "x$with_optim" = x; then
7062 OPTIM="$with_optim $OPTIM"
7066 if test $PICFLAG = 1; then
7067 OPTIM="-KPIC $OPTIM"
7071 # Running some other operating system; inform the user they
7072 # should contribute the necessary options to
7073 # cups-support@cups.org...
7074 echo "Building CUPS with default compiler optimizations; contact"
7075 echo "cups-devel@cups.org with uname and compiler options needed"
7076 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7077 echo "variables before running configure."
7082 # Add general compiler options per platform...
7083 case $host_os_name in
7085 # glibc 2.8 and higher breaks peer credentials unless you
7086 # define _GNU_SOURCE...
7087 OPTIM="$OPTIM -D_GNU_SOURCE"
7093 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
7094 #include <sys/socket.h>
7095 #include <netinet/in.h>
7096 #include <arpa/inet.h>
7097 #include <netinet/in_systm.h>
7098 #include <netinet/ip.h>
7100 if test "x$ac_cv_header_resolv_h" = xyes; then :
7101 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7107 $as_echo_n "checking for library containing socket... " >&6; }
7108 if ${ac_cv_search_socket+:} false; then :
7109 $as_echo_n "(cached) " >&6
7111 ac_func_search_save_LIBS=$LIBS
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7115 /* Override any GCC internal prototype to avoid an error.
7116 Use char because int might match the return type of a GCC
7117 builtin and then its argument prototype would still apply. */
7130 for ac_lib in '' socket; do
7131 if test -z "$ac_lib"; then
7132 ac_res="none required"
7135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7137 if ac_fn_c_try_link "$LINENO"; then :
7138 ac_cv_search_socket=$ac_res
7140 rm -f core conftest.err conftest.$ac_objext \
7142 if ${ac_cv_search_socket+:} false; then :
7146 if ${ac_cv_search_socket+:} false; then :
7149 ac_cv_search_socket=no
7152 LIBS=$ac_func_search_save_LIBS
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7155 $as_echo "$ac_cv_search_socket" >&6; }
7156 ac_res=$ac_cv_search_socket
7157 if test "$ac_res" != no; then :
7158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7163 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7164 if ${ac_cv_search_gethostbyaddr+:} false; then :
7165 $as_echo_n "(cached) " >&6
7167 ac_func_search_save_LIBS=$LIBS
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7171 /* Override any GCC internal prototype to avoid an error.
7172 Use char because int might match the return type of a GCC
7173 builtin and then its argument prototype would still apply. */
7177 char gethostbyaddr ();
7181 return gethostbyaddr ();
7186 for ac_lib in '' nsl; do
7187 if test -z "$ac_lib"; then
7188 ac_res="none required"
7191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7193 if ac_fn_c_try_link "$LINENO"; then :
7194 ac_cv_search_gethostbyaddr=$ac_res
7196 rm -f core conftest.err conftest.$ac_objext \
7198 if ${ac_cv_search_gethostbyaddr+:} false; then :
7202 if ${ac_cv_search_gethostbyaddr+:} false; then :
7205 ac_cv_search_gethostbyaddr=no
7208 LIBS=$ac_func_search_save_LIBS
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7211 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7212 ac_res=$ac_cv_search_gethostbyaddr
7213 if test "$ac_res" != no; then :
7214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7219 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7220 if ${ac_cv_search_getifaddrs+:} false; then :
7221 $as_echo_n "(cached) " >&6
7223 ac_func_search_save_LIBS=$LIBS
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7227 /* Override any GCC internal prototype to avoid an error.
7228 Use char because int might match the return type of a GCC
7229 builtin and then its argument prototype would still apply. */
7237 return getifaddrs ();
7242 for ac_lib in '' nsl; do
7243 if test -z "$ac_lib"; then
7244 ac_res="none required"
7247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7249 if ac_fn_c_try_link "$LINENO"; then :
7250 ac_cv_search_getifaddrs=$ac_res
7252 rm -f core conftest.err conftest.$ac_objext \
7254 if ${ac_cv_search_getifaddrs+:} false; then :
7258 if ${ac_cv_search_getifaddrs+:} false; then :
7261 ac_cv_search_getifaddrs=no
7264 LIBS=$ac_func_search_save_LIBS
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7267 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7268 ac_res=$ac_cv_search_getifaddrs
7269 if test "$ac_res" != no; then :
7270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7271 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7276 $as_echo_n "checking for library containing hstrerror... " >&6; }
7277 if ${ac_cv_search_hstrerror+:} false; then :
7278 $as_echo_n "(cached) " >&6
7280 ac_func_search_save_LIBS=$LIBS
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7284 /* Override any GCC internal prototype to avoid an error.
7285 Use char because int might match the return type of a GCC
7286 builtin and then its argument prototype would still apply. */
7294 return hstrerror ();
7299 for ac_lib in '' nsl socket resolv; do
7300 if test -z "$ac_lib"; then
7301 ac_res="none required"
7304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7306 if ac_fn_c_try_link "$LINENO"; then :
7307 ac_cv_search_hstrerror=$ac_res
7309 rm -f core conftest.err conftest.$ac_objext \
7311 if ${ac_cv_search_hstrerror+:} false; then :
7315 if ${ac_cv_search_hstrerror+:} false; then :
7318 ac_cv_search_hstrerror=no
7321 LIBS=$ac_func_search_save_LIBS
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7324 $as_echo "$ac_cv_search_hstrerror" >&6; }
7325 ac_res=$ac_cv_search_hstrerror
7326 if test "$ac_res" != no; then :
7327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7328 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7333 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7334 if ${ac_cv_search_rresvport_af+:} false; then :
7335 $as_echo_n "(cached) " >&6
7337 ac_func_search_save_LIBS=$LIBS
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7341 /* Override any GCC internal prototype to avoid an error.
7342 Use char because int might match the return type of a GCC
7343 builtin and then its argument prototype would still apply. */
7347 char rresvport_af ();
7351 return rresvport_af ();
7356 for ac_lib in '' nsl; do
7357 if test -z "$ac_lib"; then
7358 ac_res="none required"
7361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7363 if ac_fn_c_try_link "$LINENO"; then :
7364 ac_cv_search_rresvport_af=$ac_res
7366 rm -f core conftest.err conftest.$ac_objext \
7368 if ${ac_cv_search_rresvport_af+:} false; then :
7372 if ${ac_cv_search_rresvport_af+:} false; then :
7375 ac_cv_search_rresvport_af=no
7378 LIBS=$ac_func_search_save_LIBS
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7381 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7382 ac_res=$ac_cv_search_rresvport_af
7383 if test "$ac_res" != no; then :
7384 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7385 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7390 $as_echo_n "checking for library containing __res_init... " >&6; }
7391 if ${ac_cv_search___res_init+:} false; then :
7392 $as_echo_n "(cached) " >&6
7394 ac_func_search_save_LIBS=$LIBS
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7398 /* Override any GCC internal prototype to avoid an error.
7399 Use char because int might match the return type of a GCC
7400 builtin and then its argument prototype would still apply. */
7408 return __res_init ();
7413 for ac_lib in '' resolv bind; do
7414 if test -z "$ac_lib"; then
7415 ac_res="none required"
7418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7420 if ac_fn_c_try_link "$LINENO"; then :
7421 ac_cv_search___res_init=$ac_res
7423 rm -f core conftest.err conftest.$ac_objext \
7425 if ${ac_cv_search___res_init+:} false; then :
7429 if ${ac_cv_search___res_init+:} false; then :
7432 ac_cv_search___res_init=no
7435 LIBS=$ac_func_search_save_LIBS
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7438 $as_echo "$ac_cv_search___res_init" >&6; }
7439 ac_res=$ac_cv_search___res_init
7440 if test "$ac_res" != no; then :
7441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7442 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7446 $as_echo_n "checking for library containing res_9_init... " >&6; }
7447 if ${ac_cv_search_res_9_init+:} false; then :
7448 $as_echo_n "(cached) " >&6
7450 ac_func_search_save_LIBS=$LIBS
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7454 /* Override any GCC internal prototype to avoid an error.
7455 Use char because int might match the return type of a GCC
7456 builtin and then its argument prototype would still apply. */
7464 return res_9_init ();
7469 for ac_lib in '' resolv bind; do
7470 if test -z "$ac_lib"; then
7471 ac_res="none required"
7474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7476 if ac_fn_c_try_link "$LINENO"; then :
7477 ac_cv_search_res_9_init=$ac_res
7479 rm -f core conftest.err conftest.$ac_objext \
7481 if ${ac_cv_search_res_9_init+:} false; then :
7485 if ${ac_cv_search_res_9_init+:} false; then :
7488 ac_cv_search_res_9_init=no
7491 LIBS=$ac_func_search_save_LIBS
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7494 $as_echo "$ac_cv_search_res_9_init" >&6; }
7495 ac_res=$ac_cv_search_res_9_init
7496 if test "$ac_res" != no; then :
7497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7498 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7502 $as_echo_n "checking for library containing res_init... " >&6; }
7503 if ${ac_cv_search_res_init+:} false; then :
7504 $as_echo_n "(cached) " >&6
7506 ac_func_search_save_LIBS=$LIBS
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7510 /* Override any GCC internal prototype to avoid an error.
7511 Use char because int might match the return type of a GCC
7512 builtin and then its argument prototype would still apply. */
7525 for ac_lib in '' resolv bind; do
7526 if test -z "$ac_lib"; then
7527 ac_res="none required"
7530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7532 if ac_fn_c_try_link "$LINENO"; then :
7533 ac_cv_search_res_init=$ac_res
7535 rm -f core conftest.err conftest.$ac_objext \
7537 if ${ac_cv_search_res_init+:} false; then :
7541 if ${ac_cv_search_res_init+:} false; then :
7544 ac_cv_search_res_init=no
7547 LIBS=$ac_func_search_save_LIBS
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7550 $as_echo "$ac_cv_search_res_init" >&6; }
7551 ac_res=$ac_cv_search_res_init
7552 if test "$ac_res" != no; then :
7553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7554 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7563 # Tru64 5.1b leaks file descriptors with these functions; disable until
7564 # we can come up with a test for this...
7565 if test "$host_os_name" != "osf1"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7567 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7568 if ${ac_cv_search_getaddrinfo+:} false; then :
7569 $as_echo_n "(cached) " >&6
7571 ac_func_search_save_LIBS=$LIBS
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7575 /* Override any GCC internal prototype to avoid an error.
7576 Use char because int might match the return type of a GCC
7577 builtin and then its argument prototype would still apply. */
7581 char getaddrinfo ();
7585 return getaddrinfo ();
7590 for ac_lib in '' nsl; do
7591 if test -z "$ac_lib"; then
7592 ac_res="none required"
7595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7597 if ac_fn_c_try_link "$LINENO"; then :
7598 ac_cv_search_getaddrinfo=$ac_res
7600 rm -f core conftest.err conftest.$ac_objext \
7602 if ${ac_cv_search_getaddrinfo+:} false; then :
7606 if ${ac_cv_search_getaddrinfo+:} false; then :
7609 ac_cv_search_getaddrinfo=no
7612 LIBS=$ac_func_search_save_LIBS
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7615 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7616 ac_res=$ac_cv_search_getaddrinfo
7617 if test "$ac_res" != no; then :
7618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7619 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7624 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7625 if ${ac_cv_search_getnameinfo+:} false; then :
7626 $as_echo_n "(cached) " >&6
7628 ac_func_search_save_LIBS=$LIBS
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7632 /* Override any GCC internal prototype to avoid an error.
7633 Use char because int might match the return type of a GCC
7634 builtin and then its argument prototype would still apply. */
7638 char getnameinfo ();
7642 return getnameinfo ();
7647 for ac_lib in '' nsl; do
7648 if test -z "$ac_lib"; then
7649 ac_res="none required"
7652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7654 if ac_fn_c_try_link "$LINENO"; then :
7655 ac_cv_search_getnameinfo=$ac_res
7657 rm -f core conftest.err conftest.$ac_objext \
7659 if ${ac_cv_search_getnameinfo+:} false; then :
7663 if ${ac_cv_search_getnameinfo+:} false; then :
7666 ac_cv_search_getnameinfo=no
7669 LIBS=$ac_func_search_save_LIBS
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7672 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7673 ac_res=$ac_cv_search_getnameinfo
7674 if test "$ac_res" != no; then :
7675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7676 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7682 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7684 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7688 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7689 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7690 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7696 CUPS_DEFAULT_DOMAINSOCKET=""
7699 # Check whether --with-domainsocket was given.
7700 if test "${with_domainsocket+set}" = set; then :
7701 withval=$with_domainsocket; default_domainsocket="$withval"
7703 default_domainsocket=""
7707 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7708 if test "x$default_domainsocket" = x; then
7709 case "$host_os_name" in
7711 # Darwin and macOS do their own thing...
7712 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7715 # All others use FHS standard...
7716 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7720 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7723 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7725 cat >>confdefs.h <<_ACEOF
7726 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7730 CUPS_LISTEN_DOMAINSOCKET=""
7737 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7738 if test "x$ac_cv_func_poll" = xyes; then :
7739 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7743 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7744 if test "x$ac_cv_func_epoll_create" = xyes; then :
7745 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7749 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7750 if test "x$ac_cv_func_kqueue" = xyes; then :
7751 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7757 # Check whether --enable-gssapi was given.
7758 if test "${enable_gssapi+set}" = set; then :
7759 enableval=$enable_gssapi;
7766 if test x$enable_gssapi != xno; then
7767 if test -n "$ac_tool_prefix"; then
7768 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7769 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7773 $as_echo_n "(cached) " >&6
7777 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7799 if test -n "$KRB5CONFIG"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7801 $as_echo "$KRB5CONFIG" >&6; }
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7809 if test -z "$ac_cv_path_KRB5CONFIG"; then
7810 ac_pt_KRB5CONFIG=$KRB5CONFIG
7811 # Extract the first word of "krb5-config", so it can be a program name with args.
7812 set dummy krb5-config; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7816 $as_echo_n "(cached) " >&6
7818 case $ac_pt_KRB5CONFIG in
7820 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7842 if test -n "$ac_pt_KRB5CONFIG"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7844 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7850 if test "x$ac_pt_KRB5CONFIG" = x; then
7853 case $cross_compiling:$ac_tool_warned in
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7857 ac_tool_warned=yes ;;
7859 KRB5CONFIG=$ac_pt_KRB5CONFIG
7862 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7865 if test "x$KRB5CONFIG" != x; then
7866 case "$host_os_name" in
7868 # macOS weak-links to the Kerberos framework...
7869 LIBGSSAPI="-weak_framework Kerberos"
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7871 $as_echo_n "checking for GSS framework... " >&6; }
7872 if test -d /System/Library/Frameworks/GSS.framework; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7874 $as_echo "yes" >&6; }
7875 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7882 # Solaris has a non-standard krb5-config, don't use it!
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7884 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7885 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7886 $as_echo_n "(cached) " >&6
7888 ac_check_lib_save_LIBS=$LIBS
7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7893 /* Override any GCC internal prototype to avoid an error.
7894 Use char because int might match the return type of a GCC
7895 builtin and then its argument prototype would still apply. */
7899 char gss_display_status ();
7903 return gss_display_status ();
7908 if ac_fn_c_try_link "$LINENO"; then :
7909 ac_cv_lib_gss_gss_display_status=yes
7911 ac_cv_lib_gss_gss_display_status=no
7913 rm -f core conftest.err conftest.$ac_objext \
7914 conftest$ac_exeext conftest.$ac_ext
7915 LIBS=$ac_check_lib_save_LIBS
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7918 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7919 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7921 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7923 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7924 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7925 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7930 # Other platforms just ask for GSSAPI
7931 CFLAGS="`$KRB5CONFIG --cflags gssapi` $CFLAGS"
7932 CPPFLAGS="`$KRB5CONFIG --cflags gssapi` $CPPFLAGS"
7933 LIBGSSAPI="`$KRB5CONFIG --libs gssapi`"
7937 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7940 # Check for vendor-specific implementations...
7941 case "$host_os_name" in
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7944 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7945 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7946 $as_echo_n "(cached) " >&6
7948 ac_check_lib_save_LIBS=$LIBS
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7953 /* Override any GCC internal prototype to avoid an error.
7954 Use char because int might match the return type of a GCC
7955 builtin and then its argument prototype would still apply. */
7959 char gss_display_status ();
7963 return gss_display_status ();
7968 if ac_fn_c_try_link "$LINENO"; then :
7969 ac_cv_lib_gss_gss_display_status=yes
7971 ac_cv_lib_gss_gss_display_status=no
7973 rm -f core conftest.err conftest.$ac_objext \
7974 conftest$ac_exeext conftest.$ac_ext
7975 LIBS=$ac_check_lib_save_LIBS
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7978 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7979 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7981 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7983 LIBGSSAPI="-lgss -lgssapi_krb5"
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7989 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7990 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7991 $as_echo_n "(cached) " >&6
7993 ac_check_lib_save_LIBS=$LIBS
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7998 /* Override any GCC internal prototype to avoid an error.
7999 Use char because int might match the return type of a GCC
8000 builtin and then its argument prototype would still apply. */
8004 char gss_display_status ();
8008 return gss_display_status ();
8013 if ac_fn_c_try_link "$LINENO"; then :
8014 ac_cv_lib_gss_gss_display_status=yes
8016 ac_cv_lib_gss_gss_display_status=no
8018 rm -f core conftest.err conftest.$ac_objext \
8019 conftest$ac_exeext conftest.$ac_ext
8020 LIBS=$ac_check_lib_save_LIBS
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8023 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8024 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8026 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8035 if test "x$LIBGSSAPI" != x; then
8036 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8037 if test "x$ac_cv_header_krb5_h" = xyes; then :
8038 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8043 if test -d /System/Library/Frameworks/GSS.framework; then
8044 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
8045 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
8046 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8051 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
8052 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
8053 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
8058 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
8059 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
8060 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8066 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8067 if test "x$ac_cv_header_gssapi_h" = xyes; then :
8068 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8073 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8074 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8075 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8083 LIBS="$LIBS $LIBGSSAPI"
8085 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8086 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8087 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8093 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8094 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8097 #include <gssapi/gssapi.h>
8101 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8106 if ac_fn_c_try_compile "$LINENO"; then :
8107 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8110 $as_echo "yes" >&6; }
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8119 #include <GSS/gssapi.h>
8123 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8128 if ac_fn_c_try_compile "$LINENO"; then :
8129 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8132 $as_echo "yes" >&6; }
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8145 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8150 if ac_fn_c_try_compile "$LINENO"; then :
8151 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8154 $as_echo "yes" >&6; }
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167 # Check whether --with-gssservicename was given.
8168 if test "${with_gssservicename+set}" = set; then :
8169 withval=$with_gssservicename; default_gssservicename="$withval"
8171 default_gssservicename="default"
8175 if test x$default_gssservicename != xno; then
8176 if test "x$default_gssservicename" = "xdefault"; then
8177 CUPS_DEFAULT_GSSSERVICENAME="host"
8179 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8182 CUPS_DEFAULT_GSSSERVICENAME=""
8186 cat >>confdefs.h <<_ACEOF
8187 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8192 # Check whether --enable-threads was given.
8193 if test "${enable_threads+set}" = set; then :
8194 enableval=$enable_threads;
8201 if test "x$enable_threads" != xno; then
8202 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8203 if test "x$ac_cv_header_pthread_h" = xyes; then :
8204 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8210 if test x$ac_cv_header_pthread_h = xyes; then
8211 for flag in -lpthreads -lpthread -pthread; do
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8213 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 #include <pthread.h>
8222 pthread_create(0, 0, 0, 0);
8227 if ac_fn_c_try_link "$LINENO"; then :
8232 rm -f core conftest.err conftest.$ac_objext \
8233 conftest$ac_exeext conftest.$ac_ext
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8235 $as_echo "$have_pthread" >&6; }
8237 if test $have_pthread = yes; then
8238 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8240 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8241 # be POSIX-compliant... :(
8242 if test $host_os_name = sunos; then
8243 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8254 # Check whether --enable-ssl was given.
8255 if test "${enable_ssl+set}" = set; then :
8256 enableval=$enable_ssl;
8259 # Check whether --enable-cdsassl was given.
8260 if test "${enable_cdsassl+set}" = set; then :
8261 enableval=$enable_cdsassl;
8264 # Check whether --enable-gnutls was given.
8265 if test "${enable_gnutls+set}" = set; then :
8266 enableval=$enable_gnutls;
8273 CUPS_SERVERKEYCHAIN=""
8275 if test x$enable_ssl != xno; then
8276 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8277 if test $host_os_name = darwin; then
8278 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8279 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8282 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8284 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8286 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8288 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8289 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8290 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8295 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8296 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8297 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8302 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8303 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8304 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8309 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8311 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8312 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8317 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8318 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8319 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8324 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8325 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8326 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8331 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8332 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8333 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8338 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8339 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8340 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8346 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8348 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8354 if test $host_os_version -ge 150; then
8355 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8361 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8362 if test -n "$ac_tool_prefix"; then
8363 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8364 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8368 $as_echo_n "(cached) " >&6
8370 case $LIBGNUTLSCONFIG in
8372 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 test -z "$as_dir" && as_dir=.
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8382 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8394 if test -n "$LIBGNUTLSCONFIG"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8396 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8404 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8405 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8406 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8407 set dummy libgnutls-config; ac_word=$2
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 $as_echo_n "checking for $ac_word... " >&6; }
8410 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8411 $as_echo_n "(cached) " >&6
8413 case $ac_pt_LIBGNUTLSCONFIG in
8415 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8425 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8437 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8439 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8445 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8448 case $cross_compiling:$ac_tool_warned in
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8452 ac_tool_warned=yes ;;
8454 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8457 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8460 if $PKGCONFIG --exists gnutls; then
8462 SSLLIBS=`$PKGCONFIG --libs gnutls`
8463 SSLFLAGS=`$PKGCONFIG --cflags gnutls`
8464 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8466 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8468 elif test "x$LIBGNUTLSCONFIG" != x; then
8470 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8471 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8472 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8474 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8478 if test $have_ssl = 1; then
8479 CUPS_SERVERKEYCHAIN="ssl"
8482 LIBS="$LIBS $SSLLIBS"
8483 ac_fn_c_check_func "$LINENO" "gnutls_fips140_set_mode" "ac_cv_func_gnutls_fips140_set_mode"
8484 if test "x$ac_cv_func_gnutls_fips140_set_mode" = xyes; then :
8485 $as_echo "#define HAVE_GNUTLS_FIPS140_SET_MODE 1" >>confdefs.h
8489 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8490 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8491 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8495 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8496 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8497 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8507 if test $have_ssl = 1; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8509 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8511 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8512 IPPALIASES="http https ipps"
8513 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8514 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8522 EXPORT_SSLLIBS="$SSLLIBS"
8526 # Check whether --enable-pam was given.
8527 if test "${enable_pam+set}" = set; then :
8528 enableval=$enable_pam;
8532 # Check whether --with-pam_module was given.
8533 if test "${with_pam_module+set}" = set; then :
8534 withval=$with_pam_module;
8541 PAMMOD="pam_unknown.so"
8542 PAMMODAUTH="pam_unknown.so"
8544 if test x$enable_pam != xno; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8548 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8549 if ${ac_cv_lib_dl_dlopen+:} false; then :
8550 $as_echo_n "(cached) " >&6
8552 ac_check_lib_save_LIBS=$LIBS
8554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h. */
8557 /* Override any GCC internal prototype to avoid an error.
8558 Use char because int might match the return type of a GCC
8559 builtin and then its argument prototype would still apply. */
8572 if ac_fn_c_try_link "$LINENO"; then :
8573 ac_cv_lib_dl_dlopen=yes
8575 ac_cv_lib_dl_dlopen=no
8577 rm -f core conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8579 LIBS=$ac_check_lib_save_LIBS
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8582 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8583 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8584 cat >>confdefs.h <<_ACEOF
8585 #define HAVE_LIBDL 1
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8593 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8594 if ${ac_cv_lib_pam_pam_start+:} false; then :
8595 $as_echo_n "(cached) " >&6
8597 ac_check_lib_save_LIBS=$LIBS
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8602 /* Override any GCC internal prototype to avoid an error.
8603 Use char because int might match the return type of a GCC
8604 builtin and then its argument prototype would still apply. */
8612 return pam_start ();
8617 if ac_fn_c_try_link "$LINENO"; then :
8618 ac_cv_lib_pam_pam_start=yes
8620 ac_cv_lib_pam_pam_start=no
8622 rm -f core conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
8624 LIBS=$ac_check_lib_save_LIBS
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8627 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8628 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8629 cat >>confdefs.h <<_ACEOF
8630 #define HAVE_LIBPAM 1
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8638 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8639 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8640 $as_echo_n "(cached) " >&6
8642 ac_check_lib_save_LIBS=$LIBS
8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h. */
8647 /* Override any GCC internal prototype to avoid an error.
8648 Use char because int might match the return type of a GCC
8649 builtin and then its argument prototype would still apply. */
8653 char pam_set_item ();
8657 return pam_set_item ();
8662 if ac_fn_c_try_link "$LINENO"; then :
8663 ac_cv_lib_pam_pam_set_item=yes
8665 ac_cv_lib_pam_pam_set_item=no
8667 rm -f core conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8669 LIBS=$ac_check_lib_save_LIBS
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8672 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8673 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8674 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8679 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8680 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8681 $as_echo_n "(cached) " >&6
8683 ac_check_lib_save_LIBS=$LIBS
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8688 /* Override any GCC internal prototype to avoid an error.
8689 Use char because int might match the return type of a GCC
8690 builtin and then its argument prototype would still apply. */
8694 char pam_setcred ();
8698 return pam_setcred ();
8703 if ac_fn_c_try_link "$LINENO"; then :
8704 ac_cv_lib_pam_pam_setcred=yes
8706 ac_cv_lib_pam_pam_setcred=no
8708 rm -f core conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8710 LIBS=$ac_check_lib_save_LIBS
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8713 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8714 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8715 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8719 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8720 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8725 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8726 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8727 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8728 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8735 if test x$ac_cv_lib_pam_pam_start != xno; then
8736 # Set the necessary libraries for PAM...
8737 if test x$ac_cv_lib_dl_dlopen != xno; then
8738 PAMLIBS="-lpam -ldl"
8743 # Find the PAM configuration directory, if any...
8744 for dir in /private/etc/pam.d /etc/pam.d; do
8745 if test -d $dir; then
8754 case "$host_os_name" in
8757 if test "x$with_pam_module" != x; then
8758 PAMFILE="pam.$with_pam_module"
8759 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8760 PAMFILE="pam.opendirectory"
8762 PAMFILE="pam.securityserver"
8767 # All others; this test might need to be updated
8768 # as Linux distributors move things around...
8769 if test "x$with_pam_module" != x; then
8770 PAMMOD="pam_${with_pam_module}.so"
8771 elif test -f /lib/security/pam_unix2.so; then
8772 PAMMOD="pam_unix2.so"
8773 elif test -f /lib/security/pam_unix.so; then
8774 PAMMOD="pam_unix.so"
8777 if test "x$PAMMOD" = xpam_unix.so; then
8778 PAMMODAUTH="$PAMMOD shadow nodelay"
8780 PAMMODAUTH="$PAMMOD nodelay"
8793 # Check whether --enable-largefile was given.
8794 if test "${enable_largefile+set}" = set; then :
8795 enableval=$enable_largefile;
8798 if test "$enable_largefile" != no; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8801 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8802 if ${ac_cv_sys_largefile_CC+:} false; then :
8803 $as_echo_n "(cached) " >&6
8805 ac_cv_sys_largefile_CC=no
8806 if test "$GCC" != yes; then
8809 # IRIX 6.2 and later do not support large files by default,
8810 # so use the C compiler's -n32 option if that helps.
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 #include <sys/types.h>
8814 /* Check that off_t can represent 2**63 - 1 correctly.
8815 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8816 since some C++ compilers masquerading as C compilers
8817 incorrectly reject 9223372036854775807. */
8818 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8819 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8820 && LARGE_OFF_T % 2147483647 == 1)
8830 if ac_fn_c_try_compile "$LINENO"; then :
8833 rm -f core conftest.err conftest.$ac_objext
8835 if ac_fn_c_try_compile "$LINENO"; then :
8836 ac_cv_sys_largefile_CC=' -n32'; break
8838 rm -f core conftest.err conftest.$ac_objext
8842 rm -f conftest.$ac_ext
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8846 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8847 if test "$ac_cv_sys_largefile_CC" != no; then
8848 CC=$CC$ac_cv_sys_largefile_CC
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8852 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8853 if ${ac_cv_sys_file_offset_bits+:} false; then :
8854 $as_echo_n "(cached) " >&6
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8859 #include <sys/types.h>
8860 /* Check that off_t can represent 2**63 - 1 correctly.
8861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8862 since some C++ compilers masquerading as C compilers
8863 incorrectly reject 9223372036854775807. */
8864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8866 && LARGE_OFF_T % 2147483647 == 1)
8876 if ac_fn_c_try_compile "$LINENO"; then :
8877 ac_cv_sys_file_offset_bits=no; break
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 #define _FILE_OFFSET_BITS 64
8883 #include <sys/types.h>
8884 /* Check that off_t can represent 2**63 - 1 correctly.
8885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8886 since some C++ compilers masquerading as C compilers
8887 incorrectly reject 9223372036854775807. */
8888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8890 && LARGE_OFF_T % 2147483647 == 1)
8900 if ac_fn_c_try_compile "$LINENO"; then :
8901 ac_cv_sys_file_offset_bits=64; break
8903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 ac_cv_sys_file_offset_bits=unknown
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8909 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8910 case $ac_cv_sys_file_offset_bits in #(
8913 cat >>confdefs.h <<_ACEOF
8914 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8919 if test $ac_cv_sys_file_offset_bits = unknown; then
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8921 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8922 if ${ac_cv_sys_large_files+:} false; then :
8923 $as_echo_n "(cached) " >&6
8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8928 #include <sys/types.h>
8929 /* Check that off_t can represent 2**63 - 1 correctly.
8930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8931 since some C++ compilers masquerading as C compilers
8932 incorrectly reject 9223372036854775807. */
8933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8935 && LARGE_OFF_T % 2147483647 == 1)
8945 if ac_fn_c_try_compile "$LINENO"; then :
8946 ac_cv_sys_large_files=no; break
8948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h. */
8951 #define _LARGE_FILES 1
8952 #include <sys/types.h>
8953 /* Check that off_t can represent 2**63 - 1 correctly.
8954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8955 since some C++ compilers masquerading as C compilers
8956 incorrectly reject 9223372036854775807. */
8957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8959 && LARGE_OFF_T % 2147483647 == 1)
8969 if ac_fn_c_try_compile "$LINENO"; then :
8970 ac_cv_sys_large_files=1; break
8972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973 ac_cv_sys_large_files=unknown
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8978 $as_echo "$ac_cv_sys_large_files" >&6; }
8979 case $ac_cv_sys_large_files in #(
8982 cat >>confdefs.h <<_ACEOF
8983 #define _LARGE_FILES $ac_cv_sys_large_files
8995 if test x$enable_largefile != xno; then
8996 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
8998 if test x$ac_cv_sys_large_files = x1; then
8999 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
9002 if test x$ac_cv_sys_file_offset_bits = x64; then
9003 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9009 $as_echo_n "checking for long long int... " >&6; }
9010 if ${ac_cv_c_long_long+:} false; then :
9011 $as_echo_n "(cached) " >&6
9013 if test "$GCC" = yes; then
9014 ac_cv_c_long_long=yes
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9027 if ac_fn_c_try_compile "$LINENO"; then :
9028 ac_cv_c_long_long=yes
9030 ac_cv_c_long_long=no
9032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9036 $as_echo "$ac_cv_c_long_long" >&6; }
9038 if test $ac_cv_c_long_long = yes; then
9039 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9043 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9044 if test "x$ac_cv_func_strtoll" = xyes; then :
9045 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9051 # Check whether --enable-avahi was given.
9052 if test "${enable_avahi+set}" = set; then :
9053 enableval=$enable_avahi;
9056 # Check whether --enable-dnssd was given.
9057 if test "${enable_dnssd+set}" = set; then :
9058 enableval=$enable_dnssd;
9062 # Check whether --with-dnssd-libs was given.
9063 if test "${with_dnssd_libs+set}" = set; then :
9064 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9065 DSOFLAGS="-L$withval $DSOFLAGS"
9069 # Check whether --with-dnssd-includes was given.
9070 if test "${with_dnssd_includes+set}" = set; then :
9071 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9072 CPPFLAGS="-I$withval $CPPFLAGS"
9081 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9083 $as_echo_n "checking for Avahi... " >&6; }
9084 if $PKGCONFIG --exists avahi-client; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9086 $as_echo "yes" >&6; }
9087 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`"
9088 DNSSDLIBS="`$PKGCONFIG --libs avahi-client`"
9089 DNSSD_BACKEND="dnssd"
9090 IPPFIND_BIN="ippfind"
9091 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9092 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096 $as_echo "no" >&6; }
9100 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9101 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9102 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9104 case "$host_os_name" in
9106 # Darwin and macOS...
9107 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9109 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9110 DNSSD_BACKEND="dnssd"
9111 IPPFIND_BIN="ippfind"
9112 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9117 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9119 LIBS="$LIBS -ldns_sd"
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9126 int constant = kDNSServiceFlagsShareConnection;
9127 unsigned char txtRecord[100];
9129 TXTRecordGetValuePtr(sizeof(txtRecord),
9130 txtRecord, "value", &valueLen);
9135 if ac_fn_c_try_compile "$LINENO"; then :
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9137 $as_echo "yes" >&6; }
9138 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9140 DNSSDLIBS="-ldns_sd"
9141 DNSSD_BACKEND="dnssd"
9143 IPPFIND_BIN="ippfind"
9144 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9169 # Check whether --enable-launchd was given.
9170 if test "${enable_launchd+set}" = set; then :
9171 enableval=$enable_launchd;
9177 if test x$enable_launchd != xno; then
9178 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9179 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9181 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9183 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9187 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9188 if test "x$ac_cv_header_launch_h" = xyes; then :
9189 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9195 if test "$host_os_name" = darwin; then
9196 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9197 # liblaunch is already part of libSystem
9201 # Check whether --enable-systemd was given.
9202 if test "${enable_systemd+set}" = set; then :
9203 enableval=$enable_systemd;
9207 # Check whether --with-systemd was given.
9208 if test "${with_systemd+set}" = set; then :
9209 withval=$with_systemd; SYSTEMD_DIR="$withval"
9216 if test x$enable_systemd != xno; then
9217 if test "x$PKGCONFIG" = x; then
9218 if test x$enable_systemd = xyes; then
9219 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9224 $as_echo_n "checking for libsystemd... " >&6; }
9225 if $PKGCONFIG --exists libsystemd; then
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9227 $as_echo "yes" >&6; }
9229 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd`
9230 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd`
9231 elif $PKGCONFIG --exists libsystemd-daemon; then
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9233 $as_echo "yes - legacy" >&6; }
9235 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon`
9236 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon`
9238 if $PKGCONFIG --exists libsystemd-journal; then
9239 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal`"
9240 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal`"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9247 if test $have_systemd = yes; then
9248 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9250 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9252 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9253 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9254 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9259 if test "x$SYSTEMD_DIR" = x; then
9260 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd`"
9266 # Check whether --enable-upstart was given.
9267 if test "${enable_upstart+set}" = set; then :
9268 enableval=$enable_upstart;
9271 if test "x$enable_upstart" = "xyes"; then
9272 if test "x$have_systemd" = "xyes"; then
9273 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9275 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9277 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9284 # Check whether --with-smfmanifestdir was given.
9285 if test "${with_smfmanifestdir+set}" = set; then :
9286 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9291 # Check whether --with-rcdir was given.
9292 if test "${with_rcdir+set}" = set; then :
9293 withval=$with_rcdir; rcdir="$withval"
9299 # Check whether --with-rclevels was given.
9300 if test "${with_rclevels+set}" = set; then :
9301 withval=$with_rclevels; rclevels="$withval"
9307 # Check whether --with-rcstart was given.
9308 if test "${with_rcstart+set}" = set; then :
9309 withval=$with_rcstart; rcstart="$withval"
9315 # Check whether --with-rcstop was given.
9316 if test "${with_rcstop+set}" = set; then :
9317 withval=$with_rcstop; rcstop="$withval"
9323 if test x$rcdir = x; then
9324 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9325 # Fall back on "init", the original service startup interface...
9326 if test -d /sbin/init.d; then
9328 rcdir="/sbin/init.d"
9329 elif test -d /etc/init.d; then
9341 if test "x$rcstart" = x; then
9342 case "$host_os_name" in
9360 if test "x$rcstop" = x; then
9361 case "$host_os_name" in
9376 RCLEVELS="$rclevels"
9385 if test "x$rcdir" != xno; then
9386 if test "x$rclevels" = x; then
9394 # Check whether --with-xinetd was given.
9395 if test "${with_xinetd+set}" = set; then :
9396 withval=$with_xinetd; xinetd="$withval"
9404 if test "x$xinetd" = x; then
9405 if test ! -x /sbin/launchd; then
9406 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9407 if test -d $dir; then
9413 elif test "x$xinetd" != xno; then
9418 LANGUAGES="`ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`"
9421 # Check whether --with-languages was given.
9422 if test "${with_languages+set}" = set; then :
9423 withval=$with_languages;
9425 none | no) LANGUAGES="" ;;
9427 *) LANGUAGES="$withval" ;;
9434 # Check whether --with-bundledir was given.
9435 if test "${with_bundledir+set}" = set; then :
9436 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9438 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9439 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9448 if test "x$CUPS_BUNDLEDIR" != x; then
9449 cat >>confdefs.h <<_ACEOF
9450 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9456 # Check whether --with-exe_file_perm was given.
9457 if test "${with_exe_file_perm+set}" = set; then :
9458 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9460 case "$host_os_name" in
9462 CUPS_EXE_FILE_PERM="755"
9465 CUPS_EXE_FILE_PERM="555"
9473 # Check whether --with-config_file_perm was given.
9474 if test "${with_config_file_perm+set}" = set; then :
9475 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9477 if test "x$host_os_name" = xdarwin; then
9478 CUPS_CONFIG_FILE_PERM="644"
9480 CUPS_CONFIG_FILE_PERM="640"
9485 cat >>confdefs.h <<_ACEOF
9486 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9491 # Check whether --with-cupsd_file_perm was given.
9492 if test "${with_cupsd_file_perm+set}" = set; then :
9493 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9495 case "$host_os_name" in
9497 CUPS_CUPSD_FILE_PERM="700"
9500 CUPS_CUPSD_FILE_PERM="500"
9508 # Check whether --with-log_file_perm was given.
9509 if test "${with_log_file_perm+set}" = set; then :
9510 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9512 CUPS_LOG_FILE_PERM="644"
9516 cat >>confdefs.h <<_ACEOF
9517 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9522 # Check whether --with-fatal_errors was given.
9523 if test "${with_fatal_errors+set}" = set; then :
9524 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9526 CUPS_FATAL_ERRORS="config"
9530 cat >>confdefs.h <<_ACEOF
9531 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9536 # Check whether --with-log_level was given.
9537 if test "${with_log_level+set}" = set; then :
9538 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9540 CUPS_LOG_LEVEL="warn"
9544 cat >>confdefs.h <<_ACEOF
9545 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9550 # Check whether --with-access_log_level was given.
9551 if test "${with_access_log_level+set}" = set; then :
9552 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9554 CUPS_ACCESS_LOG_LEVEL="none"
9558 cat >>confdefs.h <<_ACEOF
9559 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9563 # Check whether --enable-page_logging was given.
9564 if test "${enable_page_logging+set}" = set; then :
9565 enableval=$enable_page_logging;
9568 if test "x$enable_page_logging" = xyes; then
9569 CUPS_PAGE_LOG_FORMAT=""
9571 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9575 # Check whether --enable-browsing was given.
9576 if test "${enable_browsing+set}" = set; then :
9577 enableval=$enable_browsing;
9580 if test "x$enable_browsing" = xno; then
9582 cat >>confdefs.h <<_ACEOF
9583 #define CUPS_DEFAULT_BROWSING 0
9588 cat >>confdefs.h <<_ACEOF
9589 #define CUPS_DEFAULT_BROWSING 1
9596 # Check whether --with-local_protocols was given.
9597 if test "${with_local_protocols+set}" = set; then :
9598 withval=$with_local_protocols; default_local_protocols="$withval"
9600 default_local_protocols="default"
9604 if test x$with_local_protocols != xno; then
9605 if test "x$default_local_protocols" = "xdefault"; then
9606 if test "x$DNSSD_BACKEND" != "x"; then
9607 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9609 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9612 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9615 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9619 cat >>confdefs.h <<_ACEOF
9620 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9624 # Check whether --enable-default_shared was given.
9625 if test "${enable_default_shared+set}" = set; then :
9626 enableval=$enable_default_shared;
9629 if test "x$enable_default_shared" = xno; then
9630 CUPS_DEFAULT_SHARED="No"
9631 cat >>confdefs.h <<_ACEOF
9632 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9636 CUPS_DEFAULT_SHARED="Yes"
9637 cat >>confdefs.h <<_ACEOF
9638 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9645 # Check whether --with-cups_user was given.
9646 if test "${with_cups_user+set}" = set; then :
9647 withval=$with_cups_user; CUPS_USER="$withval"
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9650 $as_echo_n "checking for default print user... " >&6; }
9651 if test x$host_os_name = xdarwin; then
9652 if test x`id -u _lp 2>/dev/null` = x; then
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9658 $as_echo "$CUPS_USER" >&6; }
9659 elif test -f /etc/passwd; then
9661 for user in lp lpd guest daemon nobody; do
9662 if test "`grep \^${user}: /etc/passwd`" != ""; then
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9665 $as_echo "$user" >&6; }
9670 if test x$CUPS_USER = x; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9673 $as_echo "not found" >&6; }
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9678 $as_echo "no password file" >&6; }
9683 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9684 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9688 # Check whether --with-cups_group was given.
9689 if test "${with_cups_group+set}" = set; then :
9690 withval=$with_cups_group; CUPS_GROUP="$withval"
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9693 $as_echo_n "checking for default print group... " >&6; }
9694 if test x$host_os_name = xdarwin; then
9695 if test x`id -g _lp 2>/dev/null` = x; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9701 $as_echo "$CUPS_GROUP" >&6; }
9702 elif test -f /etc/group; then
9703 GROUP_LIST="_lp lp nobody"
9705 for group in $GROUP_LIST; do
9706 if test "`grep \^${group}: /etc/group`" != ""; then
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9709 $as_echo "$group" >&6; }
9714 if test x$CUPS_GROUP = x; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9717 $as_echo "not found" >&6; }
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9722 $as_echo "no group file" >&6; }
9727 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9728 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9732 # Check whether --with-system_groups was given.
9733 if test "${with_system_groups+set}" = set; then :
9734 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9736 if test x$host_os_name = xdarwin; then
9737 CUPS_SYSTEM_GROUPS="admin"
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9740 $as_echo_n "checking for default system groups... " >&6; }
9741 if test -f /etc/group; then
9742 CUPS_SYSTEM_GROUPS=""
9743 GROUP_LIST="lpadmin sys system root"
9744 for group in $GROUP_LIST; do
9745 if test "`grep \^${group}: /etc/group`" != ""; then
9746 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9747 CUPS_SYSTEM_GROUPS="$group"
9749 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9754 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9755 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9757 $as_echo "no groups found" >&6; }
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9760 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9763 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9765 $as_echo "no group file" >&6; }
9771 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS | awk '{print $1}'`"
9773 for group in $CUPS_SYSTEM_GROUPS; do
9774 if test "x$CUPS_GROUP" = "x$group"; then
9775 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9784 cat >>confdefs.h <<_ACEOF
9785 #define CUPS_DEFAULT_USER "$CUPS_USER"
9788 cat >>confdefs.h <<_ACEOF
9789 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9792 cat >>confdefs.h <<_ACEOF
9793 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9798 # Check whether --with-printcap was given.
9799 if test "${with_printcap+set}" = set; then :
9800 withval=$with_printcap; default_printcap="$withval"
9802 default_printcap="default"
9806 if test x$default_printcap != xno; then
9807 if test "x$default_printcap" = "xdefault"; then
9808 case $host_os_name in
9810 if test $host_os_version -ge 90; then
9811 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9813 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9817 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9820 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9824 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9827 CUPS_DEFAULT_PRINTCAP=""
9831 cat >>confdefs.h <<_ACEOF
9832 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9837 # Check whether --with-lpdconfigfile was given.
9838 if test "${with_lpdconfigfile+set}" = set; then :
9839 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9841 default_lpdconfigfile="default"
9845 if test x$default_lpdconfigfile != xno; then
9846 if test "x$default_lpdconfigfile" = "xdefault"; then
9847 case $host_os_name in
9849 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9852 if test "x$XINETD" != x; then
9853 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9855 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9860 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9863 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9866 cat >>confdefs.h <<_ACEOF
9867 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9873 # Check whether --with-smbconfigfile was given.
9874 if test "${with_smbconfigfile+set}" = set; then :
9875 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9877 default_smbconfigfile="default"
9881 if test x$default_smbconfigfile != xno; then
9882 if test "x$default_smbconfigfile" = "xdefault"; then
9883 if test -f /etc/smb.conf; then
9884 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9886 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9889 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9892 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9895 cat >>confdefs.h <<_ACEOF
9896 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9902 # Check whether --with-max-copies was given.
9903 if test "${with_max_copies+set}" = set; then :
9904 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9906 CUPS_MAX_COPIES="9999"
9911 cat >>confdefs.h <<_ACEOF
9912 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9916 # Check whether --enable-raw_printing was given.
9917 if test "${enable_raw_printing+set}" = set; then :
9918 enableval=$enable_raw_printing;
9921 if test "x$enable_raw_printing" != xno; then
9922 DEFAULT_RAW_PRINTING=""
9924 DEFAULT_RAW_PRINTING="#"
9929 # Check whether --with-snmp-address was given.
9930 if test "${with_snmp_address+set}" = set; then :
9931 withval=$with_snmp_address; if test "x$withval" = x; then
9932 CUPS_SNMP_ADDRESS=""
9934 CUPS_SNMP_ADDRESS="Address $withval"
9937 if test "x$host_os_name" = xdarwin; then
9938 CUPS_SNMP_ADDRESS=""
9940 CUPS_SNMP_ADDRESS="Address @LOCAL"
9946 # Check whether --with-snmp-community was given.
9947 if test "${with_snmp_community+set}" = set; then :
9948 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9950 CUPS_SNMP_COMMUNITY="Community public"
9958 # Check whether --with-ipp-port was given.
9959 if test "${with_ipp_port+set}" = set; then :
9960 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
9962 DEFAULT_IPP_PORT="631"
9967 cat >>confdefs.h <<_ACEOF
9968 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
9972 # Check whether --enable-webif was given.
9973 if test "${enable_webif+set}" = set; then :
9974 enableval=$enable_webif;
9977 case "x$enable_webif" in
9980 CUPS_DEFAULT_WEBIF=0
9984 CUPS_DEFAULT_WEBIF=1
9987 if test $host_os_name = darwin; then
9989 CUPS_DEFAULT_WEBIF=0
9992 CUPS_DEFAULT_WEBIF=1
9998 cat >>confdefs.h <<_ACEOF
9999 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
10005 # Check whether --with-java was given.
10006 if test "${with_java+set}" = set; then :
10007 withval=$with_java; CUPS_JAVA="$withval"
10013 if test "x$CUPS_JAVA" = xauto; then
10014 # Extract the first word of "java", so it can be a program name with args.
10015 set dummy java; ac_word=$2
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017 $as_echo_n "checking for $ac_word... " >&6; }
10018 if ${ac_cv_path_JAVA+:} false; then :
10019 $as_echo_n "(cached) " >&6
10023 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
10026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027 for as_dir in $PATH
10030 test -z "$as_dir" && as_dir=.
10031 for ac_exec_ext in '' $ac_executable_extensions; do
10032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10033 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
10034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10044 JAVA=$ac_cv_path_JAVA
10045 if test -n "$JAVA"; then
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
10047 $as_echo "$JAVA" >&6; }
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050 $as_echo "no" >&6; }
10055 elif test "x$CUPS_JAVA" = xno; then
10059 cat >>confdefs.h <<_ACEOF
10060 #define CUPS_JAVA "$CUPS_JAVA"
10064 if test "x$CUPS_JAVA" != x; then
10065 $as_echo "#define HAVE_JAVA 1" >>confdefs.h
10070 # Check whether --with-perl was given.
10071 if test "${with_perl+set}" = set; then :
10072 withval=$with_perl; CUPS_PERL="$withval"
10078 if test "x$CUPS_PERL" = xauto; then
10079 # Extract the first word of "perl", so it can be a program name with args.
10080 set dummy perl; ac_word=$2
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 $as_echo_n "checking for $ac_word... " >&6; }
10083 if ${ac_cv_path_PERL+:} false; then :
10084 $as_echo_n "(cached) " >&6
10088 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092 for as_dir in $PATH
10095 test -z "$as_dir" && as_dir=.
10096 for ac_exec_ext in '' $ac_executable_extensions; do
10097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10098 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10109 PERL=$ac_cv_path_PERL
10110 if test -n "$PERL"; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10112 $as_echo "$PERL" >&6; }
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10120 elif test "x$CUPS_PERL" = xno; then
10124 cat >>confdefs.h <<_ACEOF
10125 #define CUPS_PERL "$CUPS_PERL"
10129 if test "x$CUPS_PERL" != x; then
10130 $as_echo "#define HAVE_PERL 1" >>confdefs.h
10135 # Check whether --with-php was given.
10136 if test "${with_php+set}" = set; then :
10137 withval=$with_php; CUPS_PHP="$withval"
10143 if test "x$CUPS_PHP" = xauto; then
10144 # Extract the first word of "php-cgi", so it can be a program name with args.
10145 set dummy php-cgi; ac_word=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if ${ac_cv_path_PHPCGI+:} false; then :
10149 $as_echo_n "(cached) " >&6
10153 ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163 ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10174 PHPCGI=$ac_cv_path_PHPCGI
10175 if test -n "$PHPCGI"; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
10177 $as_echo "$PHPCGI" >&6; }
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10184 if test "x$PHPCGI" = x; then
10185 # Extract the first word of "php", so it can be a program name with args.
10186 set dummy php; ac_word=$2
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10188 $as_echo_n "checking for $ac_word... " >&6; }
10189 if ${ac_cv_path_PHP+:} false; then :
10190 $as_echo_n "(cached) " >&6
10194 ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
10197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198 for as_dir in $PATH
10201 test -z "$as_dir" && as_dir=.
10202 for ac_exec_ext in '' $ac_executable_extensions; do
10203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10204 ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
10205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10215 PHP=$ac_cv_path_PHP
10216 if test -n "$PHP"; then
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
10218 $as_echo "$PHP" >&6; }
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10229 elif test "x$CUPS_PHP" = xno; then
10233 cat >>confdefs.h <<_ACEOF
10234 #define CUPS_PHP "$CUPS_PHP"
10238 if test "x$CUPS_PHP" = x; then
10241 $as_echo "#define HAVE_PHP 1" >>confdefs.h
10246 # Check whether --with-python was given.
10247 if test "${with_python+set}" = set; then :
10248 withval=$with_python; CUPS_PYTHON="$withval"
10254 if test "x$CUPS_PYTHON" = xauto; then
10255 # Extract the first word of "python", so it can be a program name with args.
10256 set dummy python; ac_word=$2
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10258 $as_echo_n "checking for $ac_word... " >&6; }
10259 if ${ac_cv_path_PYTHON+:} false; then :
10260 $as_echo_n "(cached) " >&6
10264 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10274 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285 PYTHON=$ac_cv_path_PYTHON
10286 if test -n "$PYTHON"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10288 $as_echo "$PYTHON" >&6; }
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10295 CUPS_PYTHON="$PYTHON"
10296 elif test "x$CUPS_PYTHON" = xno; then
10300 cat >>confdefs.h <<_ACEOF
10301 #define CUPS_PYTHON "$CUPS_PYTHON"
10305 if test "x$CUPS_PYTHON" != x; then
10306 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10311 INSTALL_LANGUAGES=""
10312 UNINSTALL_LANGUAGES=""
10314 if test "x$LANGUAGES" != x; then
10315 INSTALL_LANGUAGES="install-languages"
10316 UNINSTALL_LANGUAGES="uninstall-languages"
10317 for lang in $LANGUAGES; do
10318 if test -f doc/$lang/index.html.in; then
10319 LANGFILES="$LANGFILES doc/$lang/index.html"
10322 if test -f templates/$lang/header.tmpl.in; then
10323 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10326 elif test "x$CUPS_BUNDLEDIR" != x; then
10327 INSTALL_LANGUAGES="install-langbundle"
10328 UNINSTALL_LANGUAGES="uninstall-langbundle"
10334 ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config desktop/cups.desktop doc/index.html man/client.conf.man man/cups-files.conf.man man/cups-lpd.man man/cups-snmp.man man/cupsaddsmb.man man/cupsd.conf.man man/cupsd.man man/lpoptions.man scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/org.cups.cups-lpdAT.service scheduler/org.cups.cupsd.path scheduler/org.cups.cupsd.service scheduler/org.cups.cupsd.socket templates/header.tmpl packaging/cups.list $LANGFILES"
10336 cat >confcache <<\_ACEOF
10337 # This file is a shell script that caches the results of configure
10338 # tests run on this system so they can be shared between configure
10339 # scripts and configure runs, see configure's option --config-cache.
10340 # It is not useful on other systems. If it contains results you don't
10341 # want to keep, you may remove or edit it.
10343 # config.status only pays attention to the cache file if you give it
10344 # the --recheck option to rerun configure.
10346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10348 # following values.
10352 # The following way of writing the cache mishandles newlines in values,
10353 # but we know of no workaround that is simple, portable, and efficient.
10354 # So, we kill variables containing newlines.
10355 # Ultrix sh set writes to stderr and can't be redirected directly,
10356 # and sets the high bit in the cache file unless we assign to the vars.
10358 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10359 eval ac_val=\$$ac_var
10363 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10367 _ | IFS | as_nl) ;; #(
10368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10369 *) { eval $ac_var=; unset $ac_var;} ;;
10375 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10376 *${as_nl}ac_space=\ *)
10377 # `set' does not quote correctly, so add quotes: double-quote
10378 # substitution turns \\\\ into \\, and sed turns \\ into \.
10381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10384 # `set' quotes correctly as required by POSIX, so do not add quotes.
10385 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10394 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10396 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10398 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10399 if test -w "$cache_file"; then
10400 if test "x$cache_file" != "x/dev/null"; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10402 $as_echo "$as_me: updating cache $cache_file" >&6;}
10403 if test ! -f "$cache_file" || test -h "$cache_file"; then
10404 cat confcache >"$cache_file"
10406 case $cache_file in #(
10408 mv -f confcache "$cache_file"$$ &&
10409 mv -f "$cache_file"$$ "$cache_file" ;; #(
10411 mv -f confcache "$cache_file" ;;
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10417 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10422 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10423 # Let make expand exec_prefix.
10424 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10426 DEFS=-DHAVE_CONFIG_H
10431 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10432 # 1. Remove the extension, and $U if already installed.
10433 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10434 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10435 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10436 # will be set to the directory where LIBOBJS objects are built.
10437 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10438 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10440 LIBOBJS=$ac_libobjs
10442 LTLIBOBJS=$ac_ltlibobjs
10446 : "${CONFIG_STATUS=./config.status}"
10448 ac_clean_files_save=$ac_clean_files
10449 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10451 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10453 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10455 # Generated by $as_me.
10456 # Run this file to recreate the current configuration.
10457 # Compiler output produced by configure, useful for debugging
10458 # configure, is in config.log if it exists.
10461 ac_cs_recheck=false
10464 SHELL=\${CONFIG_SHELL-$SHELL}
10467 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10468 ## -------------------- ##
10469 ## M4sh Initialization. ##
10470 ## -------------------- ##
10472 # Be more Bourne compatible
10473 DUALCASE=1; export DUALCASE # for MKS sh
10474 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10477 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10478 # is contrary to our usage. Disable this feature.
10479 alias -g '${1+"$@"}'='"$@"'
10480 setopt NO_GLOB_SUBST
10482 case `(set -o) 2>/dev/null` in #(
10494 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10495 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10496 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10497 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10498 # Prefer a ksh shell builtin over an external printf program on Solaris,
10499 # but without wasting forks for bash or zsh.
10500 if test -z "$BASH_VERSION$ZSH_VERSION" \
10501 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10502 as_echo='print -r --'
10503 as_echo_n='print -rn --'
10504 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10505 as_echo='printf %s\n'
10506 as_echo_n='printf %s'
10508 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10509 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10510 as_echo_n='/usr/ucb/echo -n'
10512 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10513 as_echo_n_body='eval
10517 expr "X$arg" : "X\\(.*\\)$as_nl";
10518 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10520 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10522 export as_echo_n_body
10523 as_echo_n='sh -c $as_echo_n_body as_echo'
10525 export as_echo_body
10526 as_echo='sh -c $as_echo_body as_echo'
10529 # The user is always right.
10530 if test "${PATH_SEPARATOR+set}" != set; then
10532 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10533 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10540 # We need space, tab and new line, in precisely that order. Quoting is
10541 # there to prevent editors from complaining about space-tab.
10542 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10543 # splitting by setting IFS to empty value.)
10546 # Find who we are. Look in the path if we contain no directory separator.
10549 *[\\/]* ) as_myself=$0 ;;
10550 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551 for as_dir in $PATH
10554 test -z "$as_dir" && as_dir=.
10555 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10561 # We did not find ourselves, most probably we were run as `sh COMMAND'
10562 # in which case we are not to be found in the path.
10563 if test "x$as_myself" = x; then
10566 if test ! -f "$as_myself"; then
10567 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10571 # Unset variables that we do not need and which cause bugs (e.g. in
10572 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10573 # suppresses any "Segmentation fault" message there. '((' could
10574 # trigger a bug in pdksh 5.2.14.
10575 for as_var in BASH_ENV ENV MAIL MAILPATH
10576 do eval test x\${$as_var+set} = xset \
10577 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10593 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10594 # ----------------------------------------
10595 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10596 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10597 # script with STATUS, using 1 if that was 0.
10600 as_status=$1; test $as_status -eq 0 && as_status=1
10602 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10603 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10605 $as_echo "$as_me: error: $2" >&2
10606 as_fn_exit $as_status
10610 # as_fn_set_status STATUS
10611 # -----------------------
10612 # Set $? to STATUS, without forking.
10613 as_fn_set_status ()
10616 } # as_fn_set_status
10618 # as_fn_exit STATUS
10619 # -----------------
10620 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10624 as_fn_set_status $1
10630 # Portably unset VAR.
10633 { eval $1=; unset $1;}
10635 as_unset=as_fn_unset
10636 # as_fn_append VAR VALUE
10637 # ----------------------
10638 # Append the text in VALUE to the end of the definition contained in VAR. Take
10639 # advantage of any shell optimizations that allow amortized linear growth over
10640 # repeated appends, instead of the typical quadratic growth present in naive
10642 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10643 eval 'as_fn_append ()
10654 # as_fn_arith ARG...
10655 # ------------------
10656 # Perform arithmetic evaluation on the ARGs, and store the result in the
10657 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10658 # must be portable across $(()) and expr.
10659 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10660 eval 'as_fn_arith ()
10667 as_val=`expr "$@" || test $? -eq 1`
10672 if expr a : '\(a\)' >/dev/null 2>&1 &&
10673 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10679 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10680 as_basename=basename
10685 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10691 as_me=`$as_basename -- "$0" ||
10692 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10693 X"$0" : 'X\(//\)$' \| \
10694 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10696 sed '/^.*\/\([^/][^/]*\)\/*$/{
10710 # Avoid depending upon Character Ranges.
10711 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10712 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10713 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10714 as_cr_digits='0123456789'
10715 as_cr_alnum=$as_cr_Letters$as_cr_digits
10717 ECHO_C= ECHO_N= ECHO_T=
10718 case `echo -n x` in #(((((
10720 case `echo 'xy\c'` in
10721 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10723 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10730 rm -f conf$$ conf$$.exe conf$$.file
10731 if test -d conf$$.dir; then
10732 rm -f conf$$.dir/conf$$.file
10735 mkdir conf$$.dir 2>/dev/null
10737 if (echo >conf$$.file) 2>/dev/null; then
10738 if ln -s conf$$.file conf$$ 2>/dev/null; then
10740 # ... but there are two gotchas:
10741 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10742 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10743 # In both cases, we have to default to `cp -pR'.
10744 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10746 elif ln conf$$.file conf$$ 2>/dev/null; then
10754 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10755 rmdir conf$$.dir 2>/dev/null
10760 # Create "$as_dir" as a directory, including parents if necessary.
10765 -*) as_dir=./$as_dir;;
10767 test -d "$as_dir" || eval $as_mkdir_p || {
10771 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10772 *) as_qdir=$as_dir;;
10774 as_dirs="'$as_qdir' $as_dirs"
10775 as_dir=`$as_dirname -- "$as_dir" ||
10776 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10777 X"$as_dir" : 'X\(//\)[^/]' \| \
10778 X"$as_dir" : 'X\(//\)$' \| \
10779 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10780 $as_echo X"$as_dir" |
10781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10785 /^X\(\/\/\)[^/].*/{
10798 test -d "$as_dir" && break
10800 test -z "$as_dirs" || eval "mkdir $as_dirs"
10801 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10805 if mkdir -p . 2>/dev/null; then
10806 as_mkdir_p='mkdir -p "$as_dir"'
10808 test -d ./-p && rmdir ./-p
10813 # as_fn_executable_p FILE
10814 # -----------------------
10815 # Test if FILE is an executable regular file.
10816 as_fn_executable_p ()
10818 test -f "$1" && test -x "$1"
10819 } # as_fn_executable_p
10820 as_test_x='test -x'
10821 as_executable_p=as_fn_executable_p
10823 # Sed expression to map a string onto a valid CPP name.
10824 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10826 # Sed expression to map a string onto a valid variable name.
10827 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10831 ## ----------------------------------- ##
10832 ## Main body of $CONFIG_STATUS script. ##
10833 ## ----------------------------------- ##
10835 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10838 # Save the log message, to keep $0 and so on meaningful, and to
10839 # report actual input values of CONFIG_FILES etc. instead of their
10840 # values after options handling.
10842 This file was extended by CUPS $as_me 2.2.13, which was
10843 generated by GNU Autoconf 2.69. Invocation command line was
10845 CONFIG_FILES = $CONFIG_FILES
10846 CONFIG_HEADERS = $CONFIG_HEADERS
10847 CONFIG_LINKS = $CONFIG_LINKS
10848 CONFIG_COMMANDS = $CONFIG_COMMANDS
10851 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10856 case $ac_config_files in *"
10857 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10860 case $ac_config_headers in *"
10861 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10866 # Files that config.status was made for.
10867 config_files="$ac_config_files"
10868 config_headers="$ac_config_headers"
10872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10874 \`$as_me' instantiates files and other configuration actions
10875 from templates according to the current configuration. Unless the files
10876 and actions are specified as TAGs, all are instantiated by default.
10878 Usage: $0 [OPTION]... [TAG]...
10880 -h, --help print this help, then exit
10881 -V, --version print version number and configuration settings, then exit
10882 --config print configuration, then exit
10883 -q, --quiet, --silent
10884 do not print progress messages
10885 -d, --debug don't remove temporary files
10886 --recheck update $as_me by reconfiguring in the same conditions
10887 --file=FILE[:TEMPLATE]
10888 instantiate the configuration file FILE
10889 --header=FILE[:TEMPLATE]
10890 instantiate the configuration header FILE
10892 Configuration files:
10895 Configuration headers:
10898 Report bugs to <https://github.com/apple/cups/issues>.
10899 CUPS home page: <https://www.cups.org/>."
10902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10903 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10905 CUPS config.status 2.2.13
10906 configured by $0, generated by GNU Autoconf 2.69,
10907 with options \\"\$ac_cs_config\\"
10909 Copyright (C) 2012 Free Software Foundation, Inc.
10910 This config.status script is free software; the Free Software Foundation
10911 gives unlimited permission to copy, distribute and modify it."
10916 test -n "\$AWK" || AWK=awk
10919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10920 # The default lists apply if the user does not specify any file.
10926 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10927 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10943 # Handling of the options.
10944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10946 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10947 $as_echo "$ac_cs_version"; exit ;;
10948 --config | --confi | --conf | --con | --co | --c )
10949 $as_echo "$ac_cs_config"; exit ;;
10950 --debug | --debu | --deb | --de | --d | -d )
10952 --file | --fil | --fi | --f )
10955 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10956 '') as_fn_error $? "missing file argument" ;;
10958 as_fn_append CONFIG_FILES " '$ac_optarg'"
10959 ac_need_defaults=false;;
10960 --header | --heade | --head | --hea )
10963 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10965 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10966 ac_need_defaults=false;;
10968 # Conflict between --help and --header
10969 as_fn_error $? "ambiguous option: \`$1'
10970 Try \`$0 --help' for more information.";;
10971 --help | --hel | -h )
10972 $as_echo "$ac_cs_usage"; exit ;;
10973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10974 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10977 # This is an error.
10978 -*) as_fn_error $? "unrecognized option: \`$1'
10979 Try \`$0 --help' for more information." ;;
10981 *) as_fn_append ac_config_targets " $1"
10982 ac_need_defaults=false ;;
10988 ac_configure_extra_args=
10990 if $ac_cs_silent; then
10992 ac_configure_extra_args="$ac_configure_extra_args --silent"
10996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10997 if \$ac_cs_recheck; then
10998 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11000 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11001 CONFIG_SHELL='$SHELL'
11002 export CONFIG_SHELL
11007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11011 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11012 ## Running $as_me. ##
11018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11023 # Handling of arguments.
11024 for ac_config_target in $ac_config_targets
11026 case $ac_config_target in
11027 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11028 "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;;
11029 "conf/cups-files.conf") CONFIG_FILES="$CONFIG_FILES conf/cups-files.conf" ;;
11030 "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;;
11031 "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;;
11032 "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;;
11033 "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;;
11034 "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;;
11035 "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;;
11036 "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;;
11037 "man/client.conf.man") CONFIG_FILES="$CONFIG_FILES man/client.conf.man" ;;
11038 "man/cups-files.conf.man") CONFIG_FILES="$CONFIG_FILES man/cups-files.conf.man" ;;
11039 "man/cups-lpd.man") CONFIG_FILES="$CONFIG_FILES man/cups-lpd.man" ;;
11040 "man/cups-snmp.man") CONFIG_FILES="$CONFIG_FILES man/cups-snmp.man" ;;
11041 "man/cupsaddsmb.man") CONFIG_FILES="$CONFIG_FILES man/cupsaddsmb.man" ;;
11042 "man/cupsd.conf.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.conf.man" ;;
11043 "man/cupsd.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.man" ;;
11044 "man/lpoptions.man") CONFIG_FILES="$CONFIG_FILES man/lpoptions.man" ;;
11045 "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
11046 "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;;
11047 "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;;
11048 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
11049 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
11050 "scheduler/org.cups.cupsd.path") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
11051 "scheduler/org.cups.cupsd.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
11052 "scheduler/org.cups.cupsd.socket") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
11053 "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;;
11054 "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;;
11055 "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;;
11057 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11062 # If the user did not use the arguments to specify the items to instantiate,
11063 # then the envvar interface is used. Set only those that are not.
11064 # We use the long form for the default assignment because of an extremely
11065 # bizarre bug on SunOS 4.1.3.
11066 if $ac_need_defaults; then
11067 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11068 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11071 # Have a temporary directory for convenience. Make it in the build tree
11072 # simply because there is no reason against having it here, and in addition,
11073 # creating and moving files from /tmp can sometimes cause problems.
11074 # Hook for its removal unless debugging.
11075 # Note that there is a small window in which the directory will not be cleaned:
11076 # after its creation but before its name has been assigned to `$tmp'.
11080 trap 'exit_status=$?
11081 : "${ac_tmp:=$tmp}"
11082 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11084 trap 'as_fn_exit 1' 1 2 13 15
11086 # Create a (secure) tmp directory for tmp files.
11089 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11093 tmp=./conf$$-$RANDOM
11094 (umask 077 && mkdir "$tmp")
11095 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11098 # Set up the scripts for CONFIG_FILES section.
11099 # No need to generate them if there are no CONFIG_FILES.
11100 # This happens for instance with `./config.status config.h'.
11101 if test -n "$CONFIG_FILES"; then
11104 ac_cr=`echo X | tr X '\015'`
11105 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11106 # But we know of no other shell where ac_cr would be empty at this
11107 # point, so we can use a bashism as a fallback.
11108 if test "x$ac_cr" = x; then
11109 eval ac_cr=\$\'\\r\'
11111 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11112 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11115 ac_cs_awk_cr=$ac_cr
11118 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11123 echo "cat >conf$$subs.awk <<_ACEOF" &&
11124 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11126 } >conf$$subs.sh ||
11127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11128 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11130 for ac_last_try in false false false false false :; do
11131 . ./conf$$subs.sh ||
11132 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11134 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11135 if test $ac_delim_n = $ac_delim_num; then
11137 elif $ac_last_try; then
11138 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11143 rm -f conf$$subs.sh
11145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11146 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11150 s/^/S["/; s/!.*/"]=/
11160 s/\(.\{148\}\)..*/\1/
11162 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11167 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11174 s/\(.\{148\}\)..*/\1/
11176 s/["\\]/\\&/g; s/^/"/; s/$/"/
11180 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11185 ' <conf$$subs.awk | sed '
11190 ' >>$CONFIG_STATUS || ac_write_fail=1
11191 rm -f conf$$subs.awk
11192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11194 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11195 for (key in S) S_is_set[key] = 1
11201 nfields = split(line, field, "@")
11203 len = length(field[1])
11204 for (i = 2; i < nfields; i++) {
11206 keylen = length(key)
11207 if (S_is_set[key]) {
11209 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11210 len += length(value) + length(field[++i])
11221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11222 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11223 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11226 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11227 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11230 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11231 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11232 # trailing colons and then remove the whole line if VPATH becomes empty
11233 # (actually we leave an empty line to preserve line numbers).
11234 if test "x$srcdir" = x.; then
11235 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11254 fi # test -n "$CONFIG_FILES"
11256 # Set up the scripts for CONFIG_HEADERS section.
11257 # No need to generate them if there are no CONFIG_HEADERS.
11258 # This happens for instance with `./config.status Makefile'.
11259 if test -n "$CONFIG_HEADERS"; then
11260 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11264 # Transform confdefs.h into an awk script `defines.awk', embedded as
11265 # here-document in config.status, that substitutes the proper values into
11266 # config.h.in to produce config.h.
11268 # Create a delimiter string that does not exist in confdefs.h, to ease
11269 # handling of long lines.
11271 for ac_last_try in false false :; do
11272 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11273 if test -z "$ac_tt"; then
11275 elif $ac_last_try; then
11276 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11278 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11282 # For the awk script, D is an array of macro values keyed by name,
11283 # likewise P contains macro parameters if any. Preserve backslash
11284 # newline sequences.
11286 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11288 s/.\{148\}/&'"$ac_delim"'/g
11291 s/^[ ]*#[ ]*define[ ][ ]*/ /
11298 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11300 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11304 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11305 D["\1"]=" \3\\\\\\n"\\/p
11307 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11312 s/.\{148\}/&'"$ac_delim"'/g
11317 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11320 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11322 ' <confdefs.h | sed '
11323 s/'"$ac_delim"'/"\\\
11324 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11327 for (key in D) D_is_set[key] = 1
11330 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11332 split(line, arg, " ")
11333 if (arg[1] == "#") {
11337 defundef = substr(arg[1], 2)
11340 split(mac1, mac2, "(") #)
11342 prefix = substr(line, 1, index(line, defundef) - 1)
11343 if (D_is_set[macro]) {
11344 # Preserve the white space surrounding the "#".
11345 print prefix "define", macro P[macro] D[macro]
11348 # Replace #undef with comments. This is necessary, for example,
11349 # in the case of _POSIX_SOURCE, which is predefined and required
11350 # on some systems where configure will not decide to define it.
11351 if (defundef == "undef") {
11352 print "/*", prefix defundef, macro, "*/"
11360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11361 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11362 fi # test -n "$CONFIG_HEADERS"
11365 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11370 :[FHLC]) ac_mode=$ac_tag; continue;;
11372 case $ac_mode$ac_tag in
11374 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11375 :[FH]-) ac_tag=-:-;;
11376 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11393 -) ac_f="$ac_tmp/stdin";;
11394 *) # Look for the file first in the build tree, then in the source tree
11395 # (if the path is not absolute). The absolute path cannot be DOS-style,
11396 # because $ac_f cannot contain `:'.
11400 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11402 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11404 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11405 as_fn_append ac_file_inputs " '$ac_f'"
11408 # Let's still pretend it is `configure' which instantiates (i.e., don't
11409 # use $as_me), people would be surprised to read:
11410 # /* config.h. Generated by config.status. */
11411 configure_input='Generated from '`
11412 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11414 if test x"$ac_file" != x-; then
11415 configure_input="$ac_file. $configure_input"
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11417 $as_echo "$as_me: creating $ac_file" >&6;}
11419 # Neutralize special characters interpreted by sed in replacement strings.
11420 case $configure_input in #(
11421 *\&* | *\|* | *\\* )
11422 ac_sed_conf_input=`$as_echo "$configure_input" |
11423 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11424 *) ac_sed_conf_input=$configure_input;;
11428 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11429 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11434 ac_dir=`$as_dirname -- "$ac_file" ||
11435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11436 X"$ac_file" : 'X\(//\)[^/]' \| \
11437 X"$ac_file" : 'X\(//\)$' \| \
11438 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11439 $as_echo X"$ac_file" |
11440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11444 /^X\(\/\/\)[^/].*/{
11457 as_dir="$ac_dir"; as_fn_mkdir_p
11461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11464 # A ".." for each directory in $ac_dir_suffix.
11465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11466 case $ac_top_builddir_sub in
11467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11471 ac_abs_top_builddir=$ac_pwd
11472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11473 # for backward compatibility:
11474 ac_top_builddir=$ac_top_build_prefix
11477 .) # We are building in place.
11479 ac_top_srcdir=$ac_top_builddir_sub
11480 ac_abs_top_srcdir=$ac_pwd ;;
11481 [\\/]* | ?:[\\/]* ) # Absolute name.
11482 ac_srcdir=$srcdir$ac_dir_suffix;
11483 ac_top_srcdir=$srcdir
11484 ac_abs_top_srcdir=$srcdir ;;
11485 *) # Relative name.
11486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11487 ac_top_srcdir=$ac_top_build_prefix$srcdir
11488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11502 # If the template does not know about datarootdir, expand it.
11503 # FIXME: This hack should be removed a few years after 2.60.
11504 ac_datarootdir_hack=; ac_datarootdir_seen=
11515 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11516 *datarootdir*) ac_datarootdir_seen=yes;;
11517 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11519 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11522 ac_datarootdir_hack='
11523 s&@datadir@&$datadir&g
11524 s&@docdir@&$docdir&g
11525 s&@infodir@&$infodir&g
11526 s&@localedir@&$localedir&g
11527 s&@mandir@&$mandir&g
11528 s&\\\${datarootdir}&$datarootdir&g' ;;
11532 # Neutralize VPATH when `$srcdir' = `.'.
11533 # Shell code in configure.ac might set extrasub.
11534 # FIXME: do we really want to maintain this feature?
11535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11536 ac_sed_extra="$ac_vpsub
11539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11541 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11542 s|@configure_input@|$ac_sed_conf_input|;t t
11543 s&@top_builddir@&$ac_top_builddir_sub&;t t
11544 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11545 s&@srcdir@&$ac_srcdir&;t t
11546 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11547 s&@top_srcdir@&$ac_top_srcdir&;t t
11548 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11549 s&@builddir@&$ac_builddir&;t t
11550 s&@abs_builddir@&$ac_abs_builddir&;t t
11551 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11552 $ac_datarootdir_hack
11554 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11555 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11557 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11558 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11560 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11562 which seems to be undefined. Please make sure it is defined" >&5
11563 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11564 which seems to be undefined. Please make sure it is defined" >&2;}
11566 rm -f "$ac_tmp/stdin"
11568 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11569 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11577 if test x"$ac_file" != x-; then
11579 $as_echo "/* $configure_input */" \
11580 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11581 } >"$ac_tmp/config.h" \
11582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11583 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11585 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11588 mv "$ac_tmp/config.h" "$ac_file" \
11589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11592 $as_echo "/* $configure_input */" \
11593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11594 || as_fn_error $? "could not create -" "$LINENO" 5
11606 ac_clean_files=$ac_clean_files_save
11608 test $ac_write_fail = 0 ||
11609 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11612 # configure is writing to config.log, and then calls config.status.
11613 # config.status does its own redirection, appending to config.log.
11614 # Unfortunately, on DOS this fails, as config.log is still kept open
11615 # by configure, so config.status won't be able to write to it; its
11616 # output is simply discarded. So we exec the FD to /dev/null,
11617 # effectively closing config.log, so it can be properly (re)opened and
11618 # appended to by config.status. When coming back to configure, we
11619 # need to make the FD available again.
11620 if test "$no_create" != yes; then
11622 ac_config_status_args=
11623 test "$silent" = yes &&
11624 ac_config_status_args="$ac_config_status_args --quiet"
11626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11629 # would make configure fail if this is the last instruction.
11630 $ac_cs_success || as_fn_exit 1
11632 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11634 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11638 chmod +x cups-config