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