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