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
629 CUPS_ACCESS_LOG_LEVEL
634 CUPS_CONFIG_FILE_PERM
666 CUPS_DEFAULT_GSSSERVICENAME
669 CUPS_LISTEN_DOMAINSOCKET
670 CUPS_DEFAULT_DOMAINSOCKET
722 CUPS_DEFAULT_PRINTOPERATOR_AUTH
796 program_transform_name
809 enable_option_checking
833 enable_libtool_unsupported
867 with_config_file_perm
872 with_access_log_level
876 enable_default_shared
894 ac_precious_vars
='build_alias
908 # Initialize some variables set by options.
910 ac_init_version
=false
911 ac_unrecognized_opts
=
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
922 program_transform_name
=s
,x
,x
,
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir
='${exec_prefix}/bin'
937 sbindir
='${exec_prefix}/sbin'
938 libexecdir
='${exec_prefix}/libexec'
939 datarootdir
='${prefix}/share'
940 datadir
='${datarootdir}'
941 sysconfdir
='${prefix}/etc'
942 sharedstatedir
='${prefix}/com'
943 localstatedir
='${prefix}/var'
944 includedir
='${prefix}/include'
945 oldincludedir
='/usr/include'
946 docdir
='${datarootdir}/doc/${PACKAGE}'
947 infodir
='${datarootdir}/info'
952 libdir
='${exec_prefix}/lib'
953 localedir
='${datarootdir}/locale'
954 mandir
='${datarootdir}/man'
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\
$ac_option
968 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
979 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
981 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
984 -build |
--build |
--buil |
--bui |
--bu)
985 ac_prev
=build_alias
;;
986 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
987 build_alias
=$ac_optarg ;;
989 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
990 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
991 ac_prev
=cache_file
;;
992 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
993 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
994 cache_file
=$ac_optarg ;;
997 cache_file
=config.cache
;;
999 -datadir |
--datadir |
--datadi |
--datad)
1001 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1002 datadir
=$ac_optarg ;;
1004 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1005 |
--dataroo |
--dataro |
--datar)
1006 ac_prev
=datarootdir
;;
1007 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1008 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1009 datarootdir
=$ac_optarg ;;
1011 -disable-* |
--disable-*)
1012 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1015 as_fn_error $?
"invalid feature name: $ac_useropt"
1016 ac_useropt_orig
=$ac_useropt
1017 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_
$ac_useropt"
1022 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep
=', ';;
1025 eval enable_
$ac_useropt=no
;;
1027 -docdir |
--docdir |
--docdi |
--doc |
--do)
1029 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1030 docdir
=$ac_optarg ;;
1032 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1034 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1035 dvidir
=$ac_optarg ;;
1037 -enable-* |
--enable-*)
1038 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1041 as_fn_error $?
"invalid feature name: $ac_useropt"
1042 ac_useropt_orig
=$ac_useropt
1043 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_
$ac_useropt"
1048 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep
=', ';;
1051 eval enable_
$ac_useropt=\
$ac_optarg ;;
1053 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1054 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1055 |
--exec |
--exe |
--ex)
1056 ac_prev
=exec_prefix
;;
1057 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1058 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1059 |
--exec=* |
--exe=* |
--ex=*)
1060 exec_prefix
=$ac_optarg ;;
1062 -gas |
--gas |
--ga |
--g)
1063 # Obsolete; use --with-gas.
1066 -help |
--help |
--hel |
--he |
-h)
1067 ac_init_help
=long
;;
1068 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1069 ac_init_help
=recursive
;;
1070 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1071 ac_init_help
=short
;;
1073 -host |
--host |
--hos |
--ho)
1074 ac_prev
=host_alias
;;
1075 -host=* |
--host=* |
--hos=* |
--ho=*)
1076 host_alias
=$ac_optarg ;;
1078 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1080 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1082 htmldir
=$ac_optarg ;;
1084 -includedir |
--includedir |
--includedi |
--included |
--include \
1085 |
--includ |
--inclu |
--incl |
--inc)
1086 ac_prev
=includedir
;;
1087 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1088 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1089 includedir
=$ac_optarg ;;
1091 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1093 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1094 infodir
=$ac_optarg ;;
1096 -libdir |
--libdir |
--libdi |
--libd)
1098 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1099 libdir
=$ac_optarg ;;
1101 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1102 |
--libexe |
--libex |
--libe)
1103 ac_prev
=libexecdir
;;
1104 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1105 |
--libexe=* |
--libex=* |
--libe=*)
1106 libexecdir
=$ac_optarg ;;
1108 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1109 ac_prev
=localedir
;;
1110 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1111 localedir
=$ac_optarg ;;
1113 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1114 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1115 ac_prev
=localstatedir
;;
1116 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1117 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1118 localstatedir
=$ac_optarg ;;
1120 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1122 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1123 mandir
=$ac_optarg ;;
1125 -nfp |
--nfp |
--nf)
1126 # Obsolete; use --without-fp.
1129 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1130 |
--no-cr |
--no-c |
-n)
1133 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1134 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1137 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1138 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1139 |
--oldin |
--oldi |
--old |
--ol |
--o)
1140 ac_prev
=oldincludedir
;;
1141 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1142 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1143 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1144 oldincludedir
=$ac_optarg ;;
1146 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1148 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1149 prefix
=$ac_optarg ;;
1151 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1152 |
--program-pre |
--program-pr |
--program-p)
1153 ac_prev
=program_prefix
;;
1154 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1155 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1156 program_prefix
=$ac_optarg ;;
1158 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1159 |
--program-suf |
--program-su |
--program-s)
1160 ac_prev
=program_suffix
;;
1161 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1162 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1163 program_suffix
=$ac_optarg ;;
1165 -program-transform-name |
--program-transform-name \
1166 |
--program-transform-nam |
--program-transform-na \
1167 |
--program-transform-n |
--program-transform- \
1168 |
--program-transform |
--program-transfor \
1169 |
--program-transfo |
--program-transf \
1170 |
--program-trans |
--program-tran \
1171 |
--progr-tra |
--program-tr |
--program-t)
1172 ac_prev
=program_transform_name
;;
1173 -program-transform-name=* |
--program-transform-name=* \
1174 |
--program-transform-nam=* |
--program-transform-na=* \
1175 |
--program-transform-n=* |
--program-transform-=* \
1176 |
--program-transform=* |
--program-transfor=* \
1177 |
--program-transfo=* |
--program-transf=* \
1178 |
--program-trans=* |
--program-tran=* \
1179 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1180 program_transform_name
=$ac_optarg ;;
1182 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1184 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1185 pdfdir
=$ac_optarg ;;
1187 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1189 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1192 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1193 |
-silent |
--silent |
--silen |
--sile |
--sil)
1196 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1198 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1200 sbindir
=$ac_optarg ;;
1202 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1203 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1204 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1206 ac_prev
=sharedstatedir
;;
1207 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1208 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1209 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1211 sharedstatedir
=$ac_optarg ;;
1213 -site |
--site |
--sit)
1215 -site=* |
--site=* |
--sit=*)
1218 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1220 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1221 srcdir
=$ac_optarg ;;
1223 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1224 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1225 ac_prev
=sysconfdir
;;
1226 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1227 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1228 sysconfdir
=$ac_optarg ;;
1230 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1231 ac_prev
=target_alias
;;
1232 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1233 target_alias
=$ac_optarg ;;
1235 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1238 -version |
--version |
--versio |
--versi |
--vers |
-V)
1239 ac_init_version
=: ;;
1242 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1245 as_fn_error $?
"invalid package name: $ac_useropt"
1246 ac_useropt_orig
=$ac_useropt
1247 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1252 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep
=', ';;
1255 eval with_
$ac_useropt=\
$ac_optarg ;;
1257 -without-* |
--without-*)
1258 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1261 as_fn_error $?
"invalid package name: $ac_useropt"
1262 ac_useropt_orig
=$ac_useropt
1263 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1268 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep
=', ';;
1271 eval with_
$ac_useropt=no
;;
1274 # Obsolete; use --with-x.
1277 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1278 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1279 ac_prev
=x_includes
;;
1280 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1281 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1282 x_includes
=$ac_optarg ;;
1284 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1285 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1286 ac_prev
=x_libraries
;;
1287 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1288 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1289 x_libraries
=$ac_optarg ;;
1291 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1292 Try \`$0 --help' for more information"
1296 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 case $ac_envvar in #(
1299 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1300 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1302 eval $ac_envvar=\
$ac_optarg
1303 export $ac_envvar ;;
1306 # FIXME: should be removed in autoconf 3.0.
1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1316 if test -n "$ac_prev"; then
1317 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1318 as_fn_error $?
"missing argument to $ac_option"
1321 if test -n "$ac_unrecognized_opts"; then
1322 case $enable_option_checking in
1324 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329 # Check all directory arguments for consistency.
1330 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir
1335 eval ac_val
=\$
$ac_var
1336 # Remove trailing slashes.
1339 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340 eval $ac_var=\
$ac_val;;
1342 # Be sure to have absolute directory names.
1344 [\\/$
]* | ?
:[\\/]* ) continue;;
1345 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1347 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1355 target
=$target_alias
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x
; then
1359 if test "x$build_alias" = x
; then
1360 cross_compiling
=maybe
1361 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1362 If a cross compiler is detected then cross compile mode will be used" >&2
1363 elif test "x$build_alias" != "x$host_alias"; then
1369 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1371 test "$silent" = yes && exec 6>/dev
/null
1374 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di
=`ls -di .` &&
1376 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1377 as_fn_error $?
"working directory cannot be determined"
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379 as_fn_error $?
"pwd does not report name of working directory"
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384 ac_srcdir_defaulted
=yes
1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir
=`$as_dirname -- "$as_myself" ||
1387 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$as_myself" : 'X\(//\)[^/]' \| \
1389 X"$as_myself" : 'X\(//\)$' \| \
1390 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391 $as_echo X"$as_myself" |
1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1414 ac_srcdir_defaulted
=no
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1418 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1420 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1432 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 for ac_var
in $ac_precious_vars; do
1435 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1437 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1442 # Report the --help message.
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1448 \`configure' configures this package to adapt to many kinds of systems.
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1455 Defaults for the options are specified in brackets.
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking ...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1479 For better control, use the options below.
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1507 if test -n "$ac_init_help"; then
1512 --disable-option-checking ignore unrecognized
--enable/--with options
1513 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1514 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1515 --enable-static install static libraries
1516 --enable-mallinfo build with malloc debug logging
1517 --enable-libpaper build with libpaper support
1518 --enable-libusb use libusb
for USB printing
1519 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1520 --enable-acl build with POSIX ACL support
1521 --disable-dbus build without DBUS support
1522 --disable-shared do not create shared libraries
1523 --enable-libtool-unsupported
1524 build with libtool
(UNSUPPORTED
!)
1525 --enable-debug build with debugging symbols
1526 --enable-debug-guards build with memory allocation guards
1527 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1528 --enable-unit-tests build and run unit tests
1529 --enable-relro build with the GCC relro option
1530 --disable-gssapi disable GSSAPI support
1531 --disable-threads disable multi-threading support
1532 --disable-ssl disable SSL
/TLS support
1533 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1534 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1535 --disable-pam disable PAM support
1536 --disable-largefile omit support
for large files
1537 --disable-avahi disable DNS Service Discovery support using Avahi
1538 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1539 --disable-launchd disable launchd support
1540 --disable-systemd disable systemd support
1541 --disable-browsing disable Browsing by default
1542 --disable-default-shared
1543 disable DefaultShared by default
1544 --disable-raw-printing do not allow raw printing by default
1545 --enable-webif enable the web interface by default
, default
=no
for OS X
1548 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1549 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1550 --with-cups-build set "cups-config --build" string
1551 --with-dbusdir set DBUS configuration directory
1552 --with-adminkey set the default SystemAuthKey value
1553 --with-operkey set the default operator @AUTHKEY value
1554 --with-components set components to build
:
1555 - "all" (default
) builds everything
1556 - "core" builds libcups and ipptool
1557 --with-privateinclude set path
for private include files
, default
=none
1558 --with-lpdconfig set URI
for LPD config
file
1559 --with-smbconfig set URI
for Samba config
file
1560 --with-cachedir set path
for cache files
1561 --with-icondir set path
for application icons
1562 --with-menudir set path
for application menus
1563 --with-docdir set path
for documentation
1564 --with-fontpath set font path
for pstoraster
1565 --with-logdir set path
for log files
1566 --with-rundir set transient run-time state directory
1567 --with-optim set optimization flags
1568 --with-archflags set default architecture flags
1569 --with-ldarchflags set program architecture flags
1570 --with-domainsocket set unix domain socket name
1571 --with-gssservicename set default gss service name
1572 --with-pam-module specify the PAM module to use
1573 --with-dnssd-libs set directory
for DNS Service Discovery library
1574 --with-dnssd-includes set directory
for DNS Service Discovery includes
1575 --with-systemd set directory
for systemd service files
1576 --with-smfmanifestdir set path
for Solaris SMF manifest
1577 --with-rcdir set path
for rc scripts
1578 --with-rclevels set run levels
for rc scripts
1579 --with-rcstart set start number
for rc scripts
1580 --with-rcstop set stop number
for rc scripts
1581 --with-xinetd set path
for xinetd config files
1582 --with-languages set installed languages
, default
=all
1583 --with-bundledir set OS X localization bundle directory
1584 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1585 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1586 --with-log-file-perm set default LogFilePerm value
, default
=0644
1587 --with-fatal-errors set default FatalErrors value
, default
=config
1588 --with-log-level set default LogLevel value
, default
=warn
1589 --with-access-log-level set default AccessLogLevel value
, default
=none
1590 --enable-page-logging enable page_log by default
1591 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1592 --with-cups-user set default user
for CUPS
1593 --with-cups-group set default group
for CUPS
1594 --with-system-groups set default system groups
for CUPS
1595 --with-printcap set default printcap
file
1596 --with-lpdconfigfile set default LPDConfigFile URI
1597 --with-smbconfigfile set default SMBConfigFile URI
1598 --with-max-copies set default max copies value
, default
=9999
1599 --with-snmp-address set SNMP query address
, default
=auto
1600 --with-snmp-community set SNMP community
, default
=public
1601 --with-ipp-port set port number
for IPP
, default
=631
1602 --with-java set Java interpreter
for web interfaces
1603 --with-perl set Perl interpreter
for web interfaces
1604 --with-php set PHP interpreter
for web interfaces
1605 --with-python set Python interpreter
for web interfaces
1607 Some influential environment variables
:
1608 CC C compiler
command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1611 nonstandard directory
<lib dir
>
1612 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1613 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1614 you have headers
in a nonstandard directory
<include dir
>
1616 CXX C
++ compiler
command
1617 CXXFLAGS C
++ compiler flags
1619 Use these variables to override the choices made by
`configure' or to help
1620 it to find libraries and programs with nonstandard names/locations.
1622 Report bugs to the package provider.
1627 if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630 test -d "$ac_dir" ||
1631 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1652 .) # We are building in place.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1686 generated by GNU Autoconf 2.68
1688 Copyright (C) 2010 Free Software Foundation, Inc.
1689 This configure script is free software; the Free Software Foundation
1690 gives unlimited permission to copy, distribute and modify it.
1695 ## ------------------------ ##
1696 ## Autoconf initialization. ##
1697 ## ------------------------ ##
1699 # ac_fn_c_try_compile LINENO
1700 # --------------------------
1701 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_compile ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext
1706 if { { ac_try="$ac_compile"
1708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1709 *) ac_try_echo
=$ac_try;;
1711 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_compile") 2>conftest.err
1715 if test -s conftest.err
; then
1716 grep -v '^ *+' conftest.err
>conftest.er1
1717 cat conftest.er1
>&5
1718 mv -f conftest.er1 conftest.err
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest.
$ac_objext; then :
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.
$ac_ext >&5
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status
$ac_retval
1735 } # ac_fn_c_try_compile
1737 # ac_fn_c_try_cpp LINENO
1738 # ----------------------
1739 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1743 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } > conftest.i && {
1759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1774 # ac_fn_cxx_try_compile LINENO
1775 # ----------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_cxx_try_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1784 *) ac_try_echo
=$ac_try;;
1786 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1790 if test -s conftest.err
; then
1791 grep -v '^ *+' conftest.err
>conftest.er1
1792 cat conftest.er1
>&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_cxx_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.
$ac_objext; then :
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.
$ac_ext >&5
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status
$ac_retval
1810 } # ac_fn_cxx_try_compile
1812 # ac_fn_c_try_link LINENO
1813 # -----------------------
1814 # Try to link conftest.$ac_ext, and return whether this succeeded.
1817 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1818 rm -f conftest.
$ac_objext conftest
$ac_exeext
1819 if { { ac_try
="$ac_link"
1821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_link") 2>conftest.err
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest$ac_exeext && {
1838 test "$cross_compiling" = yes ||
1839 $as_test_x conftest$ac_exeext
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1848 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1849 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1850 # interfere with the next link command; also delete a directory that is
1851 # left behind by Apple's compiler. We do this before executing the actions.
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1856 } # ac_fn_c_try_link
1858 # ac_fn_c_try_run LINENO
1859 # ----------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1861 # that executables *can* be run.
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 if { { ac_try="$ac_link"
1867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1868 *) ac_try_echo
=$ac_try;;
1870 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>&5
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1876 { { case "(($ac_try" in
1877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_try") 2>&5
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; }; }; then :
1888 $as_echo "$as_me: program exited with status $ac_status" >&5
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1892 ac_retval=$ac_status
1894 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 as_fn_set_status $ac_retval
1900 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1901 # -------------------------------------------------------
1902 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1903 # the include files in INCLUDES and setting the cache variable VAR
1905 ac_fn_c_check_header_mongrel ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if eval \${$3+:} false; then :
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1918 # Is the header compilable?
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1920 $as_echo_n "checking $2 usability... " >&6; }
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 ac_header_compiler=yes
1929 ac_header_compiler=no
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1933 $as_echo "$ac_header_compiler" >&6; }
1935 # Is the header present?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1937 $as_echo_n "checking $2 presence... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1942 if ac_fn_c_try_cpp "$LINENO"; then :
1943 ac_header_preproc=yes
1945 ac_header_preproc=no
1947 rm -f conftest.err conftest.i conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1949 $as_echo "$ac_header_preproc" >&6; }
1951 # So? What about this header?
1952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1955 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1961 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1963 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1965 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1967 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1977 eval "$3=\$ac_header_compiler"
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 } # ac_fn_c_check_header_mongrel
1987 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1988 # -------------------------------------------------------
1989 # Tests whether HEADER exists and can be compiled using the include files in
1990 # INCLUDES, setting the cache variable VAR accordingly.
1991 ac_fn_c_check_header_compile ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 $as_echo_n "checking for $2... " >&6; }
1996 if eval \${$3+:} false; then :
1997 $as_echo_n "(cached) " >&6
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2004 if ac_fn_c_try_compile "$LINENO"; then :
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 } # ac_fn_c_check_header_compile
2018 # ac_fn_c_check_func LINENO FUNC VAR
2019 # ----------------------------------
2020 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2021 ac_fn_c_check_func ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if eval \${$3+:} false; then :
2027 $as_echo_n "(cached) " >&6
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2031 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2033 #define $2 innocuous_$2
2035 /* System header to define __stub macros and hopefully few prototypes,
2036 which can conflict with char $2 (); below.
2037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2038 <limits.h> exists even on freestanding compilers. */
2041 # include <limits.h>
2043 # include <assert.h>
2048 /* Override any GCC internal prototype to avoid an error.
2049 Use char because int might match the return type of a GCC
2050 builtin and then its argument prototype would still apply. */
2055 /* The GNU C library defines this for functions which it implements
2056 to always fail with ENOSYS. Some functions are actually named
2057 something starting with __ and the normal name is an alias. */
2058 #if defined __stub_$2 || defined __stub___$2
2070 if ac_fn_c_try_link "$LINENO"; then :
2075 rm -f core conftest.err conftest.$ac_objext \
2076 conftest$ac_exeext conftest.$ac_ext
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 } # ac_fn_c_check_func
2085 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2086 # ----------------------------------------------------
2087 # Tries to find if the field MEMBER exists in type AGGR, after including
2088 # INCLUDES, setting cache variable VAR accordingly.
2089 ac_fn_c_check_member ()
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2093 $as_echo_n "checking for $2.$3... " >&6; }
2094 if eval \${$4+:} false; then :
2095 $as_echo_n "(cached) " >&6
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2110 if ac_fn_c_try_compile "$LINENO"; then :
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2120 if (sizeof ac_aggr.$3)
2126 if ac_fn_c_try_compile "$LINENO"; then :
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140 } # ac_fn_c_check_member
2141 cat >config.log <<_ACEOF
2142 This file contains any messages produced by compilers while
2143 running configure, to aid debugging if configure makes a mistake.
2145 It was created by $as_me, which was
2146 generated by GNU Autoconf 2.68. Invocation command line was
2158 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2159 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2160 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2161 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2162 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2164 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2165 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2167 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2168 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2169 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2170 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2171 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2172 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2173 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 $as_echo "PATH: $as_dir"
2198 # Keep a trace of the command line.
2199 # Strip out --no-create and --no-recursion so they do not pile up.
2200 # Strip out --silent because we don't want to record it for future runs.
2201 # Also quote any args containing shell meta-characters.
2202 # Make two passes to allow for proper duplicate-argument suppression.
2206 ac_must_keep_next=false
2212 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2214 | -silent | --silent | --silen | --sile | --sil)
2217 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2220 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2222 as_fn_append ac_configure_args1 " '$ac_arg'"
2223 if test $ac_must_keep_next = true; then
2224 ac_must_keep_next=false # Got value, back to normal.
2227 *=* | --config-cache | -C | -disable-* | --disable-* \
2228 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2229 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2230 | -with-* | --with-* | -without-* | --without-* | --x)
2231 case "$ac_configure_args0 " in
2232 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2235 -* ) ac_must_keep_next=true ;;
2238 as_fn_append ac_configure_args " '$ac_arg'"
2243 { ac_configure_args0=; unset ac_configure_args0;}
2244 { ac_configure_args1=; unset ac_configure_args1;}
2246 # When interrupted or exit'd, cleanup temporary files, and complete
2247 # config.log. We remove comments because anyway the quotes in there
2248 # would cause problems or look ugly.
2249 # WARNING: Use '\'' to represent an apostrophe within the trap.
2250 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2251 trap 'exit_status=$?
2252 # Save into config.log some information that might help in debugging.
2256 $as_echo "## ---------------- ##
2257 ## Cache variables. ##
2258 ## ---------------- ##"
2260 # The following way of writing the cache mishandles newlines in values,
2262 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2263 eval ac_val=\$$ac_var
2267 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2268 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2271 _ | IFS | as_nl) ;; #(
2272 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2273 *) { eval $ac_var=; unset $ac_var;} ;;
2278 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2279 *${as_nl}ac_space=\ *)
2281 "s/'\''/'\''\\\\'\'''\''/g;
2282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2285 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2292 $as_echo "## ----------------- ##
2293 ## Output variables. ##
2294 ## ----------------- ##"
2296 for ac_var in $ac_subst_vars
2298 eval ac_val=\$$ac_var
2300 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2302 $as_echo "$ac_var='\''$ac_val'\''"
2306 if test -n "$ac_subst_files"; then
2307 $as_echo "## ------------------- ##
2308 ## File substitutions. ##
2309 ## ------------------- ##"
2311 for ac_var in $ac_subst_files
2313 eval ac_val=\$$ac_var
2315 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317 $as_echo "$ac_var='\''$ac_val'\''"
2322 if test -s confdefs.h; then
2323 $as_echo "## ----------- ##
2330 test "$ac_signal" != 0 &&
2331 $as_echo "$as_me: caught signal $ac_signal"
2332 $as_echo "$as_me: exit $exit_status"
2334 rm -f core *.core core.conftest.* &&
2335 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2338 for ac_signal in 1 2 13 15; do
2339 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2344 rm -f -r conftest* confdefs.h
2346 $as_echo "/* confdefs.h */" > confdefs.h
2348 # Predefined preprocessor variables.
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_NAME "$PACKAGE_NAME"
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_STRING "$PACKAGE_STRING"
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_URL "$PACKAGE_URL"
2375 # Let the site file select an alternate cache file if it wants to.
2376 # Prefer an explicitly selected file to automatically selected ones.
2379 if test -n "$CONFIG_SITE"; then
2380 # We do not want a PATH search for config.site.
2381 case $CONFIG_SITE in #((
2382 -*) ac_site_file1=./$CONFIG_SITE;;
2383 */*) ac_site_file1=$CONFIG_SITE;;
2384 *) ac_site_file1=./$CONFIG_SITE;;
2386 elif test "x$prefix" != xNONE; then
2387 ac_site_file1=$prefix/share/config.site
2388 ac_site_file2=$prefix/etc/config.site
2390 ac_site_file1=$ac_default_prefix/share/config.site
2391 ac_site_file2=$ac_default_prefix/etc/config.site
2393 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2395 test "x$ac_site_file" = xNONE && continue
2396 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2398 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2399 sed 's/^/| /' "$ac_site_file" >&5
2401 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2403 as_fn_error $? "failed to load site
script $ac_site_file
2404 See \
`config.log' for more details" "$LINENO" 5; }
2408 if test -r "$cache_file"; then
2409 # Some versions of bash will fail to source /dev/null (special files
2410 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2411 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2413 $as_echo "$as_me: loading cache $cache_file" >&6;}
2415 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2416 *) . "./$cache_file";;
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2421 $as_echo "$as_me: creating cache $cache_file" >&6;}
2425 # Check that the precious variables saved in the cache have kept the same
2427 ac_cache_corrupted=false
2428 for ac_var in $ac_precious_vars; do
2429 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2430 eval ac_new_set=\$ac_env_${ac_var}_set
2431 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2432 eval ac_new_val=\$ac_env_${ac_var}_value
2433 case $ac_old_set,$ac_new_set in
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2436 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2437 ac_cache_corrupted=: ;;
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2440 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2441 ac_cache_corrupted=: ;;
2444 if test "x$ac_old_val" != "x$ac_new_val"; then
2445 # differences in whitespace do not lead to failure.
2446 ac_old_val_w=`echo x
$ac_old_val`
2447 ac_new_val_w=`echo x
$ac_new_val`
2448 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2450 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2451 ac_cache_corrupted=:
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2454 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2455 eval $ac_var=\$ac_old_val
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2458 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2460 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2463 # Pass precious variables to config.status.
2464 if test "$ac_new_set" = set; then
2466 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2467 *) ac_arg=$ac_var=$ac_new_val ;;
2469 case " $ac_configure_args " in
2470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2471 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2475 if $ac_cache_corrupted; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2479 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2480 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2482 ## -------------------- ##
2483 ## Main body of script. ##
2484 ## -------------------- ##
2487 ac_cpp='$CPP $CPPFLAGS'
2488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496 uversion=`uname
-r |
sed -e '1,$s/^[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/'`
2502 if test $uversion -lt 120; then
2503 as_fn_error $? "Sorry, this version of CUPS requires OS X 10.8 or higher." "$LINENO" 5
2519 ac_config_headers="$ac_config_headers config.h"
2524 #if test -z "$CUPS_REVISION" -a -d .svn; then
2525 # CUPS_REVISION="-r`svnversion . |
awk -F: '{print $NF}' |
sed -e '1,$s/[[a-zA-Z]]*//g'`"
2527 CUPS_BUILD="cups-$CUPS_VERSION"
2530 # Check whether --with-cups_build was given.
2531 if test "${with_cups_build+set}" = set; then :
2532 withval=$with_cups_build; CUPS_BUILD="$withval"
2539 cat >>confdefs.h <<_ACEOF
2540 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2543 cat >>confdefs.h <<_ACEOF
2544 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2548 CFLAGS="${CFLAGS:=}"
2549 CPPFLAGS="${CPPFLAGS:=}"
2550 CXXFLAGS="${CXXFLAGS:=}"
2551 LDFLAGS="${LDFLAGS:=}"
2553 for ac_prog in gawk mawk nawk awk
2555 # Extract the first word of "$ac_prog", so it can be a program name with args.
2556 set dummy $ac_prog; ac_word=$2
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558 $as_echo_n "checking for $ac_word... " >&6; }
2559 if ${ac_cv_prog_AWK+:} false; then :
2560 $as_echo_n "(cached) " >&6
2562 if test -n "$AWK"; then
2563 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_AWK="$ac_prog"
2573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 if test -n "$AWK"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2585 $as_echo "$AWK" >&6; }
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588 $as_echo "no" >&6; }
2592 test -n "$AWK" && break
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2600 if test -n "$ac_tool_prefix"; then
2601 for ac_prog in clang cc gcc
2603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if ${ac_cv_prog_CC+:} false; then :
2608 $as_echo_n "(cached) " >&6
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 if test -n "$CC"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2633 $as_echo "$CC" >&6; }
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2640 test -n "$CC" && break
2643 if test -z "$CC"; then
2645 for ac_prog in clang cc gcc
2647 # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2652 $as_echo_n "(cached) " >&6
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_ac_ct_CC="$ac_prog"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2675 if test -n "$ac_ct_CC"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2677 $as_echo "$ac_ct_CC" >&6; }
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2684 test -n "$ac_ct_CC" && break
2687 if test "x$ac_ct_CC" = x; then
2690 case $cross_compiling:$ac_tool_warned in
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2694 ac_tool_warned=yes ;;
2701 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2703 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2704 See \
`config.log' for more details" "$LINENO" 5; }
2706 # Provide some information about the compiler.
2707 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2710 for ac_option in --version -v -V -qversion; do
2711 { { ac_try="$ac_compiler $ac_option >&5"
2713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2714 *) ac_try_echo
=$ac_try;;
2716 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2717 $as_echo "$ac_try_echo"; } >&5
2718 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2720 if test -s conftest.err
; then
2722 ... rest of stderr output deleted ...
2723 10q' conftest.err
>conftest.er1
2724 cat conftest.er1
>&5
2726 rm -f conftest.er1 conftest.err
2727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2728 test $ac_status = 0; }
2731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h. */
2742 ac_clean_files_save
=$ac_clean_files
2743 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2744 # Try to create an executable without -o first, disregard a.out.
2745 # It will help us diagnose broken compilers, and finding out an intuition
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2748 $as_echo_n "checking whether the C compiler works... " >&6; }
2749 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2751 # The possible output files:
2752 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2755 for ac_file
in $ac_files
2758 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2759 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2764 if { { ac_try
="$ac_link_default"
2766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2770 $as_echo "$ac_try_echo"; } >&5
2771 (eval "$ac_link_default") 2>&5
2773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2774 test $ac_status = 0; }; then :
2775 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2776 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2777 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2778 # so that the user can short-circuit this test for compilers unknown to
2780 for ac_file in $ac_files ''
2782 test -f "$ac_file" || continue
2784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2787 # We found the default executable, but exeext='' is most
2791 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2793 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2795 # We set ac_cv_exeext here because the later test for it is not
2796 # safe: cross compilers may not add the suffix if given an `-o'
2797 # argument, so we may need to know it at that point already.
2798 # Even if this section looks crufty: it has the advantage of
2805 test "$ac_cv_exeext" = no && ac_cv_exeext=
2810 if test -z "$ac_file"; then :
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2813 $as_echo "$as_me: failed program was:" >&5
2814 sed 's
/^
/|
/' conftest.$ac_ext >&5
2816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2818 as_fn_error 77 "C compiler cannot create executables
2819 See \`config.log
' for more details" "$LINENO" 5; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2822 $as_echo "yes" >&6; }
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2825 $as_echo_n "checking for C compiler default output file name... " >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2827 $as_echo "$ac_file" >&6; }
2828 ac_exeext=$ac_cv_exeext
2830 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2831 ac_clean_files=$ac_clean_files_save
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2833 $as_echo_n "checking for suffix of executables... " >&6; }
2834 if { { ac_try="$ac_link"
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840 $as_echo "$ac_try_echo"; } >&5
2841 (eval "$ac_link") 2>&5
2843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2844 test $ac_status = 0; }; then :
2845 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2846 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2847 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2849 for ac_file
in conftest.exe conftest conftest.
*; do
2850 test -f "$ac_file" ||
continue
2852 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2853 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2862 See \`config.log' for more details" "$LINENO" 5; }
2864 rm -f conftest conftest
$ac_cv_exeext
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2866 $as_echo "$ac_cv_exeext" >&6; }
2868 rm -f conftest.
$ac_ext
2869 EXEEXT
=$ac_cv_exeext
2871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2872 /* end confdefs.h. */
2877 FILE *f = fopen ("conftest.out", "w");
2878 return ferror (f) || fclose (f) != 0;
2884 ac_clean_files
="$ac_clean_files conftest.out"
2885 # Check that the compiler produces executables we can run. If not, either
2886 # the compiler is broken, or we cross compile.
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2888 $as_echo_n "checking whether we are cross compiling... " >&6; }
2889 if test "$cross_compiling" != yes; then
2890 { { ac_try
="$ac_link"
2892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2896 $as_echo "$ac_try_echo"; } >&5
2897 (eval "$ac_link") 2>&5
2899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2900 test $ac_status = 0; }
2901 if { ac_try='./conftest$ac_cv_exeext'
2902 { { case "(($ac_try" in
2903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2904 *) ac_try_echo
=$ac_try;;
2906 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2907 $as_echo "$ac_try_echo"; } >&5
2908 (eval "$ac_try") 2>&5
2910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2911 test $ac_status = 0; }; }; then
2914 if test "$cross_compiling" = maybe
; then
2917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2919 as_fn_error $?
"cannot run C compiled programs.
2920 If you meant to cross compile, use \`--host'.
2921 See \`config.log' for more details" "$LINENO" 5; }
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2926 $as_echo "$cross_compiling" >&6; }
2928 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2929 ac_clean_files
=$ac_clean_files_save
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2931 $as_echo_n "checking for suffix of object files... " >&6; }
2932 if ${ac_cv_objext+:} false
; then :
2933 $as_echo_n "(cached) " >&6
2935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2936 /* end confdefs.h. */
2946 rm -f conftest.o conftest.obj
2947 if { { ac_try
="$ac_compile"
2949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953 $as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_compile") 2>&5
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }; then :
2958 for ac_file in conftest.o conftest.obj conftest.*; do
2959 test -f "$ac_file" || continue;
2961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2962 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2967 $as_echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2973 See \
`config.log' for more details" "$LINENO" 5; }
2975 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2978 $as_echo "$ac_cv_objext" >&6; }
2979 OBJEXT=$ac_cv_objext
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2982 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2983 if ${ac_cv_c_compiler_gnu+:} false; then :
2984 $as_echo_n "(cached) " >&6
2986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2987 /* end confdefs.h. */
3000 if ac_fn_c_try_compile "$LINENO"; then :
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3010 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3011 if test $ac_compiler_gnu = yes; then
3016 ac_test_CFLAGS=${CFLAGS+set}
3017 ac_save_CFLAGS=$CFLAGS
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3019 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3020 if ${ac_cv_prog_cc_g+:} false; then :
3021 $as_echo_n "(cached) " >&6
3023 ac_save_c_werror_flag=$ac_c_werror_flag
3024 ac_c_werror_flag=yes
3027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3028 /* end confdefs.h. */
3038 if ac_fn_c_try_compile "$LINENO"; then :
3042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043 /* end confdefs.h. */
3053 if ac_fn_c_try_compile "$LINENO"; then :
3056 ac_c_werror_flag=$ac_save_c_werror_flag
3058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3069 if ac_fn_c_try_compile "$LINENO"; then :
3072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 ac_c_werror_flag=$ac_save_c_werror_flag
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3080 $as_echo "$ac_cv_prog_cc_g" >&6; }
3081 if test "$ac_test_CFLAGS" = set; then
3082 CFLAGS=$ac_save_CFLAGS
3083 elif test $ac_cv_prog_cc_g = yes; then
3084 if test "$GCC" = yes; then
3090 if test "$GCC" = yes; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3097 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3098 if ${ac_cv_prog_cc_c89+:} false; then :
3099 $as_echo_n "(cached) " >&6
3101 ac_cv_prog_cc_c89=no
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3107 #include <sys/types.h>
3108 #include <sys/stat.h>
3109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3110 struct buf { int x; };
3111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3112 static char *e (p, i)
3118 static char *f (char * (*g) (char **, int), char **p, ...)
3123 s = g (p, va_arg (v,int));
3128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3129 function prototypes and stuff, but not '\xHH' hex character constants.
3130 These don't provoke an error unfortunately, instead are silently treated
3131 as 'x'. The following induces an error, until -std is added to get
3132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3133 array size at least. It's necessary to write '\x00'==0 to get something
3134 that's true only with -std. */
3135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3138 inside strings and character constants. */
3140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3142 int test (int i, double x);
3143 struct s1 {int (*f) (int a);};
3144 struct s2 {int (*f) (double a);};
3145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3159 CC="$ac_save_CC $ac_arg"
3160 if ac_fn_c_try_compile "$LINENO"; then :
3161 ac_cv_prog_cc_c89=$ac_arg
3163 rm -f core conftest.err conftest.$ac_objext
3164 test "x$ac_cv_prog_cc_c89" != "xno" && break
3166 rm -f conftest.$ac_ext
3171 case "x$ac_cv_prog_cc_c89" in
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3174 $as_echo "none needed" >&6; } ;;
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3177 $as_echo "unsupported" >&6; } ;;
3179 CC="$CC $ac_cv_prog_cc_c89"
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3183 if test "x$ac_cv_prog_cc_c89" != xno; then :
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194 ac_cpp='$CPP $CPPFLAGS'
3195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3199 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3200 # On Suns, sometimes $CPP names a directory.
3201 if test -n "$CPP" && test -d "$CPP"; then
3204 if test -z "$CPP"; then
3205 if ${ac_cv_prog_CPP+:} false; then :
3206 $as_echo_n "(cached) " >&6
3208 # Double quotes because CPP needs to be expanded
3209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3212 for ac_c_preproc_warn_flag in '' yes
3214 # Use a header file that comes with gcc, so configuring glibc
3215 # with a fresh cross-compiler works.
3216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3217 # <limits.h> exists even on freestanding compilers.
3218 # On the NeXT, cc -E runs the code through the compiler's parser,
3219 # not just through cpp. "Syntax error" is here to catch this case.
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3223 # include <limits.h>
3225 # include <assert.h>
3229 if ac_fn_c_try_cpp "$LINENO"; then :
3232 # Broken: fails on valid input.
3235 rm -f conftest.err conftest.i conftest.$ac_ext
3237 # OK, works on sane cases. Now check whether nonexistent headers
3238 # can be detected and how.
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3241 #include <ac_nonexistent.h>
3243 if ac_fn_c_try_cpp "$LINENO"; then :
3244 # Broken: success on invalid input.
3247 # Passes both tests.
3251 rm -f conftest.err conftest.i conftest.$ac_ext
3254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3255 rm -f conftest.i conftest.err conftest.
$ac_ext
3256 if $ac_preproc_ok; then :
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3269 $as_echo "$CPP" >&6; }
3271 for ac_c_preproc_warn_flag
in '' yes
3273 # Use a header file that comes with gcc, so configuring glibc
3274 # with a fresh cross-compiler works.
3275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3276 # <limits.h> exists even on freestanding compilers.
3277 # On the NeXT, cc -E runs the code through the compiler's parser,
3278 # not just through cpp. "Syntax error" is here to catch this case.
3279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3282 # include <limits.h>
3284 # include <assert.h>
3288 if ac_fn_c_try_cpp
"$LINENO"; then :
3291 # Broken: fails on valid input.
3294 rm -f conftest.err conftest.i conftest.
$ac_ext
3296 # OK, works on sane cases. Now check whether nonexistent headers
3297 # can be detected and how.
3298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3300 #include <ac_nonexistent.h>
3302 if ac_fn_c_try_cpp
"$LINENO"; then :
3303 # Broken: success on invalid input.
3306 # Passes both tests.
3310 rm -f conftest.err conftest.i conftest.
$ac_ext
3313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3314 rm -f conftest.i conftest.err conftest.
$ac_ext
3315 if $ac_preproc_ok; then :
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3321 See \`config.log' for more details" "$LINENO" 5; }
3325 ac_cpp
='$CPP $CPPFLAGS'
3326 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3331 ac_cpp
='$CXXCPP $CPPFLAGS'
3332 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3335 if test -z "$CXX"; then
3336 if test -n "$CCC"; then
3339 if test -n "$ac_tool_prefix"; then
3340 for ac_prog
in clang
++ c
++ g
++
3342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3343 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if ${ac_cv_prog_CXX+:} false
; then :
3347 $as_echo_n "(cached) " >&6
3349 if test -n "$CXX"; then
3350 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3356 test -z "$as_dir" && as_dir
=.
3357 for ac_exec_ext
in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 if test -n "$CXX"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3372 $as_echo "$CXX" >&6; }
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3379 test -n "$CXX" && break
3382 if test -z "$CXX"; then
3384 for ac_prog
in clang
++ c
++ g
++
3386 # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy
$ac_prog; ac_word
=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3391 $as_echo_n "(cached) " >&6
3393 if test -n "$ac_ct_CXX"; then
3394 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3400 test -z "$as_dir" && as_dir
=.
3401 for ac_exec_ext
in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3414 if test -n "$ac_ct_CXX"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3416 $as_echo "$ac_ct_CXX" >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3423 test -n "$ac_ct_CXX" && break
3426 if test "x$ac_ct_CXX" = x
; then
3429 case $cross_compiling:$ac_tool_warned in
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned
=yes ;;
3441 # Provide some information about the compiler.
3442 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3445 for ac_option
in --version -v -V -qversion; do
3446 { { ac_try
="$ac_compiler $ac_option >&5"
3448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3455 if test -s conftest.err; then
3457 ... rest of stderr output deleted ...
3458 10q' conftest.err >conftest.er1
3459 cat conftest.er1 >&5
3461 rm -f conftest.er1 conftest.err
3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463 test $ac_status = 0; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3467 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3468 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3469 $as_echo_n "(cached) " >&6
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3485 if ac_fn_cxx_try_compile "$LINENO"; then :
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3495 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3496 if test $ac_compiler_gnu = yes; then
3501 ac_test_CXXFLAGS=${CXXFLAGS+set}
3502 ac_save_CXXFLAGS=$CXXFLAGS
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3504 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3505 if ${ac_cv_prog_cxx_g+:} false; then :
3506 $as_echo_n "(cached) " >&6
3508 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3509 ac_cxx_werror_flag=yes
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3523 if ac_fn_cxx_try_compile "$LINENO"; then :
3524 ac_cv_prog_cxx_g=yes
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3538 if ac_fn_cxx_try_compile "$LINENO"; then :
3541 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3554 if ac_fn_cxx_try_compile "$LINENO"; then :
3555 ac_cv_prog_cxx_g=yes
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3565 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3566 if test "$ac_test_CXXFLAGS" = set; then
3567 CXXFLAGS=$ac_save_CXXFLAGS
3568 elif test $ac_cv_prog_cxx_g = yes; then
3569 if test "$GXX" = yes; then
3575 if test "$GXX" = yes; then
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if ${ac_cv_prog_RANLIB+:} false; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$RANLIB"; then
3596 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 RANLIB=$ac_cv_prog_RANLIB
3616 if test -n "$RANLIB"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3618 $as_echo "$RANLIB" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3626 if test -z "$ac_cv_prog_RANLIB"; then
3627 ac_ct_RANLIB=$RANLIB
3628 # Extract the first word of "ranlib", so it can be a program name with args.
3629 set dummy ranlib; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3633 $as_echo_n "(cached) " >&6
3635 if test -n "$ac_ct_RANLIB"; then
3636 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 ac_cv_prog_ac_ct_RANLIB="ranlib"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3656 if test -n "$ac_ct_RANLIB"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3658 $as_echo "$ac_ct_RANLIB" >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3664 if test "x$ac_ct_RANLIB" = x; then
3667 case $cross_compiling:$ac_tool_warned in
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3671 ac_tool_warned=yes ;;
3673 RANLIB=$ac_ct_RANLIB
3676 RANLIB="$ac_cv_prog_RANLIB"
3679 # Extract the first word of "ar", so it can be a program name with args.
3680 set dummy ar; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if ${ac_cv_path_AR+:} false; then :
3684 $as_echo_n "(cached) " >&6
3688 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3698 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 if test -n "$AR"; then
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3712 $as_echo "$AR" >&6; }
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715 $as_echo "no" >&6; }
3719 # Extract the first word of "chmod", so it can be a program name with args.
3720 set dummy chmod; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if ${ac_cv_path_CHMOD+:} false; then :
3724 $as_echo_n "(cached) " >&6
3728 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3738 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 CHMOD=$ac_cv_path_CHMOD
3750 if test -n "$CHMOD"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3752 $as_echo "$CHMOD" >&6; }
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3759 # Extract the first word of "gzip", so it can be a program name with args.
3760 set dummy gzip; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if ${ac_cv_path_GZIP+:} false; then :
3764 $as_echo_n "(cached) " >&6
3768 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 GZIP=$ac_cv_path_GZIP
3790 if test -n "$GZIP"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3792 $as_echo "$GZIP" >&6; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3799 # Extract the first word of "ld", so it can be a program name with args.
3800 set dummy ld; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if ${ac_cv_path_LD+:} false; then :
3804 $as_echo_n "(cached) " >&6
3808 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3818 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 if test -n "$LD"; then
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3832 $as_echo "$LD" >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3839 # Extract the first word of "ln", so it can be a program name with args.
3840 set dummy ln; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if ${ac_cv_path_LN+:} false; then :
3844 $as_echo_n "(cached) " >&6
3848 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 if test -n "$LN"; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
3872 $as_echo "$LN" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3879 # Extract the first word of "mv", so it can be a program name with args.
3880 set dummy mv; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_path_MV+:} false; then :
3884 $as_echo_n "(cached) " >&6
3888 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 if test -n "$MV"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
3912 $as_echo "$MV" >&6; }
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3919 # Extract the first word of "rm", so it can be a program name with args.
3920 set dummy rm; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if ${ac_cv_path_RM+:} false; then :
3924 $as_echo_n "(cached) " >&6
3928 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3938 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 if test -n "$RM"; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
3952 $as_echo "$RM" >&6; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955 $as_echo "no" >&6; }
3959 # Extract the first word of "rmdir", so it can be a program name with args.
3960 set dummy rmdir; ac_word=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if ${ac_cv_path_RMDIR+:} false; then :
3964 $as_echo_n "(cached) " >&6
3968 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3978 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 RMDIR=$ac_cv_path_RMDIR
3990 if test -n "$RMDIR"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
3992 $as_echo "$RMDIR" >&6; }
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
3999 # Extract the first word of "sed", so it can be a program name with args.
4000 set dummy sed; ac_word=$2
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002 $as_echo_n "checking for $ac_word... " >&6; }
4003 if ${ac_cv_path_SED+:} false; then :
4004 $as_echo_n "(cached) " >&6
4008 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 test -z "$as_dir" && as_dir=.
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4018 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 if test -n "$SED"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4032 $as_echo "$SED" >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4039 # Extract the first word of "xdg-open", so it can be a program name with args.
4040 set dummy xdg-open; ac_word=$2
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042 $as_echo_n "checking for $ac_word... " >&6; }
4043 if ${ac_cv_path_XDGOPEN+:} false; then :
4044 $as_echo_n "(cached) " >&6
4048 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4058 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 XDGOPEN=$ac_cv_path_XDGOPEN
4070 if test -n "$XDGOPEN"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4072 $as_echo "$XDGOPEN" >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4079 if test "x$XDGOPEN" = x; then
4080 CUPS_HTMLVIEW="htmlview"
4082 CUPS_HTMLVIEW="$XDGOPEN"
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4087 $as_echo_n "checking for install-sh script... " >&6; }
4088 INSTALL="`pwd`/install-sh"
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4091 $as_echo "using $INSTALL" >&6; }
4093 if test "x$AR" = x; then
4094 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4096 if test "x$CC" = x; then
4097 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4101 # Check whether --enable-static was given.
4102 if test "${enable_static+set}" = set; then :
4103 enableval=$enable_static;
4107 if test x$enable_static = xyes; then
4108 echo Installing static libraries...
4109 INSTALLSTATIC="installstatic"
4114 if test -n "$ac_tool_prefix"; then
4115 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4116 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if ${ac_cv_path_PKGCONFIG+:} false; then :
4120 $as_echo_n "(cached) " >&6
4124 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 PKGCONFIG=$ac_cv_path_PKGCONFIG
4146 if test -n "$PKGCONFIG"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4148 $as_echo "$PKGCONFIG" >&6; }
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4156 if test -z "$ac_cv_path_PKGCONFIG"; then
4157 ac_pt_PKGCONFIG=$PKGCONFIG
4158 # Extract the first word of "pkg-config", so it can be a program name with args.
4159 set dummy pkg-config; ac_word=$2
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161 $as_echo_n "checking for $ac_word... " >&6; }
4162 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4163 $as_echo_n "(cached) " >&6
4165 case $ac_pt_PKGCONFIG in
4167 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4189 if test -n "$ac_pt_PKGCONFIG"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4191 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4197 if test "x$ac_pt_PKGCONFIG" = x; then
4200 case $cross_compiling:$ac_tool_warned in
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4204 ac_tool_warned=yes ;;
4206 PKGCONFIG=$ac_pt_PKGCONFIG
4209 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4215 $as_echo_n "checking for library containing abs... " >&6; }
4216 if ${ac_cv_search_abs+:} false; then :
4217 $as_echo_n "(cached) " >&6
4219 ac_func_search_save_LIBS=$LIBS
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4223 /* Override any GCC internal prototype to avoid an error.
4224 Use char because int might match the return type of a GCC
4225 builtin and then its argument prototype would still apply. */
4238 for ac_lib in '' m; do
4239 if test -z "$ac_lib"; then
4240 ac_res="none required"
4243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4245 if ac_fn_c_try_link "$LINENO"; then :
4246 ac_cv_search_abs=$ac_res
4248 rm -f core conftest.err conftest.$ac_objext \
4250 if ${ac_cv_search_abs+:} false; then :
4254 if ${ac_cv_search_abs+:} false; then :
4260 LIBS=$ac_func_search_save_LIBS
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4263 $as_echo "$ac_cv_search_abs" >&6; }
4264 ac_res=$ac_cv_search_abs
4265 if test "$ac_res" != no; then :
4266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4267 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4272 $as_echo_n "checking for library containing crypt... " >&6; }
4273 if ${ac_cv_search_crypt+:} false; then :
4274 $as_echo_n "(cached) " >&6
4276 ac_func_search_save_LIBS=$LIBS
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4280 /* Override any GCC internal prototype to avoid an error.
4281 Use char because int might match the return type of a GCC
4282 builtin and then its argument prototype would still apply. */
4295 for ac_lib in '' crypt; do
4296 if test -z "$ac_lib"; then
4297 ac_res="none required"
4300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4302 if ac_fn_c_try_link "$LINENO"; then :
4303 ac_cv_search_crypt=$ac_res
4305 rm -f core conftest.err conftest.$ac_objext \
4307 if ${ac_cv_search_crypt+:} false; then :
4311 if ${ac_cv_search_crypt+:} false; then :
4314 ac_cv_search_crypt=no
4317 LIBS=$ac_func_search_save_LIBS
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4320 $as_echo "$ac_cv_search_crypt" >&6; }
4321 ac_res=$ac_cv_search_crypt
4322 if test "$ac_res" != no; then :
4323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4328 $as_echo_n "checking for library containing fmod... " >&6; }
4329 if ${ac_cv_search_fmod+:} false; then :
4330 $as_echo_n "(cached) " >&6
4332 ac_func_search_save_LIBS=$LIBS
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4336 /* Override any GCC internal prototype to avoid an error.
4337 Use char because int might match the return type of a GCC
4338 builtin and then its argument prototype would still apply. */
4351 for ac_lib in '' m; do
4352 if test -z "$ac_lib"; then
4353 ac_res="none required"
4356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4358 if ac_fn_c_try_link "$LINENO"; then :
4359 ac_cv_search_fmod=$ac_res
4361 rm -f core conftest.err conftest.$ac_objext \
4363 if ${ac_cv_search_fmod+:} false; then :
4367 if ${ac_cv_search_fmod+:} false; then :
4370 ac_cv_search_fmod=no
4373 LIBS=$ac_func_search_save_LIBS
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4376 $as_echo "$ac_cv_search_fmod" >&6; }
4377 ac_res=$ac_cv_search_fmod
4378 if test "$ac_res" != no; then :
4379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4384 $as_echo_n "checking for library containing getspent... " >&6; }
4385 if ${ac_cv_search_getspent+:} false; then :
4386 $as_echo_n "(cached) " >&6
4388 ac_func_search_save_LIBS=$LIBS
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4392 /* Override any GCC internal prototype to avoid an error.
4393 Use char because int might match the return type of a GCC
4394 builtin and then its argument prototype would still apply. */
4407 for ac_lib in '' sec gen; do
4408 if test -z "$ac_lib"; then
4409 ac_res="none required"
4412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4414 if ac_fn_c_try_link "$LINENO"; then :
4415 ac_cv_search_getspent=$ac_res
4417 rm -f core conftest.err conftest.$ac_objext \
4419 if ${ac_cv_search_getspent+:} false; then :
4423 if ${ac_cv_search_getspent+:} false; then :
4426 ac_cv_search_getspent=no
4429 LIBS=$ac_func_search_save_LIBS
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4432 $as_echo "$ac_cv_search_getspent" >&6; }
4433 ac_res=$ac_cv_search_getspent
4434 if test "$ac_res" != no; then :
4435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4441 # Check whether --enable-mallinfo was given.
4442 if test "${enable_mallinfo+set}" = set; then :
4443 enableval=$enable_mallinfo;
4447 if test x$enable_mallinfo = xyes; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4451 $as_echo_n "checking for library containing mallinfo... " >&6; }
4452 if ${ac_cv_search_mallinfo+:} false; then :
4453 $as_echo_n "(cached) " >&6
4455 ac_func_search_save_LIBS=$LIBS
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4459 /* Override any GCC internal prototype to avoid an error.
4460 Use char because int might match the return type of a GCC
4461 builtin and then its argument prototype would still apply. */
4474 for ac_lib in '' malloc; do
4475 if test -z "$ac_lib"; then
4476 ac_res="none required"
4479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4481 if ac_fn_c_try_link "$LINENO"; then :
4482 ac_cv_search_mallinfo=$ac_res
4484 rm -f core conftest.err conftest.$ac_objext \
4486 if ${ac_cv_search_mallinfo+:} false; then :
4490 if ${ac_cv_search_mallinfo+:} false; then :
4493 ac_cv_search_mallinfo=no
4496 LIBS=$ac_func_search_save_LIBS
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4499 $as_echo "$ac_cv_search_mallinfo" >&6; }
4500 ac_res=$ac_cv_search_mallinfo
4501 if test "$ac_res" != no; then :
4502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4503 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4513 # Check whether --enable-libpaper was given.
4514 if test "${enable_libpaper+set}" = set; then :
4515 enableval=$enable_libpaper;
4519 if test x$enable_libpaper = xyes; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4521 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4522 if ${ac_cv_lib_paper_systempapername+:} false; then :
4523 $as_echo_n "(cached) " >&6
4525 ac_check_lib_save_LIBS=$LIBS
4526 LIBS="-lpaper $LIBS"
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4530 /* Override any GCC internal prototype to avoid an error.
4531 Use char because int might match the return type of a GCC
4532 builtin and then its argument prototype would still apply. */
4536 char systempapername ();
4540 return systempapername ();
4545 if ac_fn_c_try_link "$LINENO"; then :
4546 ac_cv_lib_paper_systempapername=yes
4548 ac_cv_lib_paper_systempapername=no
4550 rm -f core conftest.err conftest.$ac_objext \
4551 conftest$ac_exeext conftest.$ac_ext
4552 LIBS=$ac_check_lib_save_LIBS
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4555 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4556 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4557 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4571 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4572 if ${ac_cv_path_GREP+:} false; then :
4573 $as_echo_n "(cached) " >&6
4575 if test -z "$GREP"; then
4576 ac_path_GREP_found=false
4577 # Loop through the user's path and test for each of PROGNAME-LIST
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582 test -z "$as_dir" && as_dir=.
4583 for ac_prog in grep ggrep; do
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4586 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4587 # Check for GNU ac_path_GREP and select it if it is found.
4588 # Check for GNU $ac_path_GREP
4589 case `"$ac_path_GREP" --version 2>&1` in
4591 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4594 $as_echo_n 0123456789 >"conftest.in"
4597 cat "conftest.in" "conftest.in" >"conftest.tmp"
4598 mv "conftest.tmp" "conftest.in"
4599 cp "conftest.in" "conftest.nl"
4600 $as_echo 'GREP' >> "conftest.nl"
4601 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4603 as_fn_arith $ac_count + 1 && ac_count=$as_val
4604 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4605 # Best one so far, save it but keep looking for a better one
4606 ac_cv_path_GREP="$ac_path_GREP"
4607 ac_path_GREP_max=$ac_count
4609 # 10*(2^10) chars as input seems more than enough
4610 test $ac_count -gt 10 && break
4612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4615 $ac_path_GREP_found && break 3
4620 if test -z "$ac_cv_path_GREP"; then
4621 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4624 ac_cv_path_GREP=$GREP
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4629 $as_echo "$ac_cv_path_GREP" >&6; }
4630 GREP="$ac_cv_path_GREP"
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4634 $as_echo_n "checking for egrep... " >&6; }
4635 if ${ac_cv_path_EGREP+:} false; then :
4636 $as_echo_n "(cached) " >&6
4638 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4639 then ac_cv_path_EGREP="$GREP -E"
4641 if test -z "$EGREP"; then
4642 ac_path_EGREP_found=false
4643 # Loop through the user's path and test for each of PROGNAME-LIST
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4648 test -z "$as_dir" && as_dir=.
4649 for ac_prog in egrep; do
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4652 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4653 # Check for GNU ac_path_EGREP and select it if it is found.
4654 # Check for GNU $ac_path_EGREP
4655 case `"$ac_path_EGREP" --version 2>&1` in
4657 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4660 $as_echo_n 0123456789 >"conftest.in"
4663 cat "conftest.in" "conftest.in" >"conftest.tmp"
4664 mv "conftest.tmp" "conftest.in"
4665 cp "conftest.in" "conftest.nl"
4666 $as_echo 'EGREP' >> "conftest.nl"
4667 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4669 as_fn_arith $ac_count + 1 && ac_count=$as_val
4670 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4671 # Best one so far, save it but keep looking for a better one
4672 ac_cv_path_EGREP="$ac_path_EGREP"
4673 ac_path_EGREP_max=$ac_count
4675 # 10*(2^10) chars as input seems more than enough
4676 test $ac_count -gt 10 && break
4678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4681 $ac_path_EGREP_found && break 3
4686 if test -z "$ac_cv_path_EGREP"; then
4687 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4690 ac_cv_path_EGREP=$EGREP
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4696 $as_echo "$ac_cv_path_EGREP" >&6; }
4697 EGREP="$ac_cv_path_EGREP"
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4701 $as_echo_n "checking for ANSI C header files... " >&6; }
4702 if ${ac_cv_header_stdc+:} false; then :
4703 $as_echo_n "(cached) " >&6
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4720 if ac_fn_c_try_compile "$LINENO"; then :
4721 ac_cv_header_stdc=yes
4723 ac_cv_header_stdc=no
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 if test $ac_cv_header_stdc = yes; then
4728 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4735 $EGREP "memchr" >/dev/null 2>&1; then :
4738 ac_cv_header_stdc=no
4744 if test $ac_cv_header_stdc = yes; then
4745 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4752 $EGREP "free" >/dev/null 2>&1; then :
4755 ac_cv_header_stdc=no
4761 if test $ac_cv_header_stdc = yes; then
4762 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4763 if test "$cross_compiling" = yes; then :
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4770 #if ((' ' & 0x0FF) == 0x020)
4771 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4772 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4774 # define ISLOWER(c) \
4775 (('a' <= (c) && (c) <= 'i') \
4776 || ('j' <= (c) && (c) <= 'r') \
4777 || ('s' <= (c) && (c) <= 'z'))
4778 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4781 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4786 for (i = 0; i < 256; i++)
4787 if (XOR (islower (i), ISLOWER (i))
4788 || toupper (i) != TOUPPER (i))
4793 if ac_fn_c_try_run "$LINENO"; then :
4796 ac_cv_header_stdc=no
4798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4799 conftest.$ac_objext conftest.beam conftest.$ac_ext
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4805 $as_echo "$ac_cv_header_stdc" >&6; }
4806 if test $ac_cv_header_stdc = yes; then
4808 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4812 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4813 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4814 inttypes.h stdint.h unistd.h
4816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4817 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4819 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4820 cat >>confdefs.h <<_ACEOF
4821 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4829 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4830 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4831 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
4836 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
4837 if test "x$ac_cv_header_crypt_h" = xyes; then :
4838 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
4843 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
4844 if test "x$ac_cv_header_langinfo_h" = xyes; then :
4845 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
4850 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4851 if test "x$ac_cv_header_malloc_h" = xyes; then :
4852 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
4857 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4858 if test "x$ac_cv_header_shadow_h" = xyes; then :
4859 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
4864 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4865 if test "x$ac_cv_header_stdint_h" = xyes; then :
4866 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
4871 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4872 if test "x$ac_cv_header_string_h" = xyes; then :
4873 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
4878 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
4879 if test "x$ac_cv_header_strings_h" = xyes; then :
4880 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
4885 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
4886 if test "x$ac_cv_header_bstring_h" = xyes; then :
4887 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
4892 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4893 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
4894 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
4899 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4900 if test "x$ac_cv_header_sys_param_h" = xyes; then :
4901 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
4906 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
4907 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
4908 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
4914 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
4915 if test "x$ac_cv_header_iconv_h" = xyes; then :
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
4919 $as_echo_n "checking for library containing iconv_open... " >&6; }
4920 if ${ac_cv_search_iconv_open+:} false; then :
4921 $as_echo_n "(cached) " >&6
4923 ac_func_search_save_LIBS=$LIBS
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4927 /* Override any GCC internal prototype to avoid an error.
4928 Use char because int might match the return type of a GCC
4929 builtin and then its argument prototype would still apply. */
4937 return iconv_open ();
4942 for ac_lib in '' iconv; do
4943 if test -z "$ac_lib"; then
4944 ac_res="none required"
4947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4949 if ac_fn_c_try_link "$LINENO"; then :
4950 ac_cv_search_iconv_open=$ac_res
4952 rm -f core conftest.err conftest.$ac_objext \
4954 if ${ac_cv_search_iconv_open+:} false; then :
4958 if ${ac_cv_search_iconv_open+:} false; then :
4961 ac_cv_search_iconv_open=no
4964 LIBS=$ac_func_search_save_LIBS
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
4967 $as_echo "$ac_cv_search_iconv_open" >&6; }
4968 ac_res=$ac_cv_search_iconv_open
4969 if test "$ac_res" != no; then :
4970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4971 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
4973 SAVELIBS="$SAVELIBS $LIBS"
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
4977 $as_echo_n "checking for library containing libiconv_open... " >&6; }
4978 if ${ac_cv_search_libiconv_open+:} false; then :
4979 $as_echo_n "(cached) " >&6
4981 ac_func_search_save_LIBS=$LIBS
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4985 /* Override any GCC internal prototype to avoid an error.
4986 Use char because int might match the return type of a GCC
4987 builtin and then its argument prototype would still apply. */
4991 char libiconv_open ();
4995 return libiconv_open ();
5000 for ac_lib in '' iconv; do
5001 if test -z "$ac_lib"; then
5002 ac_res="none required"
5005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5007 if ac_fn_c_try_link "$LINENO"; then :
5008 ac_cv_search_libiconv_open=$ac_res
5010 rm -f core conftest.err conftest.$ac_objext \
5012 if ${ac_cv_search_libiconv_open+:} false; then :
5016 if ${ac_cv_search_libiconv_open+:} false; then :
5019 ac_cv_search_libiconv_open=no
5022 LIBS=$ac_func_search_save_LIBS
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5025 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5026 ac_res=$ac_cv_search_libiconv_open
5027 if test "$ac_res" != no; then :
5028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5029 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5031 SAVELIBS="$SAVELIBS $LIBS"
5040 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5041 if test "x$ac_cv_header_mxml_h" = xyes; then :
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5044 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5045 if ${ac_cv_search_mmxlNewElement+:} false; then :
5046 $as_echo_n "(cached) " >&6
5048 ac_func_search_save_LIBS=$LIBS
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5052 /* Override any GCC internal prototype to avoid an error.
5053 Use char because int might match the return type of a GCC
5054 builtin and then its argument prototype would still apply. */
5058 char mmxlNewElement ();
5062 return mmxlNewElement ();
5067 for ac_lib in '' mxml; do
5068 if test -z "$ac_lib"; then
5069 ac_res="none required"
5072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5074 if ac_fn_c_try_link "$LINENO"; then :
5075 ac_cv_search_mmxlNewElement=$ac_res
5077 rm -f core conftest.err conftest.$ac_objext \
5079 if ${ac_cv_search_mmxlNewElement+:} false; then :
5083 if ${ac_cv_search_mmxlNewElement+:} false; then :
5086 ac_cv_search_mmxlNewElement=no
5089 LIBS=$ac_func_search_save_LIBS
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5092 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5093 ac_res=$ac_cv_search_mmxlNewElement
5094 if test "$ac_res" != no; then :
5095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5096 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5107 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5108 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5109 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5114 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5115 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5116 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5121 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5122 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5123 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5128 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5129 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5130 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5135 for ac_func in statfs statvfs
5137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5138 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5139 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5140 cat >>confdefs.h <<_ACEOF
5141 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5148 for ac_func in strdup strlcat strlcpy
5150 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5151 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5152 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5153 cat >>confdefs.h <<_ACEOF
5154 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5160 if test "$uname" = "HP-UX" -a "$uversion" = "1020"; then
5161 echo Forcing snprintf emulation for HP-UX.
5163 for ac_func in snprintf vsnprintf
5165 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5166 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5167 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5168 cat >>confdefs.h <<_ACEOF
5169 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5177 for ac_func in random lrand48 arc4random
5179 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5180 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5181 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5182 cat >>confdefs.h <<_ACEOF
5183 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5190 for ac_func in geteuid
5192 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5193 if test "x$ac_cv_func_geteuid" = xyes; then :
5194 cat >>confdefs.h <<_ACEOF
5195 #define HAVE_GETEUID 1
5202 for ac_func in setpgid
5204 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5205 if test "x$ac_cv_func_setpgid" = xyes; then :
5206 cat >>confdefs.h <<_ACEOF
5207 #define HAVE_SETPGID 1
5214 for ac_func in vsyslog
5216 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5217 if test "x$ac_cv_func_vsyslog" = xyes; then :
5218 cat >>confdefs.h <<_ACEOF
5219 #define HAVE_VSYSLOG 1
5228 # Do not use sigset on Linux or GNU HURD
5231 # Use sigset on other platforms, if available
5232 for ac_func in sigset
5234 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5235 if test "x$ac_cv_func_sigset" = xyes; then :
5236 cat >>confdefs.h <<_ACEOF
5237 #define HAVE_SIGSET 1
5246 for ac_func in sigaction
5248 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5249 if test "x$ac_cv_func_sigaction" = xyes; then :
5250 cat >>confdefs.h <<_ACEOF
5251 #define HAVE_SIGACTION 1
5258 for ac_func in waitpid wait3
5260 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5261 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5262 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5263 cat >>confdefs.h <<_ACEOF
5264 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5271 for ac_func in posix_spawn
5273 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5274 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5275 cat >>confdefs.h <<_ACEOF
5276 #define HAVE_POSIX_SPAWN 1
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5284 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5292 int o = t.tm_gmtoff;
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5299 $as_echo "yes" >&6; }
5300 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5309 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5312 #include <sys/stat.h>
5322 if ac_fn_c_try_compile "$LINENO"; then :
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5324 $as_echo "yes" >&6; }
5325 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 for ac_func in removefile
5335 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5336 if test "x$ac_cv_func_removefile" = xyes; then :
5337 cat >>confdefs.h <<_ACEOF
5338 #define HAVE_REMOVEFILE 1
5345 # Check whether --enable-libusb was given.
5346 if test "${enable_libusb+set}" = set; then :
5347 enableval=$enable_libusb;
5356 if test "x$PKGCONFIG" != x; then
5357 if test x$enable_libusb != xno -a $uname != Darwin; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5359 $as_echo_n "checking for libusb-1.0... " >&6; }
5360 if $PKGCONFIG --exists libusb-1.0; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5362 $as_echo "yes" >&6; }
5363 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5365 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5366 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5367 USBQUIRKS="\$(DATADIR)/usb"
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5371 if test x$enable_libusb = xyes; then
5372 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5376 elif test x$enable_libusb = xyes; then
5377 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5380 # Check whether --enable-tcp_wrappers was given.
5381 if test "${enable_tcp_wrappers+set}" = set; then :
5382 enableval=$enable_tcp_wrappers;
5389 if test x$enable_tcp_wrappers = xyes; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5391 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5392 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5393 $as_echo_n "(cached) " >&6
5395 ac_check_lib_save_LIBS=$LIBS
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5400 /* Override any GCC internal prototype to avoid an error.
5401 Use char because int might match the return type of a GCC
5402 builtin and then its argument prototype would still apply. */
5406 char hosts_access ();
5410 return hosts_access ();
5415 if ac_fn_c_try_link "$LINENO"; then :
5416 ac_cv_lib_wrap_hosts_access=yes
5418 ac_cv_lib_wrap_hosts_access=no
5420 rm -f core conftest.err conftest.$ac_objext \
5421 conftest$ac_exeext conftest.$ac_ext
5422 LIBS=$ac_check_lib_save_LIBS
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5425 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5426 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5428 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5429 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5430 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5442 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5443 if test "x$ac_cv_header_zlib_h" = xyes; then :
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5445 $as_echo_n "checking for gzgets in -lz... " >&6; }
5446 if ${ac_cv_lib_z_gzgets+:} false; then :
5447 $as_echo_n "(cached) " >&6
5449 ac_check_lib_save_LIBS=$LIBS
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5454 /* Override any GCC internal prototype to avoid an error.
5455 Use char because int might match the return type of a GCC
5456 builtin and then its argument prototype would still apply. */
5469 if ac_fn_c_try_link "$LINENO"; then :
5470 ac_cv_lib_z_gzgets=yes
5472 ac_cv_lib_z_gzgets=no
5474 rm -f core conftest.err conftest.$ac_objext \
5475 conftest$ac_exeext conftest.$ac_ext
5476 LIBS=$ac_check_lib_save_LIBS
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5479 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5480 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5481 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5486 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5487 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5488 $as_echo_n "(cached) " >&6
5490 ac_check_lib_save_LIBS=$LIBS
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5495 /* Override any GCC internal prototype to avoid an error.
5496 Use char because int might match the return type of a GCC
5497 builtin and then its argument prototype would still apply. */
5501 char inflateCopy ();
5505 return inflateCopy ();
5510 if ac_fn_c_try_link "$LINENO"; then :
5511 ac_cv_lib_z_inflateCopy=yes
5513 ac_cv_lib_z_inflateCopy=no
5515 rm -f core conftest.err conftest.$ac_objext \
5516 conftest$ac_exeext conftest.$ac_ext
5517 LIBS=$ac_check_lib_save_LIBS
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5520 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5521 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5522 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5526 if test "x$GZIP" != z; then
5555 # Check whether --enable-acl was given.
5556 if test "${enable_acl+set}" = set; then :
5557 enableval=$enable_acl;
5560 if test "x$enable_acl" != xno; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5562 $as_echo_n "checking for library containing acl_init... " >&6; }
5563 if ${ac_cv_search_acl_init+:} false; then :
5564 $as_echo_n "(cached) " >&6
5566 ac_func_search_save_LIBS=$LIBS
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5570 /* Override any GCC internal prototype to avoid an error.
5571 Use char because int might match the return type of a GCC
5572 builtin and then its argument prototype would still apply. */
5585 for ac_lib in '' acl; do
5586 if test -z "$ac_lib"; then
5587 ac_res="none required"
5590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5592 if ac_fn_c_try_link "$LINENO"; then :
5593 ac_cv_search_acl_init=$ac_res
5595 rm -f core conftest.err conftest.$ac_objext \
5597 if ${ac_cv_search_acl_init+:} false; then :
5601 if ${ac_cv_search_acl_init+:} false; then :
5604 ac_cv_search_acl_init=no
5607 LIBS=$ac_func_search_save_LIBS
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5610 $as_echo "$ac_cv_search_acl_init" >&6; }
5611 ac_res=$ac_cv_search_acl_init
5612 if test "$ac_res" != no; then :
5613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5614 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5618 SERVERLIBS="$SERVERLIBS $LIBS"
5622 # Check whether --enable-dbus was given.
5623 if test "${enable_dbus+set}" = set; then :
5624 enableval=$enable_dbus;
5628 # Check whether --with-dbusdir was given.
5629 if test "${with_dbusdir+set}" = set; then :
5630 withval=$with_dbusdir; DBUSDIR="$withval"
5636 DBUS_NOTIFIERLIBS=""
5638 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5640 $as_echo_n "checking for DBUS... " >&6; }
5641 if $PKGCONFIG --exists dbus-1; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5643 $as_echo "yes" >&6; }
5644 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5646 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5647 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5648 DBUS_NOTIFIER="dbus"
5649 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5651 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5652 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5653 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5654 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5658 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5659 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5660 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5665 if test -d /etc/dbus-1; then
5666 DBUSDIR="/etc/dbus-1"
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }
5678 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5679 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5680 CUPS_SYSTEM_AUTHKEY=""
5685 BACKLIBS="$BACKLIBS -framework IOKit"
5686 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5687 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5689 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5690 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5691 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5696 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5697 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5698 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5703 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5704 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5705 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5710 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5711 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5712 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5718 for ac_func in SCDynamicStoreCopyComputerName
5720 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5721 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5722 cat >>confdefs.h <<_ACEOF
5723 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5730 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5731 if test "x$ac_cv_header_membership_h" = xyes; then :
5732 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5737 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5738 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5739 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5744 for ac_func in mbr_uid_to_uuid
5746 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5747 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5748 cat >>confdefs.h <<_ACEOF
5749 #define HAVE_MBR_UID_TO_UUID 1
5756 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5757 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5758 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5764 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5765 if test "x$ac_cv_header_notify_h" = xyes; then :
5766 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5771 for ac_func in notify_post
5773 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5774 if test "x$ac_cv_func_notify_post" = xyes; then :
5775 cat >>confdefs.h <<_ACEOF
5776 #define HAVE_NOTIFY_POST 1
5784 # Check whether --with-adminkey was given.
5785 if test "${with_adminkey+set}" = set; then :
5786 withval=$with_adminkey; default_adminkey="$withval"
5788 default_adminkey="default"
5792 # Check whether --with-operkey was given.
5793 if test "${with_operkey+set}" = set; then :
5794 withval=$with_operkey; default_operkey="$withval"
5796 default_operkey="default"
5800 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5801 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5803 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5806 if test "x$default_adminkey" != xdefault; then
5807 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5808 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5809 elif grep -q system.print.operator /etc/authorization; then
5810 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5811 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5813 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences"
5814 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.preferences"
5817 if test "x$default_operkey" != xdefault; then
5818 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5819 elif grep -q system.print.operator /etc/authorization; then
5820 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5822 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin"
5827 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
5828 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
5829 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
5835 if test $uversion -ge 100; then
5836 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5837 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5838 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5844 if test $uversion -ge 110 -a $uversion -lt 120; then
5845 # Broken public headers in 10.7.x...
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5847 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5848 if test -f /usr/local/include/sandbox/private.h; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5850 $as_echo "yes" >&6; }
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }
5854 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
5858 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5859 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5860 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5862 INSTALLXPC="install-xpc"
5866 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
5867 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
5868 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
5877 cat >>confdefs.h <<_ACEOF
5878 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
5881 cat >>confdefs.h <<_ACEOF
5882 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
5891 # Check whether --with-components was given.
5892 if test "${with_components+set}" = set; then :
5893 withval=$with_components; COMPONENTS="$withval"
5897 case "$COMPONENTS" in
5899 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
5903 BUILDDIRS="data locale"
5907 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
5917 if test "$prefix" = "NONE"; then
5921 if test "$exec_prefix" = "NONE"; then
5922 if test "$prefix" = "/"; then
5925 exec_prefix="$prefix"
5929 if test "$bindir" = "\${exec_prefix}/bin"; then
5930 bindir="$exec_prefix/bin"
5933 cat >>confdefs.h <<_ACEOF
5934 #define CUPS_BINDIR "$bindir"
5938 if test "$sbindir" = "\${exec_prefix}/sbin"; then
5939 sbindir="$exec_prefix/sbin"
5942 cat >>confdefs.h <<_ACEOF
5943 #define CUPS_SBINDIR "$sbindir"
5947 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
5948 sharedstatedir="/usr/com"
5951 if test "$datarootdir" = "\${prefix}/share"; then
5952 if test "$prefix" = "/"; then
5953 datarootdir="/usr/share"
5955 datarootdir="$prefix/share"
5959 if test "$datadir" = "\${prefix}/share"; then
5960 if test "$prefix" = "/"; then
5961 datadir="/usr/share"
5963 datadir="$prefix/share"
5965 elif test "$datadir" = "\${datarootdir}"; then
5966 datadir="$datarootdir"
5969 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
5970 includedir="/usr/include"
5973 if test "$localstatedir" = "\${prefix}/var"; then
5974 if test "$prefix" = "/"; then
5975 if test "$uname" = Darwin; then
5976 localstatedir="/private/var"
5978 localstatedir="/var"
5981 localstatedir="$prefix/var"
5985 if test "$sysconfdir" = "\${prefix}/etc"; then
5986 if test "$prefix" = "/"; then
5987 if test "$uname" = Darwin; then
5988 sysconfdir="/private/etc"
5993 sysconfdir="$prefix/etc"
5997 if test "$libdir" = "\${exec_prefix}/lib"; then
6000 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6001 libdir="$exec_prefix/lib64"
6008 # Check whether --with-privateinclude was given.
6009 if test "${with_privateinclude+set}" = set; then :
6010 withval=$with_privateinclude; privateinclude="$withval"
6015 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6016 PRIVATEINCLUDE="$privateinclude/cups"
6025 # Check whether --with-lpdconfig was given.
6026 if test "${with_lpdconfig+set}" = set; then :
6027 withval=$with_lpdconfig; LPDCONFIG="$withval"
6033 if test "x$LPDCONFIG" = x; then
6034 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6035 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6036 elif test "x$XINETD" != x; then
6037 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6041 if test "x$LPDCONFIG" = xoff; then
6042 cat >>confdefs.h <<_ACEOF
6043 #define CUPS_DEFAULT_LPD_CONFIG ""
6047 cat >>confdefs.h <<_ACEOF
6048 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6054 # Check whether --with-smbconfig was given.
6055 if test "${with_smbconfig+set}" = set; then :
6056 withval=$with_smbconfig; SMBCONFIG="$withval"
6062 if test "x$SMBCONFIG" = x; then
6063 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6064 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6066 for dir in /etc /etc/samba /usr/local/etc; do
6067 if test -f $dir/smb.conf; then
6068 SMBCONFIG="samba://$dir/smb.conf"
6075 if test "x$SMBCONFIG" = xoff; then
6076 cat >>confdefs.h <<_ACEOF
6077 #define CUPS_DEFAULT_SMB_CONFIG ""
6081 cat >>confdefs.h <<_ACEOF
6082 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6089 # Check whether --with-cachedir was given.
6090 if test "${with_cachedir+set}" = set; then :
6091 withval=$with_cachedir; cachedir="$withval"
6097 if test x$cachedir = x; then
6098 if test "x$uname" = xDarwin; then
6099 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6101 CUPS_CACHEDIR="$localstatedir/cache/cups"
6104 CUPS_CACHEDIR="$cachedir"
6106 cat >>confdefs.h <<_ACEOF
6107 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6113 CUPS_DATADIR="$datadir/cups"
6114 cat >>confdefs.h <<_ACEOF
6115 #define CUPS_DATADIR "$datadir/cups"
6122 # Check whether --with-icondir was given.
6123 if test "${with_icondir+set}" = set; then :
6124 withval=$with_icondir; icondir="$withval"
6130 if test "x$icondir" = x -a -d /usr/share/icons; then
6131 ICONDIR="/usr/share/icons"
6140 # Check whether --with-menudir was given.
6141 if test "${with_menudir+set}" = set; then :
6142 withval=$with_menudir; menudir="$withval"
6148 if test "x$menudir" = x -a -d /usr/share/applications; then
6149 MENUDIR="/usr/share/applications"
6156 # Documentation files
6158 # Check whether --with-docdir was given.
6159 if test "${with_docdir+set}" = set; then :
6160 withval=$with_docdir; docdir="$withval"
6166 if test x$docdir = x; then
6167 CUPS_DOCROOT="$datadir/doc/cups"
6168 docdir="$datadir/doc/cups"
6170 CUPS_DOCROOT="$docdir"
6173 cat >>confdefs.h <<_ACEOF
6174 #define CUPS_DOCROOT "$docdir"
6181 # Check whether --with-fontpath was given.
6182 if test "${with_fontpath+set}" = set; then :
6183 withval=$with_fontpath; fontpath="$withval"
6189 if test "x$fontpath" = "x"; then
6190 CUPS_FONTPATH="$datadir/cups/fonts"
6192 CUPS_FONTPATH="$fontpath"
6196 cat >>confdefs.h <<_ACEOF
6197 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6202 if test "$localedir" = "\${datarootdir}/locale"; then
6204 Linux | GNU | *BSD* | Darwin*)
6205 CUPS_LOCALEDIR="$datarootdir/locale"
6209 # This is the standard System V location...
6210 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6214 CUPS_LOCALEDIR="$localedir"
6217 cat >>confdefs.h <<_ACEOF
6218 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6225 # Check whether --with-logdir was given.
6226 if test "${with_logdir+set}" = set; then :
6227 withval=$with_logdir; logdir="$withval"
6233 if test x$logdir = x; then
6234 CUPS_LOGDIR="$localstatedir/log/cups"
6235 cat >>confdefs.h <<_ACEOF
6236 #define CUPS_LOGDIR "$localstatedir/log/cups"
6240 CUPS_LOGDIR="$logdir"
6242 cat >>confdefs.h <<_ACEOF
6243 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6248 # Longer-term spool data
6249 CUPS_REQUESTS="$localstatedir/spool/cups"
6250 cat >>confdefs.h <<_ACEOF
6251 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6256 # Server executables...
6259 # *BSD and Darwin (MacOS X)
6261 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6265 INSTALL_SYSV="install-sysv"
6266 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6270 cat >>confdefs.h <<_ACEOF
6271 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6277 # Configuration files
6278 CUPS_SERVERROOT="$sysconfdir/cups"
6279 cat >>confdefs.h <<_ACEOF
6280 #define CUPS_SERVERROOT "$sysconfdir/cups"
6285 # Transient run-time state
6287 # Check whether --with-rundir was given.
6288 if test "${with_rundir+set}" = set; then :
6289 withval=$with_rundir; CUPS_STATEDIR="$withval"
6295 CUPS_STATEDIR="$CUPS_SERVERROOT"
6299 CUPS_STATEDIR="$localstatedir/run/cups"
6304 cat >>confdefs.h <<_ACEOF
6305 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6312 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6313 # New GNU "standards" break previous ones, so make sure we use
6314 # the right default location for the operating system...
6315 mandir="\${prefix}/man"
6318 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6320 Darwin* | Linux | GNU | *BSD*)
6321 # Darwin, MacOS X, Linux, GNU HURD, and *BSD
6322 mandir="/usr/share/man"
6323 AMANDIR="/usr/share/man"
6324 PMANDIR="/usr/share/man"
6350 Linux* | GNU* | Darwin*)
6351 # Linux, GNU Hurd, and OS X
6378 DSOFLAGS="${DSOFLAGS:=}"
6380 # Check whether --enable-shared was given.
6381 if test "${enable_shared+set}" = set; then :
6382 enableval=$enable_shared;
6387 LIBCUPSBASE="lib$cupsbase"
6388 LIBCUPSSTATIC="lib$cupsbase.a"
6390 if test x$enable_shared != xno; then
6393 LIBCUPS="lib$cupsbase.so.2"
6394 LIBCUPSCGI="libcupscgi.so.1"
6395 LIBCUPSIMAGE="libcupsimage.so.2"
6396 LIBCUPSMIME="libcupsmime.so.1"
6397 LIBCUPSPPDC="libcupsppdc.so.1"
6400 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G \$(OPTIM)"
6402 Linux | GNU | *BSD*)
6403 LIBCUPS="lib$cupsbase.so.2"
6404 LIBCUPSCGI="libcupscgi.so.1"
6405 LIBCUPSIMAGE="libcupsimage.so.2"
6406 LIBCUPSMIME="libcupsmime.so.1"
6407 LIBCUPSPPDC="libcupsppdc.so.1"
6410 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6413 LIBCUPS="lib$cupsbase.2.dylib"
6414 LIBCUPSCGI="libcupscgi.1.dylib"
6415 LIBCUPSIMAGE="libcupsimage.2.dylib"
6416 LIBCUPSMIME="libcupsmime.1.dylib"
6417 LIBCUPSPPDC="libcupsppdc.1.dylib"
6420 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6423 echo "Warning: shared libraries may not be supported. Trying -shared"
6424 echo " option with compiler."
6425 LIBCUPS="lib$cupsbase.so.2"
6426 LIBCUPSCGI="libcupscgi.so.1"
6427 LIBCUPSIMAGE="libcupsimage.so.2"
6428 LIBCUPSMIME="libcupsmime.so.1"
6429 LIBCUPSPPDC="libcupsppdc.so.1"
6432 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6437 LIBCUPS="lib$cupsbase.a"
6438 LIBCUPSCGI="libcupscgi.a"
6439 LIBCUPSIMAGE="libcupsimage.a"
6440 LIBCUPSMIME="libcupsmime.a"
6441 LIBCUPSPPDC="libcupsppdc.a"
6457 if test x$enable_shared = xno; then
6458 LINKCUPS="../cups/lib$cupsbase.a"
6459 LINKCUPSIMAGE="../filter/libcupsimage.a"
6461 EXTLINKCUPS="-lcups"
6462 EXTLINKCUPSIMAGE="-lcupsimage"
6464 LINKCUPS="-l${cupsbase}"
6465 LINKCUPSIMAGE="-lcupsimage"
6467 EXTLINKCUPS="-lcups"
6468 EXTLINKCUPSIMAGE="-lcupsimage"
6478 if test "$DSO" != ":"; then
6479 # When using DSOs the image libraries are linked to libcupsimage.so
6480 # rather than to the executables. This makes things smaller if you
6481 # are using any static libraries, and it also allows us to distribute
6482 # a single DSO rather than a bunch...
6486 # Tell the run-time linkers where to find a DSO. Some platforms
6487 # need this option, even when the library is installed in a
6488 # standard location...
6492 if test $exec_prefix != /usr; then
6493 DSOFLAGS="-R$libdir $DSOFLAGS"
6494 LDFLAGS="$LDFLAGS -R$libdir"
6495 EXPORT_LDFLAGS="-R$libdir"
6500 if test $exec_prefix != /usr; then
6501 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6502 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6503 EXPORT_LDFLAGS="-Wl,-R$libdir"
6507 # Linux, and HURD...
6508 if test $exec_prefix != /usr; then
6509 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6510 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6511 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6526 # Check whether --enable-libtool_unsupported was given.
6527 if test "${enable_libtool_unsupported+set}" = set; then :
6528 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6529 LIBTOOL="$enable_libtool_unsupported"
6531 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6532 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6541 if test x$LIBTOOL != x; then
6542 LIBCUPS="libcups.la"
6543 LIBCUPSIMAGE="libcupsimage.la"
6544 LINKCUPS="../cups/\$(LIBCUPS)"
6545 LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
6557 # Check whether --with-optim was given.
6558 if test "${with_optim+set}" = set; then :
6559 withval=$with_optim;
6562 # Check whether --enable-debug was given.
6563 if test "${enable_debug+set}" = set; then :
6564 enableval=$enable_debug;
6567 # Check whether --enable-debug_guards was given.
6568 if test "${enable_debug_guards+set}" = set; then :
6569 enableval=$enable_debug_guards;
6572 # Check whether --enable-debug_printfs was given.
6573 if test "${enable_debug_printfs+set}" = set; then :
6574 enableval=$enable_debug_printfs;
6577 # Check whether --enable-unit_tests was given.
6578 if test "${enable_unit_tests+set}" = set; then :
6579 enableval=$enable_unit_tests;
6583 if test x$enable_debug = xyes; then
6589 if test x$enable_debug_printfs = xyes; then
6590 CFLAGS="$CFLAGS -DDEBUG"
6591 CXXFLAGS="$CXXFLAGS -DDEBUG"
6594 if test x$enable_debug_guards = xyes; then
6595 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6596 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6599 if test x$enable_unit_tests = xyes; then
6600 UNITTESTS="unittests"
6607 # Check whether --with-archflags was given.
6608 if test "${with_archflags+set}" = set; then :
6609 withval=$with_archflags;
6613 # Check whether --with-ldarchflags was given.
6614 if test "${with_ldarchflags+set}" = set; then :
6615 withval=$with_ldarchflags;
6619 if test -z "$with_archflags"; then
6622 ARCHFLAGS="$with_archflags"
6625 if test -z "$with_ldarchflags"; then
6626 if test "$uname" = Darwin; then
6627 # Only create Intel programs by default
6628 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6630 LDARCHFLAGS="$ARCHFLAGS"
6633 LDARCHFLAGS="$with_ldarchflags"
6639 # Check whether --enable-relro was given.
6640 if test "${enable_relro+set}" = set; then :
6641 enableval=$enable_relro;
6645 CXXLIBS="${CXXLIBS:=}"
6654 if test -n "$GCC"; then
6655 # Add GCC-specific compiler options...
6656 if test -z "$OPTIM"; then
6657 if test "x$with_optim" = x; then
6658 # Default to optimize-for-size and debug
6661 OPTIM="$with_optim $OPTIM"
6665 # Generate position-independent code as needed...
6666 if test $PICFLAG = 1; then
6667 OPTIM="-fPIC $OPTIM"
6670 # The -fstack-protector option is available with some versions of
6671 # GCC and adds "stack canaries" which detect when the return address
6672 # has been overwritten, preventing many types of exploit attacks.
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6674 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6676 CFLAGS="$CFLAGS -fstack-protector"
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6688 if ac_fn_c_try_link "$LINENO"; then :
6689 if test "x$LSB_BUILD" = xy; then
6690 # Can't use stack-protector with LSB binaries...
6691 OPTIM="$OPTIM -fno-stack-protector"
6693 OPTIM="$OPTIM -fstack-protector"
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6696 $as_echo "yes" >&6; }
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6701 rm -f core conftest.err conftest.$ac_objext \
6702 conftest$ac_exeext conftest.$ac_ext
6705 if test "x$LSB_BUILD" != xy; then
6706 # The -fPIE option is available with some versions of GCC and
6707 # adds randomization of addresses, which avoids another class of
6708 # exploits that depend on a fixed address for common functions.
6710 # Not available to LSB binaries...
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6712 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6716 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6728 if ac_fn_c_try_compile "$LINENO"; then :
6730 PIEFLAGS="-fPIE -Wl,-pie"
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6732 $as_echo "yes" >&6; }
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741 CFLAGS="$CFLAGS -fPIE -pie"
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6753 if ac_fn_c_try_compile "$LINENO"; then :
6755 PIEFLAGS="-fPIE -pie"
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6757 $as_echo "yes" >&6; }
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 if test "x$with_optim" = x; then
6769 # Add useful warning options for tracking down problems...
6770 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-conversion" >&5
6773 $as_echo_n "checking whether compiler supports -Wsign-conversion... " >&6; }
6775 CFLAGS="$CFLAGS -Werror -Wsign-conversion"
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6787 if ac_fn_c_try_compile "$LINENO"; then :
6788 OPTIM="$OPTIM -Wsign-conversion"
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6790 $as_echo "yes" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-compare" >&5
6799 $as_echo_n "checking whether compiler supports -Wno-tautological-compare... " >&6; }
6801 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6813 if ac_fn_c_try_compile "$LINENO"; then :
6814 OPTIM="$OPTIM -Wno-tautological-compare"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6816 $as_echo "yes" >&6; }
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 $as_echo "no" >&6; }
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824 # Additional warning options for development testing...
6825 if test -d .svn; then
6826 OPTIM="-Werror $OPTIM"
6832 # -D_FORTIFY_SOURCE=2 adds additional object size
6833 # checking, basically wrapping all string functions
6834 # with buffer-limited ones. Not strictly needed for
6835 # CUPS since we already use buffer-limited calls, but
6836 # this will catch any additions that are broken.
6837 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
6841 # The -z relro option is provided by the Linux linker command to
6842 # make relocatable data read-only.
6843 if test x$enable_relro = xyes; then
6844 RELROFLAGS="-Wl,-z,relro,-z,now"
6849 # Add vendor-specific compiler options...
6853 if test -z "$OPTIM"; then
6854 if test "x$with_optim" = x; then
6857 OPTIM="$with_optim $OPTIM"
6861 if test $PICFLAG = 1; then
6862 OPTIM="-KPIC $OPTIM"
6866 # Running some other operating system; inform the user they
6867 # should contribute the necessary options to
6868 # cups-support@cups.org...
6869 echo "Building CUPS with default compiler optimizations; contact"
6870 echo "cups-devel@cups.org with uname and compiler options needed"
6871 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
6872 echo "variables before running configure."
6877 # Add general compiler options per platform...
6880 # glibc 2.8 and higher breaks peer credentials unless you
6881 # define _GNU_SOURCE...
6882 OPTIM="$OPTIM -D_GNU_SOURCE"
6889 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
6890 #include <sys/socket.h>
6891 #include <netinet/in.h>
6892 #include <arpa/inet.h>
6893 #include <netinet/in_systm.h>
6894 #include <netinet/ip.h>
6896 if test "x$ac_cv_header_resolv_h" = xyes; then :
6897 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6903 $as_echo_n "checking for library containing socket... " >&6; }
6904 if ${ac_cv_search_socket+:} false; then :
6905 $as_echo_n "(cached) " >&6
6907 ac_func_search_save_LIBS=$LIBS
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6911 /* Override any GCC internal prototype to avoid an error.
6912 Use char because int might match the return type of a GCC
6913 builtin and then its argument prototype would still apply. */
6926 for ac_lib in '' socket; do
6927 if test -z "$ac_lib"; then
6928 ac_res="none required"
6931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6933 if ac_fn_c_try_link "$LINENO"; then :
6934 ac_cv_search_socket=$ac_res
6936 rm -f core conftest.err conftest.$ac_objext \
6938 if ${ac_cv_search_socket+:} false; then :
6942 if ${ac_cv_search_socket+:} false; then :
6945 ac_cv_search_socket=no
6948 LIBS=$ac_func_search_save_LIBS
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6951 $as_echo "$ac_cv_search_socket" >&6; }
6952 ac_res=$ac_cv_search_socket
6953 if test "$ac_res" != no; then :
6954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
6959 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
6960 if ${ac_cv_search_gethostbyaddr+:} false; then :
6961 $as_echo_n "(cached) " >&6
6963 ac_func_search_save_LIBS=$LIBS
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6967 /* Override any GCC internal prototype to avoid an error.
6968 Use char because int might match the return type of a GCC
6969 builtin and then its argument prototype would still apply. */
6973 char gethostbyaddr ();
6977 return gethostbyaddr ();
6982 for ac_lib in '' nsl; do
6983 if test -z "$ac_lib"; then
6984 ac_res="none required"
6987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6989 if ac_fn_c_try_link "$LINENO"; then :
6990 ac_cv_search_gethostbyaddr=$ac_res
6992 rm -f core conftest.err conftest.$ac_objext \
6994 if ${ac_cv_search_gethostbyaddr+:} false; then :
6998 if ${ac_cv_search_gethostbyaddr+:} false; then :
7001 ac_cv_search_gethostbyaddr=no
7004 LIBS=$ac_func_search_save_LIBS
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7007 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7008 ac_res=$ac_cv_search_gethostbyaddr
7009 if test "$ac_res" != no; then :
7010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7015 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7016 if ${ac_cv_search_getifaddrs+:} false; then :
7017 $as_echo_n "(cached) " >&6
7019 ac_func_search_save_LIBS=$LIBS
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7023 /* Override any GCC internal prototype to avoid an error.
7024 Use char because int might match the return type of a GCC
7025 builtin and then its argument prototype would still apply. */
7033 return getifaddrs ();
7038 for ac_lib in '' nsl; do
7039 if test -z "$ac_lib"; then
7040 ac_res="none required"
7043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7045 if ac_fn_c_try_link "$LINENO"; then :
7046 ac_cv_search_getifaddrs=$ac_res
7048 rm -f core conftest.err conftest.$ac_objext \
7050 if ${ac_cv_search_getifaddrs+:} false; then :
7054 if ${ac_cv_search_getifaddrs+:} false; then :
7057 ac_cv_search_getifaddrs=no
7060 LIBS=$ac_func_search_save_LIBS
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7063 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7064 ac_res=$ac_cv_search_getifaddrs
7065 if test "$ac_res" != no; then :
7066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7067 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7072 $as_echo_n "checking for library containing hstrerror... " >&6; }
7073 if ${ac_cv_search_hstrerror+:} false; then :
7074 $as_echo_n "(cached) " >&6
7076 ac_func_search_save_LIBS=$LIBS
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7080 /* Override any GCC internal prototype to avoid an error.
7081 Use char because int might match the return type of a GCC
7082 builtin and then its argument prototype would still apply. */
7090 return hstrerror ();
7095 for ac_lib in '' nsl socket resolv; do
7096 if test -z "$ac_lib"; then
7097 ac_res="none required"
7100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7102 if ac_fn_c_try_link "$LINENO"; then :
7103 ac_cv_search_hstrerror=$ac_res
7105 rm -f core conftest.err conftest.$ac_objext \
7107 if ${ac_cv_search_hstrerror+:} false; then :
7111 if ${ac_cv_search_hstrerror+:} false; then :
7114 ac_cv_search_hstrerror=no
7117 LIBS=$ac_func_search_save_LIBS
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7120 $as_echo "$ac_cv_search_hstrerror" >&6; }
7121 ac_res=$ac_cv_search_hstrerror
7122 if test "$ac_res" != no; then :
7123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7124 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7129 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7130 if ${ac_cv_search_rresvport_af+:} 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 rresvport_af ();
7147 return rresvport_af ();
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_rresvport_af=$ac_res
7162 rm -f core conftest.err conftest.$ac_objext \
7164 if ${ac_cv_search_rresvport_af+:} false; then :
7168 if ${ac_cv_search_rresvport_af+:} false; then :
7171 ac_cv_search_rresvport_af=no
7174 LIBS=$ac_func_search_save_LIBS
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7177 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7178 ac_res=$ac_cv_search_rresvport_af
7179 if test "$ac_res" != no; then :
7180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7181 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7186 $as_echo_n "checking for library containing __res_init... " >&6; }
7187 if ${ac_cv_search___res_init+:} false; then :
7188 $as_echo_n "(cached) " >&6
7190 ac_func_search_save_LIBS=$LIBS
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7194 /* Override any GCC internal prototype to avoid an error.
7195 Use char because int might match the return type of a GCC
7196 builtin and then its argument prototype would still apply. */
7204 return __res_init ();
7209 for ac_lib in '' resolv bind; do
7210 if test -z "$ac_lib"; then
7211 ac_res="none required"
7214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7216 if ac_fn_c_try_link "$LINENO"; then :
7217 ac_cv_search___res_init=$ac_res
7219 rm -f core conftest.err conftest.$ac_objext \
7221 if ${ac_cv_search___res_init+:} false; then :
7225 if ${ac_cv_search___res_init+:} false; then :
7228 ac_cv_search___res_init=no
7231 LIBS=$ac_func_search_save_LIBS
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7234 $as_echo "$ac_cv_search___res_init" >&6; }
7235 ac_res=$ac_cv_search___res_init
7236 if test "$ac_res" != no; then :
7237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7238 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7242 $as_echo_n "checking for library containing res_9_init... " >&6; }
7243 if ${ac_cv_search_res_9_init+:} 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 res_9_init ();
7265 for ac_lib in '' resolv bind; 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_res_9_init=$ac_res
7275 rm -f core conftest.err conftest.$ac_objext \
7277 if ${ac_cv_search_res_9_init+:} false; then :
7281 if ${ac_cv_search_res_9_init+:} false; then :
7284 ac_cv_search_res_9_init=no
7287 LIBS=$ac_func_search_save_LIBS
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7290 $as_echo "$ac_cv_search_res_9_init" >&6; }
7291 ac_res=$ac_cv_search_res_9_init
7292 if test "$ac_res" != no; then :
7293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7294 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7298 $as_echo_n "checking for library containing res_init... " >&6; }
7299 if ${ac_cv_search_res_init+:} false; then :
7300 $as_echo_n "(cached) " >&6
7302 ac_func_search_save_LIBS=$LIBS
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7306 /* Override any GCC internal prototype to avoid an error.
7307 Use char because int might match the return type of a GCC
7308 builtin and then its argument prototype would still apply. */
7321 for ac_lib in '' resolv bind; do
7322 if test -z "$ac_lib"; then
7323 ac_res="none required"
7326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7328 if ac_fn_c_try_link "$LINENO"; then :
7329 ac_cv_search_res_init=$ac_res
7331 rm -f core conftest.err conftest.$ac_objext \
7333 if ${ac_cv_search_res_init+:} false; then :
7337 if ${ac_cv_search_res_init+:} false; then :
7340 ac_cv_search_res_init=no
7343 LIBS=$ac_func_search_save_LIBS
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7346 $as_echo "$ac_cv_search_res_init" >&6; }
7347 ac_res=$ac_cv_search_res_init
7348 if test "$ac_res" != no; then :
7349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7350 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7359 # Tru64 5.1b leaks file descriptors with these functions; disable until
7360 # we can come up with a test for this...
7361 if test "$uname" != "OSF1"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7363 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7364 if ${ac_cv_search_getaddrinfo+:} false; then :
7365 $as_echo_n "(cached) " >&6
7367 ac_func_search_save_LIBS=$LIBS
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7371 /* Override any GCC internal prototype to avoid an error.
7372 Use char because int might match the return type of a GCC
7373 builtin and then its argument prototype would still apply. */
7377 char getaddrinfo ();
7381 return getaddrinfo ();
7386 for ac_lib in '' nsl; do
7387 if test -z "$ac_lib"; then
7388 ac_res="none required"
7391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7393 if ac_fn_c_try_link "$LINENO"; then :
7394 ac_cv_search_getaddrinfo=$ac_res
7396 rm -f core conftest.err conftest.$ac_objext \
7398 if ${ac_cv_search_getaddrinfo+:} false; then :
7402 if ${ac_cv_search_getaddrinfo+:} false; then :
7405 ac_cv_search_getaddrinfo=no
7408 LIBS=$ac_func_search_save_LIBS
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7411 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7412 ac_res=$ac_cv_search_getaddrinfo
7413 if test "$ac_res" != no; then :
7414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7415 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7420 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7421 if ${ac_cv_search_getnameinfo+:} false; then :
7422 $as_echo_n "(cached) " >&6
7424 ac_func_search_save_LIBS=$LIBS
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7428 /* Override any GCC internal prototype to avoid an error.
7429 Use char because int might match the return type of a GCC
7430 builtin and then its argument prototype would still apply. */
7434 char getnameinfo ();
7438 return getnameinfo ();
7443 for ac_lib in '' nsl; do
7444 if test -z "$ac_lib"; then
7445 ac_res="none required"
7448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7450 if ac_fn_c_try_link "$LINENO"; then :
7451 ac_cv_search_getnameinfo=$ac_res
7453 rm -f core conftest.err conftest.$ac_objext \
7455 if ${ac_cv_search_getnameinfo+:} false; then :
7459 if ${ac_cv_search_getnameinfo+:} false; then :
7462 ac_cv_search_getnameinfo=no
7465 LIBS=$ac_func_search_save_LIBS
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7468 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7469 ac_res=$ac_cv_search_getnameinfo
7470 if test "$ac_res" != no; then :
7471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7472 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7478 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7480 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7484 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7485 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7486 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7492 CUPS_DEFAULT_DOMAINSOCKET=""
7495 # Check whether --with-domainsocket was given.
7496 if test "${with_domainsocket+set}" = set; then :
7497 withval=$with_domainsocket; default_domainsocket="$withval"
7499 default_domainsocket=""
7503 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7504 if test "x$default_domainsocket" = x; then
7507 # Darwin and MaxOS X do their own thing...
7508 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7511 # All others use FHS standard...
7512 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7516 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7519 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7521 cat >>confdefs.h <<_ACEOF
7522 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7526 CUPS_LISTEN_DOMAINSOCKET=""
7534 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7535 if test "x$ac_cv_func_poll" = xyes; then :
7536 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7540 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7541 if test "x$ac_cv_func_epoll_create" = xyes; then :
7542 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7546 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7547 if test "x$ac_cv_func_kqueue" = xyes; then :
7548 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7555 # Check whether --enable-gssapi was given.
7556 if test "${enable_gssapi+set}" = set; then :
7557 enableval=$enable_gssapi;
7564 if test x$enable_gssapi != xno; then
7565 if test -n "$ac_tool_prefix"; then
7566 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7567 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7571 $as_echo_n "(cached) " >&6
7575 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7597 if test -n "$KRB5CONFIG"; then
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7599 $as_echo "$KRB5CONFIG" >&6; }
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7607 if test -z "$ac_cv_path_KRB5CONFIG"; then
7608 ac_pt_KRB5CONFIG=$KRB5CONFIG
7609 # Extract the first word of "krb5-config", so it can be a program name with args.
7610 set dummy krb5-config; ac_word=$2
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 $as_echo_n "checking for $ac_word... " >&6; }
7613 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7614 $as_echo_n "(cached) " >&6
7616 case $ac_pt_KRB5CONFIG in
7618 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7640 if test -n "$ac_pt_KRB5CONFIG"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7642 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7648 if test "x$ac_pt_KRB5CONFIG" = x; then
7651 case $cross_compiling:$ac_tool_warned in
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7655 ac_tool_warned=yes ;;
7657 KRB5CONFIG=$ac_pt_KRB5CONFIG
7660 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7663 if test "x$KRB5CONFIG" != x; then
7666 # OS X weak-links to the Kerberos framework...
7667 LIBGSSAPI="-weak_framework Kerberos"
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7669 $as_echo_n "checking for GSS framework... " >&6; }
7670 if test -d /System/Library/Frameworks/GSS.framework; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7672 $as_echo "yes" >&6; }
7673 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7680 # Solaris has a non-standard krb5-config, don't use it!
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7682 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7683 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7684 $as_echo_n "(cached) " >&6
7686 ac_check_lib_save_LIBS=$LIBS
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7691 /* Override any GCC internal prototype to avoid an error.
7692 Use char because int might match the return type of a GCC
7693 builtin and then its argument prototype would still apply. */
7697 char gss_display_status ();
7701 return gss_display_status ();
7706 if ac_fn_c_try_link "$LINENO"; then :
7707 ac_cv_lib_gss_gss_display_status=yes
7709 ac_cv_lib_gss_gss_display_status=no
7711 rm -f core conftest.err conftest.$ac_objext \
7712 conftest$ac_exeext conftest.$ac_ext
7713 LIBS=$ac_check_lib_save_LIBS
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7716 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7717 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7719 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7721 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7722 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7723 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7728 # Other platforms just ask for GSSAPI
7729 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7730 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7731 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7735 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7738 # Check for vendor-specific implementations...
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7742 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7743 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7744 $as_echo_n "(cached) " >&6
7746 ac_check_lib_save_LIBS=$LIBS
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7751 /* Override any GCC internal prototype to avoid an error.
7752 Use char because int might match the return type of a GCC
7753 builtin and then its argument prototype would still apply. */
7757 char gss_display_status ();
7761 return gss_display_status ();
7766 if ac_fn_c_try_link "$LINENO"; then :
7767 ac_cv_lib_gss_gss_display_status=yes
7769 ac_cv_lib_gss_gss_display_status=no
7771 rm -f core conftest.err conftest.$ac_objext \
7772 conftest$ac_exeext conftest.$ac_ext
7773 LIBS=$ac_check_lib_save_LIBS
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7776 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7777 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7779 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7781 LIBGSSAPI="-lgss -lgssapi_krb5"
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7787 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7788 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7789 $as_echo_n "(cached) " >&6
7791 ac_check_lib_save_LIBS=$LIBS
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7796 /* Override any GCC internal prototype to avoid an error.
7797 Use char because int might match the return type of a GCC
7798 builtin and then its argument prototype would still apply. */
7802 char gss_display_status ();
7806 return gss_display_status ();
7811 if ac_fn_c_try_link "$LINENO"; then :
7812 ac_cv_lib_gss_gss_display_status=yes
7814 ac_cv_lib_gss_gss_display_status=no
7816 rm -f core conftest.err conftest.$ac_objext \
7817 conftest$ac_exeext conftest.$ac_ext
7818 LIBS=$ac_check_lib_save_LIBS
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7821 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7822 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7824 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7833 if test "x$LIBGSSAPI" != x; then
7834 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
7835 if test "x$ac_cv_header_krb5_h" = xyes; then :
7836 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
7841 if test -d /System/Library/Frameworks/GSS.framework; then
7842 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
7843 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
7844 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
7849 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
7850 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
7851 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
7856 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
7857 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
7858 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
7864 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
7865 if test "x$ac_cv_header_gssapi_h" = xyes; then :
7866 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
7871 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
7872 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
7873 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
7881 LIBS="$LIBS $LIBGSSAPI"
7883 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
7884 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
7885 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
7891 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
7892 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 #include <gssapi/gssapi.h>
7899 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
7904 if ac_fn_c_try_compile "$LINENO"; then :
7905 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7908 $as_echo "yes" >&6; }
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7914 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7917 #include <GSS/gssapi.h>
7921 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
7926 if ac_fn_c_try_compile "$LINENO"; then :
7927 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7930 $as_echo "yes" >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7943 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
7948 if ac_fn_c_try_compile "$LINENO"; then :
7949 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7952 $as_echo "yes" >&6; }
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 # Check whether --with-gssservicename was given.
7966 if test "${with_gssservicename+set}" = set; then :
7967 withval=$with_gssservicename; default_gssservicename="$withval"
7969 default_gssservicename="default"
7973 if test x$default_gssservicename != xno; then
7974 if test "x$default_gssservicename" = "xdefault"; then
7975 CUPS_DEFAULT_GSSSERVICENAME="host"
7977 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
7980 CUPS_DEFAULT_GSSSERVICENAME=""
7984 cat >>confdefs.h <<_ACEOF
7985 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
7991 # Check whether --enable-threads was given.
7992 if test "${enable_threads+set}" = set; then :
7993 enableval=$enable_threads;
8000 if test "x$enable_threads" != xno; then
8001 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8002 if test "x$ac_cv_header_pthread_h" = xyes; then :
8003 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8009 if test x$ac_cv_header_pthread_h = xyes; then
8010 for flag in -lpthreads -lpthread -pthread; do
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8012 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8017 #include <pthread.h>
8021 pthread_create(0, 0, 0, 0);
8026 if ac_fn_c_try_link "$LINENO"; then :
8031 rm -f core conftest.err conftest.$ac_objext \
8032 conftest$ac_exeext conftest.$ac_ext
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8034 $as_echo "$have_pthread" >&6; }
8036 if test $have_pthread = yes; then
8037 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8039 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8040 # be POSIX-compliant... :(
8041 if test $uname = SunOS; then
8042 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8054 # Check whether --enable-ssl was given.
8055 if test "${enable_ssl+set}" = set; then :
8056 enableval=$enable_ssl;
8059 # Check whether --enable-cdsassl was given.
8060 if test "${enable_cdsassl+set}" = set; then :
8061 enableval=$enable_cdsassl;
8064 # Check whether --enable-gnutls was given.
8065 if test "${enable_gnutls+set}" = set; then :
8066 enableval=$enable_gnutls;
8073 CUPS_SERVERKEYCHAIN=""
8075 if test x$enable_ssl != xno; then
8076 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8077 if test $uname = Darwin; then
8078 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8079 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8082 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8084 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8086 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8088 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8089 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8090 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8095 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8096 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8097 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8102 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8103 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8104 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8109 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8111 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8112 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8117 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8118 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8119 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8124 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8125 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8126 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8131 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8132 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8133 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8138 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8139 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8140 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8146 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8148 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8156 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8157 if test -n "$ac_tool_prefix"; then
8158 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8159 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 $as_echo_n "checking for $ac_word... " >&6; }
8162 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8163 $as_echo_n "(cached) " >&6
8165 case $LIBGNUTLSCONFIG in
8167 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 test -z "$as_dir" && as_dir=.
8175 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8177 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8189 if test -n "$LIBGNUTLSCONFIG"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8191 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8199 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8200 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8201 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8202 set dummy libgnutls-config; ac_word=$2
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 $as_echo_n "checking for $ac_word... " >&6; }
8205 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8206 $as_echo_n "(cached) " >&6
8208 case $ac_pt_LIBGNUTLSCONFIG in
8210 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 test -z "$as_dir" && as_dir=.
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8220 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8232 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8234 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8240 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8243 case $cross_compiling:$ac_tool_warned in
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247 ac_tool_warned=yes ;;
8249 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8252 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8255 if test -n "$ac_tool_prefix"; then
8256 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
8257 set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if ${ac_cv_path_LIBGCRYPTCONFIG+:} false; then :
8261 $as_echo_n "(cached) " >&6
8263 case $LIBGCRYPTCONFIG in
8265 ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path.
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275 ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG
8287 if test -n "$LIBGCRYPTCONFIG"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5
8289 $as_echo "$LIBGCRYPTCONFIG" >&6; }
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8297 if test -z "$ac_cv_path_LIBGCRYPTCONFIG"; then
8298 ac_pt_LIBGCRYPTCONFIG=$LIBGCRYPTCONFIG
8299 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8300 set dummy libgcrypt-config; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if ${ac_cv_path_ac_pt_LIBGCRYPTCONFIG+:} false; then :
8304 $as_echo_n "(cached) " >&6
8306 case $ac_pt_LIBGCRYPTCONFIG in
8308 ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$ac_pt_LIBGCRYPTCONFIG" # Let the user override the test with a path.
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8318 ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 ac_pt_LIBGCRYPTCONFIG=$ac_cv_path_ac_pt_LIBGCRYPTCONFIG
8330 if test -n "$ac_pt_LIBGCRYPTCONFIG"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPTCONFIG" >&5
8332 $as_echo "$ac_pt_LIBGCRYPTCONFIG" >&6; }
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8338 if test "x$ac_pt_LIBGCRYPTCONFIG" = x; then
8341 case $cross_compiling:$ac_tool_warned in
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8345 ac_tool_warned=yes ;;
8347 LIBGCRYPTCONFIG=$ac_pt_LIBGCRYPTCONFIG
8350 LIBGCRYPTCONFIG="$ac_cv_path_LIBGCRYPTCONFIG"
8353 if $PKGCONFIG --exists gnutls; then
8355 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8356 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8357 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8359 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8361 elif test "x$LIBGNUTLSCONFIG" != x; then
8363 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8364 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8365 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8367 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8371 if test $have_ssl = 1; then
8372 CUPS_SERVERKEYCHAIN="ssl"
8375 LIBS="$LIBS $SSLLIBS"
8376 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8377 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8378 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8382 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8383 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8384 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8394 if test $have_ssl = 1; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8396 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8398 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8399 IPPALIASES="http https ipps"
8400 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8401 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8409 EXPORT_SSLLIBS="$SSLLIBS"
8414 # Check whether --enable-pam was given.
8415 if test "${enable_pam+set}" = set; then :
8416 enableval=$enable_pam;
8420 # Check whether --with-pam_module was given.
8421 if test "${with_pam_module+set}" = set; then :
8422 withval=$with_pam_module;
8429 PAMMOD="pam_unknown.so"
8430 PAMMODAUTH="pam_unknown.so"
8432 if test x$enable_pam != xno; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8436 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8437 if ${ac_cv_lib_dl_dlopen+:} false; then :
8438 $as_echo_n "(cached) " >&6
8440 ac_check_lib_save_LIBS=$LIBS
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8445 /* Override any GCC internal prototype to avoid an error.
8446 Use char because int might match the return type of a GCC
8447 builtin and then its argument prototype would still apply. */
8460 if ac_fn_c_try_link "$LINENO"; then :
8461 ac_cv_lib_dl_dlopen=yes
8463 ac_cv_lib_dl_dlopen=no
8465 rm -f core conftest.err conftest.$ac_objext \
8466 conftest$ac_exeext conftest.$ac_ext
8467 LIBS=$ac_check_lib_save_LIBS
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8470 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8471 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8472 cat >>confdefs.h <<_ACEOF
8473 #define HAVE_LIBDL 1
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8481 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8482 if ${ac_cv_lib_pam_pam_start+:} false; then :
8483 $as_echo_n "(cached) " >&6
8485 ac_check_lib_save_LIBS=$LIBS
8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8490 /* Override any GCC internal prototype to avoid an error.
8491 Use char because int might match the return type of a GCC
8492 builtin and then its argument prototype would still apply. */
8500 return pam_start ();
8505 if ac_fn_c_try_link "$LINENO"; then :
8506 ac_cv_lib_pam_pam_start=yes
8508 ac_cv_lib_pam_pam_start=no
8510 rm -f core conftest.err conftest.$ac_objext \
8511 conftest$ac_exeext conftest.$ac_ext
8512 LIBS=$ac_check_lib_save_LIBS
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8515 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8516 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8517 cat >>confdefs.h <<_ACEOF
8518 #define HAVE_LIBPAM 1
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8526 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8527 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8528 $as_echo_n "(cached) " >&6
8530 ac_check_lib_save_LIBS=$LIBS
8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8535 /* Override any GCC internal prototype to avoid an error.
8536 Use char because int might match the return type of a GCC
8537 builtin and then its argument prototype would still apply. */
8541 char pam_set_item ();
8545 return pam_set_item ();
8550 if ac_fn_c_try_link "$LINENO"; then :
8551 ac_cv_lib_pam_pam_set_item=yes
8553 ac_cv_lib_pam_pam_set_item=no
8555 rm -f core conftest.err conftest.$ac_objext \
8556 conftest$ac_exeext conftest.$ac_ext
8557 LIBS=$ac_check_lib_save_LIBS
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8560 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8561 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8562 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8567 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8568 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8569 $as_echo_n "(cached) " >&6
8571 ac_check_lib_save_LIBS=$LIBS
8573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574 /* end confdefs.h. */
8576 /* Override any GCC internal prototype to avoid an error.
8577 Use char because int might match the return type of a GCC
8578 builtin and then its argument prototype would still apply. */
8582 char pam_setcred ();
8586 return pam_setcred ();
8591 if ac_fn_c_try_link "$LINENO"; then :
8592 ac_cv_lib_pam_pam_setcred=yes
8594 ac_cv_lib_pam_pam_setcred=no
8596 rm -f core conftest.err conftest.$ac_objext \
8597 conftest$ac_exeext conftest.$ac_ext
8598 LIBS=$ac_check_lib_save_LIBS
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8601 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8602 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8603 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8607 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8608 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8613 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8614 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8615 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8616 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8623 if test x$ac_cv_lib_pam_pam_start != xno; then
8624 # Set the necessary libraries for PAM...
8625 if test x$ac_cv_lib_dl_dlopen != xno; then
8626 PAMLIBS="-lpam -ldl"
8631 # Find the PAM configuration directory, if any...
8632 for dir in /private/etc/pam.d /etc/pam.d; do
8633 if test -d $dir; then
8645 if test "x$with_pam_module" != x; then
8646 PAMFILE="pam.$with_pam_module"
8647 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8648 PAMFILE="pam.opendirectory"
8650 PAMFILE="pam.securityserver"
8655 # All others; this test might need to be updated
8656 # as Linux distributors move things around...
8657 if test "x$with_pam_module" != x; then
8658 PAMMOD="pam_${with_pam_module}.so"
8659 elif test -f /lib/security/pam_unix2.so; then
8660 PAMMOD="pam_unix2.so"
8661 elif test -f /lib/security/pam_unix.so; then
8662 PAMMOD="pam_unix.so"
8665 if test "x$PAMMOD" = xpam_unix.so; then
8666 PAMMODAUTH="$PAMMOD shadow nodelay"
8668 PAMMODAUTH="$PAMMOD nodelay"
8682 # Check whether --enable-largefile was given.
8683 if test "${enable_largefile+set}" = set; then :
8684 enableval=$enable_largefile;
8687 if test "$enable_largefile" != no; then
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8690 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8691 if ${ac_cv_sys_largefile_CC+:} false; then :
8692 $as_echo_n "(cached) " >&6
8694 ac_cv_sys_largefile_CC=no
8695 if test "$GCC" != yes; then
8698 # IRIX 6.2 and later do not support large files by default,
8699 # so use the C compiler's -n32 option if that helps.
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702 #include <sys/types.h>
8703 /* Check that off_t can represent 2**63 - 1 correctly.
8704 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8705 since some C++ compilers masquerading as C compilers
8706 incorrectly reject 9223372036854775807. */
8707 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8709 && LARGE_OFF_T % 2147483647 == 1)
8719 if ac_fn_c_try_compile "$LINENO"; then :
8722 rm -f core conftest.err conftest.$ac_objext
8724 if ac_fn_c_try_compile "$LINENO"; then :
8725 ac_cv_sys_largefile_CC=' -n32'; break
8727 rm -f core conftest.err conftest.$ac_objext
8731 rm -f conftest.$ac_ext
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8735 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8736 if test "$ac_cv_sys_largefile_CC" != no; then
8737 CC=$CC$ac_cv_sys_largefile_CC
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8741 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8742 if ${ac_cv_sys_file_offset_bits+:} false; then :
8743 $as_echo_n "(cached) " >&6
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8748 #include <sys/types.h>
8749 /* Check that off_t can represent 2**63 - 1 correctly.
8750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8751 since some C++ compilers masquerading as C compilers
8752 incorrectly reject 9223372036854775807. */
8753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8755 && LARGE_OFF_T % 2147483647 == 1)
8765 if ac_fn_c_try_compile "$LINENO"; then :
8766 ac_cv_sys_file_offset_bits=no; break
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 #define _FILE_OFFSET_BITS 64
8772 #include <sys/types.h>
8773 /* Check that off_t can represent 2**63 - 1 correctly.
8774 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8775 since some C++ compilers masquerading as C compilers
8776 incorrectly reject 9223372036854775807. */
8777 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8778 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8779 && LARGE_OFF_T % 2147483647 == 1)
8789 if ac_fn_c_try_compile "$LINENO"; then :
8790 ac_cv_sys_file_offset_bits=64; break
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8793 ac_cv_sys_file_offset_bits=unknown
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8798 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8799 case $ac_cv_sys_file_offset_bits in #(
8802 cat >>confdefs.h <<_ACEOF
8803 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8808 if test $ac_cv_sys_file_offset_bits = unknown; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8810 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8811 if ${ac_cv_sys_large_files+:} false; then :
8812 $as_echo_n "(cached) " >&6
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8817 #include <sys/types.h>
8818 /* Check that off_t can represent 2**63 - 1 correctly.
8819 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8820 since some C++ compilers masquerading as C compilers
8821 incorrectly reject 9223372036854775807. */
8822 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8823 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8824 && LARGE_OFF_T % 2147483647 == 1)
8834 if ac_fn_c_try_compile "$LINENO"; then :
8835 ac_cv_sys_large_files=no; break
8837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840 #define _LARGE_FILES 1
8841 #include <sys/types.h>
8842 /* Check that off_t can represent 2**63 - 1 correctly.
8843 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8844 since some C++ compilers masquerading as C compilers
8845 incorrectly reject 9223372036854775807. */
8846 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8847 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8848 && LARGE_OFF_T % 2147483647 == 1)
8858 if ac_fn_c_try_compile "$LINENO"; then :
8859 ac_cv_sys_large_files=1; break
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862 ac_cv_sys_large_files=unknown
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8867 $as_echo "$ac_cv_sys_large_files" >&6; }
8868 case $ac_cv_sys_large_files in #(
8871 cat >>confdefs.h <<_ACEOF
8872 #define _LARGE_FILES $ac_cv_sys_large_files
8882 if test x$enable_largefile != xno; then
8883 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
8885 if test x$ac_cv_sys_large_files = x1; then
8886 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
8889 if test x$ac_cv_sys_file_offset_bits = x64; then
8890 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8896 $as_echo_n "checking for long long int... " >&6; }
8897 if ${ac_cv_c_long_long+:} false; then :
8898 $as_echo_n "(cached) " >&6
8900 if test "$GCC" = yes; then
8901 ac_cv_c_long_long=yes
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8914 if ac_fn_c_try_compile "$LINENO"; then :
8915 ac_cv_c_long_long=yes
8917 ac_cv_c_long_long=no
8919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
8923 $as_echo "$ac_cv_c_long_long" >&6; }
8925 if test $ac_cv_c_long_long = yes; then
8926 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
8930 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
8931 if test "x$ac_cv_func_strtoll" = xyes; then :
8932 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
8939 # Check whether --enable-avahi was given.
8940 if test "${enable_avahi+set}" = set; then :
8941 enableval=$enable_avahi;
8944 # Check whether --enable-dnssd was given.
8945 if test "${enable_dnssd+set}" = set; then :
8946 enableval=$enable_dnssd;
8950 # Check whether --with-dnssd-libs was given.
8951 if test "${with_dnssd_libs+set}" = set; then :
8952 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
8953 DSOFLAGS="-L$withval $DSOFLAGS"
8957 # Check whether --with-dnssd-includes was given.
8958 if test "${with_dnssd_includes+set}" = set; then :
8959 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
8960 CPPFLAGS="-I$withval $CPPFLAGS"
8969 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
8971 $as_echo_n "checking for Avahi... " >&6; }
8972 if $PKGCONFIG --exists avahi-client; then
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8974 $as_echo "yes" >&6; }
8975 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
8976 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
8977 DNSSD_BACKEND="dnssd"
8978 IPPFIND_BIN="ippfind"
8979 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
8980 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }
8988 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
8989 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
8990 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
8994 # Darwin and MacOS X...
8995 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
8997 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
8998 DNSSD_BACKEND="dnssd"
8999 IPPFIND_BIN="ippfind"
9000 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9005 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9007 LIBS="$LIBS -ldns_sd"
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9014 int constant = kDNSServiceFlagsShareConnection;
9015 unsigned char txtRecord[100];
9017 TXTRecordGetValuePtr(sizeof(txtRecord),
9018 txtRecord, "value", &valueLen);
9023 if ac_fn_c_try_compile "$LINENO"; then :
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9025 $as_echo "yes" >&6; }
9026 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9028 DNSSDLIBS="-ldns_sd"
9029 DNSSD_BACKEND="dnssd"
9031 IPPFIND_BIN="ippfind"
9032 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034 $as_echo "no" >&6; }
9036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9058 # Check whether --enable-launchd was given.
9059 if test "${enable_launchd+set}" = set; then :
9060 enableval=$enable_launchd;
9066 if test x$enable_launchd != xno; then
9067 ac_fn_c_check_func "$LINENO" "launch_msg" "ac_cv_func_launch_msg"
9068 if test "x$ac_cv_func_launch_msg" = xyes; then :
9069 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9073 if test $uversion -ge 140; then
9074 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9075 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9077 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9079 $as_echo "#define HAVE_LAUNCH_ACTIVATE_SOCKET 1" >>confdefs.h
9084 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9085 if test "x$ac_cv_header_launch_h" = xyes; then :
9086 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9095 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9096 # liblaunch is already part of libSystem
9099 # All others; this test will need to be updated
9104 # Check whether --enable-systemd was given.
9105 if test "${enable_systemd+set}" = set; then :
9106 enableval=$enable_systemd;
9110 # Check whether --with-systemd was given.
9111 if test "${with_systemd+set}" = set; then :
9112 withval=$with_systemd; SYSTEMD_DIR="$withval"
9119 if test x$enable_systemd != xno; then
9120 if test "x$PKGCONFIG" = x; then
9121 if test x$enable_systemd = xyes; then
9122 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5
9126 $as_echo_n "checking for libsystemd-daemon... " >&6; }
9127 if $PKGCONFIG --exists libsystemd-daemon; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9129 $as_echo "yes" >&6; }
9130 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9131 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9132 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9134 if test "x$SYSTEMD_DIR" = x; then
9135 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9147 # Check whether --with-smfmanifestdir was given.
9148 if test "${with_smfmanifestdir+set}" = set; then :
9149 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9154 # Check whether --with-rcdir was given.
9155 if test "${with_rcdir+set}" = set; then :
9156 withval=$with_rcdir; rcdir="$withval"
9162 # Check whether --with-rclevels was given.
9163 if test "${with_rclevels+set}" = set; then :
9164 withval=$with_rclevels; rclevels="$withval"
9170 # Check whether --with-rcstart was given.
9171 if test "${with_rcstart+set}" = set; then :
9172 withval=$with_rcstart; rcstart="$withval"
9178 # Check whether --with-rcstop was given.
9179 if test "${with_rcstop+set}" = set; then :
9180 withval=$with_rcstop; rcstop="$withval"
9186 if test x$rcdir = x; then
9187 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9188 # Fall back on "init", the original service startup interface...
9189 if test -d /sbin/init.d; then
9191 rcdir="/sbin/init.d"
9192 elif test -d /etc/init.d; then
9204 if test "x$rcstart" = x; then
9206 Linux | GNU | GNU/k*BSD*)
9223 if test "x$rcstop" = x; then
9225 Linux | GNU | GNU/k*BSD*)
9239 RCLEVELS="$rclevels"
9248 if test "x$rcdir" != xno; then
9249 if test "x$rclevels" = x; then
9257 # Check whether --with-xinetd was given.
9258 if test "${with_xinetd+set}" = set; then :
9259 withval=$with_xinetd; xinetd="$withval"
9267 if test "x$xinetd" = x; then
9268 if test ! -x /sbin/launchd; then
9269 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9270 if test -d $dir; then
9276 elif test "x$xinetd" != xno; then
9283 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9286 # Check whether --with-languages was given.
9287 if test "${with_languages+set}" = set; then :
9288 withval=$with_languages;
9290 none | no) LANGUAGES="" ;;
9292 *) LANGUAGES="$withval" ;;
9299 # Check whether --with-bundledir was given.
9300 if test "${with_bundledir+set}" = set; then :
9301 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9303 if test "x$uname" = xDarwin -a $uversion -ge 100; then
9304 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9313 if test "x$CUPS_BUNDLEDIR" != x; then
9314 cat >>confdefs.h <<_ACEOF
9315 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9321 # Check whether --with-config_file_perm was given.
9322 if test "${with_config_file_perm+set}" = set; then :
9323 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9325 if test "x$uname" = xDarwin; then
9326 CUPS_CONFIG_FILE_PERM="644"
9328 CUPS_CONFIG_FILE_PERM="640"
9333 cat >>confdefs.h <<_ACEOF
9334 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9339 # Check whether --with-cupsd_file_perm was given.
9340 if test "${with_cupsd_file_perm+set}" = set; then :
9341 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9343 CUPS_CUPSD_FILE_PERM="500"
9349 # Check whether --with-log_file_perm was given.
9350 if test "${with_log_file_perm+set}" = set; then :
9351 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9353 CUPS_LOG_FILE_PERM="644"
9357 cat >>confdefs.h <<_ACEOF
9358 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9363 # Check whether --with-fatal_errors was given.
9364 if test "${with_fatal_errors+set}" = set; then :
9365 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9367 CUPS_FATAL_ERRORS="config"
9371 cat >>confdefs.h <<_ACEOF
9372 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9377 # Check whether --with-log_level was given.
9378 if test "${with_log_level+set}" = set; then :
9379 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9381 CUPS_LOG_LEVEL="warn"
9385 cat >>confdefs.h <<_ACEOF
9386 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9391 # Check whether --with-access_log_level was given.
9392 if test "${with_access_log_level+set}" = set; then :
9393 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9395 CUPS_ACCESS_LOG_LEVEL="none"
9399 cat >>confdefs.h <<_ACEOF
9400 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9405 # Check whether --with-page_logging was given.
9406 if test "${with_page_logging+set}" = set; then :
9407 withval=$with_page_logging;
9410 if test "x$enable_page_logging" = xyes; then
9411 CUPS_PAGE_LOG_FORMAT=""
9413 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9417 # Check whether --enable-browsing was given.
9418 if test "${enable_browsing+set}" = set; then :
9419 enableval=$enable_browsing;
9422 if test "x$enable_browsing" = xno; then
9424 cat >>confdefs.h <<_ACEOF
9425 #define CUPS_DEFAULT_BROWSING 0
9430 cat >>confdefs.h <<_ACEOF
9431 #define CUPS_DEFAULT_BROWSING 1
9438 # Check whether --with-local_protocols was given.
9439 if test "${with_local_protocols+set}" = set; then :
9440 withval=$with_local_protocols; default_local_protocols="$withval"
9442 default_local_protocols="default"
9446 if test x$with_local_protocols != xno; then
9447 if test "x$default_local_protocols" = "xdefault"; then
9448 if test "x$DNSSD_BACKEND" != "x"; then
9449 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9451 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9454 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9457 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9461 cat >>confdefs.h <<_ACEOF
9462 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9466 # Check whether --enable-default_shared was given.
9467 if test "${enable_default_shared+set}" = set; then :
9468 enableval=$enable_default_shared;
9471 if test "x$enable_default_shared" = xno; then
9472 CUPS_DEFAULT_SHARED="No"
9473 cat >>confdefs.h <<_ACEOF
9474 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9478 CUPS_DEFAULT_SHARED="Yes"
9479 cat >>confdefs.h <<_ACEOF
9480 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9487 # Check whether --with-cups_user was given.
9488 if test "${with_cups_user+set}" = set; then :
9489 withval=$with_cups_user; CUPS_USER="$withval"
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9492 $as_echo_n "checking for default print user... " >&6; }
9493 if test x$uname = xDarwin; then
9494 if test x`id
-u _lp
2>/dev
/null
` = x; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9500 $as_echo "$CUPS_USER" >&6; }
9501 elif test -f /etc/passwd; then
9503 for user in lp lpd guest daemon nobody; do
9504 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9507 $as_echo "$user" >&6; }
9512 if test x$CUPS_USER = x; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9515 $as_echo "not found" >&6; }
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9520 $as_echo "no password file" >&6; }
9525 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9526 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9530 # Check whether --with-cups_group was given.
9531 if test "${with_cups_group+set}" = set; then :
9532 withval=$with_cups_group; CUPS_GROUP="$withval"
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9535 $as_echo_n "checking for default print group... " >&6; }
9536 if test x$uname = xDarwin; then
9537 if test x`id
-g _lp
2>/dev
/null
` = x; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9543 $as_echo "$CUPS_GROUP" >&6; }
9544 elif test -f /etc/group; then
9545 GROUP_LIST="_lp lp nobody"
9547 for group in $GROUP_LIST; do
9548 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9551 $as_echo "$group" >&6; }
9556 if test x$CUPS_GROUP = x; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9559 $as_echo "not found" >&6; }
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9564 $as_echo "no group file" >&6; }
9569 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9570 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9574 # Check whether --with-system_groups was given.
9575 if test "${with_system_groups+set}" = set; then :
9576 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9578 if test x$uname = xDarwin; then
9579 CUPS_SYSTEM_GROUPS="admin"
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9582 $as_echo_n "checking for default system groups... " >&6; }
9583 if test -f /etc/group; then
9584 CUPS_SYSTEM_GROUPS=""
9585 GROUP_LIST="lpadmin sys system root"
9586 for group in $GROUP_LIST; do
9587 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9588 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9589 CUPS_SYSTEM_GROUPS="$group"
9591 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9596 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9597 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9599 $as_echo "no groups found" >&6; }
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9602 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9605 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9607 $as_echo "no group file" >&6; }
9613 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9615 for group in $CUPS_SYSTEM_GROUPS; do
9616 if test "x$CUPS_GROUP" = "x$group"; then
9617 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9626 cat >>confdefs.h <<_ACEOF
9627 #define CUPS_DEFAULT_USER "$CUPS_USER"
9630 cat >>confdefs.h <<_ACEOF
9631 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9634 cat >>confdefs.h <<_ACEOF
9635 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9640 # Check whether --with-printcap was given.
9641 if test "${with_printcap+set}" = set; then :
9642 withval=$with_printcap; default_printcap="$withval"
9644 default_printcap="default"
9648 if test x$default_printcap != xno; then
9649 if test "x$default_printcap" = "xdefault"; then
9652 if test $uversion -ge 90; then
9653 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9655 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9659 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9662 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9666 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9669 CUPS_DEFAULT_PRINTCAP=""
9673 cat >>confdefs.h <<_ACEOF
9674 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9679 # Check whether --with-lpdconfigfile was given.
9680 if test "${with_lpdconfigfile+set}" = set; then :
9681 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9683 default_lpdconfigfile="default"
9687 if test x$default_lpdconfigfile != xno; then
9688 if test "x$default_lpdconfigfile" = "xdefault"; then
9691 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9694 if test "x$XINETD" != x; then
9695 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9697 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9702 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9705 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9708 cat >>confdefs.h <<_ACEOF
9709 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9715 # Check whether --with-smbconfigfile was given.
9716 if test "${with_smbconfigfile+set}" = set; then :
9717 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9719 default_smbconfigfile="default"
9723 if test x$default_smbconfigfile != xno; then
9724 if test "x$default_smbconfigfile" = "xdefault"; then
9725 if test -f /etc/smb.conf; then
9726 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9728 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9731 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9734 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9737 cat >>confdefs.h <<_ACEOF
9738 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9744 # Check whether --with-max-copies was given.
9745 if test "${with_max_copies+set}" = set; then :
9746 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9748 CUPS_MAX_COPIES="9999"
9753 cat >>confdefs.h <<_ACEOF
9754 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9758 # Check whether --enable-raw_printing was given.
9759 if test "${enable_raw_printing+set}" = set; then :
9760 enableval=$enable_raw_printing;
9763 if test "x$enable_raw_printing" != xno; then
9764 DEFAULT_RAW_PRINTING=""
9766 DEFAULT_RAW_PRINTING="#"
9771 # Check whether --with-snmp-address was given.
9772 if test "${with_snmp_address+set}" = set; then :
9773 withval=$with_snmp_address; if test "x$withval" = x; then
9774 CUPS_SNMP_ADDRESS=""
9776 CUPS_SNMP_ADDRESS="Address $withval"
9779 if test "x$uname" = xDarwin; then
9780 CUPS_SNMP_ADDRESS=""
9782 CUPS_SNMP_ADDRESS="Address @LOCAL"
9788 # Check whether --with-snmp-community was given.
9789 if test "${with_snmp_community+set}" = set; then :
9790 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9792 CUPS_SNMP_COMMUNITY="Community public"
9800 # Check whether --with-ipp-port was given.
9801 if test "${with_ipp_port+set}" = set; then :
9802 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
9804 DEFAULT_IPP_PORT="631"
9809 cat >>confdefs.h <<_ACEOF
9810 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
9814 # Check whether --enable-webif was given.
9815 if test "${enable_webif+set}" = set; then :
9816 enableval=$enable_webif;
9819 case "x$enable_webif" in
9822 CUPS_DEFAULT_WEBIF=0
9826 CUPS_DEFAULT_WEBIF=1
9829 if test $uname = Darwin; then
9831 CUPS_DEFAULT_WEBIF=0
9834 CUPS_DEFAULT_WEBIF=1
9840 cat >>confdefs.h <<_ACEOF
9841 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
9848 # Check whether --with-java was given.
9849 if test "${with_java+set}" = set; then :
9850 withval=$with_java; CUPS_JAVA="$withval"
9856 if test "x$CUPS_JAVA" = x; then
9857 # Extract the first word of "java", so it can be a program name with args.
9858 set dummy java; ac_word=$2
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9860 $as_echo_n "checking for $ac_word... " >&6; }
9861 if ${ac_cv_path_JAVA+:} false; then :
9862 $as_echo_n "(cached) " >&6
9866 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9876 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
9877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9887 JAVA=$ac_cv_path_JAVA
9888 if test -n "$JAVA"; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
9890 $as_echo "$JAVA" >&6; }
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9900 cat >>confdefs.h <<_ACEOF
9901 #define CUPS_JAVA "$CUPS_JAVA"
9905 if test "x$CUPS_JAVA" != x; then
9906 $as_echo "#define HAVE_JAVA 1" >>confdefs.h
9911 # Check whether --with-perl was given.
9912 if test "${with_perl+set}" = set; then :
9913 withval=$with_perl; CUPS_PERL="$withval"
9919 if test "x$CUPS_PERL" = x; then
9920 # Extract the first word of "perl", so it can be a program name with args.
9921 set dummy perl; ac_word=$2
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923 $as_echo_n "checking for $ac_word... " >&6; }
9924 if ${ac_cv_path_PERL+:} false; then :
9925 $as_echo_n "(cached) " >&6
9929 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 test -z "$as_dir" && as_dir=.
9937 for ac_exec_ext in '' $ac_executable_extensions; do
9938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9939 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9950 PERL=$ac_cv_path_PERL
9951 if test -n "$PERL"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9953 $as_echo "$PERL" >&6; }
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9963 cat >>confdefs.h <<_ACEOF
9964 #define CUPS_PERL "$CUPS_PERL"
9968 if test "x$CUPS_PERL" != x; then
9969 $as_echo "#define HAVE_PERL 1" >>confdefs.h
9974 # Check whether --with-php was given.
9975 if test "${with_php+set}" = set; then :
9976 withval=$with_php; CUPS_PHP="$withval"
9982 if test "x$CUPS_PHP" = x; then
9983 # Extract the first word of "php-cgi", so it can be a program name with args.
9984 set dummy php-cgi; ac_word=$2
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986 $as_echo_n "checking for $ac_word... " >&6; }
9987 if ${ac_cv_path_PHPCGI+:} false; then :
9988 $as_echo_n "(cached) " >&6
9992 ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
9995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10002 ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013 PHPCGI=$ac_cv_path_PHPCGI
10014 if test -n "$PHPCGI"; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
10016 $as_echo "$PHPCGI" >&6; }
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10023 if test "x$PHPCGI" = x; then
10024 # Extract the first word of "php", so it can be a program name with args.
10025 set dummy php; ac_word=$2
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027 $as_echo_n "checking for $ac_word... " >&6; }
10028 if ${ac_cv_path_PHP+:} false; then :
10029 $as_echo_n "(cached) " >&6
10033 ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
10036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10037 for as_dir in $PATH
10040 test -z "$as_dir" && as_dir=.
10041 for ac_exec_ext in '' $ac_executable_extensions; do
10042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10043 ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
10044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10054 PHP=$ac_cv_path_PHP
10055 if test -n "$PHP"; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
10057 $as_echo "$PHP" >&6; }
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10070 cat >>confdefs.h <<_ACEOF
10071 #define CUPS_PHP "$CUPS_PHP"
10075 if test "x$CUPS_PHP" = x; then
10078 $as_echo "#define HAVE_PHP 1" >>confdefs.h
10083 # Check whether --with-python was given.
10084 if test "${with_python+set}" = set; then :
10085 withval=$with_python; CUPS_PYTHON="$withval"
10091 if test "x$CUPS_PYTHON" = x; then
10092 # Extract the first word of "python", so it can be a program name with args.
10093 set dummy python; ac_word=$2
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10095 $as_echo_n "checking for $ac_word... " >&6; }
10096 if ${ac_cv_path_PYTHON+:} false; then :
10097 $as_echo_n "(cached) " >&6
10101 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105 for as_dir in $PATH
10108 test -z "$as_dir" && as_dir=.
10109 for ac_exec_ext in '' $ac_executable_extensions; do
10110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10111 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10122 PYTHON=$ac_cv_path_PYTHON
10123 if test -n "$PYTHON"; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10125 $as_echo "$PYTHON" >&6; }
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128 $as_echo "no" >&6; }
10132 CUPS_PYTHON="$PYTHON"
10135 cat >>confdefs.h <<_ACEOF
10136 #define CUPS_PYTHON "$CUPS_PYTHON"
10140 if test "x$CUPS_PYTHON" != x; then
10141 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10147 INSTALL_LANGUAGES=""
10148 UNINSTALL_LANGUAGES=""
10150 if test "x$LANGUAGES" != x; then
10151 INSTALL_LANGUAGES="install-languages"
10152 UNINSTALL_LANGUAGES="uninstall-languages"
10153 for lang in $LANGUAGES; do
10154 if test -f doc/$lang/index.html.in; then
10155 LANGFILES="$LANGFILES doc/$lang/index.html"
10158 if test -f templates/$lang/header.tmpl.in; then
10159 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10162 elif test "x$CUPS_BUNDLEDIR" != x; then
10163 INSTALL_LANGUAGES="install-langbundle"
10164 UNINSTALL_LANGUAGES="uninstall-langbundle"
10170 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/index.html man/client.conf.man man/cups-files.conf.man man/cups-lpd.man man/cups-snmp.man man/cupsaddsmb.man man/cupsd.conf.man man/cupsd.man man/lpoptions.man scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/org.cups.cups-lpdAT.service scheduler/org.cups.cupsd.path scheduler/org.cups.cupsd.service scheduler/org.cups.cupsd.socket templates/header.tmpl packaging/cups.list $LANGFILES"
10172 cat >confcache <<\_ACEOF
10173 # This file is a shell script that caches the results of configure
10174 # tests run on this system so they can be shared between configure
10175 # scripts and configure runs, see configure's option --config-cache.
10176 # It is not useful on other systems. If it contains results you don't
10177 # want to keep, you may remove or edit it.
10179 # config.status only pays attention to the cache file if you give it
10180 # the --recheck option to rerun configure.
10182 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10183 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10184 # following values.
10188 # The following way of writing the cache mishandles newlines in values,
10189 # but we know of no workaround that is simple, portable, and efficient.
10190 # So, we kill variables containing newlines.
10191 # Ultrix sh set writes to stderr and can't be redirected directly,
10192 # and sets the high bit in the cache file unless we assign to the vars.
10194 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10195 eval ac_val
=\$
$ac_var
10199 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10203 _ | IFS | as_nl
) ;; #(
10204 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10205 *) { eval $ac_var=; unset $ac_var;} ;;
10211 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10212 *${as_nl}ac_space
=\
*)
10213 # `set' does not quote correctly, so add quotes: double-quote
10214 # substitution turns \\\\ into \\, and sed turns \\ into \.
10217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10220 # `set' quotes correctly as required by POSIX, so do not add quotes.
10221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10230 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10232 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10234 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10235 if test -w "$cache_file"; then
10236 if test "x$cache_file" != "x/dev/null"; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10238 $as_echo "$as_me: updating cache $cache_file" >&6;}
10239 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10240 cat confcache
>"$cache_file"
10242 case $cache_file in #(
10244 mv -f confcache
"$cache_file"$$
&&
10245 mv -f "$cache_file"$$
"$cache_file" ;; #(
10247 mv -f confcache
"$cache_file" ;;
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10253 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10258 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10259 # Let make expand exec_prefix.
10260 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10262 DEFS
=-DHAVE_CONFIG_H
10267 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10268 # 1. Remove the extension, and $U if already installed.
10269 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10270 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10271 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10272 # will be set to the directory where LIBOBJS objects are built.
10273 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10274 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10276 LIBOBJS
=$ac_libobjs
10278 LTLIBOBJS
=$ac_ltlibobjs
10282 : "${CONFIG_STATUS=./config.status}"
10284 ac_clean_files_save
=$ac_clean_files
10285 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10287 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10289 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10291 # Generated by $as_me.
10292 # Run this file to recreate the current configuration.
10293 # Compiler output produced by configure, useful for debugging
10294 # configure, is in config.log if it exists.
10297 ac_cs_recheck=false
10300 SHELL=\${CONFIG_SHELL-$SHELL}
10303 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10304 ## -------------------- ##
10305 ## M4sh Initialization. ##
10306 ## -------------------- ##
10308 # Be more Bourne compatible
10309 DUALCASE
=1; export DUALCASE
# for MKS sh
10310 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10313 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10314 # is contrary to our usage. Disable this feature.
10315 alias -g '${1+"$@"}'='"$@"'
10316 setopt NO_GLOB_SUBST
10318 case `(set -o) 2>/dev/null` in #(
10330 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10331 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10332 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10333 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10334 # Prefer a ksh shell builtin over an external printf program on Solaris,
10335 # but without wasting forks for bash or zsh.
10336 if test -z "$BASH_VERSION$ZSH_VERSION" \
10337 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10338 as_echo='print
-r --'
10339 as_echo_n='print
-rn --'
10340 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10341 as_echo='printf %s
\n'
10342 as_echo_n='printf %s
'
10344 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10345 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10346 as_echo_n='/usr
/ucb
/echo -n'
10348 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10349 as_echo_n_body='eval
10353 expr "X$arg" : "X\\(.*\\)$as_nl";
10354 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10356 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10358 export as_echo_n_body
10359 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10361 export as_echo_body
10362 as_echo='sh
-c $as_echo_body as_echo
'
10365 # The user is always right.
10366 if test "${PATH_SEPARATOR+set}" != set; then
10368 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10369 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10376 # We need space, tab and new line, in precisely that order. Quoting is
10377 # there to prevent editors from complaining about space-tab.
10378 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10379 # splitting by setting IFS to empty value.)
10382 # Find who we are. Look in the path if we contain no directory separator.
10385 *[\\/]* ) as_myself=$0 ;;
10386 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387 for as_dir in $PATH
10390 test -z "$as_dir" && as_dir=.
10391 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10397 # We did not find ourselves, most probably we were run as `sh COMMAND'
10398 # in which case we are not to be found in the path.
10399 if test "x$as_myself" = x
; then
10402 if test ! -f "$as_myself"; then
10403 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10407 # Unset variables that we do not need and which cause bugs (e.g. in
10408 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10409 # suppresses any "Segmentation fault" message there. '((' could
10410 # trigger a bug in pdksh 5.2.14.
10411 for as_var
in BASH_ENV ENV MAIL MAILPATH
10412 do eval test x\
${$as_var+set} = xset \
10413 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10426 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10429 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10430 # ----------------------------------------
10431 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10432 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10433 # script with STATUS, using 1 if that was 0.
10436 as_status
=$1; test $as_status -eq 0 && as_status
=1
10438 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10439 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10441 $as_echo "$as_me: error: $2" >&2
10442 as_fn_exit
$as_status
10446 # as_fn_set_status STATUS
10447 # -----------------------
10448 # Set $? to STATUS, without forking.
10449 as_fn_set_status
()
10452 } # as_fn_set_status
10454 # as_fn_exit STATUS
10455 # -----------------
10456 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10460 as_fn_set_status
$1
10466 # Portably unset VAR.
10469 { eval $1=; unset $1;}
10471 as_unset
=as_fn_unset
10472 # as_fn_append VAR VALUE
10473 # ----------------------
10474 # Append the text in VALUE to the end of the definition contained in VAR. Take
10475 # advantage of any shell optimizations that allow amortized linear growth over
10476 # repeated appends, instead of the typical quadratic growth present in naive
10478 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10479 eval 'as_fn_append ()
10490 # as_fn_arith ARG...
10491 # ------------------
10492 # Perform arithmetic evaluation on the ARGs, and store the result in the
10493 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10494 # must be portable across $(()) and expr.
10495 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10496 eval 'as_fn_arith ()
10503 as_val
=`expr "$@" || test $? -eq 1`
10508 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10509 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10515 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10516 as_basename
=basename
10521 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10527 as_me
=`$as_basename -- "$0" ||
10528 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10529 X"$0" : 'X\(//\)$' \| \
10530 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10532 sed '/^.*\/\([^/][^/]*\)\/*$/{
10546 # Avoid depending upon Character Ranges.
10547 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10548 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10549 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10550 as_cr_digits
='0123456789'
10551 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10553 ECHO_C
= ECHO_N
= ECHO_T
=
10554 case `echo -n x` in #(((((
10556 case `echo 'xy\c'` in
10557 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10559 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10566 rm -f conf$$ conf$$.exe conf$$.
file
10567 if test -d conf$$.dir
; then
10568 rm -f conf$$.dir
/conf$$.
file
10571 mkdir conf$$.dir
2>/dev
/null
10573 if (echo >conf$$.
file) 2>/dev
/null
; then
10574 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10576 # ... but there are two gotchas:
10577 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10578 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10579 # In both cases, we have to default to `cp -p'.
10580 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10582 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10590 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10591 rmdir conf$$.dir
2>/dev
/null
10596 # Create "$as_dir" as a directory, including parents if necessary.
10601 -*) as_dir
=.
/$as_dir;;
10603 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10607 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10608 *) as_qdir
=$as_dir;;
10610 as_dirs
="'$as_qdir' $as_dirs"
10611 as_dir
=`$as_dirname -- "$as_dir" ||
10612 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10613 X"$as_dir" : 'X\(//\)[^/]' \| \
10614 X"$as_dir" : 'X\(//\)$' \| \
10615 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10616 $as_echo X"$as_dir" |
10617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10621 /^X\(\/\/\)[^/].*/{
10634 test -d "$as_dir" && break
10636 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10637 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10641 if mkdir
-p .
2>/dev
/null
; then
10642 as_mkdir_p
='mkdir -p "$as_dir"'
10644 test -d .
/-p && rmdir .
/-p
10648 if test -x / >/dev
/null
2>&1; then
10649 as_test_x
='test -x'
10651 if ls -dL / >/dev
/null
2>&1; then
10658 if test -d "$1"; then
10664 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10665 ???[sx]*):;;*)false;;esac;fi
10669 as_executable_p
=$as_test_x
10671 # Sed expression to map a string onto a valid CPP name.
10672 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10674 # Sed expression to map a string onto a valid variable name.
10675 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10679 ## ----------------------------------- ##
10680 ## Main body of $CONFIG_STATUS script. ##
10681 ## ----------------------------------- ##
10683 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10686 # Save the log message, to keep $0 and so on meaningful, and to
10687 # report actual input values of CONFIG_FILES etc. instead of their
10688 # values after options handling.
10690 This file was extended by $as_me, which was
10691 generated by GNU Autoconf 2.68. Invocation command line was
10693 CONFIG_FILES = $CONFIG_FILES
10694 CONFIG_HEADERS = $CONFIG_HEADERS
10695 CONFIG_LINKS = $CONFIG_LINKS
10696 CONFIG_COMMANDS = $CONFIG_COMMANDS
10699 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10704 case $ac_config_files in *"
10705 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10708 case $ac_config_headers in *"
10709 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10714 # Files that config.status was made for.
10715 config_files="$ac_config_files"
10716 config_headers="$ac_config_headers"
10720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10722 \`$as_me' instantiates files and other configuration actions
10723 from templates according to the current configuration. Unless the files
10724 and actions are specified as TAGs, all are instantiated by default.
10726 Usage: $0 [OPTION]... [TAG]...
10728 -h, --help print this help, then exit
10729 -V, --version print version number and configuration settings, then exit
10730 --config print configuration, then exit
10731 -q, --quiet, --silent
10732 do not print progress messages
10733 -d, --debug don't remove temporary files
10734 --recheck update $as_me by reconfiguring in the same conditions
10735 --file=FILE[:TEMPLATE]
10736 instantiate the configuration file FILE
10737 --header=FILE[:TEMPLATE]
10738 instantiate the configuration header FILE
10740 Configuration files:
10743 Configuration headers:
10746 Report bugs to the package provider."
10749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10750 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10753 configured by $0, generated by GNU Autoconf 2.68,
10754 with options \\"\$ac_cs_config\\"
10756 Copyright (C) 2010 Free Software Foundation, Inc.
10757 This config.status script is free software; the Free Software Foundation
10758 gives unlimited permission to copy, distribute and modify it."
10763 test -n "\$AWK" || AWK=awk
10766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10767 # The default lists apply if the user does not specify any file.
10773 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10774 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10778 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10790 # Handling of the options.
10791 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10793 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10794 $as_echo "$ac_cs_version"; exit ;;
10795 --config |
--confi |
--conf |
--con |
--co |
--c )
10796 $as_echo "$ac_cs_config"; exit ;;
10797 --debug |
--debu |
--deb |
--de |
--d |
-d )
10799 --file |
--fil |
--fi |
--f )
10802 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10803 '') as_fn_error $?
"missing file argument" ;;
10805 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10806 ac_need_defaults
=false
;;
10807 --header |
--heade |
--head |
--hea )
10810 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10812 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10813 ac_need_defaults
=false
;;
10815 # Conflict between --help and --header
10816 as_fn_error $?
"ambiguous option: \`$1'
10817 Try \`$0 --help' for more information.";;
10818 --help |
--hel |
-h )
10819 $as_echo "$ac_cs_usage"; exit ;;
10820 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10821 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10824 # This is an error.
10825 -*) as_fn_error $?
"unrecognized option: \`$1'
10826 Try \`$0 --help' for more information." ;;
10828 *) as_fn_append ac_config_targets
" $1"
10829 ac_need_defaults
=false
;;
10835 ac_configure_extra_args
=
10837 if $ac_cs_silent; then
10839 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10844 if \$ac_cs_recheck; then
10845 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10847 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10848 CONFIG_SHELL='$SHELL'
10849 export CONFIG_SHELL
10854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10858 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10859 ## Running $as_me. ##
10865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10870 # Handling of arguments.
10871 for ac_config_target
in $ac_config_targets
10873 case $ac_config_target in
10874 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10875 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10876 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10877 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10878 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10879 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10880 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10881 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10882 "data/testprint") CONFIG_FILES
="$CONFIG_FILES data/testprint" ;;
10883 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10884 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10885 "man/client.conf.man") CONFIG_FILES
="$CONFIG_FILES man/client.conf.man" ;;
10886 "man/cups-files.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cups-files.conf.man" ;;
10887 "man/cups-lpd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-lpd.man" ;;
10888 "man/cups-snmp.man") CONFIG_FILES
="$CONFIG_FILES man/cups-snmp.man" ;;
10889 "man/cupsaddsmb.man") CONFIG_FILES
="$CONFIG_FILES man/cupsaddsmb.man" ;;
10890 "man/cupsd.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.conf.man" ;;
10891 "man/cupsd.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.man" ;;
10892 "man/lpoptions.man") CONFIG_FILES
="$CONFIG_FILES man/lpoptions.man" ;;
10893 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10894 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10895 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10896 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10897 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10898 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10899 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10900 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10901 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10902 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10903 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10905 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10910 # If the user did not use the arguments to specify the items to instantiate,
10911 # then the envvar interface is used. Set only those that are not.
10912 # We use the long form for the default assignment because of an extremely
10913 # bizarre bug on SunOS 4.1.3.
10914 if $ac_need_defaults; then
10915 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10916 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10919 # Have a temporary directory for convenience. Make it in the build tree
10920 # simply because there is no reason against having it here, and in addition,
10921 # creating and moving files from /tmp can sometimes cause problems.
10922 # Hook for its removal unless debugging.
10923 # Note that there is a small window in which the directory will not be cleaned:
10924 # after its creation but before its name has been assigned to `$tmp'.
10928 trap 'exit_status=$?
10929 : "${ac_tmp:=$tmp}"
10930 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10932 trap 'as_fn_exit 1' 1 2 13 15
10934 # Create a (secure) tmp directory for tmp files.
10937 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10941 tmp
=.
/conf$$
-$RANDOM
10942 (umask 077 && mkdir
"$tmp")
10943 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10946 # Set up the scripts for CONFIG_FILES section.
10947 # No need to generate them if there are no CONFIG_FILES.
10948 # This happens for instance with `./config.status config.h'.
10949 if test -n "$CONFIG_FILES"; then
10952 ac_cr
=`echo X | tr X '\015'`
10953 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10954 # But we know of no other shell where ac_cr would be empty at this
10955 # point, so we can use a bashism as a fallback.
10956 if test "x$ac_cr" = x
; then
10957 eval ac_cr
=\$
\'\\r
\'
10959 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10960 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10963 ac_cs_awk_cr
=$ac_cr
10966 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10971 echo "cat >conf$$subs.awk <<_ACEOF" &&
10972 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10974 } >conf$$subs.sh ||
10975 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10976 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10978 for ac_last_try in false false false false false :; do
10979 . ./conf$$subs.sh ||
10980 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10982 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10983 if test $ac_delim_n = $ac_delim_num; then
10985 elif $ac_last_try; then
10986 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10988 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10991 rm -f conf$$subs.sh
10993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10994 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10998 s/^/S["/; s
/!.
*/"]=/
11008 s/\(.\{148\}\)..*/\1/
11010 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11015 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11022 s/\(.\{148\}\)..*/\1/
11024 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11028 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11033 ' <conf$$subs.awk | sed '
11038 ' >>$CONFIG_STATUS || ac_write_fail=1
11039 rm -f conf$$subs.awk
11040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11042 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11043 for (key in S) S_is_set[key] = 1
11049 nfields = split(line, field, "@
")
11051 len = length(field[1])
11052 for (i = 2; i < nfields; i++) {
11054 keylen = length(key)
11055 if (S_is_set[key]) {
11057 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11058 len += length(value) + length(field[++i])
11069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11070 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11071 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11074 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11075 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11078 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11079 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11080 # trailing colons and then remove the whole line if VPATH becomes empty
11081 # (actually we leave an empty line to preserve line numbers).
11082 if test "x
$srcdir" = x.; then
11083 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11102 fi # test -n "$CONFIG_FILES"
11104 # Set up the scripts for CONFIG_HEADERS section.
11105 # No need to generate them if there are no CONFIG_HEADERS.
11106 # This happens for instance with `./config.status Makefile'.
11107 if test -n "$CONFIG_HEADERS"; then
11108 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11112 # Transform confdefs.h into an awk script `defines.awk', embedded as
11113 # here-document in config.status, that substitutes the proper values into
11114 # config.h.in to produce config.h.
11116 # Create a delimiter string that does not exist in confdefs.h, to ease
11117 # handling of long lines.
11119 for ac_last_try in false false :; do
11120 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11121 if test -z "$ac_tt"; then
11123 elif $ac_last_try; then
11124 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11126 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11130 # For the awk script, D is an array of macro values keyed by name,
11131 # likewise P contains macro parameters if any. Preserve backslash
11132 # newline sequences.
11134 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11136 s/.\{148\}/&'"$ac_delim"'/g
11139 s/^[ ]*#[ ]*define[ ][ ]*/ /
11146 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11148 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11152 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11153 D["\
1"]=" \
3\\\\\\n
"\\/p
11155 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11160 s/.\{148\}/&'"$ac_delim"'/g
11165 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11168 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11170 ' <confdefs.h | sed '
11171 s/'"$ac_delim"'/"\\\
11172 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11175 for (key in D) D_is_set[key] = 1
11178 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11180 split(line, arg, " ")
11181 if (arg[1] == "#") {
11185 defundef
= substr
(arg
[1], 2)
11188 split(mac1
, mac2
, "(") #)
11190 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11191 if (D_is_set
[macro
]) {
11192 # Preserve the white space surrounding the "#".
11193 print prefix
"define", macro P
[macro
] D
[macro
]
11196 # Replace #undef with comments. This is necessary, for example,
11197 # in the case of _POSIX_SOURCE, which is predefined and required
11198 # on some systems where configure will not decide to define it.
11199 if (defundef
== "undef") {
11200 print
"/*", prefix defundef
, macro
, "*/"
11208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11209 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11210 fi # test -n "$CONFIG_HEADERS"
11213 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11218 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11220 case $ac_mode$ac_tag in
11222 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11223 :[FH
]-) ac_tag
=-:-;;
11224 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11241 -) ac_f
="$ac_tmp/stdin";;
11242 *) # Look for the file first in the build tree, then in the source tree
11243 # (if the path is not absolute). The absolute path cannot be DOS-style,
11244 # because $ac_f cannot contain `:'.
11248 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11250 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11252 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11253 as_fn_append ac_file_inputs
" '$ac_f'"
11256 # Let's still pretend it is `configure' which instantiates (i.e., don't
11257 # use $as_me), people would be surprised to read:
11258 # /* config.h. Generated by config.status. */
11259 configure_input
='Generated from '`
11260 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11262 if test x
"$ac_file" != x-
; then
11263 configure_input
="$ac_file. $configure_input"
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11265 $as_echo "$as_me: creating $ac_file" >&6;}
11267 # Neutralize special characters interpreted by sed in replacement strings.
11268 case $configure_input in #(
11269 *\
&* |
*\|
* |
*\\* )
11270 ac_sed_conf_input
=`$as_echo "$configure_input" |
11271 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11272 *) ac_sed_conf_input
=$configure_input;;
11276 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11277 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11282 ac_dir
=`$as_dirname -- "$ac_file" ||
11283 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11284 X"$ac_file" : 'X\(//\)[^/]' \| \
11285 X"$ac_file" : 'X\(//\)$' \| \
11286 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11287 $as_echo X"$ac_file" |
11288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11292 /^X\(\/\/\)[^/].*/{
11305 as_dir
="$ac_dir"; as_fn_mkdir_p
11309 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11311 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11312 # A ".." for each directory in $ac_dir_suffix.
11313 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11314 case $ac_top_builddir_sub in
11315 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11316 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11319 ac_abs_top_builddir
=$ac_pwd
11320 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11321 # for backward compatibility:
11322 ac_top_builddir
=$ac_top_build_prefix
11325 .
) # We are building in place.
11327 ac_top_srcdir
=$ac_top_builddir_sub
11328 ac_abs_top_srcdir
=$ac_pwd ;;
11329 [\\/]* | ?
:[\\/]* ) # Absolute name.
11330 ac_srcdir
=$srcdir$ac_dir_suffix;
11331 ac_top_srcdir
=$srcdir
11332 ac_abs_top_srcdir
=$srcdir ;;
11333 *) # Relative name.
11334 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11335 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11336 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11338 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11350 # If the template does not know about datarootdir, expand it.
11351 # FIXME: This hack should be removed a few years after 2.60.
11352 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11363 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11364 *datarootdir
*) ac_datarootdir_seen
=yes;;
11365 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11367 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11370 ac_datarootdir_hack='
11371 s&@datadir@&$datadir&g
11372 s&@docdir@&$docdir&g
11373 s&@infodir@&$infodir&g
11374 s&@localedir@&$localedir&g
11375 s&@mandir@&$mandir&g
11376 s&\\\${datarootdir}&$datarootdir&g' ;;
11380 # Neutralize VPATH when `$srcdir' = `.'.
11381 # Shell code in configure.ac might set extrasub.
11382 # FIXME: do we really want to maintain this feature?
11383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11384 ac_sed_extra="$ac_vpsub
11387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11389 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11390 s|@configure_input@|
$ac_sed_conf_input|
;t t
11391 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11392 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11393 s
&@srcdir@
&$ac_srcdir&;t t
11394 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11395 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11396 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11397 s
&@builddir@
&$ac_builddir&;t t
11398 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11399 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11400 $ac_datarootdir_hack
11402 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11403 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11405 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11406 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11407 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11408 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11410 which seems to be undefined. Please make sure it is defined" >&5
11411 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11412 which seems to be undefined. Please make sure it is defined" >&2;}
11414 rm -f "$ac_tmp/stdin"
11416 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11417 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11419 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11425 if test x"$ac_file" != x-; then
11427 $as_echo "/* $configure_input */" \
11428 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11429 } >"$ac_tmp/config.h" \
11430 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11431 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11433 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11436 mv "$ac_tmp/config.h" "$ac_file" \
11437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11440 $as_echo "/* $configure_input */" \
11441 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11442 || as_fn_error $? "could not create -" "$LINENO" 5
11454 ac_clean_files=$ac_clean_files_save
11456 test $ac_write_fail = 0 ||
11457 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11460 # configure is writing to config.log, and then calls config.status.
11461 # config.status does its own redirection, appending to config.log.
11462 # Unfortunately, on DOS this fails, as config.log is still kept open
11463 # by configure, so config.status won't be able to
write to it
; its
11464 # output is simply discarded. So we exec the FD to /dev/null,
11465 # effectively closing config.log, so it can be properly (re)opened and
11466 # appended to by config.status. When coming back to configure, we
11467 # need to make the FD available again.
11468 if test "$no_create" != yes; then
11470 ac_config_status_args
=
11471 test "$silent" = yes &&
11472 ac_config_status_args
="$ac_config_status_args --quiet"
11474 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11476 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11477 # would make configure fail if this is the last instruction.
11478 $ac_cs_success || as_fn_exit
1
11480 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11482 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11486 chmod +x cups-config