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