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