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