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