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