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