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