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