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