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