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