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