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