]> git.ipfire.org Git - thirdparty/cups.git/blame - configure
Merge pull request #5062 from rohieb/libtool-fixes
[thirdparty/cups.git] / configure
CommitLineData
d9f356c5
MS
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
8d7d268f 3# Generated by GNU Autoconf 2.68 for CUPS 2.2.4.
d9f356c5 4#
24343173 5# Report bugs to <https://github.com/apple/cups/issues>.
d9f356c5
MS
6#
7#
8d7d268f
MS
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
d9f356c5
MS
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
8d7d268f 172test x\$exitcode = x0 || exit 1"
d9f356c5
MS
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
8d7d268f
MS
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
d9f356c5
MS
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
24343173 242$0: https://github.com/apple/cups/issues about your system,
d9f356c5
MS
243$0: including any error possibly output before this
244$0: message. Then install a modern shell, or manually run
245$0: the script under such a shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 fi
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
472*)
473 ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8d7d268f 489 # In both cases, we have to default to `cp -p'.
d9f356c5 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8d7d268f 491 as_ln_s='cp -p'
d9f356c5
MS
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
8d7d268f 495 as_ln_s='cp -p'
d9f356c5
MS
496 fi
497else
8d7d268f 498 as_ln_s='cp -p'
d9f356c5
MS
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508fi
509
8d7d268f
MS
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
d9f356c5
MS
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540test -n "$DJDIR" || exec 7<&0 </dev/null
541exec 6>&1
542
543# Name of the host.
544# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
552ac_clean_files=
553ac_config_libobj_dir=.
554LIBOBJS=
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
559
560# Identity of this package.
561PACKAGE_NAME='CUPS'
562PACKAGE_TARNAME='cups'
105922ec
MS
563PACKAGE_VERSION='2.2.4'
564PACKAGE_STRING='CUPS 2.2.4'
24343173 565PACKAGE_BUGREPORT='https://github.com/apple/cups/issues'
d9f356c5
MS
566PACKAGE_URL='https://www.cups.org/'
567
568# Factoring default headers for most tests.
569ac_includes_default="\
570#include <stdio.h>
571#ifdef HAVE_SYS_TYPES_H
572# include <sys/types.h>
573#endif
574#ifdef HAVE_SYS_STAT_H
575# include <sys/stat.h>
576#endif
577#ifdef STDC_HEADERS
578# include <stdlib.h>
579# include <stddef.h>
580#else
581# ifdef HAVE_STDLIB_H
582# include <stdlib.h>
583# endif
584#endif
585#ifdef HAVE_STRING_H
586# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587# include <memory.h>
588# endif
589# include <string.h>
590#endif
591#ifdef HAVE_STRINGS_H
592# include <strings.h>
593#endif
594#ifdef HAVE_INTTYPES_H
595# include <inttypes.h>
596#endif
597#ifdef HAVE_STDINT_H
598# include <stdint.h>
599#endif
600#ifdef HAVE_UNISTD_H
601# include <unistd.h>
602#endif"
603
604ac_default_prefix=/
605ac_subst_vars='LTLIBOBJS
606LIBOBJS
607UNINSTALL_LANGUAGES
608INSTALL_LANGUAGES
609PYTHON
610PHP
611PHPCGI
612PERL
613JAVA
614CUPS_WEBIF
615DEFAULT_IPP_PORT
616CUPS_SNMP_COMMUNITY
617CUPS_SNMP_ADDRESS
618DEFAULT_RAW_PRINTING
619CUPS_MAX_COPIES
620CUPS_DEFAULT_SMB_CONFIG_FILE
621CUPS_DEFAULT_LPD_CONFIG_FILE
622CUPS_DEFAULT_PRINTCAP
623CUPS_PRIMARY_SYSTEM_GROUP
624CUPS_SYSTEM_GROUPS
625CUPS_GROUP
626CUPS_USER
627CUPS_DEFAULT_SHARED
628CUPS_BROWSE_LOCAL_PROTOCOLS
629CUPS_BROWSING
630CUPS_PAGE_LOG_FORMAT
631CUPS_ACCESS_LOG_LEVEL
632CUPS_LOG_LEVEL
633CUPS_FATAL_ERRORS
634CUPS_LOG_FILE_PERM
635CUPS_CUPSD_FILE_PERM
636CUPS_CONFIG_FILE_PERM
d4a895f8 637CUPS_EXE_FILE_PERM
d9f356c5
MS
638CUPS_BUNDLEDIR
639LANGUAGES
640XINETD
641RCSTOP
642RCSTART
643RCLEVELS
644INITDDIR
645INITDIR
646SMFMANIFESTDIR
647SYSTEMD_DIR
648LAUNCHD_DIR
649ONDEMANDLIBS
650ONDEMANDFLAGS
651IPPFIND_MAN
652IPPFIND_BIN
653DNSSD_BACKEND
654DNSSDLIBS
655LARGEFILE
656PAMMODAUTH
657PAMMOD
658PAMLIBS
659PAMFILE
660PAMDIR
661EXPORT_SSLLIBS
662SSLLIBS
663SSLFLAGS
664IPPALIASES
665CUPS_SERVERKEYCHAIN
666LIBGCRYPTCONFIG
667LIBGNUTLSCONFIG
668PTHREAD_FLAGS
669CUPS_DEFAULT_GSSSERVICENAME
670KRB5CONFIG
671LIBGSSAPI
672CUPS_LISTEN_DOMAINSOCKET
673CUPS_DEFAULT_DOMAINSOCKET
674RELROFLAGS
675PIEFLAGS
676CXXLIBS
677LDARCHFLAGS
678ARCHFLAGS
679UNITTESTS
680OPTIM
681INSTALL_STRIP
682LIBTOOL
683EXPORT_LDFLAGS
684IMGLIBS
685DSOLIBS
686LINKCUPSIMAGE
687LINKCUPS
688EXTLINKCUPSIMAGE
689EXTLINKCUPS
690LIBCUPSSTATIC
691LIBCUPSPPDC
692LIBCUPSMIME
693LIBCUPSIMAGE
694LIBCUPSCGI
695LIBCUPSBASE
696LIBCUPS
697DSOFLAGS
698DSOXX
699DSO
700MAN8DIR
701MAN8EXT
702MAN7EXT
703MAN5EXT
704MAN1EXT
705PMANDIR
706AMANDIR
707CUPS_STATEDIR
708CUPS_SERVERROOT
709INSTALL_SYSV
710CUPS_SERVERBIN
711CUPS_REQUESTS
712CUPS_LOGDIR
713CUPS_LOCALEDIR
714CUPS_FONTPATH
715CUPS_DOCROOT
716MENUDIR
717ICONDIR
718CUPS_DATADIR
719CUPS_CACHEDIR
720PRIVATEINCLUDE
721privateinclude
722BUILDDIRS
723INSTALLXPC
724CUPS_SYSTEM_AUTHKEY
725CUPS_DEFAULT_PRINTOPERATOR_AUTH
726DBUS_NOTIFIERLIBS
727DBUS_NOTIFIER
728DBUSDIR
729SERVERLIBS
730BACKLIBS
731ARFLAGS
732LIBZ
733INSTALL_GZIP
734LIBWRAP
735USBQUIRKS
736LIBUSB
737LIBMXML
738EGREP
739GREP
740LIBPAPER
741LIBMALLOC
742PKGCONFIG
743INSTALLSTATIC
744INSTALL
745CUPS_HTMLVIEW
746XDGOPEN
747SED
748RMDIR
749RM
750MV
751LN
752LD
753GZIP
754CHMOD
755AR
756RANLIB
757ac_ct_CXX
758CXXFLAGS
759CXX
760CPP
761OBJEXT
762EXEEXT
763ac_ct_CC
764CPPFLAGS
765LDFLAGS
766CFLAGS
767CC
768AWK
769CUPS_BUILD
770CUPS_REVISION
771CUPS_VERSION
105922ec
MS
772LOCALTARGET
773host_os
774host_vendor
775host_cpu
776host
777build_os
778build_vendor
779build_cpu
780build
d9f356c5
MS
781target_alias
782host_alias
783build_alias
784LIBS
785ECHO_T
786ECHO_N
787ECHO_C
788DEFS
789mandir
790localedir
791libdir
792psdir
793pdfdir
794dvidir
795htmldir
796infodir
797docdir
798oldincludedir
799includedir
800localstatedir
801sharedstatedir
802sysconfdir
803datadir
804datarootdir
805libexecdir
806sbindir
807bindir
808program_transform_name
809prefix
810exec_prefix
811PACKAGE_URL
812PACKAGE_BUGREPORT
813PACKAGE_STRING
814PACKAGE_VERSION
815PACKAGE_TARNAME
816PACKAGE_NAME
817PATH_SEPARATOR
818SHELL'
819ac_subst_files=''
820ac_user_opts='
821enable_option_checking
822with_cups_build
823enable_static
824enable_mallinfo
825enable_libpaper
826enable_libusb
827enable_tcp_wrappers
828enable_acl
829enable_dbus
830with_dbusdir
831with_adminkey
832with_operkey
833with_components
834with_privateinclude
835with_lpdconfig
836with_smbconfig
837with_cachedir
838with_icondir
839with_menudir
840with_docdir
841with_fontpath
842with_logdir
843with_rundir
844enable_shared
845enable_libtool_unsupported
846with_optim
847enable_debug
848enable_debug_guards
849enable_debug_printfs
850enable_unit_tests
851with_archflags
852with_ldarchflags
853enable_relro
854with_domainsocket
855enable_gssapi
856with_gssservicename
857enable_threads
858enable_ssl
859enable_cdsassl
860enable_gnutls
861enable_pam
862with_pam_module
863enable_largefile
864enable_avahi
865enable_dnssd
866with_dnssd_libs
867with_dnssd_includes
868enable_launchd
869enable_systemd
870with_systemd
441de8b2 871enable_upstart
d9f356c5
MS
872with_smfmanifestdir
873with_rcdir
874with_rclevels
875with_rcstart
876with_rcstop
877with_xinetd
878with_languages
879with_bundledir
d4a895f8 880with_exe_file_perm
d9f356c5
MS
881with_config_file_perm
882with_cupsd_file_perm
883with_log_file_perm
884with_fatal_errors
885with_log_level
886with_access_log_level
887enable_page_logging
888enable_browsing
889with_local_protocols
890enable_default_shared
891with_cups_user
892with_cups_group
893with_system_groups
894with_printcap
895with_lpdconfigfile
896with_smbconfigfile
897with_max_copies
898enable_raw_printing
899with_snmp_address
900with_snmp_community
901with_ipp_port
902enable_webif
903with_java
904with_perl
905with_php
906with_python
907'
908 ac_precious_vars='build_alias
909host_alias
910target_alias
911CC
912CFLAGS
913LDFLAGS
914LIBS
915CPPFLAGS
916CPP
917CXX
918CXXFLAGS
919CCC'
920
921
922# Initialize some variables set by options.
923ac_init_help=
924ac_init_version=false
925ac_unrecognized_opts=
926ac_unrecognized_sep=
927# The variables have the same names as the options, with
928# dashes changed to underlines.
929cache_file=/dev/null
930exec_prefix=NONE
931no_create=
932no_recursion=
933prefix=NONE
934program_prefix=NONE
935program_suffix=NONE
936program_transform_name=s,x,x,
937silent=
938site=
939srcdir=
940verbose=
941x_includes=NONE
942x_libraries=NONE
943
944# Installation directory options.
945# These are left unexpanded so users can "make install exec_prefix=/foo"
946# and all the variables that are supposed to be based on exec_prefix
947# by default will actually change.
948# Use braces instead of parens because sh, perl, etc. also accept them.
949# (The list follows the same order as the GNU Coding Standards.)
950bindir='${exec_prefix}/bin'
951sbindir='${exec_prefix}/sbin'
952libexecdir='${exec_prefix}/libexec'
953datarootdir='${prefix}/share'
954datadir='${datarootdir}'
955sysconfdir='${prefix}/etc'
956sharedstatedir='${prefix}/com'
957localstatedir='${prefix}/var'
958includedir='${prefix}/include'
959oldincludedir='/usr/include'
960docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961infodir='${datarootdir}/info'
962htmldir='${docdir}'
963dvidir='${docdir}'
964pdfdir='${docdir}'
965psdir='${docdir}'
966libdir='${exec_prefix}/lib'
967localedir='${datarootdir}/locale'
968mandir='${datarootdir}/man'
969
970ac_prev=
971ac_dashdash=
972for ac_option
973do
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
977 ac_prev=
978 continue
979 fi
980
981 case $ac_option in
982 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *=) ac_optarg= ;;
984 *) ac_optarg=yes ;;
985 esac
986
987 # Accept the important Cygnus configure options, so we can diagnose typos.
988
989 case $ac_dashdash$ac_option in
990 --)
991 ac_dashdash=yes ;;
992
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 ac_prev=bindir ;;
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 bindir=$ac_optarg ;;
997
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1002
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1009
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1012
1013 -datadir | --datadir | --datadi | --datad)
1014 ac_prev=datadir ;;
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1017
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1024
1025 -disable-* | --disable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid feature name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034"enable_$ac_useropt"
1035"*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=no ;;
1040
1041 -docdir | --docdir | --docdi | --doc | --do)
1042 ac_prev=docdir ;;
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1045
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047 ac_prev=dvidir ;;
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
1050
1051 -enable-* | --enable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060"enable_$ac_useropt"
1061"*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=\$ac_optarg ;;
1066
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1075
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1078 with_gas=yes ;;
1079
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1086
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1091
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093 ac_prev=htmldir ;;
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095 | --ht=*)
1096 htmldir=$ac_optarg ;;
1097
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1104
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1106 ac_prev=infodir ;;
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1109
1110 -libdir | --libdir | --libdi | --libd)
1111 ac_prev=libdir ;;
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1114
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1121
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1126
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1133
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135 ac_prev=mandir ;;
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1138
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1141 with_fp=no ;;
1142
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1145 no_create=yes ;;
1146
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 no_recursion=yes ;;
1150
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1159
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161 ac_prev=prefix ;;
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1164
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1171
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1178
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1195
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197 ac_prev=pdfdir ;;
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1200
1201 -psdir | --psdir | --psdi | --psd | --ps)
1202 ac_prev=psdir ;;
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 psdir=$ac_optarg ;;
1205
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 silent=yes ;;
1209
1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211 ac_prev=sbindir ;;
1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213 | --sbi=* | --sb=*)
1214 sbindir=$ac_optarg ;;
1215
1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218 | --sharedst | --shareds | --shared | --share | --shar \
1219 | --sha | --sh)
1220 ac_prev=sharedstatedir ;;
1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224 | --sha=* | --sh=*)
1225 sharedstatedir=$ac_optarg ;;
1226
1227 -site | --site | --sit)
1228 ac_prev=site ;;
1229 -site=* | --site=* | --sit=*)
1230 site=$ac_optarg ;;
1231
1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233 ac_prev=srcdir ;;
1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235 srcdir=$ac_optarg ;;
1236
1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238 | --syscon | --sysco | --sysc | --sys | --sy)
1239 ac_prev=sysconfdir ;;
1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242 sysconfdir=$ac_optarg ;;
1243
1244 -target | --target | --targe | --targ | --tar | --ta | --t)
1245 ac_prev=target_alias ;;
1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247 target_alias=$ac_optarg ;;
1248
1249 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250 verbose=yes ;;
1251
1252 -version | --version | --versio | --versi | --vers | -V)
1253 ac_init_version=: ;;
1254
1255 -with-* | --with-*)
1256 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 as_fn_error $? "invalid package name: $ac_useropt"
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1263 *"
1264"with_$ac_useropt"
1265"*) ;;
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1268 esac
1269 eval with_$ac_useropt=\$ac_optarg ;;
1270
1271 -without-* | --without-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 as_fn_error $? "invalid package name: $ac_useropt"
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1279 *"
1280"with_$ac_useropt"
1281"*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=no ;;
1286
1287 --x)
1288 # Obsolete; use --with-x.
1289 with_x=yes ;;
1290
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296 x_includes=$ac_optarg ;;
1297
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303 x_libraries=$ac_optarg ;;
1304
1305 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1306Try \`$0 --help' for more information"
1307 ;;
1308
1309 *=*)
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 case $ac_envvar in #(
1313 '' | [0-9]* | *[!_$as_cr_alnum]* )
1314 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1315 esac
1316 eval $ac_envvar=\$ac_optarg
1317 export $ac_envvar ;;
1318
1319 *)
1320 # FIXME: should be removed in autoconf 3.0.
1321 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325 ;;
1326
1327 esac
1328done
1329
1330if test -n "$ac_prev"; then
1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332 as_fn_error $? "missing argument to $ac_option"
1333fi
1334
1335if test -n "$ac_unrecognized_opts"; then
1336 case $enable_option_checking in
1337 no) ;;
1338 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1339 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1340 esac
1341fi
1342
1343# Check all directory arguments for consistency.
1344for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
1348do
1349 eval ac_val=\$$ac_var
1350 # Remove trailing slashes.
1351 case $ac_val in
1352 */ )
1353 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354 eval $ac_var=\$ac_val;;
1355 esac
1356 # Be sure to have absolute directory names.
1357 case $ac_val in
1358 [\\/$]* | ?:[\\/]* ) continue;;
1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360 esac
1361 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1362done
1363
1364# There might be people who depend on the old broken behavior: `$host'
1365# used to hold the argument of --host etc.
1366# FIXME: To remove some day.
1367build=$build_alias
1368host=$host_alias
1369target=$target_alias
1370
1371# FIXME: To remove some day.
1372if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
8d7d268f
MS
1375 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1376 If a cross compiler is detected then cross compile mode will be used" >&2
d9f356c5
MS
1377 elif test "x$build_alias" != "x$host_alias"; then
1378 cross_compiling=yes
1379 fi
1380fi
1381
1382ac_tool_prefix=
1383test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385test "$silent" = yes && exec 6>/dev/null
1386
1387
1388ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389ac_ls_di=`ls -di .` &&
1390ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 as_fn_error $? "working directory cannot be determined"
1392test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 as_fn_error $? "pwd does not report name of working directory"
1394
1395
1396# Find the source files, if location was not specified.
1397if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$as_myself" ||
1401$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405$as_echo X"$as_myself" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)[^/].*/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\).*/{
1419 s//\1/
1420 q
1421 }
1422 s/.*/./; q'`
1423 srcdir=$ac_confdir
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 srcdir=..
1426 fi
1427else
1428 ac_srcdir_defaulted=no
1429fi
1430if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1433fi
1434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435ac_abs_confdir=`(
1436 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1437 pwd)`
1438# When building in place, set srcdir=.
1439if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 srcdir=.
1441fi
1442# Remove unnecessary trailing slashes from srcdir.
1443# Double slashes in file names in object file debugging info
1444# mess up M-x gdb in Emacs.
1445case $srcdir in
1446*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447esac
1448for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453done
1454
1455#
1456# Report the --help message.
1457#
1458if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1461 cat <<_ACEOF
105922ec 1462\`configure' configures CUPS 2.2.4 to adapt to many kinds of systems.
d9f356c5
MS
1463
1464Usage: $0 [OPTION]... [VAR=VALUE]...
1465
1466To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467VAR=VALUE. See below for descriptions of some of the useful variables.
1468
1469Defaults for the options are specified in brackets.
1470
1471Configuration:
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking ...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481
1482Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 [PREFIX]
1487
1488By default, \`make install' will install all the files in
1489\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491for instance \`--prefix=\$HOME'.
1492
1493For better control, use the options below.
1494
1495Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
1515_ACEOF
1516
1517 cat <<\_ACEOF
105922ec
MS
1518
1519System types:
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
d9f356c5
MS
1522_ACEOF
1523fi
1524
1525if test -n "$ac_init_help"; then
1526 case $ac_init_help in
105922ec 1527 short | recursive ) echo "Configuration of CUPS 2.2.4:";;
d9f356c5
MS
1528 esac
1529 cat <<\_ACEOF
1530
1531Optional Features:
1532 --disable-option-checking ignore unrecognized --enable/--with options
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1535 --enable-static install static libraries
1536 --enable-mallinfo build with malloc debug logging
1537 --enable-libpaper build with libpaper support
1538 --enable-libusb use libusb for USB printing
1539 --enable-tcp-wrappers use libwrap for TCP wrappers support
1540 --enable-acl build with POSIX ACL support
1541 --disable-dbus build without DBUS support
1542 --disable-shared do not create shared libraries
1543 --enable-libtool-unsupported
1544 build with libtool (UNSUPPORTED!)
1545 --enable-debug build with debugging symbols
1546 --enable-debug-guards build with memory allocation guards
1547 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1548 --enable-unit-tests build and run unit tests
1549 --enable-relro build with the GCC relro option
1550 --disable-gssapi disable GSSAPI support
1551 --disable-threads disable multi-threading support
1552 --disable-ssl disable SSL/TLS support
1553 --enable-cdsassl use CDSA for SSL/TLS support, default=first
1554 --enable-gnutls use GNU TLS for SSL/TLS support, default=second
1555 --disable-pam disable PAM support
1556 --disable-largefile omit support for large files
1557 --disable-avahi disable DNS Service Discovery support using Avahi
1558 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1559 --disable-launchd disable launchd support
1560 --disable-systemd disable systemd support
441de8b2 1561 --enable-upstart enable upstart support
d9f356c5
MS
1562 --enable-page-logging enable page_log by default
1563 --disable-browsing disable Browsing by default
1564 --disable-default-shared
1565 disable DefaultShared by default
1566 --disable-raw-printing do not allow raw printing by default
8072030b 1567 --enable-webif enable the web interface by default, default=no for macOS
d9f356c5
MS
1568
1569Optional Packages:
1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1572 --with-cups-build set "cups-config --build" string
1573 --with-dbusdir set DBUS configuration directory
1574 --with-adminkey set the default SystemAuthKey value
1575 --with-operkey set the default operator @AUTHKEY value
1576 --with-components set components to build:
1577 - "all" (default) builds everything
1578 - "core" builds libcups and ipptool
1579 --with-privateinclude set path for private include files, default=none
1580 --with-lpdconfig set URI for LPD config file
1581 --with-smbconfig set URI for Samba config file
1582 --with-cachedir set path for cache files
1583 --with-icondir set path for application icons
1584 --with-menudir set path for application menus
1585 --with-docdir set path for documentation
1586 --with-fontpath set font path for pstoraster
1587 --with-logdir set path for log files
1588 --with-rundir set transient run-time state directory
1589 --with-optim set optimization flags
1590 --with-archflags set default architecture flags
1591 --with-ldarchflags set program architecture flags
1592 --with-domainsocket set unix domain socket name
1593 --with-gssservicename set default gss service name
1594 --with-pam-module specify the PAM module to use
1595 --with-dnssd-libs set directory for DNS Service Discovery library
1596 --with-dnssd-includes set directory for DNS Service Discovery includes
1597 --with-systemd set directory for systemd service files
1598 --with-smfmanifestdir set path for Solaris SMF manifest
1599 --with-rcdir set path for rc scripts
1600 --with-rclevels set run levels for rc scripts
1601 --with-rcstart set start number for rc scripts
1602 --with-rcstop set stop number for rc scripts
1603 --with-xinetd set path for xinetd config files
1604 --with-languages set installed languages, default=all
8072030b 1605 --with-bundledir set macOS localization bundle directory
d4a895f8 1606 --with-exe-file-perm set default exectuable permissions value, default=0555
d9f356c5
MS
1607 --with-config-file-perm set default ConfigFilePerm value, default=0640
1608 --with-cupsd-file-perm set default cupsd permissions, default=0500
1609 --with-log-file-perm set default LogFilePerm value, default=0644
1610 --with-fatal-errors set default FatalErrors value, default=config
1611 --with-log-level set default LogLevel value, default=warn
1612 --with-access-log-level set default AccessLogLevel value, default=none
1613 --with-local-protocols set default BrowseLocalProtocols, default=""
1614 --with-cups-user set default user for CUPS
1615 --with-cups-group set default group for CUPS
1616 --with-system-groups set default system groups for CUPS
1617 --with-printcap set default printcap file
1618 --with-lpdconfigfile set default LPDConfigFile URI
1619 --with-smbconfigfile set default SMBConfigFile URI
1620 --with-max-copies set default max copies value, default=9999
1621 --with-snmp-address set SNMP query address, default=auto
1622 --with-snmp-community set SNMP community, default=public
1623 --with-ipp-port set port number for IPP, default=631
1624 --with-java set Java interpreter for web interfaces
1625 --with-perl set Perl interpreter for web interfaces
1626 --with-php set PHP interpreter for web interfaces
1627 --with-python set Python interpreter for web interfaces
1628
1629Some influential environment variables:
1630 CC C compiler command
1631 CFLAGS C compiler flags
1632 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1633 nonstandard directory <lib dir>
1634 LIBS libraries to pass to the linker, e.g. -l<library>
1635 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1636 you have headers in a nonstandard directory <include dir>
1637 CPP C preprocessor
1638 CXX C++ compiler command
1639 CXXFLAGS C++ compiler flags
1640
1641Use these variables to override the choices made by `configure' or to help
1642it to find libraries and programs with nonstandard names/locations.
1643
24343173 1644Report bugs to <https://github.com/apple/cups/issues>.
d9f356c5
MS
1645CUPS home page: <https://www.cups.org/>.
1646_ACEOF
1647ac_status=$?
1648fi
1649
1650if test "$ac_init_help" = "recursive"; then
1651 # If there are subdirs, report their specific --help.
1652 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653 test -d "$ac_dir" ||
1654 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655 continue
1656 ac_builddir=.
1657
1658case "$ac_dir" in
1659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660*)
1661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1662 # A ".." for each directory in $ac_dir_suffix.
1663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1664 case $ac_top_builddir_sub in
1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667 esac ;;
1668esac
1669ac_abs_top_builddir=$ac_pwd
1670ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671# for backward compatibility:
1672ac_top_builddir=$ac_top_build_prefix
1673
1674case $srcdir in
1675 .) # We are building in place.
1676 ac_srcdir=.
1677 ac_top_srcdir=$ac_top_builddir_sub
1678 ac_abs_top_srcdir=$ac_pwd ;;
1679 [\\/]* | ?:[\\/]* ) # Absolute name.
1680 ac_srcdir=$srcdir$ac_dir_suffix;
1681 ac_top_srcdir=$srcdir
1682 ac_abs_top_srcdir=$srcdir ;;
1683 *) # Relative name.
1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685 ac_top_srcdir=$ac_top_build_prefix$srcdir
1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687esac
1688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689
1690 cd "$ac_dir" || { ac_status=$?; continue; }
1691 # Check for guested configure.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1693 echo &&
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure" --help=recursive
1698 else
1699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700 fi || ac_status=$?
1701 cd "$ac_pwd" || { ac_status=$?; break; }
1702 done
1703fi
1704
1705test -n "$ac_init_help" && exit $ac_status
1706if $ac_init_version; then
1707 cat <<\_ACEOF
105922ec 1708CUPS configure 2.2.4
8d7d268f 1709generated by GNU Autoconf 2.68
d9f356c5 1710
8d7d268f 1711Copyright (C) 2010 Free Software Foundation, Inc.
d9f356c5
MS
1712This configure script is free software; the Free Software Foundation
1713gives unlimited permission to copy, distribute and modify it.
1714_ACEOF
1715 exit
1716fi
1717
1718## ------------------------ ##
1719## Autoconf initialization. ##
1720## ------------------------ ##
1721
1722# ac_fn_c_try_compile LINENO
1723# --------------------------
1724# Try to compile conftest.$ac_ext, and return whether this succeeded.
1725ac_fn_c_try_compile ()
1726{
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext
1729 if { { ac_try="$ac_compile"
1730case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_compile") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1742 fi
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest.$ac_objext; then :
1748 ac_retval=0
1749else
1750 $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=1
1754fi
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1757
1758} # ac_fn_c_try_compile
1759
1760# ac_fn_c_try_cpp LINENO
1761# ----------------------
1762# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1763ac_fn_c_try_cpp ()
1764{
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { { ac_try="$ac_cpp conftest.$ac_ext"
1767case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770esac
1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772$as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1779 fi
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } > conftest.i && {
1782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 }; then :
1785 ac_retval=0
1786else
1787 $as_echo "$as_me: failed program was:" >&5
1788sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=1
1791fi
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1794
1795} # ac_fn_c_try_cpp
1796
1797# ac_fn_cxx_try_compile LINENO
1798# ----------------------------
1799# Try to compile conftest.$ac_ext, and return whether this succeeded.
1800ac_fn_cxx_try_compile ()
1801{
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext
1804 if { { ac_try="$ac_compile"
1805case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808esac
1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810$as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_compile") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1817 fi
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_cxx_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest.$ac_objext; then :
1823 ac_retval=0
1824else
1825 $as_echo "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=1
1829fi
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1832
1833} # ac_fn_cxx_try_compile
1834
1835# ac_fn_c_try_link LINENO
1836# -----------------------
1837# Try to link conftest.$ac_ext, and return whether this succeeded.
1838ac_fn_c_try_link ()
1839{
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext conftest$ac_exeext
1842 if { { ac_try="$ac_link"
1843case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846esac
1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848$as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_link") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1855 fi
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest$ac_exeext && {
1861 test "$cross_compiling" = yes ||
8d7d268f 1862 $as_test_x conftest$ac_exeext
d9f356c5
MS
1863 }; then :
1864 ac_retval=0
1865else
1866 $as_echo "$as_me: failed program was:" >&5
1867sed 's/^/| /' conftest.$ac_ext >&5
1868
1869 ac_retval=1
1870fi
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873 # interfere with the next link command; also delete a directory that is
1874 # left behind by Apple's compiler. We do this before executing the actions.
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1878
1879} # ac_fn_c_try_link
1880
1881# ac_fn_c_try_run LINENO
1882# ----------------------
1883# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1884# that executables *can* be run.
1885ac_fn_c_try_run ()
1886{
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_link"
1889case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892esac
1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894$as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>&5
1896 ac_status=$?
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1899 { { case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_try") 2>&5
1906 ac_status=$?
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; }; }; then :
1909 ac_retval=0
1910else
1911 $as_echo "$as_me: program exited with status $ac_status" >&5
1912 $as_echo "$as_me: failed program was:" >&5
1913sed 's/^/| /' conftest.$ac_ext >&5
1914
1915 ac_retval=$ac_status
1916fi
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1920
1921} # ac_fn_c_try_run
1922
1923# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1924# -------------------------------------------------------
1925# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1926# the include files in INCLUDES and setting the cache variable VAR
1927# accordingly.
1928ac_fn_c_check_header_mongrel ()
1929{
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 if eval \${$3+:} false; then :
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933$as_echo_n "checking for $2... " >&6; }
1934if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1936fi
1937eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939$as_echo "$ac_res" >&6; }
1940else
1941 # Is the header compilable?
1942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1943$as_echo_n "checking $2 usability... " >&6; }
1944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945/* end confdefs.h. */
1946$4
1947#include <$2>
1948_ACEOF
1949if ac_fn_c_try_compile "$LINENO"; then :
1950 ac_header_compiler=yes
1951else
1952 ac_header_compiler=no
1953fi
1954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1956$as_echo "$ac_header_compiler" >&6; }
1957
1958# Is the header present?
1959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1960$as_echo_n "checking $2 presence... " >&6; }
1961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */
1963#include <$2>
1964_ACEOF
1965if ac_fn_c_try_cpp "$LINENO"; then :
1966 ac_header_preproc=yes
1967else
1968 ac_header_preproc=no
1969fi
1970rm -f conftest.err conftest.i conftest.$ac_ext
1971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1972$as_echo "$ac_header_preproc" >&6; }
1973
1974# So? What about this header?
1975case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1976 yes:no: )
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1978$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1980$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1981 ;;
1982 no:yes:* )
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1984$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1986$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1988$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1990$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1992$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
24343173
MS
1993( $as_echo "## --------------------------------------------------- ##
1994## Report this to https://github.com/apple/cups/issues ##
1995## --------------------------------------------------- ##"
d9f356c5
MS
1996 ) | sed "s/^/$as_me: WARNING: /" >&2
1997 ;;
1998esac
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000$as_echo_n "checking for $2... " >&6; }
2001if eval \${$3+:} false; then :
2002 $as_echo_n "(cached) " >&6
2003else
2004 eval "$3=\$ac_header_compiler"
2005fi
2006eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008$as_echo "$ac_res" >&6; }
2009fi
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011
2012} # ac_fn_c_check_header_mongrel
2013
2014# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015# -------------------------------------------------------
2016# Tests whether HEADER exists and can be compiled using the include files in
2017# INCLUDES, setting the cache variable VAR accordingly.
2018ac_fn_c_check_header_compile ()
2019{
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022$as_echo_n "checking for $2... " >&6; }
2023if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2025else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027/* end confdefs.h. */
2028$4
2029#include <$2>
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$3=yes"
2033else
2034 eval "$3=no"
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
2038eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040$as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043} # ac_fn_c_check_header_compile
2044
2045# ac_fn_c_check_func LINENO FUNC VAR
2046# ----------------------------------
2047# Tests whether FUNC exists, setting the cache variable VAR accordingly
2048ac_fn_c_check_func ()
2049{
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052$as_echo_n "checking for $2... " >&6; }
2053if eval \${$3+:} false; then :
2054 $as_echo_n "(cached) " >&6
2055else
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h. */
2058/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2060#define $2 innocuous_$2
2061
2062/* System header to define __stub macros and hopefully few prototypes,
2063 which can conflict with char $2 (); below.
2064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2065 <limits.h> exists even on freestanding compilers. */
2066
2067#ifdef __STDC__
2068# include <limits.h>
2069#else
2070# include <assert.h>
2071#endif
2072
2073#undef $2
2074
2075/* Override any GCC internal prototype to avoid an error.
2076 Use char because int might match the return type of a GCC
2077 builtin and then its argument prototype would still apply. */
2078#ifdef __cplusplus
2079extern "C"
2080#endif
2081char $2 ();
2082/* The GNU C library defines this for functions which it implements
2083 to always fail with ENOSYS. Some functions are actually named
2084 something starting with __ and the normal name is an alias. */
2085#if defined __stub_$2 || defined __stub___$2
2086choke me
2087#endif
2088
2089int
2090main ()
2091{
2092return $2 ();
2093 ;
2094 return 0;
2095}
2096_ACEOF
2097if ac_fn_c_try_link "$LINENO"; then :
2098 eval "$3=yes"
2099else
2100 eval "$3=no"
2101fi
2102rm -f core conftest.err conftest.$ac_objext \
2103 conftest$ac_exeext conftest.$ac_ext
2104fi
2105eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107$as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109
2110} # ac_fn_c_check_func
2111
2112# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2113# ----------------------------------------------------
2114# Tries to find if the field MEMBER exists in type AGGR, after including
2115# INCLUDES, setting cache variable VAR accordingly.
2116ac_fn_c_check_member ()
2117{
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2120$as_echo_n "checking for $2.$3... " >&6; }
2121if eval \${$4+:} false; then :
2122 $as_echo_n "(cached) " >&6
2123else
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125/* end confdefs.h. */
2126$5
2127int
2128main ()
2129{
2130static $2 ac_aggr;
2131if (ac_aggr.$3)
2132return 0;
2133 ;
2134 return 0;
2135}
2136_ACEOF
2137if ac_fn_c_try_compile "$LINENO"; then :
2138 eval "$4=yes"
2139else
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141/* end confdefs.h. */
2142$5
2143int
2144main ()
2145{
2146static $2 ac_aggr;
2147if (sizeof ac_aggr.$3)
2148return 0;
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_compile "$LINENO"; then :
2154 eval "$4=yes"
2155else
2156 eval "$4=no"
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161fi
2162eval ac_res=\$$4
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164$as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167} # ac_fn_c_check_member
2168cat >config.log <<_ACEOF
2169This file contains any messages produced by compilers while
2170running configure, to aid debugging if configure makes a mistake.
2171
105922ec 2172It was created by CUPS $as_me 2.2.4, which was
8d7d268f 2173generated by GNU Autoconf 2.68. Invocation command line was
d9f356c5
MS
2174
2175 $ $0 $@
2176
2177_ACEOF
2178exec 5>>config.log
2179{
2180cat <<_ASUNAME
2181## --------- ##
2182## Platform. ##
2183## --------- ##
2184
2185hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2186uname -m = `(uname -m) 2>/dev/null || echo unknown`
2187uname -r = `(uname -r) 2>/dev/null || echo unknown`
2188uname -s = `(uname -s) 2>/dev/null || echo unknown`
2189uname -v = `(uname -v) 2>/dev/null || echo unknown`
2190
2191/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2192/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2193
2194/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2195/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2196/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2197/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2198/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2199/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2200/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2201
2202_ASUNAME
2203
2204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205for as_dir in $PATH
2206do
2207 IFS=$as_save_IFS
2208 test -z "$as_dir" && as_dir=.
2209 $as_echo "PATH: $as_dir"
2210 done
2211IFS=$as_save_IFS
2212
2213} >&5
2214
2215cat >&5 <<_ACEOF
2216
2217
2218## ----------- ##
2219## Core tests. ##
2220## ----------- ##
2221
2222_ACEOF
2223
2224
2225# Keep a trace of the command line.
2226# Strip out --no-create and --no-recursion so they do not pile up.
2227# Strip out --silent because we don't want to record it for future runs.
2228# Also quote any args containing shell meta-characters.
2229# Make two passes to allow for proper duplicate-argument suppression.
2230ac_configure_args=
2231ac_configure_args0=
2232ac_configure_args1=
2233ac_must_keep_next=false
2234for ac_pass in 1 2
2235do
2236 for ac_arg
2237 do
2238 case $ac_arg in
2239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2241 | -silent | --silent | --silen | --sile | --sil)
2242 continue ;;
2243 *\'*)
2244 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2245 esac
2246 case $ac_pass in
2247 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2248 2)
2249 as_fn_append ac_configure_args1 " '$ac_arg'"
2250 if test $ac_must_keep_next = true; then
2251 ac_must_keep_next=false # Got value, back to normal.
2252 else
2253 case $ac_arg in
2254 *=* | --config-cache | -C | -disable-* | --disable-* \
2255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2257 | -with-* | --with-* | -without-* | --without-* | --x)
2258 case "$ac_configure_args0 " in
2259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2260 esac
2261 ;;
2262 -* ) ac_must_keep_next=true ;;
2263 esac
2264 fi
2265 as_fn_append ac_configure_args " '$ac_arg'"
2266 ;;
2267 esac
2268 done
2269done
2270{ ac_configure_args0=; unset ac_configure_args0;}
2271{ ac_configure_args1=; unset ac_configure_args1;}
2272
2273# When interrupted or exit'd, cleanup temporary files, and complete
2274# config.log. We remove comments because anyway the quotes in there
2275# would cause problems or look ugly.
2276# WARNING: Use '\'' to represent an apostrophe within the trap.
2277# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2278trap 'exit_status=$?
2279 # Save into config.log some information that might help in debugging.
2280 {
2281 echo
2282
2283 $as_echo "## ---------------- ##
2284## Cache variables. ##
2285## ---------------- ##"
2286 echo
2287 # The following way of writing the cache mishandles newlines in values,
2288(
2289 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2290 eval ac_val=\$$ac_var
2291 case $ac_val in #(
2292 *${as_nl}*)
2293 case $ac_var in #(
2294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2295$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2296 esac
2297 case $ac_var in #(
2298 _ | IFS | as_nl) ;; #(
2299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2300 *) { eval $ac_var=; unset $ac_var;} ;;
2301 esac ;;
2302 esac
2303 done
2304 (set) 2>&1 |
2305 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2306 *${as_nl}ac_space=\ *)
2307 sed -n \
2308 "s/'\''/'\''\\\\'\'''\''/g;
2309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2310 ;; #(
2311 *)
2312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2313 ;;
2314 esac |
2315 sort
2316)
2317 echo
2318
2319 $as_echo "## ----------------- ##
2320## Output variables. ##
2321## ----------------- ##"
2322 echo
2323 for ac_var in $ac_subst_vars
2324 do
2325 eval ac_val=\$$ac_var
2326 case $ac_val in
2327 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328 esac
2329 $as_echo "$ac_var='\''$ac_val'\''"
2330 done | sort
2331 echo
2332
2333 if test -n "$ac_subst_files"; then
2334 $as_echo "## ------------------- ##
2335## File substitutions. ##
2336## ------------------- ##"
2337 echo
2338 for ac_var in $ac_subst_files
2339 do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 $as_echo "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2347 fi
2348
2349 if test -s confdefs.h; then
2350 $as_echo "## ----------- ##
2351## confdefs.h. ##
2352## ----------- ##"
2353 echo
2354 cat confdefs.h
2355 echo
2356 fi
2357 test "$ac_signal" != 0 &&
2358 $as_echo "$as_me: caught signal $ac_signal"
2359 $as_echo "$as_me: exit $exit_status"
2360 } >&5
2361 rm -f core *.core core.conftest.* &&
2362 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2363 exit $exit_status
2364' 0
2365for ac_signal in 1 2 13 15; do
2366 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2367done
2368ac_signal=0
2369
2370# confdefs.h avoids OS command line length limits that DEFS can exceed.
2371rm -f -r conftest* confdefs.h
2372
2373$as_echo "/* confdefs.h */" > confdefs.h
2374
2375# Predefined preprocessor variables.
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_NAME "$PACKAGE_NAME"
2379_ACEOF
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2383_ACEOF
2384
2385cat >>confdefs.h <<_ACEOF
2386#define PACKAGE_VERSION "$PACKAGE_VERSION"
2387_ACEOF
2388
2389cat >>confdefs.h <<_ACEOF
2390#define PACKAGE_STRING "$PACKAGE_STRING"
2391_ACEOF
2392
2393cat >>confdefs.h <<_ACEOF
2394#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2395_ACEOF
2396
2397cat >>confdefs.h <<_ACEOF
2398#define PACKAGE_URL "$PACKAGE_URL"
2399_ACEOF
2400
2401
2402# Let the site file select an alternate cache file if it wants to.
2403# Prefer an explicitly selected file to automatically selected ones.
2404ac_site_file1=NONE
2405ac_site_file2=NONE
2406if test -n "$CONFIG_SITE"; then
2407 # We do not want a PATH search for config.site.
2408 case $CONFIG_SITE in #((
2409 -*) ac_site_file1=./$CONFIG_SITE;;
2410 */*) ac_site_file1=$CONFIG_SITE;;
2411 *) ac_site_file1=./$CONFIG_SITE;;
2412 esac
2413elif test "x$prefix" != xNONE; then
2414 ac_site_file1=$prefix/share/config.site
2415 ac_site_file2=$prefix/etc/config.site
2416else
2417 ac_site_file1=$ac_default_prefix/share/config.site
2418 ac_site_file2=$ac_default_prefix/etc/config.site
2419fi
2420for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2421do
2422 test "x$ac_site_file" = xNONE && continue
2423 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2425$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2426 sed 's/^/| /' "$ac_site_file" >&5
2427 . "$ac_site_file" \
2428 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430as_fn_error $? "failed to load site script $ac_site_file
2431See \`config.log' for more details" "$LINENO" 5; }
2432 fi
2433done
2434
2435if test -r "$cache_file"; then
2436 # Some versions of bash will fail to source /dev/null (special files
2437 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2438 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2440$as_echo "$as_me: loading cache $cache_file" >&6;}
2441 case $cache_file in
2442 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2443 *) . "./$cache_file";;
2444 esac
2445 fi
2446else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2448$as_echo "$as_me: creating cache $cache_file" >&6;}
2449 >$cache_file
2450fi
2451
2452# Check that the precious variables saved in the cache have kept the same
2453# value.
2454ac_cache_corrupted=false
2455for ac_var in $ac_precious_vars; do
2456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2457 eval ac_new_set=\$ac_env_${ac_var}_set
2458 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2459 eval ac_new_val=\$ac_env_${ac_var}_value
2460 case $ac_old_set,$ac_new_set in
2461 set,)
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2463$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2464 ac_cache_corrupted=: ;;
2465 ,set)
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2467$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2468 ac_cache_corrupted=: ;;
2469 ,);;
2470 *)
2471 if test "x$ac_old_val" != "x$ac_new_val"; then
2472 # differences in whitespace do not lead to failure.
2473 ac_old_val_w=`echo x $ac_old_val`
2474 ac_new_val_w=`echo x $ac_new_val`
2475 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2477$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2478 ac_cache_corrupted=:
2479 else
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2481$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2482 eval $ac_var=\$ac_old_val
2483 fi
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2485$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2487$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2488 fi;;
2489 esac
2490 # Pass precious variables to config.status.
2491 if test "$ac_new_set" = set; then
2492 case $ac_new_val in
2493 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2494 *) ac_arg=$ac_var=$ac_new_val ;;
2495 esac
2496 case " $ac_configure_args " in
2497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2498 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2499 esac
2500 fi
2501done
2502if $ac_cache_corrupted; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2506$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2507 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2508fi
2509## -------------------- ##
2510## Main body of script. ##
2511## -------------------- ##
2512
2513ac_ext=c
2514ac_cpp='$CPP $CPPFLAGS'
2515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518
2519
2520
2521
105922ec
MS
2522ac_aux_dir=
2523for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2524 if test -f "$ac_dir/install-sh"; then
2525 ac_aux_dir=$ac_dir
2526 ac_install_sh="$ac_aux_dir/install-sh -c"
2527 break
2528 elif test -f "$ac_dir/install.sh"; then
2529 ac_aux_dir=$ac_dir
2530 ac_install_sh="$ac_aux_dir/install.sh -c"
2531 break
2532 elif test -f "$ac_dir/shtool"; then
2533 ac_aux_dir=$ac_dir
2534 ac_install_sh="$ac_aux_dir/shtool install -c"
2535 break
2536 fi
2537done
2538if test -z "$ac_aux_dir"; then
2539 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2540fi
d9f356c5 2541
105922ec
MS
2542# These three variables are undocumented and unsupported,
2543# and are intended to be withdrawn in a future Autoconf release.
2544# They can cause serious problems if a builder's source tree is in a directory
2545# whose full name contains unusual characters.
2546ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2547ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2548ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
d9f356c5 2549
105922ec
MS
2550
2551# Make sure we can run config.sub.
2552$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2553 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2554
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2556$as_echo_n "checking build system type... " >&6; }
2557if ${ac_cv_build+:} false; then :
2558 $as_echo_n "(cached) " >&6
2559else
2560 ac_build_alias=$build_alias
2561test "x$ac_build_alias" = x &&
2562 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2563test "x$ac_build_alias" = x &&
2564 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2565ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2566 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2567
2568fi
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2570$as_echo "$ac_cv_build" >&6; }
2571case $ac_cv_build in
2572*-*-*) ;;
2573*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2574esac
2575build=$ac_cv_build
2576ac_save_IFS=$IFS; IFS='-'
2577set x $ac_cv_build
2578shift
2579build_cpu=$1
2580build_vendor=$2
2581shift; shift
2582# Remember, the first character of IFS is used to create $*,
2583# except with old shells:
2584build_os=$*
2585IFS=$ac_save_IFS
2586case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2587
2588
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2590$as_echo_n "checking host system type... " >&6; }
2591if ${ac_cv_host+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593else
2594 if test "x$host_alias" = x; then
2595 ac_cv_host=$ac_cv_build
2596else
2597 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2598 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2599fi
2600
2601fi
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2603$as_echo "$ac_cv_host" >&6; }
2604case $ac_cv_host in
2605*-*-*) ;;
2606*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
d9f356c5 2607esac
105922ec
MS
2608host=$ac_cv_host
2609ac_save_IFS=$IFS; IFS='-'
2610set x $ac_cv_host
2611shift
2612host_cpu=$1
2613host_vendor=$2
2614shift; shift
2615# Remember, the first character of IFS is used to create $*,
2616# except with old shells:
2617host_os=$*
2618IFS=$ac_save_IFS
2619case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2620
2621
2622
2623host_os_name=`echo $host_os | sed -e '1,$s/[0-9.]*$//g'`
2624host_os_version=`echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}'`
d4a895f8 2625# Linux often does not yield an OS version we can use...
bb719eb3
MS
2626if test "x$host_os_version" = x; then
2627 host_os_version="0"
2628fi
105922ec
MS
2629
2630if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
2631 as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
2632fi
2633
2634if test "$build" = "$host"; then
2635 # No, build local targets
2636 LOCALTARGET="local"
2637else
2638 # Yes, don't build local targets
2639 LOCALTARGET=""
2640fi
2641
d9f356c5
MS
2642
2643
d9f356c5
MS
2644ac_config_headers="$ac_config_headers config.h"
2645
2646
105922ec 2647CUPS_VERSION="2.2.4"
24343173 2648CUPS_REVISION=""
d9f356c5
MS
2649CUPS_BUILD="cups-$CUPS_VERSION"
2650
2651
2652# Check whether --with-cups_build was given.
2653if test "${with_cups_build+set}" = set; then :
2654 withval=$with_cups_build; CUPS_BUILD="$withval"
2655fi
2656
2657
2658
2659
2660
2661cat >>confdefs.h <<_ACEOF
2662#define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2663_ACEOF
2664
2665cat >>confdefs.h <<_ACEOF
2666#define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2667_ACEOF
2668
2669
2670CFLAGS="${CFLAGS:=}"
2671CPPFLAGS="${CPPFLAGS:=}"
2672CXXFLAGS="${CXXFLAGS:=}"
2673LDFLAGS="${LDFLAGS:=}"
2674
2675for ac_prog in gawk mawk nawk awk
2676do
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678set dummy $ac_prog; ac_word=$2
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680$as_echo_n "checking for $ac_word... " >&6; }
2681if ${ac_cv_prog_AWK+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683else
2684 if test -n "$AWK"; then
2685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
2694 ac_cv_prog_AWK="$ac_prog"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698done
2699 done
2700IFS=$as_save_IFS
2701
2702fi
2703fi
2704AWK=$ac_cv_prog_AWK
2705if test -n "$AWK"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2707$as_echo "$AWK" >&6; }
2708else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710$as_echo "no" >&6; }
2711fi
2712
2713
2714 test -n "$AWK" && break
2715done
2716
2717ac_ext=c
2718ac_cpp='$CPP $CPPFLAGS'
2719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722if test -n "$ac_tool_prefix"; then
2723 for ac_prog in clang cc gcc
2724 do
2725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2726set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728$as_echo_n "checking for $ac_word... " >&6; }
2729if ${ac_cv_prog_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731else
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2734else
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
2742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746done
2747 done
2748IFS=$as_save_IFS
2749
2750fi
2751fi
2752CC=$ac_cv_prog_CC
2753if test -n "$CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755$as_echo "$CC" >&6; }
2756else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758$as_echo "no" >&6; }
2759fi
2760
2761
2762 test -n "$CC" && break
2763 done
2764fi
2765if test -z "$CC"; then
2766 ac_ct_CC=$CC
2767 for ac_prog in clang cc gcc
2768do
2769 # Extract the first word of "$ac_prog", so it can be a program name with args.
2770set dummy $ac_prog; ac_word=$2
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772$as_echo_n "checking for $ac_word... " >&6; }
2773if ${ac_cv_prog_ac_ct_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775else
2776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2778else
2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH
2781do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
2786 ac_cv_prog_ac_ct_CC="$ac_prog"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2789 fi
2790done
2791 done
2792IFS=$as_save_IFS
2793
2794fi
2795fi
2796ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797if test -n "$ac_ct_CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2799$as_echo "$ac_ct_CC" >&6; }
2800else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802$as_echo "no" >&6; }
2803fi
2804
2805
2806 test -n "$ac_ct_CC" && break
2807done
2808
2809 if test "x$ac_ct_CC" = x; then
2810 CC=""
2811 else
2812 case $cross_compiling:$ac_tool_warned in
2813yes:)
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2816ac_tool_warned=yes ;;
2817esac
2818 CC=$ac_ct_CC
2819 fi
2820fi
2821
2822
2823test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2825as_fn_error $? "no acceptable C compiler found in \$PATH
2826See \`config.log' for more details" "$LINENO" 5; }
2827
2828# Provide some information about the compiler.
2829$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2830set X $ac_compile
2831ac_compiler=$2
2832for ac_option in --version -v -V -qversion; do
2833 { { ac_try="$ac_compiler $ac_option >&5"
2834case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837esac
2838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2839$as_echo "$ac_try_echo"; } >&5
2840 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2841 ac_status=$?
2842 if test -s conftest.err; then
2843 sed '10a\
2844... rest of stderr output deleted ...
2845 10q' conftest.err >conftest.er1
2846 cat conftest.er1 >&5
2847 fi
2848 rm -f conftest.er1 conftest.err
2849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850 test $ac_status = 0; }
2851done
2852
2853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854/* end confdefs.h. */
2855
2856int
2857main ()
2858{
2859
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864ac_clean_files_save=$ac_clean_files
2865ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2866# Try to create an executable without -o first, disregard a.out.
2867# It will help us diagnose broken compilers, and finding out an intuition
2868# of exeext.
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2870$as_echo_n "checking whether the C compiler works... " >&6; }
2871ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2872
2873# The possible output files:
2874ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2875
2876ac_rmfiles=
2877for ac_file in $ac_files
2878do
2879 case $ac_file in
2880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2881 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2882 esac
2883done
2884rm -f $ac_rmfiles
2885
2886if { { ac_try="$ac_link_default"
2887case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
2891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892$as_echo "$ac_try_echo"; } >&5
2893 (eval "$ac_link_default") 2>&5
2894 ac_status=$?
2895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896 test $ac_status = 0; }; then :
2897 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2898# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2899# in a Makefile. We should not override ac_cv_exeext if it was cached,
2900# so that the user can short-circuit this test for compilers unknown to
2901# Autoconf.
2902for ac_file in $ac_files ''
2903do
2904 test -f "$ac_file" || continue
2905 case $ac_file in
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2907 ;;
2908 [ab].out )
2909 # We found the default executable, but exeext='' is most
2910 # certainly right.
2911 break;;
2912 *.* )
2913 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2914 then :; else
2915 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2916 fi
2917 # We set ac_cv_exeext here because the later test for it is not
2918 # safe: cross compilers may not add the suffix if given an `-o'
2919 # argument, so we may need to know it at that point already.
2920 # Even if this section looks crufty: it has the advantage of
2921 # actually working.
2922 break;;
2923 * )
2924 break;;
2925 esac
2926done
2927test "$ac_cv_exeext" = no && ac_cv_exeext=
2928
2929else
2930 ac_file=''
2931fi
2932if test -z "$ac_file"; then :
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
2935$as_echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940as_fn_error 77 "C compiler cannot create executables
2941See \`config.log' for more details" "$LINENO" 5; }
2942else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2944$as_echo "yes" >&6; }
2945fi
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2947$as_echo_n "checking for C compiler default output file name... " >&6; }
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2949$as_echo "$ac_file" >&6; }
2950ac_exeext=$ac_cv_exeext
2951
2952rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2953ac_clean_files=$ac_clean_files_save
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2955$as_echo_n "checking for suffix of executables... " >&6; }
2956if { { ac_try="$ac_link"
2957case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960esac
2961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962$as_echo "$ac_try_echo"; } >&5
2963 (eval "$ac_link") 2>&5
2964 ac_status=$?
2965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2966 test $ac_status = 0; }; then :
2967 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2968# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2969# work properly (i.e., refer to `conftest.exe'), while it won't with
2970# `rm'.
2971for ac_file in conftest.exe conftest conftest.*; do
2972 test -f "$ac_file" || continue
2973 case $ac_file in
2974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2976 break;;
2977 * ) break;;
2978 esac
2979done
2980else
2981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2983as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2984See \`config.log' for more details" "$LINENO" 5; }
2985fi
2986rm -f conftest conftest$ac_cv_exeext
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2988$as_echo "$ac_cv_exeext" >&6; }
2989
2990rm -f conftest.$ac_ext
2991EXEEXT=$ac_cv_exeext
2992ac_exeext=$EXEEXT
2993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994/* end confdefs.h. */
2995#include <stdio.h>
2996int
2997main ()
2998{
2999FILE *f = fopen ("conftest.out", "w");
3000 return ferror (f) || fclose (f) != 0;
3001
3002 ;
3003 return 0;
3004}
3005_ACEOF
3006ac_clean_files="$ac_clean_files conftest.out"
3007# Check that the compiler produces executables we can run. If not, either
3008# the compiler is broken, or we cross compile.
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3010$as_echo_n "checking whether we are cross compiling... " >&6; }
3011if test "$cross_compiling" != yes; then
3012 { { ac_try="$ac_link"
3013case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016esac
3017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018$as_echo "$ac_try_echo"; } >&5
3019 (eval "$ac_link") 2>&5
3020 ac_status=$?
3021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3022 test $ac_status = 0; }
3023 if { ac_try='./conftest$ac_cv_exeext'
3024 { { case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029$as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_try") 2>&5
3031 ac_status=$?
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }; }; then
3034 cross_compiling=no
3035 else
3036 if test "$cross_compiling" = maybe; then
3037 cross_compiling=yes
3038 else
3039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041as_fn_error $? "cannot run C compiled programs.
3042If you meant to cross compile, use \`--host'.
3043See \`config.log' for more details" "$LINENO" 5; }
3044 fi
3045 fi
3046fi
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3048$as_echo "$cross_compiling" >&6; }
3049
3050rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3051ac_clean_files=$ac_clean_files_save
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3053$as_echo_n "checking for suffix of object files... " >&6; }
3054if ${ac_cv_objext+:} false; then :
3055 $as_echo_n "(cached) " >&6
3056else
3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058/* end confdefs.h. */
3059
3060int
3061main ()
3062{
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
3068rm -f conftest.o conftest.obj
3069if { { ac_try="$ac_compile"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
3074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075$as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_compile") 2>&5
3077 ac_status=$?
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 for ac_file in conftest.o conftest.obj conftest.*; do
3081 test -f "$ac_file" || continue;
3082 case $ac_file in
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3084 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3085 break;;
3086 esac
3087done
3088else
3089 $as_echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094as_fn_error $? "cannot compute suffix of object files: cannot compile
3095See \`config.log' for more details" "$LINENO" 5; }
3096fi
3097rm -f conftest.$ac_cv_objext conftest.$ac_ext
3098fi
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3100$as_echo "$ac_cv_objext" >&6; }
3101OBJEXT=$ac_cv_objext
3102ac_objext=$OBJEXT
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3104$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3105if ${ac_cv_c_compiler_gnu+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107else
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h. */
3110
3111int
3112main ()
3113{
3114#ifndef __GNUC__
3115 choke me
3116#endif
3117
3118 ;
3119 return 0;
3120}
3121_ACEOF
3122if ac_fn_c_try_compile "$LINENO"; then :
3123 ac_compiler_gnu=yes
3124else
3125 ac_compiler_gnu=no
3126fi
3127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128ac_cv_c_compiler_gnu=$ac_compiler_gnu
3129
3130fi
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3132$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3133if test $ac_compiler_gnu = yes; then
3134 GCC=yes
3135else
3136 GCC=
3137fi
3138ac_test_CFLAGS=${CFLAGS+set}
3139ac_save_CFLAGS=$CFLAGS
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3141$as_echo_n "checking whether $CC accepts -g... " >&6; }
3142if ${ac_cv_prog_cc_g+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144else
3145 ac_save_c_werror_flag=$ac_c_werror_flag
3146 ac_c_werror_flag=yes
3147 ac_cv_prog_cc_g=no
3148 CFLAGS="-g"
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150/* end confdefs.h. */
3151
3152int
3153main ()
3154{
3155
3156 ;
3157 return 0;
3158}
3159_ACEOF
3160if ac_fn_c_try_compile "$LINENO"; then :
3161 ac_cv_prog_cc_g=yes
3162else
3163 CFLAGS=""
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165/* end confdefs.h. */
3166
3167int
3168main ()
3169{
3170
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175if ac_fn_c_try_compile "$LINENO"; then :
3176
3177else
3178 ac_c_werror_flag=$ac_save_c_werror_flag
3179 CFLAGS="-g"
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181/* end confdefs.h. */
3182
3183int
3184main ()
3185{
3186
3187 ;
3188 return 0;
3189}
3190_ACEOF
3191if ac_fn_c_try_compile "$LINENO"; then :
3192 ac_cv_prog_cc_g=yes
3193fi
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197fi
3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3200fi
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3202$as_echo "$ac_cv_prog_cc_g" >&6; }
3203if test "$ac_test_CFLAGS" = set; then
3204 CFLAGS=$ac_save_CFLAGS
3205elif test $ac_cv_prog_cc_g = yes; then
3206 if test "$GCC" = yes; then
3207 CFLAGS="-g -O2"
3208 else
3209 CFLAGS="-g"
3210 fi
3211else
3212 if test "$GCC" = yes; then
3213 CFLAGS="-O2"
3214 else
3215 CFLAGS=
3216 fi
3217fi
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3219$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3220if ${ac_cv_prog_cc_c89+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222else
3223 ac_cv_prog_cc_c89=no
3224ac_save_CC=$CC
3225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h. */
3227#include <stdarg.h>
3228#include <stdio.h>
8d7d268f
MS
3229#include <sys/types.h>
3230#include <sys/stat.h>
d9f356c5
MS
3231/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3232struct buf { int x; };
3233FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234static char *e (p, i)
3235 char **p;
3236 int i;
3237{
3238 return p[i];
3239}
3240static char *f (char * (*g) (char **, int), char **p, ...)
3241{
3242 char *s;
3243 va_list v;
3244 va_start (v,p);
3245 s = g (p, va_arg (v,int));
3246 va_end (v);
3247 return s;
3248}
3249
3250/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3251 function prototypes and stuff, but not '\xHH' hex character constants.
3252 These don't provoke an error unfortunately, instead are silently treated
3253 as 'x'. The following induces an error, until -std is added to get
3254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3255 array size at least. It's necessary to write '\x00'==0 to get something
3256 that's true only with -std. */
3257int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3258
3259/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3260 inside strings and character constants. */
3261#define FOO(x) 'x'
3262int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3263
3264int test (int i, double x);
3265struct s1 {int (*f) (int a);};
3266struct s2 {int (*f) (double a);};
3267int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3268int argc;
3269char **argv;
3270int
3271main ()
3272{
3273return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3274 ;
3275 return 0;
3276}
3277_ACEOF
3278for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3280do
3281 CC="$ac_save_CC $ac_arg"
3282 if ac_fn_c_try_compile "$LINENO"; then :
3283 ac_cv_prog_cc_c89=$ac_arg
3284fi
3285rm -f core conftest.err conftest.$ac_objext
3286 test "x$ac_cv_prog_cc_c89" != "xno" && break
3287done
3288rm -f conftest.$ac_ext
3289CC=$ac_save_CC
3290
3291fi
3292# AC_CACHE_VAL
3293case "x$ac_cv_prog_cc_c89" in
3294 x)
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3296$as_echo "none needed" >&6; } ;;
3297 xno)
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3299$as_echo "unsupported" >&6; } ;;
3300 *)
3301 CC="$CC $ac_cv_prog_cc_c89"
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3303$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3304esac
3305if test "x$ac_cv_prog_cc_c89" != xno; then :
3306
3307fi
3308
3309ac_ext=c
3310ac_cpp='$CPP $CPPFLAGS'
3311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314
3315ac_ext=c
3316ac_cpp='$CPP $CPPFLAGS'
3317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3321$as_echo_n "checking how to run the C preprocessor... " >&6; }
3322# On Suns, sometimes $CPP names a directory.
3323if test -n "$CPP" && test -d "$CPP"; then
3324 CPP=
3325fi
3326if test -z "$CPP"; then
3327 if ${ac_cv_prog_CPP+:} false; then :
3328 $as_echo_n "(cached) " >&6
3329else
3330 # Double quotes because CPP needs to be expanded
3331 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3332 do
3333 ac_preproc_ok=false
3334for ac_c_preproc_warn_flag in '' yes
3335do
3336 # Use a header file that comes with gcc, so configuring glibc
3337 # with a fresh cross-compiler works.
3338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3339 # <limits.h> exists even on freestanding compilers.
3340 # On the NeXT, cc -E runs the code through the compiler's parser,
3341 # not just through cpp. "Syntax error" is here to catch this case.
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343/* end confdefs.h. */
3344#ifdef __STDC__
3345# include <limits.h>
3346#else
3347# include <assert.h>
3348#endif
3349 Syntax error
3350_ACEOF
3351if ac_fn_c_try_cpp "$LINENO"; then :
3352
3353else
3354 # Broken: fails on valid input.
3355continue
3356fi
3357rm -f conftest.err conftest.i conftest.$ac_ext
3358
3359 # OK, works on sane cases. Now check whether nonexistent headers
3360 # can be detected and how.
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362/* end confdefs.h. */
3363#include <ac_nonexistent.h>
3364_ACEOF
3365if ac_fn_c_try_cpp "$LINENO"; then :
3366 # Broken: success on invalid input.
3367continue
3368else
3369 # Passes both tests.
3370ac_preproc_ok=:
3371break
3372fi
3373rm -f conftest.err conftest.i conftest.$ac_ext
3374
3375done
3376# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3377rm -f conftest.i conftest.err conftest.$ac_ext
3378if $ac_preproc_ok; then :
3379 break
3380fi
3381
3382 done
3383 ac_cv_prog_CPP=$CPP
3384
3385fi
3386 CPP=$ac_cv_prog_CPP
3387else
3388 ac_cv_prog_CPP=$CPP
3389fi
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3391$as_echo "$CPP" >&6; }
3392ac_preproc_ok=false
3393for ac_c_preproc_warn_flag in '' yes
3394do
3395 # Use a header file that comes with gcc, so configuring glibc
3396 # with a fresh cross-compiler works.
3397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3398 # <limits.h> exists even on freestanding compilers.
3399 # On the NeXT, cc -E runs the code through the compiler's parser,
3400 # not just through cpp. "Syntax error" is here to catch this case.
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402/* end confdefs.h. */
3403#ifdef __STDC__
3404# include <limits.h>
3405#else
3406# include <assert.h>
3407#endif
3408 Syntax error
3409_ACEOF
3410if ac_fn_c_try_cpp "$LINENO"; then :
3411
3412else
3413 # Broken: fails on valid input.
3414continue
3415fi
3416rm -f conftest.err conftest.i conftest.$ac_ext
3417
3418 # OK, works on sane cases. Now check whether nonexistent headers
3419 # can be detected and how.
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421/* end confdefs.h. */
3422#include <ac_nonexistent.h>
3423_ACEOF
3424if ac_fn_c_try_cpp "$LINENO"; then :
3425 # Broken: success on invalid input.
3426continue
3427else
3428 # Passes both tests.
3429ac_preproc_ok=:
3430break
3431fi
3432rm -f conftest.err conftest.i conftest.$ac_ext
3433
3434done
3435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436rm -f conftest.i conftest.err conftest.$ac_ext
3437if $ac_preproc_ok; then :
3438
3439else
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3443See \`config.log' for more details" "$LINENO" 5; }
3444fi
3445
3446ac_ext=c
3447ac_cpp='$CPP $CPPFLAGS'
3448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451
3452ac_ext=cpp
3453ac_cpp='$CXXCPP $CPPFLAGS'
3454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3457if test -z "$CXX"; then
3458 if test -n "$CCC"; then
3459 CXX=$CCC
3460 else
3461 if test -n "$ac_tool_prefix"; then
3462 for ac_prog in clang++ c++ g++
3463 do
3464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467$as_echo_n "checking for $ac_word... " >&6; }
3468if ${ac_cv_prog_CXX+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470else
3471 if test -n "$CXX"; then
3472 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3473else
3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477 IFS=$as_save_IFS
3478 test -z "$as_dir" && as_dir=.
3479 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3481 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 break 2
3484 fi
3485done
3486 done
3487IFS=$as_save_IFS
3488
3489fi
3490fi
3491CXX=$ac_cv_prog_CXX
3492if test -n "$CXX"; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3494$as_echo "$CXX" >&6; }
3495else
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497$as_echo "no" >&6; }
3498fi
3499
3500
3501 test -n "$CXX" && break
3502 done
3503fi
3504if test -z "$CXX"; then
3505 ac_ct_CXX=$CXX
3506 for ac_prog in clang++ c++ g++
3507do
3508 # Extract the first word of "$ac_prog", so it can be a program name with args.
3509set dummy $ac_prog; ac_word=$2
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511$as_echo_n "checking for $ac_word... " >&6; }
3512if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514else
3515 if test -n "$ac_ct_CXX"; then
3516 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3517else
3518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519for as_dir in $PATH
3520do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3525 ac_cv_prog_ac_ct_CXX="$ac_prog"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529done
3530 done
3531IFS=$as_save_IFS
3532
3533fi
3534fi
3535ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3536if test -n "$ac_ct_CXX"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3538$as_echo "$ac_ct_CXX" >&6; }
3539else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541$as_echo "no" >&6; }
3542fi
3543
3544
3545 test -n "$ac_ct_CXX" && break
3546done
3547
3548 if test "x$ac_ct_CXX" = x; then
3549 CXX="g++"
3550 else
3551 case $cross_compiling:$ac_tool_warned in
3552yes:)
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3555ac_tool_warned=yes ;;
3556esac
3557 CXX=$ac_ct_CXX
3558 fi
3559fi
3560
3561 fi
3562fi
3563# Provide some information about the compiler.
3564$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3565set X $ac_compile
3566ac_compiler=$2
3567for ac_option in --version -v -V -qversion; do
3568 { { ac_try="$ac_compiler $ac_option >&5"
3569case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572esac
3573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574$as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3576 ac_status=$?
3577 if test -s conftest.err; then
3578 sed '10a\
3579... rest of stderr output deleted ...
3580 10q' conftest.err >conftest.er1
3581 cat conftest.er1 >&5
3582 fi
3583 rm -f conftest.er1 conftest.err
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }
3586done
3587
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3589$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3590if ${ac_cv_cxx_compiler_gnu+:} false; then :
3591 $as_echo_n "(cached) " >&6
3592else
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h. */
3595
3596int
3597main ()
3598{
3599#ifndef __GNUC__
3600 choke me
3601#endif
3602
3603 ;
3604 return 0;
3605}
3606_ACEOF
3607if ac_fn_cxx_try_compile "$LINENO"; then :
3608 ac_compiler_gnu=yes
3609else
3610 ac_compiler_gnu=no
3611fi
3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3614
3615fi
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3617$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3618if test $ac_compiler_gnu = yes; then
3619 GXX=yes
3620else
3621 GXX=
3622fi
3623ac_test_CXXFLAGS=${CXXFLAGS+set}
3624ac_save_CXXFLAGS=$CXXFLAGS
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3626$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3627if ${ac_cv_prog_cxx_g+:} false; then :
3628 $as_echo_n "(cached) " >&6
3629else
3630 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3631 ac_cxx_werror_flag=yes
3632 ac_cv_prog_cxx_g=no
3633 CXXFLAGS="-g"
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635/* end confdefs.h. */
3636
3637int
3638main ()
3639{
3640
3641 ;
3642 return 0;
3643}
3644_ACEOF
3645if ac_fn_cxx_try_compile "$LINENO"; then :
3646 ac_cv_prog_cxx_g=yes
3647else
3648 CXXFLAGS=""
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650/* end confdefs.h. */
3651
3652int
3653main ()
3654{
3655
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660if ac_fn_cxx_try_compile "$LINENO"; then :
3661
3662else
3663 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3664 CXXFLAGS="-g"
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666/* end confdefs.h. */
3667
3668int
3669main ()
3670{
3671
3672 ;
3673 return 0;
3674}
3675_ACEOF
3676if ac_fn_cxx_try_compile "$LINENO"; then :
3677 ac_cv_prog_cxx_g=yes
3678fi
3679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680fi
3681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682fi
3683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3687$as_echo "$ac_cv_prog_cxx_g" >&6; }
3688if test "$ac_test_CXXFLAGS" = set; then
3689 CXXFLAGS=$ac_save_CXXFLAGS
3690elif test $ac_cv_prog_cxx_g = yes; then
3691 if test "$GXX" = yes; then
3692 CXXFLAGS="-g -O2"
3693 else
3694 CXXFLAGS="-g"
3695 fi
3696else
3697 if test "$GXX" = yes; then
3698 CXXFLAGS="-O2"
3699 else
3700 CXXFLAGS=
3701 fi
3702fi
3703ac_ext=c
3704ac_cpp='$CPP $CPPFLAGS'
3705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708
3709if test -n "$ac_tool_prefix"; then
3710 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3711set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713$as_echo_n "checking for $ac_word... " >&6; }
3714if ${ac_cv_prog_RANLIB+:} false; then :
3715 $as_echo_n "(cached) " >&6
3716else
3717 if test -n "$RANLIB"; then
3718 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3719else
3720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721for as_dir in $PATH
3722do
3723 IFS=$as_save_IFS
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3727 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 break 2
3730 fi
3731done
3732 done
3733IFS=$as_save_IFS
3734
3735fi
3736fi
3737RANLIB=$ac_cv_prog_RANLIB
3738if test -n "$RANLIB"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3740$as_echo "$RANLIB" >&6; }
3741else
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743$as_echo "no" >&6; }
3744fi
3745
3746
3747fi
3748if test -z "$ac_cv_prog_RANLIB"; then
3749 ac_ct_RANLIB=$RANLIB
3750 # Extract the first word of "ranlib", so it can be a program name with args.
3751set dummy ranlib; ac_word=$2
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753$as_echo_n "checking for $ac_word... " >&6; }
3754if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756else
3757 if test -n "$ac_ct_RANLIB"; then
3758 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3759else
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3767 ac_cv_prog_ac_ct_RANLIB="ranlib"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3770 fi
3771done
3772 done
3773IFS=$as_save_IFS
3774
3775fi
3776fi
3777ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3778if test -n "$ac_ct_RANLIB"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3780$as_echo "$ac_ct_RANLIB" >&6; }
3781else
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783$as_echo "no" >&6; }
3784fi
3785
3786 if test "x$ac_ct_RANLIB" = x; then
3787 RANLIB=":"
3788 else
3789 case $cross_compiling:$ac_tool_warned in
3790yes:)
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3793ac_tool_warned=yes ;;
3794esac
3795 RANLIB=$ac_ct_RANLIB
3796 fi
3797else
3798 RANLIB="$ac_cv_prog_RANLIB"
3799fi
3800
3801# Extract the first word of "ar", so it can be a program name with args.
3802set dummy ar; ac_word=$2
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804$as_echo_n "checking for $ac_word... " >&6; }
3805if ${ac_cv_path_AR+:} false; then :
3806 $as_echo_n "(cached) " >&6
3807else
3808 case $AR in
3809 [\\/]* | ?:[\\/]*)
3810 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3811 ;;
3812 *)
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814for as_dir in $PATH
3815do
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3820 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3823 fi
3824done
3825 done
3826IFS=$as_save_IFS
3827
3828 ;;
3829esac
3830fi
3831AR=$ac_cv_path_AR
3832if test -n "$AR"; then
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3834$as_echo "$AR" >&6; }
3835else
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837$as_echo "no" >&6; }
3838fi
3839
3840
3841# Extract the first word of "chmod", so it can be a program name with args.
3842set dummy chmod; ac_word=$2
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844$as_echo_n "checking for $ac_word... " >&6; }
3845if ${ac_cv_path_CHMOD+:} false; then :
3846 $as_echo_n "(cached) " >&6
3847else
3848 case $CHMOD in
3849 [\\/]* | ?:[\\/]*)
3850 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3851 ;;
3852 *)
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854for as_dir in $PATH
3855do
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3860 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3863 fi
3864done
3865 done
3866IFS=$as_save_IFS
3867
3868 ;;
3869esac
3870fi
3871CHMOD=$ac_cv_path_CHMOD
3872if test -n "$CHMOD"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3874$as_echo "$CHMOD" >&6; }
3875else
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877$as_echo "no" >&6; }
3878fi
3879
3880
3881# Extract the first word of "gzip", so it can be a program name with args.
3882set dummy gzip; ac_word=$2
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884$as_echo_n "checking for $ac_word... " >&6; }
3885if ${ac_cv_path_GZIP+:} false; then :
3886 $as_echo_n "(cached) " >&6
3887else
3888 case $GZIP in
3889 [\\/]* | ?:[\\/]*)
3890 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3891 ;;
3892 *)
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH
3895do
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3900 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 break 2
3903 fi
3904done
3905 done
3906IFS=$as_save_IFS
3907
3908 ;;
3909esac
3910fi
3911GZIP=$ac_cv_path_GZIP
3912if test -n "$GZIP"; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3914$as_echo "$GZIP" >&6; }
3915else
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917$as_echo "no" >&6; }
3918fi
3919
3920
3921# Extract the first word of "ld", so it can be a program name with args.
3922set dummy ld; ac_word=$2
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924$as_echo_n "checking for $ac_word... " >&6; }
3925if ${ac_cv_path_LD+:} false; then :
3926 $as_echo_n "(cached) " >&6
3927else
3928 case $LD in
3929 [\\/]* | ?:[\\/]*)
3930 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3931 ;;
3932 *)
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934for as_dir in $PATH
3935do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3940 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3943 fi
3944done
3945 done
3946IFS=$as_save_IFS
3947
3948 ;;
3949esac
3950fi
3951LD=$ac_cv_path_LD
3952if test -n "$LD"; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3954$as_echo "$LD" >&6; }
3955else
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957$as_echo "no" >&6; }
3958fi
3959
3960
3961# Extract the first word of "ln", so it can be a program name with args.
3962set dummy ln; ac_word=$2
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964$as_echo_n "checking for $ac_word... " >&6; }
3965if ${ac_cv_path_LN+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967else
3968 case $LN in
3969 [\\/]* | ?:[\\/]*)
3970 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3971 ;;
3972 *)
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3980 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984done
3985 done
3986IFS=$as_save_IFS
3987
3988 ;;
3989esac
3990fi
3991LN=$ac_cv_path_LN
3992if test -n "$LN"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
3994$as_echo "$LN" >&6; }
3995else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997$as_echo "no" >&6; }
3998fi
3999
4000
4001# Extract the first word of "mv", so it can be a program name with args.
4002set dummy mv; ac_word=$2
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004$as_echo_n "checking for $ac_word... " >&6; }
4005if ${ac_cv_path_MV+:} false; then :
4006 $as_echo_n "(cached) " >&6
4007else
4008 case $MV in
4009 [\\/]* | ?:[\\/]*)
4010 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4011 ;;
4012 *)
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014for as_dir in $PATH
4015do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 4019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
4020 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
4023 fi
4024done
4025 done
4026IFS=$as_save_IFS
4027
4028 ;;
4029esac
4030fi
4031MV=$ac_cv_path_MV
4032if test -n "$MV"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4034$as_echo "$MV" >&6; }
4035else
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037$as_echo "no" >&6; }
4038fi
4039
4040
4041# Extract the first word of "rm", so it can be a program name with args.
4042set dummy rm; ac_word=$2
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044$as_echo_n "checking for $ac_word... " >&6; }
4045if ${ac_cv_path_RM+:} false; then :
4046 $as_echo_n "(cached) " >&6
4047else
4048 case $RM in
4049 [\\/]* | ?:[\\/]*)
4050 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4051 ;;
4052 *)
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054for as_dir in $PATH
4055do
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 4059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
4060 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4063 fi
4064done
4065 done
4066IFS=$as_save_IFS
4067
4068 ;;
4069esac
4070fi
4071RM=$ac_cv_path_RM
4072if test -n "$RM"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4074$as_echo "$RM" >&6; }
4075else
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077$as_echo "no" >&6; }
4078fi
4079
4080
4081# Extract the first word of "rmdir", so it can be a program name with args.
4082set dummy rmdir; ac_word=$2
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084$as_echo_n "checking for $ac_word... " >&6; }
4085if ${ac_cv_path_RMDIR+:} false; then :
4086 $as_echo_n "(cached) " >&6
4087else
4088 case $RMDIR in
4089 [\\/]* | ?:[\\/]*)
4090 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4091 ;;
4092 *)
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
4100 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4103 fi
4104done
4105 done
4106IFS=$as_save_IFS
4107
4108 ;;
4109esac
4110fi
4111RMDIR=$ac_cv_path_RMDIR
4112if test -n "$RMDIR"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4114$as_echo "$RMDIR" >&6; }
4115else
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117$as_echo "no" >&6; }
4118fi
4119
4120
4121# Extract the first word of "sed", so it can be a program name with args.
4122set dummy sed; ac_word=$2
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124$as_echo_n "checking for $ac_word... " >&6; }
4125if ${ac_cv_path_SED+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127else
4128 case $SED in
4129 [\\/]* | ?:[\\/]*)
4130 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4131 ;;
4132 *)
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 4139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
4140 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4143 fi
4144done
4145 done
4146IFS=$as_save_IFS
4147
4148 ;;
4149esac
4150fi
4151SED=$ac_cv_path_SED
4152if test -n "$SED"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4154$as_echo "$SED" >&6; }
4155else
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157$as_echo "no" >&6; }
4158fi
4159
4160
4161# Extract the first word of "xdg-open", so it can be a program name with args.
4162set dummy xdg-open; ac_word=$2
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164$as_echo_n "checking for $ac_word... " >&6; }
4165if ${ac_cv_path_XDGOPEN+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167else
4168 case $XDGOPEN in
4169 [\\/]* | ?:[\\/]*)
4170 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4171 ;;
4172 *)
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174for as_dir in $PATH
4175do
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 4179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
4180 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4183 fi
4184done
4185 done
4186IFS=$as_save_IFS
4187
4188 ;;
4189esac
4190fi
4191XDGOPEN=$ac_cv_path_XDGOPEN
4192if test -n "$XDGOPEN"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4194$as_echo "$XDGOPEN" >&6; }
4195else
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197$as_echo "no" >&6; }
4198fi
4199
4200
4201if test "x$XDGOPEN" = x; then
4202 CUPS_HTMLVIEW="htmlview"
4203else
4204 CUPS_HTMLVIEW="$XDGOPEN"
4205fi
4206
4207
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4209$as_echo_n "checking for install-sh script... " >&6; }
4210INSTALL="`pwd`/install-sh"
4211
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4213$as_echo "using $INSTALL" >&6; }
4214
4215if test "x$AR" = x; then
4216 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4217fi
4218if test "x$CC" = x; then
4219 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4220fi
4221
4222INSTALLSTATIC=""
4223# Check whether --enable-static was given.
4224if test "${enable_static+set}" = set; then :
4225 enableval=$enable_static;
4226fi
4227
4228
4229if test x$enable_static = xyes; then
4230 echo Installing static libraries...
4231 INSTALLSTATIC="installstatic"
4232fi
4233
4234
4235
4236if test -n "$ac_tool_prefix"; then
4237 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4238set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4240$as_echo_n "checking for $ac_word... " >&6; }
4241if ${ac_cv_path_PKGCONFIG+:} false; then :
4242 $as_echo_n "(cached) " >&6
4243else
4244 case $PKGCONFIG in
4245 [\\/]* | ?:[\\/]*)
4246 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4247 ;;
4248 *)
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250for as_dir in $PATH
4251do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
4256 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4259 fi
4260done
4261 done
4262IFS=$as_save_IFS
4263
4264 ;;
4265esac
4266fi
4267PKGCONFIG=$ac_cv_path_PKGCONFIG
4268if test -n "$PKGCONFIG"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4270$as_echo "$PKGCONFIG" >&6; }
4271else
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273$as_echo "no" >&6; }
4274fi
4275
4276
4277fi
4278if test -z "$ac_cv_path_PKGCONFIG"; then
4279 ac_pt_PKGCONFIG=$PKGCONFIG
4280 # Extract the first word of "pkg-config", so it can be a program name with args.
4281set dummy pkg-config; ac_word=$2
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283$as_echo_n "checking for $ac_word... " >&6; }
4284if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286else
4287 case $ac_pt_PKGCONFIG in
4288 [\\/]* | ?:[\\/]*)
4289 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4290 ;;
4291 *)
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293for as_dir in $PATH
4294do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
4299 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4302 fi
4303done
4304 done
4305IFS=$as_save_IFS
4306
4307 ;;
4308esac
4309fi
4310ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4311if test -n "$ac_pt_PKGCONFIG"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4313$as_echo "$ac_pt_PKGCONFIG" >&6; }
4314else
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316$as_echo "no" >&6; }
4317fi
4318
4319 if test "x$ac_pt_PKGCONFIG" = x; then
4320 PKGCONFIG=""
4321 else
4322 case $cross_compiling:$ac_tool_warned in
4323yes:)
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4326ac_tool_warned=yes ;;
4327esac
4328 PKGCONFIG=$ac_pt_PKGCONFIG
4329 fi
4330else
4331 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4332fi
4333
4334
4335
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4337$as_echo_n "checking for library containing abs... " >&6; }
4338if ${ac_cv_search_abs+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340else
4341 ac_func_search_save_LIBS=$LIBS
4342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h. */
4344
4345/* Override any GCC internal prototype to avoid an error.
4346 Use char because int might match the return type of a GCC
4347 builtin and then its argument prototype would still apply. */
4348#ifdef __cplusplus
4349extern "C"
4350#endif
4351char abs ();
4352int
4353main ()
4354{
4355return abs ();
4356 ;
4357 return 0;
4358}
4359_ACEOF
4360for ac_lib in '' m; do
4361 if test -z "$ac_lib"; then
4362 ac_res="none required"
4363 else
4364 ac_res=-l$ac_lib
4365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4366 fi
4367 if ac_fn_c_try_link "$LINENO"; then :
4368 ac_cv_search_abs=$ac_res
4369fi
4370rm -f core conftest.err conftest.$ac_objext \
4371 conftest$ac_exeext
4372 if ${ac_cv_search_abs+:} false; then :
4373 break
4374fi
4375done
4376if ${ac_cv_search_abs+:} false; then :
4377
4378else
4379 ac_cv_search_abs=no
4380fi
4381rm conftest.$ac_ext
4382LIBS=$ac_func_search_save_LIBS
4383fi
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4385$as_echo "$ac_cv_search_abs" >&6; }
4386ac_res=$ac_cv_search_abs
4387if test "$ac_res" != no; then :
4388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4389 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4390
4391fi
4392
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4394$as_echo_n "checking for library containing crypt... " >&6; }
4395if ${ac_cv_search_crypt+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397else
4398 ac_func_search_save_LIBS=$LIBS
4399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h. */
4401
4402/* Override any GCC internal prototype to avoid an error.
4403 Use char because int might match the return type of a GCC
4404 builtin and then its argument prototype would still apply. */
4405#ifdef __cplusplus
4406extern "C"
4407#endif
4408char crypt ();
4409int
4410main ()
4411{
4412return crypt ();
4413 ;
4414 return 0;
4415}
4416_ACEOF
4417for ac_lib in '' crypt; do
4418 if test -z "$ac_lib"; then
4419 ac_res="none required"
4420 else
4421 ac_res=-l$ac_lib
4422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4423 fi
4424 if ac_fn_c_try_link "$LINENO"; then :
4425 ac_cv_search_crypt=$ac_res
4426fi
4427rm -f core conftest.err conftest.$ac_objext \
4428 conftest$ac_exeext
4429 if ${ac_cv_search_crypt+:} false; then :
4430 break
4431fi
4432done
4433if ${ac_cv_search_crypt+:} false; then :
4434
4435else
4436 ac_cv_search_crypt=no
4437fi
4438rm conftest.$ac_ext
4439LIBS=$ac_func_search_save_LIBS
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4442$as_echo "$ac_cv_search_crypt" >&6; }
4443ac_res=$ac_cv_search_crypt
4444if test "$ac_res" != no; then :
4445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4446
4447fi
4448
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4450$as_echo_n "checking for library containing fmod... " >&6; }
4451if ${ac_cv_search_fmod+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453else
4454 ac_func_search_save_LIBS=$LIBS
4455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456/* end confdefs.h. */
4457
4458/* Override any GCC internal prototype to avoid an error.
4459 Use char because int might match the return type of a GCC
4460 builtin and then its argument prototype would still apply. */
4461#ifdef __cplusplus
4462extern "C"
4463#endif
4464char fmod ();
4465int
4466main ()
4467{
4468return fmod ();
4469 ;
4470 return 0;
4471}
4472_ACEOF
4473for ac_lib in '' m; do
4474 if test -z "$ac_lib"; then
4475 ac_res="none required"
4476 else
4477 ac_res=-l$ac_lib
4478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4479 fi
4480 if ac_fn_c_try_link "$LINENO"; then :
4481 ac_cv_search_fmod=$ac_res
4482fi
4483rm -f core conftest.err conftest.$ac_objext \
4484 conftest$ac_exeext
4485 if ${ac_cv_search_fmod+:} false; then :
4486 break
4487fi
4488done
4489if ${ac_cv_search_fmod+:} false; then :
4490
4491else
4492 ac_cv_search_fmod=no
4493fi
4494rm conftest.$ac_ext
4495LIBS=$ac_func_search_save_LIBS
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4498$as_echo "$ac_cv_search_fmod" >&6; }
4499ac_res=$ac_cv_search_fmod
4500if test "$ac_res" != no; then :
4501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4502
4503fi
4504
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4506$as_echo_n "checking for library containing getspent... " >&6; }
4507if ${ac_cv_search_getspent+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509else
4510 ac_func_search_save_LIBS=$LIBS
4511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512/* end confdefs.h. */
4513
4514/* Override any GCC internal prototype to avoid an error.
4515 Use char because int might match the return type of a GCC
4516 builtin and then its argument prototype would still apply. */
4517#ifdef __cplusplus
4518extern "C"
4519#endif
4520char getspent ();
4521int
4522main ()
4523{
4524return getspent ();
4525 ;
4526 return 0;
4527}
4528_ACEOF
4529for ac_lib in '' sec gen; do
4530 if test -z "$ac_lib"; then
4531 ac_res="none required"
4532 else
4533 ac_res=-l$ac_lib
4534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4535 fi
4536 if ac_fn_c_try_link "$LINENO"; then :
4537 ac_cv_search_getspent=$ac_res
4538fi
4539rm -f core conftest.err conftest.$ac_objext \
4540 conftest$ac_exeext
4541 if ${ac_cv_search_getspent+:} false; then :
4542 break
4543fi
4544done
4545if ${ac_cv_search_getspent+:} false; then :
4546
4547else
4548 ac_cv_search_getspent=no
4549fi
4550rm conftest.$ac_ext
4551LIBS=$ac_func_search_save_LIBS
4552fi
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4554$as_echo "$ac_cv_search_getspent" >&6; }
4555ac_res=$ac_cv_search_getspent
4556if test "$ac_res" != no; then :
4557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4558
4559fi
4560
4561
4562LIBMALLOC=""
4563# Check whether --enable-mallinfo was given.
4564if test "${enable_mallinfo+set}" = set; then :
4565 enableval=$enable_mallinfo;
4566fi
4567
4568
4569if test x$enable_mallinfo = xyes; then
4570 SAVELIBS="$LIBS"
4571 LIBS=""
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4573$as_echo_n "checking for library containing mallinfo... " >&6; }
4574if ${ac_cv_search_mallinfo+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576else
4577 ac_func_search_save_LIBS=$LIBS
4578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579/* end confdefs.h. */
4580
4581/* Override any GCC internal prototype to avoid an error.
4582 Use char because int might match the return type of a GCC
4583 builtin and then its argument prototype would still apply. */
4584#ifdef __cplusplus
4585extern "C"
4586#endif
4587char mallinfo ();
4588int
4589main ()
4590{
4591return mallinfo ();
4592 ;
4593 return 0;
4594}
4595_ACEOF
4596for ac_lib in '' malloc; do
4597 if test -z "$ac_lib"; then
4598 ac_res="none required"
4599 else
4600 ac_res=-l$ac_lib
4601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4602 fi
4603 if ac_fn_c_try_link "$LINENO"; then :
4604 ac_cv_search_mallinfo=$ac_res
4605fi
4606rm -f core conftest.err conftest.$ac_objext \
4607 conftest$ac_exeext
4608 if ${ac_cv_search_mallinfo+:} false; then :
4609 break
4610fi
4611done
4612if ${ac_cv_search_mallinfo+:} false; then :
4613
4614else
4615 ac_cv_search_mallinfo=no
4616fi
4617rm conftest.$ac_ext
4618LIBS=$ac_func_search_save_LIBS
4619fi
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4621$as_echo "$ac_cv_search_mallinfo" >&6; }
4622ac_res=$ac_cv_search_mallinfo
4623if test "$ac_res" != no; then :
4624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4625 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4626
4627fi
4628
4629 LIBMALLOC="$LIBS"
4630 LIBS="$SAVELIBS"
4631fi
4632
4633
4634
4635# Check whether --enable-libpaper was given.
4636if test "${enable_libpaper+set}" = set; then :
4637 enableval=$enable_libpaper;
4638fi
4639
4640
4641if test x$enable_libpaper = xyes; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4643$as_echo_n "checking for systempapername in -lpaper... " >&6; }
4644if ${ac_cv_lib_paper_systempapername+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646else
4647 ac_check_lib_save_LIBS=$LIBS
4648LIBS="-lpaper $LIBS"
4649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650/* end confdefs.h. */
4651
4652/* Override any GCC internal prototype to avoid an error.
4653 Use char because int might match the return type of a GCC
4654 builtin and then its argument prototype would still apply. */
4655#ifdef __cplusplus
4656extern "C"
4657#endif
4658char systempapername ();
4659int
4660main ()
4661{
4662return systempapername ();
4663 ;
4664 return 0;
4665}
4666_ACEOF
4667if ac_fn_c_try_link "$LINENO"; then :
4668 ac_cv_lib_paper_systempapername=yes
4669else
4670 ac_cv_lib_paper_systempapername=no
4671fi
4672rm -f core conftest.err conftest.$ac_objext \
4673 conftest$ac_exeext conftest.$ac_ext
4674LIBS=$ac_check_lib_save_LIBS
4675fi
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4677$as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4678if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4679 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4680
4681 LIBPAPER="-lpaper"
4682else
4683 LIBPAPER=""
4684fi
4685
4686else
4687 LIBPAPER=""
4688fi
4689
4690
4691
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4693$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4694if ${ac_cv_path_GREP+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696else
4697 if test -z "$GREP"; then
4698 ac_path_GREP_found=false
4699 # Loop through the user's path and test for each of PROGNAME-LIST
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_prog in grep ggrep; do
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8d7d268f 4708 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
d9f356c5
MS
4709# Check for GNU ac_path_GREP and select it if it is found.
4710 # Check for GNU $ac_path_GREP
4711case `"$ac_path_GREP" --version 2>&1` in
4712*GNU*)
4713 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4714*)
4715 ac_count=0
4716 $as_echo_n 0123456789 >"conftest.in"
4717 while :
4718 do
4719 cat "conftest.in" "conftest.in" >"conftest.tmp"
4720 mv "conftest.tmp" "conftest.in"
4721 cp "conftest.in" "conftest.nl"
4722 $as_echo 'GREP' >> "conftest.nl"
4723 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4725 as_fn_arith $ac_count + 1 && ac_count=$as_val
4726 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4727 # Best one so far, save it but keep looking for a better one
4728 ac_cv_path_GREP="$ac_path_GREP"
4729 ac_path_GREP_max=$ac_count
4730 fi
4731 # 10*(2^10) chars as input seems more than enough
4732 test $ac_count -gt 10 && break
4733 done
4734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4735esac
4736
4737 $ac_path_GREP_found && break 3
4738 done
4739 done
4740 done
4741IFS=$as_save_IFS
4742 if test -z "$ac_cv_path_GREP"; then
4743 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4744 fi
4745else
4746 ac_cv_path_GREP=$GREP
4747fi
4748
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4751$as_echo "$ac_cv_path_GREP" >&6; }
4752 GREP="$ac_cv_path_GREP"
4753
4754
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4756$as_echo_n "checking for egrep... " >&6; }
4757if ${ac_cv_path_EGREP+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759else
4760 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4761 then ac_cv_path_EGREP="$GREP -E"
4762 else
4763 if test -z "$EGREP"; then
4764 ac_path_EGREP_found=false
4765 # Loop through the user's path and test for each of PROGNAME-LIST
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4768do
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_prog in egrep; do
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8d7d268f 4774 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
d9f356c5
MS
4775# Check for GNU ac_path_EGREP and select it if it is found.
4776 # Check for GNU $ac_path_EGREP
4777case `"$ac_path_EGREP" --version 2>&1` in
4778*GNU*)
4779 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4780*)
4781 ac_count=0
4782 $as_echo_n 0123456789 >"conftest.in"
4783 while :
4784 do
4785 cat "conftest.in" "conftest.in" >"conftest.tmp"
4786 mv "conftest.tmp" "conftest.in"
4787 cp "conftest.in" "conftest.nl"
4788 $as_echo 'EGREP' >> "conftest.nl"
4789 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4791 as_fn_arith $ac_count + 1 && ac_count=$as_val
4792 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4793 # Best one so far, save it but keep looking for a better one
4794 ac_cv_path_EGREP="$ac_path_EGREP"
4795 ac_path_EGREP_max=$ac_count
4796 fi
4797 # 10*(2^10) chars as input seems more than enough
4798 test $ac_count -gt 10 && break
4799 done
4800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4801esac
4802
4803 $ac_path_EGREP_found && break 3
4804 done
4805 done
4806 done
4807IFS=$as_save_IFS
4808 if test -z "$ac_cv_path_EGREP"; then
4809 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4810 fi
4811else
4812 ac_cv_path_EGREP=$EGREP
4813fi
4814
4815 fi
4816fi
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4818$as_echo "$ac_cv_path_EGREP" >&6; }
4819 EGREP="$ac_cv_path_EGREP"
4820
4821
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4823$as_echo_n "checking for ANSI C header files... " >&6; }
4824if ${ac_cv_header_stdc+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826else
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828/* end confdefs.h. */
4829#include <stdlib.h>
4830#include <stdarg.h>
4831#include <string.h>
4832#include <float.h>
4833
4834int
4835main ()
4836{
4837
4838 ;
4839 return 0;
4840}
4841_ACEOF
4842if ac_fn_c_try_compile "$LINENO"; then :
4843 ac_cv_header_stdc=yes
4844else
4845 ac_cv_header_stdc=no
4846fi
4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848
4849if test $ac_cv_header_stdc = yes; then
4850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852/* end confdefs.h. */
4853#include <string.h>
4854
4855_ACEOF
4856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4857 $EGREP "memchr" >/dev/null 2>&1; then :
4858
4859else
4860 ac_cv_header_stdc=no
4861fi
4862rm -f conftest*
4863
4864fi
4865
4866if test $ac_cv_header_stdc = yes; then
4867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869/* end confdefs.h. */
4870#include <stdlib.h>
4871
4872_ACEOF
4873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4874 $EGREP "free" >/dev/null 2>&1; then :
4875
4876else
4877 ac_cv_header_stdc=no
4878fi
4879rm -f conftest*
4880
4881fi
4882
4883if test $ac_cv_header_stdc = yes; then
4884 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4885 if test "$cross_compiling" = yes; then :
4886 :
4887else
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889/* end confdefs.h. */
4890#include <ctype.h>
4891#include <stdlib.h>
4892#if ((' ' & 0x0FF) == 0x020)
4893# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4894# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4895#else
4896# define ISLOWER(c) \
4897 (('a' <= (c) && (c) <= 'i') \
4898 || ('j' <= (c) && (c) <= 'r') \
4899 || ('s' <= (c) && (c) <= 'z'))
4900# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4901#endif
4902
4903#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4904int
4905main ()
4906{
4907 int i;
4908 for (i = 0; i < 256; i++)
4909 if (XOR (islower (i), ISLOWER (i))
4910 || toupper (i) != TOUPPER (i))
4911 return 2;
4912 return 0;
4913}
4914_ACEOF
4915if ac_fn_c_try_run "$LINENO"; then :
4916
4917else
4918 ac_cv_header_stdc=no
4919fi
4920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4921 conftest.$ac_objext conftest.beam conftest.$ac_ext
4922fi
4923
4924fi
4925fi
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4927$as_echo "$ac_cv_header_stdc" >&6; }
4928if test $ac_cv_header_stdc = yes; then
4929
4930$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4931
4932fi
4933
4934# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4935for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4936 inttypes.h stdint.h unistd.h
4937do :
4938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4939ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4940"
4941if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4942 cat >>confdefs.h <<_ACEOF
4943#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4944_ACEOF
4945
4946fi
4947
4948done
4949
4950
4951ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4952if test "x$ac_cv_header_stdlib_h" = xyes; then :
4953 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
4954
4955fi
4956
4957
4958ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
4959if test "x$ac_cv_header_crypt_h" = xyes; then :
4960 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
4961
4962fi
4963
4964
4965ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
4966if test "x$ac_cv_header_langinfo_h" = xyes; then :
4967 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
4968
4969fi
4970
4971
4972ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4973if test "x$ac_cv_header_malloc_h" = xyes; then :
4974 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
4975
4976fi
4977
4978
4979ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4980if test "x$ac_cv_header_shadow_h" = xyes; then :
4981 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
4982
4983fi
4984
4985
4986ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4987if test "x$ac_cv_header_stdint_h" = xyes; then :
4988 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
4989
4990fi
4991
4992
4993ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4994if test "x$ac_cv_header_string_h" = xyes; then :
4995 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
4996
4997fi
4998
4999
5000ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5001if test "x$ac_cv_header_strings_h" = xyes; then :
5002 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5003
5004fi
5005
5006
5007ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5008if test "x$ac_cv_header_bstring_h" = xyes; then :
5009 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5010
5011fi
5012
5013
5014ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5015if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5016 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5017
5018fi
5019
5020
5021ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5022if test "x$ac_cv_header_sys_param_h" = xyes; then :
5023 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5024
5025fi
5026
5027
5028ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5029if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5030 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5031
5032fi
5033
5034
d9f356c5
MS
5035
5036ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5037if test "x$ac_cv_header_iconv_h" = xyes; then :
5038 SAVELIBS="$LIBS"
5039 LIBS=""
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5041$as_echo_n "checking for library containing iconv_open... " >&6; }
5042if ${ac_cv_search_iconv_open+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044else
5045 ac_func_search_save_LIBS=$LIBS
5046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h. */
5048
5049/* Override any GCC internal prototype to avoid an error.
5050 Use char because int might match the return type of a GCC
5051 builtin and then its argument prototype would still apply. */
5052#ifdef __cplusplus
5053extern "C"
5054#endif
5055char iconv_open ();
5056int
5057main ()
5058{
5059return iconv_open ();
5060 ;
5061 return 0;
5062}
5063_ACEOF
5064for ac_lib in '' iconv; do
5065 if test -z "$ac_lib"; then
5066 ac_res="none required"
5067 else
5068 ac_res=-l$ac_lib
5069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5070 fi
5071 if ac_fn_c_try_link "$LINENO"; then :
5072 ac_cv_search_iconv_open=$ac_res
5073fi
5074rm -f core conftest.err conftest.$ac_objext \
5075 conftest$ac_exeext
5076 if ${ac_cv_search_iconv_open+:} false; then :
5077 break
5078fi
5079done
5080if ${ac_cv_search_iconv_open+:} false; then :
5081
5082else
5083 ac_cv_search_iconv_open=no
5084fi
5085rm conftest.$ac_ext
5086LIBS=$ac_func_search_save_LIBS
5087fi
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5089$as_echo "$ac_cv_search_iconv_open" >&6; }
5090ac_res=$ac_cv_search_iconv_open
5091if test "$ac_res" != no; then :
5092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5093 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5094
5095 SAVELIBS="$SAVELIBS $LIBS"
5096fi
5097
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5099$as_echo_n "checking for library containing libiconv_open... " >&6; }
5100if ${ac_cv_search_libiconv_open+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102else
5103 ac_func_search_save_LIBS=$LIBS
5104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h. */
5106
5107/* Override any GCC internal prototype to avoid an error.
5108 Use char because int might match the return type of a GCC
5109 builtin and then its argument prototype would still apply. */
5110#ifdef __cplusplus
5111extern "C"
5112#endif
5113char libiconv_open ();
5114int
5115main ()
5116{
5117return libiconv_open ();
5118 ;
5119 return 0;
5120}
5121_ACEOF
5122for ac_lib in '' iconv; do
5123 if test -z "$ac_lib"; then
5124 ac_res="none required"
5125 else
5126 ac_res=-l$ac_lib
5127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5128 fi
5129 if ac_fn_c_try_link "$LINENO"; then :
5130 ac_cv_search_libiconv_open=$ac_res
5131fi
5132rm -f core conftest.err conftest.$ac_objext \
5133 conftest$ac_exeext
5134 if ${ac_cv_search_libiconv_open+:} false; then :
5135 break
5136fi
5137done
5138if ${ac_cv_search_libiconv_open+:} false; then :
5139
5140else
5141 ac_cv_search_libiconv_open=no
5142fi
5143rm conftest.$ac_ext
5144LIBS=$ac_func_search_save_LIBS
5145fi
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5147$as_echo "$ac_cv_search_libiconv_open" >&6; }
5148ac_res=$ac_cv_search_libiconv_open
5149if test "$ac_res" != no; then :
5150 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5151 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5152
5153 SAVELIBS="$SAVELIBS $LIBS"
5154fi
5155
5156 LIBS="$SAVELIBS"
5157fi
5158
5159
5160
5161LIBMXML=""
5162ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5163if test "x$ac_cv_header_mxml_h" = xyes; then :
5164 SAVELIBS="$LIBS"
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5166$as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5167if ${ac_cv_search_mmxlNewElement+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169else
5170 ac_func_search_save_LIBS=$LIBS
5171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172/* end confdefs.h. */
5173
5174/* Override any GCC internal prototype to avoid an error.
5175 Use char because int might match the return type of a GCC
5176 builtin and then its argument prototype would still apply. */
5177#ifdef __cplusplus
5178extern "C"
5179#endif
5180char mmxlNewElement ();
5181int
5182main ()
5183{
5184return mmxlNewElement ();
5185 ;
5186 return 0;
5187}
5188_ACEOF
5189for ac_lib in '' mxml; do
5190 if test -z "$ac_lib"; then
5191 ac_res="none required"
5192 else
5193 ac_res=-l$ac_lib
5194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5195 fi
5196 if ac_fn_c_try_link "$LINENO"; then :
5197 ac_cv_search_mmxlNewElement=$ac_res
5198fi
5199rm -f core conftest.err conftest.$ac_objext \
5200 conftest$ac_exeext
5201 if ${ac_cv_search_mmxlNewElement+:} false; then :
5202 break
5203fi
5204done
5205if ${ac_cv_search_mmxlNewElement+:} false; then :
5206
5207else
5208 ac_cv_search_mmxlNewElement=no
5209fi
5210rm conftest.$ac_ext
5211LIBS=$ac_func_search_save_LIBS
5212fi
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5214$as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5215ac_res=$ac_cv_search_mmxlNewElement
5216if test "$ac_res" != no; then :
5217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5218 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5219
5220 LIBMXML="-lmxml"
5221fi
5222
5223 LIBS="$SAVELIBS"
5224fi
5225
5226
5227
5228
5229ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5230if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5231 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5232
5233fi
5234
5235
5236ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5237if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5238 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5239
5240fi
5241
5242
5243ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5244if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5245 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5246
5247fi
5248
5249
5250ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5251if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5252 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5253
5254fi
5255
5256
5257for ac_func in statfs statvfs
5258do :
5259 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5260ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5261if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5262 cat >>confdefs.h <<_ACEOF
5263#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5264_ACEOF
5265
5266fi
5267done
5268
5269
5270for ac_func in strdup strlcat strlcpy
5271do :
5272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5273ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5274if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5275 cat >>confdefs.h <<_ACEOF
5276#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5277_ACEOF
5278
5279fi
5280done
5281
105922ec 5282if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
d9f356c5
MS
5283 echo Forcing snprintf emulation for HP-UX.
5284else
5285 for ac_func in snprintf vsnprintf
5286do :
5287 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5288ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5289if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5290 cat >>confdefs.h <<_ACEOF
5291#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5292_ACEOF
5293
5294fi
5295done
5296
5297fi
5298
5299for ac_func in random lrand48 arc4random
5300do :
5301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5302ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5303if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5304 cat >>confdefs.h <<_ACEOF
5305#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5306_ACEOF
5307
5308fi
5309done
5310
5311
5312for ac_func in geteuid
5313do :
5314 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5315if test "x$ac_cv_func_geteuid" = xyes; then :
5316 cat >>confdefs.h <<_ACEOF
5317#define HAVE_GETEUID 1
5318_ACEOF
5319
5320fi
5321done
5322
5323
5324for ac_func in setpgid
5325do :
5326 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5327if test "x$ac_cv_func_setpgid" = xyes; then :
5328 cat >>confdefs.h <<_ACEOF
5329#define HAVE_SETPGID 1
5330_ACEOF
5331
5332fi
5333done
5334
5335
5336for ac_func in vsyslog
5337do :
5338 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5339if test "x$ac_cv_func_vsyslog" = xyes; then :
5340 cat >>confdefs.h <<_ACEOF
5341#define HAVE_VSYSLOG 1
5342_ACEOF
5343
5344fi
5345done
5346
5347
105922ec 5348case "$host_os_name" in
827bf9ce 5349 linux* | gnu*)
d9f356c5
MS
5350 # Do not use sigset on Linux or GNU HURD
5351 ;;
5352 *)
5353 # Use sigset on other platforms, if available
5354 for ac_func in sigset
5355do :
5356 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5357if test "x$ac_cv_func_sigset" = xyes; then :
5358 cat >>confdefs.h <<_ACEOF
5359#define HAVE_SIGSET 1
5360_ACEOF
5361
5362fi
5363done
5364
5365 ;;
5366esac
5367
5368for ac_func in sigaction
5369do :
5370 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5371if test "x$ac_cv_func_sigaction" = xyes; then :
5372 cat >>confdefs.h <<_ACEOF
5373#define HAVE_SIGACTION 1
5374_ACEOF
5375
5376fi
5377done
5378
5379
5380for ac_func in waitpid wait3
5381do :
5382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5383ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5384if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5385 cat >>confdefs.h <<_ACEOF
5386#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5387_ACEOF
5388
5389fi
5390done
5391
5392
5393for ac_func in posix_spawn
5394do :
5395 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5396if test "x$ac_cv_func_posix_spawn" = xyes; then :
5397 cat >>confdefs.h <<_ACEOF
5398#define HAVE_POSIX_SPAWN 1
5399_ACEOF
5400
5401fi
5402done
5403
5404
6eb98aee
MS
5405for ac_func in getgrouplist
5406do :
5407 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5408if test "x$ac_cv_func_getgrouplist" = xyes; then :
5409 cat >>confdefs.h <<_ACEOF
5410#define HAVE_GETGROUPLIST 1
5411_ACEOF
5412
5413fi
5414done
5415
5416
d9f356c5
MS
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5418$as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420/* end confdefs.h. */
5421#include <time.h>
5422int
5423main ()
5424{
5425struct tm t;
5426 int o = t.tm_gmtoff;
5427 ;
5428 return 0;
5429}
5430_ACEOF
5431if ac_fn_c_try_compile "$LINENO"; then :
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5433$as_echo "yes" >&6; }
5434 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5435
5436else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438$as_echo "no" >&6; }
5439fi
5440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5443$as_echo_n "checking for st_gen member in stat structure... " >&6; }
5444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445/* end confdefs.h. */
5446#include <sys/stat.h>
5447int
5448main ()
5449{
5450struct stat t;
5451 int o = t.st_gen;
5452 ;
5453 return 0;
5454}
5455_ACEOF
5456if ac_fn_c_try_compile "$LINENO"; then :
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458$as_echo "yes" >&6; }
5459 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5460
5461else
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463$as_echo "no" >&6; }
5464fi
5465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466
5467for ac_func in removefile
5468do :
5469 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5470if test "x$ac_cv_func_removefile" = xyes; then :
5471 cat >>confdefs.h <<_ACEOF
5472#define HAVE_REMOVEFILE 1
5473_ACEOF
5474
5475fi
5476done
5477
5478
5479# Check whether --enable-libusb was given.
5480if test "${enable_libusb+set}" = set; then :
5481 enableval=$enable_libusb;
5482fi
5483
5484
5485LIBUSB=""
5486USBQUIRKS=""
5487
5488
5489
5490if test "x$PKGCONFIG" != x; then
105922ec 5491 if test x$enable_libusb != xno -a $host_os_name != darwin; then
d9f356c5
MS
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5493$as_echo_n "checking for libusb-1.0... " >&6; }
5494 if $PKGCONFIG --exists libusb-1.0; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5496$as_echo "yes" >&6; }
5497 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5498
5499 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0`"
5500 LIBUSB="`$PKGCONFIG --libs libusb-1.0`"
5501 USBQUIRKS="\$(DATADIR)/usb"
5502 else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504$as_echo "no" >&6; }
5505 if test x$enable_libusb = xyes; then
5506 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5507 fi
5508 fi
5509 fi
5510elif test x$enable_libusb = xyes; then
5511 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5512fi
5513
5514# Check whether --enable-tcp_wrappers was given.
5515if test "${enable_tcp_wrappers+set}" = set; then :
5516 enableval=$enable_tcp_wrappers;
5517fi
5518
5519
5520LIBWRAP=""
5521
5522
5523if test x$enable_tcp_wrappers = xyes; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5525$as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5526if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5527 $as_echo_n "(cached) " >&6
5528else
5529 ac_check_lib_save_LIBS=$LIBS
5530LIBS="-lwrap $LIBS"
5531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532/* end confdefs.h. */
5533
5534/* Override any GCC internal prototype to avoid an error.
5535 Use char because int might match the return type of a GCC
5536 builtin and then its argument prototype would still apply. */
5537#ifdef __cplusplus
5538extern "C"
5539#endif
5540char hosts_access ();
5541int
5542main ()
5543{
5544return hosts_access ();
5545 ;
5546 return 0;
5547}
5548_ACEOF
5549if ac_fn_c_try_link "$LINENO"; then :
5550 ac_cv_lib_wrap_hosts_access=yes
5551else
5552 ac_cv_lib_wrap_hosts_access=no
5553fi
5554rm -f core conftest.err conftest.$ac_objext \
5555 conftest$ac_exeext conftest.$ac_ext
5556LIBS=$ac_check_lib_save_LIBS
5557fi
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5559$as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5560if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5561
5562 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5563if test "x$ac_cv_header_tcpd_h" = xyes; then :
5564 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5565
5566 LIBWRAP="-lwrap"
5567fi
5568
5569
5570fi
5571
5572fi
5573
5574INSTALL_GZIP=""
5575LIBZ=""
5576ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5577if test "x$ac_cv_header_zlib_h" = xyes; then :
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5579$as_echo_n "checking for gzgets in -lz... " >&6; }
5580if ${ac_cv_lib_z_gzgets+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582else
5583 ac_check_lib_save_LIBS=$LIBS
5584LIBS="-lz $LIBS"
5585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h. */
5587
5588/* Override any GCC internal prototype to avoid an error.
5589 Use char because int might match the return type of a GCC
5590 builtin and then its argument prototype would still apply. */
5591#ifdef __cplusplus
5592extern "C"
5593#endif
5594char gzgets ();
5595int
5596main ()
5597{
5598return gzgets ();
5599 ;
5600 return 0;
5601}
5602_ACEOF
5603if ac_fn_c_try_link "$LINENO"; then :
5604 ac_cv_lib_z_gzgets=yes
5605else
5606 ac_cv_lib_z_gzgets=no
5607fi
5608rm -f core conftest.err conftest.$ac_objext \
5609 conftest$ac_exeext conftest.$ac_ext
5610LIBS=$ac_check_lib_save_LIBS
5611fi
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5613$as_echo "$ac_cv_lib_z_gzgets" >&6; }
5614if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5615 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5616
5617 LIBZ="-lz"
5618 LIBS="$LIBS -lz"
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5620$as_echo_n "checking for inflateCopy in -lz... " >&6; }
5621if ${ac_cv_lib_z_inflateCopy+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623else
5624 ac_check_lib_save_LIBS=$LIBS
5625LIBS="-lz $LIBS"
5626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627/* end confdefs.h. */
5628
5629/* Override any GCC internal prototype to avoid an error.
5630 Use char because int might match the return type of a GCC
5631 builtin and then its argument prototype would still apply. */
5632#ifdef __cplusplus
5633extern "C"
5634#endif
5635char inflateCopy ();
5636int
5637main ()
5638{
5639return inflateCopy ();
5640 ;
5641 return 0;
5642}
5643_ACEOF
5644if ac_fn_c_try_link "$LINENO"; then :
5645 ac_cv_lib_z_inflateCopy=yes
5646else
5647 ac_cv_lib_z_inflateCopy=no
5648fi
5649rm -f core conftest.err conftest.$ac_objext \
5650 conftest$ac_exeext conftest.$ac_ext
5651LIBS=$ac_check_lib_save_LIBS
5652fi
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5654$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5655if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5656 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5657
5658fi
5659
5660 if test "x$GZIP" != z; then
5661 INSTALL_GZIP="-z"
5662 fi
5663fi
5664
5665fi
5666
5667
5668
5669
5670
105922ec
MS
5671case $host_os_name in
5672 darwin* | *bsd*)
d9f356c5
MS
5673 ARFLAGS="-rcv"
5674 ;;
5675 *)
5676 ARFLAGS="crvs"
5677 ;;
5678esac
5679
5680
5681
5682BACKLIBS=""
5683SERVERLIBS=""
5684
5685
5686
5687SAVELIBS="$LIBS"
5688LIBS=""
5689# Check whether --enable-acl was given.
5690if test "${enable_acl+set}" = set; then :
5691 enableval=$enable_acl;
5692fi
5693
5694if test "x$enable_acl" != xno; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5696$as_echo_n "checking for library containing acl_init... " >&6; }
5697if ${ac_cv_search_acl_init+:} false; then :
5698 $as_echo_n "(cached) " >&6
5699else
5700 ac_func_search_save_LIBS=$LIBS
5701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702/* end confdefs.h. */
5703
5704/* Override any GCC internal prototype to avoid an error.
5705 Use char because int might match the return type of a GCC
5706 builtin and then its argument prototype would still apply. */
5707#ifdef __cplusplus
5708extern "C"
5709#endif
5710char acl_init ();
5711int
5712main ()
5713{
5714return acl_init ();
5715 ;
5716 return 0;
5717}
5718_ACEOF
5719for ac_lib in '' acl; do
5720 if test -z "$ac_lib"; then
5721 ac_res="none required"
5722 else
5723 ac_res=-l$ac_lib
5724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5725 fi
5726 if ac_fn_c_try_link "$LINENO"; then :
5727 ac_cv_search_acl_init=$ac_res
5728fi
5729rm -f core conftest.err conftest.$ac_objext \
5730 conftest$ac_exeext
5731 if ${ac_cv_search_acl_init+:} false; then :
5732 break
5733fi
5734done
5735if ${ac_cv_search_acl_init+:} false; then :
5736
5737else
5738 ac_cv_search_acl_init=no
5739fi
5740rm conftest.$ac_ext
5741LIBS=$ac_func_search_save_LIBS
5742fi
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5744$as_echo "$ac_cv_search_acl_init" >&6; }
5745ac_res=$ac_cv_search_acl_init
5746if test "$ac_res" != no; then :
5747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5748 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5749
5750fi
5751
5752 SERVERLIBS="$SERVERLIBS $LIBS"
5753fi
5754LIBS="$SAVELIBS"
5755
5756# Check whether --enable-dbus was given.
5757if test "${enable_dbus+set}" = set; then :
5758 enableval=$enable_dbus;
5759fi
5760
5761
5762# Check whether --with-dbusdir was given.
5763if test "${with_dbusdir+set}" = set; then :
5764 withval=$with_dbusdir; DBUSDIR="$withval"
5765fi
5766
5767
5768DBUSDIR=""
5769DBUS_NOTIFIER=""
5770DBUS_NOTIFIERLIBS=""
5771
105922ec 5772if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
d9f356c5
MS
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5774$as_echo_n "checking for DBUS... " >&6; }
5775 if $PKGCONFIG --exists dbus-1; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5777$as_echo "yes" >&6; }
5778 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5779
5780 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE"
5781 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1`"
5782 DBUS_NOTIFIER="dbus"
5783 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1`"
5784 SAVELIBS="$LIBS"
5785 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5786 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5787if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5788 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5789
5790fi
5791
5792 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5793if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5794 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5795
5796fi
5797
5798 LIBS="$SAVELIBS"
5799 if test -d /etc/dbus-1; then
5800 DBUSDIR="/etc/dbus-1"
5801 fi
5802 else
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804$as_echo "no" >&6; }
5805 fi
5806fi
5807
5808
5809
5810
5811
5812CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5813CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5814CUPS_SYSTEM_AUTHKEY=""
5815INSTALLXPC=""
5816
105922ec
MS
5817case $host_os_name in
5818 darwin*)
d9f356c5
MS
5819 BACKLIBS="$BACKLIBS -framework IOKit"
5820 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5821 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5822
5823 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5824if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5825 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5826
5827fi
5828
5829
5830 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5831if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5832 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5833
5834fi
5835
5836
5837 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5838if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5839 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5840
5841fi
5842
5843
5844 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5845if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5846 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5847
5848fi
5849
5850
5851
5852 for ac_func in SCDynamicStoreCopyComputerName
5853do :
5854 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5855if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5856 cat >>confdefs.h <<_ACEOF
5857#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5858_ACEOF
5859
5860fi
5861done
5862
5863
5864 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5865if test "x$ac_cv_header_membership_h" = xyes; then :
5866 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5867
5868fi
5869
5870
5871 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5872if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5873 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5874
5875fi
5876
5877
5878 for ac_func in mbr_uid_to_uuid
5879do :
5880 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5881if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5882 cat >>confdefs.h <<_ACEOF
5883#define HAVE_MBR_UID_TO_UUID 1
5884_ACEOF
5885
5886fi
5887done
5888
5889
5890 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5891if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5892 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5893
5894fi
5895
5896
5897
5898 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5899if test "x$ac_cv_header_notify_h" = xyes; then :
5900 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5901
5902fi
5903
5904
5905 for ac_func in notify_post
5906do :
5907 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5908if test "x$ac_cv_func_notify_post" = xyes; then :
5909 cat >>confdefs.h <<_ACEOF
5910#define HAVE_NOTIFY_POST 1
5911_ACEOF
5912
5913fi
5914done
5915
5916
5917
5918# Check whether --with-adminkey was given.
5919if test "${with_adminkey+set}" = set; then :
5920 withval=$with_adminkey; default_adminkey="$withval"
5921else
5922 default_adminkey="default"
5923fi
5924
5925
5926# Check whether --with-operkey was given.
5927if test "${with_operkey+set}" = set; then :
5928 withval=$with_operkey; default_operkey="$withval"
5929else
5930 default_operkey="default"
5931fi
5932
5933
5934 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5935if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5936
5937 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5938
5939
5940 if test "x$default_adminkey" != xdefault; then
5941 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5942 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5943 elif grep -q system.print.operator /etc/authorization; then
5944 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5945 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5946 else
5947 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences"
5948 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.preferences"
5949 fi
5950
5951 if test "x$default_operkey" != xdefault; then
5952 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5953 elif grep -q system.print.operator /etc/authorization; then
5954 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5955 else
5956 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin"
5957 fi
5958fi
5959
5960
5961 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
5962if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
5963 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
5964
5965fi
5966
5967
5968
105922ec 5969 if test $host_os_version -ge 100; then
d9f356c5
MS
5970 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5971if test "x$ac_cv_header_sandbox_h" = xyes; then :
5972 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5973
5974fi
5975
5976
5977 fi
105922ec 5978 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
d9f356c5
MS
5979 # Broken public headers in 10.7.x...
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5981$as_echo_n "checking for sandbox/private.h presence... " >&6; }
5982 if test -f /usr/local/include/sandbox/private.h; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5984$as_echo "yes" >&6; }
5985 else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987$as_echo "no" >&6; }
5988 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
5989 fi
5990 fi
5991
5992 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5993if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5994 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5995
5996 INSTALLXPC="install-xpc"
5997fi
5998
5999
6000 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
6001if test "x$ac_cv_header_xpc_private_h" = xyes; then :
6002 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
6003
6004fi
6005
6006
6007 ;;
6008esac
6009
6010
6011cat >>confdefs.h <<_ACEOF
6012#define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6013_ACEOF
6014
6015cat >>confdefs.h <<_ACEOF
6016#define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6017_ACEOF
6018
6019
6020
6021
6022COMPONENTS="all"
6023
6024
6025# Check whether --with-components was given.
6026if test "${with_components+set}" = set; then :
6027 withval=$with_components; COMPONENTS="$withval"
6028fi
6029
6030
6031case "$COMPONENTS" in
6032 all)
6033 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6034 ;;
6035
6036 core)
6037 BUILDDIRS="data locale"
6038 ;;
6039
6040 *)
6041 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6042 ;;
6043esac
6044
6045
6046
6047
6048
6049
d9f356c5
MS
6050if test "$prefix" = "NONE"; then
6051 prefix="/"
6052fi
6053
6054if test "$exec_prefix" = "NONE"; then
6055 if test "$prefix" = "/"; then
6056 exec_prefix="/usr"
6057 else
6058 exec_prefix="$prefix"
6059 fi
6060fi
6061
6062if test "$bindir" = "\${exec_prefix}/bin"; then
6063 bindir="$exec_prefix/bin"
6064fi
6065
6066cat >>confdefs.h <<_ACEOF
6067#define CUPS_BINDIR "$bindir"
6068_ACEOF
6069
6070
6071if test "$sbindir" = "\${exec_prefix}/sbin"; then
6072 sbindir="$exec_prefix/sbin"
6073fi
6074
6075cat >>confdefs.h <<_ACEOF
6076#define CUPS_SBINDIR "$sbindir"
6077_ACEOF
6078
6079
6080if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6081 sharedstatedir="/usr/com"
6082fi
6083
6084if test "$datarootdir" = "\${prefix}/share"; then
6085 if test "$prefix" = "/"; then
6086 datarootdir="/usr/share"
6087 else
6088 datarootdir="$prefix/share"
6089 fi
6090fi
6091
6092if test "$datadir" = "\${prefix}/share"; then
6093 if test "$prefix" = "/"; then
6094 datadir="/usr/share"
6095 else
6096 datadir="$prefix/share"
6097 fi
6098elif test "$datadir" = "\${datarootdir}"; then
6099 datadir="$datarootdir"
6100fi
6101
6102if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6103 includedir="/usr/include"
6104fi
6105
6106if test "$localstatedir" = "\${prefix}/var"; then
6107 if test "$prefix" = "/"; then
105922ec 6108 if test "$host_os_name" = darwin; then
d9f356c5
MS
6109 localstatedir="/private/var"
6110 else
6111 localstatedir="/var"
6112 fi
6113 else
6114 localstatedir="$prefix/var"
6115 fi
6116fi
6117
6118if test "$sysconfdir" = "\${prefix}/etc"; then
6119 if test "$prefix" = "/"; then
105922ec 6120 if test "$host_os_name" = darwin; then
d9f356c5
MS
6121 sysconfdir="/private/etc"
6122 else
6123 sysconfdir="/etc"
6124 fi
6125 else
6126 sysconfdir="$prefix/etc"
6127 fi
6128fi
6129
6130if test "$libdir" = "\${exec_prefix}/lib"; then
105922ec
MS
6131 case "$host_os_name" in
6132 linux*)
d9f356c5
MS
6133 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6134 libdir="$exec_prefix/lib64"
6135 fi
6136 ;;
6137 esac
6138fi
6139
6140
6141# Check whether --with-privateinclude was given.
6142if test "${with_privateinclude+set}" = set; then :
6143 withval=$with_privateinclude; privateinclude="$withval"
6144else
6145 privateinclude=""
6146fi
6147
6148if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6149 PRIVATEINCLUDE="$privateinclude/cups"
6150else
6151 privateinclude=""
6152 PRIVATEINCLUDE=""
6153fi
6154
6155
6156
6157
6158# Check whether --with-lpdconfig was given.
6159if test "${with_lpdconfig+set}" = set; then :
6160 withval=$with_lpdconfig; LPDCONFIG="$withval"
6161else
6162 LPDCONFIG=""
6163fi
6164
6165
6166if test "x$LPDCONFIG" = x; then
6167 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6168 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6169 elif test "x$XINETD" != x; then
6170 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6171 fi
6172fi
6173
6174if test "x$LPDCONFIG" = xoff; then
6175 cat >>confdefs.h <<_ACEOF
6176#define CUPS_DEFAULT_LPD_CONFIG ""
6177_ACEOF
6178
6179else
6180 cat >>confdefs.h <<_ACEOF
6181#define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6182_ACEOF
6183
6184fi
6185
6186
6187# Check whether --with-smbconfig was given.
6188if test "${with_smbconfig+set}" = set; then :
6189 withval=$with_smbconfig; SMBCONFIG="$withval"
6190else
6191 SMBCONFIG=""
6192fi
6193
6194
6195if test "x$SMBCONFIG" = x; then
6196 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6197 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6198 else
6199 for dir in /etc /etc/samba /usr/local/etc; do
6200 if test -f $dir/smb.conf; then
6201 SMBCONFIG="samba://$dir/smb.conf"
6202 break
6203 fi
6204 done
6205 fi
6206fi
6207
6208if test "x$SMBCONFIG" = xoff; then
6209 cat >>confdefs.h <<_ACEOF
6210#define CUPS_DEFAULT_SMB_CONFIG ""
6211_ACEOF
6212
6213else
6214 cat >>confdefs.h <<_ACEOF
6215#define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6216_ACEOF
6217
6218fi
6219
6220# Cache data...
6221
6222# Check whether --with-cachedir was given.
6223if test "${with_cachedir+set}" = set; then :
6224 withval=$with_cachedir; cachedir="$withval"
6225else
6226 cachedir=""
6227fi
6228
6229
6230if test x$cachedir = x; then
105922ec 6231 if test "x$host_os_name" = xdarwin; then
d9f356c5
MS
6232 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6233 else
6234 CUPS_CACHEDIR="$localstatedir/cache/cups"
6235 fi
6236else
6237 CUPS_CACHEDIR="$cachedir"
6238fi
6239cat >>confdefs.h <<_ACEOF
6240#define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6241_ACEOF
6242
6243
6244
6245# Data files
6246CUPS_DATADIR="$datadir/cups"
6247cat >>confdefs.h <<_ACEOF
6248#define CUPS_DATADIR "$datadir/cups"
6249_ACEOF
6250
6251
6252
6253# Icon directory
6254
6255# Check whether --with-icondir was given.
6256if test "${with_icondir+set}" = set; then :
6257 withval=$with_icondir; icondir="$withval"
6258else
6259 icondir=""
6260fi
6261
6262
6263if test "x$icondir" = x -a -d /usr/share/icons; then
6264 ICONDIR="/usr/share/icons"
6265else
6266 ICONDIR="$icondir"
6267fi
6268
6269
6270
6271# Menu directory
6272
6273# Check whether --with-menudir was given.
6274if test "${with_menudir+set}" = set; then :
6275 withval=$with_menudir; menudir="$withval"
6276else
6277 menudir=""
6278fi
6279
6280
6281if test "x$menudir" = x -a -d /usr/share/applications; then
6282 MENUDIR="/usr/share/applications"
6283else
6284 MENUDIR="$menudir"
6285fi
6286
6287
6288
6289# Documentation files
6290
6291# Check whether --with-docdir was given.
6292if test "${with_docdir+set}" = set; then :
6293 withval=$with_docdir; docdir="$withval"
6294else
6295 docdir=""
6296fi
6297
6298
6299if test x$docdir = x; then
6300 CUPS_DOCROOT="$datadir/doc/cups"
6301 docdir="$datadir/doc/cups"
6302else
6303 CUPS_DOCROOT="$docdir"
6304fi
6305
6306cat >>confdefs.h <<_ACEOF
6307#define CUPS_DOCROOT "$docdir"
6308_ACEOF
6309
6310
6311
6312# Fonts
6313
6314# Check whether --with-fontpath was given.
6315if test "${with_fontpath+set}" = set; then :
6316 withval=$with_fontpath; fontpath="$withval"
6317else
6318 fontpath=""
6319fi
6320
6321
6322if test "x$fontpath" = "x"; then
6323 CUPS_FONTPATH="$datadir/cups/fonts"
6324else
6325 CUPS_FONTPATH="$fontpath"
6326fi
6327
6328
6329cat >>confdefs.h <<_ACEOF
6330#define CUPS_FONTPATH "$CUPS_FONTPATH"
6331_ACEOF
6332
6333
6334# Locale data
6335if test "$localedir" = "\${datarootdir}/locale"; then
105922ec 6336 case "$host_os_name" in
827bf9ce 6337 linux* | gnu* | *bsd* | darwin*)
d9f356c5
MS
6338 CUPS_LOCALEDIR="$datarootdir/locale"
6339 ;;
6340
6341 *)
6342 # This is the standard System V location...
6343 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6344 ;;
6345 esac
6346else
6347 CUPS_LOCALEDIR="$localedir"
6348fi
6349
6350cat >>confdefs.h <<_ACEOF
6351#define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6352_ACEOF
6353
6354
6355
6356# Log files...
6357
6358# Check whether --with-logdir was given.
6359if test "${with_logdir+set}" = set; then :
6360 withval=$with_logdir; logdir="$withval"
6361else
6362 logdir=""
6363fi
6364
6365
6366if test x$logdir = x; then
6367 CUPS_LOGDIR="$localstatedir/log/cups"
6368 cat >>confdefs.h <<_ACEOF
6369#define CUPS_LOGDIR "$localstatedir/log/cups"
6370_ACEOF
6371
6372else
6373 CUPS_LOGDIR="$logdir"
6374fi
6375cat >>confdefs.h <<_ACEOF
6376#define CUPS_LOGDIR "$CUPS_LOGDIR"
6377_ACEOF
6378
6379
6380
6381# Longer-term spool data
6382CUPS_REQUESTS="$localstatedir/spool/cups"
6383cat >>confdefs.h <<_ACEOF
6384#define CUPS_REQUESTS "$localstatedir/spool/cups"
6385_ACEOF
6386
6387
6388
6389# Server executables...
105922ec
MS
6390case "$host_os_name" in
6391 *bsd* | darwin*)
d4874933 6392 # *BSD and Darwin (macOS)
d9f356c5
MS
6393 INSTALL_SYSV=""
6394 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6395 ;;
6396 *)
6397 # All others
6398 INSTALL_SYSV="install-sysv"
6399 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6400 ;;
6401esac
6402
6403cat >>confdefs.h <<_ACEOF
6404#define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6405_ACEOF
6406
6407
6408
6409
6410# Configuration files
6411CUPS_SERVERROOT="$sysconfdir/cups"
6412cat >>confdefs.h <<_ACEOF
6413#define CUPS_SERVERROOT "$sysconfdir/cups"
6414_ACEOF
6415
6416
6417
6418# Transient run-time state
6419
6420# Check whether --with-rundir was given.
6421if test "${with_rundir+set}" = set; then :
6422 withval=$with_rundir; CUPS_STATEDIR="$withval"
6423else
6424
105922ec
MS
6425 case "$host_os_name" in
6426 darwin*)
8072030b 6427 # Darwin (macOS)
d9f356c5
MS
6428 CUPS_STATEDIR="$CUPS_SERVERROOT"
6429 ;;
6430 *)
6431 # All others
6432 CUPS_STATEDIR="$localstatedir/run/cups"
6433 ;;
6434 esac
6435fi
6436
6437cat >>confdefs.h <<_ACEOF
6438#define CUPS_STATEDIR "$CUPS_STATEDIR"
6439_ACEOF
6440
6441
6442
6443
d9f356c5
MS
6444if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6445 # New GNU "standards" break previous ones, so make sure we use
6446 # the right default location for the operating system...
6447 mandir="\${prefix}/man"
6448fi
6449
6450if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
105922ec 6451 case "$host_os_name" in
4466c8ca 6452 darwin* | linux* | gnu* | *bsd*)
d4874933 6453 # Darwin, macOS, Linux, GNU HURD, and *BSD
d9f356c5
MS
6454 mandir="/usr/share/man"
6455 AMANDIR="/usr/share/man"
6456 PMANDIR="/usr/share/man"
6457 ;;
6458 *)
6459 # All others
6460 mandir="/usr/man"
6461 AMANDIR="/usr/man"
6462 PMANDIR="/usr/man"
6463 ;;
6464 esac
6465else
6466 AMANDIR="$mandir"
6467 PMANDIR="$mandir"
6468fi
6469
6470
6471
6472
105922ec
MS
6473case "$host_os_name" in
6474 sunos*)
d9f356c5
MS
6475 # Solaris
6476 MAN1EXT=1
6477 MAN5EXT=5
6478 MAN7EXT=7
6479 MAN8EXT=1m
6480 MAN8DIR=1m
6481 ;;
105922ec 6482 linux* | gnu* | darwin*)
8072030b 6483 # Linux, GNU Hurd, and macOS
d9f356c5
MS
6484 MAN1EXT=1.gz
6485 MAN5EXT=5.gz
6486 MAN7EXT=7.gz
6487 MAN8EXT=8.gz
6488 MAN8DIR=8
6489 ;;
6490 *)
6491 # All others
6492 MAN1EXT=1
6493 MAN5EXT=5
6494 MAN7EXT=7
6495 MAN8EXT=8
6496 MAN8DIR=8
6497 ;;
6498esac
6499
6500
6501
6502
6503
6504
6505
6506
6507
d9f356c5
MS
6508PICFLAG=1
6509DSOFLAGS="${DSOFLAGS:=}"
6510
6511# Check whether --enable-shared was given.
6512if test "${enable_shared+set}" = set; then :
6513 enableval=$enable_shared;
6514fi
6515
6516
6517cupsbase="cups"
6518LIBCUPSBASE="lib$cupsbase"
6519LIBCUPSSTATIC="lib$cupsbase.a"
6520
6521if test x$enable_shared != xno; then
105922ec
MS
6522 case "$host_os_name" in
6523 sunos*)
d9f356c5
MS
6524 LIBCUPS="lib$cupsbase.so.2"
6525 LIBCUPSCGI="libcupscgi.so.1"
6526 LIBCUPSIMAGE="libcupsimage.so.2"
6527 LIBCUPSMIME="libcupsmime.so.1"
6528 LIBCUPSPPDC="libcupsppdc.so.1"
6529 DSO="\$(CC)"
6530 DSOXX="\$(CXX)"
6531 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G \$(OPTIM)"
6532 ;;
827bf9ce 6533 linux* | gnu* | *bsd*)
d9f356c5
MS
6534 LIBCUPS="lib$cupsbase.so.2"
6535 LIBCUPSCGI="libcupscgi.so.1"
6536 LIBCUPSIMAGE="libcupsimage.so.2"
6537 LIBCUPSMIME="libcupsmime.so.1"
6538 LIBCUPSPPDC="libcupsppdc.so.1"
6539 DSO="\$(CC)"
6540 DSOXX="\$(CXX)"
6541 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6542 ;;
105922ec 6543 darwin*)
d9f356c5
MS
6544 LIBCUPS="lib$cupsbase.2.dylib"
6545 LIBCUPSCGI="libcupscgi.1.dylib"
6546 LIBCUPSIMAGE="libcupsimage.2.dylib"
6547 LIBCUPSMIME="libcupsmime.1.dylib"
6548 LIBCUPSPPDC="libcupsppdc.1.dylib"
6549 DSO="\$(CC)"
6550 DSOXX="\$(CXX)"
6551 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6552 ;;
6553 *)
6554 echo "Warning: shared libraries may not be supported. Trying -shared"
6555 echo " option with compiler."
6556 LIBCUPS="lib$cupsbase.so.2"
6557 LIBCUPSCGI="libcupscgi.so.1"
6558 LIBCUPSIMAGE="libcupsimage.so.2"
6559 LIBCUPSMIME="libcupsmime.so.1"
6560 LIBCUPSPPDC="libcupsppdc.so.1"
6561 DSO="\$(CC)"
6562 DSOXX="\$(CXX)"
6563 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6564 ;;
6565 esac
6566else
6567 PICFLAG=0
6568 LIBCUPS="lib$cupsbase.a"
6569 LIBCUPSCGI="libcupscgi.a"
6570 LIBCUPSIMAGE="libcupsimage.a"
6571 LIBCUPSMIME="libcupsmime.a"
6572 LIBCUPSPPDC="libcupsppdc.a"
6573 DSO=":"
6574 DSOXX=":"
6575fi
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588if test x$enable_shared = xno; then
6589 LINKCUPS="../cups/lib$cupsbase.a"
6590 LINKCUPSIMAGE="../filter/libcupsimage.a"
6591
6592 EXTLINKCUPS="-lcups"
6593 EXTLINKCUPSIMAGE="-lcupsimage"
6594else
6595 LINKCUPS="-l${cupsbase}"
6596 LINKCUPSIMAGE="-lcupsimage"
6597
6598 EXTLINKCUPS="-lcups"
6599 EXTLINKCUPSIMAGE="-lcupsimage"
6600fi
6601
6602
6603
6604
6605
6606
6607EXPORT_LDFLAGS=""
6608
6609if test "$DSO" != ":"; then
6610 # When using DSOs the image libraries are linked to libcupsimage.so
6611 # rather than to the executables. This makes things smaller if you
6612 # are using any static libraries, and it also allows us to distribute
6613 # a single DSO rather than a bunch...
6614 DSOLIBS="\$(LIBZ)"
6615 IMGLIBS=""
6616
6617 # Tell the run-time linkers where to find a DSO. Some platforms
6618 # need this option, even when the library is installed in a
6619 # standard location...
105922ec
MS
6620 case $host_os_name in
6621 sunos*)
d9f356c5
MS
6622 # Solaris...
6623 if test $exec_prefix != /usr; then
6624 DSOFLAGS="-R$libdir $DSOFLAGS"
6625 LDFLAGS="$LDFLAGS -R$libdir"
6626 EXPORT_LDFLAGS="-R$libdir"
6627 fi
6628 ;;
105922ec 6629 *bsd*)
d9f356c5
MS
6630 # *BSD...
6631 if test $exec_prefix != /usr; then
6632 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6633 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6634 EXPORT_LDFLAGS="-Wl,-R$libdir"
6635 fi
6636 ;;
827bf9ce 6637 linux* | gnu*)
d9f356c5
MS
6638 # Linux, and HURD...
6639 if test $exec_prefix != /usr; then
6640 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6641 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6642 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6643 fi
6644 ;;
6645 esac
6646else
6647 DSOLIBS=""
6648 IMGLIBS="\$(LIBZ)"
6649fi
6650
6651
6652
6653
6654
6655
d9f356c5
MS
6656# Check whether --enable-libtool_unsupported was given.
6657if test "${enable_libtool_unsupported+set}" = set; then :
6658 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6659 LIBTOOL="$enable_libtool_unsupported"
6660 enable_shared=no
6661 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6662 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6663 else
6664 LIBTOOL=""
6665 fi
6666fi
6667
6668
6669
6670
6671if test x$LIBTOOL != x; then
6672 LIBCUPS="libcups.la"
6673 LIBCUPSIMAGE="libcupsimage.la"
6674 LINKCUPS="../cups/\$(LIBCUPS)"
6675 LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
6676 DSO="\$(CC)"
6677fi
6678
6679
d9f356c5
MS
6680INSTALL_STRIP=""
6681OPTIM=""
6682
6683
6684
6685
6686# Check whether --with-optim was given.
6687if test "${with_optim+set}" = set; then :
6688 withval=$with_optim;
6689fi
6690
6691# Check whether --enable-debug was given.
6692if test "${enable_debug+set}" = set; then :
6693 enableval=$enable_debug;
6694fi
6695
6696# Check whether --enable-debug_guards was given.
6697if test "${enable_debug_guards+set}" = set; then :
6698 enableval=$enable_debug_guards;
6699fi
6700
6701# Check whether --enable-debug_printfs was given.
6702if test "${enable_debug_printfs+set}" = set; then :
6703 enableval=$enable_debug_printfs;
6704fi
6705
6706# Check whether --enable-unit_tests was given.
6707if test "${enable_unit_tests+set}" = set; then :
6708 enableval=$enable_unit_tests;
6709fi
6710
6711
6712if test x$enable_debug = xyes; then
6713 OPTIM="-g"
6714else
6715 INSTALL_STRIP="-s"
6716fi
6717
6718if test x$enable_debug_printfs = xyes; then
6719 CFLAGS="$CFLAGS -DDEBUG"
6720 CXXFLAGS="$CXXFLAGS -DDEBUG"
6721fi
6722
6723if test x$enable_debug_guards = xyes; then
6724 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6725 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6726fi
6727
6728if test x$enable_unit_tests = xyes; then
105922ec
MS
6729 if test "$build" != "$host"; then
6730 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6731 fi
6732
d9f356c5
MS
6733 UNITTESTS="unittests"
6734else
6735 UNITTESTS=""
6736fi
6737
6738
6739
6740# Check whether --with-archflags was given.
6741if test "${with_archflags+set}" = set; then :
6742 withval=$with_archflags;
6743fi
6744
6745
6746# Check whether --with-ldarchflags was given.
6747if test "${with_ldarchflags+set}" = set; then :
6748 withval=$with_ldarchflags;
6749fi
6750
6751
6752if test -z "$with_archflags"; then
6753 ARCHFLAGS=""
6754else
6755 ARCHFLAGS="$with_archflags"
6756fi
6757
6758if test -z "$with_ldarchflags"; then
105922ec 6759 if test "$host_os_name" = darwin; then
d9f356c5
MS
6760 # Only create Intel programs by default
6761 LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch ppc64//'`"
6762 else
6763 LDARCHFLAGS="$ARCHFLAGS"
6764 fi
6765else
6766 LDARCHFLAGS="$with_ldarchflags"
6767fi
6768
6769
6770
6771
6772# Check whether --enable-relro was given.
6773if test "${enable_relro+set}" = set; then :
6774 enableval=$enable_relro;
6775fi
6776
6777
6778CXXLIBS="${CXXLIBS:=}"
6779
6780
6781PIEFLAGS=""
6782
6783
6784RELROFLAGS=""
6785
6786
6787if test -n "$GCC"; then
6788 # Add GCC-specific compiler options...
6789 if test -z "$OPTIM"; then
6790 if test "x$with_optim" = x; then
6791 # Default to optimize-for-size and debug
6792 OPTIM="-Os -g"
6793 else
6794 OPTIM="$with_optim $OPTIM"
6795 fi
6796 fi
6797
6798 # Generate position-independent code as needed...
6799 if test $PICFLAG = 1; then
6800 OPTIM="-fPIC $OPTIM"
6801 fi
6802
6803 # The -fstack-protector option is available with some versions of
6804 # GCC and adds "stack canaries" which detect when the return address
6805 # has been overwritten, preventing many types of exploit attacks.
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6807$as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6808 OLDCFLAGS="$CFLAGS"
6809 CFLAGS="$CFLAGS -fstack-protector"
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h. */
6812
6813int
6814main ()
6815{
6816
6817 ;
6818 return 0;
6819}
6820_ACEOF
6821if ac_fn_c_try_link "$LINENO"; then :
6822 if test "x$LSB_BUILD" = xy; then
6823 # Can't use stack-protector with LSB binaries...
6824 OPTIM="$OPTIM -fno-stack-protector"
6825 else
6826 OPTIM="$OPTIM -fstack-protector"
6827 fi
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6829$as_echo "yes" >&6; }
6830else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832$as_echo "no" >&6; }
6833fi
6834rm -f core conftest.err conftest.$ac_objext \
6835 conftest$ac_exeext conftest.$ac_ext
6836 CFLAGS="$OLDCFLAGS"
6837
6838 if test "x$LSB_BUILD" != xy; then
6839 # The -fPIE option is available with some versions of GCC and
6840 # adds randomization of addresses, which avoids another class of
6841 # exploits that depend on a fixed address for common functions.
6842 #
6843 # Not available to LSB binaries...
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6845$as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6846 OLDCFLAGS="$CFLAGS"
105922ec
MS
6847 case "$host_os_name" in
6848 darwin*)
d9f356c5
MS
6849 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h. */
6852
6853int
6854main ()
6855{
6856
6857 ;
6858 return 0;
6859}
6860_ACEOF
6861if ac_fn_c_try_compile "$LINENO"; then :
6862
6863 PIEFLAGS="-fPIE -Wl,-pie"
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6865$as_echo "yes" >&6; }
6866else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868$as_echo "no" >&6; }
6869fi
6870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 ;;
6872
6873 *)
6874 CFLAGS="$CFLAGS -fPIE -pie"
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876/* end confdefs.h. */
6877
6878int
6879main ()
6880{
6881
6882 ;
6883 return 0;
6884}
6885_ACEOF
6886if ac_fn_c_try_compile "$LINENO"; then :
6887
6888 PIEFLAGS="-fPIE -pie"
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6890$as_echo "yes" >&6; }
6891else
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893$as_echo "no" >&6; }
6894fi
6895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 ;;
6897 esac
6898 CFLAGS="$OLDCFLAGS"
6899 fi
6900
6901 if test "x$with_optim" = x; then
6902 # Add useful warning options for tracking down problems...
6903 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
6904
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-unused-result" >&5
6906$as_echo_n "checking whether compiler supports -Wno-unused-result... " >&6; }
6907 OLDCFLAGS="$CFLAGS"
6908 CFLAGS="$CFLAGS -Werror -Wno-unused-result"
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910/* end confdefs.h. */
6911
6912int
6913main ()
6914{
6915
6916 ;
6917 return 0;
6918}
6919_ACEOF
6920if ac_fn_c_try_compile "$LINENO"; then :
6921 OPTIM="$OPTIM -Wno-unused-result"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6923$as_echo "yes" >&6; }
6924else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926$as_echo "no" >&6; }
6927fi
6928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6929 CFLAGS="$OLDCFLAGS"
6930
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-conversion" >&5
6932$as_echo_n "checking whether compiler supports -Wsign-conversion... " >&6; }
6933 OLDCFLAGS="$CFLAGS"
6934 CFLAGS="$CFLAGS -Werror -Wsign-conversion"
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h. */
6937
6938int
6939main ()
6940{
6941
6942 ;
6943 return 0;
6944}
6945_ACEOF
6946if ac_fn_c_try_compile "$LINENO"; then :
6947 OPTIM="$OPTIM -Wsign-conversion"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6949$as_echo "yes" >&6; }
6950else
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952$as_echo "no" >&6; }
6953fi
6954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955 CFLAGS="$OLDCFLAGS"
6956
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-compare" >&5
6958$as_echo_n "checking whether compiler supports -Wno-tautological-compare... " >&6; }
6959 OLDCFLAGS="$CFLAGS"
6960 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962/* end confdefs.h. */
6963
6964int
6965main ()
6966{
6967
6968 ;
6969 return 0;
6970}
6971_ACEOF
6972if ac_fn_c_try_compile "$LINENO"; then :
6973 OPTIM="$OPTIM -Wno-tautological-compare"
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6975$as_echo "yes" >&6; }
6976else
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978$as_echo "no" >&6; }
6979fi
6980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981 CFLAGS="$OLDCFLAGS"
6982
6983 # Additional warning options for development testing...
6984 if test -d .svn; then
6985 OPTIM="-Werror $OPTIM"
6986 fi
6987 fi
6988
105922ec
MS
6989 case "$host_os_name" in
6990 darwin*)
d9f356c5
MS
6991 # -D_FORTIFY_SOURCE=2 adds additional object size
6992 # checking, basically wrapping all string functions
6993 # with buffer-limited ones. Not strictly needed for
6994 # CUPS since we already use buffer-limited calls, but
6995 # this will catch any additions that are broken.
6996 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
6997 ;;
6998
105922ec 6999 linux*)
d9f356c5
MS
7000 # The -z relro option is provided by the Linux linker command to
7001 # make relocatable data read-only.
7002 if test x$enable_relro = xyes; then
7003 RELROFLAGS="-Wl,-z,relro,-z,now"
7004 fi
7005 ;;
7006 esac
7007else
7008 # Add vendor-specific compiler options...
105922ec
MS
7009 case $host_os_name in
7010 sunos*)
d9f356c5
MS
7011 # Solaris
7012 if test -z "$OPTIM"; then
7013 if test "x$with_optim" = x; then
7014 OPTIM="-xO2"
7015 else
7016 OPTIM="$with_optim $OPTIM"
7017 fi
7018 fi
7019
7020 if test $PICFLAG = 1; then
7021 OPTIM="-KPIC $OPTIM"
7022 fi
7023 ;;
7024 *)
7025 # Running some other operating system; inform the user they
7026 # should contribute the necessary options to
7027 # cups-support@cups.org...
7028 echo "Building CUPS with default compiler optimizations; contact"
7029 echo "cups-devel@cups.org with uname and compiler options needed"
7030 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7031 echo "variables before running configure."
7032 ;;
7033 esac
7034fi
7035
7036# Add general compiler options per platform...
105922ec
MS
7037case $host_os_name in
7038 linux*)
d9f356c5
MS
7039 # glibc 2.8 and higher breaks peer credentials unless you
7040 # define _GNU_SOURCE...
7041 OPTIM="$OPTIM -D_GNU_SOURCE"
7042 ;;
7043esac
7044
7045
7046
d9f356c5
MS
7047ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
7048#include <sys/socket.h>
7049#include <netinet/in.h>
7050#include <arpa/inet.h>
7051#include <netinet/in_systm.h>
7052#include <netinet/ip.h>
7053"
7054if test "x$ac_cv_header_resolv_h" = xyes; then :
7055 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7056
7057fi
7058
7059
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7061$as_echo_n "checking for library containing socket... " >&6; }
7062if ${ac_cv_search_socket+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064else
7065 ac_func_search_save_LIBS=$LIBS
7066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067/* end confdefs.h. */
7068
7069/* Override any GCC internal prototype to avoid an error.
7070 Use char because int might match the return type of a GCC
7071 builtin and then its argument prototype would still apply. */
7072#ifdef __cplusplus
7073extern "C"
7074#endif
7075char socket ();
7076int
7077main ()
7078{
7079return socket ();
7080 ;
7081 return 0;
7082}
7083_ACEOF
7084for ac_lib in '' socket; do
7085 if test -z "$ac_lib"; then
7086 ac_res="none required"
7087 else
7088 ac_res=-l$ac_lib
7089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7090 fi
7091 if ac_fn_c_try_link "$LINENO"; then :
7092 ac_cv_search_socket=$ac_res
7093fi
7094rm -f core conftest.err conftest.$ac_objext \
7095 conftest$ac_exeext
7096 if ${ac_cv_search_socket+:} false; then :
7097 break
7098fi
7099done
7100if ${ac_cv_search_socket+:} false; then :
7101
7102else
7103 ac_cv_search_socket=no
7104fi
7105rm conftest.$ac_ext
7106LIBS=$ac_func_search_save_LIBS
7107fi
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7109$as_echo "$ac_cv_search_socket" >&6; }
7110ac_res=$ac_cv_search_socket
7111if test "$ac_res" != no; then :
7112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7113
7114fi
7115
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7117$as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7118if ${ac_cv_search_gethostbyaddr+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120else
7121 ac_func_search_save_LIBS=$LIBS
7122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123/* end confdefs.h. */
7124
7125/* Override any GCC internal prototype to avoid an error.
7126 Use char because int might match the return type of a GCC
7127 builtin and then its argument prototype would still apply. */
7128#ifdef __cplusplus
7129extern "C"
7130#endif
7131char gethostbyaddr ();
7132int
7133main ()
7134{
7135return gethostbyaddr ();
7136 ;
7137 return 0;
7138}
7139_ACEOF
7140for ac_lib in '' nsl; do
7141 if test -z "$ac_lib"; then
7142 ac_res="none required"
7143 else
7144 ac_res=-l$ac_lib
7145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7146 fi
7147 if ac_fn_c_try_link "$LINENO"; then :
7148 ac_cv_search_gethostbyaddr=$ac_res
7149fi
7150rm -f core conftest.err conftest.$ac_objext \
7151 conftest$ac_exeext
7152 if ${ac_cv_search_gethostbyaddr+:} false; then :
7153 break
7154fi
7155done
7156if ${ac_cv_search_gethostbyaddr+:} false; then :
7157
7158else
7159 ac_cv_search_gethostbyaddr=no
7160fi
7161rm conftest.$ac_ext
7162LIBS=$ac_func_search_save_LIBS
7163fi
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7165$as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7166ac_res=$ac_cv_search_gethostbyaddr
7167if test "$ac_res" != no; then :
7168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7169
7170fi
7171
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7173$as_echo_n "checking for library containing getifaddrs... " >&6; }
7174if ${ac_cv_search_getifaddrs+:} false; then :
7175 $as_echo_n "(cached) " >&6
7176else
7177 ac_func_search_save_LIBS=$LIBS
7178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h. */
7180
7181/* Override any GCC internal prototype to avoid an error.
7182 Use char because int might match the return type of a GCC
7183 builtin and then its argument prototype would still apply. */
7184#ifdef __cplusplus
7185extern "C"
7186#endif
7187char getifaddrs ();
7188int
7189main ()
7190{
7191return getifaddrs ();
7192 ;
7193 return 0;
7194}
7195_ACEOF
7196for ac_lib in '' nsl; do
7197 if test -z "$ac_lib"; then
7198 ac_res="none required"
7199 else
7200 ac_res=-l$ac_lib
7201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7202 fi
7203 if ac_fn_c_try_link "$LINENO"; then :
7204 ac_cv_search_getifaddrs=$ac_res
7205fi
7206rm -f core conftest.err conftest.$ac_objext \
7207 conftest$ac_exeext
7208 if ${ac_cv_search_getifaddrs+:} false; then :
7209 break
7210fi
7211done
7212if ${ac_cv_search_getifaddrs+:} false; then :
7213
7214else
7215 ac_cv_search_getifaddrs=no
7216fi
7217rm conftest.$ac_ext
7218LIBS=$ac_func_search_save_LIBS
7219fi
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7221$as_echo "$ac_cv_search_getifaddrs" >&6; }
7222ac_res=$ac_cv_search_getifaddrs
7223if test "$ac_res" != no; then :
7224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7225 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7226
7227fi
7228
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7230$as_echo_n "checking for library containing hstrerror... " >&6; }
7231if ${ac_cv_search_hstrerror+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233else
7234 ac_func_search_save_LIBS=$LIBS
7235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236/* end confdefs.h. */
7237
7238/* Override any GCC internal prototype to avoid an error.
7239 Use char because int might match the return type of a GCC
7240 builtin and then its argument prototype would still apply. */
7241#ifdef __cplusplus
7242extern "C"
7243#endif
7244char hstrerror ();
7245int
7246main ()
7247{
7248return hstrerror ();
7249 ;
7250 return 0;
7251}
7252_ACEOF
7253for ac_lib in '' nsl socket resolv; do
7254 if test -z "$ac_lib"; then
7255 ac_res="none required"
7256 else
7257 ac_res=-l$ac_lib
7258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7259 fi
7260 if ac_fn_c_try_link "$LINENO"; then :
7261 ac_cv_search_hstrerror=$ac_res
7262fi
7263rm -f core conftest.err conftest.$ac_objext \
7264 conftest$ac_exeext
7265 if ${ac_cv_search_hstrerror+:} false; then :
7266 break
7267fi
7268done
7269if ${ac_cv_search_hstrerror+:} false; then :
7270
7271else
7272 ac_cv_search_hstrerror=no
7273fi
7274rm conftest.$ac_ext
7275LIBS=$ac_func_search_save_LIBS
7276fi
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7278$as_echo "$ac_cv_search_hstrerror" >&6; }
7279ac_res=$ac_cv_search_hstrerror
7280if test "$ac_res" != no; then :
7281 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7282 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7283
7284fi
7285
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7287$as_echo_n "checking for library containing rresvport_af... " >&6; }
7288if ${ac_cv_search_rresvport_af+:} false; then :
7289 $as_echo_n "(cached) " >&6
7290else
7291 ac_func_search_save_LIBS=$LIBS
7292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293/* end confdefs.h. */
7294
7295/* Override any GCC internal prototype to avoid an error.
7296 Use char because int might match the return type of a GCC
7297 builtin and then its argument prototype would still apply. */
7298#ifdef __cplusplus
7299extern "C"
7300#endif
7301char rresvport_af ();
7302int
7303main ()
7304{
7305return rresvport_af ();
7306 ;
7307 return 0;
7308}
7309_ACEOF
7310for ac_lib in '' nsl; do
7311 if test -z "$ac_lib"; then
7312 ac_res="none required"
7313 else
7314 ac_res=-l$ac_lib
7315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7316 fi
7317 if ac_fn_c_try_link "$LINENO"; then :
7318 ac_cv_search_rresvport_af=$ac_res
7319fi
7320rm -f core conftest.err conftest.$ac_objext \
7321 conftest$ac_exeext
7322 if ${ac_cv_search_rresvport_af+:} false; then :
7323 break
7324fi
7325done
7326if ${ac_cv_search_rresvport_af+:} false; then :
7327
7328else
7329 ac_cv_search_rresvport_af=no
7330fi
7331rm conftest.$ac_ext
7332LIBS=$ac_func_search_save_LIBS
7333fi
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7335$as_echo "$ac_cv_search_rresvport_af" >&6; }
7336ac_res=$ac_cv_search_rresvport_af
7337if test "$ac_res" != no; then :
7338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7339 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7340
7341fi
7342
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7344$as_echo_n "checking for library containing __res_init... " >&6; }
7345if ${ac_cv_search___res_init+:} false; then :
7346 $as_echo_n "(cached) " >&6
7347else
7348 ac_func_search_save_LIBS=$LIBS
7349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350/* end confdefs.h. */
7351
7352/* Override any GCC internal prototype to avoid an error.
7353 Use char because int might match the return type of a GCC
7354 builtin and then its argument prototype would still apply. */
7355#ifdef __cplusplus
7356extern "C"
7357#endif
7358char __res_init ();
7359int
7360main ()
7361{
7362return __res_init ();
7363 ;
7364 return 0;
7365}
7366_ACEOF
7367for ac_lib in '' resolv bind; do
7368 if test -z "$ac_lib"; then
7369 ac_res="none required"
7370 else
7371 ac_res=-l$ac_lib
7372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7373 fi
7374 if ac_fn_c_try_link "$LINENO"; then :
7375 ac_cv_search___res_init=$ac_res
7376fi
7377rm -f core conftest.err conftest.$ac_objext \
7378 conftest$ac_exeext
7379 if ${ac_cv_search___res_init+:} false; then :
7380 break
7381fi
7382done
7383if ${ac_cv_search___res_init+:} false; then :
7384
7385else
7386 ac_cv_search___res_init=no
7387fi
7388rm conftest.$ac_ext
7389LIBS=$ac_func_search_save_LIBS
7390fi
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7392$as_echo "$ac_cv_search___res_init" >&6; }
7393ac_res=$ac_cv_search___res_init
7394if test "$ac_res" != no; then :
7395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7396 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7397
7398else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7400$as_echo_n "checking for library containing res_9_init... " >&6; }
7401if ${ac_cv_search_res_9_init+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403else
7404 ac_func_search_save_LIBS=$LIBS
7405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406/* end confdefs.h. */
7407
7408/* Override any GCC internal prototype to avoid an error.
7409 Use char because int might match the return type of a GCC
7410 builtin and then its argument prototype would still apply. */
7411#ifdef __cplusplus
7412extern "C"
7413#endif
7414char res_9_init ();
7415int
7416main ()
7417{
7418return res_9_init ();
7419 ;
7420 return 0;
7421}
7422_ACEOF
7423for ac_lib in '' resolv bind; do
7424 if test -z "$ac_lib"; then
7425 ac_res="none required"
7426 else
7427 ac_res=-l$ac_lib
7428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7429 fi
7430 if ac_fn_c_try_link "$LINENO"; then :
7431 ac_cv_search_res_9_init=$ac_res
7432fi
7433rm -f core conftest.err conftest.$ac_objext \
7434 conftest$ac_exeext
7435 if ${ac_cv_search_res_9_init+:} false; then :
7436 break
7437fi
7438done
7439if ${ac_cv_search_res_9_init+:} false; then :
7440
7441else
7442 ac_cv_search_res_9_init=no
7443fi
7444rm conftest.$ac_ext
7445LIBS=$ac_func_search_save_LIBS
7446fi
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7448$as_echo "$ac_cv_search_res_9_init" >&6; }
7449ac_res=$ac_cv_search_res_9_init
7450if test "$ac_res" != no; then :
7451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7452 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7453
7454else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7456$as_echo_n "checking for library containing res_init... " >&6; }
7457if ${ac_cv_search_res_init+:} false; then :
7458 $as_echo_n "(cached) " >&6
7459else
7460 ac_func_search_save_LIBS=$LIBS
7461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462/* end confdefs.h. */
7463
7464/* Override any GCC internal prototype to avoid an error.
7465 Use char because int might match the return type of a GCC
7466 builtin and then its argument prototype would still apply. */
7467#ifdef __cplusplus
7468extern "C"
7469#endif
7470char res_init ();
7471int
7472main ()
7473{
7474return res_init ();
7475 ;
7476 return 0;
7477}
7478_ACEOF
7479for ac_lib in '' resolv bind; do
7480 if test -z "$ac_lib"; then
7481 ac_res="none required"
7482 else
7483 ac_res=-l$ac_lib
7484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7485 fi
7486 if ac_fn_c_try_link "$LINENO"; then :
7487 ac_cv_search_res_init=$ac_res
7488fi
7489rm -f core conftest.err conftest.$ac_objext \
7490 conftest$ac_exeext
7491 if ${ac_cv_search_res_init+:} false; then :
7492 break
7493fi
7494done
7495if ${ac_cv_search_res_init+:} false; then :
7496
7497else
7498 ac_cv_search_res_init=no
7499fi
7500rm conftest.$ac_ext
7501LIBS=$ac_func_search_save_LIBS
7502fi
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7504$as_echo "$ac_cv_search_res_init" >&6; }
7505ac_res=$ac_cv_search_res_init
7506if test "$ac_res" != no; then :
7507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7508 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7509
7510fi
7511
7512fi
7513
7514fi
7515
7516
7517# Tru64 5.1b leaks file descriptors with these functions; disable until
7518# we can come up with a test for this...
105922ec 7519if test "$host_os_name" != "osf1"; then
d9f356c5
MS
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7521$as_echo_n "checking for library containing getaddrinfo... " >&6; }
7522if ${ac_cv_search_getaddrinfo+:} false; then :
7523 $as_echo_n "(cached) " >&6
7524else
7525 ac_func_search_save_LIBS=$LIBS
7526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527/* end confdefs.h. */
7528
7529/* Override any GCC internal prototype to avoid an error.
7530 Use char because int might match the return type of a GCC
7531 builtin and then its argument prototype would still apply. */
7532#ifdef __cplusplus
7533extern "C"
7534#endif
7535char getaddrinfo ();
7536int
7537main ()
7538{
7539return getaddrinfo ();
7540 ;
7541 return 0;
7542}
7543_ACEOF
7544for ac_lib in '' nsl; do
7545 if test -z "$ac_lib"; then
7546 ac_res="none required"
7547 else
7548 ac_res=-l$ac_lib
7549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7550 fi
7551 if ac_fn_c_try_link "$LINENO"; then :
7552 ac_cv_search_getaddrinfo=$ac_res
7553fi
7554rm -f core conftest.err conftest.$ac_objext \
7555 conftest$ac_exeext
7556 if ${ac_cv_search_getaddrinfo+:} false; then :
7557 break
7558fi
7559done
7560if ${ac_cv_search_getaddrinfo+:} false; then :
7561
7562else
7563 ac_cv_search_getaddrinfo=no
7564fi
7565rm conftest.$ac_ext
7566LIBS=$ac_func_search_save_LIBS
7567fi
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7569$as_echo "$ac_cv_search_getaddrinfo" >&6; }
7570ac_res=$ac_cv_search_getaddrinfo
7571if test "$ac_res" != no; then :
7572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7573 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7574
7575fi
7576
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7578$as_echo_n "checking for library containing getnameinfo... " >&6; }
7579if ${ac_cv_search_getnameinfo+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581else
7582 ac_func_search_save_LIBS=$LIBS
7583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584/* end confdefs.h. */
7585
7586/* Override any GCC internal prototype to avoid an error.
7587 Use char because int might match the return type of a GCC
7588 builtin and then its argument prototype would still apply. */
7589#ifdef __cplusplus
7590extern "C"
7591#endif
7592char getnameinfo ();
7593int
7594main ()
7595{
7596return getnameinfo ();
7597 ;
7598 return 0;
7599}
7600_ACEOF
7601for ac_lib in '' nsl; do
7602 if test -z "$ac_lib"; then
7603 ac_res="none required"
7604 else
7605 ac_res=-l$ac_lib
7606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7607 fi
7608 if ac_fn_c_try_link "$LINENO"; then :
7609 ac_cv_search_getnameinfo=$ac_res
7610fi
7611rm -f core conftest.err conftest.$ac_objext \
7612 conftest$ac_exeext
7613 if ${ac_cv_search_getnameinfo+:} false; then :
7614 break
7615fi
7616done
7617if ${ac_cv_search_getnameinfo+:} false; then :
7618
7619else
7620 ac_cv_search_getnameinfo=no
7621fi
7622rm conftest.$ac_ext
7623LIBS=$ac_func_search_save_LIBS
7624fi
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7626$as_echo "$ac_cv_search_getnameinfo" >&6; }
7627ac_res=$ac_cv_search_getnameinfo
7628if test "$ac_res" != no; then :
7629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7630 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7631
7632fi
7633
7634fi
7635
7636ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7637"
7638if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7639
7640fi
7641
7642ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7643if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7644 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7645
7646fi
7647
7648
7649
7650CUPS_DEFAULT_DOMAINSOCKET=""
7651
7652
7653# Check whether --with-domainsocket was given.
7654if test "${with_domainsocket+set}" = set; then :
7655 withval=$with_domainsocket; default_domainsocket="$withval"
7656else
7657 default_domainsocket=""
7658fi
7659
7660
7661if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7662 if test "x$default_domainsocket" = x; then
105922ec
MS
7663 case "$host_os_name" in
7664 darwin*)
d4874933 7665 # Darwin and macOS do their own thing...
d9f356c5
MS
7666 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7667 ;;
7668 *)
7669 # All others use FHS standard...
7670 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7671 ;;
7672 esac
7673 else
7674 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7675 fi
7676
7677 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7678
7679 cat >>confdefs.h <<_ACEOF
7680#define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7681_ACEOF
7682
7683else
7684 CUPS_LISTEN_DOMAINSOCKET=""
7685fi
7686
7687
7688
7689
7690
d9f356c5
MS
7691ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7692if test "x$ac_cv_func_poll" = xyes; then :
7693 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7694
7695fi
7696
7697ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7698if test "x$ac_cv_func_epoll_create" = xyes; then :
7699 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7700
7701fi
7702
7703ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7704if test "x$ac_cv_func_kqueue" = xyes; then :
7705 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7706
7707fi
7708
7709
7710
d9f356c5
MS
7711# Check whether --enable-gssapi was given.
7712if test "${enable_gssapi+set}" = set; then :
7713 enableval=$enable_gssapi;
7714fi
7715
7716
7717LIBGSSAPI=""
7718
7719
7720if test x$enable_gssapi != xno; then
7721 if test -n "$ac_tool_prefix"; then
7722 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7723set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725$as_echo_n "checking for $ac_word... " >&6; }
7726if ${ac_cv_path_KRB5CONFIG+:} false; then :
7727 $as_echo_n "(cached) " >&6
7728else
7729 case $KRB5CONFIG in
7730 [\\/]* | ?:[\\/]*)
7731 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7732 ;;
7733 *)
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735for as_dir in $PATH
7736do
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
7741 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7744 fi
7745done
7746 done
7747IFS=$as_save_IFS
7748
7749 ;;
7750esac
7751fi
7752KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7753if test -n "$KRB5CONFIG"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7755$as_echo "$KRB5CONFIG" >&6; }
7756else
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758$as_echo "no" >&6; }
7759fi
7760
7761
7762fi
7763if test -z "$ac_cv_path_KRB5CONFIG"; then
7764 ac_pt_KRB5CONFIG=$KRB5CONFIG
7765 # Extract the first word of "krb5-config", so it can be a program name with args.
7766set dummy krb5-config; ac_word=$2
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768$as_echo_n "checking for $ac_word... " >&6; }
7769if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7770 $as_echo_n "(cached) " >&6
7771else
7772 case $ac_pt_KRB5CONFIG in
7773 [\\/]* | ?:[\\/]*)
7774 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7775 ;;
7776 *)
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
7784 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 break 2
7787 fi
7788done
7789 done
7790IFS=$as_save_IFS
7791
7792 ;;
7793esac
7794fi
7795ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7796if test -n "$ac_pt_KRB5CONFIG"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7798$as_echo "$ac_pt_KRB5CONFIG" >&6; }
7799else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
7802fi
7803
7804 if test "x$ac_pt_KRB5CONFIG" = x; then
7805 KRB5CONFIG=""
7806 else
7807 case $cross_compiling:$ac_tool_warned in
7808yes:)
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811ac_tool_warned=yes ;;
7812esac
7813 KRB5CONFIG=$ac_pt_KRB5CONFIG
7814 fi
7815else
7816 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7817fi
7818
7819 if test "x$KRB5CONFIG" != x; then
105922ec
MS
7820 case "$host_os_name" in
7821 darwin)
8072030b 7822 # macOS weak-links to the Kerberos framework...
d9f356c5
MS
7823 LIBGSSAPI="-weak_framework Kerberos"
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7825$as_echo_n "checking for GSS framework... " >&6; }
7826 if test -d /System/Library/Frameworks/GSS.framework; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7828$as_echo "yes" >&6; }
7829 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7830 else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832$as_echo "no" >&6; }
7833 fi
7834 ;;
105922ec 7835 sunos*)
d9f356c5
MS
7836 # Solaris has a non-standard krb5-config, don't use it!
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7838$as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7839if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7840 $as_echo_n "(cached) " >&6
7841else
7842 ac_check_lib_save_LIBS=$LIBS
7843LIBS="-lgss $LIBS"
7844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845/* end confdefs.h. */
7846
7847/* Override any GCC internal prototype to avoid an error.
7848 Use char because int might match the return type of a GCC
7849 builtin and then its argument prototype would still apply. */
7850#ifdef __cplusplus
7851extern "C"
7852#endif
7853char gss_display_status ();
7854int
7855main ()
7856{
7857return gss_display_status ();
7858 ;
7859 return 0;
7860}
7861_ACEOF
7862if ac_fn_c_try_link "$LINENO"; then :
7863 ac_cv_lib_gss_gss_display_status=yes
7864else
7865 ac_cv_lib_gss_gss_display_status=no
7866fi
7867rm -f core conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869LIBS=$ac_check_lib_save_LIBS
7870fi
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7872$as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7873if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7874
7875$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7876
7877 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7878 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7879 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7880fi
7881
7882 ;;
7883 *)
7884 # Other platforms just ask for GSSAPI
7885 CFLAGS="`$KRB5CONFIG --cflags gssapi` $CFLAGS"
7886 CPPFLAGS="`$KRB5CONFIG --cflags gssapi` $CPPFLAGS"
7887 LIBGSSAPI="`$KRB5CONFIG --libs gssapi`"
7888 ;;
7889 esac
7890
7891$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7892
7893 else
7894 # Check for vendor-specific implementations...
105922ec
MS
7895 case "$host_os_name" in
7896 hp-ux*)
d9f356c5
MS
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7898$as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7899if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901else
7902 ac_check_lib_save_LIBS=$LIBS
7903LIBS="-lgss $LIBS"
7904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h. */
7906
7907/* Override any GCC internal prototype to avoid an error.
7908 Use char because int might match the return type of a GCC
7909 builtin and then its argument prototype would still apply. */
7910#ifdef __cplusplus
7911extern "C"
7912#endif
7913char gss_display_status ();
7914int
7915main ()
7916{
7917return gss_display_status ();
7918 ;
7919 return 0;
7920}
7921_ACEOF
7922if ac_fn_c_try_link "$LINENO"; then :
7923 ac_cv_lib_gss_gss_display_status=yes
7924else
7925 ac_cv_lib_gss_gss_display_status=no
7926fi
7927rm -f core conftest.err conftest.$ac_objext \
7928 conftest$ac_exeext conftest.$ac_ext
7929LIBS=$ac_check_lib_save_LIBS
7930fi
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7932$as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7933if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7934
7935$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7936
7937 LIBGSSAPI="-lgss -lgssapi_krb5"
7938fi
7939
7940 ;;
105922ec 7941 sunos*)
d9f356c5
MS
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7943$as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7944if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7945 $as_echo_n "(cached) " >&6
7946else
7947 ac_check_lib_save_LIBS=$LIBS
7948LIBS="-lgss $LIBS"
7949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950/* end confdefs.h. */
7951
7952/* Override any GCC internal prototype to avoid an error.
7953 Use char because int might match the return type of a GCC
7954 builtin and then its argument prototype would still apply. */
7955#ifdef __cplusplus
7956extern "C"
7957#endif
7958char gss_display_status ();
7959int
7960main ()
7961{
7962return gss_display_status ();
7963 ;
7964 return 0;
7965}
7966_ACEOF
7967if ac_fn_c_try_link "$LINENO"; then :
7968 ac_cv_lib_gss_gss_display_status=yes
7969else
7970 ac_cv_lib_gss_gss_display_status=no
7971fi
7972rm -f core conftest.err conftest.$ac_objext \
7973 conftest$ac_exeext conftest.$ac_ext
7974LIBS=$ac_check_lib_save_LIBS
7975fi
7976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7977$as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7978if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7979
7980$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7981
7982 LIBGSSAPI="-lgss"
7983fi
7984
7985 ;;
7986 esac
7987 fi
7988
7989 if test "x$LIBGSSAPI" != x; then
7990 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
7991if test "x$ac_cv_header_krb5_h" = xyes; then :
7992 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
7993
7994fi
7995
7996
7997 if test -d /System/Library/Frameworks/GSS.framework; then
7998 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
7999if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
8000 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8001
8002fi
8003
8004
8005 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
8006if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
8007 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
8008
8009fi
8010
8011
8012 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
8013if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
8014 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8015
8016fi
8017
8018
8019 else
8020 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8021if test "x$ac_cv_header_gssapi_h" = xyes; then :
8022 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8023
8024fi
8025
8026
8027 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8028if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8029 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8030
8031fi
8032
8033
8034 fi
8035
8036 SAVELIBS="$LIBS"
8037 LIBS="$LIBS $LIBGSSAPI"
8038
8039 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8040if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8041 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8042
8043fi
8044
8045
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8047$as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8048 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050/* end confdefs.h. */
8051 #include <gssapi/gssapi.h>
8052int
8053main ()
8054{
8055 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8056 ;
8057 return 0;
8058}
8059_ACEOF
8060if ac_fn_c_try_compile "$LINENO"; then :
8061 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8062
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8064$as_echo "yes" >&6; }
8065else
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067$as_echo "no" >&6; }
8068fi
8069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072/* end confdefs.h. */
8073 #include <GSS/gssapi.h>
8074int
8075main ()
8076{
8077 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8078 ;
8079 return 0;
8080}
8081_ACEOF
8082if ac_fn_c_try_compile "$LINENO"; then :
8083 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8084
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8086$as_echo "yes" >&6; }
8087else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089$as_echo "no" >&6; }
8090fi
8091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 else
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094/* end confdefs.h. */
8095 #include <gssapi.h>
8096int
8097main ()
8098{
8099 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8100 ;
8101 return 0;
8102}
8103_ACEOF
8104if ac_fn_c_try_compile "$LINENO"; then :
8105 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8106
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8108$as_echo "yes" >&6; }
8109else
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111$as_echo "no" >&6; }
8112fi
8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 fi
8115
8116 LIBS="$SAVELIBS"
8117 fi
8118fi
8119
8120
8121# Check whether --with-gssservicename was given.
8122if test "${with_gssservicename+set}" = set; then :
8123 withval=$with_gssservicename; default_gssservicename="$withval"
8124else
8125 default_gssservicename="default"
8126fi
8127
8128
8129if test x$default_gssservicename != xno; then
8130 if test "x$default_gssservicename" = "xdefault"; then
8131 CUPS_DEFAULT_GSSSERVICENAME="host"
8132 else
8133 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8134 fi
8135else
8136 CUPS_DEFAULT_GSSSERVICENAME=""
8137fi
8138
8139
8140cat >>confdefs.h <<_ACEOF
8141#define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8142_ACEOF
8143
8144
8145
d9f356c5
MS
8146# Check whether --enable-threads was given.
8147if test "${enable_threads+set}" = set; then :
8148 enableval=$enable_threads;
8149fi
8150
8151
8152have_pthread=no
8153PTHREAD_FLAGS=""
8154
8155if test "x$enable_threads" != xno; then
8156 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8157if test "x$ac_cv_header_pthread_h" = xyes; then :
8158 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8159
8160fi
8161
8162
8163
8164 if test x$ac_cv_header_pthread_h = xyes; then
8165 for flag in -lpthreads -lpthread -pthread; do
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8167$as_echo_n "checking for pthread_create using $flag... " >&6; }
8168 SAVELIBS="$LIBS"
8169 LIBS="$flag $LIBS"
8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171/* end confdefs.h. */
8172#include <pthread.h>
8173int
8174main ()
8175{
8176pthread_create(0, 0, 0, 0);
8177 ;
8178 return 0;
8179}
8180_ACEOF
8181if ac_fn_c_try_link "$LINENO"; then :
8182 have_pthread=yes
8183else
8184 LIBS="$SAVELIBS"
8185fi
8186rm -f core conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8189$as_echo "$have_pthread" >&6; }
8190
8191 if test $have_pthread = yes; then
8192 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8193
8194 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8195 # be POSIX-compliant... :(
105922ec 8196 if test $host_os_name = sunos; then
d9f356c5
MS
8197 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8198 fi
8199 break
8200 fi
8201 done
8202 fi
8203fi
8204
8205
8206
8207
d9f356c5
MS
8208# Check whether --enable-ssl was given.
8209if test "${enable_ssl+set}" = set; then :
8210 enableval=$enable_ssl;
8211fi
8212
8213# Check whether --enable-cdsassl was given.
8214if test "${enable_cdsassl+set}" = set; then :
8215 enableval=$enable_cdsassl;
8216fi
8217
8218# Check whether --enable-gnutls was given.
8219if test "${enable_gnutls+set}" = set; then :
8220 enableval=$enable_gnutls;
8221fi
8222
8223
8224SSLFLAGS=""
8225SSLLIBS=""
8226have_ssl=0
8227CUPS_SERVERKEYCHAIN=""
8228
8229if test x$enable_ssl != xno; then
8230 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
105922ec 8231 if test $host_os_name = darwin; then
d9f356c5
MS
8232 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8233if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8234
8235 have_ssl=1
8236 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8237
8238 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8239
8240 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8241
8242 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8243if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8244 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8245
8246fi
8247
8248
8249 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8250if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8251 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8252
8253fi
8254
8255
8256 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8257if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8258 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8259
8260fi
8261
8262
8263 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8264"
8265if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8266 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8267
8268fi
8269
8270
8271 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8272if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8273 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8274
8275fi
8276
8277
8278 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8279if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8280 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8281
8282fi
8283
8284
8285 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8286if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8287 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8288
8289fi
8290
8291
8292 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8293if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8294 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8295
8296fi
8297
8298
8299
8300 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8301
8302 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8303
8304fi
8305
8306
8307
105922ec 8308 if test $host_os_version -ge 150; then
d9f356c5
MS
8309 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8310
8311 fi
8312 fi
8313 fi
8314
8315 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8316 if test -n "$ac_tool_prefix"; then
8317 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8318set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320$as_echo_n "checking for $ac_word... " >&6; }
8321if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8322 $as_echo_n "(cached) " >&6
8323else
8324 case $LIBGNUTLSCONFIG in
8325 [\\/]* | ?:[\\/]*)
8326 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8327 ;;
8328 *)
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
8336 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 break 2
8339 fi
8340done
8341 done
8342IFS=$as_save_IFS
8343
8344 ;;
8345esac
8346fi
8347LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8348if test -n "$LIBGNUTLSCONFIG"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8350$as_echo "$LIBGNUTLSCONFIG" >&6; }
8351else
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353$as_echo "no" >&6; }
8354fi
8355
8356
8357fi
8358if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8359 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8360 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8361set dummy libgnutls-config; ac_word=$2
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363$as_echo_n "checking for $ac_word... " >&6; }
8364if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8365 $as_echo_n "(cached) " >&6
8366else
8367 case $ac_pt_LIBGNUTLSCONFIG in
8368 [\\/]* | ?:[\\/]*)
8369 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8370 ;;
8371 *)
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373for as_dir in $PATH
8374do
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
8379 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 break 2
8382 fi
8383done
8384 done
8385IFS=$as_save_IFS
8386
8387 ;;
8388esac
8389fi
8390ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8391if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8393$as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8394else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
8397fi
8398
8399 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8400 LIBGNUTLSCONFIG=""
8401 else
8402 case $cross_compiling:$ac_tool_warned in
8403yes:)
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8406ac_tool_warned=yes ;;
8407esac
8408 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8409 fi
8410else
8411 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8412fi
8413
8414 if test -n "$ac_tool_prefix"; then
8415 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
8416set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418$as_echo_n "checking for $ac_word... " >&6; }
8419if ${ac_cv_path_LIBGCRYPTCONFIG+:} false; then :
8420 $as_echo_n "(cached) " >&6
8421else
8422 case $LIBGCRYPTCONFIG in
8423 [\\/]* | ?:[\\/]*)
8424 ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path.
8425 ;;
8426 *)
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428for as_dir in $PATH
8429do
8430 IFS=$as_save_IFS
8431 test -z "$as_dir" && as_dir=.
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 8433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
8434 ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436 break 2
8437 fi
8438done
8439 done
8440IFS=$as_save_IFS
8441
8442 ;;
8443esac
8444fi
8445LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG
8446if test -n "$LIBGCRYPTCONFIG"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5
8448$as_echo "$LIBGCRYPTCONFIG" >&6; }
8449else
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451$as_echo "no" >&6; }
8452fi
8453
8454
8455fi
8456if test -z "$ac_cv_path_LIBGCRYPTCONFIG"; then
8457 ac_pt_LIBGCRYPTCONFIG=$LIBGCRYPTCONFIG
8458 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8459set dummy libgcrypt-config; ac_word=$2
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461$as_echo_n "checking for $ac_word... " >&6; }
8462if ${ac_cv_path_ac_pt_LIBGCRYPTCONFIG+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464else
8465 case $ac_pt_LIBGCRYPTCONFIG in
8466 [\\/]* | ?:[\\/]*)
8467 ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$ac_pt_LIBGCRYPTCONFIG" # Let the user override the test with a path.
8468 ;;
8469 *)
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
8477 ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8480 fi
8481done
8482 done
8483IFS=$as_save_IFS
8484
8485 ;;
8486esac
8487fi
8488ac_pt_LIBGCRYPTCONFIG=$ac_cv_path_ac_pt_LIBGCRYPTCONFIG
8489if test -n "$ac_pt_LIBGCRYPTCONFIG"; then
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPTCONFIG" >&5
8491$as_echo "$ac_pt_LIBGCRYPTCONFIG" >&6; }
8492else
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494$as_echo "no" >&6; }
8495fi
8496
8497 if test "x$ac_pt_LIBGCRYPTCONFIG" = x; then
8498 LIBGCRYPTCONFIG=""
8499 else
8500 case $cross_compiling:$ac_tool_warned in
8501yes:)
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8504ac_tool_warned=yes ;;
8505esac
8506 LIBGCRYPTCONFIG=$ac_pt_LIBGCRYPTCONFIG
8507 fi
8508else
8509 LIBGCRYPTCONFIG="$ac_cv_path_LIBGCRYPTCONFIG"
8510fi
8511
8512 if $PKGCONFIG --exists gnutls; then
8513 have_ssl=1
8514 SSLLIBS=`$PKGCONFIG --libs gnutls`
8515 SSLFLAGS=`$PKGCONFIG --cflags gnutls`
8516 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8517
8518 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8519
8520 elif test "x$LIBGNUTLSCONFIG" != x; then
8521 have_ssl=1
8522 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8523 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8524 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8525
8526 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8527
8528 fi
8529
8530 if test $have_ssl = 1; then
8531 CUPS_SERVERKEYCHAIN="ssl"
8532
8533 SAVELIBS="$LIBS"
8534 LIBS="$LIBS $SSLLIBS"
8535 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8536if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8537 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8538
8539fi
8540
8541 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8542if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8543 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8544
8545fi
8546
8547 LIBS="$SAVELIBS"
8548 fi
8549 fi
8550fi
8551
8552IPPALIASES="http"
8553if test $have_ssl = 1; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8555$as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8557$as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8558 IPPALIASES="http https ipps"
8559elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8560 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8561fi
8562
8563
8564
8565
8566
8567
8568EXPORT_SSLLIBS="$SSLLIBS"
8569
8570
8571
d9f356c5
MS
8572# Check whether --enable-pam was given.
8573if test "${enable_pam+set}" = set; then :
8574 enableval=$enable_pam;
8575fi
8576
8577
8578# Check whether --with-pam_module was given.
8579if test "${with_pam_module+set}" = set; then :
8580 withval=$with_pam_module;
8581fi
8582
8583
8584PAMDIR=""
8585PAMFILE="pam.std"
8586PAMLIBS=""
8587PAMMOD="pam_unknown.so"
8588PAMMODAUTH="pam_unknown.so"
8589
8590if test x$enable_pam != xno; then
8591 SAVELIBS="$LIBS"
8592
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8594$as_echo_n "checking for dlopen in -ldl... " >&6; }
8595if ${ac_cv_lib_dl_dlopen+:} false; then :
8596 $as_echo_n "(cached) " >&6
8597else
8598 ac_check_lib_save_LIBS=$LIBS
8599LIBS="-ldl $LIBS"
8600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601/* end confdefs.h. */
8602
8603/* Override any GCC internal prototype to avoid an error.
8604 Use char because int might match the return type of a GCC
8605 builtin and then its argument prototype would still apply. */
8606#ifdef __cplusplus
8607extern "C"
8608#endif
8609char dlopen ();
8610int
8611main ()
8612{
8613return dlopen ();
8614 ;
8615 return 0;
8616}
8617_ACEOF
8618if ac_fn_c_try_link "$LINENO"; then :
8619 ac_cv_lib_dl_dlopen=yes
8620else
8621 ac_cv_lib_dl_dlopen=no
8622fi
8623rm -f core conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8625LIBS=$ac_check_lib_save_LIBS
8626fi
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8628$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8629if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8630 cat >>confdefs.h <<_ACEOF
8631#define HAVE_LIBDL 1
8632_ACEOF
8633
8634 LIBS="-ldl $LIBS"
8635
8636fi
8637
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8639$as_echo_n "checking for pam_start in -lpam... " >&6; }
8640if ${ac_cv_lib_pam_pam_start+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642else
8643 ac_check_lib_save_LIBS=$LIBS
8644LIBS="-lpam $LIBS"
8645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646/* end confdefs.h. */
8647
8648/* Override any GCC internal prototype to avoid an error.
8649 Use char because int might match the return type of a GCC
8650 builtin and then its argument prototype would still apply. */
8651#ifdef __cplusplus
8652extern "C"
8653#endif
8654char pam_start ();
8655int
8656main ()
8657{
8658return pam_start ();
8659 ;
8660 return 0;
8661}
8662_ACEOF
8663if ac_fn_c_try_link "$LINENO"; then :
8664 ac_cv_lib_pam_pam_start=yes
8665else
8666 ac_cv_lib_pam_pam_start=no
8667fi
8668rm -f core conftest.err conftest.$ac_objext \
8669 conftest$ac_exeext conftest.$ac_ext
8670LIBS=$ac_check_lib_save_LIBS
8671fi
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8673$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8674if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8675 cat >>confdefs.h <<_ACEOF
8676#define HAVE_LIBPAM 1
8677_ACEOF
8678
8679 LIBS="-lpam $LIBS"
8680
8681fi
8682
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8684$as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8685if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8686 $as_echo_n "(cached) " >&6
8687else
8688 ac_check_lib_save_LIBS=$LIBS
8689LIBS="-lpam $LIBS"
8690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691/* end confdefs.h. */
8692
8693/* Override any GCC internal prototype to avoid an error.
8694 Use char because int might match the return type of a GCC
8695 builtin and then its argument prototype would still apply. */
8696#ifdef __cplusplus
8697extern "C"
8698#endif
8699char pam_set_item ();
8700int
8701main ()
8702{
8703return pam_set_item ();
8704 ;
8705 return 0;
8706}
8707_ACEOF
8708if ac_fn_c_try_link "$LINENO"; then :
8709 ac_cv_lib_pam_pam_set_item=yes
8710else
8711 ac_cv_lib_pam_pam_set_item=no
8712fi
8713rm -f core conftest.err conftest.$ac_objext \
8714 conftest$ac_exeext conftest.$ac_ext
8715LIBS=$ac_check_lib_save_LIBS
8716fi
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8718$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8719if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8720 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8721
8722fi
8723
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8725$as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8726if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728else
8729 ac_check_lib_save_LIBS=$LIBS
8730LIBS="-lpam $LIBS"
8731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h. */
8733
8734/* Override any GCC internal prototype to avoid an error.
8735 Use char because int might match the return type of a GCC
8736 builtin and then its argument prototype would still apply. */
8737#ifdef __cplusplus
8738extern "C"
8739#endif
8740char pam_setcred ();
8741int
8742main ()
8743{
8744return pam_setcred ();
8745 ;
8746 return 0;
8747}
8748_ACEOF
8749if ac_fn_c_try_link "$LINENO"; then :
8750 ac_cv_lib_pam_pam_setcred=yes
8751else
8752 ac_cv_lib_pam_pam_setcred=no
8753fi
8754rm -f core conftest.err conftest.$ac_objext \
8755 conftest$ac_exeext conftest.$ac_ext
8756LIBS=$ac_check_lib_save_LIBS
8757fi
8758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8759$as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8760if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8761 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8762
8763fi
8764
8765 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8766if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8767
8768fi
8769
8770
8771 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8772 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8773if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8774 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8775
8776fi
8777
8778
8779 fi
8780
8781 if test x$ac_cv_lib_pam_pam_start != xno; then
8782 # Set the necessary libraries for PAM...
8783 if test x$ac_cv_lib_dl_dlopen != xno; then
8784 PAMLIBS="-lpam -ldl"
8785 else
8786 PAMLIBS="-lpam"
8787 fi
8788
8789 # Find the PAM configuration directory, if any...
8790 for dir in /private/etc/pam.d /etc/pam.d; do
8791 if test -d $dir; then
8792 PAMDIR=$dir
8793 break;
8794 fi
8795 done
8796 fi
8797
8798 LIBS="$SAVELIBS"
8799
105922ec 8800 case "$host_os_name" in
8d7d268f 8801 darwin*)
8072030b 8802 # Darwin/macOS
d9f356c5
MS
8803 if test "x$with_pam_module" != x; then
8804 PAMFILE="pam.$with_pam_module"
8805 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8806 PAMFILE="pam.opendirectory"
8807 else
8808 PAMFILE="pam.securityserver"
8809 fi
8810 ;;
8811
8812 *)
8813 # All others; this test might need to be updated
8814 # as Linux distributors move things around...
8815 if test "x$with_pam_module" != x; then
8816 PAMMOD="pam_${with_pam_module}.so"
8817 elif test -f /lib/security/pam_unix2.so; then
8818 PAMMOD="pam_unix2.so"
8819 elif test -f /lib/security/pam_unix.so; then
8820 PAMMOD="pam_unix.so"
8821 fi
8822
8823 if test "x$PAMMOD" = xpam_unix.so; then
8824 PAMMODAUTH="$PAMMOD shadow nodelay"
8825 else
8826 PAMMODAUTH="$PAMMOD nodelay"
8827 fi
8828 ;;
8829 esac
8830fi
8831
8832
8833
8834
8835
8836
8837
8838
d9f356c5
MS
8839# Check whether --enable-largefile was given.
8840if test "${enable_largefile+set}" = set; then :
8841 enableval=$enable_largefile;
8842fi
8843
8844if test "$enable_largefile" != no; then
8845
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8847$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8848if ${ac_cv_sys_largefile_CC+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850else
8851 ac_cv_sys_largefile_CC=no
8852 if test "$GCC" != yes; then
8853 ac_save_CC=$CC
8854 while :; do
8855 # IRIX 6.2 and later do not support large files by default,
8856 # so use the C compiler's -n32 option if that helps.
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858/* end confdefs.h. */
8859#include <sys/types.h>
8860 /* Check that off_t can represent 2**63 - 1 correctly.
8861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8862 since some C++ compilers masquerading as C compilers
8863 incorrectly reject 9223372036854775807. */
1166bf58 8864#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
d9f356c5
MS
8865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8866 && LARGE_OFF_T % 2147483647 == 1)
8867 ? 1 : -1];
8868int
8869main ()
8870{
8871
8872 ;
8873 return 0;
8874}
8875_ACEOF
8876 if ac_fn_c_try_compile "$LINENO"; then :
8877 break
8878fi
8879rm -f core conftest.err conftest.$ac_objext
8880 CC="$CC -n32"
8881 if ac_fn_c_try_compile "$LINENO"; then :
8882 ac_cv_sys_largefile_CC=' -n32'; break
8883fi
8884rm -f core conftest.err conftest.$ac_objext
8885 break
8886 done
8887 CC=$ac_save_CC
8888 rm -f conftest.$ac_ext
8889 fi
8890fi
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8892$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8893 if test "$ac_cv_sys_largefile_CC" != no; then
8894 CC=$CC$ac_cv_sys_largefile_CC
8895 fi
8896
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8898$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8899if ${ac_cv_sys_file_offset_bits+:} false; then :
8900 $as_echo_n "(cached) " >&6
8901else
8902 while :; do
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904/* end confdefs.h. */
8905#include <sys/types.h>
8906 /* Check that off_t can represent 2**63 - 1 correctly.
8907 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8908 since some C++ compilers masquerading as C compilers
8909 incorrectly reject 9223372036854775807. */
1166bf58 8910#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
d9f356c5
MS
8911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8912 && LARGE_OFF_T % 2147483647 == 1)
8913 ? 1 : -1];
8914int
8915main ()
8916{
8917
8918 ;
8919 return 0;
8920}
8921_ACEOF
8922if ac_fn_c_try_compile "$LINENO"; then :
8923 ac_cv_sys_file_offset_bits=no; break
8924fi
8925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927/* end confdefs.h. */
8928#define _FILE_OFFSET_BITS 64
8929#include <sys/types.h>
8930 /* Check that off_t can represent 2**63 - 1 correctly.
8931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8932 since some C++ compilers masquerading as C compilers
8933 incorrectly reject 9223372036854775807. */
1166bf58 8934#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
d9f356c5
MS
8935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8936 && LARGE_OFF_T % 2147483647 == 1)
8937 ? 1 : -1];
8938int
8939main ()
8940{
8941
8942 ;
8943 return 0;
8944}
8945_ACEOF
8946if ac_fn_c_try_compile "$LINENO"; then :
8947 ac_cv_sys_file_offset_bits=64; break
8948fi
8949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 ac_cv_sys_file_offset_bits=unknown
8951 break
8952done
8953fi
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8955$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8956case $ac_cv_sys_file_offset_bits in #(
8957 no | unknown) ;;
8958 *)
8959cat >>confdefs.h <<_ACEOF
8960#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8961_ACEOF
8962;;
8963esac
8964rm -rf conftest*
8965 if test $ac_cv_sys_file_offset_bits = unknown; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8967$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8968if ${ac_cv_sys_large_files+:} false; then :
8969 $as_echo_n "(cached) " >&6
8970else
8971 while :; do
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973/* end confdefs.h. */
8974#include <sys/types.h>
8975 /* Check that off_t can represent 2**63 - 1 correctly.
8976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8977 since some C++ compilers masquerading as C compilers
8978 incorrectly reject 9223372036854775807. */
1166bf58 8979#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
d9f356c5
MS
8980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8981 && LARGE_OFF_T % 2147483647 == 1)
8982 ? 1 : -1];
8983int
8984main ()
8985{
8986
8987 ;
8988 return 0;
8989}
8990_ACEOF
8991if ac_fn_c_try_compile "$LINENO"; then :
8992 ac_cv_sys_large_files=no; break
8993fi
8994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996/* end confdefs.h. */
8997#define _LARGE_FILES 1
8998#include <sys/types.h>
8999 /* Check that off_t can represent 2**63 - 1 correctly.
9000 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9001 since some C++ compilers masquerading as C compilers
9002 incorrectly reject 9223372036854775807. */
1166bf58 9003#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
d9f356c5
MS
9004 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9005 && LARGE_OFF_T % 2147483647 == 1)
9006 ? 1 : -1];
9007int
9008main ()
9009{
9010
9011 ;
9012 return 0;
9013}
9014_ACEOF
9015if ac_fn_c_try_compile "$LINENO"; then :
9016 ac_cv_sys_large_files=1; break
9017fi
9018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 ac_cv_sys_large_files=unknown
9020 break
9021done
9022fi
9023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9024$as_echo "$ac_cv_sys_large_files" >&6; }
9025case $ac_cv_sys_large_files in #(
9026 no | unknown) ;;
9027 *)
9028cat >>confdefs.h <<_ACEOF
9029#define _LARGE_FILES $ac_cv_sys_large_files
9030_ACEOF
9031;;
9032esac
9033rm -rf conftest*
9034 fi
9035fi
9036
9037
9038LARGEFILE=""
9039if test x$enable_largefile != xno; then
9040 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
9041
9042 if test x$ac_cv_sys_large_files = x1; then
9043 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
9044 fi
9045
9046 if test x$ac_cv_sys_file_offset_bits = x64; then
9047 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9048 fi
9049fi
9050
9051
9052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9053$as_echo_n "checking for long long int... " >&6; }
9054if ${ac_cv_c_long_long+:} false; then :
9055 $as_echo_n "(cached) " >&6
9056else
9057 if test "$GCC" = yes; then
9058 ac_cv_c_long_long=yes
9059 else
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061/* end confdefs.h. */
9062
9063int
9064main ()
9065{
9066long long int i;
9067 ;
9068 return 0;
9069}
9070_ACEOF
9071if ac_fn_c_try_compile "$LINENO"; then :
9072 ac_cv_c_long_long=yes
9073else
9074 ac_cv_c_long_long=no
9075fi
9076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 fi
9078fi
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9080$as_echo "$ac_cv_c_long_long" >&6; }
9081
9082if test $ac_cv_c_long_long = yes; then
9083 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9084
9085fi
9086
9087ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9088if test "x$ac_cv_func_strtoll" = xyes; then :
9089 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9090
9091fi
9092
9093
9094
d9f356c5
MS
9095# Check whether --enable-avahi was given.
9096if test "${enable_avahi+set}" = set; then :
9097 enableval=$enable_avahi;
9098fi
9099
9100# Check whether --enable-dnssd was given.
9101if test "${enable_dnssd+set}" = set; then :
9102 enableval=$enable_dnssd;
9103fi
9104
9105
9106# Check whether --with-dnssd-libs was given.
9107if test "${with_dnssd_libs+set}" = set; then :
9108 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9109 DSOFLAGS="-L$withval $DSOFLAGS"
9110fi
9111
9112
9113# Check whether --with-dnssd-includes was given.
9114if test "${with_dnssd_includes+set}" = set; then :
9115 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9116 CPPFLAGS="-I$withval $CPPFLAGS"
9117fi
9118
9119
9120DNSSDLIBS=""
9121DNSSD_BACKEND=""
9122IPPFIND_BIN=""
9123IPPFIND_MAN=""
9124
105922ec 9125if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
d9f356c5
MS
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9127$as_echo_n "checking for Avahi... " >&6; }
9128 if $PKGCONFIG --exists avahi-client; then
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9130$as_echo "yes" >&6; }
9131 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`"
9132 DNSSDLIBS="`$PKGCONFIG --libs avahi-client`"
9133 DNSSD_BACKEND="dnssd"
9134 IPPFIND_BIN="ippfind"
9135 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9136 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9137
9138 else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140$as_echo "no" >&6; }
9141 fi
9142fi
9143
9144if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9145 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9146if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9147
105922ec
MS
9148 case "$host_os_name" in
9149 darwin*)
d4874933 9150 # Darwin and macOS...
d9f356c5
MS
9151 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9152
9153 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9154 DNSSD_BACKEND="dnssd"
9155 IPPFIND_BIN="ippfind"
9156 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9157 ;;
9158 *)
9159 # All others...
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9161$as_echo_n "checking for current version of dns_sd library... " >&6; }
9162 SAVELIBS="$LIBS"
9163 LIBS="$LIBS -ldns_sd"
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165/* end confdefs.h. */
9166#include <dns_sd.h>
9167int
9168main ()
9169{
9170int constant = kDNSServiceFlagsShareConnection;
9171 unsigned char txtRecord[100];
9172 uint8_t valueLen;
9173 TXTRecordGetValuePtr(sizeof(txtRecord),
9174 txtRecord, "value", &valueLen);
9175 ;
9176 return 0;
9177}
9178_ACEOF
9179if ac_fn_c_try_compile "$LINENO"; then :
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9181$as_echo "yes" >&6; }
9182 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9183
9184 DNSSDLIBS="-ldns_sd"
9185 DNSSD_BACKEND="dnssd"
9186else
9187 IPPFIND_BIN="ippfind"
9188 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9190$as_echo "no" >&6; }
9191fi
9192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9193 LIBS="$SAVELIBS"
9194 ;;
9195 esac
9196
9197fi
9198
9199
9200fi
9201
9202
9203
9204
9205
9206
9207
d9f356c5
MS
9208ONDEMANDFLAGS=""
9209ONDEMANDLIBS=""
9210
9211
9212
9213# Check whether --enable-launchd was given.
9214if test "${enable_launchd+set}" = set; then :
9215 enableval=$enable_launchd;
9216fi
9217
9218LAUNCHD_DIR=""
9219
9220
9221if test x$enable_launchd != xno; then
1166bf58 9222 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
d9f356c5
MS
9223if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9224
1166bf58 9225 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
d9f356c5 9226
1166bf58 9227 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
d9f356c5
MS
9228
9229fi
9230
d9f356c5
MS
9231 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9232if test "x$ac_cv_header_launch_h" = xyes; then :
9233 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9234
9235fi
9236
9237
9238
105922ec
MS
9239 if test "$host_os_name" = darwin; then
9240 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9241 # liblaunch is already part of libSystem
9242 fi
d9f356c5
MS
9243fi
9244
9245# Check whether --enable-systemd was given.
9246if test "${enable_systemd+set}" = set; then :
9247 enableval=$enable_systemd;
9248fi
9249
9250
9251# Check whether --with-systemd was given.
9252if test "${with_systemd+set}" = set; then :
9253 withval=$with_systemd; SYSTEMD_DIR="$withval"
9254else
9255 SYSTEMD_DIR=""
9256fi
9257
9258
9259
9260if test x$enable_systemd != xno; then
9261 if test "x$PKGCONFIG" = x; then
9262 if test x$enable_systemd = xyes; then
9263 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9264 fi
9265 else
9266 have_systemd=no
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9268$as_echo_n "checking for libsystemd... " >&6; }
9269 if $PKGCONFIG --exists libsystemd; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9271$as_echo "yes" >&6; }
9272 have_systemd=yes
9273 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd`
9274 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd`
9275 elif $PKGCONFIG --exists libsystemd-daemon; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9277$as_echo "yes - legacy" >&6; }
9278 have_systemd=yes
9279 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon`
9280 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon`
9281
9282 if $PKGCONFIG --exists libsystemd-journal; then
9283 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal`"
9284 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal`"
9285 fi
9286 else
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288$as_echo "no" >&6; }
9289 fi
9290
9291 if test $have_systemd = yes; then
9292 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9293
1166bf58
MS
9294 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9295
d9f356c5
MS
9296 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9297if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9298 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9299
9300fi
9301
9302
9303 if test "x$SYSTEMD_DIR" = x; then
9304 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd`"
9305 fi
9306 fi
9307 fi
9308fi
9309
441de8b2
BN
9310# Check whether --enable-upstart was given.
9311if test "${enable_upstart+set}" = set; then :
9312 enableval=$enable_upstart;
9313fi
9314
9315if test "x$enable_upstart" = "xyes"; then
9316 if test "x$have_systemd" = "xyes"; then
9317 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9318 fi
9319 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9320
1166bf58
MS
9321 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9322
441de8b2
BN
9323fi
9324
d9f356c5
MS
9325SMFMANIFESTDIR=""
9326
9327
9328# Check whether --with-smfmanifestdir was given.
9329if test "${with_smfmanifestdir+set}" = set; then :
9330 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9331fi
9332
9333
9334
9335# Check whether --with-rcdir was given.
9336if test "${with_rcdir+set}" = set; then :
9337 withval=$with_rcdir; rcdir="$withval"
9338else
9339 rcdir=""
9340fi
9341
9342
9343# Check whether --with-rclevels was given.
9344if test "${with_rclevels+set}" = set; then :
9345 withval=$with_rclevels; rclevels="$withval"
9346else
9347 rclevels="2 3 5"
9348fi
9349
9350
9351# Check whether --with-rcstart was given.
9352if test "${with_rcstart+set}" = set; then :
9353 withval=$with_rcstart; rcstart="$withval"
9354else
9355 rcstart=""
9356fi
9357
9358
9359# Check whether --with-rcstop was given.
9360if test "${with_rcstop+set}" = set; then :
9361 withval=$with_rcstop; rcstop="$withval"
9362else
9363 rcstop=""
9364fi
9365
9366
9367if test x$rcdir = x; then
9368 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9369 # Fall back on "init", the original service startup interface...
9370 if test -d /sbin/init.d; then
9371 # SuSE
9372 rcdir="/sbin/init.d"
9373 elif test -d /etc/init.d; then
9374 # Others
9375 rcdir="/etc"
9376 else
9377 # RedHat, NetBSD
9378 rcdir="/etc/rc.d"
9379 fi
9380 else
9381 rcdir="no"
9382 fi
9383fi
9384
9385if test "x$rcstart" = x; then
105922ec 9386 case "$host_os_name" in
827bf9ce 9387 linux* | gnu*)
d9f356c5
MS
9388 # Linux
9389 rcstart="81"
9390 ;;
9391
105922ec 9392 sunos*)
d9f356c5
MS
9393 # Solaris
9394 rcstart="81"
9395 ;;
9396
9397 *)
9398 # Others
9399 rcstart="99"
9400 ;;
9401 esac
9402fi
9403
9404if test "x$rcstop" = x; then
105922ec 9405 case "$host_os_name" in
827bf9ce 9406 linux* | gnu*)
d9f356c5
MS
9407 # Linux
9408 rcstop="36"
9409 ;;
9410
9411 *)
9412 # Others
9413 rcstop="00"
9414 ;;
9415 esac
9416fi
9417
9418INITDIR=""
9419INITDDIR=""
9420RCLEVELS="$rclevels"
9421RCSTART="$rcstart"
9422RCSTOP="$rcstop"
9423
9424
9425
9426
9427
9428
9429if test "x$rcdir" != xno; then
9430 if test "x$rclevels" = x; then
9431 INITDDIR="$rcdir"
9432 else
9433 INITDIR="$rcdir"
9434 fi
9435fi
9436
9437
9438# Check whether --with-xinetd was given.
9439if test "${with_xinetd+set}" = set; then :
9440 withval=$with_xinetd; xinetd="$withval"
9441else
9442 xinetd=""
9443fi
9444
9445XINETD=""
9446
9447
9448if test "x$xinetd" = x; then
9449 if test ! -x /sbin/launchd; then
9450 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9451 if test -d $dir; then
9452 XINETD="$dir"
9453 break
9454 fi
9455 done
9456 fi
9457elif test "x$xinetd" != xno; then
9458 XINETD="$xinetd"
9459fi
9460
9461
d9f356c5
MS
9462LANGUAGES="`ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`"
9463
9464
9465# Check whether --with-languages was given.
9466if test "${with_languages+set}" = set; then :
9467 withval=$with_languages;
9468 case "$withval" in
9469 none | no) LANGUAGES="" ;;
9470 all) ;;
9471 *) LANGUAGES="$withval" ;;
9472 esac
9473fi
9474
9475
9476
9477
9478# Check whether --with-bundledir was given.
9479if test "${with_bundledir+set}" = set; then :
9480 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9481else
105922ec 9482 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
d9f356c5
MS
9483 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9484 LANGUAGES=""
9485 else
9486 CUPS_BUNDLEDIR=""
9487 fi
9488fi
9489
9490
9491
9492if test "x$CUPS_BUNDLEDIR" != x; then
9493 cat >>confdefs.h <<_ACEOF
9494#define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9495_ACEOF
9496
9497fi
9498
9499
d4a895f8
MS
9500# Check whether --with-exe_file_perm was given.
9501if test "${with_exe_file_perm+set}" = set; then :
9502 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9503else
827bf9ce 9504 case "$host_os_name" in
134d0579 9505 linux* | gnu*)
827bf9ce
MS
9506 CUPS_EXE_FILE_PERM="755"
9507 ;;
9508 *)
9509 CUPS_EXE_FILE_PERM="555"
9510 ;;
134d0579
MS
9511 esac
9512fi
9513
d4a895f8
MS
9514
9515
9516
d9f356c5
MS
9517# Check whether --with-config_file_perm was given.
9518if test "${with_config_file_perm+set}" = set; then :
9519 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9520else
105922ec 9521 if test "x$host_os_name" = xdarwin; then
d9f356c5
MS
9522 CUPS_CONFIG_FILE_PERM="644"
9523 else
9524 CUPS_CONFIG_FILE_PERM="640"
9525 fi
9526fi
9527
9528
9529cat >>confdefs.h <<_ACEOF
9530#define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9531_ACEOF
9532
9533
9534
9535# Check whether --with-cupsd_file_perm was given.
9536if test "${with_cupsd_file_perm+set}" = set; then :
9537 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9538else
827bf9ce 9539 case "$host_os_name" in
134d0579 9540 linux* | gnu*)
827bf9ce
MS
9541 CUPS_CUPSD_FILE_PERM="700"
9542 ;;
9543 *)
9544 CUPS_CUPSD_FILE_PERM="500"
9545 ;;
134d0579
MS
9546 esac
9547fi
9548
d9f356c5
MS
9549
9550
9551
9552# Check whether --with-log_file_perm was given.
9553if test "${with_log_file_perm+set}" = set; then :
9554 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9555else
9556 CUPS_LOG_FILE_PERM="644"
9557fi
9558
9559
9560cat >>confdefs.h <<_ACEOF
9561#define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9562_ACEOF
9563
9564
9565
9566# Check whether --with-fatal_errors was given.
9567if test "${with_fatal_errors+set}" = set; then :
9568 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9569else
9570 CUPS_FATAL_ERRORS="config"
9571fi
9572
9573
9574cat >>confdefs.h <<_ACEOF
9575#define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9576_ACEOF
9577
9578
9579
9580# Check whether --with-log_level was given.
9581if test "${with_log_level+set}" = set; then :
9582 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9583else
9584 CUPS_LOG_LEVEL="warn"
9585fi
9586
9587
9588cat >>confdefs.h <<_ACEOF
9589#define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9590_ACEOF
9591
9592
9593
9594# Check whether --with-access_log_level was given.
9595if test "${with_access_log_level+set}" = set; then :
9596 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9597else
9598 CUPS_ACCESS_LOG_LEVEL="none"
9599fi
9600
9601
9602cat >>confdefs.h <<_ACEOF
9603#define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9604_ACEOF
9605
9606
9607# Check whether --enable-page_logging was given.
9608if test "${enable_page_logging+set}" = set; then :
9609 enableval=$enable_page_logging;
9610fi
9611
9612if test "x$enable_page_logging" = xyes; then
9613 CUPS_PAGE_LOG_FORMAT=""
9614else
9615 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9616fi
9617
9618
9619# Check whether --enable-browsing was given.
9620if test "${enable_browsing+set}" = set; then :
9621 enableval=$enable_browsing;
9622fi
9623
9624if test "x$enable_browsing" = xno; then
9625 CUPS_BROWSING="No"
9626 cat >>confdefs.h <<_ACEOF
9627#define CUPS_DEFAULT_BROWSING 0
9628_ACEOF
9629
9630else
9631 CUPS_BROWSING="Yes"
9632 cat >>confdefs.h <<_ACEOF
9633#define CUPS_DEFAULT_BROWSING 1
9634_ACEOF
9635
9636fi
9637
9638
9639
9640# Check whether --with-local_protocols was given.
9641if test "${with_local_protocols+set}" = set; then :
9642 withval=$with_local_protocols; default_local_protocols="$withval"
9643else
9644 default_local_protocols="default"
9645fi
9646
9647
9648if test x$with_local_protocols != xno; then
9649 if test "x$default_local_protocols" = "xdefault"; then
9650 if test "x$DNSSD_BACKEND" != "x"; then
9651 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9652 else
9653 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9654 fi
9655 else
9656 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9657 fi
9658else
9659 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9660fi
9661
9662
9663cat >>confdefs.h <<_ACEOF
9664#define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9665_ACEOF
9666
9667
9668# Check whether --enable-default_shared was given.
9669if test "${enable_default_shared+set}" = set; then :
9670 enableval=$enable_default_shared;
9671fi
9672
9673if test "x$enable_default_shared" = xno; then
9674 CUPS_DEFAULT_SHARED="No"
9675 cat >>confdefs.h <<_ACEOF
9676#define CUPS_DEFAULT_DEFAULT_SHARED 0
9677_ACEOF
9678
9679else
9680 CUPS_DEFAULT_SHARED="Yes"
9681 cat >>confdefs.h <<_ACEOF
9682#define CUPS_DEFAULT_DEFAULT_SHARED 1
9683_ACEOF
9684
9685fi
9686
9687
9688
9689# Check whether --with-cups_user was given.
9690if test "${with_cups_user+set}" = set; then :
9691 withval=$with_cups_user; CUPS_USER="$withval"
9692else
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9694$as_echo_n "checking for default print user... " >&6; }
105922ec 9695 if test x$host_os_name = xdarwin; then
d9f356c5
MS
9696 if test x`id -u _lp 2>/dev/null` = x; then
9697 CUPS_USER="lp";
9698 else
9699 CUPS_USER="_lp";
9700 fi
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9702$as_echo "$CUPS_USER" >&6; }
9703 elif test -f /etc/passwd; then
9704 CUPS_USER=""
9705 for user in lp lpd guest daemon nobody; do
9706 if test "`grep \^${user}: /etc/passwd`" != ""; then
9707 CUPS_USER="$user"
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9709$as_echo "$user" >&6; }
9710 break;
9711 fi
9712 done
9713
9714 if test x$CUPS_USER = x; then
9715 CUPS_USER="nobody"
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9717$as_echo "not found" >&6; }
9718 fi
9719 else
9720 CUPS_USER="nobody"
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9722$as_echo "no password file" >&6; }
9723 fi
9724fi
9725
9726
9727if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9728 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9729fi
9730
9731
9732# Check whether --with-cups_group was given.
9733if test "${with_cups_group+set}" = set; then :
9734 withval=$with_cups_group; CUPS_GROUP="$withval"
9735else
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9737$as_echo_n "checking for default print group... " >&6; }
105922ec 9738 if test x$host_os_name = xdarwin; then
d9f356c5
MS
9739 if test x`id -g _lp 2>/dev/null` = x; then
9740 CUPS_GROUP="lp";
9741 else
9742 CUPS_GROUP="_lp";
9743 fi
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9745$as_echo "$CUPS_GROUP" >&6; }
9746 elif test -f /etc/group; then
9747 GROUP_LIST="_lp lp nobody"
9748 CUPS_GROUP=""
9749 for group in $GROUP_LIST; do
9750 if test "`grep \^${group}: /etc/group`" != ""; then
9751 CUPS_GROUP="$group"
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9753$as_echo "$group" >&6; }
9754 break;
9755 fi
9756 done
9757
9758 if test x$CUPS_GROUP = x; then
9759 CUPS_GROUP="nobody"
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9761$as_echo "not found" >&6; }
9762 fi
9763 else
9764 CUPS_GROUP="nobody"
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9766$as_echo "no group file" >&6; }
9767 fi
9768fi
9769
9770
9771if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9772 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9773fi
9774
9775
9776# Check whether --with-system_groups was given.
9777if test "${with_system_groups+set}" = set; then :
9778 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9779else
105922ec 9780 if test x$host_os_name = xdarwin; then
d9f356c5
MS
9781 CUPS_SYSTEM_GROUPS="admin"
9782 else
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9784$as_echo_n "checking for default system groups... " >&6; }
9785 if test -f /etc/group; then
9786 CUPS_SYSTEM_GROUPS=""
9787 GROUP_LIST="lpadmin sys system root"
9788 for group in $GROUP_LIST; do
9789 if test "`grep \^${group}: /etc/group`" != ""; then
9790 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9791 CUPS_SYSTEM_GROUPS="$group"
9792 else
9793 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9794 fi
9795 fi
9796 done
9797
9798 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9799 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9801$as_echo "no groups found" >&6; }
9802 else
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9804$as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9805 fi
9806 else
9807 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9809$as_echo "no group file" >&6; }
9810 fi
9811 fi
9812fi
9813
9814
9815CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS | awk '{print $1}'`"
9816
9817for group in $CUPS_SYSTEM_GROUPS; do
9818 if test "x$CUPS_GROUP" = "x$group"; then
9819 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9820 fi
9821done
9822
9823
9824
9825
9826
9827
9828cat >>confdefs.h <<_ACEOF
9829#define CUPS_DEFAULT_USER "$CUPS_USER"
9830_ACEOF
9831
9832cat >>confdefs.h <<_ACEOF
9833#define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9834_ACEOF
9835
9836cat >>confdefs.h <<_ACEOF
9837#define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9838_ACEOF
9839
9840
9841
9842# Check whether --with-printcap was given.
9843if test "${with_printcap+set}" = set; then :
9844 withval=$with_printcap; default_printcap="$withval"
9845else
9846 default_printcap="default"
9847fi
9848
9849
9850if test x$default_printcap != xno; then
9851 if test "x$default_printcap" = "xdefault"; then
105922ec
MS
9852 case $host_os_name in
9853 darwin*)
9854 if test $host_os_version -ge 90; then
d9f356c5
MS
9855 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9856 else
9857 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9858 fi
9859 ;;
105922ec 9860 sunos*)
d9f356c5
MS
9861 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9862 ;;
9863 *)
9864 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9865 ;;
9866 esac
9867 else
9868 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9869 fi
9870else
9871 CUPS_DEFAULT_PRINTCAP=""
9872fi
9873
9874
9875cat >>confdefs.h <<_ACEOF
9876#define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9877_ACEOF
9878
9879
9880
9881# Check whether --with-lpdconfigfile was given.
9882if test "${with_lpdconfigfile+set}" = set; then :
9883 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9884else
9885 default_lpdconfigfile="default"
9886fi
9887
9888
9889if test x$default_lpdconfigfile != xno; then
9890 if test "x$default_lpdconfigfile" = "xdefault"; then
105922ec
MS
9891 case $host_os_name in
9892 darwin*)
d9f356c5
MS
9893 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9894 ;;
9895 *)
9896 if test "x$XINETD" != x; then
9897 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9898 else
9899 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9900 fi
9901 ;;
9902 esac
9903 else
9904 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9905 fi
9906else
9907 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9908fi
9909
9910cat >>confdefs.h <<_ACEOF
9911#define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9912_ACEOF
9913
9914
9915
9916
9917# Check whether --with-smbconfigfile was given.
9918if test "${with_smbconfigfile+set}" = set; then :
9919 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9920else
9921 default_smbconfigfile="default"
9922fi
9923
9924
9925if test x$default_smbconfigfile != xno; then
9926 if test "x$default_smbconfigfile" = "xdefault"; then
9927 if test -f /etc/smb.conf; then
9928 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9929 else
9930 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9931 fi
9932 else
9933 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9934 fi
9935else
9936 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9937fi
9938
9939cat >>confdefs.h <<_ACEOF
9940#define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9941_ACEOF
9942
9943
9944
9945
9946# Check whether --with-max-copies was given.
9947if test "${with_max_copies+set}" = set; then :
9948 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9949else
9950 CUPS_MAX_COPIES="9999"
9951fi
9952
9953
9954
9955cat >>confdefs.h <<_ACEOF
9956#define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9957_ACEOF
9958
9959
9960# Check whether --enable-raw_printing was given.
9961if test "${enable_raw_printing+set}" = set; then :
9962 enableval=$enable_raw_printing;
9963fi
9964
9965if test "x$enable_raw_printing" != xno; then
9966 DEFAULT_RAW_PRINTING=""
9967else
9968 DEFAULT_RAW_PRINTING="#"
9969fi
9970
9971
9972
9973# Check whether --with-snmp-address was given.
9974if test "${with_snmp_address+set}" = set; then :
9975 withval=$with_snmp_address; if test "x$withval" = x; then
9976 CUPS_SNMP_ADDRESS=""
9977 else
9978 CUPS_SNMP_ADDRESS="Address $withval"
9979 fi
9980else
105922ec 9981 if test "x$host_os_name" = xdarwin; then
d9f356c5
MS
9982 CUPS_SNMP_ADDRESS=""
9983 else
9984 CUPS_SNMP_ADDRESS="Address @LOCAL"
9985 fi
9986fi
9987
9988
9989
9990# Check whether --with-snmp-community was given.
9991if test "${with_snmp_community+set}" = set; then :
9992 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9993else
9994 CUPS_SNMP_COMMUNITY="Community public"
9995fi
9996
9997
9998
9999
10000
10001
10002# Check whether --with-ipp-port was given.
10003if test "${with_ipp_port+set}" = set; then :
10004 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
10005else
10006 DEFAULT_IPP_PORT="631"
10007fi
10008
10009
10010
10011cat >>confdefs.h <<_ACEOF
10012#define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
10013_ACEOF
10014
10015
10016# Check whether --enable-webif was given.
10017if test "${enable_webif+set}" = set; then :
10018 enableval=$enable_webif;
10019fi
10020
10021case "x$enable_webif" in
10022 xno)
10023 CUPS_WEBIF=No
10024 CUPS_DEFAULT_WEBIF=0
10025 ;;
10026 xyes)
10027 CUPS_WEBIF=Yes
10028 CUPS_DEFAULT_WEBIF=1
10029 ;;
10030 *)
105922ec 10031 if test $host_os_name = darwin; then
d9f356c5
MS
10032 CUPS_WEBIF=No
10033 CUPS_DEFAULT_WEBIF=0
10034 else
10035 CUPS_WEBIF=Yes
10036 CUPS_DEFAULT_WEBIF=1
10037 fi
10038 ;;
10039esac
10040
10041
10042cat >>confdefs.h <<_ACEOF
10043#define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
10044_ACEOF
10045
10046
10047
10048
d9f356c5
MS
10049# Check whether --with-java was given.
10050if test "${with_java+set}" = set; then :
10051 withval=$with_java; CUPS_JAVA="$withval"
10052else
10053 CUPS_JAVA=""
10054fi
10055
10056
10057if test "x$CUPS_JAVA" = x; then
10058 # Extract the first word of "java", so it can be a program name with args.
10059set dummy java; ac_word=$2
10060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061$as_echo_n "checking for $ac_word... " >&6; }
10062if ${ac_cv_path_JAVA+:} false; then :
10063 $as_echo_n "(cached) " >&6
10064else
10065 case $JAVA in
10066 [\\/]* | ?:[\\/]*)
10067 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
10068 ;;
10069 *)
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071for as_dir in $PATH
10072do
10073 IFS=$as_save_IFS
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 10076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
10077 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
10078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10079 break 2
10080 fi
10081done
10082 done
10083IFS=$as_save_IFS
10084
10085 ;;
10086esac
10087fi
10088JAVA=$ac_cv_path_JAVA
10089if test -n "$JAVA"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
10091$as_echo "$JAVA" >&6; }
10092else
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094$as_echo "no" >&6; }
10095fi
10096
10097
10098 CUPS_JAVA="$JAVA"
10099fi
10100
10101cat >>confdefs.h <<_ACEOF
10102#define CUPS_JAVA "$CUPS_JAVA"
10103_ACEOF
10104
10105
10106if test "x$CUPS_JAVA" != x; then
10107 $as_echo "#define HAVE_JAVA 1" >>confdefs.h
10108
10109fi
10110
10111
10112# Check whether --with-perl was given.
10113if test "${with_perl+set}" = set; then :
10114 withval=$with_perl; CUPS_PERL="$withval"
10115else
10116 CUPS_PERL=""
10117fi
10118
10119
10120if test "x$CUPS_PERL" = x; then
10121 # Extract the first word of "perl", so it can be a program name with args.
10122set dummy perl; ac_word=$2
10123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10124$as_echo_n "checking for $ac_word... " >&6; }
10125if ${ac_cv_path_PERL+:} false; then :
10126 $as_echo_n "(cached) " >&6
10127else
10128 case $PERL in
10129 [\\/]* | ?:[\\/]*)
10130 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10131 ;;
10132 *)
10133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10134for as_dir in $PATH
10135do
10136 IFS=$as_save_IFS
10137 test -z "$as_dir" && as_dir=.
10138 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 10139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
10140 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10142 break 2
10143 fi
10144done
10145 done
10146IFS=$as_save_IFS
10147
10148 ;;
10149esac
10150fi
10151PERL=$ac_cv_path_PERL
10152if test -n "$PERL"; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10154$as_echo "$PERL" >&6; }
10155else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157$as_echo "no" >&6; }
10158fi
10159
10160
10161 CUPS_PERL="$PERL"
10162fi
10163
10164cat >>confdefs.h <<_ACEOF
10165#define CUPS_PERL "$CUPS_PERL"
10166_ACEOF
10167
10168
10169if test "x$CUPS_PERL" != x; then
10170 $as_echo "#define HAVE_PERL 1" >>confdefs.h
10171
10172fi
10173
10174
10175# Check whether --with-php was given.
10176if test "${with_php+set}" = set; then :
10177 withval=$with_php; CUPS_PHP="$withval"
10178else
10179 CUPS_PHP=""
10180fi
10181
10182
10183if test "x$CUPS_PHP" = x; then
10184 # Extract the first word of "php-cgi", so it can be a program name with args.
10185set dummy php-cgi; ac_word=$2
10186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187$as_echo_n "checking for $ac_word... " >&6; }
10188if ${ac_cv_path_PHPCGI+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190else
10191 case $PHPCGI in
10192 [\\/]* | ?:[\\/]*)
10193 ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
10194 ;;
10195 *)
10196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197for as_dir in $PATH
10198do
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 10202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
10203 ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10206 fi
10207done
10208 done
10209IFS=$as_save_IFS
10210
10211 ;;
10212esac
10213fi
10214PHPCGI=$ac_cv_path_PHPCGI
10215if test -n "$PHPCGI"; then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
10217$as_echo "$PHPCGI" >&6; }
10218else
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220$as_echo "no" >&6; }
10221fi
10222
10223
10224 if test "x$PHPCGI" = x; then
10225 # Extract the first word of "php", so it can be a program name with args.
10226set dummy php; ac_word=$2
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10228$as_echo_n "checking for $ac_word... " >&6; }
10229if ${ac_cv_path_PHP+:} false; then :
10230 $as_echo_n "(cached) " >&6
10231else
10232 case $PHP in
10233 [\\/]* | ?:[\\/]*)
10234 ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
10235 ;;
10236 *)
10237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238for as_dir in $PATH
10239do
10240 IFS=$as_save_IFS
10241 test -z "$as_dir" && as_dir=.
10242 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 10243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
10244 ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
10245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10246 break 2
10247 fi
10248done
10249 done
10250IFS=$as_save_IFS
10251
10252 ;;
10253esac
10254fi
10255PHP=$ac_cv_path_PHP
10256if test -n "$PHP"; then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
10258$as_echo "$PHP" >&6; }
10259else
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261$as_echo "no" >&6; }
10262fi
10263
10264
10265 CUPS_PHP="$PHP"
10266 else
10267 CUPS_PHP="$PHPCGI"
10268 fi
10269fi
10270
10271cat >>confdefs.h <<_ACEOF
10272#define CUPS_PHP "$CUPS_PHP"
10273_ACEOF
10274
10275
10276if test "x$CUPS_PHP" = x; then
10277 CUPS_PHP="no"
10278else
10279 $as_echo "#define HAVE_PHP 1" >>confdefs.h
10280
10281fi
10282
10283
10284# Check whether --with-python was given.
10285if test "${with_python+set}" = set; then :
10286 withval=$with_python; CUPS_PYTHON="$withval"
10287else
10288 CUPS_PYTHON=""
10289fi
10290
10291
10292if test "x$CUPS_PYTHON" = x; then
10293 # Extract the first word of "python", so it can be a program name with args.
10294set dummy python; ac_word=$2
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10296$as_echo_n "checking for $ac_word... " >&6; }
10297if ${ac_cv_path_PYTHON+:} false; then :
10298 $as_echo_n "(cached) " >&6
10299else
10300 case $PYTHON in
10301 [\\/]* | ?:[\\/]*)
10302 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10303 ;;
10304 *)
10305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306for as_dir in $PATH
10307do
10308 IFS=$as_save_IFS
10309 test -z "$as_dir" && as_dir=.
10310 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 10311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
10312 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10314 break 2
10315 fi
10316done
10317 done
10318IFS=$as_save_IFS
10319
10320 ;;
10321esac
10322fi
10323PYTHON=$ac_cv_path_PYTHON
10324if test -n "$PYTHON"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10326$as_echo "$PYTHON" >&6; }
10327else
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329$as_echo "no" >&6; }
10330fi
10331
10332
10333 CUPS_PYTHON="$PYTHON"
10334fi
10335
10336cat >>confdefs.h <<_ACEOF
10337#define CUPS_PYTHON "$CUPS_PYTHON"
10338_ACEOF
10339
10340
10341if test "x$CUPS_PYTHON" != x; then
10342 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10343
10344fi
10345
10346
d9f356c5
MS
10347INSTALL_LANGUAGES=""
10348UNINSTALL_LANGUAGES=""
10349LANGFILES=""
10350if test "x$LANGUAGES" != x; then
10351 INSTALL_LANGUAGES="install-languages"
10352 UNINSTALL_LANGUAGES="uninstall-languages"
10353 for lang in $LANGUAGES; do
10354 if test -f doc/$lang/index.html.in; then
10355 LANGFILES="$LANGFILES doc/$lang/index.html"
10356 fi
10357
10358 if test -f templates/$lang/header.tmpl.in; then
10359 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10360 fi
10361 done
10362elif test "x$CUPS_BUNDLEDIR" != x; then
10363 INSTALL_LANGUAGES="install-langbundle"
10364 UNINSTALL_LANGUAGES="uninstall-langbundle"
10365fi
10366
10367
10368
10369
10370ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config desktop/cups.desktop doc/index.html man/client.conf.man man/cups-files.conf.man man/cups-lpd.man man/cups-snmp.man man/cupsaddsmb.man man/cupsd.conf.man man/cupsd.man man/lpoptions.man scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/org.cups.cups-lpdAT.service scheduler/org.cups.cupsd.path scheduler/org.cups.cupsd.service scheduler/org.cups.cupsd.socket templates/header.tmpl packaging/cups.list $LANGFILES"
10371
10372cat >confcache <<\_ACEOF
10373# This file is a shell script that caches the results of configure
10374# tests run on this system so they can be shared between configure
10375# scripts and configure runs, see configure's option --config-cache.
10376# It is not useful on other systems. If it contains results you don't
10377# want to keep, you may remove or edit it.
10378#
10379# config.status only pays attention to the cache file if you give it
10380# the --recheck option to rerun configure.
10381#
10382# `ac_cv_env_foo' variables (set or unset) will be overridden when
10383# loading this file, other *unset* `ac_cv_foo' will be assigned the
10384# following values.
10385
10386_ACEOF
10387
10388# The following way of writing the cache mishandles newlines in values,
10389# but we know of no workaround that is simple, portable, and efficient.
10390# So, we kill variables containing newlines.
10391# Ultrix sh set writes to stderr and can't be redirected directly,
10392# and sets the high bit in the cache file unless we assign to the vars.
10393(
10394 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10395 eval ac_val=\$$ac_var
10396 case $ac_val in #(
10397 *${as_nl}*)
10398 case $ac_var in #(
10399 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10400$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10401 esac
10402 case $ac_var in #(
10403 _ | IFS | as_nl) ;; #(
10404 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10405 *) { eval $ac_var=; unset $ac_var;} ;;
10406 esac ;;
10407 esac
10408 done
10409
10410 (set) 2>&1 |
10411 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10412 *${as_nl}ac_space=\ *)
10413 # `set' does not quote correctly, so add quotes: double-quote
10414 # substitution turns \\\\ into \\, and sed turns \\ into \.
10415 sed -n \
10416 "s/'/'\\\\''/g;
10417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10418 ;; #(
10419 *)
10420 # `set' quotes correctly as required by POSIX, so do not add quotes.
10421 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10422 ;;
10423 esac |
10424 sort
10425) |
10426 sed '
10427 /^ac_cv_env_/b end
10428 t clear
10429 :clear
10430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10431 t end
10432 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10433 :end' >>confcache
10434if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10435 if test -w "$cache_file"; then
10436 if test "x$cache_file" != "x/dev/null"; then
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10438$as_echo "$as_me: updating cache $cache_file" >&6;}
10439 if test ! -f "$cache_file" || test -h "$cache_file"; then
10440 cat confcache >"$cache_file"
10441 else
10442 case $cache_file in #(
10443 */* | ?:*)
10444 mv -f confcache "$cache_file"$$ &&
10445 mv -f "$cache_file"$$ "$cache_file" ;; #(
10446 *)
10447 mv -f confcache "$cache_file" ;;
10448 esac
10449 fi
10450 fi
10451 else
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10453$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10454 fi
10455fi
10456rm -f confcache
10457
10458test "x$prefix" = xNONE && prefix=$ac_default_prefix
10459# Let make expand exec_prefix.
10460test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10461
10462DEFS=-DHAVE_CONFIG_H
10463
10464ac_libobjs=
10465ac_ltlibobjs=
10466U=
10467for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10468 # 1. Remove the extension, and $U if already installed.
10469 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10470 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10471 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10472 # will be set to the directory where LIBOBJS objects are built.
10473 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10474 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10475done
10476LIBOBJS=$ac_libobjs
10477
10478LTLIBOBJS=$ac_ltlibobjs
10479
10480
10481
10482: "${CONFIG_STATUS=./config.status}"
10483ac_write_fail=0
10484ac_clean_files_save=$ac_clean_files
10485ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10487$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10488as_write_fail=0
10489cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10490#! $SHELL
10491# Generated by $as_me.
10492# Run this file to recreate the current configuration.
10493# Compiler output produced by configure, useful for debugging
10494# configure, is in config.log if it exists.
10495
10496debug=false
10497ac_cs_recheck=false
10498ac_cs_silent=false
10499
10500SHELL=\${CONFIG_SHELL-$SHELL}
10501export SHELL
10502_ASEOF
10503cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10504## -------------------- ##
10505## M4sh Initialization. ##
10506## -------------------- ##
10507
10508# Be more Bourne compatible
10509DUALCASE=1; export DUALCASE # for MKS sh
10510if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10511 emulate sh
10512 NULLCMD=:
10513 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10514 # is contrary to our usage. Disable this feature.
10515 alias -g '${1+"$@"}'='"$@"'
10516 setopt NO_GLOB_SUBST
10517else
10518 case `(set -o) 2>/dev/null` in #(
10519 *posix*) :
10520 set -o posix ;; #(
10521 *) :
10522 ;;
10523esac
10524fi
10525
10526
10527as_nl='
10528'
10529export as_nl
10530# Printing a long string crashes Solaris 7 /usr/bin/printf.
10531as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10532as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10533as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10534# Prefer a ksh shell builtin over an external printf program on Solaris,
10535# but without wasting forks for bash or zsh.
10536if test -z "$BASH_VERSION$ZSH_VERSION" \
10537 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10538 as_echo='print -r --'
10539 as_echo_n='print -rn --'
10540elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10541 as_echo='printf %s\n'
10542 as_echo_n='printf %s'
10543else
10544 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10545 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10546 as_echo_n='/usr/ucb/echo -n'
10547 else
10548 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10549 as_echo_n_body='eval
10550 arg=$1;
10551 case $arg in #(
10552 *"$as_nl"*)
10553 expr "X$arg" : "X\\(.*\\)$as_nl";
10554 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10555 esac;
10556 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10557 '
10558 export as_echo_n_body
10559 as_echo_n='sh -c $as_echo_n_body as_echo'
10560 fi
10561 export as_echo_body
10562 as_echo='sh -c $as_echo_body as_echo'
10563fi
10564
10565# The user is always right.
10566if test "${PATH_SEPARATOR+set}" != set; then
10567 PATH_SEPARATOR=:
10568 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10569 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10570 PATH_SEPARATOR=';'
10571 }
10572fi
10573
10574
10575# IFS
10576# We need space, tab and new line, in precisely that order. Quoting is
10577# there to prevent editors from complaining about space-tab.
10578# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10579# splitting by setting IFS to empty value.)
10580IFS=" "" $as_nl"
10581
10582# Find who we are. Look in the path if we contain no directory separator.
10583as_myself=
10584case $0 in #((
10585 *[\\/]* ) as_myself=$0 ;;
10586 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587for as_dir in $PATH
10588do
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10592 done
10593IFS=$as_save_IFS
10594
10595 ;;
10596esac
10597# We did not find ourselves, most probably we were run as `sh COMMAND'
10598# in which case we are not to be found in the path.
10599if test "x$as_myself" = x; then
10600 as_myself=$0
10601fi
10602if test ! -f "$as_myself"; then
10603 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10604 exit 1
10605fi
10606
10607# Unset variables that we do not need and which cause bugs (e.g. in
10608# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10609# suppresses any "Segmentation fault" message there. '((' could
10610# trigger a bug in pdksh 5.2.14.
10611for as_var in BASH_ENV ENV MAIL MAILPATH
10612do eval test x\${$as_var+set} = xset \
10613 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10614done
10615PS1='$ '
10616PS2='> '
10617PS4='+ '
10618
10619# NLS nuisances.
10620LC_ALL=C
10621export LC_ALL
10622LANGUAGE=C
10623export LANGUAGE
10624
10625# CDPATH.
10626(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10627
10628
10629# as_fn_error STATUS ERROR [LINENO LOG_FD]
10630# ----------------------------------------
10631# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10632# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10633# script with STATUS, using 1 if that was 0.
10634as_fn_error ()
10635{
10636 as_status=$1; test $as_status -eq 0 && as_status=1
10637 if test "$4"; then
10638 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10639 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10640 fi
10641 $as_echo "$as_me: error: $2" >&2
10642 as_fn_exit $as_status
10643} # as_fn_error
10644
10645
10646# as_fn_set_status STATUS
10647# -----------------------
10648# Set $? to STATUS, without forking.
10649as_fn_set_status ()
10650{
10651 return $1
10652} # as_fn_set_status
10653
10654# as_fn_exit STATUS
10655# -----------------
10656# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10657as_fn_exit ()
10658{
10659 set +e
10660 as_fn_set_status $1
10661 exit $1
10662} # as_fn_exit
10663
10664# as_fn_unset VAR
10665# ---------------
10666# Portably unset VAR.
10667as_fn_unset ()
10668{
10669 { eval $1=; unset $1;}
10670}
10671as_unset=as_fn_unset
10672# as_fn_append VAR VALUE
10673# ----------------------
10674# Append the text in VALUE to the end of the definition contained in VAR. Take
10675# advantage of any shell optimizations that allow amortized linear growth over
10676# repeated appends, instead of the typical quadratic growth present in naive
10677# implementations.
10678if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10679 eval 'as_fn_append ()
10680 {
10681 eval $1+=\$2
10682 }'
10683else
10684 as_fn_append ()
10685 {
10686 eval $1=\$$1\$2
10687 }
10688fi # as_fn_append
10689
10690# as_fn_arith ARG...
10691# ------------------
10692# Perform arithmetic evaluation on the ARGs, and store the result in the
10693# global $as_val. Take advantage of shells that can avoid forks. The arguments
10694# must be portable across $(()) and expr.
10695if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10696 eval 'as_fn_arith ()
10697 {
10698 as_val=$(( $* ))
10699 }'
10700else
10701 as_fn_arith ()
10702 {
10703 as_val=`expr "$@" || test $? -eq 1`
10704 }
10705fi # as_fn_arith
10706
10707
10708if expr a : '\(a\)' >/dev/null 2>&1 &&
10709 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10710 as_expr=expr
10711else
10712 as_expr=false
10713fi
10714
10715if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10716 as_basename=basename
10717else
10718 as_basename=false
10719fi
10720
10721if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10722 as_dirname=dirname
10723else
10724 as_dirname=false
10725fi
10726
10727as_me=`$as_basename -- "$0" ||
10728$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10729 X"$0" : 'X\(//\)$' \| \
10730 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10731$as_echo X/"$0" |
10732 sed '/^.*\/\([^/][^/]*\)\/*$/{
10733 s//\1/
10734 q
10735 }
10736 /^X\/\(\/\/\)$/{
10737 s//\1/
10738 q
10739 }
10740 /^X\/\(\/\).*/{
10741 s//\1/
10742 q
10743 }
10744 s/.*/./; q'`
10745
10746# Avoid depending upon Character Ranges.
10747as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10748as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10749as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10750as_cr_digits='0123456789'
10751as_cr_alnum=$as_cr_Letters$as_cr_digits
10752
10753ECHO_C= ECHO_N= ECHO_T=
10754case `echo -n x` in #(((((
10755-n*)
10756 case `echo 'xy\c'` in
10757 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10758 xy) ECHO_C='\c';;
10759 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10760 ECHO_T=' ';;
10761 esac;;
10762*)
10763 ECHO_N='-n';;
10764esac
10765
10766rm -f conf$$ conf$$.exe conf$$.file
10767if test -d conf$$.dir; then
10768 rm -f conf$$.dir/conf$$.file
10769else
10770 rm -f conf$$.dir
10771 mkdir conf$$.dir 2>/dev/null
10772fi
10773if (echo >conf$$.file) 2>/dev/null; then
10774 if ln -s conf$$.file conf$$ 2>/dev/null; then
10775 as_ln_s='ln -s'
10776 # ... but there are two gotchas:
10777 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10778 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8d7d268f 10779 # In both cases, we have to default to `cp -p'.
d9f356c5 10780 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8d7d268f 10781 as_ln_s='cp -p'
d9f356c5
MS
10782 elif ln conf$$.file conf$$ 2>/dev/null; then
10783 as_ln_s=ln
10784 else
8d7d268f 10785 as_ln_s='cp -p'
d9f356c5
MS
10786 fi
10787else
8d7d268f 10788 as_ln_s='cp -p'
d9f356c5
MS
10789fi
10790rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10791rmdir conf$$.dir 2>/dev/null
10792
10793
10794# as_fn_mkdir_p
10795# -------------
10796# Create "$as_dir" as a directory, including parents if necessary.
10797as_fn_mkdir_p ()
10798{
10799
10800 case $as_dir in #(
10801 -*) as_dir=./$as_dir;;
10802 esac
10803 test -d "$as_dir" || eval $as_mkdir_p || {
10804 as_dirs=
10805 while :; do
10806 case $as_dir in #(
10807 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10808 *) as_qdir=$as_dir;;
10809 esac
10810 as_dirs="'$as_qdir' $as_dirs"
10811 as_dir=`$as_dirname -- "$as_dir" ||
10812$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10813 X"$as_dir" : 'X\(//\)[^/]' \| \
10814 X"$as_dir" : 'X\(//\)$' \| \
10815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10816$as_echo X"$as_dir" |
10817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10818 s//\1/
10819 q
10820 }
10821 /^X\(\/\/\)[^/].*/{
10822 s//\1/
10823 q
10824 }
10825 /^X\(\/\/\)$/{
10826 s//\1/
10827 q
10828 }
10829 /^X\(\/\).*/{
10830 s//\1/
10831 q
10832 }
10833 s/.*/./; q'`
10834 test -d "$as_dir" && break
10835 done
10836 test -z "$as_dirs" || eval "mkdir $as_dirs"
10837 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10838
10839
10840} # as_fn_mkdir_p
10841if mkdir -p . 2>/dev/null; then
10842 as_mkdir_p='mkdir -p "$as_dir"'
10843else
10844 test -d ./-p && rmdir ./-p
10845 as_mkdir_p=false
10846fi
10847
8d7d268f
MS
10848if test -x / >/dev/null 2>&1; then
10849 as_test_x='test -x'
10850else
10851 if ls -dL / >/dev/null 2>&1; then
10852 as_ls_L_option=L
10853 else
10854 as_ls_L_option=
10855 fi
10856 as_test_x='
10857 eval sh -c '\''
10858 if test -d "$1"; then
10859 test -d "$1/.";
10860 else
10861 case $1 in #(
10862 -*)set "./$1";;
10863 esac;
10864 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10865 ???[sx]*):;;*)false;;esac;fi
10866 '\'' sh
10867 '
10868fi
10869as_executable_p=$as_test_x
d9f356c5
MS
10870
10871# Sed expression to map a string onto a valid CPP name.
10872as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10873
10874# Sed expression to map a string onto a valid variable name.
10875as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10876
10877
10878exec 6>&1
10879## ----------------------------------- ##
10880## Main body of $CONFIG_STATUS script. ##
10881## ----------------------------------- ##
10882_ASEOF
10883test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10884
10885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10886# Save the log message, to keep $0 and so on meaningful, and to
10887# report actual input values of CONFIG_FILES etc. instead of their
10888# values after options handling.
10889ac_log="
105922ec 10890This file was extended by CUPS $as_me 2.2.4, which was
8d7d268f 10891generated by GNU Autoconf 2.68. Invocation command line was
d9f356c5
MS
10892
10893 CONFIG_FILES = $CONFIG_FILES
10894 CONFIG_HEADERS = $CONFIG_HEADERS
10895 CONFIG_LINKS = $CONFIG_LINKS
10896 CONFIG_COMMANDS = $CONFIG_COMMANDS
10897 $ $0 $@
10898
10899on `(hostname || uname -n) 2>/dev/null | sed 1q`
10900"
10901
10902_ACEOF
10903
10904case $ac_config_files in *"
10905"*) set x $ac_config_files; shift; ac_config_files=$*;;
10906esac
10907
10908case $ac_config_headers in *"
10909"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10910esac
10911
10912
10913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10914# Files that config.status was made for.
10915config_files="$ac_config_files"
10916config_headers="$ac_config_headers"
10917
10918_ACEOF
10919
10920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10921ac_cs_usage="\
10922\`$as_me' instantiates files and other configuration actions
10923from templates according to the current configuration. Unless the files
10924and actions are specified as TAGs, all are instantiated by default.
10925
10926Usage: $0 [OPTION]... [TAG]...
10927
10928 -h, --help print this help, then exit
10929 -V, --version print version number and configuration settings, then exit
10930 --config print configuration, then exit
10931 -q, --quiet, --silent
10932 do not print progress messages
10933 -d, --debug don't remove temporary files
10934 --recheck update $as_me by reconfiguring in the same conditions
10935 --file=FILE[:TEMPLATE]
10936 instantiate the configuration file FILE
10937 --header=FILE[:TEMPLATE]
10938 instantiate the configuration header FILE
10939
10940Configuration files:
10941$config_files
10942
10943Configuration headers:
10944$config_headers
10945
24343173 10946Report bugs to <https://github.com/apple/cups/issues>.
d9f356c5
MS
10947CUPS home page: <https://www.cups.org/>."
10948
10949_ACEOF
10950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10951ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10952ac_cs_version="\\
105922ec 10953CUPS config.status 2.2.4
8d7d268f 10954configured by $0, generated by GNU Autoconf 2.68,
d9f356c5
MS
10955 with options \\"\$ac_cs_config\\"
10956
8d7d268f 10957Copyright (C) 2010 Free Software Foundation, Inc.
d9f356c5
MS
10958This config.status script is free software; the Free Software Foundation
10959gives unlimited permission to copy, distribute and modify it."
10960
10961ac_pwd='$ac_pwd'
10962srcdir='$srcdir'
10963AWK='$AWK'
10964test -n "\$AWK" || AWK=awk
10965_ACEOF
10966
10967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10968# The default lists apply if the user does not specify any file.
10969ac_need_defaults=:
10970while test $# != 0
10971do
10972 case $1 in
10973 --*=?*)
10974 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10975 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10976 ac_shift=:
10977 ;;
10978 --*=)
10979 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10980 ac_optarg=
10981 ac_shift=:
10982 ;;
10983 *)
10984 ac_option=$1
10985 ac_optarg=$2
10986 ac_shift=shift
10987 ;;
10988 esac
10989
10990 case $ac_option in
10991 # Handling of the options.
10992 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10993 ac_cs_recheck=: ;;
10994 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10995 $as_echo "$ac_cs_version"; exit ;;
10996 --config | --confi | --conf | --con | --co | --c )
10997 $as_echo "$ac_cs_config"; exit ;;
10998 --debug | --debu | --deb | --de | --d | -d )
10999 debug=: ;;
11000 --file | --fil | --fi | --f )
11001 $ac_shift
11002 case $ac_optarg in
11003 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11004 '') as_fn_error $? "missing file argument" ;;
11005 esac
11006 as_fn_append CONFIG_FILES " '$ac_optarg'"
11007 ac_need_defaults=false;;
11008 --header | --heade | --head | --hea )
11009 $ac_shift
11010 case $ac_optarg in
11011 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11012 esac
11013 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11014 ac_need_defaults=false;;
11015 --he | --h)
11016 # Conflict between --help and --header
11017 as_fn_error $? "ambiguous option: \`$1'
11018Try \`$0 --help' for more information.";;
11019 --help | --hel | -h )
11020 $as_echo "$ac_cs_usage"; exit ;;
11021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11022 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11023 ac_cs_silent=: ;;
11024
11025 # This is an error.
11026 -*) as_fn_error $? "unrecognized option: \`$1'
11027Try \`$0 --help' for more information." ;;
11028
11029 *) as_fn_append ac_config_targets " $1"
11030 ac_need_defaults=false ;;
11031
11032 esac
11033 shift
11034done
11035
11036ac_configure_extra_args=
11037
11038if $ac_cs_silent; then
11039 exec 6>/dev/null
11040 ac_configure_extra_args="$ac_configure_extra_args --silent"
11041fi
11042
11043_ACEOF
11044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11045if \$ac_cs_recheck; then
8d7d268f 11046 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9f356c5
MS
11047 shift
11048 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11049 CONFIG_SHELL='$SHELL'
11050 export CONFIG_SHELL
11051 exec "\$@"
11052fi
11053
11054_ACEOF
11055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11056exec 5>>config.log
11057{
11058 echo
11059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11060## Running $as_me. ##
11061_ASBOX
11062 $as_echo "$ac_log"
11063} >&5
11064
11065_ACEOF
11066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11067_ACEOF
11068
11069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11070
11071# Handling of arguments.
11072for ac_config_target in $ac_config_targets
11073do
11074 case $ac_config_target in
11075 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11076 "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;;
11077 "conf/cups-files.conf") CONFIG_FILES="$CONFIG_FILES conf/cups-files.conf" ;;
11078 "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;;
11079 "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;;
11080 "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;;
11081 "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;;
11082 "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;;
11083 "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;;
11084 "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;;
11085 "man/client.conf.man") CONFIG_FILES="$CONFIG_FILES man/client.conf.man" ;;
11086 "man/cups-files.conf.man") CONFIG_FILES="$CONFIG_FILES man/cups-files.conf.man" ;;
11087 "man/cups-lpd.man") CONFIG_FILES="$CONFIG_FILES man/cups-lpd.man" ;;
11088 "man/cups-snmp.man") CONFIG_FILES="$CONFIG_FILES man/cups-snmp.man" ;;
11089 "man/cupsaddsmb.man") CONFIG_FILES="$CONFIG_FILES man/cupsaddsmb.man" ;;
11090 "man/cupsd.conf.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.conf.man" ;;
11091 "man/cupsd.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.man" ;;
11092 "man/lpoptions.man") CONFIG_FILES="$CONFIG_FILES man/lpoptions.man" ;;
11093 "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
11094 "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;;
11095 "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;;
11096 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
11097 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
11098 "scheduler/org.cups.cupsd.path") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
11099 "scheduler/org.cups.cupsd.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
11100 "scheduler/org.cups.cupsd.socket") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
11101 "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;;
11102 "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;;
11103 "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;;
11104
11105 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11106 esac
11107done
11108
11109
11110# If the user did not use the arguments to specify the items to instantiate,
11111# then the envvar interface is used. Set only those that are not.
11112# We use the long form for the default assignment because of an extremely
11113# bizarre bug on SunOS 4.1.3.
11114if $ac_need_defaults; then
11115 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11116 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11117fi
11118
11119# Have a temporary directory for convenience. Make it in the build tree
11120# simply because there is no reason against having it here, and in addition,
11121# creating and moving files from /tmp can sometimes cause problems.
11122# Hook for its removal unless debugging.
11123# Note that there is a small window in which the directory will not be cleaned:
11124# after its creation but before its name has been assigned to `$tmp'.
11125$debug ||
11126{
11127 tmp= ac_tmp=
11128 trap 'exit_status=$?
11129 : "${ac_tmp:=$tmp}"
11130 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11131' 0
11132 trap 'as_fn_exit 1' 1 2 13 15
11133}
11134# Create a (secure) tmp directory for tmp files.
11135
11136{
11137 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11138 test -d "$tmp"
11139} ||
11140{
11141 tmp=./conf$$-$RANDOM
11142 (umask 077 && mkdir "$tmp")
11143} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11144ac_tmp=$tmp
11145
11146# Set up the scripts for CONFIG_FILES section.
11147# No need to generate them if there are no CONFIG_FILES.
11148# This happens for instance with `./config.status config.h'.
11149if test -n "$CONFIG_FILES"; then
11150
11151
11152ac_cr=`echo X | tr X '\015'`
11153# On cygwin, bash can eat \r inside `` if the user requested igncr.
11154# But we know of no other shell where ac_cr would be empty at this
11155# point, so we can use a bashism as a fallback.
11156if test "x$ac_cr" = x; then
11157 eval ac_cr=\$\'\\r\'
11158fi
11159ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11160if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11161 ac_cs_awk_cr='\\r'
11162else
11163 ac_cs_awk_cr=$ac_cr
11164fi
11165
11166echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11167_ACEOF
11168
11169
11170{
11171 echo "cat >conf$$subs.awk <<_ACEOF" &&
11172 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11173 echo "_ACEOF"
11174} >conf$$subs.sh ||
11175 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11176ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11177ac_delim='%!_!# '
11178for ac_last_try in false false false false false :; do
11179 . ./conf$$subs.sh ||
11180 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11181
11182 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11183 if test $ac_delim_n = $ac_delim_num; then
11184 break
11185 elif $ac_last_try; then
11186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11187 else
11188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11189 fi
11190done
11191rm -f conf$$subs.sh
11192
11193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11194cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11195_ACEOF
11196sed -n '
11197h
11198s/^/S["/; s/!.*/"]=/
11199p
11200g
11201s/^[^!]*!//
11202:repl
11203t repl
11204s/'"$ac_delim"'$//
11205t delim
11206:nl
11207h
11208s/\(.\{148\}\)..*/\1/
11209t more1
11210s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11211p
11212n
11213b repl
11214:more1
11215s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11216p
11217g
11218s/.\{148\}//
11219t nl
11220:delim
11221h
11222s/\(.\{148\}\)..*/\1/
11223t more2
11224s/["\\]/\\&/g; s/^/"/; s/$/"/
11225p
11226b
11227:more2
11228s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11229p
11230g
11231s/.\{148\}//
11232t delim
11233' <conf$$subs.awk | sed '
11234/^[^""]/{
11235 N
11236 s/\n//
11237}
11238' >>$CONFIG_STATUS || ac_write_fail=1
11239rm -f conf$$subs.awk
11240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11241_ACAWK
11242cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11243 for (key in S) S_is_set[key] = 1
11244 FS = "\a"
11245
11246}
11247{
11248 line = $ 0
11249 nfields = split(line, field, "@")
11250 substed = 0
11251 len = length(field[1])
11252 for (i = 2; i < nfields; i++) {
11253 key = field[i]
11254 keylen = length(key)
11255 if (S_is_set[key]) {
11256 value = S[key]
11257 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11258 len += length(value) + length(field[++i])
11259 substed = 1
11260 } else
11261 len += 1 + keylen
11262 }
11263
11264 print line
11265}
11266
11267_ACAWK
11268_ACEOF
11269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11270if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11271 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11272else
11273 cat
11274fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11275 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11276_ACEOF
11277
11278# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11279# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11280# trailing colons and then remove the whole line if VPATH becomes empty
11281# (actually we leave an empty line to preserve line numbers).
11282if test "x$srcdir" = x.; then
11283 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11284h
11285s///
11286s/^/:/
11287s/[ ]*$/:/
11288s/:\$(srcdir):/:/g
11289s/:\${srcdir}:/:/g
11290s/:@srcdir@:/:/g
11291s/^:*//
11292s/:*$//
11293x
11294s/\(=[ ]*\).*/\1/
11295G
11296s/\n//
11297s/^[^=]*=[ ]*$//
11298}'
11299fi
11300
11301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11302fi # test -n "$CONFIG_FILES"
11303
11304# Set up the scripts for CONFIG_HEADERS section.
11305# No need to generate them if there are no CONFIG_HEADERS.
11306# This happens for instance with `./config.status Makefile'.
11307if test -n "$CONFIG_HEADERS"; then
11308cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11309BEGIN {
11310_ACEOF
11311
11312# Transform confdefs.h into an awk script `defines.awk', embedded as
11313# here-document in config.status, that substitutes the proper values into
11314# config.h.in to produce config.h.
11315
11316# Create a delimiter string that does not exist in confdefs.h, to ease
11317# handling of long lines.
11318ac_delim='%!_!# '
11319for ac_last_try in false false :; do
11320 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11321 if test -z "$ac_tt"; then
11322 break
11323 elif $ac_last_try; then
11324 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11325 else
11326 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11327 fi
11328done
11329
11330# For the awk script, D is an array of macro values keyed by name,
11331# likewise P contains macro parameters if any. Preserve backslash
11332# newline sequences.
11333
11334ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11335sed -n '
11336s/.\{148\}/&'"$ac_delim"'/g
11337t rset
11338:rset
11339s/^[ ]*#[ ]*define[ ][ ]*/ /
11340t def
11341d
11342:def
11343s/\\$//
11344t bsnl
11345s/["\\]/\\&/g
11346s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11347D["\1"]=" \3"/p
11348s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11349d
11350:bsnl
11351s/["\\]/\\&/g
11352s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11353D["\1"]=" \3\\\\\\n"\\/p
11354t cont
11355s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11356t cont
11357d
11358:cont
11359n
11360s/.\{148\}/&'"$ac_delim"'/g
11361t clear
11362:clear
11363s/\\$//
11364t bsnlc
11365s/["\\]/\\&/g; s/^/"/; s/$/"/p
11366d
11367:bsnlc
11368s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11369b cont
11370' <confdefs.h | sed '
11371s/'"$ac_delim"'/"\\\
11372"/g' >>$CONFIG_STATUS || ac_write_fail=1
11373
11374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11375 for (key in D) D_is_set[key] = 1
11376 FS = "\a"
11377}
11378/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11379 line = \$ 0
11380 split(line, arg, " ")
11381 if (arg[1] == "#") {
11382 defundef = arg[2]
11383 mac1 = arg[3]
11384 } else {
11385 defundef = substr(arg[1], 2)
11386 mac1 = arg[2]
11387 }
11388 split(mac1, mac2, "(") #)
11389 macro = mac2[1]
11390 prefix = substr(line, 1, index(line, defundef) - 1)
11391 if (D_is_set[macro]) {
11392 # Preserve the white space surrounding the "#".
11393 print prefix "define", macro P[macro] D[macro]
11394 next
11395 } else {
11396 # Replace #undef with comments. This is necessary, for example,
11397 # in the case of _POSIX_SOURCE, which is predefined and required
11398 # on some systems where configure will not decide to define it.
11399 if (defundef == "undef") {
11400 print "/*", prefix defundef, macro, "*/"
11401 next
11402 }
11403 }
11404}
11405{ print }
11406_ACAWK
11407_ACEOF
11408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11409 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11410fi # test -n "$CONFIG_HEADERS"
11411
11412
11413eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11414shift
11415for ac_tag
11416do
11417 case $ac_tag in
11418 :[FHLC]) ac_mode=$ac_tag; continue;;
11419 esac
11420 case $ac_mode$ac_tag in
11421 :[FHL]*:*);;
11422 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11423 :[FH]-) ac_tag=-:-;;
11424 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11425 esac
11426 ac_save_IFS=$IFS
11427 IFS=:
11428 set x $ac_tag
11429 IFS=$ac_save_IFS
11430 shift
11431 ac_file=$1
11432 shift
11433
11434 case $ac_mode in
11435 :L) ac_source=$1;;
11436 :[FH])
11437 ac_file_inputs=
11438 for ac_f
11439 do
11440 case $ac_f in
11441 -) ac_f="$ac_tmp/stdin";;
11442 *) # Look for the file first in the build tree, then in the source tree
11443 # (if the path is not absolute). The absolute path cannot be DOS-style,
11444 # because $ac_f cannot contain `:'.
11445 test -f "$ac_f" ||
11446 case $ac_f in
11447 [\\/$]*) false;;
11448 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11449 esac ||
11450 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11451 esac
11452 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11453 as_fn_append ac_file_inputs " '$ac_f'"
11454 done
11455
11456 # Let's still pretend it is `configure' which instantiates (i.e., don't
11457 # use $as_me), people would be surprised to read:
11458 # /* config.h. Generated by config.status. */
11459 configure_input='Generated from '`
11460 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11461 `' by configure.'
11462 if test x"$ac_file" != x-; then
11463 configure_input="$ac_file. $configure_input"
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11465$as_echo "$as_me: creating $ac_file" >&6;}
11466 fi
11467 # Neutralize special characters interpreted by sed in replacement strings.
11468 case $configure_input in #(
11469 *\&* | *\|* | *\\* )
11470 ac_sed_conf_input=`$as_echo "$configure_input" |
11471 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11472 *) ac_sed_conf_input=$configure_input;;
11473 esac
11474
11475 case $ac_tag in
11476 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11477 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11478 esac
11479 ;;
11480 esac
11481
11482 ac_dir=`$as_dirname -- "$ac_file" ||
11483$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11484 X"$ac_file" : 'X\(//\)[^/]' \| \
11485 X"$ac_file" : 'X\(//\)$' \| \
11486 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11487$as_echo X"$ac_file" |
11488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11489 s//\1/
11490 q
11491 }
11492 /^X\(\/\/\)[^/].*/{
11493 s//\1/
11494 q
11495 }
11496 /^X\(\/\/\)$/{
11497 s//\1/
11498 q
11499 }
11500 /^X\(\/\).*/{
11501 s//\1/
11502 q
11503 }
11504 s/.*/./; q'`
11505 as_dir="$ac_dir"; as_fn_mkdir_p
11506 ac_builddir=.
11507
11508case "$ac_dir" in
11509.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11510*)
11511 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11512 # A ".." for each directory in $ac_dir_suffix.
11513 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11514 case $ac_top_builddir_sub in
11515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11517 esac ;;
11518esac
11519ac_abs_top_builddir=$ac_pwd
11520ac_abs_builddir=$ac_pwd$ac_dir_suffix
11521# for backward compatibility:
11522ac_top_builddir=$ac_top_build_prefix
11523
11524case $srcdir in
11525 .) # We are building in place.
11526 ac_srcdir=.
11527 ac_top_srcdir=$ac_top_builddir_sub
11528 ac_abs_top_srcdir=$ac_pwd ;;
11529 [\\/]* | ?:[\\/]* ) # Absolute name.
11530 ac_srcdir=$srcdir$ac_dir_suffix;
11531 ac_top_srcdir=$srcdir
11532 ac_abs_top_srcdir=$srcdir ;;
11533 *) # Relative name.
11534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11535 ac_top_srcdir=$ac_top_build_prefix$srcdir
11536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11537esac
11538ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11539
11540
11541 case $ac_mode in
11542 :F)
11543 #
11544 # CONFIG_FILE
11545 #
11546
11547_ACEOF
11548
11549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11550# If the template does not know about datarootdir, expand it.
11551# FIXME: This hack should be removed a few years after 2.60.
11552ac_datarootdir_hack=; ac_datarootdir_seen=
11553ac_sed_dataroot='
11554/datarootdir/ {
11555 p
11556 q
11557}
11558/@datadir@/p
11559/@docdir@/p
11560/@infodir@/p
11561/@localedir@/p
11562/@mandir@/p'
11563case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11564*datarootdir*) ac_datarootdir_seen=yes;;
11565*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11567$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11568_ACEOF
11569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11570 ac_datarootdir_hack='
11571 s&@datadir@&$datadir&g
11572 s&@docdir@&$docdir&g
11573 s&@infodir@&$infodir&g
11574 s&@localedir@&$localedir&g
11575 s&@mandir@&$mandir&g
11576 s&\\\${datarootdir}&$datarootdir&g' ;;
11577esac
11578_ACEOF
11579
11580# Neutralize VPATH when `$srcdir' = `.'.
11581# Shell code in configure.ac might set extrasub.
11582# FIXME: do we really want to maintain this feature?
11583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11584ac_sed_extra="$ac_vpsub
11585$extrasub
11586_ACEOF
11587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11588:t
11589/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11590s|@configure_input@|$ac_sed_conf_input|;t t
11591s&@top_builddir@&$ac_top_builddir_sub&;t t
11592s&@top_build_prefix@&$ac_top_build_prefix&;t t
11593s&@srcdir@&$ac_srcdir&;t t
11594s&@abs_srcdir@&$ac_abs_srcdir&;t t
11595s&@top_srcdir@&$ac_top_srcdir&;t t
11596s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11597s&@builddir@&$ac_builddir&;t t
11598s&@abs_builddir@&$ac_abs_builddir&;t t
11599s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11600$ac_datarootdir_hack
11601"
11602eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11603 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11604
11605test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11606 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11607 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11608 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11610which seems to be undefined. Please make sure it is defined" >&5
11611$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11612which seems to be undefined. Please make sure it is defined" >&2;}
11613
11614 rm -f "$ac_tmp/stdin"
11615 case $ac_file in
11616 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11617 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11618 esac \
11619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11620 ;;
11621 :H)
11622 #
11623 # CONFIG_HEADER
11624 #
11625 if test x"$ac_file" != x-; then
11626 {
11627 $as_echo "/* $configure_input */" \
11628 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11629 } >"$ac_tmp/config.h" \
11630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11631 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11633$as_echo "$as_me: $ac_file is unchanged" >&6;}
11634 else
11635 rm -f "$ac_file"
11636 mv "$ac_tmp/config.h" "$ac_file" \
11637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11638 fi
11639 else
11640 $as_echo "/* $configure_input */" \
11641 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11642 || as_fn_error $? "could not create -" "$LINENO" 5
11643 fi
11644 ;;
11645
11646
11647 esac
11648
11649done # for ac_tag
11650
11651
11652as_fn_exit 0
11653_ACEOF
11654ac_clean_files=$ac_clean_files_save
11655
11656test $ac_write_fail = 0 ||
11657 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11658
11659
11660# configure is writing to config.log, and then calls config.status.
11661# config.status does its own redirection, appending to config.log.
11662# Unfortunately, on DOS this fails, as config.log is still kept open
11663# by configure, so config.status won't be able to write to it; its
11664# output is simply discarded. So we exec the FD to /dev/null,
11665# effectively closing config.log, so it can be properly (re)opened and
11666# appended to by config.status. When coming back to configure, we
11667# need to make the FD available again.
11668if test "$no_create" != yes; then
11669 ac_cs_success=:
11670 ac_config_status_args=
11671 test "$silent" = yes &&
11672 ac_config_status_args="$ac_config_status_args --quiet"
11673 exec 5>/dev/null
11674 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11675 exec 5>>config.log
11676 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11677 # would make configure fail if this is the last instruction.
11678 $ac_cs_success || as_fn_exit 1
11679fi
11680if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11682$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11683fi
11684
11685
11686chmod +x cups-config