2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
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 if test "x$CONFIG_SHELL" = x
; then
138 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required
="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev
/null
; then :
181 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
186 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir
=.
193 for as_base
in sh bash ksh sh5
; do
194 # Try only shells that exist, to save several forks.
195 as_shell
=$as_dir/$as_base
196 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
198 CONFIG_SHELL
=$as_shell as_have_required
=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
207 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
209 CONFIG_SHELL
=$SHELL as_have_required
=yes
214 if test "x$CONFIG_SHELL" != x
; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
224 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE
= GREP_OPTIONS
=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir
=.
/$as_dir;;
293 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
297 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs
="'$as_qdir' $as_dirs"
301 as_dir
=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
327 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
362 as_val
=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status
=$1; test $as_status -eq 0 && as_status
=1
376 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit
$as_status
383 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
390 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
402 as_me
=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits
='0123456789'
426 as_cr_alnum
=$as_cr_Letters$as_cr_digits
429 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
430 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x
"$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C
= ECHO_N
= ECHO_T
=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
473 rm -f conf$$ conf$$.exe conf$$.
file
474 if test -d conf$$.dir
; then
475 rm -f conf$$.dir
/conf$$.
file
478 mkdir conf$$.dir
2>/dev
/null
480 if (echo >conf$$.
file) 2>/dev
/null
; then
481 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
489 elif ln conf$$.
file conf$$
2>/dev
/null
; then
497 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
498 rmdir conf$$.dir
2>/dev
/null
500 if mkdir
-p .
2>/dev
/null
; then
501 as_mkdir_p
='mkdir -p "$as_dir"'
503 test -d .
/-p && rmdir .
/-p
507 if test -x / >/dev
/null
2>&1; then
510 if ls -dL / >/dev
/null
2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p
=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix
=/usr
/local
550 ac_config_libobj_dir
=.
557 # Identity of this package.
565 ac_unique_file
="cups/cups.h"
566 # Factoring default headers for most tests.
567 ac_includes_default
="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
603 ac_subst_vars
='LTLIBOBJS
618 CUPS_DEFAULT_SMB_CONFIG_FILE
619 CUPS_DEFAULT_LPD_CONFIG_FILE
620 CUPS_DEFAULT_PRINTCAP
621 CUPS_PRIMARY_SYSTEM_GROUP
626 CUPS_BROWSE_LOCAL_PROTOCOLS
628 CUPS_ACCESS_LOG_LEVEL
633 CUPS_CONFIG_FILE_PERM
657 CUPS_DEFAULT_GSSSERVICENAME
660 CUPS_LISTEN_DOMAINSOCKET
661 CUPS_DEFAULT_DOMAINSOCKET
720 CUPS_DEFAULT_PRINTOPERATOR_AUTH
794 program_transform_name
807 enable_option_checking
837 enable_libtool_unsupported
855 with_openssl_includes
866 with_config_file_perm
871 with_access_log_level
874 enable_default_shared
892 ac_precious_vars
='build_alias
906 # Initialize some variables set by options.
908 ac_init_version
=false
909 ac_unrecognized_opts
=
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
920 program_transform_name
=s
,x
,x
,
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir
='${exec_prefix}/bin'
935 sbindir
='${exec_prefix}/sbin'
936 libexecdir
='${exec_prefix}/libexec'
937 datarootdir
='${prefix}/share'
938 datadir
='${datarootdir}'
939 sysconfdir
='${prefix}/etc'
940 sharedstatedir
='${prefix}/com'
941 localstatedir
='${prefix}/var'
942 includedir
='${prefix}/include'
943 oldincludedir
='/usr/include'
944 docdir
='${datarootdir}/doc/${PACKAGE}'
945 infodir
='${datarootdir}/info'
950 libdir
='${exec_prefix}/lib'
951 localedir
='${datarootdir}/locale'
952 mandir
='${datarootdir}/man'
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
960 eval $ac_prev=\
$ac_option
966 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971 # Accept the important Cygnus configure options, so we can diagnose typos.
973 case $ac_dashdash$ac_option in
977 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
979 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
982 -build |
--build |
--buil |
--bui |
--bu)
983 ac_prev
=build_alias
;;
984 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
985 build_alias
=$ac_optarg ;;
987 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
988 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
989 ac_prev
=cache_file
;;
990 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
991 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
992 cache_file
=$ac_optarg ;;
995 cache_file
=config.cache
;;
997 -datadir |
--datadir |
--datadi |
--datad)
999 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1000 datadir
=$ac_optarg ;;
1002 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1003 |
--dataroo |
--dataro |
--datar)
1004 ac_prev
=datarootdir
;;
1005 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1006 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1007 datarootdir
=$ac_optarg ;;
1009 -disable-* |
--disable-*)
1010 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1013 as_fn_error $?
"invalid feature name: $ac_useropt"
1014 ac_useropt_orig
=$ac_useropt
1015 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_
$ac_useropt"
1020 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep
=', ';;
1023 eval enable_
$ac_useropt=no
;;
1025 -docdir |
--docdir |
--docdi |
--doc |
--do)
1027 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1028 docdir
=$ac_optarg ;;
1030 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1032 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1033 dvidir
=$ac_optarg ;;
1035 -enable-* |
--enable-*)
1036 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1039 as_fn_error $?
"invalid feature name: $ac_useropt"
1040 ac_useropt_orig
=$ac_useropt
1041 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1044 "enable_
$ac_useropt"
1046 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep
=', ';;
1049 eval enable_
$ac_useropt=\
$ac_optarg ;;
1051 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1052 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1053 |
--exec |
--exe |
--ex)
1054 ac_prev
=exec_prefix
;;
1055 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1056 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1057 |
--exec=* |
--exe=* |
--ex=*)
1058 exec_prefix
=$ac_optarg ;;
1060 -gas |
--gas |
--ga |
--g)
1061 # Obsolete; use --with-gas.
1064 -help |
--help |
--hel |
--he |
-h)
1065 ac_init_help
=long
;;
1066 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1067 ac_init_help
=recursive
;;
1068 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1069 ac_init_help
=short
;;
1071 -host |
--host |
--hos |
--ho)
1072 ac_prev
=host_alias
;;
1073 -host=* |
--host=* |
--hos=* |
--ho=*)
1074 host_alias
=$ac_optarg ;;
1076 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1078 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1080 htmldir
=$ac_optarg ;;
1082 -includedir |
--includedir |
--includedi |
--included |
--include \
1083 |
--includ |
--inclu |
--incl |
--inc)
1084 ac_prev
=includedir
;;
1085 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1086 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1087 includedir
=$ac_optarg ;;
1089 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1091 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1092 infodir
=$ac_optarg ;;
1094 -libdir |
--libdir |
--libdi |
--libd)
1096 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1097 libdir
=$ac_optarg ;;
1099 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1100 |
--libexe |
--libex |
--libe)
1101 ac_prev
=libexecdir
;;
1102 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1103 |
--libexe=* |
--libex=* |
--libe=*)
1104 libexecdir
=$ac_optarg ;;
1106 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1107 ac_prev
=localedir
;;
1108 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1109 localedir
=$ac_optarg ;;
1111 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1112 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1113 ac_prev
=localstatedir
;;
1114 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1115 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1116 localstatedir
=$ac_optarg ;;
1118 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1120 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1121 mandir
=$ac_optarg ;;
1123 -nfp |
--nfp |
--nf)
1124 # Obsolete; use --without-fp.
1127 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1128 |
--no-cr |
--no-c |
-n)
1131 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1132 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1135 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1136 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1137 |
--oldin |
--oldi |
--old |
--ol |
--o)
1138 ac_prev
=oldincludedir
;;
1139 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1140 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1141 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1142 oldincludedir
=$ac_optarg ;;
1144 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1146 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1147 prefix
=$ac_optarg ;;
1149 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1150 |
--program-pre |
--program-pr |
--program-p)
1151 ac_prev
=program_prefix
;;
1152 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1153 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1154 program_prefix
=$ac_optarg ;;
1156 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1157 |
--program-suf |
--program-su |
--program-s)
1158 ac_prev
=program_suffix
;;
1159 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1160 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1161 program_suffix
=$ac_optarg ;;
1163 -program-transform-name |
--program-transform-name \
1164 |
--program-transform-nam |
--program-transform-na \
1165 |
--program-transform-n |
--program-transform- \
1166 |
--program-transform |
--program-transfor \
1167 |
--program-transfo |
--program-transf \
1168 |
--program-trans |
--program-tran \
1169 |
--progr-tra |
--program-tr |
--program-t)
1170 ac_prev
=program_transform_name
;;
1171 -program-transform-name=* |
--program-transform-name=* \
1172 |
--program-transform-nam=* |
--program-transform-na=* \
1173 |
--program-transform-n=* |
--program-transform-=* \
1174 |
--program-transform=* |
--program-transfor=* \
1175 |
--program-transfo=* |
--program-transf=* \
1176 |
--program-trans=* |
--program-tran=* \
1177 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1178 program_transform_name
=$ac_optarg ;;
1180 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1182 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1183 pdfdir
=$ac_optarg ;;
1185 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1187 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1190 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1191 |
-silent |
--silent |
--silen |
--sile |
--sil)
1194 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1196 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1198 sbindir
=$ac_optarg ;;
1200 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1201 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1202 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1204 ac_prev
=sharedstatedir
;;
1205 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1206 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1207 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1209 sharedstatedir
=$ac_optarg ;;
1211 -site |
--site |
--sit)
1213 -site=* |
--site=* |
--sit=*)
1216 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1218 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1219 srcdir
=$ac_optarg ;;
1221 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1222 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1223 ac_prev
=sysconfdir
;;
1224 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1225 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1226 sysconfdir
=$ac_optarg ;;
1228 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1229 ac_prev
=target_alias
;;
1230 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1231 target_alias
=$ac_optarg ;;
1233 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1236 -version |
--version |
--versio |
--versi |
--vers |
-V)
1237 ac_init_version
=: ;;
1240 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1243 as_fn_error $?
"invalid package name: $ac_useropt"
1244 ac_useropt_orig
=$ac_useropt
1245 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1250 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251 ac_unrecognized_sep
=', ';;
1253 eval with_
$ac_useropt=\
$ac_optarg ;;
1255 -without-* |
--without-*)
1256 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1259 as_fn_error $?
"invalid package name: $ac_useropt"
1260 ac_useropt_orig
=$ac_useropt
1261 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1266 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267 ac_unrecognized_sep
=', ';;
1269 eval with_
$ac_useropt=no
;;
1272 # Obsolete; use --with-x.
1275 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1276 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1277 ac_prev
=x_includes
;;
1278 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1279 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1280 x_includes
=$ac_optarg ;;
1282 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1283 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1284 ac_prev
=x_libraries
;;
1285 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1286 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1287 x_libraries
=$ac_optarg ;;
1289 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1290 Try \`$0 --help' for more information"
1294 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
1296 case $ac_envvar in #(
1297 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1298 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1300 eval $ac_envvar=\
$ac_optarg
1301 export $ac_envvar ;;
1304 # FIXME: should be removed in autoconf 3.0.
1305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1314 if test -n "$ac_prev"; then
1315 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1316 as_fn_error $?
"missing argument to $ac_option"
1319 if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1322 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327 # Check all directory arguments for consistency.
1328 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329 datadir sysconfdir sharedstatedir localstatedir includedir \
1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331 libdir localedir mandir
1333 eval ac_val
=\$
$ac_var
1334 # Remove trailing slashes.
1337 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338 eval $ac_var=\
$ac_val;;
1340 # Be sure to have absolute directory names.
1342 [\\/$
]* | ?
:[\\/]* ) continue;;
1343 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1345 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1353 target
=$target_alias
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x
; then
1357 if test "x$build_alias" = x
; then
1358 cross_compiling
=maybe
1359 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1360 If a cross compiler is detected then cross compile mode will be used" >&2
1361 elif test "x$build_alias" != "x$host_alias"; then
1367 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1369 test "$silent" = yes && exec 6>/dev
/null
1372 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di
=`ls -di .` &&
1374 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1375 as_fn_error $?
"working directory cannot be determined"
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377 as_fn_error $?
"pwd does not report name of working directory"
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted
=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir
=`$as_dirname -- "$as_myself" ||
1385 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$as_myself" : 'X\(//\)[^/]' \| \
1387 X"$as_myself" : 'X\(//\)$' \| \
1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389 $as_echo X"$as_myself" |
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1412 ac_srcdir_defaulted
=no
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1416 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1418 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1422 # When building in place, set srcdir=.
1423 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426 # Remove unnecessary trailing slashes from srcdir.
1427 # Double slashes in file names in object file debugging info
1428 # mess up M-x gdb in Emacs.
1430 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 for ac_var
in $ac_precious_vars; do
1433 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1435 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1440 # Report the --help message.
1442 if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1446 \`configure' configures this package to adapt to many kinds of systems.
1448 Usage: $0 [OPTION]... [VAR=VALUE]...
1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451 VAR=VALUE. See below for descriptions of some of the useful variables.
1453 Defaults for the options are specified in brackets.
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
1460 -q, --quiet, --silent do not print \`checking ...' messages
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466 Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
1468 [$ac_default_prefix]
1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1472 By default, \`make install' will install all the files in
1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475 for instance \`--prefix=\$HOME'.
1477 For better control, use the options below.
1479 Fine tuning of the installation directories:
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
1505 if test -n "$ac_init_help"; then
1510 --disable-option-checking ignore unrecognized
--enable/--with options
1511 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1512 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1513 --enable-static install static libraries
1514 --enable-mallinfo build with malloc debug logging
1515 --enable-libpaper build with libpaper support
1516 --enable-libusb use libusb
for USB printing
1517 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1518 --enable-acl build with POSIX ACL support
1519 --disable-dbus build without DBUS support
1520 --disable-shared do not create shared libraries
1521 --enable-libtool-unsupported
1522 build with libtool
(UNSUPPORTED
!)
1523 --enable-debug build with debugging symbols
1524 --enable-debug-guards build with memory allocation guards
1525 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1526 --enable-unit-tests build and run unit tests
1527 --enable-relro build with the GCC relro option
1528 --disable-gssapi disable GSSAPI support
1529 --disable-threads disable multi-threading support
1530 --disable-ssl disable SSL
/TLS support
1531 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1532 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1533 --enable-openssl use OpenSSL
for SSL
/TLS support
, default
=third
1534 --disable-pam disable PAM support
1535 --disable-largefile omit support
for large files
1536 --disable-avahi disable DNS Service Discovery support using Avahi
1537 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1538 --disable-launchd disable launchd support
1539 --disable-browsing disable Browsing by default
1540 --disable-default-shared
1541 disable DefaultShared by default
1542 --disable-raw-printing do not allow raw printing by default
1543 --enable-webif enable the web interface by default
, default
=no
for OS X
1546 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1547 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1548 --with-cups-build set "cups-config --build" string
1549 --with-dbusdir set DBUS configuration directory
1550 --with-adminkey set the default SystemAuthKey value
1551 --with-operkey set the default operator @AUTHKEY value
1552 --with-components set components to build
:
1553 - "all" (default
) builds everything
1554 - "core" builds libcups and ipptool
1555 --with-privateinclude set path
for private include files
, default
=none
1556 --with-rcdir set path
for rc scripts
1557 --with-rclevels set run levels
for rc scripts
1558 --with-rcstart set start number
for rc scripts
1559 --with-rcstop set stop number
for rc scripts
1560 --with-smfmanifestdir set path
for Solaris SMF manifest
1561 --with-xinetd set path
for xinetd config files
1562 --with-lpdconfig set URI
for LPD config
file
1563 --with-smbconfig set URI
for Samba config
file
1564 --with-cachedir set path
for cache files
1565 --with-icondir set path
for application icons
1566 --with-menudir set path
for application menus
1567 --with-docdir set path
for documentation
1568 --with-fontpath set font path
for pstoraster
1569 --with-logdir set path
for log files
1570 --with-rundir set transient run-time state directory
1571 --with-optim set optimization flags
1572 --with-archflags set default architecture flags
1573 --with-ldarchflags set program architecture flags
1574 --with-domainsocket set unix domain socket name
1575 --with-gssservicename set default gss service name
1576 --with-openssl-libs set directory
for OpenSSL library
1577 --with-openssl-includes set directory
for OpenSSL includes
1578 --with-pam-module specify the PAM module to use
1579 --with-dnssd-libs set directory
for DNS Service Discovery library
1580 --with-dnssd-includes set directory
for DNS Service Discovery includes
1581 --with-languages set installed languages
, default
=all
1582 --with-bundledir set OS X localization bundle directory
1583 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1584 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1585 --with-log-file-perm set default LogFilePerm value
, default
=0644
1586 --with-fatal-errors set default FatalErrors value
, default
=config
1587 --with-log-level set default LogLevel value
, default
=warn
1588 --with-access-log-level set default AccessLogLevel value
, default
=actions
1589 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1590 --with-cups-user set default user
for CUPS
1591 --with-cups-group set default group
for CUPS
1592 --with-system-groups set default system groups
for CUPS
1593 --with-printcap set default printcap
file
1594 --with-lpdconfigfile set default LPDConfigFile URI
1595 --with-smbconfigfile set default SMBConfigFile URI
1596 --with-max-copies set default max copies value
, default
=9999
1597 --with-snmp-address set SNMP query address
, default
=auto
1598 --with-snmp-community set SNMP community
, default
=public
1599 --with-ipp-port set port number
for IPP
, default
=631
1600 --with-java set Java interpreter
for web interfaces
1601 --with-perl set Perl interpreter
for web interfaces
1602 --with-php set PHP interpreter
for web interfaces
1603 --with-python set Python interpreter
for web interfaces
1605 Some influential environment variables
:
1606 CC C compiler
command
1607 CFLAGS C compiler flags
1608 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1609 nonstandard directory
<lib dir
>
1610 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1611 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1612 you have headers
in a nonstandard directory
<include dir
>
1614 CXX C
++ compiler
command
1615 CXXFLAGS C
++ compiler flags
1617 Use these variables to override the choices made by
`configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1620 Report bugs to the package provider.
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 ac_abs_top_builddir=$ac_pwd
1645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646 # for backward compatibility:
1647 ac_top_builddir=$ac_top_build_prefix
1650 .) # We are building in place.
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1655 ac_srcdir=$srcdir$ac_dir_suffix;
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1684 generated by GNU Autoconf 2.68
1686 Copyright (C) 2010 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1693 ## ------------------------ ##
1694 ## Autoconf initialization. ##
1695 ## ------------------------ ##
1697 # ac_fn_c_try_compile LINENO
1698 # --------------------------
1699 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_compile ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1707 *) ac_try_echo
=$ac_try;;
1709 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1713 if test -s conftest.err
; then
1714 grep -v '^ *+' conftest.err
>conftest.er1
1715 cat conftest.er1
>&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.
$ac_objext; then :
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.
$ac_ext >&5
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status
$ac_retval
1733 } # ac_fn_c_try_compile
1735 # ac_fn_c_try_cpp LINENO
1736 # ----------------------
1737 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1740 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1741 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } > conftest.i && {
1757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1772 # ac_fn_cxx_try_compile LINENO
1773 # ----------------------------
1774 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_cxx_try_compile ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext
1779 if { { ac_try="$ac_compile"
1781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1782 *) ac_try_echo
=$ac_try;;
1784 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_compile") 2>conftest.err
1788 if test -s conftest.err
; then
1789 grep -v '^ *+' conftest.err
>conftest.er1
1790 cat conftest.er1
>&5
1791 mv -f conftest.er1 conftest.err
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_cxx_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest.
$ac_objext; then :
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.
$ac_ext >&5
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status
$ac_retval
1808 } # ac_fn_cxx_try_compile
1810 # ac_fn_c_try_link LINENO
1811 # -----------------------
1812 # Try to link conftest.$ac_ext, and return whether this succeeded.
1815 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1816 rm -f conftest.
$ac_objext conftest
$ac_exeext
1817 if { { ac_try
="$ac_link"
1819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_link") 2>conftest.err
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && {
1833 test -z "$ac_c_werror_flag" ||
1834 test ! -s conftest.err
1835 } && test -s conftest$ac_exeext && {
1836 test "$cross_compiling" = yes ||
1837 $as_test_x conftest$ac_exeext
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1846 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1847 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1848 # interfere with the next link command; also delete a directory that is
1849 # left behind by Apple's compiler. We do this before executing the actions.
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status $ac_retval
1854 } # ac_fn_c_try_link
1856 # ac_fn_c_try_run LINENO
1857 # ----------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859 # that executables *can* be run.
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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>&5
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1874 { { case "(($ac_try" in
1875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_try") 2>&5
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; }; }; then :
1886 $as_echo "$as_me: program exited with status $ac_status" >&5
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1890 ac_retval=$ac_status
1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1898 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1901 # the include files in INCLUDES and setting the cache variable VAR
1903 ac_fn_c_check_header_mongrel ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if eval \${$3+:} false; then :
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1916 # Is the header compilable?
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1918 $as_echo_n "checking $2 usability... " >&6; }
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925 ac_header_compiler=yes
1927 ac_header_compiler=no
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1931 $as_echo "$ac_header_compiler" >&6; }
1933 # Is the header present?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1935 $as_echo_n "checking $2 presence... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1940 if ac_fn_c_try_cpp "$LINENO"; then :
1941 ac_header_preproc=yes
1943 ac_header_preproc=no
1945 rm -f conftest.err conftest.i conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1947 $as_echo "$ac_header_preproc" >&6; }
1949 # So? What about this header?
1950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1953 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1959 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1961 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1963 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1965 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1967 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if eval \${$3+:} false; then :
1973 $as_echo_n "(cached) " >&6
1975 eval "$3=\$ac_header_compiler"
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 } # ac_fn_c_check_header_mongrel
1985 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1986 # -------------------------------------------------------
1987 # Tests whether HEADER exists and can be compiled using the include files in
1988 # INCLUDES, setting the cache variable VAR accordingly.
1989 ac_fn_c_check_header_compile ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995 $as_echo_n "(cached) " >&6
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2002 if ac_fn_c_try_compile "$LINENO"; then :
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 } # ac_fn_c_check_header_compile
2016 # ac_fn_c_check_func LINENO FUNC VAR
2017 # ----------------------------------
2018 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2019 ac_fn_c_check_func ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if eval \${$3+:} false; then :
2025 $as_echo_n "(cached) " >&6
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2031 #define $2 innocuous_$2
2033 /* System header to define __stub macros and hopefully few prototypes,
2034 which can conflict with char $2 (); below.
2035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2036 <limits.h> exists even on freestanding compilers. */
2039 # include <limits.h>
2041 # include <assert.h>
2046 /* Override any GCC internal prototype to avoid an error.
2047 Use char because int might match the return type of a GCC
2048 builtin and then its argument prototype would still apply. */
2053 /* The GNU C library defines this for functions which it implements
2054 to always fail with ENOSYS. Some functions are actually named
2055 something starting with __ and the normal name is an alias. */
2056 #if defined __stub_$2 || defined __stub___$2
2068 if ac_fn_c_try_link "$LINENO"; then :
2073 rm -f core conftest.err conftest.$ac_objext \
2074 conftest$ac_exeext conftest.$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 } # ac_fn_c_check_func
2083 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2084 # ----------------------------------------------------
2085 # Tries to find if the field MEMBER exists in type AGGR, after including
2086 # INCLUDES, setting cache variable VAR accordingly.
2087 ac_fn_c_check_member ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2091 $as_echo_n "checking for $2.$3... " >&6; }
2092 if eval \${$4+:} false; then :
2093 $as_echo_n "(cached) " >&6
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2108 if ac_fn_c_try_compile "$LINENO"; then :
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2118 if (sizeof ac_aggr.$3)
2124 if ac_fn_c_try_compile "$LINENO"; then :
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138 } # ac_fn_c_check_member
2139 cat >config.log <<_ACEOF
2140 This file contains any messages produced by compilers while
2141 running configure, to aid debugging if configure makes a mistake.
2143 It was created by $as_me, which was
2144 generated by GNU Autoconf 2.68. Invocation command line was
2156 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2157 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2158 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2159 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2160 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2162 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2163 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2165 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2166 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2167 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2168 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2169 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2170 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2171 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 test -z "$as_dir" && as_dir=.
2180 $as_echo "PATH: $as_dir"
2196 # Keep a trace of the command line.
2197 # Strip out --no-create and --no-recursion so they do not pile up.
2198 # Strip out --silent because we don't want to record it for future runs.
2199 # Also quote any args containing shell meta-characters.
2200 # Make two passes to allow for proper duplicate-argument suppression.
2204 ac_must_keep_next=false
2210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2212 | -silent | --silent | --silen | --sile | --sil)
2215 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2218 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2220 as_fn_append ac_configure_args1 " '$ac_arg'"
2221 if test $ac_must_keep_next = true; then
2222 ac_must_keep_next=false # Got value, back to normal.
2225 *=* | --config-cache | -C | -disable-* | --disable-* \
2226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2228 | -with-* | --with-* | -without-* | --without-* | --x)
2229 case "$ac_configure_args0 " in
2230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2233 -* ) ac_must_keep_next=true ;;
2236 as_fn_append ac_configure_args " '$ac_arg'"
2241 { ac_configure_args0=; unset ac_configure_args0;}
2242 { ac_configure_args1=; unset ac_configure_args1;}
2244 # When interrupted or exit'd, cleanup temporary files, and complete
2245 # config.log. We remove comments because anyway the quotes in there
2246 # would cause problems or look ugly.
2247 # WARNING: Use '\'' to represent an apostrophe within the trap.
2248 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2249 trap 'exit_status=$?
2250 # Save into config.log some information that might help in debugging.
2254 $as_echo "## ---------------- ##
2255 ## Cache variables. ##
2256 ## ---------------- ##"
2258 # The following way of writing the cache mishandles newlines in values,
2260 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2261 eval ac_val=\$$ac_var
2265 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2266 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2269 _ | IFS | as_nl) ;; #(
2270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2271 *) { eval $ac_var=; unset $ac_var;} ;;
2276 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2277 *${as_nl}ac_space=\ *)
2279 "s/'\''/'\''\\\\'\'''\''/g;
2280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2290 $as_echo "## ----------------- ##
2291 ## Output variables. ##
2292 ## ----------------- ##"
2294 for ac_var in $ac_subst_vars
2296 eval ac_val=\$$ac_var
2298 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2300 $as_echo "$ac_var='\''$ac_val'\''"
2304 if test -n "$ac_subst_files"; then
2305 $as_echo "## ------------------- ##
2306 ## File substitutions. ##
2307 ## ------------------- ##"
2309 for ac_var in $ac_subst_files
2311 eval ac_val=\$$ac_var
2313 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2315 $as_echo "$ac_var='\''$ac_val'\''"
2320 if test -s confdefs.h; then
2321 $as_echo "## ----------- ##
2328 test "$ac_signal" != 0 &&
2329 $as_echo "$as_me: caught signal $ac_signal"
2330 $as_echo "$as_me: exit $exit_status"
2332 rm -f core *.core core.conftest.* &&
2333 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2336 for ac_signal in 1 2 13 15; do
2337 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2342 rm -f -r conftest* confdefs.h
2344 $as_echo "/* confdefs.h */" > confdefs.h
2346 # Predefined preprocessor variables.
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_NAME "$PACKAGE_NAME"
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_STRING "$PACKAGE_STRING"
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_URL "$PACKAGE_URL"
2373 # Let the site file select an alternate cache file if it wants to.
2374 # Prefer an explicitly selected file to automatically selected ones.
2377 if test -n "$CONFIG_SITE"; then
2378 # We do not want a PATH search for config.site.
2379 case $CONFIG_SITE in #((
2380 -*) ac_site_file1=./$CONFIG_SITE;;
2381 */*) ac_site_file1=$CONFIG_SITE;;
2382 *) ac_site_file1=./$CONFIG_SITE;;
2384 elif test "x$prefix" != xNONE; then
2385 ac_site_file1=$prefix/share/config.site
2386 ac_site_file2=$prefix/etc/config.site
2388 ac_site_file1=$ac_default_prefix/share/config.site
2389 ac_site_file2=$ac_default_prefix/etc/config.site
2391 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2393 test "x$ac_site_file" = xNONE && continue
2394 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2396 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2397 sed 's/^/| /' "$ac_site_file" >&5
2399 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 as_fn_error $? "failed to load site
script $ac_site_file
2402 See \
`config.log' for more details" "$LINENO" 5; }
2406 if test -r "$cache_file"; then
2407 # Some versions of bash will fail to source /dev/null (special files
2408 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2409 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2411 $as_echo "$as_me: loading cache $cache_file" >&6;}
2413 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2414 *) . "./$cache_file";;
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2419 $as_echo "$as_me: creating cache $cache_file" >&6;}
2423 # Check that the precious variables saved in the cache have kept the same
2425 ac_cache_corrupted=false
2426 for ac_var in $ac_precious_vars; do
2427 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2428 eval ac_new_set=\$ac_env_${ac_var}_set
2429 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2430 eval ac_new_val=\$ac_env_${ac_var}_value
2431 case $ac_old_set,$ac_new_set in
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2434 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2435 ac_cache_corrupted=: ;;
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2438 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2439 ac_cache_corrupted=: ;;
2442 if test "x$ac_old_val" != "x$ac_new_val"; then
2443 # differences in whitespace do not lead to failure.
2444 ac_old_val_w=`echo x
$ac_old_val`
2445 ac_new_val_w=`echo x
$ac_new_val`
2446 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2448 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2449 ac_cache_corrupted=:
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2452 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2453 eval $ac_var=\$ac_old_val
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2456 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2458 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2461 # Pass precious variables to config.status.
2462 if test "$ac_new_set" = set; then
2464 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2465 *) ac_arg=$ac_var=$ac_new_val ;;
2467 case " $ac_configure_args " in
2468 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2469 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2473 if $ac_cache_corrupted; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2477 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2478 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2480 ## -------------------- ##
2481 ## Main body of script. ##
2482 ## -------------------- ##
2485 ac_cpp='$CPP $CPPFLAGS'
2486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494 uversion=`uname
-r |
sed -e '1,$s/^[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/'`
2500 if test $uversion -lt 120; then
2501 as_fn_error $? "Sorry, this version of CUPS requires OS X 10.8 or higher." "$LINENO" 5
2517 ac_config_headers="$ac_config_headers config.h"
2522 #if test -z "$CUPS_REVISION" -a -d .svn; then
2523 # CUPS_REVISION="-r`svnversion . |
awk -F: '{print $NF}' |
sed -e '1,$s/[[a-zA-Z]]*//g'`"
2525 CUPS_BUILD="cups-$CUPS_VERSION"
2528 # Check whether --with-cups_build was given.
2529 if test "${with_cups_build+set}" = set; then :
2530 withval=$with_cups_build; CUPS_BUILD="$withval"
2537 cat >>confdefs.h <<_ACEOF
2538 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2541 cat >>confdefs.h <<_ACEOF
2542 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2546 CFLAGS="${CFLAGS:=}"
2547 CPPFLAGS="${CPPFLAGS:=}"
2548 CXXFLAGS="${CXXFLAGS:=}"
2549 LDFLAGS="${LDFLAGS:=}"
2551 for ac_prog in gawk mawk nawk awk
2553 # Extract the first word of "$ac_prog", so it can be a program name with args.
2554 set dummy $ac_prog; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if ${ac_cv_prog_AWK+:} false; then :
2558 $as_echo_n "(cached) " >&6
2560 if test -n "$AWK"; then
2561 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 ac_cv_prog_AWK="$ac_prog"
2571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 if test -n "$AWK"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2583 $as_echo "$AWK" >&6; }
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586 $as_echo "no" >&6; }
2590 test -n "$AWK" && break
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598 if test -n "$ac_tool_prefix"; then
2599 for ac_prog in clang cc gcc
2601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if ${ac_cv_prog_CC+:} false; then :
2606 $as_echo_n "(cached) " >&6
2608 if test -n "$CC"; then
2609 ac_cv_prog_CC="$CC" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 if test -n "$CC"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2631 $as_echo "$CC" >&6; }
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634 $as_echo "no" >&6; }
2638 test -n "$CC" && break
2641 if test -z "$CC"; then
2643 for ac_prog in clang cc gcc
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646 set dummy $ac_prog; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2650 $as_echo_n "(cached) " >&6
2652 if test -n "$ac_ct_CC"; then
2653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_ac_ct_CC="$ac_prog"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2673 if test -n "$ac_ct_CC"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2675 $as_echo "$ac_ct_CC" >&6; }
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2682 test -n "$ac_ct_CC" && break
2685 if test "x$ac_ct_CC" = x; then
2688 case $cross_compiling:$ac_tool_warned in
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2692 ac_tool_warned=yes ;;
2699 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2702 See \
`config.log' for more details" "$LINENO" 5; }
2704 # Provide some information about the compiler.
2705 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2708 for ac_option in --version -v -V -qversion; do
2709 { { ac_try="$ac_compiler $ac_option >&5"
2711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2712 *) ac_try_echo
=$ac_try;;
2714 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2715 $as_echo "$ac_try_echo"; } >&5
2716 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2718 if test -s conftest.err
; then
2720 ... rest of stderr output deleted ...
2721 10q' conftest.err
>conftest.er1
2722 cat conftest.er1
>&5
2724 rm -f conftest.er1 conftest.err
2725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2726 test $ac_status = 0; }
2729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h. */
2740 ac_clean_files_save
=$ac_clean_files
2741 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2742 # Try to create an executable without -o first, disregard a.out.
2743 # It will help us diagnose broken compilers, and finding out an intuition
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2746 $as_echo_n "checking whether the C compiler works... " >&6; }
2747 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2749 # The possible output files:
2750 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2753 for ac_file
in $ac_files
2756 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2757 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2762 if { { ac_try
="$ac_link_default"
2764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2768 $as_echo "$ac_try_echo"; } >&5
2769 (eval "$ac_link_default") 2>&5
2771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2772 test $ac_status = 0; }; then :
2773 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2774 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2775 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2776 # so that the user can short-circuit this test for compilers unknown to
2778 for ac_file in $ac_files ''
2780 test -f "$ac_file" || continue
2782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2785 # We found the default executable, but exeext='' is most
2789 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2791 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2793 # We set ac_cv_exeext here because the later test for it is not
2794 # safe: cross compilers may not add the suffix if given an `-o'
2795 # argument, so we may need to know it at that point already.
2796 # Even if this section looks crufty: it has the advantage of
2803 test "$ac_cv_exeext" = no && ac_cv_exeext=
2808 if test -z "$ac_file"; then :
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2811 $as_echo "$as_me: failed program was:" >&5
2812 sed 's
/^
/|
/' conftest.$ac_ext >&5
2814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2815 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2816 as_fn_error 77 "C compiler cannot create executables
2817 See \`config.log
' for more details" "$LINENO" 5; }
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2820 $as_echo "yes" >&6; }
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2823 $as_echo_n "checking for C compiler default output file name... " >&6; }
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2825 $as_echo "$ac_file" >&6; }
2826 ac_exeext=$ac_cv_exeext
2828 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2829 ac_clean_files=$ac_clean_files_save
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2831 $as_echo_n "checking for suffix of executables... " >&6; }
2832 if { { ac_try="$ac_link"
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2838 $as_echo "$ac_try_echo"; } >&5
2839 (eval "$ac_link") 2>&5
2841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2842 test $ac_status = 0; }; then :
2843 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2844 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2845 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2847 for ac_file
in conftest.exe conftest conftest.
*; do
2848 test -f "$ac_file" ||
continue
2850 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2851 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2860 See \`config.log' for more details" "$LINENO" 5; }
2862 rm -f conftest conftest
$ac_cv_exeext
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2864 $as_echo "$ac_cv_exeext" >&6; }
2866 rm -f conftest.
$ac_ext
2867 EXEEXT
=$ac_cv_exeext
2869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2870 /* end confdefs.h. */
2875 FILE *f = fopen ("conftest.out", "w");
2876 return ferror (f) || fclose (f) != 0;
2882 ac_clean_files
="$ac_clean_files conftest.out"
2883 # Check that the compiler produces executables we can run. If not, either
2884 # the compiler is broken, or we cross compile.
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2886 $as_echo_n "checking whether we are cross compiling... " >&6; }
2887 if test "$cross_compiling" != yes; then
2888 { { ac_try
="$ac_link"
2890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2894 $as_echo "$ac_try_echo"; } >&5
2895 (eval "$ac_link") 2>&5
2897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2898 test $ac_status = 0; }
2899 if { ac_try='./conftest$ac_cv_exeext'
2900 { { case "(($ac_try" in
2901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2902 *) ac_try_echo
=$ac_try;;
2904 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2905 $as_echo "$ac_try_echo"; } >&5
2906 (eval "$ac_try") 2>&5
2908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2909 test $ac_status = 0; }; }; then
2912 if test "$cross_compiling" = maybe
; then
2915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2917 as_fn_error $?
"cannot run C compiled programs.
2918 If you meant to cross compile, use \`--host'.
2919 See \`config.log' for more details" "$LINENO" 5; }
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2924 $as_echo "$cross_compiling" >&6; }
2926 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2927 ac_clean_files
=$ac_clean_files_save
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2929 $as_echo_n "checking for suffix of object files... " >&6; }
2930 if ${ac_cv_objext+:} false
; then :
2931 $as_echo_n "(cached) " >&6
2933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2934 /* end confdefs.h. */
2944 rm -f conftest.o conftest.obj
2945 if { { ac_try
="$ac_compile"
2947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951 $as_echo "$ac_try_echo"; } >&5
2952 (eval "$ac_compile") 2>&5
2954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2955 test $ac_status = 0; }; then :
2956 for ac_file in conftest.o conftest.obj conftest.*; do
2957 test -f "$ac_file" || continue;
2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2960 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2965 $as_echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2971 See \
`config.log' for more details" "$LINENO" 5; }
2973 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2976 $as_echo "$ac_cv_objext" >&6; }
2977 OBJEXT=$ac_cv_objext
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2980 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2981 if ${ac_cv_c_compiler_gnu+:} false; then :
2982 $as_echo_n "(cached) " >&6
2984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2985 /* end confdefs.h. */
2998 if ac_fn_c_try_compile "$LINENO"; then :
3003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3008 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3009 if test $ac_compiler_gnu = yes; then
3014 ac_test_CFLAGS=${CFLAGS+set}
3015 ac_save_CFLAGS=$CFLAGS
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3017 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3018 if ${ac_cv_prog_cc_g+:} false; then :
3019 $as_echo_n "(cached) " >&6
3021 ac_save_c_werror_flag=$ac_c_werror_flag
3022 ac_c_werror_flag=yes
3025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026 /* end confdefs.h. */
3036 if ac_fn_c_try_compile "$LINENO"; then :
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h. */
3051 if ac_fn_c_try_compile "$LINENO"; then :
3054 ac_c_werror_flag=$ac_save_c_werror_flag
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3067 if ac_fn_c_try_compile "$LINENO"; then :
3070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3075 ac_c_werror_flag=$ac_save_c_werror_flag
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3078 $as_echo "$ac_cv_prog_cc_g" >&6; }
3079 if test "$ac_test_CFLAGS" = set; then
3080 CFLAGS=$ac_save_CFLAGS
3081 elif test $ac_cv_prog_cc_g = yes; then
3082 if test "$GCC" = yes; then
3088 if test "$GCC" = yes; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3095 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3096 if ${ac_cv_prog_cc_c89+:} false; then :
3097 $as_echo_n "(cached) " >&6
3099 ac_cv_prog_cc_c89=no
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3105 #include <sys/types.h>
3106 #include <sys/stat.h>
3107 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3108 struct buf { int x; };
3109 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3110 static char *e (p, i)
3116 static char *f (char * (*g) (char **, int), char **p, ...)
3121 s = g (p, va_arg (v,int));
3126 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3127 function prototypes and stuff, but not '\xHH' hex character constants.
3128 These don't provoke an error unfortunately, instead are silently treated
3129 as 'x'. The following induces an error, until -std is added to get
3130 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3131 array size at least. It's necessary to write '\x00'==0 to get something
3132 that's true only with -std. */
3133 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3135 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3136 inside strings and character constants. */
3138 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3140 int test (int i, double x);
3141 struct s1 {int (*f) (int a);};
3142 struct s2 {int (*f) (double a);};
3143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3149 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3154 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3155 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3157 CC="$ac_save_CC $ac_arg"
3158 if ac_fn_c_try_compile "$LINENO"; then :
3159 ac_cv_prog_cc_c89=$ac_arg
3161 rm -f core conftest.err conftest.$ac_objext
3162 test "x$ac_cv_prog_cc_c89" != "xno" && break
3164 rm -f conftest.$ac_ext
3169 case "x$ac_cv_prog_cc_c89" in
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3172 $as_echo "none needed" >&6; } ;;
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3175 $as_echo "unsupported" >&6; } ;;
3177 CC="$CC $ac_cv_prog_cc_c89"
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3179 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3181 if test "x$ac_cv_prog_cc_c89" != xno; then :
3186 ac_cpp='$CPP $CPPFLAGS'
3187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3197 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3198 # On Suns, sometimes $CPP names a directory.
3199 if test -n "$CPP" && test -d "$CPP"; then
3202 if test -z "$CPP"; then
3203 if ${ac_cv_prog_CPP+:} false; then :
3204 $as_echo_n "(cached) " >&6
3206 # Double quotes because CPP needs to be expanded
3207 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3210 for ac_c_preproc_warn_flag in '' yes
3212 # Use a header file that comes with gcc, so configuring glibc
3213 # with a fresh cross-compiler works.
3214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3215 # <limits.h> exists even on freestanding compilers.
3216 # On the NeXT, cc -E runs the code through the compiler's parser,
3217 # not just through cpp. "Syntax error" is here to catch this case.
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3221 # include <limits.h>
3223 # include <assert.h>
3227 if ac_fn_c_try_cpp "$LINENO"; then :
3230 # Broken: fails on valid input.
3233 rm -f conftest.err conftest.i conftest.$ac_ext
3235 # OK, works on sane cases. Now check whether nonexistent headers
3236 # can be detected and how.
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3239 #include <ac_nonexistent.h>
3241 if ac_fn_c_try_cpp "$LINENO"; then :
3242 # Broken: success on invalid input.
3245 # Passes both tests.
3249 rm -f conftest.err conftest.i conftest.$ac_ext
3252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253 rm -f conftest.i conftest.err conftest.
$ac_ext
3254 if $ac_preproc_ok; then :
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3267 $as_echo "$CPP" >&6; }
3269 for ac_c_preproc_warn_flag
in '' yes
3271 # Use a header file that comes with gcc, so configuring glibc
3272 # with a fresh cross-compiler works.
3273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3274 # <limits.h> exists even on freestanding compilers.
3275 # On the NeXT, cc -E runs the code through the compiler's parser,
3276 # not just through cpp. "Syntax error" is here to catch this case.
3277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3280 # include <limits.h>
3282 # include <assert.h>
3286 if ac_fn_c_try_cpp
"$LINENO"; then :
3289 # Broken: fails on valid input.
3292 rm -f conftest.err conftest.i conftest.
$ac_ext
3294 # OK, works on sane cases. Now check whether nonexistent headers
3295 # can be detected and how.
3296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3298 #include <ac_nonexistent.h>
3300 if ac_fn_c_try_cpp
"$LINENO"; then :
3301 # Broken: success on invalid input.
3304 # Passes both tests.
3308 rm -f conftest.err conftest.i conftest.
$ac_ext
3311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312 rm -f conftest.i conftest.err conftest.
$ac_ext
3313 if $ac_preproc_ok; then :
3316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3319 See \`config.log' for more details" "$LINENO" 5; }
3323 ac_cpp
='$CPP $CPPFLAGS'
3324 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3329 ac_cpp
='$CXXCPP $CPPFLAGS'
3330 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3333 if test -z "$CXX"; then
3334 if test -n "$CCC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 for ac_prog
in clang
++ c
++ g
++
3340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3341 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if ${ac_cv_prog_CXX+:} false
; then :
3345 $as_echo_n "(cached) " >&6
3347 if test -n "$CXX"; then
3348 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir
=.
3355 for ac_exec_ext
in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 if test -n "$CXX"; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3370 $as_echo "$CXX" >&6; }
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3377 test -n "$CXX" && break
3380 if test -z "$CXX"; then
3382 for ac_prog
in clang
++ c
++ g
++
3384 # Extract the first word of "$ac_prog", so it can be a program name with args.
3385 set dummy
$ac_prog; ac_word
=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3389 $as_echo_n "(cached) " >&6
3391 if test -n "$ac_ct_CXX"; then
3392 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3398 test -z "$as_dir" && as_dir
=.
3399 for ac_exec_ext
in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3412 if test -n "$ac_ct_CXX"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3414 $as_echo "$ac_ct_CXX" >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3421 test -n "$ac_ct_CXX" && break
3424 if test "x$ac_ct_CXX" = x
; then
3427 case $cross_compiling:$ac_tool_warned in
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431 ac_tool_warned
=yes ;;
3439 # Provide some information about the compiler.
3440 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3443 for ac_option
in --version -v -V -qversion; do
3444 { { ac_try
="$ac_compiler $ac_option >&5"
3446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3453 if test -s conftest.err; then
3455 ... rest of stderr output deleted ...
3456 10q' conftest.err >conftest.er1
3457 cat conftest.er1 >&5
3459 rm -f conftest.er1 conftest.err
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3465 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3466 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3467 $as_echo_n "(cached) " >&6
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3483 if ac_fn_cxx_try_compile "$LINENO"; then :
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3493 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3494 if test $ac_compiler_gnu = yes; then
3499 ac_test_CXXFLAGS=${CXXFLAGS+set}
3500 ac_save_CXXFLAGS=$CXXFLAGS
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3502 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3503 if ${ac_cv_prog_cxx_g+:} false; then :
3504 $as_echo_n "(cached) " >&6
3506 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3507 ac_cxx_werror_flag=yes
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3521 if ac_fn_cxx_try_compile "$LINENO"; then :
3522 ac_cv_prog_cxx_g=yes
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3536 if ac_fn_cxx_try_compile "$LINENO"; then :
3539 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3552 if ac_fn_cxx_try_compile "$LINENO"; then :
3553 ac_cv_prog_cxx_g=yes
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3563 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3564 if test "$ac_test_CXXFLAGS" = set; then
3565 CXXFLAGS=$ac_save_CXXFLAGS
3566 elif test $ac_cv_prog_cxx_g = yes; then
3567 if test "$GXX" = yes; then
3573 if test "$GXX" = yes; then
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if ${ac_cv_prog_RANLIB+:} false; then :
3591 $as_echo_n "(cached) " >&6
3593 if test -n "$RANLIB"; then
3594 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 RANLIB=$ac_cv_prog_RANLIB
3614 if test -n "$RANLIB"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3616 $as_echo "$RANLIB" >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3624 if test -z "$ac_cv_prog_RANLIB"; then
3625 ac_ct_RANLIB=$RANLIB
3626 # Extract the first word of "ranlib", so it can be a program name with args.
3627 set dummy ranlib; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$ac_ct_RANLIB"; then
3634 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_ac_ct_RANLIB="ranlib"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3654 if test -n "$ac_ct_RANLIB"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3656 $as_echo "$ac_ct_RANLIB" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3662 if test "x$ac_ct_RANLIB" = x; then
3665 case $cross_compiling:$ac_tool_warned in
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3669 ac_tool_warned=yes ;;
3671 RANLIB=$ac_ct_RANLIB
3674 RANLIB="$ac_cv_prog_RANLIB"
3677 # Extract the first word of "ar", so it can be a program name with args.
3678 set dummy ar; ac_word=$2
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if ${ac_cv_path_AR+:} false; then :
3682 $as_echo_n "(cached) " >&6
3686 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 if test -n "$AR"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3710 $as_echo "$AR" >&6; }
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3713 $as_echo "no" >&6; }
3717 # Extract the first word of "chmod", so it can be a program name with args.
3718 set dummy chmod; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_path_CHMOD+:} false; then :
3722 $as_echo_n "(cached) " >&6
3726 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 CHMOD=$ac_cv_path_CHMOD
3748 if test -n "$CHMOD"; then
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3750 $as_echo "$CHMOD" >&6; }
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3757 # Extract the first word of "gzip", so it can be a program name with args.
3758 set dummy gzip; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if ${ac_cv_path_GZIP+:} false; then :
3762 $as_echo_n "(cached) " >&6
3766 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 GZIP=$ac_cv_path_GZIP
3788 if test -n "$GZIP"; then
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3790 $as_echo "$GZIP" >&6; }
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3797 # Extract the first word of "ld", so it can be a program name with args.
3798 set dummy ld; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if ${ac_cv_path_LD+:} false; then :
3802 $as_echo_n "(cached) " >&6
3806 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 if test -n "$LD"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3830 $as_echo "$LD" >&6; }
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3837 # Extract the first word of "ln", so it can be a program name with args.
3838 set dummy ln; ac_word=$2
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 $as_echo_n "checking for $ac_word... " >&6; }
3841 if ${ac_cv_path_LN+:} false; then :
3842 $as_echo_n "(cached) " >&6
3846 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3856 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 if test -n "$LN"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
3870 $as_echo "$LN" >&6; }
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3877 # Extract the first word of "mv", so it can be a program name with args.
3878 set dummy mv; ac_word=$2
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3880 $as_echo_n "checking for $ac_word... " >&6; }
3881 if ${ac_cv_path_MV+:} false; then :
3882 $as_echo_n "(cached) " >&6
3886 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3896 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 if test -n "$MV"; then
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
3910 $as_echo "$MV" >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3917 # Extract the first word of "rm", so it can be a program name with args.
3918 set dummy rm; ac_word=$2
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if ${ac_cv_path_RM+:} false; then :
3922 $as_echo_n "(cached) " >&6
3926 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 if test -n "$RM"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
3950 $as_echo "$RM" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3957 # Extract the first word of "rmdir", so it can be a program name with args.
3958 set dummy rmdir; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if ${ac_cv_path_RMDIR+:} false; then :
3962 $as_echo_n "(cached) " >&6
3966 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
3977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 RMDIR=$ac_cv_path_RMDIR
3988 if test -n "$RMDIR"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
3990 $as_echo "$RMDIR" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3997 # Extract the first word of "sed", so it can be a program name with args.
3998 set dummy sed; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if ${ac_cv_path_SED+:} false; then :
4002 $as_echo_n "(cached) " >&6
4006 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4016 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 if test -n "$SED"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4030 $as_echo "$SED" >&6; }
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4037 # Extract the first word of "xdg-open", so it can be a program name with args.
4038 set dummy xdg-open; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if ${ac_cv_path_XDGOPEN+:} false; then :
4042 $as_echo_n "(cached) " >&6
4046 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 XDGOPEN=$ac_cv_path_XDGOPEN
4068 if test -n "$XDGOPEN"; then
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4070 $as_echo "$XDGOPEN" >&6; }
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073 $as_echo "no" >&6; }
4077 if test "x$XDGOPEN" = x; then
4078 CUPS_HTMLVIEW="htmlview"
4080 CUPS_HTMLVIEW="$XDGOPEN"
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4085 $as_echo_n "checking for install-sh script... " >&6; }
4086 INSTALL="`pwd`/install-sh"
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4089 $as_echo "using $INSTALL" >&6; }
4091 if test "x$AR" = x; then
4092 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4094 if test "x$CC" = x; then
4095 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4099 # Check whether --enable-static was given.
4100 if test "${enable_static+set}" = set; then :
4101 enableval=$enable_static;
4105 if test x$enable_static = xyes; then
4106 echo Installing static libraries...
4107 INSTALLSTATIC="installstatic"
4112 # Extract the first word of "pkg-config", so it can be a program name with args.
4113 set dummy pkg-config; ac_word=$2
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if ${ac_cv_path_PKGCONFIG+:} false; then :
4117 $as_echo_n "(cached) " >&6
4121 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 PKGCONFIG=$ac_cv_path_PKGCONFIG
4143 if test -n "$PKGCONFIG"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4145 $as_echo "$PKGCONFIG" >&6; }
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4155 $as_echo_n "checking for library containing abs... " >&6; }
4156 if ${ac_cv_search_abs+:} false; then :
4157 $as_echo_n "(cached) " >&6
4159 ac_func_search_save_LIBS=$LIBS
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4163 /* Override any GCC internal prototype to avoid an error.
4164 Use char because int might match the return type of a GCC
4165 builtin and then its argument prototype would still apply. */
4178 for ac_lib in '' m; do
4179 if test -z "$ac_lib"; then
4180 ac_res="none required"
4183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4185 if ac_fn_c_try_link "$LINENO"; then :
4186 ac_cv_search_abs=$ac_res
4188 rm -f core conftest.err conftest.$ac_objext \
4190 if ${ac_cv_search_abs+:} false; then :
4194 if ${ac_cv_search_abs+:} false; then :
4200 LIBS=$ac_func_search_save_LIBS
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4203 $as_echo "$ac_cv_search_abs" >&6; }
4204 ac_res=$ac_cv_search_abs
4205 if test "$ac_res" != no; then :
4206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4207 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4212 $as_echo_n "checking for library containing crypt... " >&6; }
4213 if ${ac_cv_search_crypt+:} false; then :
4214 $as_echo_n "(cached) " >&6
4216 ac_func_search_save_LIBS=$LIBS
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4220 /* Override any GCC internal prototype to avoid an error.
4221 Use char because int might match the return type of a GCC
4222 builtin and then its argument prototype would still apply. */
4235 for ac_lib in '' crypt; do
4236 if test -z "$ac_lib"; then
4237 ac_res="none required"
4240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4242 if ac_fn_c_try_link "$LINENO"; then :
4243 ac_cv_search_crypt=$ac_res
4245 rm -f core conftest.err conftest.$ac_objext \
4247 if ${ac_cv_search_crypt+:} false; then :
4251 if ${ac_cv_search_crypt+:} false; then :
4254 ac_cv_search_crypt=no
4257 LIBS=$ac_func_search_save_LIBS
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4260 $as_echo "$ac_cv_search_crypt" >&6; }
4261 ac_res=$ac_cv_search_crypt
4262 if test "$ac_res" != no; then :
4263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4268 $as_echo_n "checking for library containing fmod... " >&6; }
4269 if ${ac_cv_search_fmod+:} false; then :
4270 $as_echo_n "(cached) " >&6
4272 ac_func_search_save_LIBS=$LIBS
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4276 /* Override any GCC internal prototype to avoid an error.
4277 Use char because int might match the return type of a GCC
4278 builtin and then its argument prototype would still apply. */
4291 for ac_lib in '' m; do
4292 if test -z "$ac_lib"; then
4293 ac_res="none required"
4296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4298 if ac_fn_c_try_link "$LINENO"; then :
4299 ac_cv_search_fmod=$ac_res
4301 rm -f core conftest.err conftest.$ac_objext \
4303 if ${ac_cv_search_fmod+:} false; then :
4307 if ${ac_cv_search_fmod+:} false; then :
4310 ac_cv_search_fmod=no
4313 LIBS=$ac_func_search_save_LIBS
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4316 $as_echo "$ac_cv_search_fmod" >&6; }
4317 ac_res=$ac_cv_search_fmod
4318 if test "$ac_res" != no; then :
4319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4324 $as_echo_n "checking for library containing getspent... " >&6; }
4325 if ${ac_cv_search_getspent+:} false; then :
4326 $as_echo_n "(cached) " >&6
4328 ac_func_search_save_LIBS=$LIBS
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4332 /* Override any GCC internal prototype to avoid an error.
4333 Use char because int might match the return type of a GCC
4334 builtin and then its argument prototype would still apply. */
4347 for ac_lib in '' sec gen; do
4348 if test -z "$ac_lib"; then
4349 ac_res="none required"
4352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4354 if ac_fn_c_try_link "$LINENO"; then :
4355 ac_cv_search_getspent=$ac_res
4357 rm -f core conftest.err conftest.$ac_objext \
4359 if ${ac_cv_search_getspent+:} false; then :
4363 if ${ac_cv_search_getspent+:} false; then :
4366 ac_cv_search_getspent=no
4369 LIBS=$ac_func_search_save_LIBS
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4372 $as_echo "$ac_cv_search_getspent" >&6; }
4373 ac_res=$ac_cv_search_getspent
4374 if test "$ac_res" != no; then :
4375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4381 # Check whether --enable-mallinfo was given.
4382 if test "${enable_mallinfo+set}" = set; then :
4383 enableval=$enable_mallinfo;
4387 if test x$enable_mallinfo = xyes; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4391 $as_echo_n "checking for library containing mallinfo... " >&6; }
4392 if ${ac_cv_search_mallinfo+:} false; then :
4393 $as_echo_n "(cached) " >&6
4395 ac_func_search_save_LIBS=$LIBS
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4399 /* Override any GCC internal prototype to avoid an error.
4400 Use char because int might match the return type of a GCC
4401 builtin and then its argument prototype would still apply. */
4414 for ac_lib in '' malloc; do
4415 if test -z "$ac_lib"; then
4416 ac_res="none required"
4419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4421 if ac_fn_c_try_link "$LINENO"; then :
4422 ac_cv_search_mallinfo=$ac_res
4424 rm -f core conftest.err conftest.$ac_objext \
4426 if ${ac_cv_search_mallinfo+:} false; then :
4430 if ${ac_cv_search_mallinfo+:} false; then :
4433 ac_cv_search_mallinfo=no
4436 LIBS=$ac_func_search_save_LIBS
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4439 $as_echo "$ac_cv_search_mallinfo" >&6; }
4440 ac_res=$ac_cv_search_mallinfo
4441 if test "$ac_res" != no; then :
4442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4443 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4453 # Check whether --enable-libpaper was given.
4454 if test "${enable_libpaper+set}" = set; then :
4455 enableval=$enable_libpaper;
4459 if test x$enable_libpaper = xyes; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4461 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4462 if ${ac_cv_lib_paper_systempapername+:} false; then :
4463 $as_echo_n "(cached) " >&6
4465 ac_check_lib_save_LIBS=$LIBS
4466 LIBS="-lpaper $LIBS"
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4470 /* Override any GCC internal prototype to avoid an error.
4471 Use char because int might match the return type of a GCC
4472 builtin and then its argument prototype would still apply. */
4476 char systempapername ();
4480 return systempapername ();
4485 if ac_fn_c_try_link "$LINENO"; then :
4486 ac_cv_lib_paper_systempapername=yes
4488 ac_cv_lib_paper_systempapername=no
4490 rm -f core conftest.err conftest.$ac_objext \
4491 conftest$ac_exeext conftest.$ac_ext
4492 LIBS=$ac_check_lib_save_LIBS
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4495 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4496 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4497 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4511 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4512 if ${ac_cv_path_GREP+:} false; then :
4513 $as_echo_n "(cached) " >&6
4515 if test -z "$GREP"; then
4516 ac_path_GREP_found=false
4517 # Loop through the user's path and test for each of PROGNAME-LIST
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4522 test -z "$as_dir" && as_dir=.
4523 for ac_prog in grep ggrep; do
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4526 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4527 # Check for GNU ac_path_GREP and select it if it is found.
4528 # Check for GNU $ac_path_GREP
4529 case `"$ac_path_GREP" --version 2>&1` in
4531 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4534 $as_echo_n 0123456789 >"conftest.in"
4537 cat "conftest.in" "conftest.in" >"conftest.tmp"
4538 mv "conftest.tmp" "conftest.in"
4539 cp "conftest.in" "conftest.nl"
4540 $as_echo 'GREP' >> "conftest.nl"
4541 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4543 as_fn_arith $ac_count + 1 && ac_count=$as_val
4544 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4545 # Best one so far, save it but keep looking for a better one
4546 ac_cv_path_GREP="$ac_path_GREP"
4547 ac_path_GREP_max=$ac_count
4549 # 10*(2^10) chars as input seems more than enough
4550 test $ac_count -gt 10 && break
4552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4555 $ac_path_GREP_found && break 3
4560 if test -z "$ac_cv_path_GREP"; then
4561 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4564 ac_cv_path_GREP=$GREP
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4569 $as_echo "$ac_cv_path_GREP" >&6; }
4570 GREP="$ac_cv_path_GREP"
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4574 $as_echo_n "checking for egrep... " >&6; }
4575 if ${ac_cv_path_EGREP+:} false; then :
4576 $as_echo_n "(cached) " >&6
4578 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4579 then ac_cv_path_EGREP="$GREP -E"
4581 if test -z "$EGREP"; then
4582 ac_path_EGREP_found=false
4583 # Loop through the user's path and test for each of PROGNAME-LIST
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4588 test -z "$as_dir" && as_dir=.
4589 for ac_prog in egrep; do
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4592 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4593 # Check for GNU ac_path_EGREP and select it if it is found.
4594 # Check for GNU $ac_path_EGREP
4595 case `"$ac_path_EGREP" --version 2>&1` in
4597 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4600 $as_echo_n 0123456789 >"conftest.in"
4603 cat "conftest.in" "conftest.in" >"conftest.tmp"
4604 mv "conftest.tmp" "conftest.in"
4605 cp "conftest.in" "conftest.nl"
4606 $as_echo 'EGREP' >> "conftest.nl"
4607 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609 as_fn_arith $ac_count + 1 && ac_count=$as_val
4610 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4611 # Best one so far, save it but keep looking for a better one
4612 ac_cv_path_EGREP="$ac_path_EGREP"
4613 ac_path_EGREP_max=$ac_count
4615 # 10*(2^10) chars as input seems more than enough
4616 test $ac_count -gt 10 && break
4618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621 $ac_path_EGREP_found && break 3
4626 if test -z "$ac_cv_path_EGREP"; then
4627 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4630 ac_cv_path_EGREP=$EGREP
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4636 $as_echo "$ac_cv_path_EGREP" >&6; }
4637 EGREP="$ac_cv_path_EGREP"
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4641 $as_echo_n "checking for ANSI C header files... " >&6; }
4642 if ${ac_cv_header_stdc+:} false; then :
4643 $as_echo_n "(cached) " >&6
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4660 if ac_fn_c_try_compile "$LINENO"; then :
4661 ac_cv_header_stdc=yes
4663 ac_cv_header_stdc=no
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 if test $ac_cv_header_stdc = yes; then
4668 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4675 $EGREP "memchr" >/dev/null 2>&1; then :
4678 ac_cv_header_stdc=no
4684 if test $ac_cv_header_stdc = yes; then
4685 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4692 $EGREP "free" >/dev/null 2>&1; then :
4695 ac_cv_header_stdc=no
4701 if test $ac_cv_header_stdc = yes; then
4702 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4703 if test "$cross_compiling" = yes; then :
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4710 #if ((' ' & 0x0FF) == 0x020)
4711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4714 # define ISLOWER(c) \
4715 (('a' <= (c) && (c) <= 'i') \
4716 || ('j' <= (c) && (c) <= 'r') \
4717 || ('s' <= (c) && (c) <= 'z'))
4718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4726 for (i = 0; i < 256; i++)
4727 if (XOR (islower (i), ISLOWER (i))
4728 || toupper (i) != TOUPPER (i))
4733 if ac_fn_c_try_run "$LINENO"; then :
4736 ac_cv_header_stdc=no
4738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4739 conftest.$ac_objext conftest.beam conftest.$ac_ext
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4745 $as_echo "$ac_cv_header_stdc" >&6; }
4746 if test $ac_cv_header_stdc = yes; then
4748 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4752 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4753 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4754 inttypes.h stdint.h unistd.h
4756 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4757 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4759 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4760 cat >>confdefs.h <<_ACEOF
4761 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4769 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4770 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4771 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
4776 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
4777 if test "x$ac_cv_header_crypt_h" = xyes; then :
4778 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
4783 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
4784 if test "x$ac_cv_header_langinfo_h" = xyes; then :
4785 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
4790 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4791 if test "x$ac_cv_header_malloc_h" = xyes; then :
4792 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
4797 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4798 if test "x$ac_cv_header_shadow_h" = xyes; then :
4799 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
4804 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4805 if test "x$ac_cv_header_stdint_h" = xyes; then :
4806 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
4811 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4812 if test "x$ac_cv_header_string_h" = xyes; then :
4813 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
4818 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
4819 if test "x$ac_cv_header_strings_h" = xyes; then :
4820 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
4825 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
4826 if test "x$ac_cv_header_bstring_h" = xyes; then :
4827 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
4832 ac_fn_c_check_header_mongrel "$LINENO" "usersec.h" "ac_cv_header_usersec_h" "$ac_includes_default"
4833 if test "x$ac_cv_header_usersec_h" = xyes; then :
4834 $as_echo "#define HAVE_USERSEC_H 1" >>confdefs.h
4839 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4840 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
4841 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
4846 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4847 if test "x$ac_cv_header_sys_param_h" = xyes; then :
4848 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
4853 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
4854 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
4855 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
4860 ac_fn_c_check_header_mongrel "$LINENO" "scsi/sg.h" "ac_cv_header_scsi_sg_h" "$ac_includes_default"
4861 if test "x$ac_cv_header_scsi_sg_h" = xyes; then :
4862 $as_echo "#define HAVE_SCSI_SG_H 1" >>confdefs.h
4868 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
4869 if test "x$ac_cv_header_iconv_h" = xyes; then :
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
4873 $as_echo_n "checking for library containing iconv_open... " >&6; }
4874 if ${ac_cv_search_iconv_open+:} false; then :
4875 $as_echo_n "(cached) " >&6
4877 ac_func_search_save_LIBS=$LIBS
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4881 /* Override any GCC internal prototype to avoid an error.
4882 Use char because int might match the return type of a GCC
4883 builtin and then its argument prototype would still apply. */
4891 return iconv_open ();
4896 for ac_lib in '' iconv; do
4897 if test -z "$ac_lib"; then
4898 ac_res="none required"
4901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4903 if ac_fn_c_try_link "$LINENO"; then :
4904 ac_cv_search_iconv_open=$ac_res
4906 rm -f core conftest.err conftest.$ac_objext \
4908 if ${ac_cv_search_iconv_open+:} false; then :
4912 if ${ac_cv_search_iconv_open+:} false; then :
4915 ac_cv_search_iconv_open=no
4918 LIBS=$ac_func_search_save_LIBS
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
4921 $as_echo "$ac_cv_search_iconv_open" >&6; }
4922 ac_res=$ac_cv_search_iconv_open
4923 if test "$ac_res" != no; then :
4924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4925 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
4927 SAVELIBS="$SAVELIBS $LIBS"
4936 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
4937 if test "x$ac_cv_header_mxml_h" = xyes; then :
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
4940 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
4941 if ${ac_cv_search_mmxlNewElement+:} false; then :
4942 $as_echo_n "(cached) " >&6
4944 ac_func_search_save_LIBS=$LIBS
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4948 /* Override any GCC internal prototype to avoid an error.
4949 Use char because int might match the return type of a GCC
4950 builtin and then its argument prototype would still apply. */
4954 char mmxlNewElement ();
4958 return mmxlNewElement ();
4963 for ac_lib in '' mxml; do
4964 if test -z "$ac_lib"; then
4965 ac_res="none required"
4968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4970 if ac_fn_c_try_link "$LINENO"; then :
4971 ac_cv_search_mmxlNewElement=$ac_res
4973 rm -f core conftest.err conftest.$ac_objext \
4975 if ${ac_cv_search_mmxlNewElement+:} false; then :
4979 if ${ac_cv_search_mmxlNewElement+:} false; then :
4982 ac_cv_search_mmxlNewElement=no
4985 LIBS=$ac_func_search_save_LIBS
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
4988 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
4989 ac_res=$ac_cv_search_mmxlNewElement
4990 if test "$ac_res" != no; then :
4991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4992 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5003 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5004 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5005 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5010 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5011 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5012 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5017 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5018 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5019 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5024 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5025 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5026 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5031 for ac_func in statfs statvfs
5033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5034 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5035 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5036 cat >>confdefs.h <<_ACEOF
5037 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5044 for ac_func in strdup strlcat strlcpy
5046 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5047 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5048 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5049 cat >>confdefs.h <<_ACEOF
5050 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5056 if test "$uname" = "HP-UX" -a "$uversion" = "1020"; then
5057 echo Forcing snprintf emulation for HP-UX.
5059 for ac_func in snprintf vsnprintf
5061 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5062 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5063 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5064 cat >>confdefs.h <<_ACEOF
5065 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5073 for ac_func in random lrand48 arc4random
5075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5076 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5077 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5078 cat >>confdefs.h <<_ACEOF
5079 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5086 for ac_func in geteuid
5088 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5089 if test "x$ac_cv_func_geteuid" = xyes; then :
5090 cat >>confdefs.h <<_ACEOF
5091 #define HAVE_GETEUID 1
5098 for ac_func in setpgid
5100 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5101 if test "x$ac_cv_func_setpgid" = xyes; then :
5102 cat >>confdefs.h <<_ACEOF
5103 #define HAVE_SETPGID 1
5110 for ac_func in vsyslog
5112 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5113 if test "x$ac_cv_func_vsyslog" = xyes; then :
5114 cat >>confdefs.h <<_ACEOF
5115 #define HAVE_VSYSLOG 1
5124 # Do not use sigset on Linux or GNU HURD
5127 # Use sigset on other platforms, if available
5128 for ac_func in sigset
5130 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5131 if test "x$ac_cv_func_sigset" = xyes; then :
5132 cat >>confdefs.h <<_ACEOF
5133 #define HAVE_SIGSET 1
5142 for ac_func in sigaction
5144 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5145 if test "x$ac_cv_func_sigaction" = xyes; then :
5146 cat >>confdefs.h <<_ACEOF
5147 #define HAVE_SIGACTION 1
5154 for ac_func in waitpid wait3
5156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5157 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5158 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5159 cat >>confdefs.h <<_ACEOF
5160 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5168 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5176 int o = t.tm_gmtoff;
5181 if ac_fn_c_try_compile "$LINENO"; then :
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5183 $as_echo "yes" >&6; }
5184 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5193 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 #include <sys/stat.h>
5206 if ac_fn_c_try_compile "$LINENO"; then :
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208 $as_echo "yes" >&6; }
5209 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 for ac_func in removefile
5219 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5220 if test "x$ac_cv_func_removefile" = xyes; then :
5221 cat >>confdefs.h <<_ACEOF
5222 #define HAVE_REMOVEFILE 1
5229 # Check whether --enable-libusb was given.
5230 if test "${enable_libusb+set}" = set; then :
5231 enableval=$enable_libusb;
5240 if test "x$PKGCONFIG" != x; then
5241 if test x$enable_libusb = xyes -o $uname != Darwin; then
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5243 $as_echo_n "checking for libusb-1.0... " >&6; }
5244 if $PKGCONFIG --exists libusb-1.0; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5246 $as_echo "yes" >&6; }
5247 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5249 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5250 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5251 USBQUIRKS="\$(DATADIR)/usb"
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5257 elif test x$enable_libusb = xyes; then
5258 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5261 # Check whether --enable-tcp_wrappers was given.
5262 if test "${enable_tcp_wrappers+set}" = set; then :
5263 enableval=$enable_tcp_wrappers;
5270 if test x$enable_tcp_wrappers = xyes; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5272 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5273 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5274 $as_echo_n "(cached) " >&6
5276 ac_check_lib_save_LIBS=$LIBS
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5281 /* Override any GCC internal prototype to avoid an error.
5282 Use char because int might match the return type of a GCC
5283 builtin and then its argument prototype would still apply. */
5287 char hosts_access ();
5291 return hosts_access ();
5296 if ac_fn_c_try_link "$LINENO"; then :
5297 ac_cv_lib_wrap_hosts_access=yes
5299 ac_cv_lib_wrap_hosts_access=no
5301 rm -f core conftest.err conftest.$ac_objext \
5302 conftest$ac_exeext conftest.$ac_ext
5303 LIBS=$ac_check_lib_save_LIBS
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5306 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5307 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5309 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5310 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5311 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5323 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5324 if test "x$ac_cv_header_zlib_h" = xyes; then :
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5326 $as_echo_n "checking for gzgets in -lz... " >&6; }
5327 if ${ac_cv_lib_z_gzgets+:} false; then :
5328 $as_echo_n "(cached) " >&6
5330 ac_check_lib_save_LIBS=$LIBS
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5335 /* Override any GCC internal prototype to avoid an error.
5336 Use char because int might match the return type of a GCC
5337 builtin and then its argument prototype would still apply. */
5350 if ac_fn_c_try_link "$LINENO"; then :
5351 ac_cv_lib_z_gzgets=yes
5353 ac_cv_lib_z_gzgets=no
5355 rm -f core conftest.err conftest.$ac_objext \
5356 conftest$ac_exeext conftest.$ac_ext
5357 LIBS=$ac_check_lib_save_LIBS
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5360 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5361 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5362 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5367 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5368 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5369 $as_echo_n "(cached) " >&6
5371 ac_check_lib_save_LIBS=$LIBS
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5376 /* Override any GCC internal prototype to avoid an error.
5377 Use char because int might match the return type of a GCC
5378 builtin and then its argument prototype would still apply. */
5382 char inflateCopy ();
5386 return inflateCopy ();
5391 if ac_fn_c_try_link "$LINENO"; then :
5392 ac_cv_lib_z_inflateCopy=yes
5394 ac_cv_lib_z_inflateCopy=no
5396 rm -f core conftest.err conftest.$ac_objext \
5397 conftest$ac_exeext conftest.$ac_ext
5398 LIBS=$ac_check_lib_save_LIBS
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5401 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5402 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5403 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5407 if test "x$GZIP" != z; then
5436 # Check whether --enable-acl was given.
5437 if test "${enable_acl+set}" = set; then :
5438 enableval=$enable_acl;
5441 if test "x$enable_acl" != xno; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5443 $as_echo_n "checking for library containing acl_init... " >&6; }
5444 if ${ac_cv_search_acl_init+:} false; then :
5445 $as_echo_n "(cached) " >&6
5447 ac_func_search_save_LIBS=$LIBS
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5451 /* Override any GCC internal prototype to avoid an error.
5452 Use char because int might match the return type of a GCC
5453 builtin and then its argument prototype would still apply. */
5466 for ac_lib in '' acl; do
5467 if test -z "$ac_lib"; then
5468 ac_res="none required"
5471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5473 if ac_fn_c_try_link "$LINENO"; then :
5474 ac_cv_search_acl_init=$ac_res
5476 rm -f core conftest.err conftest.$ac_objext \
5478 if ${ac_cv_search_acl_init+:} false; then :
5482 if ${ac_cv_search_acl_init+:} false; then :
5485 ac_cv_search_acl_init=no
5488 LIBS=$ac_func_search_save_LIBS
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5491 $as_echo "$ac_cv_search_acl_init" >&6; }
5492 ac_res=$ac_cv_search_acl_init
5493 if test "$ac_res" != no; then :
5494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5495 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5499 SERVERLIBS="$SERVERLIBS $LIBS"
5503 if test -d /etc/dbus-1; then
5504 DBUSDIR="/etc/dbus-1"
5509 # Check whether --enable-dbus was given.
5510 if test "${enable_dbus+set}" = set; then :
5511 enableval=$enable_dbus;
5515 # Check whether --with-dbusdir was given.
5516 if test "${with_dbusdir+set}" = set; then :
5517 withval=$with_dbusdir; DBUSDIR="$withval"
5522 DBUS_NOTIFIERLIBS=""
5524 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5526 $as_echo_n "checking for DBUS... " >&6; }
5527 if $PKGCONFIG --exists dbus-1; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5529 $as_echo "yes" >&6; }
5530 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5532 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5533 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5534 DBUS_NOTIFIER="dbus"
5535 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5537 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5538 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5539 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5540 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547 $as_echo "no" >&6; }
5555 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5556 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5557 CUPS_SYSTEM_AUTHKEY=""
5562 BACKLIBS="$BACKLIBS -framework IOKit"
5563 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5564 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5566 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5567 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5568 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5573 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5574 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5575 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5580 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5581 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5582 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5587 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5588 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5589 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5594 ac_fn_c_check_header_mongrel "$LINENO" "IOKit/pwr_mgt/IOPMLibPrivate.h" "ac_cv_header_IOKit_pwr_mgt_IOPMLibPrivate_h" "$ac_includes_default"
5595 if test "x$ac_cv_header_IOKit_pwr_mgt_IOPMLibPrivate_h" = xyes; then :
5596 $as_echo "#define HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H 1" >>confdefs.h
5602 for ac_func in SCDynamicStoreCopyComputerName
5604 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5605 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5606 cat >>confdefs.h <<_ACEOF
5607 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5614 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5615 if test "x$ac_cv_header_membership_h" = xyes; then :
5616 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5621 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5622 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5623 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5628 for ac_func in mbr_uid_to_uuid
5630 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5631 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5632 cat >>confdefs.h <<_ACEOF
5633 #define HAVE_MBR_UID_TO_UUID 1
5640 for ac_func in vproc_transaction_begin
5642 ac_fn_c_check_func "$LINENO" "vproc_transaction_begin" "ac_cv_func_vproc_transaction_begin"
5643 if test "x$ac_cv_func_vproc_transaction_begin" = xyes; then :
5644 cat >>confdefs.h <<_ACEOF
5645 #define HAVE_VPROC_TRANSACTION_BEGIN 1
5652 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5653 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5654 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5660 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5661 if test "x$ac_cv_header_notify_h" = xyes; then :
5662 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5667 for ac_func in notify_post
5669 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5670 if test "x$ac_cv_func_notify_post" = xyes; then :
5671 cat >>confdefs.h <<_ACEOF
5672 #define HAVE_NOTIFY_POST 1
5680 # Check whether --with-adminkey was given.
5681 if test "${with_adminkey+set}" = set; then :
5682 withval=$with_adminkey; default_adminkey="$withval"
5684 default_adminkey="default"
5688 # Check whether --with-operkey was given.
5689 if test "${with_operkey+set}" = set; then :
5690 withval=$with_operkey; default_operkey="$withval"
5692 default_operkey="default"
5696 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5697 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5699 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5702 if test "x$default_adminkey" != xdefault; then
5703 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5704 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5705 elif grep -q system.print.operator /etc/authorization; then
5706 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5707 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5709 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences"
5710 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.preferences"
5713 if test "x$default_operkey" != xdefault; then
5714 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5715 elif grep -q system.print.operator /etc/authorization; then
5716 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5718 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin"
5723 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
5724 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
5725 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
5731 if test $uversion -ge 100; then
5732 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5733 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5734 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5740 if test $uversion -ge 110 -a $uversion -lt 120; then
5741 # Broken public headers in 10.7.x...
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5743 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5744 if test -f /usr/local/include/sandbox/private.h; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5746 $as_echo "yes" >&6; }
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5750 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
5754 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5755 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5756 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5758 INSTALLXPC="install-xpc"
5762 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
5763 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
5764 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
5773 cat >>confdefs.h <<_ACEOF
5774 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
5777 cat >>confdefs.h <<_ACEOF
5778 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
5787 # Check whether --with-components was given.
5788 if test "${with_components+set}" = set; then :
5789 withval=$with_components; COMPONENTS="$withval"
5793 case "$COMPONENTS" in
5795 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
5799 BUILDDIRS="data locale"
5803 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
5813 if test "$prefix" = "NONE"; then
5817 if test "$exec_prefix" = "NONE"; then
5818 if test "$prefix" = "/"; then
5821 exec_prefix="$prefix"
5825 if test "$bindir" = "\${exec_prefix}/bin"; then
5826 bindir="$exec_prefix/bin"
5829 cat >>confdefs.h <<_ACEOF
5830 #define CUPS_BINDIR "$bindir"
5834 if test "$sbindir" = "\${exec_prefix}/sbin"; then
5835 sbindir="$exec_prefix/sbin"
5838 cat >>confdefs.h <<_ACEOF
5839 #define CUPS_SBINDIR "$sbindir"
5843 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
5844 sharedstatedir="/usr/com"
5847 if test "$datarootdir" = "\${prefix}/share"; then
5848 if test "$prefix" = "/"; then
5849 datarootdir="/usr/share"
5851 datarootdir="$prefix/share"
5855 if test "$datadir" = "\${prefix}/share"; then
5856 if test "$prefix" = "/"; then
5857 datadir="/usr/share"
5859 datadir="$prefix/share"
5861 elif test "$datadir" = "\${datarootdir}"; then
5862 datadir="$datarootdir"
5865 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
5866 includedir="/usr/include"
5869 if test "$localstatedir" = "\${prefix}/var"; then
5870 if test "$prefix" = "/"; then
5871 if test "$uname" = Darwin; then
5872 localstatedir="/private/var"
5874 localstatedir="/var"
5877 localstatedir="$prefix/var"
5881 if test "$sysconfdir" = "\${prefix}/etc"; then
5882 if test "$prefix" = "/"; then
5883 if test "$uname" = Darwin; then
5884 sysconfdir="/private/etc"
5889 sysconfdir="$prefix/etc"
5893 if test "$libdir" = "\${exec_prefix}/lib"; then
5896 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
5897 libdir="$exec_prefix/lib64"
5901 if test -d /usr/lib/hpux32; then
5902 libdir="$exec_prefix/lib/hpux32"
5909 # Check whether --with-privateinclude was given.
5910 if test "${with_privateinclude+set}" = set; then :
5911 withval=$with_privateinclude; privateinclude="$withval"
5916 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
5917 PRIVATEINCLUDE="$privateinclude/cups"
5926 # Check whether --with-rcdir was given.
5927 if test "${with_rcdir+set}" = set; then :
5928 withval=$with_rcdir; rcdir="$withval"
5934 # Check whether --with-rclevels was given.
5935 if test "${with_rclevels+set}" = set; then :
5936 withval=$with_rclevels; rclevels="$withval"
5942 # Check whether --with-rcstart was given.
5943 if test "${with_rcstart+set}" = set; then :
5944 withval=$with_rcstart; rcstart="$withval"
5950 # Check whether --with-rcstop was given.
5951 if test "${with_rcstop+set}" = set; then :
5952 withval=$with_rcstop; rcstop="$withval"
5958 # Check whether --with-smfmanifestdir was given.
5959 if test "${with_smfmanifestdir+set}" = set; then :
5960 withval=$with_smfmanifestdir; smfmanifestdir="$withval"
5968 RCLEVELS="$rclevels"
5973 if test x$rcdir = x; then
5980 # Darwin and MacOS X...
5981 if test -x /sbin/launchd; then
5982 INITDDIR="/System/Library/LaunchDaemons"
5984 INITDDIR="/System/Library/StartupItems/PrintingServices"
5988 FreeBSD* | OpenBSD* | MirBSD* | ekkoBSD*)
5989 # FreeBSD and OpenBSD
5999 Linux | GNU | GNU/k*BSD*)
6000 # Linux/HURD seems to choose an init.d directory at random...
6001 if test -d /sbin/init.d; then
6003 INITDIR="/sbin/init.d"
6005 if test -d /etc/init.d; then
6019 INITDDIR="/etc/rc.d"
6028 if test "x$smfmanifestdir" != x; then
6029 SMFMANIFESTDIR=$smfmanifestdir
6041 elif test "x$rcdir" != xno; then
6042 if test "x$rclevels" = x; then
6057 # Check whether --with-xinetd was given.
6058 if test "${with_xinetd+set}" = set; then :
6059 withval=$with_xinetd; XINETD="$withval"
6065 if test "x$XINETD" = x -a ! -x /sbin/launchd; then
6066 for dir in /private/etc/xinetd.d /etc/xinetd.d /usr/local/etc/xinetd.d; do
6067 if test -d $dir; then
6072 elif test "x$XINETD" = xno; then
6079 # Check whether --with-lpdconfig was given.
6080 if test "${with_lpdconfig+set}" = set; then :
6081 withval=$with_lpdconfig; LPDCONFIG="$withval"
6087 if test "x$LPDCONFIG" = x; then
6088 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6089 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6090 elif test "x$XINETD" != x; then
6091 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6095 if test "x$LPDCONFIG" = xoff; then
6096 cat >>confdefs.h <<_ACEOF
6097 #define CUPS_DEFAULT_LPD_CONFIG ""
6101 cat >>confdefs.h <<_ACEOF
6102 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6108 # Check whether --with-smbconfig was given.
6109 if test "${with_smbconfig+set}" = set; then :
6110 withval=$with_smbconfig; SMBCONFIG="$withval"
6116 if test "x$SMBCONFIG" = x; then
6117 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6118 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6120 for dir in /etc /etc/samba /usr/local/etc; do
6121 if test -f $dir/smb.conf; then
6122 SMBCONFIG="samba://$dir/smb.conf"
6129 if test "x$SMBCONFIG" = xoff; then
6130 cat >>confdefs.h <<_ACEOF
6131 #define CUPS_DEFAULT_SMB_CONFIG ""
6135 cat >>confdefs.h <<_ACEOF
6136 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6143 # Check whether --with-cachedir was given.
6144 if test "${with_cachedir+set}" = set; then :
6145 withval=$with_cachedir; cachedir="$withval"
6151 if test x$cachedir = x; then
6152 if test "x$uname" = xDarwin; then
6153 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6155 CUPS_CACHEDIR="$localstatedir/cache/cups"
6158 CUPS_CACHEDIR="$cachedir"
6160 cat >>confdefs.h <<_ACEOF
6161 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6167 CUPS_DATADIR="$datadir/cups"
6168 cat >>confdefs.h <<_ACEOF
6169 #define CUPS_DATADIR "$datadir/cups"
6176 # Check whether --with-icondir was given.
6177 if test "${with_icondir+set}" = set; then :
6178 withval=$with_icondir; icondir="$withval"
6184 if test "x$icondir" = x -a -d /usr/share/icons; then
6185 ICONDIR="/usr/share/icons"
6194 # Check whether --with-menudir was given.
6195 if test "${with_menudir+set}" = set; then :
6196 withval=$with_menudir; menudir="$withval"
6202 if test "x$menudir" = x -a -d /usr/share/applications; then
6203 MENUDIR="/usr/share/applications"
6210 # Documentation files
6212 # Check whether --with-docdir was given.
6213 if test "${with_docdir+set}" = set; then :
6214 withval=$with_docdir; docdir="$withval"
6220 if test x$docdir = x; then
6221 CUPS_DOCROOT="$datadir/doc/cups"
6222 docdir="$datadir/doc/cups"
6224 CUPS_DOCROOT="$docdir"
6227 cat >>confdefs.h <<_ACEOF
6228 #define CUPS_DOCROOT "$docdir"
6235 # Check whether --with-fontpath was given.
6236 if test "${with_fontpath+set}" = set; then :
6237 withval=$with_fontpath; fontpath="$withval"
6243 if test "x$fontpath" = "x"; then
6244 CUPS_FONTPATH="$datadir/cups/fonts"
6246 CUPS_FONTPATH="$fontpath"
6250 cat >>confdefs.h <<_ACEOF
6251 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6256 if test "$localedir" = "\${datarootdir}/locale"; then
6258 Linux | GNU | *BSD* | Darwin*)
6259 CUPS_LOCALEDIR="$datarootdir/locale"
6263 CUPS_LOCALEDIR="$exec_prefix/lib/nls/msg"
6267 # This is the standard System V location...
6268 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6272 CUPS_LOCALEDIR="$localedir"
6275 cat >>confdefs.h <<_ACEOF
6276 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6283 # Check whether --with-logdir was given.
6284 if test "${with_logdir+set}" = set; then :
6285 withval=$with_logdir; logdir="$withval"
6291 if test x$logdir = x; then
6292 CUPS_LOGDIR="$localstatedir/log/cups"
6293 cat >>confdefs.h <<_ACEOF
6294 #define CUPS_LOGDIR "$localstatedir/log/cups"
6298 CUPS_LOGDIR="$logdir"
6300 cat >>confdefs.h <<_ACEOF
6301 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6306 # Longer-term spool data
6307 CUPS_REQUESTS="$localstatedir/spool/cups"
6308 cat >>confdefs.h <<_ACEOF
6309 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6314 # Server executables...
6317 # *BSD and Darwin (MacOS X)
6319 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6323 INSTALL_SYSV="install-sysv"
6324 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6328 cat >>confdefs.h <<_ACEOF
6329 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6335 # Configuration files
6336 CUPS_SERVERROOT="$sysconfdir/cups"
6337 cat >>confdefs.h <<_ACEOF
6338 #define CUPS_SERVERROOT "$sysconfdir/cups"
6343 # Transient run-time state
6345 # Check whether --with-rundir was given.
6346 if test "${with_rundir+set}" = set; then :
6347 withval=$with_rundir; CUPS_STATEDIR="$withval"
6353 CUPS_STATEDIR="$CUPS_SERVERROOT"
6357 CUPS_STATEDIR="$localstatedir/run/cups"
6362 cat >>confdefs.h <<_ACEOF
6363 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6370 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6371 # New GNU "standards" break previous ones, so make sure we use
6372 # the right default location for the operating system...
6373 mandir="\${prefix}/man"
6376 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6378 Darwin* | Linux | GNU | *BSD* | AIX*)
6379 # Darwin, MacOS X, Linux, GNU HURD, *BSD, and AIX
6380 mandir="/usr/share/man"
6381 AMANDIR="/usr/share/man"
6382 PMANDIR="/usr/share/man"
6408 Linux* | GNU* | Darwin*)
6409 # Linux, GNU Hurd, and OS X
6436 DSOFLAGS="${DSOFLAGS:=}"
6438 # Check whether --enable-shared was given.
6439 if test "${enable_shared+set}" = set; then :
6440 enableval=$enable_shared;
6445 LIBCUPSBASE="lib$cupsbase"
6446 LIBCUPSSTATIC="lib$cupsbase.a"
6448 if test x$enable_shared != xno; then
6451 LIBCUPS="lib$cupsbase.so.2"
6452 LIBCUPSCGI="libcupscgi.so.1"
6453 LIBCUPSIMAGE="libcupsimage.so.2"
6454 LIBCUPSMIME="libcupsmime.so.1"
6455 LIBCUPSPPDC="libcupsppdc.so.1"
6458 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G \$(OPTIM)"
6461 LIBCUPS="lib$cupsbase.so.2"
6462 LIBCUPSCGI="libcupscgi.so.1"
6463 LIBCUPSIMAGE="libcupsimage.so.2"
6464 LIBCUPSMIME="libcupsmime.so.1"
6465 LIBCUPSPPDC="libcupsppdc.so.1"
6468 DSOFLAGS="$DSOFLAGS -Wl,-h,\`basename \$@\
` -G \$(OPTIM)"
6473 LIBCUPS="lib$cupsbase.so.2"
6474 LIBCUPSCGI="libcupscgi.so.1"
6475 LIBCUPSIMAGE="libcupsimage.so.2"
6476 LIBCUPSMIME="libcupsmime.so.1"
6477 LIBCUPSPPDC="libcupsppdc.so.1"
6480 DSOFLAGS="$DSOFLAGS -Wl,-b,-z,+h,\`basename \$@\
`"
6483 LIBCUPS="lib$cupsbase.sl.2"
6484 LIBCUPSCGI="libcupscgi.sl.1"
6485 LIBCUPSIMAGE="libcupsimage.sl.2"
6486 LIBCUPSMIME="libcupsmime.sl.1"
6487 LIBCUPSPPDC="libcupsppdc.sl.1"
6490 DSOFLAGS="$DSOFLAGS -b -z +h \`basename \$@\
`"
6495 LIBCUPS="lib$cupsbase.so.2"
6496 LIBCUPSCGI="libcupscgi.so.1"
6497 LIBCUPSIMAGE="libcupsimage.so.2"
6498 LIBCUPSMIME="libcupsmime.so.1"
6499 LIBCUPSPPDC="libcupsppdc.so.1"
6502 DSOFLAGS="$DSOFLAGS -set_version,sgi2.6,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6504 OSF1* | Linux | GNU | *BSD*)
6505 LIBCUPS="lib$cupsbase.so.2"
6506 LIBCUPSCGI="libcupscgi.so.1"
6507 LIBCUPSIMAGE="libcupsimage.so.2"
6508 LIBCUPSMIME="libcupsmime.so.1"
6509 LIBCUPSPPDC="libcupsppdc.so.1"
6512 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6515 LIBCUPS="lib$cupsbase.2.dylib"
6516 LIBCUPSCGI="libcupscgi.1.dylib"
6517 LIBCUPSIMAGE="libcupsimage.2.dylib"
6518 LIBCUPSMIME="libcupsmime.1.dylib"
6519 LIBCUPSPPDC="libcupsppdc.1.dylib"
6522 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6525 LIBCUPS="lib${cupsbase}_s.a"
6526 LIBCUPSBASE="${cupsbase}_s"
6527 LIBCUPSCGI="libcupscgi_s.a"
6528 LIBCUPSIMAGE="libcupsimage_s.a"
6529 LIBCUPSMIME="libcupsmime_s.a"
6530 LIBCUPSPPDC="libcupsppdc_s.a"
6533 DSOFLAGS="$DSOFLAGS -Wl,-bexpall,-bM:SRE,-bnoentry,-blibpath:\$(libdir)"
6536 echo "Warning: shared libraries may not be supported. Trying -shared"
6537 echo " option with compiler."
6538 LIBCUPS="lib$cupsbase.so.2"
6539 LIBCUPSCGI="libcupscgi.so.1"
6540 LIBCUPSIMAGE="libcupsimage.so.2"
6541 LIBCUPSMIME="libcupsmime.so.1"
6542 LIBCUPSPPDC="libcupsppdc.so.1"
6545 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6550 LIBCUPS="lib$cupsbase.a"
6551 LIBCUPSCGI="libcupscgi.a"
6552 LIBCUPSIMAGE="libcupsimage.a"
6553 LIBCUPSMIME="libcupsmime.a"
6554 LIBCUPSPPDC="libcupsppdc.a"
6570 if test x$enable_shared = xno; then
6571 LINKCUPS="../cups/lib$cupsbase.a"
6572 LINKCUPSIMAGE="../filter/libcupsimage.a"
6574 EXTLINKCUPS="-lcups"
6575 EXTLINKCUPSIMAGE="-lcupsimage"
6577 if test $uname = AIX; then
6578 LINKCUPS="-l${cupsbase}_s"
6579 LINKCUPSIMAGE="-lcupsimage_s"
6581 EXTLINKCUPS="-lcups_s"
6582 EXTLINKCUPSIMAGE="-lcupsimage_s"
6584 LINKCUPS="-l${cupsbase}"
6585 LINKCUPSIMAGE="-lcupsimage"
6587 EXTLINKCUPS="-lcups"
6588 EXTLINKCUPSIMAGE="-lcupsimage"
6599 if test "$DSO" != ":"; then
6600 # When using DSOs the image libraries are linked to libcupsimage.so
6601 # rather than to the executables. This makes things smaller if you
6602 # are using any static libraries, and it also allows us to distribute
6603 # a single DSO rather than a bunch...
6607 # Tell the run-time linkers where to find a DSO. Some platforms
6608 # need this option, even when the library is installed in a
6609 # standard location...
6612 # HP-UX needs the path, even for /usr/lib...
6615 DSOFLAGS="-Wl,+s,+b,$libdir $DSOFLAGS"
6618 DSOFLAGS="+s +b $libdir $DSOFLAGS"
6621 LDFLAGS="$LDFLAGS -Wl,+s,+b,$libdir"
6622 EXPORT_LDFLAGS="-Wl,+s,+b,$libdir"
6626 if test $exec_prefix != /usr; then
6627 DSOFLAGS="-R$libdir $DSOFLAGS"
6628 LDFLAGS="$LDFLAGS -R$libdir"
6629 EXPORT_LDFLAGS="-R$libdir"
6634 if test $exec_prefix != /usr; then
6635 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6636 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6637 EXPORT_LDFLAGS="-Wl,-R$libdir"
6641 # Linux, and HURD...
6642 if test $exec_prefix != /usr; then
6643 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6644 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6645 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6660 # Check whether --enable-libtool_unsupported was given.
6661 if test "${enable_libtool_unsupported+set}" = set; then :
6662 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6663 LIBTOOL="$enable_libtool_unsupported"
6665 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6666 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6675 if test x$LIBTOOL != x; then
6676 LIBCUPS="libcups.la"
6677 LIBCUPSIMAGE="libcupsimage.la"
6678 LINKCUPS="../cups/\$(LIBCUPS)"
6679 LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
6691 # Check whether --with-optim was given.
6692 if test "${with_optim+set}" = set; then :
6693 withval=$with_optim;
6696 # Check whether --enable-debug was given.
6697 if test "${enable_debug+set}" = set; then :
6698 enableval=$enable_debug;
6701 # Check whether --enable-debug_guards was given.
6702 if test "${enable_debug_guards+set}" = set; then :
6703 enableval=$enable_debug_guards;
6706 # Check whether --enable-debug_printfs was given.
6707 if test "${enable_debug_printfs+set}" = set; then :
6708 enableval=$enable_debug_printfs;
6711 # Check whether --enable-unit_tests was given.
6712 if test "${enable_unit_tests+set}" = set; then :
6713 enableval=$enable_unit_tests;
6717 if test x$enable_debug = xyes; then
6723 if test x$enable_debug_printfs = xyes; then
6724 CFLAGS="$CFLAGS -DDEBUG"
6725 CXXFLAGS="$CXXFLAGS -DDEBUG"
6728 if test x$enable_debug_guards = xyes; then
6729 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6730 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6733 if test x$enable_unit_tests = xyes; then
6734 UNITTESTS="unittests"
6741 # Check whether --with-archflags was given.
6742 if test "${with_archflags+set}" = set; then :
6743 withval=$with_archflags;
6747 # Check whether --with-ldarchflags was given.
6748 if test "${with_ldarchflags+set}" = set; then :
6749 withval=$with_ldarchflags;
6753 if test -z "$with_archflags"; then
6756 ARCHFLAGS="$with_archflags"
6759 if test -z "$with_ldarchflags"; then
6760 if test "$uname" = Darwin; then
6761 # Only create Intel programs by default
6762 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6764 LDARCHFLAGS="$ARCHFLAGS"
6767 LDARCHFLAGS="$with_ldarchflags"
6773 # Check whether --enable-relro was given.
6774 if test "${enable_relro+set}" = set; then :
6775 enableval=$enable_relro;
6779 CXXLIBS="${CXXLIBS:=}"
6788 if test -n "$GCC"; then
6789 # Add GCC-specific compiler options...
6790 if test -z "$OPTIM"; then
6791 if test "x$with_optim" = x; then
6792 # Default to optimize-for-size and debug
6795 OPTIM="$with_optim $OPTIM"
6799 # Generate position-independent code as needed...
6800 if test $PICFLAG = 1 -a $uname != AIX; then
6801 OPTIM="-fPIC $OPTIM"
6804 # The -fstack-protector option is available with some versions of
6805 # GCC and adds "stack canaries" which detect when the return address
6806 # has been overwritten, preventing many types of exploit attacks.
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fstack-protector" >&5
6808 $as_echo_n "checking if GCC supports -fstack-protector... " >&6; }
6810 CFLAGS="$CFLAGS -fstack-protector"
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6822 if ac_fn_c_try_link "$LINENO"; then :
6823 if test "x$LSB_BUILD" = xy; then
6824 # Can't use stack-protector with LSB binaries...
6825 OPTIM="$OPTIM -fno-stack-protector"
6827 OPTIM="$OPTIM -fstack-protector"
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6830 $as_echo "yes" >&6; }
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6835 rm -f core conftest.err conftest.$ac_objext \
6836 conftest$ac_exeext conftest.$ac_ext
6839 if test "x$LSB_BUILD" != xy; then
6840 # The -fPIE option is available with some versions of GCC and
6841 # adds randomization of addresses, which avoids another class of
6842 # exploits that depend on a fixed address for common functions.
6844 # Not available to LSB binaries...
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fPIE" >&5
6846 $as_echo_n "checking if GCC supports -fPIE... " >&6; }
6850 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6862 if ac_fn_c_try_compile "$LINENO"; then :
6864 PIEFLAGS="-fPIE -Wl,-pie"
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6866 $as_echo "yes" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875 CFLAGS="$CFLAGS -fPIE -pie"
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6887 if ac_fn_c_try_compile "$LINENO"; then :
6889 PIEFLAGS="-fPIE -pie"
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6891 $as_echo "yes" >&6; }
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 if test "x$with_optim" = x; then
6903 # Add useful warning options for tracking down problems...
6904 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
6906 # Additional warning options for development testing...
6907 if test -d .svn; then
6908 OPTIM="-Wshadow -Werror $OPTIM"
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -Wno-tautological-compare" >&5
6911 $as_echo_n "checking if GCC supports -Wno-tautological-compare... " >&6; }
6913 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6925 if ac_fn_c_try_compile "$LINENO"; then :
6926 OPTIM="$OPTIM -Wno-tautological-compare"
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6928 $as_echo "yes" >&6; }
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940 # -D_FORTIFY_SOURCE=2 adds additional object size
6941 # checking, basically wrapping all string functions
6942 # with buffer-limited ones. Not strictly needed for
6943 # CUPS since we already use buffer-limited calls, but
6944 # this will catch any additions that are broken.
6945 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
6949 # The -z relro option is provided by the Linux linker command to
6950 # make relocatable data read-only.
6951 if test x$enable_relro = xyes; then
6952 RELROFLAGS="-Wl,-z,relro"
6957 # Add vendor-specific compiler options...
6960 if test -z "$OPTIM"; then
6961 if test "x$with_optim" = x; then
6962 OPTIM="-O2 -qmaxmem=6000"
6964 OPTIM="$with_optim $OPTIM"
6969 if test -z "$OPTIM"; then
6970 if test "x$with_optim" = x; then
6973 OPTIM="$with_optim $OPTIM"
6977 CFLAGS="-Ae $CFLAGS"
6979 if test $PICFLAG = 1; then
6984 # Tru64 UNIX aka Digital UNIX aka OSF/1
6985 if test -z "$OPTIM"; then
6986 if test "x$with_optim" = x; then
6995 if test -z "$OPTIM"; then
6996 if test "x$with_optim" = x; then
6999 OPTIM="$with_optim $OPTIM"
7003 if test $PICFLAG = 1; then
7004 OPTIM="-KPIC $OPTIM"
7009 if test -z "$OPTIM"; then
7010 if test "x$with_optim" = x; then
7013 OPTIM="$with_optim $OPTIM"
7017 if test $PICFLAG = 1; then
7018 OPTIM="-KPIC $OPTIM"
7022 # Running some other operating system; inform the user they
7023 # should contribute the necessary options to
7024 # cups-support@cups.org...
7025 echo "Building CUPS with default compiler optimizations; contact"
7026 echo "cups-bugs@cups.org with uname and compiler options needed"
7027 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7028 echo "variables before running configure."
7033 # Add general compiler options per platform...
7036 # HP-UX 10.20 (at least) needs this definition to get the
7038 OPTIM="$OPTIM -D_XOPEN_SOURCE_EXTENDED"
7040 # HP-UX 11.00 (at least) needs this definition to get the
7041 # u_short type used by the IP headers...
7042 OPTIM="$OPTIM -D_INCLUDE_HPUX_SOURCE"
7044 # HP-UX 11.23 (at least) needs this definition to get the
7045 # IPv6 header to work...
7046 OPTIM="$OPTIM -D_HPUX_SOURCE"
7050 # glibc 2.8 and higher breaks peer credentials unless you
7051 # define _GNU_SOURCE...
7052 OPTIM="$OPTIM -D_GNU_SOURCE"
7056 # Tru64 UNIX aka Digital UNIX aka OSF/1 need to be told
7057 # to be POSIX-compliant...
7058 OPTIM="$OPTIM -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_OSF_SOURCE"
7065 ac_fn_c_check_header_mongrel "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default"
7066 if test "x$ac_cv_header_resolv_h" = xyes; then :
7067 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7073 $as_echo_n "checking for library containing socket... " >&6; }
7074 if ${ac_cv_search_socket+:} false; then :
7075 $as_echo_n "(cached) " >&6
7077 ac_func_search_save_LIBS=$LIBS
7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7081 /* Override any GCC internal prototype to avoid an error.
7082 Use char because int might match the return type of a GCC
7083 builtin and then its argument prototype would still apply. */
7096 for ac_lib in '' socket; do
7097 if test -z "$ac_lib"; then
7098 ac_res="none required"
7101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7103 if ac_fn_c_try_link "$LINENO"; then :
7104 ac_cv_search_socket=$ac_res
7106 rm -f core conftest.err conftest.$ac_objext \
7108 if ${ac_cv_search_socket+:} false; then :
7112 if ${ac_cv_search_socket+:} false; then :
7115 ac_cv_search_socket=no
7118 LIBS=$ac_func_search_save_LIBS
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7121 $as_echo "$ac_cv_search_socket" >&6; }
7122 ac_res=$ac_cv_search_socket
7123 if test "$ac_res" != no; then :
7124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7129 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7130 if ${ac_cv_search_gethostbyaddr+:} false; then :
7131 $as_echo_n "(cached) " >&6
7133 ac_func_search_save_LIBS=$LIBS
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7137 /* Override any GCC internal prototype to avoid an error.
7138 Use char because int might match the return type of a GCC
7139 builtin and then its argument prototype would still apply. */
7143 char gethostbyaddr ();
7147 return gethostbyaddr ();
7152 for ac_lib in '' nsl; do
7153 if test -z "$ac_lib"; then
7154 ac_res="none required"
7157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7159 if ac_fn_c_try_link "$LINENO"; then :
7160 ac_cv_search_gethostbyaddr=$ac_res
7162 rm -f core conftest.err conftest.$ac_objext \
7164 if ${ac_cv_search_gethostbyaddr+:} false; then :
7168 if ${ac_cv_search_gethostbyaddr+:} false; then :
7171 ac_cv_search_gethostbyaddr=no
7174 LIBS=$ac_func_search_save_LIBS
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7177 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7178 ac_res=$ac_cv_search_gethostbyaddr
7179 if test "$ac_res" != no; then :
7180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7185 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7186 if ${ac_cv_search_getifaddrs+:} false; then :
7187 $as_echo_n "(cached) " >&6
7189 ac_func_search_save_LIBS=$LIBS
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7193 /* Override any GCC internal prototype to avoid an error.
7194 Use char because int might match the return type of a GCC
7195 builtin and then its argument prototype would still apply. */
7203 return getifaddrs ();
7208 for ac_lib in '' nsl; do
7209 if test -z "$ac_lib"; then
7210 ac_res="none required"
7213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7215 if ac_fn_c_try_link "$LINENO"; then :
7216 ac_cv_search_getifaddrs=$ac_res
7218 rm -f core conftest.err conftest.$ac_objext \
7220 if ${ac_cv_search_getifaddrs+:} false; then :
7224 if ${ac_cv_search_getifaddrs+:} false; then :
7227 ac_cv_search_getifaddrs=no
7230 LIBS=$ac_func_search_save_LIBS
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7233 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7234 ac_res=$ac_cv_search_getifaddrs
7235 if test "$ac_res" != no; then :
7236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7237 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7242 $as_echo_n "checking for library containing hstrerror... " >&6; }
7243 if ${ac_cv_search_hstrerror+:} false; then :
7244 $as_echo_n "(cached) " >&6
7246 ac_func_search_save_LIBS=$LIBS
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7250 /* Override any GCC internal prototype to avoid an error.
7251 Use char because int might match the return type of a GCC
7252 builtin and then its argument prototype would still apply. */
7260 return hstrerror ();
7265 for ac_lib in '' nsl socket resolv; do
7266 if test -z "$ac_lib"; then
7267 ac_res="none required"
7270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7272 if ac_fn_c_try_link "$LINENO"; then :
7273 ac_cv_search_hstrerror=$ac_res
7275 rm -f core conftest.err conftest.$ac_objext \
7277 if ${ac_cv_search_hstrerror+:} false; then :
7281 if ${ac_cv_search_hstrerror+:} false; then :
7284 ac_cv_search_hstrerror=no
7287 LIBS=$ac_func_search_save_LIBS
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7290 $as_echo "$ac_cv_search_hstrerror" >&6; }
7291 ac_res=$ac_cv_search_hstrerror
7292 if test "$ac_res" != no; then :
7293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7294 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7299 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7300 if ${ac_cv_search_rresvport_af+:} false; then :
7301 $as_echo_n "(cached) " >&6
7303 ac_func_search_save_LIBS=$LIBS
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7307 /* Override any GCC internal prototype to avoid an error.
7308 Use char because int might match the return type of a GCC
7309 builtin and then its argument prototype would still apply. */
7313 char rresvport_af ();
7317 return rresvport_af ();
7322 for ac_lib in '' nsl; do
7323 if test -z "$ac_lib"; then
7324 ac_res="none required"
7327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7329 if ac_fn_c_try_link "$LINENO"; then :
7330 ac_cv_search_rresvport_af=$ac_res
7332 rm -f core conftest.err conftest.$ac_objext \
7334 if ${ac_cv_search_rresvport_af+:} false; then :
7338 if ${ac_cv_search_rresvport_af+:} false; then :
7341 ac_cv_search_rresvport_af=no
7344 LIBS=$ac_func_search_save_LIBS
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7347 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7348 ac_res=$ac_cv_search_rresvport_af
7349 if test "$ac_res" != no; then :
7350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7351 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7356 $as_echo_n "checking for library containing __res_init... " >&6; }
7357 if ${ac_cv_search___res_init+:} false; then :
7358 $as_echo_n "(cached) " >&6
7360 ac_func_search_save_LIBS=$LIBS
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7364 /* Override any GCC internal prototype to avoid an error.
7365 Use char because int might match the return type of a GCC
7366 builtin and then its argument prototype would still apply. */
7374 return __res_init ();
7379 for ac_lib in '' resolv bind; do
7380 if test -z "$ac_lib"; then
7381 ac_res="none required"
7384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7386 if ac_fn_c_try_link "$LINENO"; then :
7387 ac_cv_search___res_init=$ac_res
7389 rm -f core conftest.err conftest.$ac_objext \
7391 if ${ac_cv_search___res_init+:} false; then :
7395 if ${ac_cv_search___res_init+:} false; then :
7398 ac_cv_search___res_init=no
7401 LIBS=$ac_func_search_save_LIBS
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7404 $as_echo "$ac_cv_search___res_init" >&6; }
7405 ac_res=$ac_cv_search___res_init
7406 if test "$ac_res" != no; then :
7407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7408 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7412 $as_echo_n "checking for library containing res_9_init... " >&6; }
7413 if ${ac_cv_search_res_9_init+:} false; then :
7414 $as_echo_n "(cached) " >&6
7416 ac_func_search_save_LIBS=$LIBS
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7420 /* Override any GCC internal prototype to avoid an error.
7421 Use char because int might match the return type of a GCC
7422 builtin and then its argument prototype would still apply. */
7430 return res_9_init ();
7435 for ac_lib in '' resolv bind; do
7436 if test -z "$ac_lib"; then
7437 ac_res="none required"
7440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7442 if ac_fn_c_try_link "$LINENO"; then :
7443 ac_cv_search_res_9_init=$ac_res
7445 rm -f core conftest.err conftest.$ac_objext \
7447 if ${ac_cv_search_res_9_init+:} false; then :
7451 if ${ac_cv_search_res_9_init+:} false; then :
7454 ac_cv_search_res_9_init=no
7457 LIBS=$ac_func_search_save_LIBS
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7460 $as_echo "$ac_cv_search_res_9_init" >&6; }
7461 ac_res=$ac_cv_search_res_9_init
7462 if test "$ac_res" != no; then :
7463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7464 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7468 $as_echo_n "checking for library containing res_init... " >&6; }
7469 if ${ac_cv_search_res_init+:} false; then :
7470 $as_echo_n "(cached) " >&6
7472 ac_func_search_save_LIBS=$LIBS
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7476 /* Override any GCC internal prototype to avoid an error.
7477 Use char because int might match the return type of a GCC
7478 builtin and then its argument prototype would still apply. */
7491 for ac_lib in '' resolv bind; do
7492 if test -z "$ac_lib"; then
7493 ac_res="none required"
7496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7498 if ac_fn_c_try_link "$LINENO"; then :
7499 ac_cv_search_res_init=$ac_res
7501 rm -f core conftest.err conftest.$ac_objext \
7503 if ${ac_cv_search_res_init+:} false; then :
7507 if ${ac_cv_search_res_init+:} false; then :
7510 ac_cv_search_res_init=no
7513 LIBS=$ac_func_search_save_LIBS
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7516 $as_echo "$ac_cv_search_res_init" >&6; }
7517 ac_res=$ac_cv_search_res_init
7518 if test "$ac_res" != no; then :
7519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7520 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7529 # Tru64 5.1b leaks file descriptors with these functions; disable until
7530 # we can come up with a test for this...
7531 if test "$uname" != "OSF1"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7533 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7534 if ${ac_cv_search_getaddrinfo+:} false; then :
7535 $as_echo_n "(cached) " >&6
7537 ac_func_search_save_LIBS=$LIBS
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7541 /* Override any GCC internal prototype to avoid an error.
7542 Use char because int might match the return type of a GCC
7543 builtin and then its argument prototype would still apply. */
7547 char getaddrinfo ();
7551 return getaddrinfo ();
7556 for ac_lib in '' nsl; do
7557 if test -z "$ac_lib"; then
7558 ac_res="none required"
7561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7563 if ac_fn_c_try_link "$LINENO"; then :
7564 ac_cv_search_getaddrinfo=$ac_res
7566 rm -f core conftest.err conftest.$ac_objext \
7568 if ${ac_cv_search_getaddrinfo+:} false; then :
7572 if ${ac_cv_search_getaddrinfo+:} false; then :
7575 ac_cv_search_getaddrinfo=no
7578 LIBS=$ac_func_search_save_LIBS
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7581 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7582 ac_res=$ac_cv_search_getaddrinfo
7583 if test "$ac_res" != no; then :
7584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7585 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7590 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7591 if ${ac_cv_search_getnameinfo+:} false; then :
7592 $as_echo_n "(cached) " >&6
7594 ac_func_search_save_LIBS=$LIBS
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7598 /* Override any GCC internal prototype to avoid an error.
7599 Use char because int might match the return type of a GCC
7600 builtin and then its argument prototype would still apply. */
7604 char getnameinfo ();
7608 return getnameinfo ();
7613 for ac_lib in '' nsl; do
7614 if test -z "$ac_lib"; then
7615 ac_res="none required"
7618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7620 if ac_fn_c_try_link "$LINENO"; then :
7621 ac_cv_search_getnameinfo=$ac_res
7623 rm -f core conftest.err conftest.$ac_objext \
7625 if ${ac_cv_search_getnameinfo+:} false; then :
7629 if ${ac_cv_search_getnameinfo+:} false; then :
7632 ac_cv_search_getnameinfo=no
7635 LIBS=$ac_func_search_save_LIBS
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7638 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7639 ac_res=$ac_cv_search_getnameinfo
7640 if test "$ac_res" != no; then :
7641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7642 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7648 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7650 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7654 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7655 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7656 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7662 CUPS_DEFAULT_DOMAINSOCKET=""
7665 # Check whether --with-domainsocket was given.
7666 if test "${with_domainsocket+set}" = set; then :
7667 withval=$with_domainsocket; default_domainsocket="$withval"
7669 default_domainsocket=""
7673 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7674 if test "x$default_domainsocket" = x; then
7677 # Darwin and MaxOS X do their own thing...
7678 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7681 # All others use FHS standard...
7682 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7686 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7689 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7691 cat >>confdefs.h <<_ACEOF
7692 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7696 CUPS_LISTEN_DOMAINSOCKET=""
7702 for ac_header in AppleTalk/at_proto.h
7704 ac_fn_c_check_header_compile "$LINENO" "AppleTalk/at_proto.h" "ac_cv_header_AppleTalk_at_proto_h" "#include <netat/appletalk.h>
7706 if test "x$ac_cv_header_AppleTalk_at_proto_h" = xyes; then :
7707 cat >>confdefs.h <<_ACEOF
7708 #define HAVE_APPLETALK_AT_PROTO_H 1
7710 $as_echo "#define HAVE_APPLETALK_AT_PROTO_H 1" >>confdefs.h
7719 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7720 if test "x$ac_cv_func_poll" = xyes; then :
7721 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7725 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7726 if test "x$ac_cv_func_epoll_create" = xyes; then :
7727 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7731 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7732 if test "x$ac_cv_func_kqueue" = xyes; then :
7733 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7740 # Check whether --enable-gssapi was given.
7741 if test "${enable_gssapi+set}" = set; then :
7742 enableval=$enable_gssapi;
7749 if test x$enable_gssapi != xno; then
7750 # Extract the first word of "krb5-config", so it can be a program name with args.
7751 set dummy krb5-config; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7755 $as_echo_n "(cached) " >&6
7759 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7781 if test -n "$KRB5CONFIG"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7783 $as_echo "$KRB5CONFIG" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7790 if test "x$KRB5CONFIG" != x; then
7793 # OS X weak-links to the Kerberos framework...
7794 LIBGSSAPI="-weak_framework Kerberos"
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7796 $as_echo_n "checking for GSS framework... " >&6; }
7797 if test -d /System/Library/Frameworks/GSS.framework; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7799 $as_echo "yes" >&6; }
7800 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7807 # Solaris has a non-standard krb5-config, don't use it!
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7809 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7810 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7811 $as_echo_n "(cached) " >&6
7813 ac_check_lib_save_LIBS=$LIBS
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7818 /* Override any GCC internal prototype to avoid an error.
7819 Use char because int might match the return type of a GCC
7820 builtin and then its argument prototype would still apply. */
7824 char gss_display_status ();
7828 return gss_display_status ();
7833 if ac_fn_c_try_link "$LINENO"; then :
7834 ac_cv_lib_gss_gss_display_status=yes
7836 ac_cv_lib_gss_gss_display_status=no
7838 rm -f core conftest.err conftest.$ac_objext \
7839 conftest$ac_exeext conftest.$ac_ext
7840 LIBS=$ac_check_lib_save_LIBS
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7843 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7844 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7846 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7848 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7849 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7850 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7855 # Other platforms just ask for GSSAPI
7856 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7857 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7858 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7862 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7865 # Check for vendor-specific implementations...
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7869 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7870 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7871 $as_echo_n "(cached) " >&6
7873 ac_check_lib_save_LIBS=$LIBS
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7878 /* Override any GCC internal prototype to avoid an error.
7879 Use char because int might match the return type of a GCC
7880 builtin and then its argument prototype would still apply. */
7884 char gss_display_status ();
7888 return gss_display_status ();
7893 if ac_fn_c_try_link "$LINENO"; then :
7894 ac_cv_lib_gss_gss_display_status=yes
7896 ac_cv_lib_gss_gss_display_status=no
7898 rm -f core conftest.err conftest.$ac_objext \
7899 conftest$ac_exeext conftest.$ac_ext
7900 LIBS=$ac_check_lib_save_LIBS
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7903 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7904 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7906 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7908 LIBGSSAPI="-lgss -lgssapi_krb5"
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7914 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7915 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7916 $as_echo_n "(cached) " >&6
7918 ac_check_lib_save_LIBS=$LIBS
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7923 /* Override any GCC internal prototype to avoid an error.
7924 Use char because int might match the return type of a GCC
7925 builtin and then its argument prototype would still apply. */
7929 char gss_display_status ();
7933 return gss_display_status ();
7938 if ac_fn_c_try_link "$LINENO"; then :
7939 ac_cv_lib_gss_gss_display_status=yes
7941 ac_cv_lib_gss_gss_display_status=no
7943 rm -f core conftest.err conftest.$ac_objext \
7944 conftest$ac_exeext conftest.$ac_ext
7945 LIBS=$ac_check_lib_save_LIBS
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7948 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7949 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7951 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7960 if test "x$LIBGSSAPI" != x; then
7961 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
7962 if test "x$ac_cv_header_krb5_h" = xyes; then :
7963 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
7968 if test -d /System/Library/Frameworks/GSS.framework; then
7969 gssdir="/System/Library/Frameworks/GSS.framework"
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi.h presence" >&5
7971 $as_echo_n "checking for GSS/gssapi.h presence... " >&6; }
7972 if test -f $gssdir/Headers/gssapi.h; then
7973 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7976 $as_echo "yes" >&6; }
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_generic.h presence" >&5
7982 $as_echo_n "checking for GSS/gssapi_generic.h presence... " >&6; }
7983 if test -f $gssdir/Headers/gssapi_generic.h; then
7984 $as_echo "#define HAVE_GSSAPI_GENERIC_H 1" >>confdefs.h
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7987 $as_echo "yes" >&6; }
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_spi.h presence" >&5
7993 $as_echo_n "checking for GSS/gssapi_spi.h presence... " >&6; }
7994 if test -f $gssdir/PrivateHeaders/gssapi_spi.h; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7996 $as_echo "yes" >&6; }
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_spi.h usability" >&5
7998 $as_echo_n "checking for GSS/gssapi_spi.h usability... " >&6; }
7999 if test -s $gssdir/PrivateHeaders/gssapi_spi.h; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8001 $as_echo "yes" >&6; }
8002 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8011 if test $uversion -ge 110 -a $uversion -lt 120; then
8012 # Broken public headers in 10.7.x...
8013 as_fn_error $? "Run 'sudo mkdir -p $gssdir/PrivateHeaders' and 'sudo touch $gssdir/PrivateHeaders/gssapi_spi.h' to build CUPS." "$LINENO" 5
8017 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8018 if test "x$ac_cv_header_gssapi_h" = xyes; then :
8019 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8024 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8025 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8026 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8034 LIBS="$LIBS $LIBGSSAPI"
8036 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8037 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8038 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8044 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8045 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8048 #include <gssapi/gssapi.h>
8052 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8057 if ac_fn_c_try_compile "$LINENO"; then :
8058 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8061 $as_echo "yes" >&6; }
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070 #include <GSS/gssapi.h>
8074 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8079 if ac_fn_c_try_compile "$LINENO"; then :
8080 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8083 $as_echo "yes" >&6; }
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8096 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8101 if ac_fn_c_try_compile "$LINENO"; then :
8102 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8105 $as_echo "yes" >&6; }
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 # Check whether --with-gssservicename was given.
8119 if test "${with_gssservicename+set}" = set; then :
8120 withval=$with_gssservicename; default_gssservicename="$withval"
8122 default_gssservicename="default"
8126 if test x$default_gssservicename != xno; then
8127 if test "x$default_gssservicename" = "xdefault"; then
8128 CUPS_DEFAULT_GSSSERVICENAME="host"
8130 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8133 CUPS_DEFAULT_GSSSERVICENAME=""
8137 cat >>confdefs.h <<_ACEOF
8138 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8144 # Check whether --enable-threads was given.
8145 if test "${enable_threads+set}" = set; then :
8146 enableval=$enable_threads;
8153 if test "x$enable_threads" != xno; then
8154 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8155 if test "x$ac_cv_header_pthread_h" = xyes; then :
8156 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8162 if test x$ac_cv_header_pthread_h = xyes; then
8163 for flag in -lpthreads -lpthread -pthread; do
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8165 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170 #include <pthread.h>
8174 pthread_create(0, 0, 0, 0);
8179 if ac_fn_c_try_link "$LINENO"; then :
8184 rm -f core conftest.err conftest.$ac_objext \
8185 conftest$ac_exeext conftest.$ac_ext
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8187 $as_echo "$have_pthread" >&6; }
8189 if test $have_pthread = yes; then
8190 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8192 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8193 # be POSIX-compliant... :(
8194 if test $uname = SunOS; then
8195 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8207 # Check whether --enable-ssl was given.
8208 if test "${enable_ssl+set}" = set; then :
8209 enableval=$enable_ssl;
8212 # Check whether --enable-cdsassl was given.
8213 if test "${enable_cdsassl+set}" = set; then :
8214 enableval=$enable_cdsassl;
8217 # Check whether --enable-gnutls was given.
8218 if test "${enable_gnutls+set}" = set; then :
8219 enableval=$enable_gnutls;
8222 # Check whether --enable-openssl was given.
8223 if test "${enable_openssl+set}" = set; then :
8224 enableval=$enable_openssl;
8228 # Check whether --with-openssl-libs was given.
8229 if test "${with_openssl_libs+set}" = set; then :
8230 withval=$with_openssl_libs; LDFLAGS="-L$withval $LDFLAGS"
8231 DSOFLAGS="-L$withval $DSOFLAGS"
8235 # Check whether --with-openssl-includes was given.
8236 if test "${with_openssl_includes+set}" = set; then :
8237 withval=$with_openssl_includes; CFLAGS="-I$withval $CFLAGS"
8238 CPPFLAGS="-I$withval $CPPFLAGS"
8248 if test x$enable_ssl != xno; then
8249 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8250 if test $uname = Darwin; then
8251 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8252 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8255 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8257 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8259 CUPS_SERVERCERT="/Library/Keychains/System.keychain"
8261 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8262 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8263 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8268 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8269 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8270 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8275 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8276 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8277 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8282 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8284 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8285 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8290 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8291 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8292 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8297 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8298 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8299 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8304 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8305 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8306 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8311 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8312 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8313 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8319 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8327 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8328 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8329 set dummy libgnutls-config; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8333 $as_echo_n "(cached) " >&6
8335 case $LIBGNUTLSCONFIG in
8337 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8359 if test -n "$LIBGNUTLSCONFIG"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8361 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8368 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8369 set dummy libgcrypt-config; ac_word=$2
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371 $as_echo_n "checking for $ac_word... " >&6; }
8372 if ${ac_cv_path_LIBGCRYPTCONFIG+:} false; then :
8373 $as_echo_n "(cached) " >&6
8375 case $LIBGCRYPTCONFIG in
8377 ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path.
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 test -z "$as_dir" && as_dir=.
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8387 ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG
8399 if test -n "$LIBGCRYPTCONFIG"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5
8401 $as_echo "$LIBGCRYPTCONFIG" >&6; }
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8408 if $PKGCONFIG --exists gnutls; then
8410 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8411 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8412 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8414 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8416 elif test "x$LIBGNUTLSCONFIG" != x; then
8418 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8419 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8420 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8422 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8426 if test $have_ssl = 1; then
8427 CUPS_SERVERCERT="ssl/server.crt"
8428 CUPS_SERVERKEY="ssl/server.key"
8430 if $PKGCONFIG --exists gcrypt; then
8431 SSLLIBS="$SSLLIBS `$PKGCONFIG --libs gcrypt
`"
8432 SSLFLAGS="$SSLFLAGS `$PKGCONFIG --cflags gcrypt
`"
8433 elif test "x$LIBGCRYPTCONFIG" != x; then
8434 SSLLIBS="$SSLLIBS `$LIBGCRYPTCONFIG --libs`"
8435 SSLFLAGS="$SSLFLAGS `$LIBGCRYPTCONFIG --cflags`"
8440 if test $have_ssl = 0 -a "x$enable_openssl" != "xno"; then
8441 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
8442 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
8449 "-lcrypto -lrsaref" \
8450 "-lcrypto -lRSAglue -lrsaref"
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
8453 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
8454 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
8455 $as_echo_n "(cached) " >&6
8457 ac_check_lib_save_LIBS=$LIBS
8458 LIBS="-lssl $libcrypto $LIBS"
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8462 /* Override any GCC internal prototype to avoid an error.
8463 Use char because int might match the return type of a GCC
8464 builtin and then its argument prototype would still apply. */
8477 if ac_fn_c_try_link "$LINENO"; then :
8478 ac_cv_lib_ssl_SSL_new=yes
8480 ac_cv_lib_ssl_SSL_new=no
8482 rm -f core conftest.err conftest.$ac_objext \
8483 conftest$ac_exeext conftest.$ac_ext
8484 LIBS=$ac_check_lib_save_LIBS
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
8487 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
8488 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
8490 SSLFLAGS="-DOPENSSL_DISABLE_OLD_DES_SUPPORT"
8491 SSLLIBS="-lssl $libcrypto"
8492 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8494 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
8499 if test "x${SSLLIBS}" != "x"; then
8504 if test "x${SSLLIBS}" != "x"; then
8505 CUPS_SERVERCERT="ssl/server.crt"
8506 CUPS_SERVERKEY="ssl/server.key"
8508 LIBS="$SAVELIBS $SSLLIBS"
8509 for ac_func in SSL_set_tlsext_host_name
8511 ac_fn_c_check_func "$LINENO" "SSL_set_tlsext_host_name" "ac_cv_func_SSL_set_tlsext_host_name"
8512 if test "x$ac_cv_func_SSL_set_tlsext_host_name" = xyes; then :
8513 cat >>confdefs.h <<_ACEOF
8514 #define HAVE_SSL_SET_TLSEXT_HOST_NAME 1
8530 if test $have_ssl = 1; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8532 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8534 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8535 IPPALIASES="http https ipps"
8536 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes -o x$enable_openssl = xyes; then
8537 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8546 EXPORT_SSLLIBS="$SSLLIBS"
8551 # Check whether --enable-pam was given.
8552 if test "${enable_pam+set}" = set; then :
8553 enableval=$enable_pam;
8557 # Check whether --with-pam_module was given.
8558 if test "${with_pam_module+set}" = set; then :
8559 withval=$with_pam_module;
8563 if test $uname = AIX; then
8570 PAMMOD="pam_unknown.so"
8571 PAMMODAUTH="pam_unknown.so"
8573 if test x$enable_pam != xno; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8577 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8578 if ${ac_cv_lib_dl_dlopen+:} false; then :
8579 $as_echo_n "(cached) " >&6
8581 ac_check_lib_save_LIBS=$LIBS
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8586 /* Override any GCC internal prototype to avoid an error.
8587 Use char because int might match the return type of a GCC
8588 builtin and then its argument prototype would still apply. */
8601 if ac_fn_c_try_link "$LINENO"; then :
8602 ac_cv_lib_dl_dlopen=yes
8604 ac_cv_lib_dl_dlopen=no
8606 rm -f core conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
8608 LIBS=$ac_check_lib_save_LIBS
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8611 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8612 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8613 cat >>confdefs.h <<_ACEOF
8614 #define HAVE_LIBDL 1
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8622 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8623 if ${ac_cv_lib_pam_pam_start+:} false; then :
8624 $as_echo_n "(cached) " >&6
8626 ac_check_lib_save_LIBS=$LIBS
8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h. */
8631 /* Override any GCC internal prototype to avoid an error.
8632 Use char because int might match the return type of a GCC
8633 builtin and then its argument prototype would still apply. */
8641 return pam_start ();
8646 if ac_fn_c_try_link "$LINENO"; then :
8647 ac_cv_lib_pam_pam_start=yes
8649 ac_cv_lib_pam_pam_start=no
8651 rm -f core conftest.err conftest.$ac_objext \
8652 conftest$ac_exeext conftest.$ac_ext
8653 LIBS=$ac_check_lib_save_LIBS
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8656 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8657 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8658 cat >>confdefs.h <<_ACEOF
8659 #define HAVE_LIBPAM 1
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8667 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8668 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8669 $as_echo_n "(cached) " >&6
8671 ac_check_lib_save_LIBS=$LIBS
8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8676 /* Override any GCC internal prototype to avoid an error.
8677 Use char because int might match the return type of a GCC
8678 builtin and then its argument prototype would still apply. */
8682 char pam_set_item ();
8686 return pam_set_item ();
8691 if ac_fn_c_try_link "$LINENO"; then :
8692 ac_cv_lib_pam_pam_set_item=yes
8694 ac_cv_lib_pam_pam_set_item=no
8696 rm -f core conftest.err conftest.$ac_objext \
8697 conftest$ac_exeext conftest.$ac_ext
8698 LIBS=$ac_check_lib_save_LIBS
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8701 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8702 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8703 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8708 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8709 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8710 $as_echo_n "(cached) " >&6
8712 ac_check_lib_save_LIBS=$LIBS
8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8717 /* Override any GCC internal prototype to avoid an error.
8718 Use char because int might match the return type of a GCC
8719 builtin and then its argument prototype would still apply. */
8723 char pam_setcred ();
8727 return pam_setcred ();
8732 if ac_fn_c_try_link "$LINENO"; then :
8733 ac_cv_lib_pam_pam_setcred=yes
8735 ac_cv_lib_pam_pam_setcred=no
8737 rm -f core conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
8739 LIBS=$ac_check_lib_save_LIBS
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8742 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8743 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8744 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8748 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8749 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8754 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8755 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8756 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8757 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8764 if test x$ac_cv_lib_pam_pam_start != xno; then
8765 # Set the necessary libraries for PAM...
8766 if test x$ac_cv_lib_dl_dlopen != xno; then
8767 PAMLIBS="-lpam -ldl"
8772 # Find the PAM configuration directory, if any...
8773 for dir in /private/etc/pam.d /etc/pam.d; do
8774 if test -d $dir; then
8786 if test "x$with_pam_module" != x; then
8787 PAMFILE="pam.$with_pam_module"
8788 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8789 PAMFILE="pam.opendirectory"
8791 PAMFILE="pam.securityserver"
8796 # All others; this test might need to be updated
8797 # as Linux distributors move things around...
8798 if test "x$with_pam_module" != x; then
8799 PAMMOD="pam_${with_pam_module}.so"
8800 elif test -f /lib/security/pam_unix2.so; then
8801 PAMMOD="pam_unix2.so"
8802 elif test -f /lib/security/pam_unix.so; then
8803 PAMMOD="pam_unix.so"
8806 if test "x$PAMMOD" = xpam_unix.so; then
8807 PAMMODAUTH="$PAMMOD shadow nodelay"
8809 PAMMODAUTH="$PAMMOD nodelay"
8823 # Check whether --enable-largefile was given.
8824 if test "${enable_largefile+set}" = set; then :
8825 enableval=$enable_largefile;
8828 if test "$enable_largefile" != no; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8831 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8832 if ${ac_cv_sys_largefile_CC+:} false; then :
8833 $as_echo_n "(cached) " >&6
8835 ac_cv_sys_largefile_CC=no
8836 if test "$GCC" != yes; then
8839 # IRIX 6.2 and later do not support large files by default,
8840 # so use the C compiler's -n32 option if that helps.
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8843 #include <sys/types.h>
8844 /* Check that off_t can represent 2**63 - 1 correctly.
8845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8846 since some C++ compilers masquerading as C compilers
8847 incorrectly reject 9223372036854775807. */
8848 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8850 && LARGE_OFF_T % 2147483647 == 1)
8860 if ac_fn_c_try_compile "$LINENO"; then :
8863 rm -f core conftest.err conftest.$ac_objext
8865 if ac_fn_c_try_compile "$LINENO"; then :
8866 ac_cv_sys_largefile_CC=' -n32'; break
8868 rm -f core conftest.err conftest.$ac_objext
8872 rm -f conftest.$ac_ext
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8876 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8877 if test "$ac_cv_sys_largefile_CC" != no; then
8878 CC=$CC$ac_cv_sys_largefile_CC
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8882 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8883 if ${ac_cv_sys_file_offset_bits+:} false; then :
8884 $as_echo_n "(cached) " >&6
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 #include <sys/types.h>
8890 /* Check that off_t can represent 2**63 - 1 correctly.
8891 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8892 since some C++ compilers masquerading as C compilers
8893 incorrectly reject 9223372036854775807. */
8894 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8895 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8896 && LARGE_OFF_T % 2147483647 == 1)
8906 if ac_fn_c_try_compile "$LINENO"; then :
8907 ac_cv_sys_file_offset_bits=no; break
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8912 #define _FILE_OFFSET_BITS 64
8913 #include <sys/types.h>
8914 /* Check that off_t can represent 2**63 - 1 correctly.
8915 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8916 since some C++ compilers masquerading as C compilers
8917 incorrectly reject 9223372036854775807. */
8918 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8919 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8920 && LARGE_OFF_T % 2147483647 == 1)
8930 if ac_fn_c_try_compile "$LINENO"; then :
8931 ac_cv_sys_file_offset_bits=64; break
8933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934 ac_cv_sys_file_offset_bits=unknown
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8939 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8940 case $ac_cv_sys_file_offset_bits in #(
8943 cat >>confdefs.h <<_ACEOF
8944 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8949 if test $ac_cv_sys_file_offset_bits = unknown; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8951 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8952 if ${ac_cv_sys_large_files+:} false; then :
8953 $as_echo_n "(cached) " >&6
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 #include <sys/types.h>
8959 /* Check that off_t can represent 2**63 - 1 correctly.
8960 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8961 since some C++ compilers masquerading as C compilers
8962 incorrectly reject 9223372036854775807. */
8963 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8964 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8965 && LARGE_OFF_T % 2147483647 == 1)
8975 if ac_fn_c_try_compile "$LINENO"; then :
8976 ac_cv_sys_large_files=no; break
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8981 #define _LARGE_FILES 1
8982 #include <sys/types.h>
8983 /* Check that off_t can represent 2**63 - 1 correctly.
8984 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8985 since some C++ compilers masquerading as C compilers
8986 incorrectly reject 9223372036854775807. */
8987 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8988 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8989 && LARGE_OFF_T % 2147483647 == 1)
8999 if ac_fn_c_try_compile "$LINENO"; then :
9000 ac_cv_sys_large_files=1; break
9002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 ac_cv_sys_large_files=unknown
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9008 $as_echo "$ac_cv_sys_large_files" >&6; }
9009 case $ac_cv_sys_large_files in #(
9012 cat >>confdefs.h <<_ACEOF
9013 #define _LARGE_FILES $ac_cv_sys_large_files
9023 if test x$enable_largefile != xno; then
9024 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
9026 if test x$ac_cv_sys_large_files = x1; then
9027 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
9030 if test x$ac_cv_sys_file_offset_bits = x64; then
9031 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9037 $as_echo_n "checking for long long int... " >&6; }
9038 if ${ac_cv_c_long_long+:} false; then :
9039 $as_echo_n "(cached) " >&6
9041 if test "$GCC" = yes; then
9042 ac_cv_c_long_long=yes
9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h. */
9055 if ac_fn_c_try_compile "$LINENO"; then :
9056 ac_cv_c_long_long=yes
9058 ac_cv_c_long_long=no
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9064 $as_echo "$ac_cv_c_long_long" >&6; }
9066 if test $ac_cv_c_long_long = yes; then
9067 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9071 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9072 if test "x$ac_cv_func_strtoll" = xyes; then :
9073 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9080 # Check whether --enable-avahi was given.
9081 if test "${enable_avahi+set}" = set; then :
9082 enableval=$enable_avahi;
9085 # Check whether --enable-dnssd was given.
9086 if test "${enable_dnssd+set}" = set; then :
9087 enableval=$enable_dnssd;
9091 # Check whether --with-dnssd-libs was given.
9092 if test "${with_dnssd_libs+set}" = set; then :
9093 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9094 DSOFLAGS="-L$withval $DSOFLAGS"
9098 # Check whether --with-dnssd-includes was given.
9099 if test "${with_dnssd_includes+set}" = set; then :
9100 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9101 CPPFLAGS="-I$withval $CPPFLAGS"
9110 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9112 $as_echo_n "checking for Avahi... " >&6; }
9113 if $PKGCONFIG --exists avahi-client; then
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9115 $as_echo "yes" >&6; }
9116 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
9117 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
9118 DNSSD_BACKEND="dnssd"
9119 IPPFIND_BIN="ippfind"
9120 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9121 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125 $as_echo "no" >&6; }
9129 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9130 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9131 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9135 # Darwin and MacOS X...
9136 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9138 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9139 DNSSD_BACKEND="dnssd"
9140 IPPFIND_BIN="ippfind"
9141 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9146 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9148 LIBS="$LIBS -ldns_sd"
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9155 int constant = kDNSServiceFlagsShareConnection;
9156 unsigned char txtRecord[100];
9158 TXTRecordGetValuePtr(sizeof(txtRecord),
9159 txtRecord, "value", &valueLen);
9164 if ac_fn_c_try_compile "$LINENO"; then :
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9166 $as_echo "yes" >&6; }
9167 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9169 DNSSDLIBS="-ldns_sd"
9170 DNSSD_BACKEND="dnssd"
9172 IPPFIND_BIN="ippfind"
9173 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 $as_echo "no" >&6; }
9177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 # Check whether --enable-launchd was given.
9196 if test "${enable_launchd+set}" = set; then :
9197 enableval=$enable_launchd;
9201 DEFAULT_LAUNCHD_CONF=""
9204 if test x$enable_launchd != xno; then
9205 ac_fn_c_check_func "$LINENO" "launch_msg" "ac_cv_func_launch_msg"
9206 if test "x$ac_cv_func_launch_msg" = xyes; then :
9207 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9211 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9212 if test "x$ac_cv_header_launch_h" = xyes; then :
9213 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9222 DEFAULT_LAUNCHD_CONF="/System/Library/LaunchDaemons/org.cups.cupsd.plist"
9223 # liblaunch is already part of libSystem
9226 # All others; this test will need to be updated
9236 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9239 # Check whether --with-languages was given.
9240 if test "${with_languages+set}" = set; then :
9241 withval=$with_languages;
9243 none | no) LANGUAGES="" ;;
9245 *) LANGUAGES="$withval" ;;
9252 # Check whether --with-bundledir was given.
9253 if test "${with_bundledir+set}" = set; then :
9254 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9256 if test "x$uname" = xDarwin -a $uversion -ge 100; then
9257 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9266 if test "x$CUPS_BUNDLEDIR" != x; then
9267 cat >>confdefs.h <<_ACEOF
9268 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9274 # Check whether --with-config_file_perm was given.
9275 if test "${with_config_file_perm+set}" = set; then :
9276 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9278 if test "x$uname" = xDarwin; then
9279 CUPS_CONFIG_FILE_PERM="644"
9281 CUPS_CONFIG_FILE_PERM="640"
9286 cat >>confdefs.h <<_ACEOF
9287 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9292 # Check whether --with-cupsd_file_perm was given.
9293 if test "${with_cupsd_file_perm+set}" = set; then :
9294 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9296 CUPS_CUPSD_FILE_PERM="500"
9302 # Check whether --with-log_file_perm was given.
9303 if test "${with_log_file_perm+set}" = set; then :
9304 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9306 CUPS_LOG_FILE_PERM="644"
9310 cat >>confdefs.h <<_ACEOF
9311 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9316 # Check whether --with-fatal_errors was given.
9317 if test "${with_fatal_errors+set}" = set; then :
9318 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9320 CUPS_FATAL_ERRORS="config"
9324 cat >>confdefs.h <<_ACEOF
9325 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9330 # Check whether --with-log_level was given.
9331 if test "${with_log_level+set}" = set; then :
9332 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9334 CUPS_LOG_LEVEL="warn"
9338 cat >>confdefs.h <<_ACEOF
9339 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9344 # Check whether --with-access_log_level was given.
9345 if test "${with_access_log_level+set}" = set; then :
9346 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9348 CUPS_ACCESS_LOG_LEVEL="actions"
9352 cat >>confdefs.h <<_ACEOF
9353 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9357 # Check whether --enable-browsing was given.
9358 if test "${enable_browsing+set}" = set; then :
9359 enableval=$enable_browsing;
9362 if test "x$enable_browsing" = xno; then
9364 cat >>confdefs.h <<_ACEOF
9365 #define CUPS_DEFAULT_BROWSING 0
9370 cat >>confdefs.h <<_ACEOF
9371 #define CUPS_DEFAULT_BROWSING 1
9378 # Check whether --with-local_protocols was given.
9379 if test "${with_local_protocols+set}" = set; then :
9380 withval=$with_local_protocols; default_local_protocols="$withval"
9382 default_local_protocols="default"
9386 if test x$with_local_protocols != xno; then
9387 if test "x$default_local_protocols" = "xdefault"; then
9388 if test "x$DNSSD_BACKEND" != "x"; then
9389 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9391 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9394 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9397 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9401 cat >>confdefs.h <<_ACEOF
9402 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9406 # Check whether --enable-default_shared was given.
9407 if test "${enable_default_shared+set}" = set; then :
9408 enableval=$enable_default_shared;
9411 if test "x$enable_default_shared" = xno; then
9412 CUPS_DEFAULT_SHARED="No"
9413 cat >>confdefs.h <<_ACEOF
9414 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9418 CUPS_DEFAULT_SHARED="Yes"
9419 cat >>confdefs.h <<_ACEOF
9420 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9427 # Check whether --with-cups_user was given.
9428 if test "${with_cups_user+set}" = set; then :
9429 withval=$with_cups_user; CUPS_USER="$withval"
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9432 $as_echo_n "checking for default print user... " >&6; }
9433 if test x$uname = xDarwin; then
9434 if test x`id
-u _lp
2>/dev
/null
` = x; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9440 $as_echo "$CUPS_USER" >&6; }
9441 elif test -f /etc/passwd; then
9443 for user in lp lpd guest daemon nobody; do
9444 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9447 $as_echo "$user" >&6; }
9452 if test x$CUPS_USER = x; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9455 $as_echo "not found" >&6; }
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9460 $as_echo "no password file" >&6; }
9465 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9466 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9470 # Check whether --with-cups_group was given.
9471 if test "${with_cups_group+set}" = set; then :
9472 withval=$with_cups_group; CUPS_GROUP="$withval"
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9475 $as_echo_n "checking for default print group... " >&6; }
9476 if test x$uname = xDarwin; then
9477 if test x`id
-g _lp
2>/dev
/null
` = x; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9483 $as_echo "$CUPS_GROUP" >&6; }
9484 elif test -f /etc/group; then
9485 GROUP_LIST="_lp lp nobody"
9487 for group in $GROUP_LIST; do
9488 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9491 $as_echo "$group" >&6; }
9496 if test x$CUPS_GROUP = x; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9499 $as_echo "not found" >&6; }
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9504 $as_echo "no group file" >&6; }
9509 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9510 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9514 # Check whether --with-system_groups was given.
9515 if test "${with_system_groups+set}" = set; then :
9516 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9518 if test x$uname = xDarwin; then
9519 CUPS_SYSTEM_GROUPS="admin"
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9522 $as_echo_n "checking for default system groups... " >&6; }
9523 if test -f /etc/group; then
9524 CUPS_SYSTEM_GROUPS=""
9525 GROUP_LIST="lpadmin sys system root"
9526 for group in $GROUP_LIST; do
9527 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9528 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9529 CUPS_SYSTEM_GROUPS="$group"
9531 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9536 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9537 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9539 $as_echo "no groups found" >&6; }
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9542 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9545 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9547 $as_echo "no group file" >&6; }
9553 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9555 for group in $CUPS_SYSTEM_GROUPS; do
9556 if test "x$CUPS_GROUP" = "x$group"; then
9557 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9566 cat >>confdefs.h <<_ACEOF
9567 #define CUPS_DEFAULT_USER "$CUPS_USER"
9570 cat >>confdefs.h <<_ACEOF
9571 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9574 cat >>confdefs.h <<_ACEOF
9575 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9580 # Check whether --with-printcap was given.
9581 if test "${with_printcap+set}" = set; then :
9582 withval=$with_printcap; default_printcap="$withval"
9584 default_printcap="default"
9588 if test x$default_printcap != xno; then
9589 if test "x$default_printcap" = "xdefault"; then
9592 if test $uversion -ge 90; then
9593 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9595 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9599 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9602 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9606 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9609 CUPS_DEFAULT_PRINTCAP=""
9613 cat >>confdefs.h <<_ACEOF
9614 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9619 # Check whether --with-lpdconfigfile was given.
9620 if test "${with_lpdconfigfile+set}" = set; then :
9621 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9623 default_lpdconfigfile="default"
9627 if test x$default_lpdconfigfile != xno; then
9628 if test "x$default_lpdconfigfile" = "xdefault"; then
9631 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9634 if test "x$XINETD" != x; then
9635 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9637 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9642 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9645 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9648 cat >>confdefs.h <<_ACEOF
9649 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9655 # Check whether --with-smbconfigfile was given.
9656 if test "${with_smbconfigfile+set}" = set; then :
9657 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9659 default_smbconfigfile="default"
9663 if test x$default_smbconfigfile != xno; then
9664 if test "x$default_smbconfigfile" = "xdefault"; then
9665 if test -f /etc/smb.conf; then
9666 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9668 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9671 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9674 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9677 cat >>confdefs.h <<_ACEOF
9678 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9684 # Check whether --with-max-copies was given.
9685 if test "${with_max_copies+set}" = set; then :
9686 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9688 CUPS_MAX_COPIES="9999"
9693 cat >>confdefs.h <<_ACEOF
9694 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9698 # Check whether --enable-raw_printing was given.
9699 if test "${enable_raw_printing+set}" = set; then :
9700 enableval=$enable_raw_printing;
9703 if test "x$enable_raw_printing" != xno; then
9704 DEFAULT_RAW_PRINTING=""
9706 DEFAULT_RAW_PRINTING="#"
9711 # Check whether --with-snmp-address was given.
9712 if test "${with_snmp_address+set}" = set; then :
9713 withval=$with_snmp_address; if test "x$withval" = x; then
9714 CUPS_SNMP_ADDRESS=""
9716 CUPS_SNMP_ADDRESS="Address $withval"
9719 if test "x$uname" = xDarwin; then
9720 CUPS_SNMP_ADDRESS=""
9722 CUPS_SNMP_ADDRESS="Address @LOCAL"
9728 # Check whether --with-snmp-community was given.
9729 if test "${with_snmp_community+set}" = set; then :
9730 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9732 CUPS_SNMP_COMMUNITY="Community public"
9740 # Check whether --with-ipp-port was given.
9741 if test "${with_ipp_port+set}" = set; then :
9742 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
9744 DEFAULT_IPP_PORT="631"
9749 cat >>confdefs.h <<_ACEOF
9750 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
9754 # Check whether --enable-webif was given.
9755 if test "${enable_webif+set}" = set; then :
9756 enableval=$enable_webif;
9759 case "x$enable_webif" in
9762 CUPS_DEFAULT_WEBIF=0
9766 CUPS_DEFAULT_WEBIF=1
9769 if test $uname = Darwin; then
9771 CUPS_DEFAULT_WEBIF=0
9774 CUPS_DEFAULT_WEBIF=1
9780 cat >>confdefs.h <<_ACEOF
9781 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
9788 # Check whether --with-java was given.
9789 if test "${with_java+set}" = set; then :
9790 withval=$with_java; CUPS_JAVA="$withval"
9796 if test "x$CUPS_JAVA" = x; then
9797 # Extract the first word of "java", so it can be a program name with args.
9798 set dummy java; ac_word=$2
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9800 $as_echo_n "checking for $ac_word... " >&6; }
9801 if ${ac_cv_path_JAVA+:} false; then :
9802 $as_echo_n "(cached) " >&6
9806 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
9809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813 test -z "$as_dir" && as_dir=.
9814 for ac_exec_ext in '' $ac_executable_extensions; do
9815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9816 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
9817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9827 JAVA=$ac_cv_path_JAVA
9828 if test -n "$JAVA"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
9830 $as_echo "$JAVA" >&6; }
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833 $as_echo "no" >&6; }
9840 cat >>confdefs.h <<_ACEOF
9841 #define CUPS_JAVA "$CUPS_JAVA"
9845 if test "x$CUPS_JAVA" != x; then
9846 $as_echo "#define HAVE_JAVA 1" >>confdefs.h
9851 # Check whether --with-perl was given.
9852 if test "${with_perl+set}" = set; then :
9853 withval=$with_perl; CUPS_PERL="$withval"
9859 if test "x$CUPS_PERL" = x; then
9860 # Extract the first word of "perl", so it can be a program name with args.
9861 set dummy perl; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if ${ac_cv_path_PERL+:} false; then :
9865 $as_echo_n "(cached) " >&6
9869 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9879 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9890 PERL=$ac_cv_path_PERL
9891 if test -n "$PERL"; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9893 $as_echo "$PERL" >&6; }
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9903 cat >>confdefs.h <<_ACEOF
9904 #define CUPS_PERL "$CUPS_PERL"
9908 if test "x$CUPS_PERL" != x; then
9909 $as_echo "#define HAVE_PERL 1" >>confdefs.h
9914 # Check whether --with-php was given.
9915 if test "${with_php+set}" = set; then :
9916 withval=$with_php; CUPS_PHP="$withval"
9922 if test "x$CUPS_PHP" = x; then
9923 # Extract the first word of "php-cgi", so it can be a program name with args.
9924 set dummy php-cgi; ac_word=$2
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926 $as_echo_n "checking for $ac_word... " >&6; }
9927 if ${ac_cv_path_PHPCGI+:} false; then :
9928 $as_echo_n "(cached) " >&6
9932 ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939 test -z "$as_dir" && as_dir=.
9940 for ac_exec_ext in '' $ac_executable_extensions; do
9941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9942 ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9953 PHPCGI=$ac_cv_path_PHPCGI
9954 if test -n "$PHPCGI"; then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
9956 $as_echo "$PHPCGI" >&6; }
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 $as_echo "no" >&6; }
9963 if test "x$PHPCGI" = x; then
9964 # Extract the first word of "php", so it can be a program name with args.
9965 set dummy php; ac_word=$2
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967 $as_echo_n "checking for $ac_word... " >&6; }
9968 if ${ac_cv_path_PHP+:} false; then :
9969 $as_echo_n "(cached) " >&6
9973 ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
9976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980 test -z "$as_dir" && as_dir=.
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9983 ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9995 if test -n "$PHP"; then
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
9997 $as_echo "$PHP" >&6; }
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000 $as_echo "no" >&6; }
10010 cat >>confdefs.h <<_ACEOF
10011 #define CUPS_PHP "$CUPS_PHP"
10015 if test "x$CUPS_PHP" = x; then
10018 $as_echo "#define HAVE_PHP 1" >>confdefs.h
10023 # Check whether --with-python was given.
10024 if test "${with_python+set}" = set; then :
10025 withval=$with_python; CUPS_PYTHON="$withval"
10031 if test "x$CUPS_PYTHON" = x; then
10032 # Extract the first word of "python", so it can be a program name with args.
10033 set dummy python; ac_word=$2
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10035 $as_echo_n "checking for $ac_word... " >&6; }
10036 if ${ac_cv_path_PYTHON+:} false; then :
10037 $as_echo_n "(cached) " >&6
10041 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045 for as_dir in $PATH
10048 test -z "$as_dir" && as_dir=.
10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10051 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 PYTHON=$ac_cv_path_PYTHON
10063 if test -n "$PYTHON"; then
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10065 $as_echo "$PYTHON" >&6; }
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068 $as_echo "no" >&6; }
10072 CUPS_PYTHON="$PYTHON"
10075 cat >>confdefs.h <<_ACEOF
10076 #define CUPS_PYTHON "$CUPS_PYTHON"
10080 if test "x$CUPS_PYTHON" != x; then
10081 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10087 INSTALL_LANGUAGES=""
10088 UNINSTALL_LANGUAGES=""
10090 if test "x$LANGUAGES" != x; then
10091 INSTALL_LANGUAGES="install-languages"
10092 UNINSTALL_LANGUAGES="uninstall-languages"
10093 for lang in $LANGUAGES; do
10094 if test -f doc/$lang/index.html.in; then
10095 LANGFILES="$LANGFILES doc/$lang/index.html"
10098 if test -f templates/$lang/header.tmpl.in; then
10099 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10102 elif test "x$CUPS_BUNDLEDIR" != x; then
10103 INSTALL_LANGUAGES="install-langbundle"
10104 UNINSTALL_LANGUAGES="uninstall-langbundle"
10110 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 data/testprint desktop/cups.desktop doc/help/ref-cups-files-conf.html doc/help/ref-cupsd-conf.html doc/index.html man/client.conf.man man/cups-deviced.man man/cups-driverd.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 templates/header.tmpl packaging/cups.list $LANGFILES"
10112 cat >confcache <<\_ACEOF
10113 # This file is a shell script that caches the results of configure
10114 # tests run on this system so they can be shared between configure
10115 # scripts and configure runs, see configure's option --config-cache.
10116 # It is not useful on other systems. If it contains results you don't
10117 # want to keep, you may remove or edit it.
10119 # config.status only pays attention to the cache file if you give it
10120 # the --recheck option to rerun configure.
10122 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10123 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10124 # following values.
10128 # The following way of writing the cache mishandles newlines in values,
10129 # but we know of no workaround that is simple, portable, and efficient.
10130 # So, we kill variables containing newlines.
10131 # Ultrix sh set writes to stderr and can't be redirected directly,
10132 # and sets the high bit in the cache file unless we assign to the vars.
10134 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10135 eval ac_val
=\$
$ac_var
10139 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10140 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10143 _ | IFS | as_nl
) ;; #(
10144 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10145 *) { eval $ac_var=; unset $ac_var;} ;;
10151 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10152 *${as_nl}ac_space
=\
*)
10153 # `set' does not quote correctly, so add quotes: double-quote
10154 # substitution turns \\\\ into \\, and sed turns \\ into \.
10157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10160 # `set' quotes correctly as required by POSIX, so do not add quotes.
10161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10170 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10172 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10174 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10175 if test -w "$cache_file"; then
10176 if test "x$cache_file" != "x/dev/null"; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10178 $as_echo "$as_me: updating cache $cache_file" >&6;}
10179 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10180 cat confcache
>"$cache_file"
10182 case $cache_file in #(
10184 mv -f confcache
"$cache_file"$$
&&
10185 mv -f "$cache_file"$$
"$cache_file" ;; #(
10187 mv -f confcache
"$cache_file" ;;
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10193 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10198 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10199 # Let make expand exec_prefix.
10200 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10202 DEFS
=-DHAVE_CONFIG_H
10207 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10208 # 1. Remove the extension, and $U if already installed.
10209 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10210 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10211 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10212 # will be set to the directory where LIBOBJS objects are built.
10213 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10214 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10216 LIBOBJS
=$ac_libobjs
10218 LTLIBOBJS
=$ac_ltlibobjs
10222 : "${CONFIG_STATUS=./config.status}"
10224 ac_clean_files_save
=$ac_clean_files
10225 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10227 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10229 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10231 # Generated by $as_me.
10232 # Run this file to recreate the current configuration.
10233 # Compiler output produced by configure, useful for debugging
10234 # configure, is in config.log if it exists.
10237 ac_cs_recheck=false
10240 SHELL=\${CONFIG_SHELL-$SHELL}
10243 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10244 ## -------------------- ##
10245 ## M4sh Initialization. ##
10246 ## -------------------- ##
10248 # Be more Bourne compatible
10249 DUALCASE
=1; export DUALCASE
# for MKS sh
10250 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10253 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10254 # is contrary to our usage. Disable this feature.
10255 alias -g '${1+"$@"}'='"$@"'
10256 setopt NO_GLOB_SUBST
10258 case `(set -o) 2>/dev/null` in #(
10270 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10271 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10273 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10274 # Prefer a ksh shell builtin over an external printf program on Solaris,
10275 # but without wasting forks for bash or zsh.
10276 if test -z "$BASH_VERSION$ZSH_VERSION" \
10277 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10278 as_echo='print
-r --'
10279 as_echo_n='print
-rn --'
10280 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10281 as_echo='printf %s
\n'
10282 as_echo_n='printf %s
'
10284 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10285 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10286 as_echo_n='/usr
/ucb
/echo -n'
10288 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10289 as_echo_n_body='eval
10293 expr "X$arg" : "X\\(.*\\)$as_nl";
10294 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10296 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10298 export as_echo_n_body
10299 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10301 export as_echo_body
10302 as_echo='sh
-c $as_echo_body as_echo
'
10305 # The user is always right.
10306 if test "${PATH_SEPARATOR+set}" != set; then
10308 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10309 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10316 # We need space, tab and new line, in precisely that order. Quoting is
10317 # there to prevent editors from complaining about space-tab.
10318 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10319 # splitting by setting IFS to empty value.)
10322 # Find who we are. Look in the path if we contain no directory separator.
10325 *[\\/]* ) as_myself=$0 ;;
10326 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327 for as_dir in $PATH
10330 test -z "$as_dir" && as_dir=.
10331 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10337 # We did not find ourselves, most probably we were run as `sh COMMAND'
10338 # in which case we are not to be found in the path.
10339 if test "x$as_myself" = x
; then
10342 if test ! -f "$as_myself"; then
10343 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10347 # Unset variables that we do not need and which cause bugs (e.g. in
10348 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10349 # suppresses any "Segmentation fault" message there. '((' could
10350 # trigger a bug in pdksh 5.2.14.
10351 for as_var
in BASH_ENV ENV MAIL MAILPATH
10352 do eval test x\
${$as_var+set} = xset \
10353 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10366 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10370 # ----------------------------------------
10371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10373 # script with STATUS, using 1 if that was 0.
10376 as_status
=$1; test $as_status -eq 0 && as_status
=1
10378 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10381 $as_echo "$as_me: error: $2" >&2
10382 as_fn_exit
$as_status
10386 # as_fn_set_status STATUS
10387 # -----------------------
10388 # Set $? to STATUS, without forking.
10389 as_fn_set_status
()
10392 } # as_fn_set_status
10394 # as_fn_exit STATUS
10395 # -----------------
10396 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10400 as_fn_set_status
$1
10406 # Portably unset VAR.
10409 { eval $1=; unset $1;}
10411 as_unset
=as_fn_unset
10412 # as_fn_append VAR VALUE
10413 # ----------------------
10414 # Append the text in VALUE to the end of the definition contained in VAR. Take
10415 # advantage of any shell optimizations that allow amortized linear growth over
10416 # repeated appends, instead of the typical quadratic growth present in naive
10418 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10419 eval 'as_fn_append ()
10430 # as_fn_arith ARG...
10431 # ------------------
10432 # Perform arithmetic evaluation on the ARGs, and store the result in the
10433 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10434 # must be portable across $(()) and expr.
10435 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10436 eval 'as_fn_arith ()
10443 as_val
=`expr "$@" || test $? -eq 1`
10448 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10449 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10455 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10456 as_basename
=basename
10461 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10467 as_me
=`$as_basename -- "$0" ||
10468 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10469 X"$0" : 'X\(//\)$' \| \
10470 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10472 sed '/^.*\/\([^/][^/]*\)\/*$/{
10486 # Avoid depending upon Character Ranges.
10487 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10488 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10489 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10490 as_cr_digits
='0123456789'
10491 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10493 ECHO_C
= ECHO_N
= ECHO_T
=
10494 case `echo -n x` in #(((((
10496 case `echo 'xy\c'` in
10497 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10499 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10506 rm -f conf$$ conf$$.exe conf$$.
file
10507 if test -d conf$$.dir
; then
10508 rm -f conf$$.dir
/conf$$.
file
10511 mkdir conf$$.dir
2>/dev
/null
10513 if (echo >conf$$.
file) 2>/dev
/null
; then
10514 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10516 # ... but there are two gotchas:
10517 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10518 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10519 # In both cases, we have to default to `cp -p'.
10520 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10522 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10530 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10531 rmdir conf$$.dir
2>/dev
/null
10536 # Create "$as_dir" as a directory, including parents if necessary.
10541 -*) as_dir
=.
/$as_dir;;
10543 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10547 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10548 *) as_qdir
=$as_dir;;
10550 as_dirs
="'$as_qdir' $as_dirs"
10551 as_dir
=`$as_dirname -- "$as_dir" ||
10552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10553 X"$as_dir" : 'X\(//\)[^/]' \| \
10554 X"$as_dir" : 'X\(//\)$' \| \
10555 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10556 $as_echo X"$as_dir" |
10557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10561 /^X\(\/\/\)[^/].*/{
10574 test -d "$as_dir" && break
10576 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10577 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10581 if mkdir
-p .
2>/dev
/null
; then
10582 as_mkdir_p
='mkdir -p "$as_dir"'
10584 test -d .
/-p && rmdir .
/-p
10588 if test -x / >/dev
/null
2>&1; then
10589 as_test_x
='test -x'
10591 if ls -dL / >/dev
/null
2>&1; then
10598 if test -d "$1"; then
10604 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10605 ???[sx]*):;;*)false;;esac;fi
10609 as_executable_p
=$as_test_x
10611 # Sed expression to map a string onto a valid CPP name.
10612 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10614 # Sed expression to map a string onto a valid variable name.
10615 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10619 ## ----------------------------------- ##
10620 ## Main body of $CONFIG_STATUS script. ##
10621 ## ----------------------------------- ##
10623 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10626 # Save the log message, to keep $0 and so on meaningful, and to
10627 # report actual input values of CONFIG_FILES etc. instead of their
10628 # values after options handling.
10630 This file was extended by $as_me, which was
10631 generated by GNU Autoconf 2.68. Invocation command line was
10633 CONFIG_FILES = $CONFIG_FILES
10634 CONFIG_HEADERS = $CONFIG_HEADERS
10635 CONFIG_LINKS = $CONFIG_LINKS
10636 CONFIG_COMMANDS = $CONFIG_COMMANDS
10639 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10644 case $ac_config_files in *"
10645 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10648 case $ac_config_headers in *"
10649 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10654 # Files that config.status was made for.
10655 config_files="$ac_config_files"
10656 config_headers="$ac_config_headers"
10660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10662 \`$as_me' instantiates files and other configuration actions
10663 from templates according to the current configuration. Unless the files
10664 and actions are specified as TAGs, all are instantiated by default.
10666 Usage: $0 [OPTION]... [TAG]...
10668 -h, --help print this help, then exit
10669 -V, --version print version number and configuration settings, then exit
10670 --config print configuration, then exit
10671 -q, --quiet, --silent
10672 do not print progress messages
10673 -d, --debug don't remove temporary files
10674 --recheck update $as_me by reconfiguring in the same conditions
10675 --file=FILE[:TEMPLATE]
10676 instantiate the configuration file FILE
10677 --header=FILE[:TEMPLATE]
10678 instantiate the configuration header FILE
10680 Configuration files:
10683 Configuration headers:
10686 Report bugs to the package provider."
10689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10690 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10693 configured by $0, generated by GNU Autoconf 2.68,
10694 with options \\"\$ac_cs_config\\"
10696 Copyright (C) 2010 Free Software Foundation, Inc.
10697 This config.status script is free software; the Free Software Foundation
10698 gives unlimited permission to copy, distribute and modify it."
10703 test -n "\$AWK" || AWK=awk
10706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10707 # The default lists apply if the user does not specify any file.
10713 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10714 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10718 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10730 # Handling of the options.
10731 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10733 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10734 $as_echo "$ac_cs_version"; exit ;;
10735 --config |
--confi |
--conf |
--con |
--co |
--c )
10736 $as_echo "$ac_cs_config"; exit ;;
10737 --debug |
--debu |
--deb |
--de |
--d |
-d )
10739 --file |
--fil |
--fi |
--f )
10742 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10743 '') as_fn_error $?
"missing file argument" ;;
10745 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10746 ac_need_defaults
=false
;;
10747 --header |
--heade |
--head |
--hea )
10750 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10752 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10753 ac_need_defaults
=false
;;
10755 # Conflict between --help and --header
10756 as_fn_error $?
"ambiguous option: \`$1'
10757 Try \`$0 --help' for more information.";;
10758 --help |
--hel |
-h )
10759 $as_echo "$ac_cs_usage"; exit ;;
10760 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10761 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10764 # This is an error.
10765 -*) as_fn_error $?
"unrecognized option: \`$1'
10766 Try \`$0 --help' for more information." ;;
10768 *) as_fn_append ac_config_targets
" $1"
10769 ac_need_defaults
=false
;;
10775 ac_configure_extra_args
=
10777 if $ac_cs_silent; then
10779 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10784 if \$ac_cs_recheck; then
10785 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10787 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10788 CONFIG_SHELL='$SHELL'
10789 export CONFIG_SHELL
10794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10798 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10799 ## Running $as_me. ##
10805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10810 # Handling of arguments.
10811 for ac_config_target
in $ac_config_targets
10813 case $ac_config_target in
10814 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10815 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10816 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10817 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10818 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10819 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10820 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10821 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10822 "data/testprint") CONFIG_FILES
="$CONFIG_FILES data/testprint" ;;
10823 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10824 "doc/help/ref-cups-files-conf.html") CONFIG_FILES
="$CONFIG_FILES doc/help/ref-cups-files-conf.html" ;;
10825 "doc/help/ref-cupsd-conf.html") CONFIG_FILES
="$CONFIG_FILES doc/help/ref-cupsd-conf.html" ;;
10826 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10827 "man/client.conf.man") CONFIG_FILES
="$CONFIG_FILES man/client.conf.man" ;;
10828 "man/cups-deviced.man") CONFIG_FILES
="$CONFIG_FILES man/cups-deviced.man" ;;
10829 "man/cups-driverd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-driverd.man" ;;
10830 "man/cups-files.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cups-files.conf.man" ;;
10831 "man/cups-lpd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-lpd.man" ;;
10832 "man/cups-snmp.man") CONFIG_FILES
="$CONFIG_FILES man/cups-snmp.man" ;;
10833 "man/cupsaddsmb.man") CONFIG_FILES
="$CONFIG_FILES man/cupsaddsmb.man" ;;
10834 "man/cupsd.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.conf.man" ;;
10835 "man/cupsd.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.man" ;;
10836 "man/lpoptions.man") CONFIG_FILES
="$CONFIG_FILES man/lpoptions.man" ;;
10837 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10838 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10839 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10840 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10841 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10842 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10843 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10845 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10850 # If the user did not use the arguments to specify the items to instantiate,
10851 # then the envvar interface is used. Set only those that are not.
10852 # We use the long form for the default assignment because of an extremely
10853 # bizarre bug on SunOS 4.1.3.
10854 if $ac_need_defaults; then
10855 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10856 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10859 # Have a temporary directory for convenience. Make it in the build tree
10860 # simply because there is no reason against having it here, and in addition,
10861 # creating and moving files from /tmp can sometimes cause problems.
10862 # Hook for its removal unless debugging.
10863 # Note that there is a small window in which the directory will not be cleaned:
10864 # after its creation but before its name has been assigned to `$tmp'.
10868 trap 'exit_status=$?
10869 : "${ac_tmp:=$tmp}"
10870 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10872 trap 'as_fn_exit 1' 1 2 13 15
10874 # Create a (secure) tmp directory for tmp files.
10877 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10881 tmp
=.
/conf$$
-$RANDOM
10882 (umask 077 && mkdir
"$tmp")
10883 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10886 # Set up the scripts for CONFIG_FILES section.
10887 # No need to generate them if there are no CONFIG_FILES.
10888 # This happens for instance with `./config.status config.h'.
10889 if test -n "$CONFIG_FILES"; then
10892 ac_cr
=`echo X | tr X '\015'`
10893 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10894 # But we know of no other shell where ac_cr would be empty at this
10895 # point, so we can use a bashism as a fallback.
10896 if test "x$ac_cr" = x
; then
10897 eval ac_cr
=\$
\'\\r
\'
10899 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10900 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10903 ac_cs_awk_cr
=$ac_cr
10906 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10911 echo "cat >conf$$subs.awk <<_ACEOF" &&
10912 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10914 } >conf$$subs.sh ||
10915 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10916 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10918 for ac_last_try in false false false false false :; do
10919 . ./conf$$subs.sh ||
10920 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10922 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10923 if test $ac_delim_n = $ac_delim_num; then
10925 elif $ac_last_try; then
10926 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10928 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10931 rm -f conf$$subs.sh
10933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10934 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10938 s/^/S["/; s
/!.
*/"]=/
10948 s/\(.\{148\}\)..*/\1/
10950 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10955 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10962 s/\(.\{148\}\)..*/\1/
10964 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10968 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10973 ' <conf$$subs.awk | sed '
10978 ' >>$CONFIG_STATUS || ac_write_fail=1
10979 rm -f conf$$subs.awk
10980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10982 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10983 for (key in S) S_is_set[key] = 1
10989 nfields = split(line, field, "@
")
10991 len = length(field[1])
10992 for (i = 2; i < nfields; i++) {
10994 keylen = length(key)
10995 if (S_is_set[key]) {
10997 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10998 len += length(value) + length(field[++i])
11009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11010 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11011 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11014 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11015 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11018 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11019 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11020 # trailing colons and then remove the whole line if VPATH becomes empty
11021 # (actually we leave an empty line to preserve line numbers).
11022 if test "x
$srcdir" = x.; then
11023 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11042 fi # test -n "$CONFIG_FILES"
11044 # Set up the scripts for CONFIG_HEADERS section.
11045 # No need to generate them if there are no CONFIG_HEADERS.
11046 # This happens for instance with `./config.status Makefile'.
11047 if test -n "$CONFIG_HEADERS"; then
11048 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11052 # Transform confdefs.h into an awk script `defines.awk', embedded as
11053 # here-document in config.status, that substitutes the proper values into
11054 # config.h.in to produce config.h.
11056 # Create a delimiter string that does not exist in confdefs.h, to ease
11057 # handling of long lines.
11059 for ac_last_try in false false :; do
11060 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11061 if test -z "$ac_tt"; then
11063 elif $ac_last_try; then
11064 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11066 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11070 # For the awk script, D is an array of macro values keyed by name,
11071 # likewise P contains macro parameters if any. Preserve backslash
11072 # newline sequences.
11074 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11076 s/.\{148\}/&'"$ac_delim"'/g
11079 s/^[ ]*#[ ]*define[ ][ ]*/ /
11086 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11088 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11092 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11093 D["\
1"]=" \
3\\\\\\n
"\\/p
11095 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11100 s/.\{148\}/&'"$ac_delim"'/g
11105 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11108 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11110 ' <confdefs.h | sed '
11111 s/'"$ac_delim"'/"\\\
11112 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11115 for (key in D) D_is_set[key] = 1
11118 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11120 split(line, arg, " ")
11121 if (arg[1] == "#") {
11125 defundef
= substr
(arg
[1], 2)
11128 split(mac1
, mac2
, "(") #)
11130 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11131 if (D_is_set
[macro
]) {
11132 # Preserve the white space surrounding the "#".
11133 print prefix
"define", macro P
[macro
] D
[macro
]
11136 # Replace #undef with comments. This is necessary, for example,
11137 # in the case of _POSIX_SOURCE, which is predefined and required
11138 # on some systems where configure will not decide to define it.
11139 if (defundef
== "undef") {
11140 print
"/*", prefix defundef
, macro
, "*/"
11148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11149 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11150 fi # test -n "$CONFIG_HEADERS"
11153 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11158 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11160 case $ac_mode$ac_tag in
11162 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11163 :[FH
]-) ac_tag
=-:-;;
11164 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11181 -) ac_f
="$ac_tmp/stdin";;
11182 *) # Look for the file first in the build tree, then in the source tree
11183 # (if the path is not absolute). The absolute path cannot be DOS-style,
11184 # because $ac_f cannot contain `:'.
11188 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11190 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11192 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11193 as_fn_append ac_file_inputs
" '$ac_f'"
11196 # Let's still pretend it is `configure' which instantiates (i.e., don't
11197 # use $as_me), people would be surprised to read:
11198 # /* config.h. Generated by config.status. */
11199 configure_input
='Generated from '`
11200 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11202 if test x
"$ac_file" != x-
; then
11203 configure_input
="$ac_file. $configure_input"
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11205 $as_echo "$as_me: creating $ac_file" >&6;}
11207 # Neutralize special characters interpreted by sed in replacement strings.
11208 case $configure_input in #(
11209 *\
&* |
*\|
* |
*\\* )
11210 ac_sed_conf_input
=`$as_echo "$configure_input" |
11211 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11212 *) ac_sed_conf_input
=$configure_input;;
11216 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11217 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11222 ac_dir
=`$as_dirname -- "$ac_file" ||
11223 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11224 X"$ac_file" : 'X\(//\)[^/]' \| \
11225 X"$ac_file" : 'X\(//\)$' \| \
11226 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11227 $as_echo X"$ac_file" |
11228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11232 /^X\(\/\/\)[^/].*/{
11245 as_dir
="$ac_dir"; as_fn_mkdir_p
11249 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11251 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11252 # A ".." for each directory in $ac_dir_suffix.
11253 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11254 case $ac_top_builddir_sub in
11255 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11256 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11259 ac_abs_top_builddir
=$ac_pwd
11260 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11261 # for backward compatibility:
11262 ac_top_builddir
=$ac_top_build_prefix
11265 .
) # We are building in place.
11267 ac_top_srcdir
=$ac_top_builddir_sub
11268 ac_abs_top_srcdir
=$ac_pwd ;;
11269 [\\/]* | ?
:[\\/]* ) # Absolute name.
11270 ac_srcdir
=$srcdir$ac_dir_suffix;
11271 ac_top_srcdir
=$srcdir
11272 ac_abs_top_srcdir
=$srcdir ;;
11273 *) # Relative name.
11274 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11275 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11276 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11278 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11290 # If the template does not know about datarootdir, expand it.
11291 # FIXME: This hack should be removed a few years after 2.60.
11292 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11303 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11304 *datarootdir
*) ac_datarootdir_seen
=yes;;
11305 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11307 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11310 ac_datarootdir_hack='
11311 s&@datadir@&$datadir&g
11312 s&@docdir@&$docdir&g
11313 s&@infodir@&$infodir&g
11314 s&@localedir@&$localedir&g
11315 s&@mandir@&$mandir&g
11316 s&\\\${datarootdir}&$datarootdir&g' ;;
11320 # Neutralize VPATH when `$srcdir' = `.'.
11321 # Shell code in configure.ac might set extrasub.
11322 # FIXME: do we really want to maintain this feature?
11323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11324 ac_sed_extra="$ac_vpsub
11327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11329 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11330 s|@configure_input@|
$ac_sed_conf_input|
;t t
11331 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11332 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11333 s
&@srcdir@
&$ac_srcdir&;t t
11334 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11335 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11336 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11337 s
&@builddir@
&$ac_builddir&;t t
11338 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11339 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11340 $ac_datarootdir_hack
11342 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11343 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11345 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11346 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11347 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11348 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11350 which seems to be undefined. Please make sure it is defined" >&5
11351 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11352 which seems to be undefined. Please make sure it is defined" >&2;}
11354 rm -f "$ac_tmp/stdin"
11356 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11357 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11365 if test x"$ac_file" != x-; then
11367 $as_echo "/* $configure_input */" \
11368 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11369 } >"$ac_tmp/config.h" \
11370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11371 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11373 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11376 mv "$ac_tmp/config.h" "$ac_file" \
11377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11380 $as_echo "/* $configure_input */" \
11381 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11382 || as_fn_error $? "could not create -" "$LINENO" 5
11394 ac_clean_files=$ac_clean_files_save
11396 test $ac_write_fail = 0 ||
11397 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11400 # configure is writing to config.log, and then calls config.status.
11401 # config.status does its own redirection, appending to config.log.
11402 # Unfortunately, on DOS this fails, as config.log is still kept open
11403 # by configure, so config.status won't be able to
write to it
; its
11404 # output is simply discarded. So we exec the FD to /dev/null,
11405 # effectively closing config.log, so it can be properly (re)opened and
11406 # appended to by config.status. When coming back to configure, we
11407 # need to make the FD available again.
11408 if test "$no_create" != yes; then
11410 ac_config_status_args
=
11411 test "$silent" = yes &&
11412 ac_config_status_args
="$ac_config_status_args --quiet"
11414 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11416 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11417 # would make configure fail if this is the last instruction.
11418 $ac_cs_success || as_fn_exit
1
11420 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11422 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11426 chmod +x cups-config