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