2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix=/usr/local
550 ac_config_libobj_dir=.
557 # Identity of this package.
565 ac_unique_file="cups/cups.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
603 ac_subst_vars='LTLIBOBJS
618 CUPS_DEFAULT_SMB_CONFIG_FILE
619 CUPS_DEFAULT_LPD_CONFIG_FILE
620 CUPS_DEFAULT_PRINTCAP
621 CUPS_PRIMARY_SYSTEM_GROUP
626 CUPS_BROWSE_LOCAL_PROTOCOLS
628 CUPS_ACCESS_LOG_LEVEL
633 CUPS_CONFIG_FILE_PERM
655 CUPS_DEFAULT_GSSSERVICENAME
658 CUPS_LISTEN_DOMAINSOCKET
659 CUPS_DEFAULT_DOMAINSOCKET
718 CUPS_DEFAULT_PRINTOPERATOR_AUTH
792 program_transform_name
805 enable_option_checking
834 enable_libtool_unsupported
852 with_openssl_includes
863 with_config_file_perm
868 with_access_log_level
871 enable_default_shared
889 ac_precious_vars='build_alias
903 # Initialize some variables set by options.
905 ac_init_version=false
906 ac_unrecognized_opts=
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
917 program_transform_name=s,x,x,
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE}'
942 infodir='${datarootdir}/info'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
957 eval $ac_prev=\$ac_option
963 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 # Accept the important Cygnus configure options, so we can diagnose typos.
970 case $ac_dashdash$ac_option in
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
992 cache_file=config.cache ;;
994 -datadir | --datadir | --datadi | --datad)
996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
997 datadir=$ac_optarg ;;
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1006 -disable-* | --disable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1015 "enable_$ac_useropt"
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1020 eval enable_$ac_useropt=no ;;
1022 -docdir | --docdir | --docdi | --doc | --do)
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
1032 -enable-* | --enable-*)
1033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 as_fn_error $? "invalid feature name: $ac_useropt"
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1041 "enable_$ac_useropt"
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1046 eval enable_$ac_useropt=\$ac_optarg ;;
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
1055 exec_prefix=$ac_optarg ;;
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
1068 -host | --host | --hos | --ho)
1069 ac_prev=host_alias ;;
1070 -host=* | --host=* | --hos=* | --ho=*)
1071 host_alias=$ac_optarg ;;
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077 htmldir=$ac_optarg ;;
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
1084 includedir=$ac_optarg ;;
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089 infodir=$ac_optarg ;;
1091 -libdir | --libdir | --libdi | --libd)
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094 libdir=$ac_optarg ;;
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
1101 libexecdir=$ac_optarg ;;
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
1109 | --localstate | --localstat | --localsta | --localst | --locals)
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113 localstatedir=$ac_optarg ;;
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118 mandir=$ac_optarg ;;
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125 | --no-cr | --no-c | -n)
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139 oldincludedir=$ac_optarg ;;
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144 prefix=$ac_optarg ;;
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151 program_prefix=$ac_optarg ;;
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158 program_suffix=$ac_optarg ;;
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
1175 program_transform_name=$ac_optarg ;;
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1182 -psdir | --psdir | --psdi | --psd | --ps)
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195 sbindir=$ac_optarg ;;
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206 sharedstatedir=$ac_optarg ;;
1208 -site | --site | --sit)
1210 -site=* | --site=* | --sit=*)
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216 srcdir=$ac_optarg ;;
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223 sysconfdir=$ac_optarg ;;
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1226 ac_prev=target_alias ;;
1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228 target_alias=$ac_optarg ;;
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1250 eval with_$ac_useropt=\$ac_optarg ;;
1252 -without-* | --without-*)
1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error $? "invalid package name: $ac_useropt"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1266 eval with_$ac_useropt=no ;;
1269 # Obsolete; use --with-x.
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287 Try \`$0 --help' for more information"
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
1295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 as_fn_error $? "missing argument to $ac_option"
1316 if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324 # Check all directory arguments for consistency.
1325 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir
1330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
1337 # Be sure to have absolute directory names.
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1350 target=$target_alias
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1357 If a cross compiler is detected then cross compile mode will be used" >&2
1358 elif test "x$build_alias" != "x$host_alias"; then
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366 test "$silent" = yes && exec 6>/dev/null
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 as_fn_error $? "working directory cannot be determined"
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374 as_fn_error $? "pwd does not report name of working directory"
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$as_myself" ||
1382 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$as_myself" : 'X\(//\)[^/]' \| \
1384 X"$as_myself" : 'X\(//\)$' \| \
1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386 $as_echo X"$as_myself" |
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1409 ac_srcdir_defaulted=no
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1415 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429 for ac_var in $ac_precious_vars; do
1430 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_env_${ac_var}_value=\$${ac_var}
1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437 # Report the --help message.
1439 if test "$ac_init_help" = "long"; then
1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.
1443 \`configure' configures this package to adapt to many kinds of systems.
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE. See below for descriptions of some of the useful variables.
1450 Defaults for the options are specified in brackets.
1453 -h, --help display this help and exit
1454 --help=short display options specific to this package
1455 --help=recursive display the short help of all the included packages
1456 -V, --version display version information and exit
1457 -q, --quiet, --silent do not print \`checking ...' messages
1458 --cache-file=FILE cache test results in FILE [disabled]
1459 -C, --config-cache alias for \`--cache-file=config.cache'
1460 -n, --no-create do not create output files
1461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1463 Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
1465 [$ac_default_prefix]
1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1474 For better control, use the options below.
1476 Fine tuning of the installation directories:
1477 --bindir=DIR user executables [EPREFIX/bin]
1478 --sbindir=DIR system admin executables [EPREFIX/sbin]
1479 --libexecdir=DIR program executables [EPREFIX/libexec]
1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1483 --libdir=DIR object code libraries [EPREFIX/lib]
1484 --includedir=DIR C header files [PREFIX/include]
1485 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1488 --infodir=DIR info documentation [DATAROOTDIR/info]
1489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1490 --mandir=DIR man documentation [DATAROOTDIR/man]
1491 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1492 --htmldir=DIR html documentation [DOCDIR]
1493 --dvidir=DIR dvi documentation [DOCDIR]
1494 --pdfdir=DIR pdf documentation [DOCDIR]
1495 --psdir=DIR ps documentation [DOCDIR]
1502 if test -n "$ac_init_help"; then
1507 --disable-option-checking ignore unrecognized --enable/--with options
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --enable-static install static libraries
1511 --enable-mallinfo build with malloc debug logging
1512 --enable-libpaper build with libpaper support
1513 --enable-libusb use libusb for USB printing
1514 --enable-tcp-wrappers use libwrap for TCP wrappers support
1515 --enable-acl build with POSIX ACL support
1516 --enable-dbus build with DBUS support
1517 --disable-shared do not create shared libraries
1518 --enable-libtool-unsupported
1519 build with libtool (UNSUPPORTED!)
1520 --enable-debug build with debugging symbols
1521 --enable-debug-guards build with memory allocation guards
1522 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1523 --enable-unit-tests build and run unit tests
1524 --enable-relro build with the GCC relro option
1525 --disable-gssapi disable GSSAPI support
1526 --disable-threads disable multi-threading support
1527 --disable-ssl disable SSL/TLS support
1528 --enable-cdsassl use CDSA for SSL/TLS support, default=first
1529 --enable-gnutls use GNU TLS for SSL/TLS support, default=second
1530 --enable-openssl use OpenSSL for SSL/TLS support, default=third
1531 --disable-pam disable PAM support
1532 --disable-largefile omit support for large files
1533 --disable-avahi disable DNS Service Discovery support using Avahi
1534 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1535 --disable-launchd disable launchd support
1536 --disable-browsing disable Browsing by default
1537 --disable-default-shared
1538 disable DefaultShared by default
1539 --disable-raw-printing do not allow raw printing by default
1540 --enable-webif enable the web interface by default, default=no for OS X
1543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1545 --with-cups-build set "cups-config --build" string
1546 --with-dbusdir set DBUS configuration directory
1547 --with-adminkey set the default SystemAuthKey value
1548 --with-operkey set the default operator @AUTHKEY value
1549 --with-components set components to build:
1550 - "all" (default) builds everything
1551 - "core" builds libcups and ipptool
1552 --with-privateinclude set path for private include files, default=none
1553 --with-rcdir set path for rc scripts
1554 --with-rclevels set run levels for rc scripts
1555 --with-rcstart set start number for rc scripts
1556 --with-rcstop set stop number for rc scripts
1557 --with-smfmanifestdir set path for Solaris SMF manifest
1558 --with-xinetd set path for xinetd config files
1559 --with-lpdconfig set URI for LPD config file
1560 --with-smbconfig set URI for Samba config file
1561 --with-cachedir set path for cache files
1562 --with-icondir set path for application icons
1563 --with-menudir set path for application menus
1564 --with-docdir set path for documentation
1565 --with-fontpath set font path for pstoraster
1566 --with-logdir set path for log files
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-openssl-libs set directory for OpenSSL library
1573 --with-openssl-includes set directory for OpenSSL includes
1574 --with-pam-module specify the PAM module to use
1575 --with-dnssd-libs set directory for DNS Service Discovery library
1576 --with-dnssd-includes set directory for DNS Service Discovery includes
1577 --with-languages set installed languages, default=all
1578 --with-bundledir set OS X localization bundle directory
1579 --with-config-file-perm set default ConfigFilePerm value, default=0640
1580 --with-cupsd-file-perm set default cupsd permissions, default=0500
1581 --with-log-file-perm set default LogFilePerm value, default=0644
1582 --with-fatal-errors set default FatalErrors value, default=config
1583 --with-log-level set default LogLevel value, default=warn
1584 --with-access-log-level set default AccessLogLevel value, default=actions
1585 --with-local-protocols set default BrowseLocalProtocols, default=""
1586 --with-cups-user set default user for CUPS
1587 --with-cups-group set default group for CUPS
1588 --with-system-groups set default system groups for CUPS
1589 --with-printcap set default printcap file
1590 --with-lpdconfigfile set default LPDConfigFile URI
1591 --with-smbconfigfile set default SMBConfigFile URI
1592 --with-max-copies set default max copies value, default=9999
1593 --with-snmp-address set SNMP query address, default=auto
1594 --with-snmp-community set SNMP community, default=public
1595 --with-ipp-port set port number for IPP, default=631
1596 --with-java set Java interpreter for web interfaces
1597 --with-perl set Perl interpreter for web interfaces
1598 --with-php set PHP interpreter for web interfaces
1599 --with-python set Python interpreter for web interfaces
1601 Some influential environment variables:
1602 CC C compiler command
1603 CFLAGS C compiler flags
1604 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1605 nonstandard directory <lib dir>
1606 LIBS libraries to pass to the linker, e.g. -l<library>
1607 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1608 you have headers in a nonstandard directory <include dir>
1610 CXX C++ compiler command
1611 CXXFLAGS C++ compiler flags
1613 Use these variables to override the choices made by `configure' or to help
1614 it to find libraries and programs with nonstandard names/locations.
1616 Report bugs to the package provider.
1621 if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1646 .) # We are building in place.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1680 generated by GNU Autoconf 2.68
1682 Copyright (C) 2010 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1689 ## ------------------------ ##
1690 ## Autoconf initialization. ##
1691 ## ------------------------ ##
1693 # ac_fn_c_try_compile LINENO
1694 # --------------------------
1695 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_compile ()
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1729 } # ac_fn_c_try_compile
1731 # ac_fn_c_try_cpp LINENO
1732 # ----------------------
1733 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { { ac_try="$ac_cpp conftest.$ac_ext"
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } > conftest.i && {
1753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1768 # ac_fn_cxx_try_compile LINENO
1769 # ----------------------------
1770 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_cxx_try_compile ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext
1775 if { { ac_try="$ac_compile"
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_compile") 2>conftest.err
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_cxx_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest.$ac_objext; then :
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1804 } # ac_fn_cxx_try_compile
1806 # ac_fn_c_try_link LINENO
1807 # -----------------------
1808 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext conftest$ac_exeext
1813 if { { ac_try="$ac_link"
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_link") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest$ac_exeext && {
1832 test "$cross_compiling" = yes ||
1833 $as_test_x conftest$ac_exeext
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1842 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844 # interfere with the next link command; also delete a directory that is
1845 # left behind by Apple's compiler. We do this before executing the actions.
1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1850 } # ac_fn_c_try_link
1852 # ac_fn_c_try_run LINENO
1853 # ----------------------
1854 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1855 # that executables *can* be run.
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if { { ac_try="$ac_link"
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_link") 2>&5
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1870 { { case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_try") 2>&5
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; }; }; then :
1882 $as_echo "$as_me: program exited with status $ac_status" >&5
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1886 ac_retval=$ac_status
1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1894 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1895 # -------------------------------------------------------
1896 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1897 # the include files in INCLUDES and setting the cache variable VAR
1899 ac_fn_c_check_header_mongrel ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if eval \${$3+:} false; then :
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906 $as_echo_n "(cached) " >&6
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1912 # Is the header compilable?
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1914 $as_echo_n "checking $2 usability... " >&6; }
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 ac_header_compiler=yes
1923 ac_header_compiler=no
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1927 $as_echo "$ac_header_compiler" >&6; }
1929 # Is the header present?
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1931 $as_echo_n "checking $2 presence... " >&6; }
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1936 if ac_fn_c_try_cpp "$LINENO"; then :
1937 ac_header_preproc=yes
1939 ac_header_preproc=no
1941 rm -f conftest.err conftest.i conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1943 $as_echo "$ac_header_preproc" >&6; }
1945 # So? What about this header?
1946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1949 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1955 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1957 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1959 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1961 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1971 eval "$3=\$ac_header_compiler"
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 } # ac_fn_c_check_header_mongrel
1981 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1982 # -------------------------------------------------------
1983 # Tests whether HEADER exists and can be compiled using the include files in
1984 # INCLUDES, setting the cache variable VAR accordingly.
1985 ac_fn_c_check_header_compile ()
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991 $as_echo_n "(cached) " >&6
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1998 if ac_fn_c_try_compile "$LINENO"; then :
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 } # ac_fn_c_check_header_compile
2012 # ac_fn_c_check_func LINENO FUNC VAR
2013 # ----------------------------------
2014 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2015 ac_fn_c_check_func ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2027 #define $2 innocuous_$2
2029 /* System header to define __stub macros and hopefully few prototypes,
2030 which can conflict with char $2 (); below.
2031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2032 <limits.h> exists even on freestanding compilers. */
2035 # include <limits.h>
2037 # include <assert.h>
2042 /* Override any GCC internal prototype to avoid an error.
2043 Use char because int might match the return type of a GCC
2044 builtin and then its argument prototype would still apply. */
2049 /* The GNU C library defines this for functions which it implements
2050 to always fail with ENOSYS. Some functions are actually named
2051 something starting with __ and the normal name is an alias. */
2052 #if defined __stub_$2 || defined __stub___$2
2064 if ac_fn_c_try_link "$LINENO"; then :
2069 rm -f core conftest.err conftest.$ac_objext \
2070 conftest$ac_exeext conftest.$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 } # ac_fn_c_check_func
2079 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2080 # ----------------------------------------------------
2081 # Tries to find if the field MEMBER exists in type AGGR, after including
2082 # INCLUDES, setting cache variable VAR accordingly.
2083 ac_fn_c_check_member ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2087 $as_echo_n "checking for $2.$3... " >&6; }
2088 if eval \${$4+:} false; then :
2089 $as_echo_n "(cached) " >&6
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2104 if ac_fn_c_try_compile "$LINENO"; then :
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2114 if (sizeof ac_aggr.$3)
2120 if ac_fn_c_try_compile "$LINENO"; then :
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 } # ac_fn_c_check_member
2135 cat >config.log <<_ACEOF
2136 This file contains any messages produced by compilers while
2137 running configure, to aid debugging if configure makes a mistake.
2139 It was created by $as_me, which was
2140 generated by GNU Autoconf 2.68. Invocation command line was
2152 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2153 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2154 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2155 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2156 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2158 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2159 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2161 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2162 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2163 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2164 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2165 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2166 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2167 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 test -z "$as_dir" && as_dir=.
2176 $as_echo "PATH: $as_dir"
2192 # Keep a trace of the command line.
2193 # Strip out --no-create and --no-recursion so they do not pile up.
2194 # Strip out --silent because we don't want to record it for future runs.
2195 # Also quote any args containing shell meta-characters.
2196 # Make two passes to allow for proper duplicate-argument suppression.
2200 ac_must_keep_next=false
2206 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2208 | -silent | --silent | --silen | --sile | --sil)
2211 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2214 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2216 as_fn_append ac_configure_args1 " '$ac_arg'"
2217 if test $ac_must_keep_next = true; then
2218 ac_must_keep_next=false # Got value, back to normal.
2221 *=* | --config-cache | -C | -disable-* | --disable-* \
2222 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2223 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2224 | -with-* | --with-* | -without-* | --without-* | --x)
2225 case "$ac_configure_args0 " in
2226 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2229 -* ) ac_must_keep_next=true ;;
2232 as_fn_append ac_configure_args " '$ac_arg'"
2237 { ac_configure_args0=; unset ac_configure_args0;}
2238 { ac_configure_args1=; unset ac_configure_args1;}
2240 # When interrupted or exit'd, cleanup temporary files, and complete
2241 # config.log. We remove comments because anyway the quotes in there
2242 # would cause problems or look ugly.
2243 # WARNING: Use '\'' to represent an apostrophe within the trap.
2244 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2245 trap 'exit_status=$?
2246 # Save into config.log some information that might help in debugging.
2250 $as_echo "## ---------------- ##
2251 ## Cache variables. ##
2252 ## ---------------- ##"
2254 # The following way of writing the cache mishandles newlines in values,
2256 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2257 eval ac_val=\$$ac_var
2261 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2262 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2265 _ | IFS | as_nl) ;; #(
2266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2267 *) { eval $ac_var=; unset $ac_var;} ;;
2272 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2273 *${as_nl}ac_space=\ *)
2275 "s/'\''/'\''\\\\'\'''\''/g;
2276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2286 $as_echo "## ----------------- ##
2287 ## Output variables. ##
2288 ## ----------------- ##"
2290 for ac_var in $ac_subst_vars
2292 eval ac_val=\$$ac_var
2294 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296 $as_echo "$ac_var='\''$ac_val'\''"
2300 if test -n "$ac_subst_files"; then
2301 $as_echo "## ------------------- ##
2302 ## File substitutions. ##
2303 ## ------------------- ##"
2305 for ac_var in $ac_subst_files
2307 eval ac_val=\$$ac_var
2309 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2311 $as_echo "$ac_var='\''$ac_val'\''"
2316 if test -s confdefs.h; then
2317 $as_echo "## ----------- ##
2324 test "$ac_signal" != 0 &&
2325 $as_echo "$as_me: caught signal $ac_signal"
2326 $as_echo "$as_me: exit $exit_status"
2328 rm -f core *.core core.conftest.* &&
2329 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2332 for ac_signal in 1 2 13 15; do
2333 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2338 rm -f -r conftest* confdefs.h
2340 $as_echo "/* confdefs.h */" > confdefs.h
2342 # Predefined preprocessor variables.
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_NAME "$PACKAGE_NAME"
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_STRING "$PACKAGE_STRING"
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_URL "$PACKAGE_URL"
2369 # Let the site file select an alternate cache file if it wants to.
2370 # Prefer an explicitly selected file to automatically selected ones.
2373 if test -n "$CONFIG_SITE"; then
2374 # We do not want a PATH search for config.site.
2375 case $CONFIG_SITE in #((
2376 -*) ac_site_file1=./$CONFIG_SITE;;
2377 */*) ac_site_file1=$CONFIG_SITE;;
2378 *) ac_site_file1=./$CONFIG_SITE;;
2380 elif test "x$prefix" != xNONE; then
2381 ac_site_file1=$prefix/share/config.site
2382 ac_site_file2=$prefix/etc/config.site
2384 ac_site_file1=$ac_default_prefix/share/config.site
2385 ac_site_file2=$ac_default_prefix/etc/config.site
2387 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2389 test "x$ac_site_file" = xNONE && continue
2390 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2392 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2393 sed 's/^/| /' "$ac_site_file" >&5
2395 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397 as_fn_error $? "failed to load site script $ac_site_file
2398 See \`config.log' for more details" "$LINENO" 5; }
2402 if test -r "$cache_file"; then
2403 # Some versions of bash will fail to source /dev/null (special files
2404 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2405 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2407 $as_echo "$as_me: loading cache $cache_file" >&6;}
2409 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2410 *) . "./$cache_file";;
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2415 $as_echo "$as_me: creating cache $cache_file" >&6;}
2419 # Check that the precious variables saved in the cache have kept the same
2421 ac_cache_corrupted=false
2422 for ac_var in $ac_precious_vars; do
2423 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424 eval ac_new_set=\$ac_env_${ac_var}_set
2425 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426 eval ac_new_val=\$ac_env_${ac_var}_value
2427 case $ac_old_set,$ac_new_set in
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2431 ac_cache_corrupted=: ;;
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2435 ac_cache_corrupted=: ;;
2438 if test "x$ac_old_val" != "x$ac_new_val"; then
2439 # differences in whitespace do not lead to failure.
2440 ac_old_val_w=`echo x $ac_old_val`
2441 ac_new_val_w=`echo x $ac_new_val`
2442 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445 ac_cache_corrupted=:
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449 eval $ac_var=\$ac_old_val
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2452 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2454 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2457 # Pass precious variables to config.status.
2458 if test "$ac_new_set" = set; then
2460 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2461 *) ac_arg=$ac_var=$ac_new_val ;;
2463 case " $ac_configure_args " in
2464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2465 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2469 if $ac_cache_corrupted; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2474 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2476 ## -------------------- ##
2477 ## Main body of script. ##
2478 ## -------------------- ##
2481 ac_cpp='$CPP $CPPFLAGS'
2482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490 uversion=`uname -r | sed -e '1,$s/^[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/'`
2509 ac_config_headers="$ac_config_headers config.h"
2514 #if test -z "$CUPS_REVISION" -a -d .svn; then
2515 # CUPS_REVISION="-r`svnversion . | awk -F: '{print $NF}' | sed -e '1,$s/[[a-zA-Z]]*//g'`"
2517 CUPS_BUILD="cups-$CUPS_VERSION"
2520 # Check whether --with-cups_build was given.
2521 if test "${with_cups_build+set}" = set; then :
2522 withval=$with_cups_build; CUPS_BUILD="$withval"
2529 cat >>confdefs.h <<_ACEOF
2530 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2533 cat >>confdefs.h <<_ACEOF
2534 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2538 CFLAGS="${CFLAGS:=}"
2539 CPPFLAGS="${CPPFLAGS:=}"
2540 CXXFLAGS="${CXXFLAGS:=}"
2541 LDFLAGS="${LDFLAGS:=}"
2543 for ac_prog in gawk mawk nawk awk
2545 # Extract the first word of "$ac_prog", so it can be a program name with args.
2546 set dummy $ac_prog; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if ${ac_cv_prog_AWK+:} false; then :
2550 $as_echo_n "(cached) " >&6
2552 if test -n "$AWK"; then
2553 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2562 ac_cv_prog_AWK="$ac_prog"
2563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 if test -n "$AWK"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2575 $as_echo "$AWK" >&6; }
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2582 test -n "$AWK" && break
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590 if test -n "$ac_tool_prefix"; then
2591 for ac_prog in clang cc gcc
2593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2596 $as_echo_n "checking for $ac_word... " >&6; }
2597 if ${ac_cv_prog_CC+:} false; then :
2598 $as_echo_n "(cached) " >&6
2600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 if test -n "$CC"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2623 $as_echo "$CC" >&6; }
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626 $as_echo "no" >&6; }
2630 test -n "$CC" && break
2633 if test -z "$CC"; then
2635 for ac_prog in clang cc gcc
2637 # Extract the first word of "$ac_prog", so it can be a program name with args.
2638 set dummy $ac_prog; ac_word=$2
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2642 $as_echo_n "(cached) " >&6
2644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_ac_ct_CC="$ac_prog"
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665 if test -n "$ac_ct_CC"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2667 $as_echo "$ac_ct_CC" >&6; }
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2674 test -n "$ac_ct_CC" && break
2677 if test "x$ac_ct_CC" = x; then
2680 case $cross_compiling:$ac_tool_warned in
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2684 ac_tool_warned=yes ;;
2691 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2693 as_fn_error $? "no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details" "$LINENO" 5; }
2696 # Provide some information about the compiler.
2697 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2700 for ac_option in --version -v -V -qversion; do
2701 { { ac_try="$ac_compiler $ac_option >&5"
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2707 $as_echo "$ac_try_echo"; } >&5
2708 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2710 if test -s conftest.err; then
2712 ... rest of stderr output deleted ...
2713 10q' conftest.err >conftest.er1
2714 cat conftest.er1 >&5
2716 rm -f conftest.er1 conftest.err
2717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718 test $ac_status = 0; }
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h. */
2732 ac_clean_files_save=$ac_clean_files
2733 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2734 # Try to create an executable without -o first, disregard a.out.
2735 # It will help us diagnose broken compilers, and finding out an intuition
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2738 $as_echo_n "checking whether the C compiler works... " >&6; }
2739 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2741 # The possible output files:
2742 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2745 for ac_file in $ac_files
2748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2749 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2754 if { { ac_try="$ac_link_default"
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2760 $as_echo "$ac_try_echo"; } >&5
2761 (eval "$ac_link_default") 2>&5
2763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2764 test $ac_status = 0; }; then :
2765 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2766 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2767 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2768 # so that the user can short-circuit this test for compilers unknown to
2770 for ac_file in $ac_files ''
2772 test -f "$ac_file" || continue
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2777 # We found the default executable, but exeext='' is most
2781 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2783 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2785 # We set ac_cv_exeext here because the later test for it is not
2786 # safe: cross compilers may not add the suffix if given an `-o'
2787 # argument, so we may need to know it at that point already.
2788 # Even if this section looks crufty: it has the advantage of
2795 test "$ac_cv_exeext" = no && ac_cv_exeext=
2800 if test -z "$ac_file"; then :
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 $as_echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808 as_fn_error 77 "C compiler cannot create executables
2809 See \`config.log' for more details" "$LINENO" 5; }
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812 $as_echo "yes" >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2815 $as_echo_n "checking for C compiler default output file name... " >&6; }
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2817 $as_echo "$ac_file" >&6; }
2818 ac_exeext=$ac_cv_exeext
2820 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2821 ac_clean_files=$ac_clean_files_save
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2823 $as_echo_n "checking for suffix of executables... " >&6; }
2824 if { { ac_try="$ac_link"
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2830 $as_echo "$ac_try_echo"; } >&5
2831 (eval "$ac_link") 2>&5
2833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2834 test $ac_status = 0; }; then :
2835 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2836 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2837 # work properly (i.e., refer to `conftest.exe'), while it won't with
2839 for ac_file in conftest.exe conftest conftest.*; do
2840 test -f "$ac_file" || continue
2842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2843 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2852 See \`config.log' for more details" "$LINENO" 5; }
2854 rm -f conftest conftest$ac_cv_exeext
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2856 $as_echo "$ac_cv_exeext" >&6; }
2858 rm -f conftest.$ac_ext
2859 EXEEXT=$ac_cv_exeext
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2867 FILE *f = fopen ("conftest.out", "w");
2868 return ferror (f) || fclose (f) != 0;
2874 ac_clean_files="$ac_clean_files conftest.out"
2875 # Check that the compiler produces executables we can run. If not, either
2876 # the compiler is broken, or we cross compile.
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2878 $as_echo_n "checking whether we are cross compiling... " >&6; }
2879 if test "$cross_compiling" != yes; then
2880 { { ac_try="$ac_link"
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2886 $as_echo "$ac_try_echo"; } >&5
2887 (eval "$ac_link") 2>&5
2889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2890 test $ac_status = 0; }
2891 if { ac_try='./conftest$ac_cv_exeext'
2892 { { case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2897 $as_echo "$ac_try_echo"; } >&5
2898 (eval "$ac_try") 2>&5
2900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901 test $ac_status = 0; }; }; then
2904 if test "$cross_compiling" = maybe; then
2907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 as_fn_error $? "cannot run C compiled programs.
2910 If you meant to cross compile, use \`--host'.
2911 See \`config.log' for more details" "$LINENO" 5; }
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2916 $as_echo "$cross_compiling" >&6; }
2918 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2919 ac_clean_files=$ac_clean_files_save
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2921 $as_echo_n "checking for suffix of object files... " >&6; }
2922 if ${ac_cv_objext+:} false; then :
2923 $as_echo_n "(cached) " >&6
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2936 rm -f conftest.o conftest.obj
2937 if { { ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944 (eval "$ac_compile") 2>&5
2946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947 test $ac_status = 0; }; then :
2948 for ac_file in conftest.o conftest.obj conftest.*; do
2949 test -f "$ac_file" || continue;
2951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2952 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2957 $as_echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2962 as_fn_error $? "cannot compute suffix of object files: cannot compile
2963 See \`config.log' for more details" "$LINENO" 5; }
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2968 $as_echo "$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2972 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2973 if ${ac_cv_c_compiler_gnu+:} false; then :
2974 $as_echo_n "(cached) " >&6
2976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2990 if ac_fn_c_try_compile "$LINENO"; then :
2995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3000 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3001 if test $ac_compiler_gnu = yes; then
3006 ac_test_CFLAGS=${CFLAGS+set}
3007 ac_save_CFLAGS=$CFLAGS
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3009 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3010 if ${ac_cv_prog_cc_g+:} false; then :
3011 $as_echo_n "(cached) " >&6
3013 ac_save_c_werror_flag=$ac_c_werror_flag
3014 ac_c_werror_flag=yes
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018 /* end confdefs.h. */
3028 if ac_fn_c_try_compile "$LINENO"; then :
3032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033 /* end confdefs.h. */
3043 if ac_fn_c_try_compile "$LINENO"; then :
3046 ac_c_werror_flag=$ac_save_c_werror_flag
3048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h. */
3059 if ac_fn_c_try_compile "$LINENO"; then :
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_c_werror_flag=$ac_save_c_werror_flag
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3070 $as_echo "$ac_cv_prog_cc_g" >&6; }
3071 if test "$ac_test_CFLAGS" = set; then
3072 CFLAGS=$ac_save_CFLAGS
3073 elif test $ac_cv_prog_cc_g = yes; then
3074 if test "$GCC" = yes; then
3080 if test "$GCC" = yes; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3087 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3088 if ${ac_cv_prog_cc_c89+:} false; then :
3089 $as_echo_n "(cached) " >&6
3091 ac_cv_prog_cc_c89=no
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3097 #include <sys/types.h>
3098 #include <sys/stat.h>
3099 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3100 struct buf { int x; };
3101 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3102 static char *e (p, i)
3108 static char *f (char * (*g) (char **, int), char **p, ...)
3113 s = g (p, va_arg (v,int));
3118 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3119 function prototypes and stuff, but not '\xHH' hex character constants.
3120 These don't provoke an error unfortunately, instead are silently treated
3121 as 'x'. The following induces an error, until -std is added to get
3122 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3123 array size at least. It's necessary to write '\x00'==0 to get something
3124 that's true only with -std. */
3125 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3127 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3128 inside strings and character constants. */
3130 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3132 int test (int i, double x);
3133 struct s1 {int (*f) (int a);};
3134 struct s2 {int (*f) (double a);};
3135 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3141 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3146 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3147 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3149 CC="$ac_save_CC $ac_arg"
3150 if ac_fn_c_try_compile "$LINENO"; then :
3151 ac_cv_prog_cc_c89=$ac_arg
3153 rm -f core conftest.err conftest.$ac_objext
3154 test "x$ac_cv_prog_cc_c89" != "xno" && break
3156 rm -f conftest.$ac_ext
3161 case "x$ac_cv_prog_cc_c89" in
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3164 $as_echo "none needed" >&6; } ;;
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3167 $as_echo "unsupported" >&6; } ;;
3169 CC="$CC $ac_cv_prog_cc_c89"
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3171 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3173 if test "x$ac_cv_prog_cc_c89" != xno; then :
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 ac_cpp='$CPP $CPPFLAGS'
3185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3189 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3190 # On Suns, sometimes $CPP names a directory.
3191 if test -n "$CPP" && test -d "$CPP"; then
3194 if test -z "$CPP"; then
3195 if ${ac_cv_prog_CPP+:} false; then :
3196 $as_echo_n "(cached) " >&6
3198 # Double quotes because CPP needs to be expanded
3199 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3202 for ac_c_preproc_warn_flag in '' yes
3204 # Use a header file that comes with gcc, so configuring glibc
3205 # with a fresh cross-compiler works.
3206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3207 # <limits.h> exists even on freestanding compilers.
3208 # On the NeXT, cc -E runs the code through the compiler's parser,
3209 # not just through cpp. "Syntax error" is here to catch this case.
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3213 # include <limits.h>
3215 # include <assert.h>
3219 if ac_fn_c_try_cpp "$LINENO"; then :
3222 # Broken: fails on valid input.
3225 rm -f conftest.err conftest.i conftest.$ac_ext
3227 # OK, works on sane cases. Now check whether nonexistent headers
3228 # can be detected and how.
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3231 #include <ac_nonexistent.h>
3233 if ac_fn_c_try_cpp "$LINENO"; then :
3234 # Broken: success on invalid input.
3237 # Passes both tests.
3241 rm -f conftest.err conftest.i conftest.$ac_ext
3244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3245 rm -f conftest.i conftest.err conftest.$ac_ext
3246 if $ac_preproc_ok; then :
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3259 $as_echo "$CPP" >&6; }
3261 for ac_c_preproc_warn_flag in '' yes
3263 # Use a header file that comes with gcc, so configuring glibc
3264 # with a fresh cross-compiler works.
3265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3266 # <limits.h> exists even on freestanding compilers.
3267 # On the NeXT, cc -E runs the code through the compiler's parser,
3268 # not just through cpp. "Syntax error" is here to catch this case.
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3272 # include <limits.h>
3274 # include <assert.h>
3278 if ac_fn_c_try_cpp "$LINENO"; then :
3281 # Broken: fails on valid input.
3284 rm -f conftest.err conftest.i conftest.$ac_ext
3286 # OK, works on sane cases. Now check whether nonexistent headers
3287 # can be detected and how.
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3290 #include <ac_nonexistent.h>
3292 if ac_fn_c_try_cpp "$LINENO"; then :
3293 # Broken: success on invalid input.
3296 # Passes both tests.
3300 rm -f conftest.err conftest.i conftest.$ac_ext
3303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3304 rm -f conftest.i conftest.err conftest.$ac_ext
3305 if $ac_preproc_ok; then :
3308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3311 See \`config.log' for more details" "$LINENO" 5; }
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321 ac_cpp='$CXXCPP $CPPFLAGS'
3322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3325 if test -z "$CXX"; then
3326 if test -n "$CCC"; then
3329 if test -n "$ac_tool_prefix"; then
3330 for ac_prog in clang++ c++ g++
3332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_CXX+:} false; then :
3337 $as_echo_n "(cached) " >&6
3339 if test -n "$CXX"; then
3340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3349 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 if test -n "$CXX"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3362 $as_echo "$CXX" >&6; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3369 test -n "$CXX" && break
3372 if test -z "$CXX"; then
3374 for ac_prog in clang++ c++ g++
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3381 $as_echo_n "(cached) " >&6
3383 if test -n "$ac_ct_CXX"; then
3384 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_ac_ct_CXX="$ac_prog"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3404 if test -n "$ac_ct_CXX"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3406 $as_echo "$ac_ct_CXX" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3413 test -n "$ac_ct_CXX" && break
3416 if test "x$ac_ct_CXX" = x; then
3419 case $cross_compiling:$ac_tool_warned in
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3423 ac_tool_warned=yes ;;
3431 # Provide some information about the compiler.
3432 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3435 for ac_option in --version -v -V -qversion; do
3436 { { ac_try="$ac_compiler $ac_option >&5"
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3445 if test -s conftest.err; then
3447 ... rest of stderr output deleted ...
3448 10q' conftest.err >conftest.er1
3449 cat conftest.er1 >&5
3451 rm -f conftest.er1 conftest.err
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3457 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3458 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3459 $as_echo_n "(cached) " >&6
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3475 if ac_fn_cxx_try_compile "$LINENO"; then :
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3485 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3486 if test $ac_compiler_gnu = yes; then
3491 ac_test_CXXFLAGS=${CXXFLAGS+set}
3492 ac_save_CXXFLAGS=$CXXFLAGS
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3494 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3495 if ${ac_cv_prog_cxx_g+:} false; then :
3496 $as_echo_n "(cached) " >&6
3498 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3499 ac_cxx_werror_flag=yes
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3513 if ac_fn_cxx_try_compile "$LINENO"; then :
3514 ac_cv_prog_cxx_g=yes
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3528 if ac_fn_cxx_try_compile "$LINENO"; then :
3531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3544 if ac_fn_cxx_try_compile "$LINENO"; then :
3545 ac_cv_prog_cxx_g=yes
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3555 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3556 if test "$ac_test_CXXFLAGS" = set; then
3557 CXXFLAGS=$ac_save_CXXFLAGS
3558 elif test $ac_cv_prog_cxx_g = yes; then
3559 if test "$GXX" = yes; then
3565 if test "$GXX" = yes; then
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577 if test -n "$ac_tool_prefix"; then
3578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3579 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if ${ac_cv_prog_RANLIB+:} false; then :
3583 $as_echo_n "(cached) " >&6
3585 if test -n "$RANLIB"; then
3586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3595 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 RANLIB=$ac_cv_prog_RANLIB
3606 if test -n "$RANLIB"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3608 $as_echo "$RANLIB" >&6; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3616 if test -z "$ac_cv_prog_RANLIB"; then
3617 ac_ct_RANLIB=$RANLIB
3618 # Extract the first word of "ranlib", so it can be a program name with args.
3619 set dummy ranlib; ac_word=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3623 $as_echo_n "(cached) " >&6
3625 if test -n "$ac_ct_RANLIB"; then
3626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3635 ac_cv_prog_ac_ct_RANLIB="ranlib"
3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3646 if test -n "$ac_ct_RANLIB"; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3648 $as_echo "$ac_ct_RANLIB" >&6; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3654 if test "x$ac_ct_RANLIB" = x; then
3657 case $cross_compiling:$ac_tool_warned in
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3661 ac_tool_warned=yes ;;
3663 RANLIB=$ac_ct_RANLIB
3666 RANLIB="$ac_cv_prog_RANLIB"
3669 # Extract the first word of "ar", so it can be a program name with args.
3670 set dummy ar; ac_word=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if ${ac_cv_path_AR+:} false; then :
3674 $as_echo_n "(cached) " >&6
3678 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 test -z "$as_dir" && as_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3688 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 if test -n "$AR"; then
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3702 $as_echo "$AR" >&6; }
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3709 # Extract the first word of "chmod", so it can be a program name with args.
3710 set dummy chmod; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if ${ac_cv_path_CHMOD+:} false; then :
3714 $as_echo_n "(cached) " >&6
3718 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 test -z "$as_dir" && as_dir=.
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 CHMOD=$ac_cv_path_CHMOD
3740 if test -n "$CHMOD"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3742 $as_echo "$CHMOD" >&6; }
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3749 # Extract the first word of "gzip", so it can be a program name with args.
3750 set dummy gzip; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_path_GZIP+:} false; then :
3754 $as_echo_n "(cached) " >&6
3758 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3768 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 GZIP=$ac_cv_path_GZIP
3780 if test -n "$GZIP"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3782 $as_echo "$GZIP" >&6; }
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3789 # Extract the first word of "ld", so it can be a program name with args.
3790 set dummy ld; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_path_LD+:} false; then :
3794 $as_echo_n "(cached) " >&6
3798 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3808 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 if test -n "$LD"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3822 $as_echo "$LD" >&6; }
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3829 # Extract the first word of "ln", so it can be a program name with args.
3830 set dummy ln; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if ${ac_cv_path_LN+:} false; then :
3834 $as_echo_n "(cached) " >&6
3838 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 if test -n "$LN"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
3862 $as_echo "$LN" >&6; }
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3869 # Extract the first word of "mv", so it can be a program name with args.
3870 set dummy mv; ac_word=$2
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if ${ac_cv_path_MV+:} false; then :
3874 $as_echo_n "(cached) " >&6
3878 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3888 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 if test -n "$MV"; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
3902 $as_echo "$MV" >&6; }
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3909 # Extract the first word of "rm", so it can be a program name with args.
3910 set dummy rm; ac_word=$2
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if ${ac_cv_path_RM+:} false; then :
3914 $as_echo_n "(cached) " >&6
3918 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 if test -n "$RM"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
3942 $as_echo "$RM" >&6; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3949 # Extract the first word of "rmdir", so it can be a program name with args.
3950 set dummy rmdir; ac_word=$2
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 $as_echo_n "checking for $ac_word... " >&6; }
3953 if ${ac_cv_path_RMDIR+:} false; then :
3954 $as_echo_n "(cached) " >&6
3958 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 RMDIR=$ac_cv_path_RMDIR
3980 if test -n "$RMDIR"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
3982 $as_echo "$RMDIR" >&6; }
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3989 # Extract the first word of "sed", so it can be a program name with args.
3990 set dummy sed; ac_word=$2
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if ${ac_cv_path_SED+:} false; then :
3994 $as_echo_n "(cached) " >&6
3998 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 if test -n "$SED"; then
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4022 $as_echo "$SED" >&6; }
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 $as_echo "no" >&6; }
4029 # Extract the first word of "xdg-open", so it can be a program name with args.
4030 set dummy xdg-open; ac_word=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if ${ac_cv_path_XDGOPEN+:} false; then :
4034 $as_echo_n "(cached) " >&6
4038 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 XDGOPEN=$ac_cv_path_XDGOPEN
4060 if test -n "$XDGOPEN"; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4062 $as_echo "$XDGOPEN" >&6; }
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4069 if test "x$XDGOPEN" = x; then
4070 CUPS_HTMLVIEW="htmlview"
4072 CUPS_HTMLVIEW="$XDGOPEN"
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4077 $as_echo_n "checking for install-sh script... " >&6; }
4078 INSTALL="`pwd`/install-sh"
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4081 $as_echo "using $INSTALL" >&6; }
4083 if test "x$AR" = x; then
4084 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4086 if test "x$CC" = x; then
4087 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4091 # Check whether --enable-static was given.
4092 if test "${enable_static+set}" = set; then :
4093 enableval=$enable_static;
4097 if test x$enable_static = xyes; then
4098 echo Installing static libraries...
4099 INSTALLSTATIC="installstatic"
4104 # Extract the first word of "pkg-config", so it can be a program name with args.
4105 set dummy pkg-config; ac_word=$2
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107 $as_echo_n "checking for $ac_word... " >&6; }
4108 if ${ac_cv_path_PKGCONFIG+:} false; then :
4109 $as_echo_n "(cached) " >&6
4113 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4123 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 PKGCONFIG=$ac_cv_path_PKGCONFIG
4135 if test -n "$PKGCONFIG"; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4137 $as_echo "$PKGCONFIG" >&6; }
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 $as_echo "no" >&6; }
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4147 $as_echo_n "checking for library containing abs... " >&6; }
4148 if ${ac_cv_search_abs+:} false; then :
4149 $as_echo_n "(cached) " >&6
4151 ac_func_search_save_LIBS=$LIBS
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4155 /* Override any GCC internal prototype to avoid an error.
4156 Use char because int might match the return type of a GCC
4157 builtin and then its argument prototype would still apply. */
4170 for ac_lib in '' m; do
4171 if test -z "$ac_lib"; then
4172 ac_res="none required"
4175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4177 if ac_fn_c_try_link "$LINENO"; then :
4178 ac_cv_search_abs=$ac_res
4180 rm -f core conftest.err conftest.$ac_objext \
4182 if ${ac_cv_search_abs+:} false; then :
4186 if ${ac_cv_search_abs+:} false; then :
4192 LIBS=$ac_func_search_save_LIBS
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4195 $as_echo "$ac_cv_search_abs" >&6; }
4196 ac_res=$ac_cv_search_abs
4197 if test "$ac_res" != no; then :
4198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4199 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4204 $as_echo_n "checking for library containing crypt... " >&6; }
4205 if ${ac_cv_search_crypt+:} false; then :
4206 $as_echo_n "(cached) " >&6
4208 ac_func_search_save_LIBS=$LIBS
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4212 /* Override any GCC internal prototype to avoid an error.
4213 Use char because int might match the return type of a GCC
4214 builtin and then its argument prototype would still apply. */
4227 for ac_lib in '' crypt; do
4228 if test -z "$ac_lib"; then
4229 ac_res="none required"
4232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4234 if ac_fn_c_try_link "$LINENO"; then :
4235 ac_cv_search_crypt=$ac_res
4237 rm -f core conftest.err conftest.$ac_objext \
4239 if ${ac_cv_search_crypt+:} false; then :
4243 if ${ac_cv_search_crypt+:} false; then :
4246 ac_cv_search_crypt=no
4249 LIBS=$ac_func_search_save_LIBS
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4252 $as_echo "$ac_cv_search_crypt" >&6; }
4253 ac_res=$ac_cv_search_crypt
4254 if test "$ac_res" != no; then :
4255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4260 $as_echo_n "checking for library containing fmod... " >&6; }
4261 if ${ac_cv_search_fmod+:} false; then :
4262 $as_echo_n "(cached) " >&6
4264 ac_func_search_save_LIBS=$LIBS
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4268 /* Override any GCC internal prototype to avoid an error.
4269 Use char because int might match the return type of a GCC
4270 builtin and then its argument prototype would still apply. */
4283 for ac_lib in '' m; do
4284 if test -z "$ac_lib"; then
4285 ac_res="none required"
4288 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4290 if ac_fn_c_try_link "$LINENO"; then :
4291 ac_cv_search_fmod=$ac_res
4293 rm -f core conftest.err conftest.$ac_objext \
4295 if ${ac_cv_search_fmod+:} false; then :
4299 if ${ac_cv_search_fmod+:} false; then :
4302 ac_cv_search_fmod=no
4305 LIBS=$ac_func_search_save_LIBS
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4308 $as_echo "$ac_cv_search_fmod" >&6; }
4309 ac_res=$ac_cv_search_fmod
4310 if test "$ac_res" != no; then :
4311 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4316 $as_echo_n "checking for library containing getspent... " >&6; }
4317 if ${ac_cv_search_getspent+:} false; then :
4318 $as_echo_n "(cached) " >&6
4320 ac_func_search_save_LIBS=$LIBS
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4324 /* Override any GCC internal prototype to avoid an error.
4325 Use char because int might match the return type of a GCC
4326 builtin and then its argument prototype would still apply. */
4339 for ac_lib in '' sec gen; do
4340 if test -z "$ac_lib"; then
4341 ac_res="none required"
4344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4346 if ac_fn_c_try_link "$LINENO"; then :
4347 ac_cv_search_getspent=$ac_res
4349 rm -f core conftest.err conftest.$ac_objext \
4351 if ${ac_cv_search_getspent+:} false; then :
4355 if ${ac_cv_search_getspent+:} false; then :
4358 ac_cv_search_getspent=no
4361 LIBS=$ac_func_search_save_LIBS
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4364 $as_echo "$ac_cv_search_getspent" >&6; }
4365 ac_res=$ac_cv_search_getspent
4366 if test "$ac_res" != no; then :
4367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4373 # Check whether --enable-mallinfo was given.
4374 if test "${enable_mallinfo+set}" = set; then :
4375 enableval=$enable_mallinfo;
4379 if test x$enable_mallinfo = xyes; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4383 $as_echo_n "checking for library containing mallinfo... " >&6; }
4384 if ${ac_cv_search_mallinfo+:} false; then :
4385 $as_echo_n "(cached) " >&6
4387 ac_func_search_save_LIBS=$LIBS
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4391 /* Override any GCC internal prototype to avoid an error.
4392 Use char because int might match the return type of a GCC
4393 builtin and then its argument prototype would still apply. */
4406 for ac_lib in '' malloc; do
4407 if test -z "$ac_lib"; then
4408 ac_res="none required"
4411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4413 if ac_fn_c_try_link "$LINENO"; then :
4414 ac_cv_search_mallinfo=$ac_res
4416 rm -f core conftest.err conftest.$ac_objext \
4418 if ${ac_cv_search_mallinfo+:} false; then :
4422 if ${ac_cv_search_mallinfo+:} false; then :
4425 ac_cv_search_mallinfo=no
4428 LIBS=$ac_func_search_save_LIBS
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4431 $as_echo "$ac_cv_search_mallinfo" >&6; }
4432 ac_res=$ac_cv_search_mallinfo
4433 if test "$ac_res" != no; then :
4434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4435 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4445 # Check whether --enable-libpaper was given.
4446 if test "${enable_libpaper+set}" = set; then :
4447 enableval=$enable_libpaper;
4451 if test x$enable_libpaper = xyes; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4453 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4454 if ${ac_cv_lib_paper_systempapername+:} false; then :
4455 $as_echo_n "(cached) " >&6
4457 ac_check_lib_save_LIBS=$LIBS
4458 LIBS="-lpaper $LIBS"
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4462 /* Override any GCC internal prototype to avoid an error.
4463 Use char because int might match the return type of a GCC
4464 builtin and then its argument prototype would still apply. */
4468 char systempapername ();
4472 return systempapername ();
4477 if ac_fn_c_try_link "$LINENO"; then :
4478 ac_cv_lib_paper_systempapername=yes
4480 ac_cv_lib_paper_systempapername=no
4482 rm -f core conftest.err conftest.$ac_objext \
4483 conftest$ac_exeext conftest.$ac_ext
4484 LIBS=$ac_check_lib_save_LIBS
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4487 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4488 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4489 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4503 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4504 if ${ac_cv_path_GREP+:} false; then :
4505 $as_echo_n "(cached) " >&6
4507 if test -z "$GREP"; then
4508 ac_path_GREP_found=false
4509 # Loop through the user's path and test for each of PROGNAME-LIST
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4514 test -z "$as_dir" && as_dir=.
4515 for ac_prog in grep ggrep; do
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4518 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4519 # Check for GNU ac_path_GREP and select it if it is found.
4520 # Check for GNU $ac_path_GREP
4521 case `"$ac_path_GREP" --version 2>&1` in
4523 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4526 $as_echo_n 0123456789 >"conftest.in"
4529 cat "conftest.in" "conftest.in" >"conftest.tmp"
4530 mv "conftest.tmp" "conftest.in"
4531 cp "conftest.in" "conftest.nl"
4532 $as_echo 'GREP' >> "conftest.nl"
4533 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4535 as_fn_arith $ac_count + 1 && ac_count=$as_val
4536 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4537 # Best one so far, save it but keep looking for a better one
4538 ac_cv_path_GREP="$ac_path_GREP"
4539 ac_path_GREP_max=$ac_count
4541 # 10*(2^10) chars as input seems more than enough
4542 test $ac_count -gt 10 && break
4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4547 $ac_path_GREP_found && break 3
4552 if test -z "$ac_cv_path_GREP"; then
4553 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4556 ac_cv_path_GREP=$GREP
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4561 $as_echo "$ac_cv_path_GREP" >&6; }
4562 GREP="$ac_cv_path_GREP"
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4566 $as_echo_n "checking for egrep... " >&6; }
4567 if ${ac_cv_path_EGREP+:} false; then :
4568 $as_echo_n "(cached) " >&6
4570 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4571 then ac_cv_path_EGREP="$GREP -E"
4573 if test -z "$EGREP"; then
4574 ac_path_EGREP_found=false
4575 # Loop through the user's path and test for each of PROGNAME-LIST
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4580 test -z "$as_dir" && as_dir=.
4581 for ac_prog in egrep; do
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4584 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4585 # Check for GNU ac_path_EGREP and select it if it is found.
4586 # Check for GNU $ac_path_EGREP
4587 case `"$ac_path_EGREP" --version 2>&1` in
4589 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4592 $as_echo_n 0123456789 >"conftest.in"
4595 cat "conftest.in" "conftest.in" >"conftest.tmp"
4596 mv "conftest.tmp" "conftest.in"
4597 cp "conftest.in" "conftest.nl"
4598 $as_echo 'EGREP' >> "conftest.nl"
4599 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601 as_fn_arith $ac_count + 1 && ac_count=$as_val
4602 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4603 # Best one so far, save it but keep looking for a better one
4604 ac_cv_path_EGREP="$ac_path_EGREP"
4605 ac_path_EGREP_max=$ac_count
4607 # 10*(2^10) chars as input seems more than enough
4608 test $ac_count -gt 10 && break
4610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4613 $ac_path_EGREP_found && break 3
4618 if test -z "$ac_cv_path_EGREP"; then
4619 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4622 ac_cv_path_EGREP=$EGREP
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4628 $as_echo "$ac_cv_path_EGREP" >&6; }
4629 EGREP="$ac_cv_path_EGREP"
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4633 $as_echo_n "checking for ANSI C header files... " >&6; }
4634 if ${ac_cv_header_stdc+:} false; then :
4635 $as_echo_n "(cached) " >&6
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_header_stdc=yes
4655 ac_cv_header_stdc=no
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 if test $ac_cv_header_stdc = yes; then
4660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4667 $EGREP "memchr" >/dev/null 2>&1; then :
4670 ac_cv_header_stdc=no
4676 if test $ac_cv_header_stdc = yes; then
4677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4684 $EGREP "free" >/dev/null 2>&1; then :
4687 ac_cv_header_stdc=no
4693 if test $ac_cv_header_stdc = yes; then
4694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4695 if test "$cross_compiling" = yes; then :
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4702 #if ((' ' & 0x0FF) == 0x020)
4703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4706 # define ISLOWER(c) \
4707 (('a' <= (c) && (c) <= 'i') \
4708 || ('j' <= (c) && (c) <= 'r') \
4709 || ('s' <= (c) && (c) <= 'z'))
4710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4718 for (i = 0; i < 256; i++)
4719 if (XOR (islower (i), ISLOWER (i))
4720 || toupper (i) != TOUPPER (i))
4725 if ac_fn_c_try_run "$LINENO"; then :
4728 ac_cv_header_stdc=no
4730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4731 conftest.$ac_objext conftest.beam conftest.$ac_ext
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4737 $as_echo "$ac_cv_header_stdc" >&6; }
4738 if test $ac_cv_header_stdc = yes; then
4740 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4744 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4745 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4746 inttypes.h stdint.h unistd.h
4748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4749 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4751 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4752 cat >>confdefs.h <<_ACEOF
4753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4761 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4762 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4763 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
4768 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
4769 if test "x$ac_cv_header_crypt_h" = xyes; then :
4770 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
4775 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
4776 if test "x$ac_cv_header_langinfo_h" = xyes; then :
4777 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
4782 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4783 if test "x$ac_cv_header_malloc_h" = xyes; then :
4784 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
4789 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4790 if test "x$ac_cv_header_shadow_h" = xyes; then :
4791 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
4796 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4797 if test "x$ac_cv_header_stdint_h" = xyes; then :
4798 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
4803 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4804 if test "x$ac_cv_header_string_h" = xyes; then :
4805 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
4810 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
4811 if test "x$ac_cv_header_strings_h" = xyes; then :
4812 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
4817 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
4818 if test "x$ac_cv_header_bstring_h" = xyes; then :
4819 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
4824 ac_fn_c_check_header_mongrel "$LINENO" "usersec.h" "ac_cv_header_usersec_h" "$ac_includes_default"
4825 if test "x$ac_cv_header_usersec_h" = xyes; then :
4826 $as_echo "#define HAVE_USERSEC_H 1" >>confdefs.h
4831 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4832 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
4833 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
4838 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4839 if test "x$ac_cv_header_sys_param_h" = xyes; then :
4840 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
4845 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
4846 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
4847 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
4852 ac_fn_c_check_header_mongrel "$LINENO" "scsi/sg.h" "ac_cv_header_scsi_sg_h" "$ac_includes_default"
4853 if test "x$ac_cv_header_scsi_sg_h" = xyes; then :
4854 $as_echo "#define HAVE_SCSI_SG_H 1" >>confdefs.h
4860 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
4861 if test "x$ac_cv_header_iconv_h" = xyes; then :
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
4865 $as_echo_n "checking for library containing iconv_open... " >&6; }
4866 if ${ac_cv_search_iconv_open+:} false; then :
4867 $as_echo_n "(cached) " >&6
4869 ac_func_search_save_LIBS=$LIBS
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4873 /* Override any GCC internal prototype to avoid an error.
4874 Use char because int might match the return type of a GCC
4875 builtin and then its argument prototype would still apply. */
4883 return iconv_open ();
4888 for ac_lib in '' iconv; do
4889 if test -z "$ac_lib"; then
4890 ac_res="none required"
4893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4895 if ac_fn_c_try_link "$LINENO"; then :
4896 ac_cv_search_iconv_open=$ac_res
4898 rm -f core conftest.err conftest.$ac_objext \
4900 if ${ac_cv_search_iconv_open+:} false; then :
4904 if ${ac_cv_search_iconv_open+:} false; then :
4907 ac_cv_search_iconv_open=no
4910 LIBS=$ac_func_search_save_LIBS
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
4913 $as_echo "$ac_cv_search_iconv_open" >&6; }
4914 ac_res=$ac_cv_search_iconv_open
4915 if test "$ac_res" != no; then :
4916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4917 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
4919 SAVELIBS="$SAVELIBS $LIBS"
4928 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
4929 if test "x$ac_cv_header_mxml_h" = xyes; then :
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
4932 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
4933 if ${ac_cv_search_mmxlNewElement+:} false; then :
4934 $as_echo_n "(cached) " >&6
4936 ac_func_search_save_LIBS=$LIBS
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4940 /* Override any GCC internal prototype to avoid an error.
4941 Use char because int might match the return type of a GCC
4942 builtin and then its argument prototype would still apply. */
4946 char mmxlNewElement ();
4950 return mmxlNewElement ();
4955 for ac_lib in '' mxml; do
4956 if test -z "$ac_lib"; then
4957 ac_res="none required"
4960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4962 if ac_fn_c_try_link "$LINENO"; then :
4963 ac_cv_search_mmxlNewElement=$ac_res
4965 rm -f core conftest.err conftest.$ac_objext \
4967 if ${ac_cv_search_mmxlNewElement+:} false; then :
4971 if ${ac_cv_search_mmxlNewElement+:} false; then :
4974 ac_cv_search_mmxlNewElement=no
4977 LIBS=$ac_func_search_save_LIBS
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
4980 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
4981 ac_res=$ac_cv_search_mmxlNewElement
4982 if test "$ac_res" != no; then :
4983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4984 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
4995 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
4996 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
4997 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5002 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5003 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5004 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5009 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5010 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5011 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5016 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5017 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5018 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5023 for ac_func in statfs statvfs
5025 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5026 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5027 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5028 cat >>confdefs.h <<_ACEOF
5029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5036 for ac_func in strdup strlcat strlcpy
5038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5039 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5040 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5041 cat >>confdefs.h <<_ACEOF
5042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5048 if test "$uname" = "HP-UX" -a "$uversion" = "1020"; then
5049 echo Forcing snprintf emulation for HP-UX.
5051 for ac_func in snprintf vsnprintf
5053 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5054 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5055 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5056 cat >>confdefs.h <<_ACEOF
5057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5065 for ac_func in random lrand48 arc4random
5067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5068 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5069 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5070 cat >>confdefs.h <<_ACEOF
5071 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5078 for ac_func in geteuid
5080 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5081 if test "x$ac_cv_func_geteuid" = xyes; then :
5082 cat >>confdefs.h <<_ACEOF
5083 #define HAVE_GETEUID 1
5090 for ac_func in setpgid
5092 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5093 if test "x$ac_cv_func_setpgid" = xyes; then :
5094 cat >>confdefs.h <<_ACEOF
5095 #define HAVE_SETPGID 1
5102 for ac_func in vsyslog
5104 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5105 if test "x$ac_cv_func_vsyslog" = xyes; then :
5106 cat >>confdefs.h <<_ACEOF
5107 #define HAVE_VSYSLOG 1
5116 # Do not use sigset on Linux or GNU HURD
5119 # Use sigset on other platforms, if available
5120 for ac_func in sigset
5122 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5123 if test "x$ac_cv_func_sigset" = xyes; then :
5124 cat >>confdefs.h <<_ACEOF
5125 #define HAVE_SIGSET 1
5134 for ac_func in sigaction
5136 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5137 if test "x$ac_cv_func_sigaction" = xyes; then :
5138 cat >>confdefs.h <<_ACEOF
5139 #define HAVE_SIGACTION 1
5146 for ac_func in waitpid wait3
5148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5149 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5150 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5151 cat >>confdefs.h <<_ACEOF
5152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5160 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5168 int o = t.tm_gmtoff;
5173 if ac_fn_c_try_compile "$LINENO"; then :
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5175 $as_echo "yes" >&6; }
5176 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5185 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5188 #include <sys/stat.h>
5198 if ac_fn_c_try_compile "$LINENO"; then :
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5200 $as_echo "yes" >&6; }
5201 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 for ac_func in removefile
5211 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5212 if test "x$ac_cv_func_removefile" = xyes; then :
5213 cat >>confdefs.h <<_ACEOF
5214 #define HAVE_REMOVEFILE 1
5221 # Check whether --enable-libusb was given.
5222 if test "${enable_libusb+set}" = set; then :
5223 enableval=$enable_libusb;
5232 if test "x$PKGCONFIG" != x; then
5233 if test x$enable_libusb = xyes -o $uname != Darwin; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5235 $as_echo_n "checking for libusb-1.0... " >&6; }
5236 if $PKGCONFIG --exists libusb-1.0; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5238 $as_echo "yes" >&6; }
5239 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5241 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0`"
5242 LIBUSB="`$PKGCONFIG --libs libusb-1.0`"
5243 USBQUIRKS="\$(DATADIR)/usb"
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246 $as_echo "no" >&6; }
5249 elif test x$enable_libusb = xyes; then
5250 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5253 # Check whether --enable-tcp_wrappers was given.
5254 if test "${enable_tcp_wrappers+set}" = set; then :
5255 enableval=$enable_tcp_wrappers;
5262 if test x$enable_tcp_wrappers = xyes; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5264 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5265 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5266 $as_echo_n "(cached) " >&6
5268 ac_check_lib_save_LIBS=$LIBS
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5273 /* Override any GCC internal prototype to avoid an error.
5274 Use char because int might match the return type of a GCC
5275 builtin and then its argument prototype would still apply. */
5279 char hosts_access ();
5283 return hosts_access ();
5288 if ac_fn_c_try_link "$LINENO"; then :
5289 ac_cv_lib_wrap_hosts_access=yes
5291 ac_cv_lib_wrap_hosts_access=no
5293 rm -f core conftest.err conftest.$ac_objext \
5294 conftest$ac_exeext conftest.$ac_ext
5295 LIBS=$ac_check_lib_save_LIBS
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5298 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5299 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5301 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5302 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5303 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5315 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5316 if test "x$ac_cv_header_zlib_h" = xyes; then :
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5318 $as_echo_n "checking for gzgets in -lz... " >&6; }
5319 if ${ac_cv_lib_z_gzgets+:} false; then :
5320 $as_echo_n "(cached) " >&6
5322 ac_check_lib_save_LIBS=$LIBS
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5327 /* Override any GCC internal prototype to avoid an error.
5328 Use char because int might match the return type of a GCC
5329 builtin and then its argument prototype would still apply. */
5342 if ac_fn_c_try_link "$LINENO"; then :
5343 ac_cv_lib_z_gzgets=yes
5345 ac_cv_lib_z_gzgets=no
5347 rm -f core conftest.err conftest.$ac_objext \
5348 conftest$ac_exeext conftest.$ac_ext
5349 LIBS=$ac_check_lib_save_LIBS
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5352 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5353 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5354 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5358 if test "x$GZIP" != z; then
5387 # Check whether --enable-acl was given.
5388 if test "${enable_acl+set}" = set; then :
5389 enableval=$enable_acl;
5392 if test "x$enable_acl" != xno; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5394 $as_echo_n "checking for library containing acl_init... " >&6; }
5395 if ${ac_cv_search_acl_init+:} false; then :
5396 $as_echo_n "(cached) " >&6
5398 ac_func_search_save_LIBS=$LIBS
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5402 /* Override any GCC internal prototype to avoid an error.
5403 Use char because int might match the return type of a GCC
5404 builtin and then its argument prototype would still apply. */
5417 for ac_lib in '' acl; do
5418 if test -z "$ac_lib"; then
5419 ac_res="none required"
5422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5424 if ac_fn_c_try_link "$LINENO"; then :
5425 ac_cv_search_acl_init=$ac_res
5427 rm -f core conftest.err conftest.$ac_objext \
5429 if ${ac_cv_search_acl_init+:} false; then :
5433 if ${ac_cv_search_acl_init+:} false; then :
5436 ac_cv_search_acl_init=no
5439 LIBS=$ac_func_search_save_LIBS
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5442 $as_echo "$ac_cv_search_acl_init" >&6; }
5443 ac_res=$ac_cv_search_acl_init
5444 if test "$ac_res" != no; then :
5445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5446 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5450 SERVERLIBS="$SERVERLIBS $LIBS"
5454 if test -d /etc/dbus-1; then
5455 DBUSDIR="/etc/dbus-1"
5460 # Check whether --enable-dbus was given.
5461 if test "${enable_dbus+set}" = set; then :
5462 enableval=$enable_dbus;
5466 # Check whether --with-dbusdir was given.
5467 if test "${with_dbusdir+set}" = set; then :
5468 withval=$with_dbusdir; DBUSDIR="$withval"
5473 DBUS_NOTIFIERLIBS=""
5475 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5477 $as_echo_n "checking for DBUS... " >&6; }
5478 if $PKGCONFIG --exists dbus-1; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5480 $as_echo "yes" >&6; }
5481 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5483 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE"
5484 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1`"
5485 DBUS_NOTIFIER="dbus"
5486 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1`"
5488 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5489 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5490 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5491 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5506 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5507 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5508 CUPS_SYSTEM_AUTHKEY=""
5513 BACKLIBS="$BACKLIBS -framework IOKit"
5514 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5515 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5517 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5518 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5519 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5524 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5525 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5526 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5531 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5532 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5533 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5538 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5539 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5540 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5545 ac_fn_c_check_header_mongrel "$LINENO" "IOKit/pwr_mgt/IOPMLibPrivate.h" "ac_cv_header_IOKit_pwr_mgt_IOPMLibPrivate_h" "$ac_includes_default"
5546 if test "x$ac_cv_header_IOKit_pwr_mgt_IOPMLibPrivate_h" = xyes; then :
5547 $as_echo "#define HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H 1" >>confdefs.h
5553 for ac_func in SCDynamicStoreCopyComputerName
5555 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5556 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5557 cat >>confdefs.h <<_ACEOF
5558 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5565 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5566 if test "x$ac_cv_header_membership_h" = xyes; then :
5567 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5572 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5573 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5574 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5579 for ac_func in mbr_uid_to_uuid
5581 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5582 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5583 cat >>confdefs.h <<_ACEOF
5584 #define HAVE_MBR_UID_TO_UUID 1
5591 for ac_func in vproc_transaction_begin
5593 ac_fn_c_check_func "$LINENO" "vproc_transaction_begin" "ac_cv_func_vproc_transaction_begin"
5594 if test "x$ac_cv_func_vproc_transaction_begin" = xyes; then :
5595 cat >>confdefs.h <<_ACEOF
5596 #define HAVE_VPROC_TRANSACTION_BEGIN 1
5603 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5604 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5605 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5611 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5612 if test "x$ac_cv_header_notify_h" = xyes; then :
5613 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5618 for ac_func in notify_post
5620 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5621 if test "x$ac_cv_func_notify_post" = xyes; then :
5622 cat >>confdefs.h <<_ACEOF
5623 #define HAVE_NOTIFY_POST 1
5631 # Check whether --with-adminkey was given.
5632 if test "${with_adminkey+set}" = set; then :
5633 withval=$with_adminkey; default_adminkey="$withval"
5635 default_adminkey="default"
5639 # Check whether --with-operkey was given.
5640 if test "${with_operkey+set}" = set; then :
5641 withval=$with_operkey; default_operkey="$withval"
5643 default_operkey="default"
5647 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5648 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5650 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5653 if test "x$default_adminkey" != xdefault; then
5654 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5655 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5656 elif grep -q system.print.operator /etc/authorization; then
5657 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5658 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5660 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences"
5661 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.preferences"
5664 if test "x$default_operkey" != xdefault; then
5665 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5666 elif grep -q system.print.operator /etc/authorization; then
5667 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5669 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin"
5674 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
5675 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
5676 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
5682 if test $uversion -ge 100; then
5683 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5684 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5685 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5691 if test $uversion -ge 110 -a $uversion -lt 120; then
5692 # Broken public headers in 10.7.x...
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5694 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5695 if test -f /usr/local/include/sandbox/private.h; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5697 $as_echo "yes" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 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
5705 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5706 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5707 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5709 INSTALLXPC="install-xpc"
5713 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
5714 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
5715 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
5724 cat >>confdefs.h <<_ACEOF
5725 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
5728 cat >>confdefs.h <<_ACEOF
5729 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
5738 # Check whether --with-components was given.
5739 if test "${with_components+set}" = set; then :
5740 withval=$with_components; COMPONENTS="$withval"
5744 case "$COMPONENTS" in
5746 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
5750 BUILDDIRS="data locale"
5754 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
5764 if test "$prefix" = "NONE"; then
5768 if test "$exec_prefix" = "NONE"; then
5769 if test "$prefix" = "/"; then
5772 exec_prefix="$prefix"
5776 if test "$bindir" = "\${exec_prefix}/bin"; then
5777 bindir="$exec_prefix/bin"
5780 cat >>confdefs.h <<_ACEOF
5781 #define CUPS_BINDIR "$bindir"
5785 if test "$sbindir" = "\${exec_prefix}/sbin"; then
5786 sbindir="$exec_prefix/sbin"
5789 cat >>confdefs.h <<_ACEOF
5790 #define CUPS_SBINDIR "$sbindir"
5794 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
5795 sharedstatedir="/usr/com"
5798 if test "$datarootdir" = "\${prefix}/share"; then
5799 if test "$prefix" = "/"; then
5800 datarootdir="/usr/share"
5802 datarootdir="$prefix/share"
5806 if test "$datadir" = "\${prefix}/share"; then
5807 if test "$prefix" = "/"; then
5808 datadir="/usr/share"
5810 datadir="$prefix/share"
5812 elif test "$datadir" = "\${datarootdir}"; then
5813 datadir="$datarootdir"
5816 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
5817 includedir="/usr/include"
5820 if test "$localstatedir" = "\${prefix}/var"; then
5821 if test "$prefix" = "/"; then
5822 if test "$uname" = Darwin; then
5823 localstatedir="/private/var"
5825 localstatedir="/var"
5828 localstatedir="$prefix/var"
5832 if test "$sysconfdir" = "\${prefix}/etc"; then
5833 if test "$prefix" = "/"; then
5834 if test "$uname" = Darwin; then
5835 sysconfdir="/private/etc"
5840 sysconfdir="$prefix/etc"
5844 if test "$libdir" = "\${exec_prefix}/lib"; then
5847 libdir="$exec_prefix/lib32"
5850 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
5851 libdir="$exec_prefix/lib64"
5855 if test -d /usr/lib/hpux32; then
5856 libdir="$exec_prefix/lib/hpux32"
5863 # Check whether --with-privateinclude was given.
5864 if test "${with_privateinclude+set}" = set; then :
5865 withval=$with_privateinclude; privateinclude="$withval"
5870 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
5871 PRIVATEINCLUDE="$privateinclude/cups"
5880 # Check whether --with-rcdir was given.
5881 if test "${with_rcdir+set}" = set; then :
5882 withval=$with_rcdir; rcdir="$withval"
5888 # Check whether --with-rclevels was given.
5889 if test "${with_rclevels+set}" = set; then :
5890 withval=$with_rclevels; rclevels="$withval"
5896 # Check whether --with-rcstart was given.
5897 if test "${with_rcstart+set}" = set; then :
5898 withval=$with_rcstart; rcstart="$withval"
5904 # Check whether --with-rcstop was given.
5905 if test "${with_rcstop+set}" = set; then :
5906 withval=$with_rcstop; rcstop="$withval"
5912 # Check whether --with-smfmanifestdir was given.
5913 if test "${with_smfmanifestdir+set}" = set; then :
5914 withval=$with_smfmanifestdir; smfmanifestdir="$withval"
5922 RCLEVELS="$rclevels"
5927 if test x$rcdir = x; then
5934 # Darwin and MacOS X...
5935 if test -x /sbin/launchd; then
5936 INITDDIR="/System/Library/LaunchDaemons"
5938 INITDDIR="/System/Library/StartupItems/PrintingServices"
5942 FreeBSD* | OpenBSD* | MirBSD* | ekkoBSD*)
5943 # FreeBSD and OpenBSD
5960 Linux | GNU | GNU/k*BSD*)
5961 # Linux/HURD seems to choose an init.d directory at random...
5962 if test -d /sbin/init.d; then
5964 INITDIR="/sbin/init.d"
5966 if test -d /etc/init.d; then
5980 INITDDIR="/etc/rc.d"
5989 if test "x$smfmanifestdir" != x; then
5990 SMFMANIFESTDIR=$smfmanifestdir
6002 elif test "x$rcdir" != xno; then
6003 if test "x$rclevels" = x; then
6018 # Check whether --with-xinetd was given.
6019 if test "${with_xinetd+set}" = set; then :
6020 withval=$with_xinetd; XINETD="$withval"
6026 if test "x$XINETD" = x -a ! -x /sbin/launchd; then
6027 for dir in /private/etc/xinetd.d /etc/xinetd.d /usr/local/etc/xinetd.d; do
6028 if test -d $dir; then
6033 elif test "x$XINETD" = xno; then
6040 # Check whether --with-lpdconfig was given.
6041 if test "${with_lpdconfig+set}" = set; then :
6042 withval=$with_lpdconfig; LPDCONFIG="$withval"
6048 if test "x$LPDCONFIG" = x; then
6049 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6050 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6051 elif test "x$XINETD" != x; then
6052 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6056 if test "x$LPDCONFIG" = xoff; then
6057 cat >>confdefs.h <<_ACEOF
6058 #define CUPS_DEFAULT_LPD_CONFIG ""
6062 cat >>confdefs.h <<_ACEOF
6063 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6069 # Check whether --with-smbconfig was given.
6070 if test "${with_smbconfig+set}" = set; then :
6071 withval=$with_smbconfig; SMBCONFIG="$withval"
6077 if test "x$SMBCONFIG" = x; then
6078 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6079 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6081 for dir in /etc /etc/samba /usr/local/etc; do
6082 if test -f $dir/smb.conf; then
6083 SMBCONFIG="samba://$dir/smb.conf"
6090 if test "x$SMBCONFIG" = xoff; then
6091 cat >>confdefs.h <<_ACEOF
6092 #define CUPS_DEFAULT_SMB_CONFIG ""
6096 cat >>confdefs.h <<_ACEOF
6097 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6104 # Check whether --with-cachedir was given.
6105 if test "${with_cachedir+set}" = set; then :
6106 withval=$with_cachedir; cachedir="$withval"
6112 if test x$cachedir = x; then
6113 if test "x$uname" = xDarwin; then
6114 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6116 CUPS_CACHEDIR="$localstatedir/cache/cups"
6119 CUPS_CACHEDIR="$cachedir"
6121 cat >>confdefs.h <<_ACEOF
6122 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6128 CUPS_DATADIR="$datadir/cups"
6129 cat >>confdefs.h <<_ACEOF
6130 #define CUPS_DATADIR "$datadir/cups"
6137 # Check whether --with-icondir was given.
6138 if test "${with_icondir+set}" = set; then :
6139 withval=$with_icondir; icondir="$withval"
6145 if test "x$icondir" = x -a -d /usr/share/icons; then
6146 ICONDIR="/usr/share/icons"
6155 # Check whether --with-menudir was given.
6156 if test "${with_menudir+set}" = set; then :
6157 withval=$with_menudir; menudir="$withval"
6163 if test "x$menudir" = x -a -d /usr/share/applications; then
6164 MENUDIR="/usr/share/applications"
6171 # Documentation files
6173 # Check whether --with-docdir was given.
6174 if test "${with_docdir+set}" = set; then :
6175 withval=$with_docdir; docdir="$withval"
6181 if test x$docdir = x; then
6182 CUPS_DOCROOT="$datadir/doc/cups"
6183 docdir="$datadir/doc/cups"
6185 CUPS_DOCROOT="$docdir"
6188 cat >>confdefs.h <<_ACEOF
6189 #define CUPS_DOCROOT "$docdir"
6196 # Check whether --with-fontpath was given.
6197 if test "${with_fontpath+set}" = set; then :
6198 withval=$with_fontpath; fontpath="$withval"
6204 if test "x$fontpath" = "x"; then
6205 CUPS_FONTPATH="$datadir/cups/fonts"
6207 CUPS_FONTPATH="$fontpath"
6211 cat >>confdefs.h <<_ACEOF
6212 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6217 if test "$localedir" = "\${datarootdir}/locale"; then
6219 Linux | GNU | *BSD* | Darwin*)
6220 CUPS_LOCALEDIR="$datarootdir/locale"
6224 CUPS_LOCALEDIR="$exec_prefix/lib/nls/msg"
6228 # This is the standard System V location...
6229 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6233 CUPS_LOCALEDIR="$localedir"
6236 cat >>confdefs.h <<_ACEOF
6237 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6244 # Check whether --with-logdir was given.
6245 if test "${with_logdir+set}" = set; then :
6246 withval=$with_logdir; logdir="$withval"
6252 if test x$logdir = x; then
6253 CUPS_LOGDIR="$localstatedir/log/cups"
6254 cat >>confdefs.h <<_ACEOF
6255 #define CUPS_LOGDIR "$localstatedir/log/cups"
6259 CUPS_LOGDIR="$logdir"
6261 cat >>confdefs.h <<_ACEOF
6262 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6267 # Longer-term spool data
6268 CUPS_REQUESTS="$localstatedir/spool/cups"
6269 cat >>confdefs.h <<_ACEOF
6270 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6275 # Server executables...
6278 # *BSD and Darwin (MacOS X)
6280 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6284 INSTALL_SYSV="install-sysv"
6285 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6289 cat >>confdefs.h <<_ACEOF
6290 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6296 # Configuration files
6297 CUPS_SERVERROOT="$sysconfdir/cups"
6298 cat >>confdefs.h <<_ACEOF
6299 #define CUPS_SERVERROOT "$sysconfdir/cups"
6304 # Transient run-time state
6308 CUPS_STATEDIR="$CUPS_SERVERROOT"
6312 CUPS_STATEDIR="$localstatedir/run/cups"
6315 cat >>confdefs.h <<_ACEOF
6316 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6323 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6324 # New GNU "standards" break previous ones, so make sure we use
6325 # the right default location for the operating system...
6326 mandir="\${prefix}/man"
6329 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6331 Darwin* | Linux | GNU | *BSD* | AIX*)
6332 # Darwin, MacOS X, Linux, GNU HURD, *BSD, and AIX
6333 mandir="/usr/share/man"
6334 AMANDIR="/usr/share/man"
6335 PMANDIR="/usr/share/man"
6339 mandir="/usr/share/catman/u_man"
6340 AMANDIR="/usr/share/catman/a_man"
6341 PMANDIR="/usr/share/catman/p_man"
6375 Linux* | GNU* | Darwin*)
6376 # Linux, GNU Hurd, and OS X
6403 DSOFLAGS="${DSOFLAGS:=}"
6405 # Check whether --enable-shared was given.
6406 if test "${enable_shared+set}" = set; then :
6407 enableval=$enable_shared;
6412 LIBCUPSBASE="lib$cupsbase"
6413 LIBCUPSSTATIC="lib$cupsbase.a"
6415 if test x$enable_shared != xno; then
6418 LIBCUPS="lib$cupsbase.so.2"
6419 LIBCUPSCGI="libcupscgi.so.1"
6420 LIBCUPSIMAGE="libcupsimage.so.2"
6421 LIBCUPSMIME="libcupsmime.so.1"
6422 LIBCUPSPPDC="libcupsppdc.so.1"
6425 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G \$(OPTIM)"
6428 LIBCUPS="lib$cupsbase.so.2"
6429 LIBCUPSCGI="libcupscgi.so.1"
6430 LIBCUPSIMAGE="libcupsimage.so.2"
6431 LIBCUPSMIME="libcupsmime.so.1"
6432 LIBCUPSPPDC="libcupsppdc.so.1"
6435 DSOFLAGS="$DSOFLAGS -Wl,-h,\`basename \$@\` -G \$(OPTIM)"
6440 LIBCUPS="lib$cupsbase.so.2"
6441 LIBCUPSCGI="libcupscgi.so.1"
6442 LIBCUPSIMAGE="libcupsimage.so.2"
6443 LIBCUPSMIME="libcupsmime.so.1"
6444 LIBCUPSPPDC="libcupsppdc.so.1"
6447 DSOFLAGS="$DSOFLAGS -Wl,-b,-z,+h,\`basename \$@\`"
6450 LIBCUPS="lib$cupsbase.sl.2"
6451 LIBCUPSCGI="libcupscgi.sl.1"
6452 LIBCUPSIMAGE="libcupsimage.sl.2"
6453 LIBCUPSMIME="libcupsmime.sl.1"
6454 LIBCUPSPPDC="libcupsppdc.sl.1"
6457 DSOFLAGS="$DSOFLAGS -b -z +h \`basename \$@\`"
6462 LIBCUPS="lib$cupsbase.so.2"
6463 LIBCUPSCGI="libcupscgi.so.1"
6464 LIBCUPSIMAGE="libcupsimage.so.2"
6465 LIBCUPSMIME="libcupsmime.so.1"
6466 LIBCUPSPPDC="libcupsppdc.so.1"
6469 DSOFLAGS="$DSOFLAGS -set_version,sgi2.6,-soname,\`basename \$@\` -shared \$(OPTIM)"
6471 OSF1* | Linux | GNU | *BSD*)
6472 LIBCUPS="lib$cupsbase.so.2"
6473 LIBCUPSCGI="libcupscgi.so.1"
6474 LIBCUPSIMAGE="libcupsimage.so.2"
6475 LIBCUPSMIME="libcupsmime.so.1"
6476 LIBCUPSPPDC="libcupsppdc.so.1"
6479 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6482 LIBCUPS="lib$cupsbase.2.dylib"
6483 LIBCUPSCGI="libcupscgi.1.dylib"
6484 LIBCUPSIMAGE="libcupsimage.2.dylib"
6485 LIBCUPSMIME="libcupsmime.1.dylib"
6486 LIBCUPSPPDC="libcupsppdc.1.dylib"
6489 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6492 LIBCUPS="lib${cupsbase}_s.a"
6493 LIBCUPSBASE="${cupsbase}_s"
6494 LIBCUPSCGI="libcupscgi_s.a"
6495 LIBCUPSIMAGE="libcupsimage_s.a"
6496 LIBCUPSMIME="libcupsmime_s.a"
6497 LIBCUPSPPDC="libcupsppdc_s.a"
6500 DSOFLAGS="$DSOFLAGS -Wl,-bexpall,-bM:SRE,-bnoentry,-blibpath:\$(libdir)"
6503 echo "Warning: shared libraries may not be supported. Trying -shared"
6504 echo " option with compiler."
6505 LIBCUPS="lib$cupsbase.so.2"
6506 LIBCUPSCGI="libcupscgi.so.1"
6507 LIBCUPSIMAGE="libcupsimage.so.2"
6508 LIBCUPSMIME="libcupsmime.so.1"
6509 LIBCUPSPPDC="libcupsppdc.so.1"
6512 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6517 LIBCUPS="lib$cupsbase.a"
6518 LIBCUPSCGI="libcupscgi.a"
6519 LIBCUPSIMAGE="libcupsimage.a"
6520 LIBCUPSMIME="libcupsmime.a"
6521 LIBCUPSPPDC="libcupsppdc.a"
6537 if test x$enable_shared = xno; then
6538 LINKCUPS="../cups/lib$cupsbase.a"
6539 LINKCUPSIMAGE="../filter/libcupsimage.a"
6541 EXTLINKCUPS="-lcups"
6542 EXTLINKCUPSIMAGE="-lcupsimage"
6544 if test $uname = AIX; then
6545 LINKCUPS="-l${cupsbase}_s"
6546 LINKCUPSIMAGE="-lcupsimage_s"
6548 EXTLINKCUPS="-lcups_s"
6549 EXTLINKCUPSIMAGE="-lcupsimage_s"
6551 LINKCUPS="-l${cupsbase}"
6552 LINKCUPSIMAGE="-lcupsimage"
6554 EXTLINKCUPS="-lcups"
6555 EXTLINKCUPSIMAGE="-lcupsimage"
6566 if test "$DSO" != ":"; then
6567 # When using DSOs the image libraries are linked to libcupsimage.so
6568 # rather than to the executables. This makes things smaller if you
6569 # are using any static libraries, and it also allows us to distribute
6570 # a single DSO rather than a bunch...
6574 # Tell the run-time linkers where to find a DSO. Some platforms
6575 # need this option, even when the library is installed in a
6576 # standard location...
6579 # HP-UX needs the path, even for /usr/lib...
6582 DSOFLAGS="-Wl,+s,+b,$libdir $DSOFLAGS"
6585 DSOFLAGS="+s +b $libdir $DSOFLAGS"
6588 LDFLAGS="$LDFLAGS -Wl,+s,+b,$libdir"
6589 EXPORT_LDFLAGS="-Wl,+s,+b,$libdir"
6593 if test $exec_prefix != /usr; then
6594 DSOFLAGS="-R$libdir $DSOFLAGS"
6595 LDFLAGS="$LDFLAGS -R$libdir"
6596 EXPORT_LDFLAGS="-R$libdir"
6601 if test $exec_prefix != /usr; then
6602 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6603 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6604 EXPORT_LDFLAGS="-Wl,-R$libdir"
6608 # IRIX, Linux, and HURD...
6609 if test $exec_prefix != /usr; then
6610 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6611 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6612 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6627 # Check whether --enable-libtool_unsupported was given.
6628 if test "${enable_libtool_unsupported+set}" = set; then :
6629 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6630 LIBTOOL="$enable_libtool_unsupported"
6632 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6633 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6642 if test x$LIBTOOL != x; then
6643 LIBCUPS="libcups.la"
6644 LIBCUPSIMAGE="libcupsimage.la"
6645 LINKCUPS="../cups/\$(LIBCUPS)"
6646 LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
6658 # Check whether --with-optim was given.
6659 if test "${with_optim+set}" = set; then :
6660 withval=$with_optim;
6663 # Check whether --enable-debug was given.
6664 if test "${enable_debug+set}" = set; then :
6665 enableval=$enable_debug;
6668 # Check whether --enable-debug_guards was given.
6669 if test "${enable_debug_guards+set}" = set; then :
6670 enableval=$enable_debug_guards;
6673 # Check whether --enable-debug_printfs was given.
6674 if test "${enable_debug_printfs+set}" = set; then :
6675 enableval=$enable_debug_printfs;
6678 # Check whether --enable-unit_tests was given.
6679 if test "${enable_unit_tests+set}" = set; then :
6680 enableval=$enable_unit_tests;
6684 if test x$enable_debug = xyes; then
6690 if test x$enable_debug_printfs = xyes; then
6691 CFLAGS="$CFLAGS -DDEBUG"
6692 CXXFLAGS="$CXXFLAGS -DDEBUG"
6695 if test x$enable_debug_guards = xyes; then
6696 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6697 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6700 if test x$enable_unit_tests = xyes; then
6701 UNITTESTS="unittests"
6708 # Check whether --with-archflags was given.
6709 if test "${with_archflags+set}" = set; then :
6710 withval=$with_archflags;
6714 # Check whether --with-ldarchflags was given.
6715 if test "${with_ldarchflags+set}" = set; then :
6716 withval=$with_ldarchflags;
6720 if test -z "$with_archflags"; then
6723 ARCHFLAGS="$with_archflags"
6726 if test -z "$with_ldarchflags"; then
6727 if test "$uname" = Darwin; then
6728 # Only create Intel programs by default
6729 LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch ppc64//'`"
6731 LDARCHFLAGS="$ARCHFLAGS"
6734 LDARCHFLAGS="$with_ldarchflags"
6740 # Check whether --enable-relro was given.
6741 if test "${enable_relro+set}" = set; then :
6742 enableval=$enable_relro;
6746 CXXLIBS="${CXXLIBS:=}"
6755 if test -n "$GCC"; then
6756 # Add GCC-specific compiler options...
6757 if test -z "$OPTIM"; then
6758 if test "x$with_optim" = x; then
6759 # Default to optimize-for-size and debug
6762 OPTIM="$with_optim $OPTIM"
6766 # Generate position-independent code as needed...
6767 if test $PICFLAG = 1 -a $uname != AIX; then
6768 OPTIM="-fPIC $OPTIM"
6771 # The -fstack-protector option is available with some versions of
6772 # GCC and adds "stack canaries" which detect when the return address
6773 # has been overwritten, preventing many types of exploit attacks.
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fstack-protector" >&5
6775 $as_echo_n "checking if GCC supports -fstack-protector... " >&6; }
6777 CFLAGS="$CFLAGS -fstack-protector"
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6789 if ac_fn_c_try_link "$LINENO"; then :
6790 OPTIM="$OPTIM -fstack-protector"
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6792 $as_echo "yes" >&6; }
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6797 rm -f core conftest.err conftest.$ac_objext \
6798 conftest$ac_exeext conftest.$ac_ext
6801 # The -fPIE option is available with some versions of GCC and adds
6802 # randomization of addresses, which avoids another class of exploits
6803 # that depend on a fixed address for common functions.
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fPIE" >&5
6805 $as_echo_n "checking if GCC supports -fPIE... " >&6; }
6807 CFLAGS="$CFLAGS -fPIE"
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6819 if ac_fn_c_try_compile "$LINENO"; then :
6822 PIEFLAGS="-fPIE -Wl,-pie"
6825 PIEFLAGS="-fPIE -pie"
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6829 $as_echo "yes" >&6; }
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 if test "x$with_optim" = x; then
6838 # Add useful warning options for tracking down problems...
6839 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
6841 # Additional warning options for development testing...
6842 if test -d .svn; then
6843 OPTIM="-Wshadow -Werror $OPTIM"
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -Wno-tautological-compare" >&5
6846 $as_echo_n "checking if GCC supports -Wno-tautological-compare... " >&6; }
6848 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861 OPTIM="$OPTIM -Wno-tautological-compare"
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6863 $as_echo "yes" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875 # -D_FORTIFY_SOURCE=2 adds additional object size
6876 # checking, basically wrapping all string functions
6877 # with buffer-limited ones. Not strictly needed for
6878 # CUPS since we already use buffer-limited calls, but
6879 # this will catch any additions that are broken.
6880 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
6884 # The -z relro option is provided by the Linux linker command to
6885 # make relocatable data read-only.
6886 if test x$enable_relro = xyes; then
6887 RELROFLAGS="-Wl,-z,relro"
6892 # Add vendor-specific compiler options...
6895 if test -z "$OPTIM"; then
6896 if test "x$with_optim" = x; then
6897 OPTIM="-O2 -qmaxmem=6000"
6899 OPTIM="$with_optim $OPTIM"
6904 if test -z "$OPTIM"; then
6905 if test "x$with_optim" = x; then
6908 OPTIM="$with_optim $OPTIM"
6912 CFLAGS="-Ae $CFLAGS"
6914 if test $PICFLAG = 1; then
6919 if test -z "$OPTIM"; then
6920 if test "x$with_optim" = x; then
6923 OPTIM="$with_optim $OPTIM"
6927 if test "x$with_optim" = x; then
6928 OPTIM="-fullwarn -woff 1183,1209,1349,1506,3201 $OPTIM"
6932 # Tru64 UNIX aka Digital UNIX aka OSF/1
6933 if test -z "$OPTIM"; then
6934 if test "x$with_optim" = x; then
6943 if test -z "$OPTIM"; then
6944 if test "x$with_optim" = x; then
6947 OPTIM="$with_optim $OPTIM"
6951 if test $PICFLAG = 1; then
6952 OPTIM="-KPIC $OPTIM"
6957 if test -z "$OPTIM"; then
6958 if test "x$with_optim" = x; then
6961 OPTIM="$with_optim $OPTIM"
6965 if test $PICFLAG = 1; then
6966 OPTIM="-KPIC $OPTIM"
6970 # Running some other operating system; inform the user they
6971 # should contribute the necessary options to
6972 # cups-support@cups.org...
6973 echo "Building CUPS with default compiler optimizations; contact"
6974 echo "cups-bugs@cups.org with uname and compiler options needed"
6975 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
6976 echo "variables before running configure."
6981 # Add general compiler options per platform...
6984 # HP-UX 10.20 (at least) needs this definition to get the
6986 OPTIM="$OPTIM -D_XOPEN_SOURCE_EXTENDED"
6988 # HP-UX 11.00 (at least) needs this definition to get the
6989 # u_short type used by the IP headers...
6990 OPTIM="$OPTIM -D_INCLUDE_HPUX_SOURCE"
6992 # HP-UX 11.23 (at least) needs this definition to get the
6993 # IPv6 header to work...
6994 OPTIM="$OPTIM -D_HPUX_SOURCE"
6998 # glibc 2.8 and higher breaks peer credentials unless you
6999 # define _GNU_SOURCE...
7000 OPTIM="$OPTIM -D_GNU_SOURCE"
7004 # Tru64 UNIX aka Digital UNIX aka OSF/1 need to be told
7005 # to be POSIX-compliant...
7006 OPTIM="$OPTIM -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_OSF_SOURCE"
7013 ac_fn_c_check_header_mongrel "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default"
7014 if test "x$ac_cv_header_resolv_h" = xyes; then :
7015 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7021 $as_echo_n "checking for library containing socket... " >&6; }
7022 if ${ac_cv_search_socket+:} false; then :
7023 $as_echo_n "(cached) " >&6
7025 ac_func_search_save_LIBS=$LIBS
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7029 /* Override any GCC internal prototype to avoid an error.
7030 Use char because int might match the return type of a GCC
7031 builtin and then its argument prototype would still apply. */
7044 for ac_lib in '' socket; do
7045 if test -z "$ac_lib"; then
7046 ac_res="none required"
7049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7051 if ac_fn_c_try_link "$LINENO"; then :
7052 ac_cv_search_socket=$ac_res
7054 rm -f core conftest.err conftest.$ac_objext \
7056 if ${ac_cv_search_socket+:} false; then :
7060 if ${ac_cv_search_socket+:} false; then :
7063 ac_cv_search_socket=no
7066 LIBS=$ac_func_search_save_LIBS
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7069 $as_echo "$ac_cv_search_socket" >&6; }
7070 ac_res=$ac_cv_search_socket
7071 if test "$ac_res" != no; then :
7072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7077 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7078 if ${ac_cv_search_gethostbyaddr+:} false; then :
7079 $as_echo_n "(cached) " >&6
7081 ac_func_search_save_LIBS=$LIBS
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7085 /* Override any GCC internal prototype to avoid an error.
7086 Use char because int might match the return type of a GCC
7087 builtin and then its argument prototype would still apply. */
7091 char gethostbyaddr ();
7095 return gethostbyaddr ();
7100 for ac_lib in '' nsl; do
7101 if test -z "$ac_lib"; then
7102 ac_res="none required"
7105 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7107 if ac_fn_c_try_link "$LINENO"; then :
7108 ac_cv_search_gethostbyaddr=$ac_res
7110 rm -f core conftest.err conftest.$ac_objext \
7112 if ${ac_cv_search_gethostbyaddr+:} false; then :
7116 if ${ac_cv_search_gethostbyaddr+:} false; then :
7119 ac_cv_search_gethostbyaddr=no
7122 LIBS=$ac_func_search_save_LIBS
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7125 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7126 ac_res=$ac_cv_search_gethostbyaddr
7127 if test "$ac_res" != no; then :
7128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7133 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7134 if ${ac_cv_search_getifaddrs+:} false; then :
7135 $as_echo_n "(cached) " >&6
7137 ac_func_search_save_LIBS=$LIBS
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7141 /* Override any GCC internal prototype to avoid an error.
7142 Use char because int might match the return type of a GCC
7143 builtin and then its argument prototype would still apply. */
7151 return getifaddrs ();
7156 for ac_lib in '' nsl; do
7157 if test -z "$ac_lib"; then
7158 ac_res="none required"
7161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7163 if ac_fn_c_try_link "$LINENO"; then :
7164 ac_cv_search_getifaddrs=$ac_res
7166 rm -f core conftest.err conftest.$ac_objext \
7168 if ${ac_cv_search_getifaddrs+:} false; then :
7172 if ${ac_cv_search_getifaddrs+:} false; then :
7175 ac_cv_search_getifaddrs=no
7178 LIBS=$ac_func_search_save_LIBS
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7181 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7182 ac_res=$ac_cv_search_getifaddrs
7183 if test "$ac_res" != no; then :
7184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7185 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7190 $as_echo_n "checking for library containing hstrerror... " >&6; }
7191 if ${ac_cv_search_hstrerror+:} false; then :
7192 $as_echo_n "(cached) " >&6
7194 ac_func_search_save_LIBS=$LIBS
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7198 /* Override any GCC internal prototype to avoid an error.
7199 Use char because int might match the return type of a GCC
7200 builtin and then its argument prototype would still apply. */
7208 return hstrerror ();
7213 for ac_lib in '' nsl socket resolv; do
7214 if test -z "$ac_lib"; then
7215 ac_res="none required"
7218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7220 if ac_fn_c_try_link "$LINENO"; then :
7221 ac_cv_search_hstrerror=$ac_res
7223 rm -f core conftest.err conftest.$ac_objext \
7225 if ${ac_cv_search_hstrerror+:} false; then :
7229 if ${ac_cv_search_hstrerror+:} false; then :
7232 ac_cv_search_hstrerror=no
7235 LIBS=$ac_func_search_save_LIBS
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7238 $as_echo "$ac_cv_search_hstrerror" >&6; }
7239 ac_res=$ac_cv_search_hstrerror
7240 if test "$ac_res" != no; then :
7241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7242 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7247 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7248 if ${ac_cv_search_rresvport_af+:} false; then :
7249 $as_echo_n "(cached) " >&6
7251 ac_func_search_save_LIBS=$LIBS
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7255 /* Override any GCC internal prototype to avoid an error.
7256 Use char because int might match the return type of a GCC
7257 builtin and then its argument prototype would still apply. */
7261 char rresvport_af ();
7265 return rresvport_af ();
7270 for ac_lib in '' nsl; do
7271 if test -z "$ac_lib"; then
7272 ac_res="none required"
7275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7277 if ac_fn_c_try_link "$LINENO"; then :
7278 ac_cv_search_rresvport_af=$ac_res
7280 rm -f core conftest.err conftest.$ac_objext \
7282 if ${ac_cv_search_rresvport_af+:} false; then :
7286 if ${ac_cv_search_rresvport_af+:} false; then :
7289 ac_cv_search_rresvport_af=no
7292 LIBS=$ac_func_search_save_LIBS
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7295 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7296 ac_res=$ac_cv_search_rresvport_af
7297 if test "$ac_res" != no; then :
7298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7299 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7304 $as_echo_n "checking for library containing __res_init... " >&6; }
7305 if ${ac_cv_search___res_init+:} false; then :
7306 $as_echo_n "(cached) " >&6
7308 ac_func_search_save_LIBS=$LIBS
7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7312 /* Override any GCC internal prototype to avoid an error.
7313 Use char because int might match the return type of a GCC
7314 builtin and then its argument prototype would still apply. */
7322 return __res_init ();
7327 for ac_lib in '' resolv bind; do
7328 if test -z "$ac_lib"; then
7329 ac_res="none required"
7332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7334 if ac_fn_c_try_link "$LINENO"; then :
7335 ac_cv_search___res_init=$ac_res
7337 rm -f core conftest.err conftest.$ac_objext \
7339 if ${ac_cv_search___res_init+:} false; then :
7343 if ${ac_cv_search___res_init+:} false; then :
7346 ac_cv_search___res_init=no
7349 LIBS=$ac_func_search_save_LIBS
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7352 $as_echo "$ac_cv_search___res_init" >&6; }
7353 ac_res=$ac_cv_search___res_init
7354 if test "$ac_res" != no; then :
7355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7356 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7360 $as_echo_n "checking for library containing res_9_init... " >&6; }
7361 if ${ac_cv_search_res_9_init+:} false; then :
7362 $as_echo_n "(cached) " >&6
7364 ac_func_search_save_LIBS=$LIBS
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7368 /* Override any GCC internal prototype to avoid an error.
7369 Use char because int might match the return type of a GCC
7370 builtin and then its argument prototype would still apply. */
7378 return res_9_init ();
7383 for ac_lib in '' resolv bind; do
7384 if test -z "$ac_lib"; then
7385 ac_res="none required"
7388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7390 if ac_fn_c_try_link "$LINENO"; then :
7391 ac_cv_search_res_9_init=$ac_res
7393 rm -f core conftest.err conftest.$ac_objext \
7395 if ${ac_cv_search_res_9_init+:} false; then :
7399 if ${ac_cv_search_res_9_init+:} false; then :
7402 ac_cv_search_res_9_init=no
7405 LIBS=$ac_func_search_save_LIBS
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7408 $as_echo "$ac_cv_search_res_9_init" >&6; }
7409 ac_res=$ac_cv_search_res_9_init
7410 if test "$ac_res" != no; then :
7411 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7412 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7416 $as_echo_n "checking for library containing res_init... " >&6; }
7417 if ${ac_cv_search_res_init+:} false; then :
7418 $as_echo_n "(cached) " >&6
7420 ac_func_search_save_LIBS=$LIBS
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7424 /* Override any GCC internal prototype to avoid an error.
7425 Use char because int might match the return type of a GCC
7426 builtin and then its argument prototype would still apply. */
7439 for ac_lib in '' resolv bind; do
7440 if test -z "$ac_lib"; then
7441 ac_res="none required"
7444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7446 if ac_fn_c_try_link "$LINENO"; then :
7447 ac_cv_search_res_init=$ac_res
7449 rm -f core conftest.err conftest.$ac_objext \
7451 if ${ac_cv_search_res_init+:} false; then :
7455 if ${ac_cv_search_res_init+:} false; then :
7458 ac_cv_search_res_init=no
7461 LIBS=$ac_func_search_save_LIBS
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7464 $as_echo "$ac_cv_search_res_init" >&6; }
7465 ac_res=$ac_cv_search_res_init
7466 if test "$ac_res" != no; then :
7467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7468 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7477 # Tru64 5.1b leaks file descriptors with these functions; disable until
7478 # we can come up with a test for this...
7479 if test "$uname" != "OSF1"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7481 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7482 if ${ac_cv_search_getaddrinfo+:} false; then :
7483 $as_echo_n "(cached) " >&6
7485 ac_func_search_save_LIBS=$LIBS
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7489 /* Override any GCC internal prototype to avoid an error.
7490 Use char because int might match the return type of a GCC
7491 builtin and then its argument prototype would still apply. */
7495 char getaddrinfo ();
7499 return getaddrinfo ();
7504 for ac_lib in '' nsl; do
7505 if test -z "$ac_lib"; then
7506 ac_res="none required"
7509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7511 if ac_fn_c_try_link "$LINENO"; then :
7512 ac_cv_search_getaddrinfo=$ac_res
7514 rm -f core conftest.err conftest.$ac_objext \
7516 if ${ac_cv_search_getaddrinfo+:} false; then :
7520 if ${ac_cv_search_getaddrinfo+:} false; then :
7523 ac_cv_search_getaddrinfo=no
7526 LIBS=$ac_func_search_save_LIBS
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7529 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7530 ac_res=$ac_cv_search_getaddrinfo
7531 if test "$ac_res" != no; then :
7532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7533 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7538 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7539 if ${ac_cv_search_getnameinfo+:} false; then :
7540 $as_echo_n "(cached) " >&6
7542 ac_func_search_save_LIBS=$LIBS
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7546 /* Override any GCC internal prototype to avoid an error.
7547 Use char because int might match the return type of a GCC
7548 builtin and then its argument prototype would still apply. */
7552 char getnameinfo ();
7556 return getnameinfo ();
7561 for ac_lib in '' nsl; do
7562 if test -z "$ac_lib"; then
7563 ac_res="none required"
7566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7568 if ac_fn_c_try_link "$LINENO"; then :
7569 ac_cv_search_getnameinfo=$ac_res
7571 rm -f core conftest.err conftest.$ac_objext \
7573 if ${ac_cv_search_getnameinfo+:} false; then :
7577 if ${ac_cv_search_getnameinfo+:} false; then :
7580 ac_cv_search_getnameinfo=no
7583 LIBS=$ac_func_search_save_LIBS
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7586 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7587 ac_res=$ac_cv_search_getnameinfo
7588 if test "$ac_res" != no; then :
7589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7590 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7596 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7598 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7602 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7603 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7604 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7610 CUPS_DEFAULT_DOMAINSOCKET=""
7613 # Check whether --with-domainsocket was given.
7614 if test "${with_domainsocket+set}" = set; then :
7615 withval=$with_domainsocket; default_domainsocket="$withval"
7617 default_domainsocket=""
7621 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7622 if test "x$default_domainsocket" = x; then
7625 # Darwin and MaxOS X do their own thing...
7626 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7629 # All others use FHS standard...
7630 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7634 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7637 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7639 cat >>confdefs.h <<_ACEOF
7640 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7644 CUPS_LISTEN_DOMAINSOCKET=""
7650 for ac_header in AppleTalk/at_proto.h
7652 ac_fn_c_check_header_compile "$LINENO" "AppleTalk/at_proto.h" "ac_cv_header_AppleTalk_at_proto_h" "#include <netat/appletalk.h>
7654 if test "x$ac_cv_header_AppleTalk_at_proto_h" = xyes; then :
7655 cat >>confdefs.h <<_ACEOF
7656 #define HAVE_APPLETALK_AT_PROTO_H 1
7658 $as_echo "#define HAVE_APPLETALK_AT_PROTO_H 1" >>confdefs.h
7667 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7668 if test "x$ac_cv_func_poll" = xyes; then :
7669 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7673 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7674 if test "x$ac_cv_func_epoll_create" = xyes; then :
7675 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7679 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7680 if test "x$ac_cv_func_kqueue" = xyes; then :
7681 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7688 # Check whether --enable-gssapi was given.
7689 if test "${enable_gssapi+set}" = set; then :
7690 enableval=$enable_gssapi;
7697 if test x$enable_gssapi != xno; then
7698 # Extract the first word of "krb5-config", so it can be a program name with args.
7699 set dummy krb5-config; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7703 $as_echo_n "(cached) " >&6
7707 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7729 if test -n "$KRB5CONFIG"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7731 $as_echo "$KRB5CONFIG" >&6; }
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7738 if test "x$KRB5CONFIG" != x; then
7741 # OS X weak-links to the Kerberos framework...
7742 LIBGSSAPI="-weak_framework Kerberos"
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7744 $as_echo_n "checking for GSS framework... " >&6; }
7745 if test -d /System/Library/Frameworks/GSS.framework; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7747 $as_echo "yes" >&6; }
7748 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7755 # Solaris has a non-standard krb5-config, don't use it!
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7757 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7758 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7759 $as_echo_n "(cached) " >&6
7761 ac_check_lib_save_LIBS=$LIBS
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7766 /* Override any GCC internal prototype to avoid an error.
7767 Use char because int might match the return type of a GCC
7768 builtin and then its argument prototype would still apply. */
7772 char gss_display_status ();
7776 return gss_display_status ();
7781 if ac_fn_c_try_link "$LINENO"; then :
7782 ac_cv_lib_gss_gss_display_status=yes
7784 ac_cv_lib_gss_gss_display_status=no
7786 rm -f core conftest.err conftest.$ac_objext \
7787 conftest$ac_exeext conftest.$ac_ext
7788 LIBS=$ac_check_lib_save_LIBS
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7791 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7792 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7794 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7796 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7797 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7798 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7803 # Other platforms just ask for GSSAPI
7804 CFLAGS="`$KRB5CONFIG --cflags gssapi` $CFLAGS"
7805 CPPFLAGS="`$KRB5CONFIG --cflags gssapi` $CPPFLAGS"
7806 LIBGSSAPI="`$KRB5CONFIG --libs gssapi`"
7810 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7813 # Check for vendor-specific implementations...
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7817 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7818 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7819 $as_echo_n "(cached) " >&6
7821 ac_check_lib_save_LIBS=$LIBS
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7826 /* Override any GCC internal prototype to avoid an error.
7827 Use char because int might match the return type of a GCC
7828 builtin and then its argument prototype would still apply. */
7832 char gss_display_status ();
7836 return gss_display_status ();
7841 if ac_fn_c_try_link "$LINENO"; then :
7842 ac_cv_lib_gss_gss_display_status=yes
7844 ac_cv_lib_gss_gss_display_status=no
7846 rm -f core conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
7848 LIBS=$ac_check_lib_save_LIBS
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7851 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7852 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7854 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7856 LIBGSSAPI="-lgss -lgssapi_krb5"
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7862 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7863 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7864 $as_echo_n "(cached) " >&6
7866 ac_check_lib_save_LIBS=$LIBS
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7871 /* Override any GCC internal prototype to avoid an error.
7872 Use char because int might match the return type of a GCC
7873 builtin and then its argument prototype would still apply. */
7877 char gss_display_status ();
7881 return gss_display_status ();
7886 if ac_fn_c_try_link "$LINENO"; then :
7887 ac_cv_lib_gss_gss_display_status=yes
7889 ac_cv_lib_gss_gss_display_status=no
7891 rm -f core conftest.err conftest.$ac_objext \
7892 conftest$ac_exeext conftest.$ac_ext
7893 LIBS=$ac_check_lib_save_LIBS
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7896 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7897 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7899 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7908 if test "x$LIBGSSAPI" != x; then
7909 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
7910 if test "x$ac_cv_header_krb5_h" = xyes; then :
7911 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
7916 if test -d /System/Library/Frameworks/GSS.framework; then
7917 gssdir="/System/Library/Frameworks/GSS.framework"
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi.h presence" >&5
7919 $as_echo_n "checking for GSS/gssapi.h presence... " >&6; }
7920 if test -f $gssdir/Headers/gssapi.h; then
7921 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7924 $as_echo "yes" >&6; }
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927 $as_echo "no" >&6; }
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_generic.h presence" >&5
7930 $as_echo_n "checking for GSS/gssapi_generic.h presence... " >&6; }
7931 if test -f $gssdir/Headers/gssapi_generic.h; then
7932 $as_echo "#define HAVE_GSSAPI_GENERIC_H 1" >>confdefs.h
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7935 $as_echo "yes" >&6; }
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_spi.h presence" >&5
7941 $as_echo_n "checking for GSS/gssapi_spi.h presence... " >&6; }
7942 if test -f $gssdir/PrivateHeaders/gssapi_spi.h; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7944 $as_echo "yes" >&6; }
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_spi.h usability" >&5
7946 $as_echo_n "checking for GSS/gssapi_spi.h usability... " >&6; }
7947 if test -s $gssdir/PrivateHeaders/gssapi_spi.h; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7949 $as_echo "yes" >&6; }
7950 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7959 if test $uversion -ge 110 -a $uversion -lt 120; then
7960 # Broken public headers in 10.7.x...
7961 as_fn_error $? "Run 'sudo mkdir -p $gssdir/PrivateHeaders' and 'sudo touch $gssdir/PrivateHeaders/gssapi_spi.h' to build CUPS." "$LINENO" 5
7965 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
7966 if test "x$ac_cv_header_gssapi_h" = xyes; then :
7967 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
7972 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
7973 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
7974 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
7982 LIBS="$LIBS $LIBGSSAPI"
7984 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
7985 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
7986 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
7992 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
7993 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7996 #include <gssapi/gssapi.h>
8000 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8005 if ac_fn_c_try_compile "$LINENO"; then :
8006 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8009 $as_echo "yes" >&6; }
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018 #include <GSS/gssapi.h>
8022 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8027 if ac_fn_c_try_compile "$LINENO"; then :
8028 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8031 $as_echo "yes" >&6; }
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8044 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8049 if ac_fn_c_try_compile "$LINENO"; then :
8050 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8053 $as_echo "yes" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 # Check whether --with-gssservicename was given.
8067 if test "${with_gssservicename+set}" = set; then :
8068 withval=$with_gssservicename; default_gssservicename="$withval"
8070 default_gssservicename="default"
8074 if test x$default_gssservicename != xno; then
8075 if test "x$default_gssservicename" = "xdefault"; then
8076 CUPS_DEFAULT_GSSSERVICENAME="host"
8078 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8081 CUPS_DEFAULT_GSSSERVICENAME=""
8085 cat >>confdefs.h <<_ACEOF
8086 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8092 # Check whether --enable-threads was given.
8093 if test "${enable_threads+set}" = set; then :
8094 enableval=$enable_threads;
8101 if test "x$enable_threads" != xno; then
8102 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8103 if test "x$ac_cv_header_pthread_h" = xyes; then :
8104 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8110 if test x$ac_cv_header_pthread_h = xyes; then
8111 for flag in -lpthreads -lpthread -pthread; do
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8113 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8118 #include <pthread.h>
8122 pthread_create(0, 0, 0, 0);
8127 if ac_fn_c_try_link "$LINENO"; then :
8132 rm -f core conftest.err conftest.$ac_objext \
8133 conftest$ac_exeext conftest.$ac_ext
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8135 $as_echo "$have_pthread" >&6; }
8137 if test $have_pthread = yes; then
8138 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8140 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8141 # be POSIX-compliant... :(
8142 if test $uname = SunOS; then
8143 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8155 # Check whether --enable-ssl was given.
8156 if test "${enable_ssl+set}" = set; then :
8157 enableval=$enable_ssl;
8160 # Check whether --enable-cdsassl was given.
8161 if test "${enable_cdsassl+set}" = set; then :
8162 enableval=$enable_cdsassl;
8165 # Check whether --enable-gnutls was given.
8166 if test "${enable_gnutls+set}" = set; then :
8167 enableval=$enable_gnutls;
8170 # Check whether --enable-openssl was given.
8171 if test "${enable_openssl+set}" = set; then :
8172 enableval=$enable_openssl;
8176 # Check whether --with-openssl-libs was given.
8177 if test "${with_openssl_libs+set}" = set; then :
8178 withval=$with_openssl_libs; LDFLAGS="-L$withval $LDFLAGS"
8179 DSOFLAGS="-L$withval $DSOFLAGS"
8183 # Check whether --with-openssl-includes was given.
8184 if test "${with_openssl_includes+set}" = set; then :
8185 withval=$with_openssl_includes; CFLAGS="-I$withval $CFLAGS"
8186 CPPFLAGS="-I$withval $CPPFLAGS"
8196 if test x$enable_ssl != xno; then
8197 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8198 if test $uname = Darwin; then
8199 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8200 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8203 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8205 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8207 CUPS_SERVERCERT="/Library/Keychains/System.keychain"
8209 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8210 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8211 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8216 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8217 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8218 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8223 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8224 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8225 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8230 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8232 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8233 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8238 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8239 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8240 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8245 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8246 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8247 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8252 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8253 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8254 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8259 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8260 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8261 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecCertificateCopyData" >&5
8268 $as_echo_n "checking for SecCertificateCopyData... " >&6; }
8269 if test $uversion -ge 100; then
8270 $as_echo "#define HAVE_SECCERTIFICATECOPYDATA 1" >>confdefs.h
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8273 $as_echo "yes" >&6; }
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecIdentitySearchCreateWithPolicy" >&5
8280 $as_echo_n "checking for SecIdentitySearchCreateWithPolicy... " >&6; }
8281 if test $uversion -ge 80; then
8282 $as_echo "#define HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY 1" >>confdefs.h
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8285 $as_echo "yes" >&6; }
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecPolicyCreateSSL" >&5
8292 $as_echo_n "checking for SecPolicyCreateSSL... " >&6; }
8293 if test $uversion -ge 110; then
8294 $as_echo "#define HAVE_SECPOLICYCREATESSL 1" >>confdefs.h
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8297 $as_echo "yes" >&6; }
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8306 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8311 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8312 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8313 set dummy libgnutls-config; ac_word=$2
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 $as_echo_n "checking for $ac_word... " >&6; }
8316 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8317 $as_echo_n "(cached) " >&6
8319 case $LIBGNUTLSCONFIG in
8321 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8331 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8343 if test -n "$LIBGNUTLSCONFIG"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8345 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8352 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8353 set dummy libgcrypt-config; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if ${ac_cv_path_LIBGCRYPTCONFIG+:} false; then :
8357 $as_echo_n "(cached) " >&6
8359 case $LIBGCRYPTCONFIG in
8361 ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG
8383 if test -n "$LIBGCRYPTCONFIG"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5
8385 $as_echo "$LIBGCRYPTCONFIG" >&6; }
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8392 if $PKGCONFIG --exists gnutls; then
8394 SSLLIBS=`$PKGCONFIG --libs gnutls`
8395 SSLFLAGS=`$PKGCONFIG --cflags gnutls`
8396 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8398 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8400 elif test "x$LIBGNUTLSCONFIG" != x; then
8402 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8403 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8404 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8406 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8410 if test $have_ssl = 1; then
8411 CUPS_SERVERCERT="ssl/server.crt"
8412 CUPS_SERVERKEY="ssl/server.key"
8414 if $PKGCONFIG --exists gcrypt; then
8415 SSLLIBS="$SSLLIBS `$PKGCONFIG --libs gcrypt`"
8416 SSLFLAGS="$SSLFLAGS `$PKGCONFIG --cflags gcrypt`"
8417 elif test "x$LIBGCRYPTCONFIG" != x; then
8418 SSLLIBS="$SSLLIBS `$LIBGCRYPTCONFIG --libs`"
8419 SSLFLAGS="$SSLFLAGS `$LIBGCRYPTCONFIG --cflags`"
8424 if test $have_ssl = 0 -a "x$enable_openssl" != "xno"; then
8425 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
8426 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
8433 "-lcrypto -lrsaref" \
8434 "-lcrypto -lRSAglue -lrsaref"
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
8437 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
8438 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
8439 $as_echo_n "(cached) " >&6
8441 ac_check_lib_save_LIBS=$LIBS
8442 LIBS="-lssl $libcrypto $LIBS"
8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8446 /* Override any GCC internal prototype to avoid an error.
8447 Use char because int might match the return type of a GCC
8448 builtin and then its argument prototype would still apply. */
8461 if ac_fn_c_try_link "$LINENO"; then :
8462 ac_cv_lib_ssl_SSL_new=yes
8464 ac_cv_lib_ssl_SSL_new=no
8466 rm -f core conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_lib_save_LIBS
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
8471 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
8472 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
8474 SSLFLAGS="-DOPENSSL_DISABLE_OLD_DES_SUPPORT"
8475 SSLLIBS="-lssl $libcrypto"
8476 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8478 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
8483 if test "x${SSLLIBS}" != "x"; then
8488 if test "x${SSLLIBS}" != "x"; then
8489 CUPS_SERVERCERT="ssl/server.crt"
8490 CUPS_SERVERKEY="ssl/server.key"
8492 LIBS="$SAVELIBS $SSLLIBS"
8493 for ac_func in SSL_set_tlsext_host_name
8495 ac_fn_c_check_func "$LINENO" "SSL_set_tlsext_host_name" "ac_cv_func_SSL_set_tlsext_host_name"
8496 if test "x$ac_cv_func_SSL_set_tlsext_host_name" = xyes; then :
8497 cat >>confdefs.h <<_ACEOF
8498 #define HAVE_SSL_SET_TLSEXT_HOST_NAME 1
8514 if test $have_ssl = 1; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8516 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8518 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8519 IPPALIASES="http https ipps"
8520 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes -o x$enable_openssl = xyes; then
8521 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8530 EXPORT_SSLLIBS="$SSLLIBS"
8535 # Check whether --enable-pam was given.
8536 if test "${enable_pam+set}" = set; then :
8537 enableval=$enable_pam;
8541 # Check whether --with-pam_module was given.
8542 if test "${with_pam_module+set}" = set; then :
8543 withval=$with_pam_module;
8547 if test $uname = AIX; then
8554 PAMMOD="pam_unknown.so"
8555 PAMMODAUTH="pam_unknown.so"
8557 if test x$enable_pam != xno; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8561 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8562 if ${ac_cv_lib_dl_dlopen+:} false; then :
8563 $as_echo_n "(cached) " >&6
8565 ac_check_lib_save_LIBS=$LIBS
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8570 /* Override any GCC internal prototype to avoid an error.
8571 Use char because int might match the return type of a GCC
8572 builtin and then its argument prototype would still apply. */
8585 if ac_fn_c_try_link "$LINENO"; then :
8586 ac_cv_lib_dl_dlopen=yes
8588 ac_cv_lib_dl_dlopen=no
8590 rm -f core conftest.err conftest.$ac_objext \
8591 conftest$ac_exeext conftest.$ac_ext
8592 LIBS=$ac_check_lib_save_LIBS
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8595 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8596 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8597 cat >>confdefs.h <<_ACEOF
8598 #define HAVE_LIBDL 1
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8606 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8607 if ${ac_cv_lib_pam_pam_start+:} false; then :
8608 $as_echo_n "(cached) " >&6
8610 ac_check_lib_save_LIBS=$LIBS
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8615 /* Override any GCC internal prototype to avoid an error.
8616 Use char because int might match the return type of a GCC
8617 builtin and then its argument prototype would still apply. */
8625 return pam_start ();
8630 if ac_fn_c_try_link "$LINENO"; then :
8631 ac_cv_lib_pam_pam_start=yes
8633 ac_cv_lib_pam_pam_start=no
8635 rm -f core conftest.err conftest.$ac_objext \
8636 conftest$ac_exeext conftest.$ac_ext
8637 LIBS=$ac_check_lib_save_LIBS
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8640 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8641 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8642 cat >>confdefs.h <<_ACEOF
8643 #define HAVE_LIBPAM 1
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8651 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8652 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8653 $as_echo_n "(cached) " >&6
8655 ac_check_lib_save_LIBS=$LIBS
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8660 /* Override any GCC internal prototype to avoid an error.
8661 Use char because int might match the return type of a GCC
8662 builtin and then its argument prototype would still apply. */
8666 char pam_set_item ();
8670 return pam_set_item ();
8675 if ac_fn_c_try_link "$LINENO"; then :
8676 ac_cv_lib_pam_pam_set_item=yes
8678 ac_cv_lib_pam_pam_set_item=no
8680 rm -f core conftest.err conftest.$ac_objext \
8681 conftest$ac_exeext conftest.$ac_ext
8682 LIBS=$ac_check_lib_save_LIBS
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8685 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8686 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8687 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8692 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8693 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8694 $as_echo_n "(cached) " >&6
8696 ac_check_lib_save_LIBS=$LIBS
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8701 /* Override any GCC internal prototype to avoid an error.
8702 Use char because int might match the return type of a GCC
8703 builtin and then its argument prototype would still apply. */
8707 char pam_setcred ();
8711 return pam_setcred ();
8716 if ac_fn_c_try_link "$LINENO"; then :
8717 ac_cv_lib_pam_pam_setcred=yes
8719 ac_cv_lib_pam_pam_setcred=no
8721 rm -f core conftest.err conftest.$ac_objext \
8722 conftest$ac_exeext conftest.$ac_ext
8723 LIBS=$ac_check_lib_save_LIBS
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8726 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8727 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8728 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8732 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8733 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8738 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8739 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8740 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8741 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8748 if test x$ac_cv_lib_pam_pam_start != xno; then
8749 # Set the necessary libraries for PAM...
8750 if test x$ac_cv_lib_dl_dlopen != xno; then
8751 PAMLIBS="-lpam -ldl"
8756 # Find the PAM configuration directory, if any...
8757 for dir in /private/etc/pam.d /etc/pam.d; do
8758 if test -d $dir; then
8770 if test "x$with_pam_module" != x; then
8771 PAMFILE="pam.$with_pam_module"
8772 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8773 PAMFILE="pam.opendirectory"
8775 PAMFILE="pam.securityserver"
8780 # All others; this test might need to be updated
8781 # as Linux distributors move things around...
8782 if test "x$with_pam_module" != x; then
8783 PAMMOD="pam_${with_pam_module}.so"
8784 elif test -f /lib/security/pam_unix2.so; then
8785 PAMMOD="pam_unix2.so"
8786 elif test -f /lib/security/pam_unix.so; then
8787 PAMMOD="pam_unix.so"
8790 if test "x$PAMMOD" = xpam_unix.so; then
8791 PAMMODAUTH="$PAMMOD shadow nodelay"
8793 PAMMODAUTH="$PAMMOD nodelay"
8807 # Check whether --enable-largefile was given.
8808 if test "${enable_largefile+set}" = set; then :
8809 enableval=$enable_largefile;
8812 if test "$enable_largefile" != no; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8815 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8816 if ${ac_cv_sys_largefile_CC+:} false; then :
8817 $as_echo_n "(cached) " >&6
8819 ac_cv_sys_largefile_CC=no
8820 if test "$GCC" != yes; then
8823 # IRIX 6.2 and later do not support large files by default,
8824 # so use the C compiler's -n32 option if that helps.
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 #include <sys/types.h>
8828 /* Check that off_t can represent 2**63 - 1 correctly.
8829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8830 since some C++ compilers masquerading as C compilers
8831 incorrectly reject 9223372036854775807. */
8832 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8834 && LARGE_OFF_T % 2147483647 == 1)
8844 if ac_fn_c_try_compile "$LINENO"; then :
8847 rm -f core conftest.err conftest.$ac_objext
8849 if ac_fn_c_try_compile "$LINENO"; then :
8850 ac_cv_sys_largefile_CC=' -n32'; break
8852 rm -f core conftest.err conftest.$ac_objext
8856 rm -f conftest.$ac_ext
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8860 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8861 if test "$ac_cv_sys_largefile_CC" != no; then
8862 CC=$CC$ac_cv_sys_largefile_CC
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8866 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8867 if ${ac_cv_sys_file_offset_bits+:} false; then :
8868 $as_echo_n "(cached) " >&6
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873 #include <sys/types.h>
8874 /* Check that off_t can represent 2**63 - 1 correctly.
8875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8876 since some C++ compilers masquerading as C compilers
8877 incorrectly reject 9223372036854775807. */
8878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8880 && LARGE_OFF_T % 2147483647 == 1)
8890 if ac_fn_c_try_compile "$LINENO"; then :
8891 ac_cv_sys_file_offset_bits=no; break
8893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896 #define _FILE_OFFSET_BITS 64
8897 #include <sys/types.h>
8898 /* Check that off_t can represent 2**63 - 1 correctly.
8899 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8900 since some C++ compilers masquerading as C compilers
8901 incorrectly reject 9223372036854775807. */
8902 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8903 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8904 && LARGE_OFF_T % 2147483647 == 1)
8914 if ac_fn_c_try_compile "$LINENO"; then :
8915 ac_cv_sys_file_offset_bits=64; break
8917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8918 ac_cv_sys_file_offset_bits=unknown
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8923 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8924 case $ac_cv_sys_file_offset_bits in #(
8927 cat >>confdefs.h <<_ACEOF
8928 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8933 if test $ac_cv_sys_file_offset_bits = unknown; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8935 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8936 if ${ac_cv_sys_large_files+:} false; then :
8937 $as_echo_n "(cached) " >&6
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 #include <sys/types.h>
8943 /* Check that off_t can represent 2**63 - 1 correctly.
8944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8945 since some C++ compilers masquerading as C compilers
8946 incorrectly reject 9223372036854775807. */
8947 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8949 && LARGE_OFF_T % 2147483647 == 1)
8959 if ac_fn_c_try_compile "$LINENO"; then :
8960 ac_cv_sys_large_files=no; break
8962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 #define _LARGE_FILES 1
8966 #include <sys/types.h>
8967 /* Check that off_t can represent 2**63 - 1 correctly.
8968 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8969 since some C++ compilers masquerading as C compilers
8970 incorrectly reject 9223372036854775807. */
8971 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8972 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8973 && LARGE_OFF_T % 2147483647 == 1)
8983 if ac_fn_c_try_compile "$LINENO"; then :
8984 ac_cv_sys_large_files=1; break
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987 ac_cv_sys_large_files=unknown
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8992 $as_echo "$ac_cv_sys_large_files" >&6; }
8993 case $ac_cv_sys_large_files in #(
8996 cat >>confdefs.h <<_ACEOF
8997 #define _LARGE_FILES $ac_cv_sys_large_files
9007 if test x$enable_largefile != xno; then
9008 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
9010 if test x$ac_cv_sys_large_files = x1; then
9011 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
9014 if test x$ac_cv_sys_file_offset_bits = x64; then
9015 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9021 $as_echo_n "checking for long long int... " >&6; }
9022 if ${ac_cv_c_long_long+:} false; then :
9023 $as_echo_n "(cached) " >&6
9025 if test "$GCC" = yes; then
9026 ac_cv_c_long_long=yes
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9039 if ac_fn_c_try_compile "$LINENO"; then :
9040 ac_cv_c_long_long=yes
9042 ac_cv_c_long_long=no
9044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9048 $as_echo "$ac_cv_c_long_long" >&6; }
9050 if test $ac_cv_c_long_long = yes; then
9051 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9055 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9056 if test "x$ac_cv_func_strtoll" = xyes; then :
9057 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9064 # Check whether --enable-avahi was given.
9065 if test "${enable_avahi+set}" = set; then :
9066 enableval=$enable_avahi;
9069 # Check whether --enable-dnssd was given.
9070 if test "${enable_dnssd+set}" = set; then :
9071 enableval=$enable_dnssd;
9075 # Check whether --with-dnssd-libs was given.
9076 if test "${with_dnssd_libs+set}" = set; then :
9077 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9078 DSOFLAGS="-L$withval $DSOFLAGS"
9082 # Check whether --with-dnssd-includes was given.
9083 if test "${with_dnssd_includes+set}" = set; then :
9084 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9085 CPPFLAGS="-I$withval $CPPFLAGS"
9092 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno; then
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9094 $as_echo_n "checking for Avahi... " >&6; }
9095 if $PKGCONFIG --exists avahi-client; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9097 $as_echo "yes" >&6; }
9098 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`"
9099 DNSSDLIBS="`$PKGCONFIG --libs avahi-client`"
9100 DNSSD_BACKEND="dnssd"
9101 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9109 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9110 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9111 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9115 # Darwin and MacOS X...
9116 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9118 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9119 DNSSD_BACKEND="dnssd"
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9124 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9126 LIBS="$LIBS -ldns_sd"
9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9133 int constant = kDNSServiceFlagsShareConnection;
9134 unsigned char txtRecord[100];
9136 TXTRecordGetValuePtr(sizeof(txtRecord),
9137 txtRecord, "value", &valueLen);
9142 if ac_fn_c_try_compile "$LINENO"; then :
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9144 $as_echo "yes" >&6; }
9145 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9147 DNSSDLIBS="-ldns_sd"
9148 DNSSD_BACKEND="dnssd"
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151 $as_echo "no" >&6; }
9153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9169 # Check whether --enable-launchd was given.
9170 if test "${enable_launchd+set}" = set; then :
9171 enableval=$enable_launchd;
9175 DEFAULT_LAUNCHD_CONF=""
9178 if test x$enable_launchd != xno; then
9179 ac_fn_c_check_func "$LINENO" "launch_msg" "ac_cv_func_launch_msg"
9180 if test "x$ac_cv_func_launch_msg" = xyes; then :
9181 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9185 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9186 if test "x$ac_cv_header_launch_h" = xyes; then :
9187 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9196 DEFAULT_LAUNCHD_CONF="/System/Library/LaunchDaemons/org.cups.cupsd.plist"
9197 # liblaunch is already part of libSystem
9200 # All others; this test will need to be updated
9210 LANGUAGES="`ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`"
9213 # Check whether --with-languages was given.
9214 if test "${with_languages+set}" = set; then :
9215 withval=$with_languages;
9217 none | no) LANGUAGES="" ;;
9219 *) LANGUAGES="$withval" ;;
9226 # Check whether --with-bundledir was given.
9227 if test "${with_bundledir+set}" = set; then :
9228 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9230 if test "x$uname" = xDarwin -a $uversion -ge 100; then
9231 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9240 if test "x$CUPS_BUNDLEDIR" != x; then
9241 cat >>confdefs.h <<_ACEOF
9242 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9248 # Check whether --with-config_file_perm was given.
9249 if test "${with_config_file_perm+set}" = set; then :
9250 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9252 if test "x$uname" = xDarwin; then
9253 CUPS_CONFIG_FILE_PERM="644"
9255 CUPS_CONFIG_FILE_PERM="640"
9260 cat >>confdefs.h <<_ACEOF
9261 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9266 # Check whether --with-cupsd_file_perm was given.
9267 if test "${with_cupsd_file_perm+set}" = set; then :
9268 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9270 CUPS_CUPSD_FILE_PERM="500"
9276 # Check whether --with-log_file_perm was given.
9277 if test "${with_log_file_perm+set}" = set; then :
9278 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9280 CUPS_LOG_FILE_PERM="644"
9284 cat >>confdefs.h <<_ACEOF
9285 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9290 # Check whether --with-fatal_errors was given.
9291 if test "${with_fatal_errors+set}" = set; then :
9292 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9294 CUPS_FATAL_ERRORS="config"
9298 cat >>confdefs.h <<_ACEOF
9299 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9304 # Check whether --with-log_level was given.
9305 if test "${with_log_level+set}" = set; then :
9306 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9308 CUPS_LOG_LEVEL="warn"
9312 cat >>confdefs.h <<_ACEOF
9313 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9318 # Check whether --with-access_log_level was given.
9319 if test "${with_access_log_level+set}" = set; then :
9320 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9322 CUPS_ACCESS_LOG_LEVEL="actions"
9326 cat >>confdefs.h <<_ACEOF
9327 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9331 # Check whether --enable-browsing was given.
9332 if test "${enable_browsing+set}" = set; then :
9333 enableval=$enable_browsing;
9336 if test "x$enable_browsing" = xno; then
9338 cat >>confdefs.h <<_ACEOF
9339 #define CUPS_DEFAULT_BROWSING 0
9344 cat >>confdefs.h <<_ACEOF
9345 #define CUPS_DEFAULT_BROWSING 1
9352 # Check whether --with-local_protocols was given.
9353 if test "${with_local_protocols+set}" = set; then :
9354 withval=$with_local_protocols; default_local_protocols="$withval"
9356 default_local_protocols="default"
9360 if test x$with_local_protocols != xno; then
9361 if test "x$default_local_protocols" = "xdefault"; then
9362 if test "x$DNSSD_BACKEND" != "x"; then
9363 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9365 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9368 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9371 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9375 cat >>confdefs.h <<_ACEOF
9376 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9380 # Check whether --enable-default_shared was given.
9381 if test "${enable_default_shared+set}" = set; then :
9382 enableval=$enable_default_shared;
9385 if test "x$enable_default_shared" = xno; then
9386 CUPS_DEFAULT_SHARED="No"
9387 cat >>confdefs.h <<_ACEOF
9388 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9392 CUPS_DEFAULT_SHARED="Yes"
9393 cat >>confdefs.h <<_ACEOF
9394 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9401 # Check whether --with-cups_user was given.
9402 if test "${with_cups_user+set}" = set; then :
9403 withval=$with_cups_user; CUPS_USER="$withval"
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9406 $as_echo_n "checking for default print user... " >&6; }
9407 if test x$uname = xDarwin; then
9408 if test x`id -u _lp 2>/dev/null` = x; then
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9414 $as_echo "$CUPS_USER" >&6; }
9415 elif test -f /etc/passwd; then
9417 for user in lp lpd guest daemon nobody; do
9418 if test "`grep \^${user}: /etc/passwd`" != ""; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9421 $as_echo "$user" >&6; }
9426 if test x$CUPS_USER = x; then
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9429 $as_echo "not found" >&6; }
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9434 $as_echo "no password file" >&6; }
9439 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9440 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9444 # Check whether --with-cups_group was given.
9445 if test "${with_cups_group+set}" = set; then :
9446 withval=$with_cups_group; CUPS_GROUP="$withval"
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9449 $as_echo_n "checking for default print group... " >&6; }
9450 if test x$uname = xDarwin; then
9451 if test x`id -g _lp 2>/dev/null` = x; then
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9457 $as_echo "$CUPS_GROUP" >&6; }
9458 elif test -f /etc/group; then
9459 GROUP_LIST="_lp lp nobody"
9461 for group in $GROUP_LIST; do
9462 if test "`grep \^${group}: /etc/group`" != ""; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9465 $as_echo "$group" >&6; }
9470 if test x$CUPS_GROUP = x; then
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9473 $as_echo "not found" >&6; }
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9478 $as_echo "no group file" >&6; }
9483 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9484 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9488 # Check whether --with-system_groups was given.
9489 if test "${with_system_groups+set}" = set; then :
9490 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9492 if test x$uname = xDarwin; then
9493 CUPS_SYSTEM_GROUPS="admin"
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9496 $as_echo_n "checking for default system groups... " >&6; }
9497 if test -f /etc/group; then
9498 CUPS_SYSTEM_GROUPS=""
9499 GROUP_LIST="lpadmin sys system root"
9500 for group in $GROUP_LIST; do
9501 if test "`grep \^${group}: /etc/group`" != ""; then
9502 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9503 CUPS_SYSTEM_GROUPS="$group"
9505 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9510 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9511 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9513 $as_echo "no groups found" >&6; }
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9516 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9519 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9521 $as_echo "no group file" >&6; }
9527 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS | awk '{print $1}'`"
9529 for group in $CUPS_SYSTEM_GROUPS; do
9530 if test "x$CUPS_GROUP" = "x$group"; then
9531 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9540 cat >>confdefs.h <<_ACEOF
9541 #define CUPS_DEFAULT_USER "$CUPS_USER"
9544 cat >>confdefs.h <<_ACEOF
9545 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9548 cat >>confdefs.h <<_ACEOF
9549 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9554 # Check whether --with-printcap was given.
9555 if test "${with_printcap+set}" = set; then :
9556 withval=$with_printcap; default_printcap="$withval"
9558 default_printcap="default"
9562 if test x$default_printcap != xno; then
9563 if test "x$default_printcap" = "xdefault"; then
9566 if test $uversion -ge 90; then
9567 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9569 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9573 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9576 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9580 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9583 CUPS_DEFAULT_PRINTCAP=""
9587 cat >>confdefs.h <<_ACEOF
9588 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9593 # Check whether --with-lpdconfigfile was given.
9594 if test "${with_lpdconfigfile+set}" = set; then :
9595 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9597 default_lpdconfigfile="default"
9601 if test x$default_lpdconfigfile != xno; then
9602 if test "x$default_lpdconfigfile" = "xdefault"; then
9605 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9608 if test "x$XINETD" != x; then
9609 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9611 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9616 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9619 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9622 cat >>confdefs.h <<_ACEOF
9623 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9629 # Check whether --with-smbconfigfile was given.
9630 if test "${with_smbconfigfile+set}" = set; then :
9631 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9633 default_smbconfigfile="default"
9637 if test x$default_smbconfigfile != xno; then
9638 if test "x$default_smbconfigfile" = "xdefault"; then
9639 if test -f /etc/smb.conf; then
9640 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9642 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9645 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9648 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9651 cat >>confdefs.h <<_ACEOF
9652 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9658 # Check whether --with-max-copies was given.
9659 if test "${with_max_copies+set}" = set; then :
9660 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9662 CUPS_MAX_COPIES="9999"
9667 cat >>confdefs.h <<_ACEOF
9668 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9672 # Check whether --enable-raw_printing was given.
9673 if test "${enable_raw_printing+set}" = set; then :
9674 enableval=$enable_raw_printing;
9677 if test "x$enable_raw_printing" != xno; then
9678 DEFAULT_RAW_PRINTING=""
9680 DEFAULT_RAW_PRINTING="#"
9685 # Check whether --with-snmp-address was given.
9686 if test "${with_snmp_address+set}" = set; then :
9687 withval=$with_snmp_address; if test "x$withval" = x; then
9688 CUPS_SNMP_ADDRESS=""
9690 CUPS_SNMP_ADDRESS="Address $withval"
9693 if test "x$uname" = xDarwin; then
9694 CUPS_SNMP_ADDRESS=""
9696 CUPS_SNMP_ADDRESS="Address @LOCAL"
9702 # Check whether --with-snmp-community was given.
9703 if test "${with_snmp_community+set}" = set; then :
9704 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9706 CUPS_SNMP_COMMUNITY="Community public"
9714 # Check whether --with-ipp-port was given.
9715 if test "${with_ipp_port+set}" = set; then :
9716 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
9718 DEFAULT_IPP_PORT="631"
9723 cat >>confdefs.h <<_ACEOF
9724 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
9728 # Check whether --enable-webif was given.
9729 if test "${enable_webif+set}" = set; then :
9730 enableval=$enable_webif;
9733 case "x$enable_webif" in
9736 CUPS_DEFAULT_WEBIF=0
9740 CUPS_DEFAULT_WEBIF=1
9743 if test $uname = Darwin; then
9745 CUPS_DEFAULT_WEBIF=0
9748 CUPS_DEFAULT_WEBIF=1
9754 cat >>confdefs.h <<_ACEOF
9755 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
9762 # Check whether --with-java was given.
9763 if test "${with_java+set}" = set; then :
9764 withval=$with_java; CUPS_JAVA="$withval"
9770 if test "x$CUPS_JAVA" = x; then
9771 # Extract the first word of "java", so it can be a program name with args.
9772 set dummy java; ac_word=$2
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774 $as_echo_n "checking for $ac_word... " >&6; }
9775 if ${ac_cv_path_JAVA+:} false; then :
9776 $as_echo_n "(cached) " >&6
9780 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
9791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9801 JAVA=$ac_cv_path_JAVA
9802 if test -n "$JAVA"; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
9804 $as_echo "$JAVA" >&6; }
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 $as_echo "no" >&6; }
9814 cat >>confdefs.h <<_ACEOF
9815 #define CUPS_JAVA "$CUPS_JAVA"
9819 if test "x$CUPS_JAVA" != x; then
9820 $as_echo "#define HAVE_JAVA 1" >>confdefs.h
9825 # Check whether --with-perl was given.
9826 if test "${with_perl+set}" = set; then :
9827 withval=$with_perl; CUPS_PERL="$withval"
9833 if test "x$CUPS_PERL" = x; then
9834 # Extract the first word of "perl", so it can be a program name with args.
9835 set dummy perl; ac_word=$2
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 $as_echo_n "checking for $ac_word... " >&6; }
9838 if ${ac_cv_path_PERL+:} false; then :
9839 $as_echo_n "(cached) " >&6
9843 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9850 test -z "$as_dir" && as_dir=.
9851 for ac_exec_ext in '' $ac_executable_extensions; do
9852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9853 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 PERL=$ac_cv_path_PERL
9865 if test -n "$PERL"; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9867 $as_echo "$PERL" >&6; }
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9877 cat >>confdefs.h <<_ACEOF
9878 #define CUPS_PERL "$CUPS_PERL"
9882 if test "x$CUPS_PERL" != x; then
9883 $as_echo "#define HAVE_PERL 1" >>confdefs.h
9888 # Check whether --with-php was given.
9889 if test "${with_php+set}" = set; then :
9890 withval=$with_php; CUPS_PHP="$withval"
9896 if test "x$CUPS_PHP" = x; then
9897 # Extract the first word of "php-cgi", so it can be a program name with args.
9898 set dummy php-cgi; ac_word=$2
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9900 $as_echo_n "checking for $ac_word... " >&6; }
9901 if ${ac_cv_path_PHPCGI+:} false; then :
9902 $as_echo_n "(cached) " >&6
9906 ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
9909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 test -z "$as_dir" && as_dir=.
9914 for ac_exec_ext in '' $ac_executable_extensions; do
9915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9916 ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
9917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9927 PHPCGI=$ac_cv_path_PHPCGI
9928 if test -n "$PHPCGI"; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
9930 $as_echo "$PHPCGI" >&6; }
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; }
9937 if test "x$PHPCGI" = x; then
9938 # Extract the first word of "php", so it can be a program name with args.
9939 set dummy php; ac_word=$2
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9941 $as_echo_n "checking for $ac_word... " >&6; }
9942 if ${ac_cv_path_PHP+:} false; then :
9943 $as_echo_n "(cached) " >&6
9947 ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954 test -z "$as_dir" && as_dir=.
9955 for ac_exec_ext in '' $ac_executable_extensions; do
9956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9957 ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
9958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9969 if test -n "$PHP"; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
9971 $as_echo "$PHP" >&6; }
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974 $as_echo "no" >&6; }
9984 cat >>confdefs.h <<_ACEOF
9985 #define CUPS_PHP "$CUPS_PHP"
9989 if test "x$CUPS_PHP" = x; then
9992 $as_echo "#define HAVE_PHP 1" >>confdefs.h
9997 # Check whether --with-python was given.
9998 if test "${with_python+set}" = set; then :
9999 withval=$with_python; CUPS_PYTHON="$withval"
10005 if test "x$CUPS_PYTHON" = x; then
10006 # Extract the first word of "python", so it can be a program name with args.
10007 set dummy python; ac_word=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if ${ac_cv_path_PYTHON+:} false; then :
10011 $as_echo_n "(cached) " >&6
10015 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10025 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 PYTHON=$ac_cv_path_PYTHON
10037 if test -n "$PYTHON"; then
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10039 $as_echo "$PYTHON" >&6; }
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 $as_echo "no" >&6; }
10046 CUPS_PYTHON="$PYTHON"
10049 cat >>confdefs.h <<_ACEOF
10050 #define CUPS_PYTHON "$CUPS_PYTHON"
10054 if test "x$CUPS_PYTHON" != x; then
10055 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10061 INSTALL_LANGUAGES=""
10062 UNINSTALL_LANGUAGES=""
10064 if test "x$LANGUAGES" != x; then
10065 INSTALL_LANGUAGES="install-languages"
10066 UNINSTALL_LANGUAGES="uninstall-languages"
10067 for lang in $LANGUAGES; do
10068 if test -f doc/$lang/index.html.in; then
10069 LANGFILES="$LANGFILES doc/$lang/index.html"
10072 if test -f templates/$lang/header.tmpl.in; then
10073 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10076 elif test "x$CUPS_BUNDLEDIR" != x; then
10077 INSTALL_LANGUAGES="install-langbundle"
10078 UNINSTALL_LANGUAGES="uninstall-langbundle"
10084 ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config data/testprint desktop/cups.desktop doc/help/ref-cups-files-conf.html doc/help/ref-cupsd-conf.html doc/help/standard.html doc/index.html man/client.conf.man man/cups-deviced.man man/cups-driverd.man man/cups-files.conf.man man/cups-lpd.man man/cups-snmp.man man/cupsaddsmb.man man/cupsd.conf.man man/cupsd.man man/lpoptions.man scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist templates/header.tmpl packaging/cups.list $LANGFILES"
10086 cat >confcache <<\_ACEOF
10087 # This file is a shell script that caches the results of configure
10088 # tests run on this system so they can be shared between configure
10089 # scripts and configure runs, see configure's option --config-cache.
10090 # It is not useful on other systems. If it contains results you don't
10091 # want to keep, you may remove or edit it.
10093 # config.status only pays attention to the cache file if you give it
10094 # the --recheck option to rerun configure.
10096 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10097 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10098 # following values.
10102 # The following way of writing the cache mishandles newlines in values,
10103 # but we know of no workaround that is simple, portable, and efficient.
10104 # So, we kill variables containing newlines.
10105 # Ultrix sh set writes to stderr and can't be redirected directly,
10106 # and sets the high bit in the cache file unless we assign to the vars.
10108 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10109 eval ac_val=\$$ac_var
10113 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10114 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10117 _ | IFS | as_nl) ;; #(
10118 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10119 *) { eval $ac_var=; unset $ac_var;} ;;
10125 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10126 *${as_nl}ac_space=\ *)
10127 # `set' does not quote correctly, so add quotes: double-quote
10128 # substitution turns \\\\ into \\, and sed turns \\ into \.
10131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10134 # `set' quotes correctly as required by POSIX, so do not add quotes.
10135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10144 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10146 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10148 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10149 if test -w "$cache_file"; then
10150 if test "x$cache_file" != "x/dev/null"; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10152 $as_echo "$as_me: updating cache $cache_file" >&6;}
10153 if test ! -f "$cache_file" || test -h "$cache_file"; then
10154 cat confcache >"$cache_file"
10156 case $cache_file in #(
10158 mv -f confcache "$cache_file"$$ &&
10159 mv -f "$cache_file"$$ "$cache_file" ;; #(
10161 mv -f confcache "$cache_file" ;;
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10167 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10172 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10173 # Let make expand exec_prefix.
10174 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10176 DEFS=-DHAVE_CONFIG_H
10181 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10182 # 1. Remove the extension, and $U if already installed.
10183 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10184 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10185 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10186 # will be set to the directory where LIBOBJS objects are built.
10187 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10188 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10190 LIBOBJS=$ac_libobjs
10192 LTLIBOBJS=$ac_ltlibobjs
10196 : "${CONFIG_STATUS=./config.status}"
10198 ac_clean_files_save=$ac_clean_files
10199 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10201 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10203 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10205 # Generated by $as_me.
10206 # Run this file to recreate the current configuration.
10207 # Compiler output produced by configure, useful for debugging
10208 # configure, is in config.log if it exists.
10211 ac_cs_recheck=false
10214 SHELL=\${CONFIG_SHELL-$SHELL}
10217 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10218 ## -------------------- ##
10219 ## M4sh Initialization. ##
10220 ## -------------------- ##
10222 # Be more Bourne compatible
10223 DUALCASE=1; export DUALCASE # for MKS sh
10224 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10227 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10228 # is contrary to our usage. Disable this feature.
10229 alias -g '${1+"$@"}'='"$@"'
10230 setopt NO_GLOB_SUBST
10232 case `(set -o) 2>/dev/null` in #(
10244 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10245 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10246 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10247 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10248 # Prefer a ksh shell builtin over an external printf program on Solaris,
10249 # but without wasting forks for bash or zsh.
10250 if test -z "$BASH_VERSION$ZSH_VERSION" \
10251 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10252 as_echo='print -r --'
10253 as_echo_n='print -rn --'
10254 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10255 as_echo='printf %s\n'
10256 as_echo_n='printf %s'
10258 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10259 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10260 as_echo_n='/usr/ucb/echo -n'
10262 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10263 as_echo_n_body='eval
10267 expr "X$arg" : "X\\(.*\\)$as_nl";
10268 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10270 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10272 export as_echo_n_body
10273 as_echo_n='sh -c $as_echo_n_body as_echo'
10275 export as_echo_body
10276 as_echo='sh -c $as_echo_body as_echo'
10279 # The user is always right.
10280 if test "${PATH_SEPARATOR+set}" != set; then
10282 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10283 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10290 # We need space, tab and new line, in precisely that order. Quoting is
10291 # there to prevent editors from complaining about space-tab.
10292 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10293 # splitting by setting IFS to empty value.)
10296 # Find who we are. Look in the path if we contain no directory separator.
10299 *[\\/]* ) as_myself=$0 ;;
10300 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10301 for as_dir in $PATH
10304 test -z "$as_dir" && as_dir=.
10305 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10311 # We did not find ourselves, most probably we were run as `sh COMMAND'
10312 # in which case we are not to be found in the path.
10313 if test "x$as_myself" = x; then
10316 if test ! -f "$as_myself"; then
10317 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10321 # Unset variables that we do not need and which cause bugs (e.g. in
10322 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10323 # suppresses any "Segmentation fault" message there. '((' could
10324 # trigger a bug in pdksh 5.2.14.
10325 for as_var in BASH_ENV ENV MAIL MAILPATH
10326 do eval test x\${$as_var+set} = xset \
10327 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10340 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10343 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10344 # ----------------------------------------
10345 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10346 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10347 # script with STATUS, using 1 if that was 0.
10350 as_status=$1; test $as_status -eq 0 && as_status=1
10352 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10353 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10355 $as_echo "$as_me: error: $2" >&2
10356 as_fn_exit $as_status
10360 # as_fn_set_status STATUS
10361 # -----------------------
10362 # Set $? to STATUS, without forking.
10363 as_fn_set_status ()
10366 } # as_fn_set_status
10368 # as_fn_exit STATUS
10369 # -----------------
10370 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10374 as_fn_set_status $1
10380 # Portably unset VAR.
10383 { eval $1=; unset $1;}
10385 as_unset=as_fn_unset
10386 # as_fn_append VAR VALUE
10387 # ----------------------
10388 # Append the text in VALUE to the end of the definition contained in VAR. Take
10389 # advantage of any shell optimizations that allow amortized linear growth over
10390 # repeated appends, instead of the typical quadratic growth present in naive
10392 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10393 eval 'as_fn_append ()
10404 # as_fn_arith ARG...
10405 # ------------------
10406 # Perform arithmetic evaluation on the ARGs, and store the result in the
10407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10408 # must be portable across $(()) and expr.
10409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10410 eval 'as_fn_arith ()
10417 as_val=`expr "$@" || test $? -eq 1`
10422 if expr a : '\(a\)' >/dev/null 2>&1 &&
10423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10430 as_basename=basename
10435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10441 as_me=`$as_basename -- "$0" ||
10442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10443 X"$0" : 'X\(//\)$' \| \
10444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10446 sed '/^.*\/\([^/][^/]*\)\/*$/{
10460 # Avoid depending upon Character Ranges.
10461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10464 as_cr_digits='0123456789'
10465 as_cr_alnum=$as_cr_Letters$as_cr_digits
10467 ECHO_C= ECHO_N= ECHO_T=
10468 case `echo -n x` in #(((((
10470 case `echo 'xy\c'` in
10471 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10473 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10480 rm -f conf$$ conf$$.exe conf$$.file
10481 if test -d conf$$.dir; then
10482 rm -f conf$$.dir/conf$$.file
10485 mkdir conf$$.dir 2>/dev/null
10487 if (echo >conf$$.file) 2>/dev/null; then
10488 if ln -s conf$$.file conf$$ 2>/dev/null; then
10490 # ... but there are two gotchas:
10491 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10492 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10493 # In both cases, we have to default to `cp -p'.
10494 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10496 elif ln conf$$.file conf$$ 2>/dev/null; then
10504 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10505 rmdir conf$$.dir 2>/dev/null
10510 # Create "$as_dir" as a directory, including parents if necessary.
10515 -*) as_dir=./$as_dir;;
10517 test -d "$as_dir" || eval $as_mkdir_p || {
10521 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10522 *) as_qdir=$as_dir;;
10524 as_dirs="'$as_qdir' $as_dirs"
10525 as_dir=`$as_dirname -- "$as_dir" ||
10526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10527 X"$as_dir" : 'X\(//\)[^/]' \| \
10528 X"$as_dir" : 'X\(//\)$' \| \
10529 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10530 $as_echo X"$as_dir" |
10531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10535 /^X\(\/\/\)[^/].*/{
10548 test -d "$as_dir" && break
10550 test -z "$as_dirs" || eval "mkdir $as_dirs"
10551 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10555 if mkdir -p . 2>/dev/null; then
10556 as_mkdir_p='mkdir -p "$as_dir"'
10558 test -d ./-p && rmdir ./-p
10562 if test -x / >/dev/null 2>&1; then
10563 as_test_x='test -x'
10565 if ls -dL / >/dev/null 2>&1; then
10572 if test -d "$1"; then
10578 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10579 ???[sx]*):;;*)false;;esac;fi
10583 as_executable_p=$as_test_x
10585 # Sed expression to map a string onto a valid CPP name.
10586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10588 # Sed expression to map a string onto a valid variable name.
10589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10593 ## ----------------------------------- ##
10594 ## Main body of $CONFIG_STATUS script. ##
10595 ## ----------------------------------- ##
10597 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10600 # Save the log message, to keep $0 and so on meaningful, and to
10601 # report actual input values of CONFIG_FILES etc. instead of their
10602 # values after options handling.
10604 This file was extended by $as_me, which was
10605 generated by GNU Autoconf 2.68. Invocation command line was
10607 CONFIG_FILES = $CONFIG_FILES
10608 CONFIG_HEADERS = $CONFIG_HEADERS
10609 CONFIG_LINKS = $CONFIG_LINKS
10610 CONFIG_COMMANDS = $CONFIG_COMMANDS
10613 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10618 case $ac_config_files in *"
10619 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10622 case $ac_config_headers in *"
10623 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10628 # Files that config.status was made for.
10629 config_files="$ac_config_files"
10630 config_headers="$ac_config_headers"
10634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10636 \`$as_me' instantiates files and other configuration actions
10637 from templates according to the current configuration. Unless the files
10638 and actions are specified as TAGs, all are instantiated by default.
10640 Usage: $0 [OPTION]... [TAG]...
10642 -h, --help print this help, then exit
10643 -V, --version print version number and configuration settings, then exit
10644 --config print configuration, then exit
10645 -q, --quiet, --silent
10646 do not print progress messages
10647 -d, --debug don't remove temporary files
10648 --recheck update $as_me by reconfiguring in the same conditions
10649 --file=FILE[:TEMPLATE]
10650 instantiate the configuration file FILE
10651 --header=FILE[:TEMPLATE]
10652 instantiate the configuration header FILE
10654 Configuration files:
10657 Configuration headers:
10660 Report bugs to the package provider."
10663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10664 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10667 configured by $0, generated by GNU Autoconf 2.68,
10668 with options \\"\$ac_cs_config\\"
10670 Copyright (C) 2010 Free Software Foundation, Inc.
10671 This config.status script is free software; the Free Software Foundation
10672 gives unlimited permission to copy, distribute and modify it."
10677 test -n "\$AWK" || AWK=awk
10680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10681 # The default lists apply if the user does not specify any file.
10687 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10688 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10692 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10704 # Handling of the options.
10705 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10707 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10708 $as_echo "$ac_cs_version"; exit ;;
10709 --config | --confi | --conf | --con | --co | --c )
10710 $as_echo "$ac_cs_config"; exit ;;
10711 --debug | --debu | --deb | --de | --d | -d )
10713 --file | --fil | --fi | --f )
10716 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10717 '') as_fn_error $? "missing file argument" ;;
10719 as_fn_append CONFIG_FILES " '$ac_optarg'"
10720 ac_need_defaults=false;;
10721 --header | --heade | --head | --hea )
10724 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10726 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10727 ac_need_defaults=false;;
10729 # Conflict between --help and --header
10730 as_fn_error $? "ambiguous option: \`$1'
10731 Try \`$0 --help' for more information.";;
10732 --help | --hel | -h )
10733 $as_echo "$ac_cs_usage"; exit ;;
10734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10735 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10738 # This is an error.
10739 -*) as_fn_error $? "unrecognized option: \`$1'
10740 Try \`$0 --help' for more information." ;;
10742 *) as_fn_append ac_config_targets " $1"
10743 ac_need_defaults=false ;;
10749 ac_configure_extra_args=
10751 if $ac_cs_silent; then
10753 ac_configure_extra_args="$ac_configure_extra_args --silent"
10757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10758 if \$ac_cs_recheck; then
10759 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10761 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10762 CONFIG_SHELL='$SHELL'
10763 export CONFIG_SHELL
10768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10772 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10773 ## Running $as_me. ##
10779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10784 # Handling of arguments.
10785 for ac_config_target in $ac_config_targets
10787 case $ac_config_target in
10788 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10789 "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;;
10790 "conf/cups-files.conf") CONFIG_FILES="$CONFIG_FILES conf/cups-files.conf" ;;
10791 "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;;
10792 "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;;
10793 "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;;
10794 "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;;
10795 "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;;
10796 "data/testprint") CONFIG_FILES="$CONFIG_FILES data/testprint" ;;
10797 "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;;
10798 "doc/help/ref-cups-files-conf.html") CONFIG_FILES="$CONFIG_FILES doc/help/ref-cups-files-conf.html" ;;
10799 "doc/help/ref-cupsd-conf.html") CONFIG_FILES="$CONFIG_FILES doc/help/ref-cupsd-conf.html" ;;
10800 "doc/help/standard.html") CONFIG_FILES="$CONFIG_FILES doc/help/standard.html" ;;
10801 "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;;
10802 "man/client.conf.man") CONFIG_FILES="$CONFIG_FILES man/client.conf.man" ;;
10803 "man/cups-deviced.man") CONFIG_FILES="$CONFIG_FILES man/cups-deviced.man" ;;
10804 "man/cups-driverd.man") CONFIG_FILES="$CONFIG_FILES man/cups-driverd.man" ;;
10805 "man/cups-files.conf.man") CONFIG_FILES="$CONFIG_FILES man/cups-files.conf.man" ;;
10806 "man/cups-lpd.man") CONFIG_FILES="$CONFIG_FILES man/cups-lpd.man" ;;
10807 "man/cups-snmp.man") CONFIG_FILES="$CONFIG_FILES man/cups-snmp.man" ;;
10808 "man/cupsaddsmb.man") CONFIG_FILES="$CONFIG_FILES man/cupsaddsmb.man" ;;
10809 "man/cupsd.conf.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.conf.man" ;;
10810 "man/cupsd.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.man" ;;
10811 "man/lpoptions.man") CONFIG_FILES="$CONFIG_FILES man/lpoptions.man" ;;
10812 "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10813 "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;;
10814 "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;;
10815 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10816 "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;;
10817 "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;;
10818 "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;;
10820 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10825 # If the user did not use the arguments to specify the items to instantiate,
10826 # then the envvar interface is used. Set only those that are not.
10827 # We use the long form for the default assignment because of an extremely
10828 # bizarre bug on SunOS 4.1.3.
10829 if $ac_need_defaults; then
10830 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10831 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10834 # Have a temporary directory for convenience. Make it in the build tree
10835 # simply because there is no reason against having it here, and in addition,
10836 # creating and moving files from /tmp can sometimes cause problems.
10837 # Hook for its removal unless debugging.
10838 # Note that there is a small window in which the directory will not be cleaned:
10839 # after its creation but before its name has been assigned to `$tmp'.
10843 trap 'exit_status=$?
10844 : "${ac_tmp:=$tmp}"
10845 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10847 trap 'as_fn_exit 1' 1 2 13 15
10849 # Create a (secure) tmp directory for tmp files.
10852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10856 tmp=./conf$$-$RANDOM
10857 (umask 077 && mkdir "$tmp")
10858 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10861 # Set up the scripts for CONFIG_FILES section.
10862 # No need to generate them if there are no CONFIG_FILES.
10863 # This happens for instance with `./config.status config.h'.
10864 if test -n "$CONFIG_FILES"; then
10867 ac_cr=`echo X | tr X '\015'`
10868 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10869 # But we know of no other shell where ac_cr would be empty at this
10870 # point, so we can use a bashism as a fallback.
10871 if test "x$ac_cr" = x; then
10872 eval ac_cr=\$\'\\r\'
10874 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10875 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10878 ac_cs_awk_cr=$ac_cr
10881 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10886 echo "cat >conf$$subs.awk <<_ACEOF" &&
10887 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10889 } >conf$$subs.sh ||
10890 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10891 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10893 for ac_last_try in false false false false false :; do
10894 . ./conf$$subs.sh ||
10895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10897 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10898 if test $ac_delim_n = $ac_delim_num; then
10900 elif $ac_last_try; then
10901 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10906 rm -f conf$$subs.sh
10908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10909 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10913 s/^/S["/; s/!.*/"]=/
10923 s/\(.\{148\}\)..*/\1/
10925 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10930 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10937 s/\(.\{148\}\)..*/\1/
10939 s/["\\]/\\&/g; s/^/"/; s/$/"/
10943 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10948 ' <conf$$subs.awk | sed '
10953 ' >>$CONFIG_STATUS || ac_write_fail=1
10954 rm -f conf$$subs.awk
10955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10957 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10958 for (key in S) S_is_set[key] = 1
10964 nfields = split(line, field, "@")
10966 len = length(field[1])
10967 for (i = 2; i < nfields; i++) {
10969 keylen = length(key)
10970 if (S_is_set[key]) {
10972 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10973 len += length(value) + length(field[++i])
10984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10985 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10986 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10989 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10990 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10993 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10994 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10995 # trailing colons and then remove the whole line if VPATH becomes empty
10996 # (actually we leave an empty line to preserve line numbers).
10997 if test "x$srcdir" = x.; then
10998 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11017 fi # test -n "$CONFIG_FILES"
11019 # Set up the scripts for CONFIG_HEADERS section.
11020 # No need to generate them if there are no CONFIG_HEADERS.
11021 # This happens for instance with `./config.status Makefile'.
11022 if test -n "$CONFIG_HEADERS"; then
11023 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11027 # Transform confdefs.h into an awk script `defines.awk', embedded as
11028 # here-document in config.status, that substitutes the proper values into
11029 # config.h.in to produce config.h.
11031 # Create a delimiter string that does not exist in confdefs.h, to ease
11032 # handling of long lines.
11034 for ac_last_try in false false :; do
11035 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11036 if test -z "$ac_tt"; then
11038 elif $ac_last_try; then
11039 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11045 # For the awk script, D is an array of macro values keyed by name,
11046 # likewise P contains macro parameters if any. Preserve backslash
11047 # newline sequences.
11049 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11051 s/.\{148\}/&'"$ac_delim"'/g
11054 s/^[ ]*#[ ]*define[ ][ ]*/ /
11061 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11063 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11067 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11068 D["\1"]=" \3\\\\\\n"\\/p
11070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11075 s/.\{148\}/&'"$ac_delim"'/g
11080 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11083 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11085 ' <confdefs.h | sed '
11086 s/'"$ac_delim"'/"\\\
11087 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11090 for (key in D) D_is_set[key] = 1
11093 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11095 split(line, arg, " ")
11096 if (arg[1] == "#") {
11100 defundef = substr(arg[1], 2)
11103 split(mac1, mac2, "(") #)
11105 prefix = substr(line, 1, index(line, defundef) - 1)
11106 if (D_is_set[macro]) {
11107 # Preserve the white space surrounding the "#".
11108 print prefix "define", macro P[macro] D[macro]
11111 # Replace #undef with comments. This is necessary, for example,
11112 # in the case of _POSIX_SOURCE, which is predefined and required
11113 # on some systems where configure will not decide to define it.
11114 if (defundef == "undef") {
11115 print "/*", prefix defundef, macro, "*/"
11123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11124 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11125 fi # test -n "$CONFIG_HEADERS"
11128 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11133 :[FHLC]) ac_mode=$ac_tag; continue;;
11135 case $ac_mode$ac_tag in
11137 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11138 :[FH]-) ac_tag=-:-;;
11139 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11156 -) ac_f="$ac_tmp/stdin";;
11157 *) # Look for the file first in the build tree, then in the source tree
11158 # (if the path is not absolute). The absolute path cannot be DOS-style,
11159 # because $ac_f cannot contain `:'.
11163 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11165 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11167 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11168 as_fn_append ac_file_inputs " '$ac_f'"
11171 # Let's still pretend it is `configure' which instantiates (i.e., don't
11172 # use $as_me), people would be surprised to read:
11173 # /* config.h. Generated by config.status. */
11174 configure_input='Generated from '`
11175 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11177 if test x"$ac_file" != x-; then
11178 configure_input="$ac_file. $configure_input"
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11180 $as_echo "$as_me: creating $ac_file" >&6;}
11182 # Neutralize special characters interpreted by sed in replacement strings.
11183 case $configure_input in #(
11184 *\&* | *\|* | *\\* )
11185 ac_sed_conf_input=`$as_echo "$configure_input" |
11186 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11187 *) ac_sed_conf_input=$configure_input;;
11191 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11197 ac_dir=`$as_dirname -- "$ac_file" ||
11198 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11199 X"$ac_file" : 'X\(//\)[^/]' \| \
11200 X"$ac_file" : 'X\(//\)$' \| \
11201 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11202 $as_echo X"$ac_file" |
11203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11207 /^X\(\/\/\)[^/].*/{
11220 as_dir="$ac_dir"; as_fn_mkdir_p
11224 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11226 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11227 # A ".." for each directory in $ac_dir_suffix.
11228 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11229 case $ac_top_builddir_sub in
11230 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11231 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11234 ac_abs_top_builddir=$ac_pwd
11235 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11236 # for backward compatibility:
11237 ac_top_builddir=$ac_top_build_prefix
11240 .) # We are building in place.
11242 ac_top_srcdir=$ac_top_builddir_sub
11243 ac_abs_top_srcdir=$ac_pwd ;;
11244 [\\/]* | ?:[\\/]* ) # Absolute name.
11245 ac_srcdir=$srcdir$ac_dir_suffix;
11246 ac_top_srcdir=$srcdir
11247 ac_abs_top_srcdir=$srcdir ;;
11248 *) # Relative name.
11249 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11250 ac_top_srcdir=$ac_top_build_prefix$srcdir
11251 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11253 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11265 # If the template does not know about datarootdir, expand it.
11266 # FIXME: This hack should be removed a few years after 2.60.
11267 ac_datarootdir_hack=; ac_datarootdir_seen=
11278 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11279 *datarootdir*) ac_datarootdir_seen=yes;;
11280 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11282 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11285 ac_datarootdir_hack='
11286 s&@datadir@&$datadir&g
11287 s&@docdir@&$docdir&g
11288 s&@infodir@&$infodir&g
11289 s&@localedir@&$localedir&g
11290 s&@mandir@&$mandir&g
11291 s&\\\${datarootdir}&$datarootdir&g' ;;
11295 # Neutralize VPATH when `$srcdir' = `.'.
11296 # Shell code in configure.ac might set extrasub.
11297 # FIXME: do we really want to maintain this feature?
11298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11299 ac_sed_extra="$ac_vpsub
11302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11305 s|@configure_input@|$ac_sed_conf_input|;t t
11306 s&@top_builddir@&$ac_top_builddir_sub&;t t
11307 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11308 s&@srcdir@&$ac_srcdir&;t t
11309 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11310 s&@top_srcdir@&$ac_top_srcdir&;t t
11311 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11312 s&@builddir@&$ac_builddir&;t t
11313 s&@abs_builddir@&$ac_abs_builddir&;t t
11314 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11315 $ac_datarootdir_hack
11317 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11318 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11320 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11321 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11322 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11323 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11325 which seems to be undefined. Please make sure it is defined" >&5
11326 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11327 which seems to be undefined. Please make sure it is defined" >&2;}
11329 rm -f "$ac_tmp/stdin"
11331 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11332 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11340 if test x"$ac_file" != x-; then
11342 $as_echo "/* $configure_input */" \
11343 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11344 } >"$ac_tmp/config.h" \
11345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11346 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11348 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11351 mv "$ac_tmp/config.h" "$ac_file" \
11352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11355 $as_echo "/* $configure_input */" \
11356 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11357 || as_fn_error $? "could not create -" "$LINENO" 5
11369 ac_clean_files=$ac_clean_files_save
11371 test $ac_write_fail = 0 ||
11372 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11375 # configure is writing to config.log, and then calls config.status.
11376 # config.status does its own redirection, appending to config.log.
11377 # Unfortunately, on DOS this fails, as config.log is still kept open
11378 # by configure, so config.status won't be able to write to it; its
11379 # output is simply discarded. So we exec the FD to /dev/null,
11380 # effectively closing config.log, so it can be properly (re)opened and
11381 # appended to by config.status. When coming back to configure, we
11382 # need to make the FD available again.
11383 if test "$no_create" != yes; then
11385 ac_config_status_args=
11386 test "$silent" = yes &&
11387 ac_config_status_args="$ac_config_status_args --quiet"
11389 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11391 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11392 # would make configure fail if this is the last instruction.
11393 $ac_cs_success || as_fn_exit 1
11395 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11397 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11401 chmod +x cups-config