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