]>
Commit | Line | Data |
---|---|---|
61515785 MS |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.68. | |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
8 | # Foundation, Inc. | |
9 | # | |
10 | # | |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
13 | ## -------------------- ## | |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
16 | ||
17 | # Be more Bourne compatible | |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 | emulate sh | |
21 | NULLCMD=: | |
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 | # is contrary to our usage. Disable this feature. | |
24 | alias -g '${1+"$@"}'='"$@"' | |
25 | setopt NO_GLOB_SUBST | |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
33 | fi | |
34 | ||
35 | ||
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
81 | fi | |
82 | ||
83 | ||
84 | # IFS | |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
92 | as_myself= | |
93 | case $0 in #(( | |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
124 | PS1='$ ' | |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
129 | LC_ALL=C | |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
137 | if test "x$CONFIG_SHELL" = x; then | |
138 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
139 | emulate sh | |
140 | NULLCMD=: | |
141 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
142 | # is contrary to our usage. Disable this feature. | |
143 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
144 | setopt NO_GLOB_SUBST | |
145 | else | |
146 | case \`(set -o) 2>/dev/null\` in #( | |
147 | *posix*) : | |
148 | set -o posix ;; #( | |
149 | *) : | |
150 | ;; | |
151 | esac | |
152 | fi | |
153 | " | |
154 | as_required="as_fn_return () { (exit \$1); } | |
155 | as_fn_success () { as_fn_return 0; } | |
156 | as_fn_failure () { as_fn_return 1; } | |
157 | as_fn_ret_success () { return 0; } | |
158 | as_fn_ret_failure () { return 1; } | |
159 | ||
160 | exitcode=0 | |
161 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
162 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
163 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
164 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
165 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
166 | ||
167 | else | |
168 | exitcode=1; echo positional parameters were not saved. | |
169 | fi | |
170 | test x\$exitcode = x0 || exit 1" | |
171 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
172 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
173 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
174 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
175 | test \$(( 1 + 1 )) = 2 || exit 1" | |
176 | if (eval "$as_required") 2>/dev/null; then : | |
177 | as_have_required=yes | |
178 | else | |
179 | as_have_required=no | |
180 | fi | |
181 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
182 | ||
183 | else | |
184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
185 | as_found=false | |
186 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
187 | do | |
188 | IFS=$as_save_IFS | |
189 | test -z "$as_dir" && as_dir=. | |
190 | as_found=: | |
191 | case $as_dir in #( | |
192 | /*) | |
193 | for as_base in sh bash ksh sh5; do | |
194 | # Try only shells that exist, to save several forks. | |
195 | as_shell=$as_dir/$as_base | |
196 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
197 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
198 | CONFIG_SHELL=$as_shell as_have_required=yes | |
199 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
200 | break 2 | |
201 | fi | |
202 | fi | |
203 | done;; | |
204 | esac | |
205 | as_found=false | |
206 | done | |
207 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
208 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
209 | CONFIG_SHELL=$SHELL as_have_required=yes | |
210 | fi; } | |
211 | IFS=$as_save_IFS | |
212 | ||
213 | ||
214 | if test "x$CONFIG_SHELL" != x; then : | |
215 | # We cannot yet assume a decent shell, so we have to provide a | |
216 | # neutralization value for shells without unset; and this also | |
217 | # works around shells that cannot unset nonexistent variables. | |
218 | # Preserve -v and -x to the replacement shell. | |
219 | BASH_ENV=/dev/null | |
220 | ENV=/dev/null | |
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
222 | export CONFIG_SHELL | |
223 | case $- in # (((( | |
224 | *v*x* | *x*v* ) as_opts=-vx ;; | |
225 | *v* ) as_opts=-v ;; | |
226 | *x* ) as_opts=-x ;; | |
227 | * ) as_opts= ;; | |
228 | esac | |
229 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
230 | fi | |
231 | ||
232 | if test x$as_have_required = xno; then : | |
233 | $as_echo "$0: This script requires a shell more modern than all" | |
234 | $as_echo "$0: the shells that I found on your system." | |
235 | if test x${ZSH_VERSION+set} = xset ; then | |
236 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
237 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
238 | else | |
239 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
240 | $0: including any error possibly output before this | |
241 | $0: message. Then install a modern shell, or manually run | |
242 | $0: the script under such a shell if you do have one." | |
243 | fi | |
244 | exit 1 | |
245 | fi | |
246 | fi | |
247 | fi | |
248 | SHELL=${CONFIG_SHELL-/bin/sh} | |
249 | export SHELL | |
250 | # Unset more variables known to interfere with behavior of common tools. | |
251 | CLICOLOR_FORCE= GREP_OPTIONS= | |
252 | unset CLICOLOR_FORCE GREP_OPTIONS | |
253 | ||
254 | ## --------------------- ## | |
255 | ## M4sh Shell Functions. ## | |
256 | ## --------------------- ## | |
257 | # as_fn_unset VAR | |
258 | # --------------- | |
259 | # Portably unset VAR. | |
260 | as_fn_unset () | |
261 | { | |
262 | { eval $1=; unset $1;} | |
263 | } | |
264 | as_unset=as_fn_unset | |
265 | ||
266 | # as_fn_set_status STATUS | |
267 | # ----------------------- | |
268 | # Set $? to STATUS, without forking. | |
269 | as_fn_set_status () | |
270 | { | |
271 | return $1 | |
272 | } # as_fn_set_status | |
273 | ||
274 | # as_fn_exit STATUS | |
275 | # ----------------- | |
276 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
277 | as_fn_exit () | |
278 | { | |
279 | set +e | |
280 | as_fn_set_status $1 | |
281 | exit $1 | |
282 | } # as_fn_exit | |
283 | ||
284 | # as_fn_mkdir_p | |
285 | # ------------- | |
286 | # Create "$as_dir" as a directory, including parents if necessary. | |
287 | as_fn_mkdir_p () | |
288 | { | |
289 | ||
290 | case $as_dir in #( | |
291 | -*) as_dir=./$as_dir;; | |
292 | esac | |
293 | test -d "$as_dir" || eval $as_mkdir_p || { | |
294 | as_dirs= | |
295 | while :; do | |
296 | case $as_dir in #( | |
297 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
298 | *) as_qdir=$as_dir;; | |
299 | esac | |
300 | as_dirs="'$as_qdir' $as_dirs" | |
301 | as_dir=`$as_dirname -- "$as_dir" || | |
302 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
303 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
304 | X"$as_dir" : 'X\(//\)$' \| \ | |
305 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
306 | $as_echo X"$as_dir" | | |
307 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
308 | s//\1/ | |
309 | q | |
310 | } | |
311 | /^X\(\/\/\)[^/].*/{ | |
312 | s//\1/ | |
313 | q | |
314 | } | |
315 | /^X\(\/\/\)$/{ | |
316 | s//\1/ | |
317 | q | |
318 | } | |
319 | /^X\(\/\).*/{ | |
320 | s//\1/ | |
321 | q | |
322 | } | |
323 | s/.*/./; q'` | |
324 | test -d "$as_dir" && break | |
325 | done | |
326 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
327 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
328 | ||
329 | ||
330 | } # as_fn_mkdir_p | |
331 | # as_fn_append VAR VALUE | |
332 | # ---------------------- | |
333 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
334 | # advantage of any shell optimizations that allow amortized linear growth over | |
335 | # repeated appends, instead of the typical quadratic growth present in naive | |
336 | # implementations. | |
337 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
338 | eval 'as_fn_append () | |
339 | { | |
340 | eval $1+=\$2 | |
341 | }' | |
342 | else | |
343 | as_fn_append () | |
344 | { | |
345 | eval $1=\$$1\$2 | |
346 | } | |
347 | fi # as_fn_append | |
348 | ||
349 | # as_fn_arith ARG... | |
350 | # ------------------ | |
351 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
352 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
353 | # must be portable across $(()) and expr. | |
354 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
355 | eval 'as_fn_arith () | |
356 | { | |
357 | as_val=$(( $* )) | |
358 | }' | |
359 | else | |
360 | as_fn_arith () | |
361 | { | |
362 | as_val=`expr "$@" || test $? -eq 1` | |
363 | } | |
364 | fi # as_fn_arith | |
365 | ||
366 | ||
367 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
368 | # ---------------------------------------- | |
369 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
370 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
371 | # script with STATUS, using 1 if that was 0. | |
372 | as_fn_error () | |
373 | { | |
374 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
375 | if test "$4"; then | |
376 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
377 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
378 | fi | |
379 | $as_echo "$as_me: error: $2" >&2 | |
380 | as_fn_exit $as_status | |
381 | } # as_fn_error | |
382 | ||
383 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
384 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
385 | as_expr=expr | |
386 | else | |
387 | as_expr=false | |
388 | fi | |
389 | ||
390 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
391 | as_basename=basename | |
392 | else | |
393 | as_basename=false | |
394 | fi | |
395 | ||
396 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
397 | as_dirname=dirname | |
398 | else | |
399 | as_dirname=false | |
400 | fi | |
401 | ||
402 | as_me=`$as_basename -- "$0" || | |
403 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
404 | X"$0" : 'X\(//\)$' \| \ | |
405 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
406 | $as_echo X/"$0" | | |
407 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
408 | s//\1/ | |
409 | q | |
410 | } | |
411 | /^X\/\(\/\/\)$/{ | |
412 | s//\1/ | |
413 | q | |
414 | } | |
415 | /^X\/\(\/\).*/{ | |
416 | s//\1/ | |
417 | q | |
418 | } | |
419 | s/.*/./; q'` | |
420 | ||
421 | # Avoid depending upon Character Ranges. | |
422 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
423 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
424 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
425 | as_cr_digits='0123456789' | |
426 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
427 | ||
428 | ||
429 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
430 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
431 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
432 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
433 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
434 | sed -n ' | |
435 | p | |
436 | /[$]LINENO/= | |
437 | ' <$as_myself | | |
438 | sed ' | |
439 | s/[$]LINENO.*/&-/ | |
440 | t lineno | |
441 | b | |
442 | :lineno | |
443 | N | |
444 | :loop | |
445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
446 | t loop | |
447 | s/-\n.*// | |
448 | ' >$as_me.lineno && | |
449 | chmod +x "$as_me.lineno" || | |
450 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
451 | ||
452 | # Don't try to exec as it changes $[0], causing all sort of problems | |
453 | # (the dirname of $[0] is not the place where we might find the | |
454 | # original and so on. Autoconf is especially sensitive to this). | |
455 | . "./$as_me.lineno" | |
456 | # Exit status is that of the last command. | |
457 | exit | |
458 | } | |
459 | ||
460 | ECHO_C= ECHO_N= ECHO_T= | |
461 | case `echo -n x` in #((((( | |
462 | -n*) | |
463 | case `echo 'xy\c'` in | |
464 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
465 | xy) ECHO_C='\c';; | |
466 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
467 | ECHO_T=' ';; | |
468 | esac;; | |
469 | *) | |
470 | ECHO_N='-n';; | |
471 | esac | |
472 | ||
473 | rm -f conf$$ conf$$.exe conf$$.file | |
474 | if test -d conf$$.dir; then | |
475 | rm -f conf$$.dir/conf$$.file | |
476 | else | |
477 | rm -f conf$$.dir | |
478 | mkdir conf$$.dir 2>/dev/null | |
479 | fi | |
480 | if (echo >conf$$.file) 2>/dev/null; then | |
481 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
482 | as_ln_s='ln -s' | |
483 | # ... but there are two gotchas: | |
484 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
485 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
486 | # In both cases, we have to default to `cp -p'. | |
487 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
488 | as_ln_s='cp -p' | |
489 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
490 | as_ln_s=ln | |
491 | else | |
492 | as_ln_s='cp -p' | |
493 | fi | |
494 | else | |
495 | as_ln_s='cp -p' | |
496 | fi | |
497 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
498 | rmdir conf$$.dir 2>/dev/null | |
499 | ||
500 | if mkdir -p . 2>/dev/null; then | |
501 | as_mkdir_p='mkdir -p "$as_dir"' | |
502 | else | |
503 | test -d ./-p && rmdir ./-p | |
504 | as_mkdir_p=false | |
505 | fi | |
506 | ||
507 | if test -x / >/dev/null 2>&1; then | |
508 | as_test_x='test -x' | |
509 | else | |
510 | if ls -dL / >/dev/null 2>&1; then | |
511 | as_ls_L_option=L | |
512 | else | |
513 | as_ls_L_option= | |
514 | fi | |
515 | as_test_x=' | |
516 | eval sh -c '\'' | |
517 | if test -d "$1"; then | |
518 | test -d "$1/."; | |
519 | else | |
520 | case $1 in #( | |
521 | -*)set "./$1";; | |
522 | esac; | |
523 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
524 | ???[sx]*):;;*)false;;esac;fi | |
525 | '\'' sh | |
526 | ' | |
527 | fi | |
528 | as_executable_p=$as_test_x | |
529 | ||
530 | # Sed expression to map a string onto a valid CPP name. | |
531 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
532 | ||
533 | # Sed expression to map a string onto a valid variable name. | |
534 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
535 | ||
536 | ||
537 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
538 | exec 6>&1 | |
539 | ||
540 | # Name of the host. | |
541 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
542 | # so uname gets run too. | |
543 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
544 | ||
545 | # | |
546 | # Initializations. | |
547 | # | |
548 | ac_default_prefix=/usr/local | |
549 | ac_clean_files= | |
550 | ac_config_libobj_dir=. | |
551 | LIBOBJS= | |
552 | cross_compiling=no | |
553 | subdirs= | |
554 | MFLAGS= | |
555 | MAKEFLAGS= | |
556 | ||
557 | # Identity of this package. | |
558 | PACKAGE_NAME= | |
559 | PACKAGE_TARNAME= | |
560 | PACKAGE_VERSION= | |
561 | PACKAGE_STRING= | |
562 | PACKAGE_BUGREPORT= | |
563 | PACKAGE_URL= | |
564 | ||
565 | ac_unique_file="cups/cups.h" | |
566 | # Factoring default headers for most tests. | |
567 | ac_includes_default="\ | |
568 | #include <stdio.h> | |
569 | #ifdef HAVE_SYS_TYPES_H | |
570 | # include <sys/types.h> | |
571 | #endif | |
572 | #ifdef HAVE_SYS_STAT_H | |
573 | # include <sys/stat.h> | |
574 | #endif | |
575 | #ifdef STDC_HEADERS | |
576 | # include <stdlib.h> | |
577 | # include <stddef.h> | |
578 | #else | |
579 | # ifdef HAVE_STDLIB_H | |
580 | # include <stdlib.h> | |
581 | # endif | |
582 | #endif | |
583 | #ifdef HAVE_STRING_H | |
584 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
585 | # include <memory.h> | |
586 | # endif | |
587 | # include <string.h> | |
588 | #endif | |
589 | #ifdef HAVE_STRINGS_H | |
590 | # include <strings.h> | |
591 | #endif | |
592 | #ifdef HAVE_INTTYPES_H | |
593 | # include <inttypes.h> | |
594 | #endif | |
595 | #ifdef HAVE_STDINT_H | |
596 | # include <stdint.h> | |
597 | #endif | |
598 | #ifdef HAVE_UNISTD_H | |
599 | # include <unistd.h> | |
600 | #endif" | |
601 | ||
602 | ac_default_prefix=/ | |
603 | ac_subst_vars='LTLIBOBJS | |
604 | LIBOBJS | |
605 | UNINSTALL_LANGUAGES | |
606 | INSTALL_LANGUAGES | |
607 | PYTHON | |
608 | PHP | |
609 | PHPCGI | |
610 | PERL | |
611 | JAVA | |
612 | CUPS_WEBIF | |
613 | DEFAULT_IPP_PORT | |
614 | CUPS_SNMP_COMMUNITY | |
615 | CUPS_SNMP_ADDRESS | |
616 | DEFAULT_RAW_PRINTING | |
617 | CUPS_MAX_COPIES | |
618 | CUPS_DEFAULT_SMB_CONFIG_FILE | |
619 | CUPS_DEFAULT_LPD_CONFIG_FILE | |
620 | CUPS_DEFAULT_PRINTCAP | |
621 | CUPS_PRIMARY_SYSTEM_GROUP | |
622 | CUPS_SYSTEM_GROUPS | |
623 | CUPS_GROUP | |
624 | CUPS_USER | |
625 | CUPS_DEFAULT_SHARED | |
626 | CUPS_BROWSE_LOCAL_PROTOCOLS | |
627 | CUPS_BROWSING | |
1a18c85c | 628 | CUPS_PAGE_LOG_FORMAT |
61515785 MS |
629 | CUPS_ACCESS_LOG_LEVEL |
630 | CUPS_LOG_LEVEL | |
631 | CUPS_FATAL_ERRORS | |
632 | CUPS_LOG_FILE_PERM | |
633 | CUPS_CUPSD_FILE_PERM | |
634 | CUPS_CONFIG_FILE_PERM | |
635 | CUPS_BUNDLEDIR | |
636 | LANGUAGES | |
1a18c85c MS |
637 | XINETD |
638 | RCSTOP | |
639 | RCSTART | |
640 | RCLEVELS | |
641 | INITDDIR | |
642 | INITDIR | |
643 | SMFMANIFESTDIR | |
644 | SYSTEMD_DIR | |
645 | LAUNCHD_DIR | |
646 | ONDEMANDLIBS | |
647 | ONDEMANDFLAGS | |
61515785 MS |
648 | IPPFIND_MAN |
649 | IPPFIND_BIN | |
650 | DNSSD_BACKEND | |
651 | DNSSDLIBS | |
652 | LARGEFILE | |
653 | PAMMODAUTH | |
654 | PAMMOD | |
655 | PAMLIBS | |
656 | PAMFILE | |
657 | PAMDIR | |
658 | EXPORT_SSLLIBS | |
659 | SSLLIBS | |
660 | SSLFLAGS | |
661 | IPPALIASES | |
662 | CUPS_SERVERKEY | |
663 | CUPS_SERVERCERT | |
664 | LIBGCRYPTCONFIG | |
665 | LIBGNUTLSCONFIG | |
666 | PTHREAD_FLAGS | |
667 | CUPS_DEFAULT_GSSSERVICENAME | |
668 | KRB5CONFIG | |
669 | LIBGSSAPI | |
670 | CUPS_LISTEN_DOMAINSOCKET | |
671 | CUPS_DEFAULT_DOMAINSOCKET | |
672 | RELROFLAGS | |
673 | PIEFLAGS | |
674 | CXXLIBS | |
675 | LDARCHFLAGS | |
676 | ARCHFLAGS | |
677 | UNITTESTS | |
678 | OPTIM | |
679 | INSTALL_STRIP | |
680 | LIBTOOL | |
681 | EXPORT_LDFLAGS | |
682 | IMGLIBS | |
683 | DSOLIBS | |
684 | LINKCUPSIMAGE | |
685 | LINKCUPS | |
686 | EXTLINKCUPSIMAGE | |
687 | EXTLINKCUPS | |
688 | LIBCUPSSTATIC | |
689 | LIBCUPSPPDC | |
690 | LIBCUPSMIME | |
691 | LIBCUPSIMAGE | |
692 | LIBCUPSCGI | |
693 | LIBCUPSBASE | |
694 | LIBCUPS | |
695 | DSOFLAGS | |
696 | DSOXX | |
697 | DSO | |
698 | MAN8DIR | |
699 | MAN8EXT | |
700 | MAN7EXT | |
701 | MAN5EXT | |
702 | MAN1EXT | |
703 | PMANDIR | |
704 | AMANDIR | |
705 | CUPS_STATEDIR | |
706 | CUPS_SERVERROOT | |
707 | INSTALL_SYSV | |
708 | CUPS_SERVERBIN | |
709 | CUPS_REQUESTS | |
710 | CUPS_LOGDIR | |
711 | CUPS_LOCALEDIR | |
712 | CUPS_FONTPATH | |
713 | CUPS_DOCROOT | |
714 | MENUDIR | |
715 | ICONDIR | |
716 | CUPS_DATADIR | |
717 | CUPS_CACHEDIR | |
61515785 MS |
718 | PRIVATEINCLUDE |
719 | privateinclude | |
720 | BUILDDIRS | |
721 | INSTALLXPC | |
722 | CUPS_SYSTEM_AUTHKEY | |
723 | CUPS_DEFAULT_PRINTOPERATOR_AUTH | |
724 | DBUS_NOTIFIERLIBS | |
725 | DBUS_NOTIFIER | |
726 | DBUSDIR | |
727 | SERVERLIBS | |
728 | BACKLIBS | |
729 | ARFLAGS | |
730 | LIBZ | |
731 | INSTALL_GZIP | |
732 | LIBWRAP | |
733 | USBQUIRKS | |
734 | LIBUSB | |
735 | LIBMXML | |
736 | EGREP | |
737 | GREP | |
738 | LIBPAPER | |
739 | LIBMALLOC | |
740 | PKGCONFIG | |
741 | INSTALLSTATIC | |
742 | INSTALL | |
743 | CUPS_HTMLVIEW | |
744 | XDGOPEN | |
745 | SED | |
746 | RMDIR | |
747 | RM | |
748 | MV | |
749 | LN | |
750 | LD | |
751 | GZIP | |
752 | CHMOD | |
753 | AR | |
754 | RANLIB | |
755 | ac_ct_CXX | |
756 | CXXFLAGS | |
757 | CXX | |
758 | CPP | |
759 | OBJEXT | |
760 | EXEEXT | |
761 | ac_ct_CC | |
762 | CPPFLAGS | |
763 | LDFLAGS | |
764 | CFLAGS | |
765 | CC | |
766 | AWK | |
767 | CUPS_BUILD | |
768 | CUPS_REVISION | |
769 | CUPS_VERSION | |
770 | target_alias | |
771 | host_alias | |
772 | build_alias | |
773 | LIBS | |
774 | ECHO_T | |
775 | ECHO_N | |
776 | ECHO_C | |
777 | DEFS | |
778 | mandir | |
779 | localedir | |
780 | libdir | |
781 | psdir | |
782 | pdfdir | |
783 | dvidir | |
784 | htmldir | |
785 | infodir | |
786 | docdir | |
787 | oldincludedir | |
788 | includedir | |
789 | localstatedir | |
790 | sharedstatedir | |
791 | sysconfdir | |
792 | datadir | |
793 | datarootdir | |
794 | libexecdir | |
795 | sbindir | |
796 | bindir | |
797 | program_transform_name | |
798 | prefix | |
799 | exec_prefix | |
800 | PACKAGE_URL | |
801 | PACKAGE_BUGREPORT | |
802 | PACKAGE_STRING | |
803 | PACKAGE_VERSION | |
804 | PACKAGE_TARNAME | |
805 | PACKAGE_NAME | |
806 | PATH_SEPARATOR | |
807 | SHELL' | |
808 | ac_subst_files='' | |
809 | ac_user_opts=' | |
810 | enable_option_checking | |
811 | with_cups_build | |
812 | enable_static | |
813 | enable_mallinfo | |
814 | enable_libpaper | |
815 | enable_libusb | |
816 | enable_tcp_wrappers | |
817 | enable_acl | |
818 | enable_dbus | |
819 | with_dbusdir | |
820 | with_adminkey | |
821 | with_operkey | |
822 | with_components | |
823 | with_privateinclude | |
61515785 MS |
824 | with_lpdconfig |
825 | with_smbconfig | |
826 | with_cachedir | |
827 | with_icondir | |
828 | with_menudir | |
829 | with_docdir | |
830 | with_fontpath | |
831 | with_logdir | |
832 | with_rundir | |
833 | enable_shared | |
834 | enable_libtool_unsupported | |
835 | with_optim | |
836 | enable_debug | |
837 | enable_debug_guards | |
838 | enable_debug_printfs | |
839 | enable_unit_tests | |
840 | with_archflags | |
841 | with_ldarchflags | |
842 | enable_relro | |
843 | with_domainsocket | |
844 | enable_gssapi | |
845 | with_gssservicename | |
846 | enable_threads | |
847 | enable_ssl | |
848 | enable_cdsassl | |
849 | enable_gnutls | |
61515785 MS |
850 | enable_pam |
851 | with_pam_module | |
852 | enable_largefile | |
853 | enable_avahi | |
854 | enable_dnssd | |
855 | with_dnssd_libs | |
856 | with_dnssd_includes | |
857 | enable_launchd | |
1a18c85c MS |
858 | enable_systemd |
859 | with_systemd | |
860 | with_smfmanifestdir | |
861 | with_rcdir | |
862 | with_rclevels | |
863 | with_rcstart | |
864 | with_rcstop | |
865 | with_xinetd | |
61515785 MS |
866 | with_languages |
867 | with_bundledir | |
868 | with_config_file_perm | |
869 | with_cupsd_file_perm | |
870 | with_log_file_perm | |
871 | with_fatal_errors | |
872 | with_log_level | |
873 | with_access_log_level | |
1a18c85c | 874 | with_page_logging |
61515785 MS |
875 | enable_browsing |
876 | with_local_protocols | |
877 | enable_default_shared | |
878 | with_cups_user | |
879 | with_cups_group | |
880 | with_system_groups | |
881 | with_printcap | |
882 | with_lpdconfigfile | |
883 | with_smbconfigfile | |
884 | with_max_copies | |
885 | enable_raw_printing | |
886 | with_snmp_address | |
887 | with_snmp_community | |
888 | with_ipp_port | |
889 | enable_webif | |
890 | with_java | |
891 | with_perl | |
892 | with_php | |
893 | with_python | |
894 | ' | |
895 | ac_precious_vars='build_alias | |
896 | host_alias | |
897 | target_alias | |
898 | CC | |
899 | CFLAGS | |
900 | LDFLAGS | |
901 | LIBS | |
902 | CPPFLAGS | |
903 | CPP | |
904 | CXX | |
905 | CXXFLAGS | |
906 | CCC' | |
907 | ||
908 | ||
909 | # Initialize some variables set by options. | |
910 | ac_init_help= | |
911 | ac_init_version=false | |
912 | ac_unrecognized_opts= | |
913 | ac_unrecognized_sep= | |
914 | # The variables have the same names as the options, with | |
915 | # dashes changed to underlines. | |
916 | cache_file=/dev/null | |
917 | exec_prefix=NONE | |
918 | no_create= | |
919 | no_recursion= | |
920 | prefix=NONE | |
921 | program_prefix=NONE | |
922 | program_suffix=NONE | |
923 | program_transform_name=s,x,x, | |
924 | silent= | |
925 | site= | |
926 | srcdir= | |
927 | verbose= | |
928 | x_includes=NONE | |
929 | x_libraries=NONE | |
930 | ||
931 | # Installation directory options. | |
932 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
933 | # and all the variables that are supposed to be based on exec_prefix | |
934 | # by default will actually change. | |
935 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
936 | # (The list follows the same order as the GNU Coding Standards.) | |
937 | bindir='${exec_prefix}/bin' | |
938 | sbindir='${exec_prefix}/sbin' | |
939 | libexecdir='${exec_prefix}/libexec' | |
940 | datarootdir='${prefix}/share' | |
941 | datadir='${datarootdir}' | |
942 | sysconfdir='${prefix}/etc' | |
943 | sharedstatedir='${prefix}/com' | |
944 | localstatedir='${prefix}/var' | |
945 | includedir='${prefix}/include' | |
946 | oldincludedir='/usr/include' | |
947 | docdir='${datarootdir}/doc/${PACKAGE}' | |
948 | infodir='${datarootdir}/info' | |
949 | htmldir='${docdir}' | |
950 | dvidir='${docdir}' | |
951 | pdfdir='${docdir}' | |
952 | psdir='${docdir}' | |
953 | libdir='${exec_prefix}/lib' | |
954 | localedir='${datarootdir}/locale' | |
955 | mandir='${datarootdir}/man' | |
956 | ||
957 | ac_prev= | |
958 | ac_dashdash= | |
959 | for ac_option | |
960 | do | |
961 | # If the previous option needs an argument, assign it. | |
962 | if test -n "$ac_prev"; then | |
963 | eval $ac_prev=\$ac_option | |
964 | ac_prev= | |
965 | continue | |
966 | fi | |
967 | ||
968 | case $ac_option in | |
969 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
970 | *=) ac_optarg= ;; | |
971 | *) ac_optarg=yes ;; | |
972 | esac | |
973 | ||
974 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
975 | ||
976 | case $ac_dashdash$ac_option in | |
977 | --) | |
978 | ac_dashdash=yes ;; | |
979 | ||
980 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
981 | ac_prev=bindir ;; | |
982 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
983 | bindir=$ac_optarg ;; | |
984 | ||
985 | -build | --build | --buil | --bui | --bu) | |
986 | ac_prev=build_alias ;; | |
987 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
988 | build_alias=$ac_optarg ;; | |
989 | ||
990 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
991 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
992 | ac_prev=cache_file ;; | |
993 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
994 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
995 | cache_file=$ac_optarg ;; | |
996 | ||
997 | --config-cache | -C) | |
998 | cache_file=config.cache ;; | |
999 | ||
1000 | -datadir | --datadir | --datadi | --datad) | |
1001 | ac_prev=datadir ;; | |
1002 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1003 | datadir=$ac_optarg ;; | |
1004 | ||
1005 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1006 | | --dataroo | --dataro | --datar) | |
1007 | ac_prev=datarootdir ;; | |
1008 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1009 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1010 | datarootdir=$ac_optarg ;; | |
1011 | ||
1012 | -disable-* | --disable-*) | |
1013 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1014 | # Reject names that are not valid shell variable names. | |
1015 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1016 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1017 | ac_useropt_orig=$ac_useropt | |
1018 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1019 | case $ac_user_opts in | |
1020 | *" | |
1021 | "enable_$ac_useropt" | |
1022 | "*) ;; | |
1023 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1024 | ac_unrecognized_sep=', ';; | |
1025 | esac | |
1026 | eval enable_$ac_useropt=no ;; | |
1027 | ||
1028 | -docdir | --docdir | --docdi | --doc | --do) | |
1029 | ac_prev=docdir ;; | |
1030 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1031 | docdir=$ac_optarg ;; | |
1032 | ||
1033 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1034 | ac_prev=dvidir ;; | |
1035 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1036 | dvidir=$ac_optarg ;; | |
1037 | ||
1038 | -enable-* | --enable-*) | |
1039 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1040 | # Reject names that are not valid shell variable names. | |
1041 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1042 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1043 | ac_useropt_orig=$ac_useropt | |
1044 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1045 | case $ac_user_opts in | |
1046 | *" | |
1047 | "enable_$ac_useropt" | |
1048 | "*) ;; | |
1049 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1050 | ac_unrecognized_sep=', ';; | |
1051 | esac | |
1052 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1053 | ||
1054 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1055 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1056 | | --exec | --exe | --ex) | |
1057 | ac_prev=exec_prefix ;; | |
1058 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1059 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1060 | | --exec=* | --exe=* | --ex=*) | |
1061 | exec_prefix=$ac_optarg ;; | |
1062 | ||
1063 | -gas | --gas | --ga | --g) | |
1064 | # Obsolete; use --with-gas. | |
1065 | with_gas=yes ;; | |
1066 | ||
1067 | -help | --help | --hel | --he | -h) | |
1068 | ac_init_help=long ;; | |
1069 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1070 | ac_init_help=recursive ;; | |
1071 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1072 | ac_init_help=short ;; | |
1073 | ||
1074 | -host | --host | --hos | --ho) | |
1075 | ac_prev=host_alias ;; | |
1076 | -host=* | --host=* | --hos=* | --ho=*) | |
1077 | host_alias=$ac_optarg ;; | |
1078 | ||
1079 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1080 | ac_prev=htmldir ;; | |
1081 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1082 | | --ht=*) | |
1083 | htmldir=$ac_optarg ;; | |
1084 | ||
1085 | -includedir | --includedir | --includedi | --included | --include \ | |
1086 | | --includ | --inclu | --incl | --inc) | |
1087 | ac_prev=includedir ;; | |
1088 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1089 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1090 | includedir=$ac_optarg ;; | |
1091 | ||
1092 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1093 | ac_prev=infodir ;; | |
1094 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1095 | infodir=$ac_optarg ;; | |
1096 | ||
1097 | -libdir | --libdir | --libdi | --libd) | |
1098 | ac_prev=libdir ;; | |
1099 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1100 | libdir=$ac_optarg ;; | |
1101 | ||
1102 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1103 | | --libexe | --libex | --libe) | |
1104 | ac_prev=libexecdir ;; | |
1105 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1106 | | --libexe=* | --libex=* | --libe=*) | |
1107 | libexecdir=$ac_optarg ;; | |
1108 | ||
1109 | -localedir | --localedir | --localedi | --localed | --locale) | |
1110 | ac_prev=localedir ;; | |
1111 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1112 | localedir=$ac_optarg ;; | |
1113 | ||
1114 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1115 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1116 | ac_prev=localstatedir ;; | |
1117 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1118 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1119 | localstatedir=$ac_optarg ;; | |
1120 | ||
1121 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1122 | ac_prev=mandir ;; | |
1123 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1124 | mandir=$ac_optarg ;; | |
1125 | ||
1126 | -nfp | --nfp | --nf) | |
1127 | # Obsolete; use --without-fp. | |
1128 | with_fp=no ;; | |
1129 | ||
1130 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1131 | | --no-cr | --no-c | -n) | |
1132 | no_create=yes ;; | |
1133 | ||
1134 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1135 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1136 | no_recursion=yes ;; | |
1137 | ||
1138 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1139 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1140 | | --oldin | --oldi | --old | --ol | --o) | |
1141 | ac_prev=oldincludedir ;; | |
1142 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1143 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1144 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1145 | oldincludedir=$ac_optarg ;; | |
1146 | ||
1147 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1148 | ac_prev=prefix ;; | |
1149 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1150 | prefix=$ac_optarg ;; | |
1151 | ||
1152 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1153 | | --program-pre | --program-pr | --program-p) | |
1154 | ac_prev=program_prefix ;; | |
1155 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1156 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1157 | program_prefix=$ac_optarg ;; | |
1158 | ||
1159 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1160 | | --program-suf | --program-su | --program-s) | |
1161 | ac_prev=program_suffix ;; | |
1162 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1163 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1164 | program_suffix=$ac_optarg ;; | |
1165 | ||
1166 | -program-transform-name | --program-transform-name \ | |
1167 | | --program-transform-nam | --program-transform-na \ | |
1168 | | --program-transform-n | --program-transform- \ | |
1169 | | --program-transform | --program-transfor \ | |
1170 | | --program-transfo | --program-transf \ | |
1171 | | --program-trans | --program-tran \ | |
1172 | | --progr-tra | --program-tr | --program-t) | |
1173 | ac_prev=program_transform_name ;; | |
1174 | -program-transform-name=* | --program-transform-name=* \ | |
1175 | | --program-transform-nam=* | --program-transform-na=* \ | |
1176 | | --program-transform-n=* | --program-transform-=* \ | |
1177 | | --program-transform=* | --program-transfor=* \ | |
1178 | | --program-transfo=* | --program-transf=* \ | |
1179 | | --program-trans=* | --program-tran=* \ | |
1180 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1181 | program_transform_name=$ac_optarg ;; | |
1182 | ||
1183 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1184 | ac_prev=pdfdir ;; | |
1185 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1186 | pdfdir=$ac_optarg ;; | |
1187 | ||
1188 | -psdir | --psdir | --psdi | --psd | --ps) | |
1189 | ac_prev=psdir ;; | |
1190 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1191 | psdir=$ac_optarg ;; | |
1192 | ||
1193 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1194 | | -silent | --silent | --silen | --sile | --sil) | |
1195 | silent=yes ;; | |
1196 | ||
1197 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1198 | ac_prev=sbindir ;; | |
1199 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1200 | | --sbi=* | --sb=*) | |
1201 | sbindir=$ac_optarg ;; | |
1202 | ||
1203 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1204 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1205 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1206 | | --sha | --sh) | |
1207 | ac_prev=sharedstatedir ;; | |
1208 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1209 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1210 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1211 | | --sha=* | --sh=*) | |
1212 | sharedstatedir=$ac_optarg ;; | |
1213 | ||
1214 | -site | --site | --sit) | |
1215 | ac_prev=site ;; | |
1216 | -site=* | --site=* | --sit=*) | |
1217 | site=$ac_optarg ;; | |
1218 | ||
1219 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1220 | ac_prev=srcdir ;; | |
1221 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1222 | srcdir=$ac_optarg ;; | |
1223 | ||
1224 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1225 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1226 | ac_prev=sysconfdir ;; | |
1227 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1228 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1229 | sysconfdir=$ac_optarg ;; | |
1230 | ||
1231 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1232 | ac_prev=target_alias ;; | |
1233 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1234 | target_alias=$ac_optarg ;; | |
1235 | ||
1236 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1237 | verbose=yes ;; | |
1238 | ||
1239 | -version | --version | --versio | --versi | --vers | -V) | |
1240 | ac_init_version=: ;; | |
1241 | ||
1242 | -with-* | --with-*) | |
1243 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1244 | # Reject names that are not valid shell variable names. | |
1245 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1246 | as_fn_error $? "invalid package name: $ac_useropt" | |
1247 | ac_useropt_orig=$ac_useropt | |
1248 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1249 | case $ac_user_opts in | |
1250 | *" | |
1251 | "with_$ac_useropt" | |
1252 | "*) ;; | |
1253 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1254 | ac_unrecognized_sep=', ';; | |
1255 | esac | |
1256 | eval with_$ac_useropt=\$ac_optarg ;; | |
1257 | ||
1258 | -without-* | --without-*) | |
1259 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1260 | # Reject names that are not valid shell variable names. | |
1261 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1262 | as_fn_error $? "invalid package name: $ac_useropt" | |
1263 | ac_useropt_orig=$ac_useropt | |
1264 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1265 | case $ac_user_opts in | |
1266 | *" | |
1267 | "with_$ac_useropt" | |
1268 | "*) ;; | |
1269 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1270 | ac_unrecognized_sep=', ';; | |
1271 | esac | |
1272 | eval with_$ac_useropt=no ;; | |
1273 | ||
1274 | --x) | |
1275 | # Obsolete; use --with-x. | |
1276 | with_x=yes ;; | |
1277 | ||
1278 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1279 | | --x-incl | --x-inc | --x-in | --x-i) | |
1280 | ac_prev=x_includes ;; | |
1281 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1282 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1283 | x_includes=$ac_optarg ;; | |
1284 | ||
1285 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1286 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1287 | ac_prev=x_libraries ;; | |
1288 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1289 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1290 | x_libraries=$ac_optarg ;; | |
1291 | ||
1292 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1293 | Try \`$0 --help' for more information" | |
1294 | ;; | |
1295 | ||
1296 | *=*) | |
1297 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1298 | # Reject names that are not valid shell variable names. | |
1299 | case $ac_envvar in #( | |
1300 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1301 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1302 | esac | |
1303 | eval $ac_envvar=\$ac_optarg | |
1304 | export $ac_envvar ;; | |
1305 | ||
1306 | *) | |
1307 | # FIXME: should be removed in autoconf 3.0. | |
1308 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1309 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1310 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1311 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1312 | ;; | |
1313 | ||
1314 | esac | |
1315 | done | |
1316 | ||
1317 | if test -n "$ac_prev"; then | |
1318 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1319 | as_fn_error $? "missing argument to $ac_option" | |
1320 | fi | |
1321 | ||
1322 | if test -n "$ac_unrecognized_opts"; then | |
1323 | case $enable_option_checking in | |
1324 | no) ;; | |
1325 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1326 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1327 | esac | |
1328 | fi | |
1329 | ||
1330 | # Check all directory arguments for consistency. | |
1331 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1332 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1333 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1334 | libdir localedir mandir | |
1335 | do | |
1336 | eval ac_val=\$$ac_var | |
1337 | # Remove trailing slashes. | |
1338 | case $ac_val in | |
1339 | */ ) | |
1340 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1341 | eval $ac_var=\$ac_val;; | |
1342 | esac | |
1343 | # Be sure to have absolute directory names. | |
1344 | case $ac_val in | |
1345 | [\\/$]* | ?:[\\/]* ) continue;; | |
1346 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1347 | esac | |
1348 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1349 | done | |
1350 | ||
1351 | # There might be people who depend on the old broken behavior: `$host' | |
1352 | # used to hold the argument of --host etc. | |
1353 | # FIXME: To remove some day. | |
1354 | build=$build_alias | |
1355 | host=$host_alias | |
1356 | target=$target_alias | |
1357 | ||
1358 | # FIXME: To remove some day. | |
1359 | if test "x$host_alias" != x; then | |
1360 | if test "x$build_alias" = x; then | |
1361 | cross_compiling=maybe | |
1362 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1363 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
1364 | elif test "x$build_alias" != "x$host_alias"; then | |
1365 | cross_compiling=yes | |
1366 | fi | |
1367 | fi | |
1368 | ||
1369 | ac_tool_prefix= | |
1370 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1371 | ||
1372 | test "$silent" = yes && exec 6>/dev/null | |
1373 | ||
1374 | ||
1375 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1376 | ac_ls_di=`ls -di .` && | |
1377 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1378 | as_fn_error $? "working directory cannot be determined" | |
1379 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1380 | as_fn_error $? "pwd does not report name of working directory" | |
1381 | ||
1382 | ||
1383 | # Find the source files, if location was not specified. | |
1384 | if test -z "$srcdir"; then | |
1385 | ac_srcdir_defaulted=yes | |
1386 | # Try the directory containing this script, then the parent directory. | |
1387 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1388 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1389 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1390 | X"$as_myself" : 'X\(//\)$' \| \ | |
1391 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1392 | $as_echo X"$as_myself" | | |
1393 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1394 | s//\1/ | |
1395 | q | |
1396 | } | |
1397 | /^X\(\/\/\)[^/].*/{ | |
1398 | s//\1/ | |
1399 | q | |
1400 | } | |
1401 | /^X\(\/\/\)$/{ | |
1402 | s//\1/ | |
1403 | q | |
1404 | } | |
1405 | /^X\(\/\).*/{ | |
1406 | s//\1/ | |
1407 | q | |
1408 | } | |
1409 | s/.*/./; q'` | |
1410 | srcdir=$ac_confdir | |
1411 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1412 | srcdir=.. | |
1413 | fi | |
1414 | else | |
1415 | ac_srcdir_defaulted=no | |
1416 | fi | |
1417 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1418 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1419 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1420 | fi | |
1421 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1422 | ac_abs_confdir=`( | |
1423 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1424 | pwd)` | |
1425 | # When building in place, set srcdir=. | |
1426 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1427 | srcdir=. | |
1428 | fi | |
1429 | # Remove unnecessary trailing slashes from srcdir. | |
1430 | # Double slashes in file names in object file debugging info | |
1431 | # mess up M-x gdb in Emacs. | |
1432 | case $srcdir in | |
1433 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1434 | esac | |
1435 | for ac_var in $ac_precious_vars; do | |
1436 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1437 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1438 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1439 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1440 | done | |
1441 | ||
1442 | # | |
1443 | # Report the --help message. | |
1444 | # | |
1445 | if test "$ac_init_help" = "long"; then | |
1446 | # Omit some internal or obsolete options to make the list less imposing. | |
1447 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1448 | cat <<_ACEOF | |
1449 | \`configure' configures this package to adapt to many kinds of systems. | |
1450 | ||
1451 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1452 | ||
1453 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1454 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1455 | ||
1456 | Defaults for the options are specified in brackets. | |
1457 | ||
1458 | Configuration: | |
1459 | -h, --help display this help and exit | |
1460 | --help=short display options specific to this package | |
1461 | --help=recursive display the short help of all the included packages | |
1462 | -V, --version display version information and exit | |
1463 | -q, --quiet, --silent do not print \`checking ...' messages | |
1464 | --cache-file=FILE cache test results in FILE [disabled] | |
1465 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1466 | -n, --no-create do not create output files | |
1467 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1468 | ||
1469 | Installation directories: | |
1470 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1471 | [$ac_default_prefix] | |
1472 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1473 | [PREFIX] | |
1474 | ||
1475 | By default, \`make install' will install all the files in | |
1476 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1477 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1478 | for instance \`--prefix=\$HOME'. | |
1479 | ||
1480 | For better control, use the options below. | |
1481 | ||
1482 | Fine tuning of the installation directories: | |
1483 | --bindir=DIR user executables [EPREFIX/bin] | |
1484 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1485 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1486 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1487 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1488 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1489 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1490 | --includedir=DIR C header files [PREFIX/include] | |
1491 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1492 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1493 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1494 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1495 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1496 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1497 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1498 | --htmldir=DIR html documentation [DOCDIR] | |
1499 | --dvidir=DIR dvi documentation [DOCDIR] | |
1500 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1501 | --psdir=DIR ps documentation [DOCDIR] | |
1502 | _ACEOF | |
1503 | ||
1504 | cat <<\_ACEOF | |
1505 | _ACEOF | |
1506 | fi | |
1507 | ||
1508 | if test -n "$ac_init_help"; then | |
1509 | ||
1510 | cat <<\_ACEOF | |
1511 | ||
1512 | Optional Features: | |
1513 | --disable-option-checking ignore unrecognized --enable/--with options | |
1514 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1515 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1516 | --enable-static install static libraries | |
1517 | --enable-mallinfo build with malloc debug logging | |
1518 | --enable-libpaper build with libpaper support | |
1519 | --enable-libusb use libusb for USB printing | |
1520 | --enable-tcp-wrappers use libwrap for TCP wrappers support | |
1521 | --enable-acl build with POSIX ACL support | |
1522 | --disable-dbus build without DBUS support | |
1523 | --disable-shared do not create shared libraries | |
1524 | --enable-libtool-unsupported | |
1525 | build with libtool (UNSUPPORTED!) | |
1526 | --enable-debug build with debugging symbols | |
1527 | --enable-debug-guards build with memory allocation guards | |
1528 | --enable-debug-printfs build with CUPS_DEBUG_LOG support | |
1529 | --enable-unit-tests build and run unit tests | |
1530 | --enable-relro build with the GCC relro option | |
1531 | --disable-gssapi disable GSSAPI support | |
1532 | --disable-threads disable multi-threading support | |
1533 | --disable-ssl disable SSL/TLS support | |
1534 | --enable-cdsassl use CDSA for SSL/TLS support, default=first | |
1535 | --enable-gnutls use GNU TLS for SSL/TLS support, default=second | |
61515785 MS |
1536 | --disable-pam disable PAM support |
1537 | --disable-largefile omit support for large files | |
1538 | --disable-avahi disable DNS Service Discovery support using Avahi | |
1539 | --disable-dnssd disable DNS Service Discovery support using mDNSResponder | |
1540 | --disable-launchd disable launchd support | |
1a18c85c | 1541 | --disable-systemd disable systemd support |
61515785 MS |
1542 | --disable-browsing disable Browsing by default |
1543 | --disable-default-shared | |
1544 | disable DefaultShared by default | |
1545 | --disable-raw-printing do not allow raw printing by default | |
1546 | --enable-webif enable the web interface by default, default=no for OS X | |
1547 | ||
1548 | Optional Packages: | |
1549 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1550 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1551 | --with-cups-build set "cups-config --build" string | |
1552 | --with-dbusdir set DBUS configuration directory | |
1553 | --with-adminkey set the default SystemAuthKey value | |
1554 | --with-operkey set the default operator @AUTHKEY value | |
1555 | --with-components set components to build: | |
1556 | - "all" (default) builds everything | |
1557 | - "core" builds libcups and ipptool | |
1558 | --with-privateinclude set path for private include files, default=none | |
61515785 MS |
1559 | --with-lpdconfig set URI for LPD config file |
1560 | --with-smbconfig set URI for Samba config file | |
1561 | --with-cachedir set path for cache files | |
1562 | --with-icondir set path for application icons | |
1563 | --with-menudir set path for application menus | |
1564 | --with-docdir set path for documentation | |
1565 | --with-fontpath set font path for pstoraster | |
1566 | --with-logdir set path for log files | |
1567 | --with-rundir set transient run-time state directory | |
1568 | --with-optim set optimization flags | |
1569 | --with-archflags set default architecture flags | |
1570 | --with-ldarchflags set program architecture flags | |
1571 | --with-domainsocket set unix domain socket name | |
1572 | --with-gssservicename set default gss service name | |
61515785 MS |
1573 | --with-pam-module specify the PAM module to use |
1574 | --with-dnssd-libs set directory for DNS Service Discovery library | |
1575 | --with-dnssd-includes set directory for DNS Service Discovery includes | |
1a18c85c MS |
1576 | --with-systemd set directory for systemd service files |
1577 | --with-smfmanifestdir set path for Solaris SMF manifest | |
1578 | --with-rcdir set path for rc scripts | |
1579 | --with-rclevels set run levels for rc scripts | |
1580 | --with-rcstart set start number for rc scripts | |
1581 | --with-rcstop set stop number for rc scripts | |
1582 | --with-xinetd set path for xinetd config files | |
61515785 MS |
1583 | --with-languages set installed languages, default=all |
1584 | --with-bundledir set OS X localization bundle directory | |
1585 | --with-config-file-perm set default ConfigFilePerm value, default=0640 | |
1586 | --with-cupsd-file-perm set default cupsd permissions, default=0500 | |
1587 | --with-log-file-perm set default LogFilePerm value, default=0644 | |
1588 | --with-fatal-errors set default FatalErrors value, default=config | |
1589 | --with-log-level set default LogLevel value, default=warn | |
1a18c85c MS |
1590 | --with-access-log-level set default AccessLogLevel value, default=none |
1591 | --enable-page-logging enable page_log by default | |
61515785 MS |
1592 | --with-local-protocols set default BrowseLocalProtocols, default="" |
1593 | --with-cups-user set default user for CUPS | |
1594 | --with-cups-group set default group for CUPS | |
1595 | --with-system-groups set default system groups for CUPS | |
1596 | --with-printcap set default printcap file | |
1597 | --with-lpdconfigfile set default LPDConfigFile URI | |
1598 | --with-smbconfigfile set default SMBConfigFile URI | |
1599 | --with-max-copies set default max copies value, default=9999 | |
1600 | --with-snmp-address set SNMP query address, default=auto | |
1601 | --with-snmp-community set SNMP community, default=public | |
1602 | --with-ipp-port set port number for IPP, default=631 | |
1603 | --with-java set Java interpreter for web interfaces | |
1604 | --with-perl set Perl interpreter for web interfaces | |
1605 | --with-php set PHP interpreter for web interfaces | |
1606 | --with-python set Python interpreter for web interfaces | |
1607 | ||
1608 | Some influential environment variables: | |
1609 | CC C compiler command | |
1610 | CFLAGS C compiler flags | |
1611 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1612 | nonstandard directory <lib dir> | |
1613 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1614 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1615 | you have headers in a nonstandard directory <include dir> | |
1616 | CPP C preprocessor | |
1617 | CXX C++ compiler command | |
1618 | CXXFLAGS C++ compiler flags | |
1619 | ||
1620 | Use these variables to override the choices made by `configure' or to help | |
1621 | it to find libraries and programs with nonstandard names/locations. | |
1622 | ||
1623 | Report bugs to the package provider. | |
1624 | _ACEOF | |
1625 | ac_status=$? | |
1626 | fi | |
1627 | ||
1628 | if test "$ac_init_help" = "recursive"; then | |
1629 | # If there are subdirs, report their specific --help. | |
1630 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1631 | test -d "$ac_dir" || | |
1632 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1633 | continue | |
1634 | ac_builddir=. | |
1635 | ||
1636 | case "$ac_dir" in | |
1637 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1638 | *) | |
1639 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1640 | # A ".." for each directory in $ac_dir_suffix. | |
1641 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1642 | case $ac_top_builddir_sub in | |
1643 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1644 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1645 | esac ;; | |
1646 | esac | |
1647 | ac_abs_top_builddir=$ac_pwd | |
1648 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1649 | # for backward compatibility: | |
1650 | ac_top_builddir=$ac_top_build_prefix | |
1651 | ||
1652 | case $srcdir in | |
1653 | .) # We are building in place. | |
1654 | ac_srcdir=. | |
1655 | ac_top_srcdir=$ac_top_builddir_sub | |
1656 | ac_abs_top_srcdir=$ac_pwd ;; | |
1657 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1658 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1659 | ac_top_srcdir=$srcdir | |
1660 | ac_abs_top_srcdir=$srcdir ;; | |
1661 | *) # Relative name. | |
1662 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1663 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1664 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1665 | esac | |
1666 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1667 | ||
1668 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1669 | # Check for guested configure. | |
1670 | if test -f "$ac_srcdir/configure.gnu"; then | |
1671 | echo && | |
1672 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1673 | elif test -f "$ac_srcdir/configure"; then | |
1674 | echo && | |
1675 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1676 | else | |
1677 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1678 | fi || ac_status=$? | |
1679 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1680 | done | |
1681 | fi | |
1682 | ||
1683 | test -n "$ac_init_help" && exit $ac_status | |
1684 | if $ac_init_version; then | |
1685 | cat <<\_ACEOF | |
1686 | configure | |
1687 | generated by GNU Autoconf 2.68 | |
1688 | ||
1689 | Copyright (C) 2010 Free Software Foundation, Inc. | |
1690 | This configure script is free software; the Free Software Foundation | |
1691 | gives unlimited permission to copy, distribute and modify it. | |
1692 | _ACEOF | |
1693 | exit | |
1694 | fi | |
1695 | ||
1696 | ## ------------------------ ## | |
1697 | ## Autoconf initialization. ## | |
1698 | ## ------------------------ ## | |
1699 | ||
1700 | # ac_fn_c_try_compile LINENO | |
1701 | # -------------------------- | |
1702 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1703 | ac_fn_c_try_compile () | |
1704 | { | |
1705 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1706 | rm -f conftest.$ac_objext | |
1707 | if { { ac_try="$ac_compile" | |
1708 | case "(($ac_try" in | |
1709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1710 | *) ac_try_echo=$ac_try;; | |
1711 | esac | |
1712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1713 | $as_echo "$ac_try_echo"; } >&5 | |
1714 | (eval "$ac_compile") 2>conftest.err | |
1715 | ac_status=$? | |
1716 | if test -s conftest.err; then | |
1717 | grep -v '^ *+' conftest.err >conftest.er1 | |
1718 | cat conftest.er1 >&5 | |
1719 | mv -f conftest.er1 conftest.err | |
1720 | fi | |
1721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1722 | test $ac_status = 0; } && { | |
1723 | test -z "$ac_c_werror_flag" || | |
1724 | test ! -s conftest.err | |
1725 | } && test -s conftest.$ac_objext; then : | |
1726 | ac_retval=0 | |
1727 | else | |
1728 | $as_echo "$as_me: failed program was:" >&5 | |
1729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1730 | ||
1731 | ac_retval=1 | |
1732 | fi | |
1733 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1734 | as_fn_set_status $ac_retval | |
1735 | ||
1736 | } # ac_fn_c_try_compile | |
1737 | ||
1738 | # ac_fn_c_try_cpp LINENO | |
1739 | # ---------------------- | |
1740 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1741 | ac_fn_c_try_cpp () | |
1742 | { | |
1743 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1744 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1745 | case "(($ac_try" in | |
1746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1747 | *) ac_try_echo=$ac_try;; | |
1748 | esac | |
1749 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1750 | $as_echo "$ac_try_echo"; } >&5 | |
1751 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1752 | ac_status=$? | |
1753 | if test -s conftest.err; then | |
1754 | grep -v '^ *+' conftest.err >conftest.er1 | |
1755 | cat conftest.er1 >&5 | |
1756 | mv -f conftest.er1 conftest.err | |
1757 | fi | |
1758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1759 | test $ac_status = 0; } > conftest.i && { | |
1760 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1761 | test ! -s conftest.err | |
1762 | }; then : | |
1763 | ac_retval=0 | |
1764 | else | |
1765 | $as_echo "$as_me: failed program was:" >&5 | |
1766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1767 | ||
1768 | ac_retval=1 | |
1769 | fi | |
1770 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1771 | as_fn_set_status $ac_retval | |
1772 | ||
1773 | } # ac_fn_c_try_cpp | |
1774 | ||
1775 | # ac_fn_cxx_try_compile LINENO | |
1776 | # ---------------------------- | |
1777 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1778 | ac_fn_cxx_try_compile () | |
1779 | { | |
1780 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1781 | rm -f conftest.$ac_objext | |
1782 | if { { ac_try="$ac_compile" | |
1783 | case "(($ac_try" in | |
1784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1785 | *) ac_try_echo=$ac_try;; | |
1786 | esac | |
1787 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1788 | $as_echo "$ac_try_echo"; } >&5 | |
1789 | (eval "$ac_compile") 2>conftest.err | |
1790 | ac_status=$? | |
1791 | if test -s conftest.err; then | |
1792 | grep -v '^ *+' conftest.err >conftest.er1 | |
1793 | cat conftest.er1 >&5 | |
1794 | mv -f conftest.er1 conftest.err | |
1795 | fi | |
1796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1797 | test $ac_status = 0; } && { | |
1798 | test -z "$ac_cxx_werror_flag" || | |
1799 | test ! -s conftest.err | |
1800 | } && test -s conftest.$ac_objext; then : | |
1801 | ac_retval=0 | |
1802 | else | |
1803 | $as_echo "$as_me: failed program was:" >&5 | |
1804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1805 | ||
1806 | ac_retval=1 | |
1807 | fi | |
1808 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1809 | as_fn_set_status $ac_retval | |
1810 | ||
1811 | } # ac_fn_cxx_try_compile | |
1812 | ||
1813 | # ac_fn_c_try_link LINENO | |
1814 | # ----------------------- | |
1815 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1816 | ac_fn_c_try_link () | |
1817 | { | |
1818 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1819 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1820 | if { { ac_try="$ac_link" | |
1821 | case "(($ac_try" in | |
1822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1823 | *) ac_try_echo=$ac_try;; | |
1824 | esac | |
1825 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1826 | $as_echo "$ac_try_echo"; } >&5 | |
1827 | (eval "$ac_link") 2>conftest.err | |
1828 | ac_status=$? | |
1829 | if test -s conftest.err; then | |
1830 | grep -v '^ *+' conftest.err >conftest.er1 | |
1831 | cat conftest.er1 >&5 | |
1832 | mv -f conftest.er1 conftest.err | |
1833 | fi | |
1834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1835 | test $ac_status = 0; } && { | |
1836 | test -z "$ac_c_werror_flag" || | |
1837 | test ! -s conftest.err | |
1838 | } && test -s conftest$ac_exeext && { | |
1839 | test "$cross_compiling" = yes || | |
1840 | $as_test_x conftest$ac_exeext | |
1841 | }; then : | |
1842 | ac_retval=0 | |
1843 | else | |
1844 | $as_echo "$as_me: failed program was:" >&5 | |
1845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1846 | ||
1847 | ac_retval=1 | |
1848 | fi | |
1849 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1850 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1851 | # interfere with the next link command; also delete a directory that is | |
1852 | # left behind by Apple's compiler. We do this before executing the actions. | |
1853 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1854 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1855 | as_fn_set_status $ac_retval | |
1856 | ||
1857 | } # ac_fn_c_try_link | |
1858 | ||
1859 | # ac_fn_c_try_run LINENO | |
1860 | # ---------------------- | |
1861 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1862 | # that executables *can* be run. | |
1863 | ac_fn_c_try_run () | |
1864 | { | |
1865 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1866 | if { { ac_try="$ac_link" | |
1867 | case "(($ac_try" in | |
1868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1869 | *) ac_try_echo=$ac_try;; | |
1870 | esac | |
1871 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1872 | $as_echo "$ac_try_echo"; } >&5 | |
1873 | (eval "$ac_link") 2>&5 | |
1874 | ac_status=$? | |
1875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1876 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1877 | { { case "(($ac_try" in | |
1878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1879 | *) ac_try_echo=$ac_try;; | |
1880 | esac | |
1881 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1882 | $as_echo "$ac_try_echo"; } >&5 | |
1883 | (eval "$ac_try") 2>&5 | |
1884 | ac_status=$? | |
1885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1886 | test $ac_status = 0; }; }; then : | |
1887 | ac_retval=0 | |
1888 | else | |
1889 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1890 | $as_echo "$as_me: failed program was:" >&5 | |
1891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1892 | ||
1893 | ac_retval=$ac_status | |
1894 | fi | |
1895 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1896 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1897 | as_fn_set_status $ac_retval | |
1898 | ||
1899 | } # ac_fn_c_try_run | |
1900 | ||
1901 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1902 | # ------------------------------------------------------- | |
1903 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1904 | # the include files in INCLUDES and setting the cache variable VAR | |
1905 | # accordingly. | |
1906 | ac_fn_c_check_header_mongrel () | |
1907 | { | |
1908 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1909 | if eval \${$3+:} false; then : | |
1910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1911 | $as_echo_n "checking for $2... " >&6; } | |
1912 | if eval \${$3+:} false; then : | |
1913 | $as_echo_n "(cached) " >&6 | |
1914 | fi | |
1915 | eval ac_res=\$$3 | |
1916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1917 | $as_echo "$ac_res" >&6; } | |
1918 | else | |
1919 | # Is the header compilable? | |
1920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1921 | $as_echo_n "checking $2 usability... " >&6; } | |
1922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1923 | /* end confdefs.h. */ | |
1924 | $4 | |
1925 | #include <$2> | |
1926 | _ACEOF | |
1927 | if ac_fn_c_try_compile "$LINENO"; then : | |
1928 | ac_header_compiler=yes | |
1929 | else | |
1930 | ac_header_compiler=no | |
1931 | fi | |
1932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1934 | $as_echo "$ac_header_compiler" >&6; } | |
1935 | ||
1936 | # Is the header present? | |
1937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1938 | $as_echo_n "checking $2 presence... " >&6; } | |
1939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1940 | /* end confdefs.h. */ | |
1941 | #include <$2> | |
1942 | _ACEOF | |
1943 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1944 | ac_header_preproc=yes | |
1945 | else | |
1946 | ac_header_preproc=no | |
1947 | fi | |
1948 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1950 | $as_echo "$ac_header_preproc" >&6; } | |
1951 | ||
1952 | # So? What about this header? | |
1953 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1954 | yes:no: ) | |
1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1956 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1957 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1958 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1959 | ;; | |
1960 | no:yes:* ) | |
1961 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1962 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1963 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1964 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1965 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1966 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1968 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1969 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1970 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1971 | ;; | |
1972 | esac | |
1973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1974 | $as_echo_n "checking for $2... " >&6; } | |
1975 | if eval \${$3+:} false; then : | |
1976 | $as_echo_n "(cached) " >&6 | |
1977 | else | |
1978 | eval "$3=\$ac_header_compiler" | |
1979 | fi | |
1980 | eval ac_res=\$$3 | |
1981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1982 | $as_echo "$ac_res" >&6; } | |
1983 | fi | |
1984 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1985 | ||
1986 | } # ac_fn_c_check_header_mongrel | |
1987 | ||
1988 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1989 | # ------------------------------------------------------- | |
1990 | # Tests whether HEADER exists and can be compiled using the include files in | |
1991 | # INCLUDES, setting the cache variable VAR accordingly. | |
1992 | ac_fn_c_check_header_compile () | |
1993 | { | |
1994 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1996 | $as_echo_n "checking for $2... " >&6; } | |
1997 | if eval \${$3+:} false; then : | |
1998 | $as_echo_n "(cached) " >&6 | |
1999 | else | |
2000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2001 | /* end confdefs.h. */ | |
2002 | $4 | |
2003 | #include <$2> | |
2004 | _ACEOF | |
2005 | if ac_fn_c_try_compile "$LINENO"; then : | |
2006 | eval "$3=yes" | |
2007 | else | |
2008 | eval "$3=no" | |
2009 | fi | |
2010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2011 | fi | |
2012 | eval ac_res=\$$3 | |
2013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2014 | $as_echo "$ac_res" >&6; } | |
2015 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2016 | ||
2017 | } # ac_fn_c_check_header_compile | |
2018 | ||
2019 | # ac_fn_c_check_func LINENO FUNC VAR | |
2020 | # ---------------------------------- | |
2021 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2022 | ac_fn_c_check_func () | |
2023 | { | |
2024 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2026 | $as_echo_n "checking for $2... " >&6; } | |
2027 | if eval \${$3+:} false; then : | |
2028 | $as_echo_n "(cached) " >&6 | |
2029 | else | |
2030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2031 | /* end confdefs.h. */ | |
2032 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2033 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2034 | #define $2 innocuous_$2 | |
2035 | ||
2036 | /* System header to define __stub macros and hopefully few prototypes, | |
2037 | which can conflict with char $2 (); below. | |
2038 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2039 | <limits.h> exists even on freestanding compilers. */ | |
2040 | ||
2041 | #ifdef __STDC__ | |
2042 | # include <limits.h> | |
2043 | #else | |
2044 | # include <assert.h> | |
2045 | #endif | |
2046 | ||
2047 | #undef $2 | |
2048 | ||
2049 | /* Override any GCC internal prototype to avoid an error. | |
2050 | Use char because int might match the return type of a GCC | |
2051 | builtin and then its argument prototype would still apply. */ | |
2052 | #ifdef __cplusplus | |
2053 | extern "C" | |
2054 | #endif | |
2055 | char $2 (); | |
2056 | /* The GNU C library defines this for functions which it implements | |
2057 | to always fail with ENOSYS. Some functions are actually named | |
2058 | something starting with __ and the normal name is an alias. */ | |
2059 | #if defined __stub_$2 || defined __stub___$2 | |
2060 | choke me | |
2061 | #endif | |
2062 | ||
2063 | int | |
2064 | main () | |
2065 | { | |
2066 | return $2 (); | |
2067 | ; | |
2068 | return 0; | |
2069 | } | |
2070 | _ACEOF | |
2071 | if ac_fn_c_try_link "$LINENO"; then : | |
2072 | eval "$3=yes" | |
2073 | else | |
2074 | eval "$3=no" | |
2075 | fi | |
2076 | rm -f core conftest.err conftest.$ac_objext \ | |
2077 | conftest$ac_exeext conftest.$ac_ext | |
2078 | fi | |
2079 | eval ac_res=\$$3 | |
2080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2081 | $as_echo "$ac_res" >&6; } | |
2082 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2083 | ||
2084 | } # ac_fn_c_check_func | |
2085 | ||
2086 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2087 | # ---------------------------------------------------- | |
2088 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2089 | # INCLUDES, setting cache variable VAR accordingly. | |
2090 | ac_fn_c_check_member () | |
2091 | { | |
2092 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2094 | $as_echo_n "checking for $2.$3... " >&6; } | |
2095 | if eval \${$4+:} false; then : | |
2096 | $as_echo_n "(cached) " >&6 | |
2097 | else | |
2098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2099 | /* end confdefs.h. */ | |
2100 | $5 | |
2101 | int | |
2102 | main () | |
2103 | { | |
2104 | static $2 ac_aggr; | |
2105 | if (ac_aggr.$3) | |
2106 | return 0; | |
2107 | ; | |
2108 | return 0; | |
2109 | } | |
2110 | _ACEOF | |
2111 | if ac_fn_c_try_compile "$LINENO"; then : | |
2112 | eval "$4=yes" | |
2113 | else | |
2114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2115 | /* end confdefs.h. */ | |
2116 | $5 | |
2117 | int | |
2118 | main () | |
2119 | { | |
2120 | static $2 ac_aggr; | |
2121 | if (sizeof ac_aggr.$3) | |
2122 | return 0; | |
2123 | ; | |
2124 | return 0; | |
2125 | } | |
2126 | _ACEOF | |
2127 | if ac_fn_c_try_compile "$LINENO"; then : | |
2128 | eval "$4=yes" | |
2129 | else | |
2130 | eval "$4=no" | |
2131 | fi | |
2132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2133 | fi | |
2134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2135 | fi | |
2136 | eval ac_res=\$$4 | |
2137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2138 | $as_echo "$ac_res" >&6; } | |
2139 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2140 | ||
2141 | } # ac_fn_c_check_member | |
2142 | cat >config.log <<_ACEOF | |
2143 | This file contains any messages produced by compilers while | |
2144 | running configure, to aid debugging if configure makes a mistake. | |
2145 | ||
2146 | It was created by $as_me, which was | |
2147 | generated by GNU Autoconf 2.68. Invocation command line was | |
2148 | ||
2149 | $ $0 $@ | |
2150 | ||
2151 | _ACEOF | |
2152 | exec 5>>config.log | |
2153 | { | |
2154 | cat <<_ASUNAME | |
2155 | ## --------- ## | |
2156 | ## Platform. ## | |
2157 | ## --------- ## | |
2158 | ||
2159 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2160 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2161 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2162 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2163 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2164 | ||
2165 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2166 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2167 | ||
2168 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2169 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2170 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2171 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2172 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2173 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2174 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2175 | ||
2176 | _ASUNAME | |
2177 | ||
2178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2179 | for as_dir in $PATH | |
2180 | do | |
2181 | IFS=$as_save_IFS | |
2182 | test -z "$as_dir" && as_dir=. | |
2183 | $as_echo "PATH: $as_dir" | |
2184 | done | |
2185 | IFS=$as_save_IFS | |
2186 | ||
2187 | } >&5 | |
2188 | ||
2189 | cat >&5 <<_ACEOF | |
2190 | ||
2191 | ||
2192 | ## ----------- ## | |
2193 | ## Core tests. ## | |
2194 | ## ----------- ## | |
2195 | ||
2196 | _ACEOF | |
2197 | ||
2198 | ||
2199 | # Keep a trace of the command line. | |
2200 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2201 | # Strip out --silent because we don't want to record it for future runs. | |
2202 | # Also quote any args containing shell meta-characters. | |
2203 | # Make two passes to allow for proper duplicate-argument suppression. | |
2204 | ac_configure_args= | |
2205 | ac_configure_args0= | |
2206 | ac_configure_args1= | |
2207 | ac_must_keep_next=false | |
2208 | for ac_pass in 1 2 | |
2209 | do | |
2210 | for ac_arg | |
2211 | do | |
2212 | case $ac_arg in | |
2213 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2214 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2215 | | -silent | --silent | --silen | --sile | --sil) | |
2216 | continue ;; | |
2217 | *\'*) | |
2218 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2219 | esac | |
2220 | case $ac_pass in | |
2221 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2222 | 2) | |
2223 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2224 | if test $ac_must_keep_next = true; then | |
2225 | ac_must_keep_next=false # Got value, back to normal. | |
2226 | else | |
2227 | case $ac_arg in | |
2228 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2229 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2230 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2231 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2232 | case "$ac_configure_args0 " in | |
2233 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2234 | esac | |
2235 | ;; | |
2236 | -* ) ac_must_keep_next=true ;; | |
2237 | esac | |
2238 | fi | |
2239 | as_fn_append ac_configure_args " '$ac_arg'" | |
2240 | ;; | |
2241 | esac | |
2242 | done | |
2243 | done | |
2244 | { ac_configure_args0=; unset ac_configure_args0;} | |
2245 | { ac_configure_args1=; unset ac_configure_args1;} | |
2246 | ||
2247 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2248 | # config.log. We remove comments because anyway the quotes in there | |
2249 | # would cause problems or look ugly. | |
2250 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2251 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2252 | trap 'exit_status=$? | |
2253 | # Save into config.log some information that might help in debugging. | |
2254 | { | |
2255 | echo | |
2256 | ||
2257 | $as_echo "## ---------------- ## | |
2258 | ## Cache variables. ## | |
2259 | ## ---------------- ##" | |
2260 | echo | |
2261 | # The following way of writing the cache mishandles newlines in values, | |
2262 | ( | |
2263 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2264 | eval ac_val=\$$ac_var | |
2265 | case $ac_val in #( | |
2266 | *${as_nl}*) | |
2267 | case $ac_var in #( | |
2268 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2269 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2270 | esac | |
2271 | case $ac_var in #( | |
2272 | _ | IFS | as_nl) ;; #( | |
2273 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2274 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2275 | esac ;; | |
2276 | esac | |
2277 | done | |
2278 | (set) 2>&1 | | |
2279 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2280 | *${as_nl}ac_space=\ *) | |
2281 | sed -n \ | |
2282 | "s/'\''/'\''\\\\'\'''\''/g; | |
2283 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2284 | ;; #( | |
2285 | *) | |
2286 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2287 | ;; | |
2288 | esac | | |
2289 | sort | |
2290 | ) | |
2291 | echo | |
2292 | ||
2293 | $as_echo "## ----------------- ## | |
2294 | ## Output variables. ## | |
2295 | ## ----------------- ##" | |
2296 | echo | |
2297 | for ac_var in $ac_subst_vars | |
2298 | do | |
2299 | eval ac_val=\$$ac_var | |
2300 | case $ac_val in | |
2301 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2302 | esac | |
2303 | $as_echo "$ac_var='\''$ac_val'\''" | |
2304 | done | sort | |
2305 | echo | |
2306 | ||
2307 | if test -n "$ac_subst_files"; then | |
2308 | $as_echo "## ------------------- ## | |
2309 | ## File substitutions. ## | |
2310 | ## ------------------- ##" | |
2311 | echo | |
2312 | for ac_var in $ac_subst_files | |
2313 | do | |
2314 | eval ac_val=\$$ac_var | |
2315 | case $ac_val in | |
2316 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2317 | esac | |
2318 | $as_echo "$ac_var='\''$ac_val'\''" | |
2319 | done | sort | |
2320 | echo | |
2321 | fi | |
2322 | ||
2323 | if test -s confdefs.h; then | |
2324 | $as_echo "## ----------- ## | |
2325 | ## confdefs.h. ## | |
2326 | ## ----------- ##" | |
2327 | echo | |
2328 | cat confdefs.h | |
2329 | echo | |
2330 | fi | |
2331 | test "$ac_signal" != 0 && | |
2332 | $as_echo "$as_me: caught signal $ac_signal" | |
2333 | $as_echo "$as_me: exit $exit_status" | |
2334 | } >&5 | |
2335 | rm -f core *.core core.conftest.* && | |
2336 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2337 | exit $exit_status | |
2338 | ' 0 | |
2339 | for ac_signal in 1 2 13 15; do | |
2340 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2341 | done | |
2342 | ac_signal=0 | |
2343 | ||
2344 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2345 | rm -f -r conftest* confdefs.h | |
2346 | ||
2347 | $as_echo "/* confdefs.h */" > confdefs.h | |
2348 | ||
2349 | # Predefined preprocessor variables. | |
2350 | ||
2351 | cat >>confdefs.h <<_ACEOF | |
2352 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2353 | _ACEOF | |
2354 | ||
2355 | cat >>confdefs.h <<_ACEOF | |
2356 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2357 | _ACEOF | |
2358 | ||
2359 | cat >>confdefs.h <<_ACEOF | |
2360 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2361 | _ACEOF | |
2362 | ||
2363 | cat >>confdefs.h <<_ACEOF | |
2364 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2365 | _ACEOF | |
2366 | ||
2367 | cat >>confdefs.h <<_ACEOF | |
2368 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2369 | _ACEOF | |
2370 | ||
2371 | cat >>confdefs.h <<_ACEOF | |
2372 | #define PACKAGE_URL "$PACKAGE_URL" | |
2373 | _ACEOF | |
2374 | ||
2375 | ||
2376 | # Let the site file select an alternate cache file if it wants to. | |
2377 | # Prefer an explicitly selected file to automatically selected ones. | |
2378 | ac_site_file1=NONE | |
2379 | ac_site_file2=NONE | |
2380 | if test -n "$CONFIG_SITE"; then | |
2381 | # We do not want a PATH search for config.site. | |
2382 | case $CONFIG_SITE in #(( | |
2383 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2384 | */*) ac_site_file1=$CONFIG_SITE;; | |
2385 | *) ac_site_file1=./$CONFIG_SITE;; | |
2386 | esac | |
2387 | elif test "x$prefix" != xNONE; then | |
2388 | ac_site_file1=$prefix/share/config.site | |
2389 | ac_site_file2=$prefix/etc/config.site | |
2390 | else | |
2391 | ac_site_file1=$ac_default_prefix/share/config.site | |
2392 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2393 | fi | |
2394 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2395 | do | |
2396 | test "x$ac_site_file" = xNONE && continue | |
2397 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2398 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2399 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2400 | sed 's/^/| /' "$ac_site_file" >&5 | |
2401 | . "$ac_site_file" \ | |
2402 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2403 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2404 | as_fn_error $? "failed to load site script $ac_site_file | |
2405 | See \`config.log' for more details" "$LINENO" 5; } | |
2406 | fi | |
2407 | done | |
2408 | ||
2409 | if test -r "$cache_file"; then | |
2410 | # Some versions of bash will fail to source /dev/null (special files | |
2411 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2412 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2414 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2415 | case $cache_file in | |
2416 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2417 | *) . "./$cache_file";; | |
2418 | esac | |
2419 | fi | |
2420 | else | |
2421 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2422 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2423 | >$cache_file | |
2424 | fi | |
2425 | ||
2426 | # Check that the precious variables saved in the cache have kept the same | |
2427 | # value. | |
2428 | ac_cache_corrupted=false | |
2429 | for ac_var in $ac_precious_vars; do | |
2430 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2431 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2432 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2433 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2434 | case $ac_old_set,$ac_new_set in | |
2435 | set,) | |
2436 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2437 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2438 | ac_cache_corrupted=: ;; | |
2439 | ,set) | |
2440 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2441 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2442 | ac_cache_corrupted=: ;; | |
2443 | ,);; | |
2444 | *) | |
2445 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2446 | # differences in whitespace do not lead to failure. | |
2447 | ac_old_val_w=`echo x $ac_old_val` | |
2448 | ac_new_val_w=`echo x $ac_new_val` | |
2449 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2451 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2452 | ac_cache_corrupted=: | |
2453 | else | |
2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2455 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2456 | eval $ac_var=\$ac_old_val | |
2457 | fi | |
2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2459 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2461 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2462 | fi;; | |
2463 | esac | |
2464 | # Pass precious variables to config.status. | |
2465 | if test "$ac_new_set" = set; then | |
2466 | case $ac_new_val in | |
2467 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2468 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2469 | esac | |
2470 | case " $ac_configure_args " in | |
2471 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2472 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2473 | esac | |
2474 | fi | |
2475 | done | |
2476 | if $ac_cache_corrupted; then | |
2477 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2478 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2480 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2481 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2482 | fi | |
2483 | ## -------------------- ## | |
2484 | ## Main body of script. ## | |
2485 | ## -------------------- ## | |
2486 | ||
2487 | ac_ext=c | |
2488 | ac_cpp='$CPP $CPPFLAGS' | |
2489 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2490 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2491 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2492 | ||
2493 | ||
2494 | ||
2495 | ||
2496 | uname=`uname` | |
2497 | uversion=`uname -r | sed -e '1,$s/^[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/'` | |
2498 | uarch=`uname -m` | |
2499 | ||
2500 | case "$uname" in | |
2501 | Darwin*) | |
2502 | uname="Darwin" | |
2503 | if test $uversion -lt 120; then | |
2504 | as_fn_error $? "Sorry, this version of CUPS requires OS X 10.8 or higher." "$LINENO" 5 | |
2505 | fi | |
2506 | ;; | |
2507 | ||
2508 | GNU* | GNU/*) | |
2509 | uname="GNU" | |
2510 | ;; | |
2511 | Linux*) | |
2512 | uname="Linux" | |
2513 | ;; | |
2514 | esac | |
2515 | ||
2516 | ||
2517 | ||
2518 | ||
2519 | ||
2520 | ac_config_headers="$ac_config_headers config.h" | |
2521 | ||
2522 | ||
1a18c85c | 2523 | CUPS_VERSION=2.0b1 |
61515785 MS |
2524 | CUPS_REVISION= |
2525 | #if test -z "$CUPS_REVISION" -a -d .svn; then | |
2526 | # CUPS_REVISION="-r`svnversion . | awk -F: '{print $NF}' | sed -e '1,$s/[[a-zA-Z]]*//g'`" | |
2527 | #fi | |
2528 | CUPS_BUILD="cups-$CUPS_VERSION" | |
2529 | ||
2530 | ||
2531 | # Check whether --with-cups_build was given. | |
2532 | if test "${with_cups_build+set}" = set; then : | |
2533 | withval=$with_cups_build; CUPS_BUILD="$withval" | |
2534 | fi | |
2535 | ||
2536 | ||
2537 | ||
2538 | ||
2539 | ||
2540 | cat >>confdefs.h <<_ACEOF | |
2541 | #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION" | |
2542 | _ACEOF | |
2543 | ||
2544 | cat >>confdefs.h <<_ACEOF | |
2545 | #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION" | |
2546 | _ACEOF | |
2547 | ||
2548 | ||
2549 | CFLAGS="${CFLAGS:=}" | |
2550 | CPPFLAGS="${CPPFLAGS:=}" | |
2551 | CXXFLAGS="${CXXFLAGS:=}" | |
2552 | LDFLAGS="${LDFLAGS:=}" | |
2553 | ||
2554 | for ac_prog in gawk mawk nawk awk | |
2555 | do | |
2556 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2557 | set dummy $ac_prog; ac_word=$2 | |
2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2559 | $as_echo_n "checking for $ac_word... " >&6; } | |
2560 | if ${ac_cv_prog_AWK+:} false; then : | |
2561 | $as_echo_n "(cached) " >&6 | |
2562 | else | |
2563 | if test -n "$AWK"; then | |
2564 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2565 | else | |
2566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2567 | for as_dir in $PATH | |
2568 | do | |
2569 | IFS=$as_save_IFS | |
2570 | test -z "$as_dir" && as_dir=. | |
2571 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2572 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2573 | ac_cv_prog_AWK="$ac_prog" | |
2574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2575 | break 2 | |
2576 | fi | |
2577 | done | |
2578 | done | |
2579 | IFS=$as_save_IFS | |
2580 | ||
2581 | fi | |
2582 | fi | |
2583 | AWK=$ac_cv_prog_AWK | |
2584 | if test -n "$AWK"; then | |
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2586 | $as_echo "$AWK" >&6; } | |
2587 | else | |
2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2589 | $as_echo "no" >&6; } | |
2590 | fi | |
2591 | ||
2592 | ||
2593 | test -n "$AWK" && break | |
2594 | done | |
2595 | ||
2596 | ac_ext=c | |
2597 | ac_cpp='$CPP $CPPFLAGS' | |
2598 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2599 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2600 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2601 | if test -n "$ac_tool_prefix"; then | |
2602 | for ac_prog in clang cc gcc | |
2603 | do | |
2604 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2605 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2607 | $as_echo_n "checking for $ac_word... " >&6; } | |
2608 | if ${ac_cv_prog_CC+:} false; then : | |
2609 | $as_echo_n "(cached) " >&6 | |
2610 | else | |
2611 | if test -n "$CC"; then | |
2612 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2613 | else | |
2614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2615 | for as_dir in $PATH | |
2616 | do | |
2617 | IFS=$as_save_IFS | |
2618 | test -z "$as_dir" && as_dir=. | |
2619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2621 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2623 | break 2 | |
2624 | fi | |
2625 | done | |
2626 | done | |
2627 | IFS=$as_save_IFS | |
2628 | ||
2629 | fi | |
2630 | fi | |
2631 | CC=$ac_cv_prog_CC | |
2632 | if test -n "$CC"; then | |
2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2634 | $as_echo "$CC" >&6; } | |
2635 | else | |
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2637 | $as_echo "no" >&6; } | |
2638 | fi | |
2639 | ||
2640 | ||
2641 | test -n "$CC" && break | |
2642 | done | |
2643 | fi | |
2644 | if test -z "$CC"; then | |
2645 | ac_ct_CC=$CC | |
2646 | for ac_prog in clang cc gcc | |
2647 | do | |
2648 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2649 | set dummy $ac_prog; ac_word=$2 | |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2651 | $as_echo_n "checking for $ac_word... " >&6; } | |
2652 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2653 | $as_echo_n "(cached) " >&6 | |
2654 | else | |
2655 | if test -n "$ac_ct_CC"; then | |
2656 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2657 | else | |
2658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2659 | for as_dir in $PATH | |
2660 | do | |
2661 | IFS=$as_save_IFS | |
2662 | test -z "$as_dir" && as_dir=. | |
2663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2665 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2667 | break 2 | |
2668 | fi | |
2669 | done | |
2670 | done | |
2671 | IFS=$as_save_IFS | |
2672 | ||
2673 | fi | |
2674 | fi | |
2675 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2676 | if test -n "$ac_ct_CC"; then | |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2678 | $as_echo "$ac_ct_CC" >&6; } | |
2679 | else | |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2681 | $as_echo "no" >&6; } | |
2682 | fi | |
2683 | ||
2684 | ||
2685 | test -n "$ac_ct_CC" && break | |
2686 | done | |
2687 | ||
2688 | if test "x$ac_ct_CC" = x; then | |
2689 | CC="" | |
2690 | else | |
2691 | case $cross_compiling:$ac_tool_warned in | |
2692 | yes:) | |
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2694 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2695 | ac_tool_warned=yes ;; | |
2696 | esac | |
2697 | CC=$ac_ct_CC | |
2698 | fi | |
2699 | fi | |
2700 | ||
2701 | ||
2702 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2703 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2704 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2705 | See \`config.log' for more details" "$LINENO" 5; } | |
2706 | ||
2707 | # Provide some information about the compiler. | |
2708 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2709 | set X $ac_compile | |
2710 | ac_compiler=$2 | |
2711 | for ac_option in --version -v -V -qversion; do | |
2712 | { { ac_try="$ac_compiler $ac_option >&5" | |
2713 | case "(($ac_try" in | |
2714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2715 | *) ac_try_echo=$ac_try;; | |
2716 | esac | |
2717 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2718 | $as_echo "$ac_try_echo"; } >&5 | |
2719 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2720 | ac_status=$? | |
2721 | if test -s conftest.err; then | |
2722 | sed '10a\ | |
2723 | ... rest of stderr output deleted ... | |
2724 | 10q' conftest.err >conftest.er1 | |
2725 | cat conftest.er1 >&5 | |
2726 | fi | |
2727 | rm -f conftest.er1 conftest.err | |
2728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2729 | test $ac_status = 0; } | |
2730 | done | |
2731 | ||
2732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2733 | /* end confdefs.h. */ | |
2734 | ||
2735 | int | |
2736 | main () | |
2737 | { | |
2738 | ||
2739 | ; | |
2740 | return 0; | |
2741 | } | |
2742 | _ACEOF | |
2743 | ac_clean_files_save=$ac_clean_files | |
2744 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2745 | # Try to create an executable without -o first, disregard a.out. | |
2746 | # It will help us diagnose broken compilers, and finding out an intuition | |
2747 | # of exeext. | |
2748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2749 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2750 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2751 | ||
2752 | # The possible output files: | |
2753 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2754 | ||
2755 | ac_rmfiles= | |
2756 | for ac_file in $ac_files | |
2757 | do | |
2758 | case $ac_file in | |
2759 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2760 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2761 | esac | |
2762 | done | |
2763 | rm -f $ac_rmfiles | |
2764 | ||
2765 | if { { ac_try="$ac_link_default" | |
2766 | case "(($ac_try" in | |
2767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2768 | *) ac_try_echo=$ac_try;; | |
2769 | esac | |
2770 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2771 | $as_echo "$ac_try_echo"; } >&5 | |
2772 | (eval "$ac_link_default") 2>&5 | |
2773 | ac_status=$? | |
2774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2775 | test $ac_status = 0; }; then : | |
2776 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2777 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2778 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2779 | # so that the user can short-circuit this test for compilers unknown to | |
2780 | # Autoconf. | |
2781 | for ac_file in $ac_files '' | |
2782 | do | |
2783 | test -f "$ac_file" || continue | |
2784 | case $ac_file in | |
2785 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2786 | ;; | |
2787 | [ab].out ) | |
2788 | # We found the default executable, but exeext='' is most | |
2789 | # certainly right. | |
2790 | break;; | |
2791 | *.* ) | |
2792 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2793 | then :; else | |
2794 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2795 | fi | |
2796 | # We set ac_cv_exeext here because the later test for it is not | |
2797 | # safe: cross compilers may not add the suffix if given an `-o' | |
2798 | # argument, so we may need to know it at that point already. | |
2799 | # Even if this section looks crufty: it has the advantage of | |
2800 | # actually working. | |
2801 | break;; | |
2802 | * ) | |
2803 | break;; | |
2804 | esac | |
2805 | done | |
2806 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2807 | ||
2808 | else | |
2809 | ac_file='' | |
2810 | fi | |
2811 | if test -z "$ac_file"; then : | |
2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2813 | $as_echo "no" >&6; } | |
2814 | $as_echo "$as_me: failed program was:" >&5 | |
2815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2816 | ||
2817 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2818 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2819 | as_fn_error 77 "C compiler cannot create executables | |
2820 | See \`config.log' for more details" "$LINENO" 5; } | |
2821 | else | |
2822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2823 | $as_echo "yes" >&6; } | |
2824 | fi | |
2825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2826 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2828 | $as_echo "$ac_file" >&6; } | |
2829 | ac_exeext=$ac_cv_exeext | |
2830 | ||
2831 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2832 | ac_clean_files=$ac_clean_files_save | |
2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2834 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2835 | if { { ac_try="$ac_link" | |
2836 | case "(($ac_try" in | |
2837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2838 | *) ac_try_echo=$ac_try;; | |
2839 | esac | |
2840 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2841 | $as_echo "$ac_try_echo"; } >&5 | |
2842 | (eval "$ac_link") 2>&5 | |
2843 | ac_status=$? | |
2844 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2845 | test $ac_status = 0; }; then : | |
2846 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2847 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2848 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2849 | # `rm'. | |
2850 | for ac_file in conftest.exe conftest conftest.*; do | |
2851 | test -f "$ac_file" || continue | |
2852 | case $ac_file in | |
2853 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2854 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2855 | break;; | |
2856 | * ) break;; | |
2857 | esac | |
2858 | done | |
2859 | else | |
2860 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2861 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2862 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
2863 | See \`config.log' for more details" "$LINENO" 5; } | |
2864 | fi | |
2865 | rm -f conftest conftest$ac_cv_exeext | |
2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2867 | $as_echo "$ac_cv_exeext" >&6; } | |
2868 | ||
2869 | rm -f conftest.$ac_ext | |
2870 | EXEEXT=$ac_cv_exeext | |
2871 | ac_exeext=$EXEEXT | |
2872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2873 | /* end confdefs.h. */ | |
2874 | #include <stdio.h> | |
2875 | int | |
2876 | main () | |
2877 | { | |
2878 | FILE *f = fopen ("conftest.out", "w"); | |
2879 | return ferror (f) || fclose (f) != 0; | |
2880 | ||
2881 | ; | |
2882 | return 0; | |
2883 | } | |
2884 | _ACEOF | |
2885 | ac_clean_files="$ac_clean_files conftest.out" | |
2886 | # Check that the compiler produces executables we can run. If not, either | |
2887 | # the compiler is broken, or we cross compile. | |
2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2889 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2890 | if test "$cross_compiling" != yes; then | |
2891 | { { ac_try="$ac_link" | |
2892 | case "(($ac_try" in | |
2893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2894 | *) ac_try_echo=$ac_try;; | |
2895 | esac | |
2896 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2897 | $as_echo "$ac_try_echo"; } >&5 | |
2898 | (eval "$ac_link") 2>&5 | |
2899 | ac_status=$? | |
2900 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2901 | test $ac_status = 0; } | |
2902 | if { ac_try='./conftest$ac_cv_exeext' | |
2903 | { { case "(($ac_try" in | |
2904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2905 | *) ac_try_echo=$ac_try;; | |
2906 | esac | |
2907 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2908 | $as_echo "$ac_try_echo"; } >&5 | |
2909 | (eval "$ac_try") 2>&5 | |
2910 | ac_status=$? | |
2911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2912 | test $ac_status = 0; }; }; then | |
2913 | cross_compiling=no | |
2914 | else | |
2915 | if test "$cross_compiling" = maybe; then | |
2916 | cross_compiling=yes | |
2917 | else | |
2918 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2919 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2920 | as_fn_error $? "cannot run C compiled programs. | |
2921 | If you meant to cross compile, use \`--host'. | |
2922 | See \`config.log' for more details" "$LINENO" 5; } | |
2923 | fi | |
2924 | fi | |
2925 | fi | |
2926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2927 | $as_echo "$cross_compiling" >&6; } | |
2928 | ||
2929 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2930 | ac_clean_files=$ac_clean_files_save | |
2931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2932 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2933 | if ${ac_cv_objext+:} false; then : | |
2934 | $as_echo_n "(cached) " >&6 | |
2935 | else | |
2936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2937 | /* end confdefs.h. */ | |
2938 | ||
2939 | int | |
2940 | main () | |
2941 | { | |
2942 | ||
2943 | ; | |
2944 | return 0; | |
2945 | } | |
2946 | _ACEOF | |
2947 | rm -f conftest.o conftest.obj | |
2948 | if { { ac_try="$ac_compile" | |
2949 | case "(($ac_try" in | |
2950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2951 | *) ac_try_echo=$ac_try;; | |
2952 | esac | |
2953 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2954 | $as_echo "$ac_try_echo"; } >&5 | |
2955 | (eval "$ac_compile") 2>&5 | |
2956 | ac_status=$? | |
2957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2958 | test $ac_status = 0; }; then : | |
2959 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2960 | test -f "$ac_file" || continue; | |
2961 | case $ac_file in | |
2962 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2963 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2964 | break;; | |
2965 | esac | |
2966 | done | |
2967 | else | |
2968 | $as_echo "$as_me: failed program was:" >&5 | |
2969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2970 | ||
2971 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2972 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2973 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
2974 | See \`config.log' for more details" "$LINENO" 5; } | |
2975 | fi | |
2976 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2977 | fi | |
2978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2979 | $as_echo "$ac_cv_objext" >&6; } | |
2980 | OBJEXT=$ac_cv_objext | |
2981 | ac_objext=$OBJEXT | |
2982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2983 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2984 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
2985 | $as_echo_n "(cached) " >&6 | |
2986 | else | |
2987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2988 | /* end confdefs.h. */ | |
2989 | ||
2990 | int | |
2991 | main () | |
2992 | { | |
2993 | #ifndef __GNUC__ | |
2994 | choke me | |
2995 | #endif | |
2996 | ||
2997 | ; | |
2998 | return 0; | |
2999 | } | |
3000 | _ACEOF | |
3001 | if ac_fn_c_try_compile "$LINENO"; then : | |
3002 | ac_compiler_gnu=yes | |
3003 | else | |
3004 | ac_compiler_gnu=no | |
3005 | fi | |
3006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3007 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3008 | ||
3009 | fi | |
3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3011 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3012 | if test $ac_compiler_gnu = yes; then | |
3013 | GCC=yes | |
3014 | else | |
3015 | GCC= | |
3016 | fi | |
3017 | ac_test_CFLAGS=${CFLAGS+set} | |
3018 | ac_save_CFLAGS=$CFLAGS | |
3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3020 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3021 | if ${ac_cv_prog_cc_g+:} false; then : | |
3022 | $as_echo_n "(cached) " >&6 | |
3023 | else | |
3024 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3025 | ac_c_werror_flag=yes | |
3026 | ac_cv_prog_cc_g=no | |
3027 | CFLAGS="-g" | |
3028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3029 | /* end confdefs.h. */ | |
3030 | ||
3031 | int | |
3032 | main () | |
3033 | { | |
3034 | ||
3035 | ; | |
3036 | return 0; | |
3037 | } | |
3038 | _ACEOF | |
3039 | if ac_fn_c_try_compile "$LINENO"; then : | |
3040 | ac_cv_prog_cc_g=yes | |
3041 | else | |
3042 | CFLAGS="" | |
3043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3044 | /* end confdefs.h. */ | |
3045 | ||
3046 | int | |
3047 | main () | |
3048 | { | |
3049 | ||
3050 | ; | |
3051 | return 0; | |
3052 | } | |
3053 | _ACEOF | |
3054 | if ac_fn_c_try_compile "$LINENO"; then : | |
3055 | ||
3056 | else | |
3057 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3058 | CFLAGS="-g" | |
3059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3060 | /* end confdefs.h. */ | |
3061 | ||
3062 | int | |
3063 | main () | |
3064 | { | |
3065 | ||
3066 | ; | |
3067 | return 0; | |
3068 | } | |
3069 | _ACEOF | |
3070 | if ac_fn_c_try_compile "$LINENO"; then : | |
3071 | ac_cv_prog_cc_g=yes | |
3072 | fi | |
3073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3074 | fi | |
3075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3076 | fi | |
3077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3078 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3079 | fi | |
3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3081 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3082 | if test "$ac_test_CFLAGS" = set; then | |
3083 | CFLAGS=$ac_save_CFLAGS | |
3084 | elif test $ac_cv_prog_cc_g = yes; then | |
3085 | if test "$GCC" = yes; then | |
3086 | CFLAGS="-g -O2" | |
3087 | else | |
3088 | CFLAGS="-g" | |
3089 | fi | |
3090 | else | |
3091 | if test "$GCC" = yes; then | |
3092 | CFLAGS="-O2" | |
3093 | else | |
3094 | CFLAGS= | |
3095 | fi | |
3096 | fi | |
3097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3098 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3099 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3100 | $as_echo_n "(cached) " >&6 | |
3101 | else | |
3102 | ac_cv_prog_cc_c89=no | |
3103 | ac_save_CC=$CC | |
3104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3105 | /* end confdefs.h. */ | |
3106 | #include <stdarg.h> | |
3107 | #include <stdio.h> | |
3108 | #include <sys/types.h> | |
3109 | #include <sys/stat.h> | |
3110 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3111 | struct buf { int x; }; | |
3112 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3113 | static char *e (p, i) | |
3114 | char **p; | |
3115 | int i; | |
3116 | { | |
3117 | return p[i]; | |
3118 | } | |
3119 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3120 | { | |
3121 | char *s; | |
3122 | va_list v; | |
3123 | va_start (v,p); | |
3124 | s = g (p, va_arg (v,int)); | |
3125 | va_end (v); | |
3126 | return s; | |
3127 | } | |
3128 | ||
3129 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3130 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3131 | These don't provoke an error unfortunately, instead are silently treated | |
3132 | as 'x'. The following induces an error, until -std is added to get | |
3133 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3134 | array size at least. It's necessary to write '\x00'==0 to get something | |
3135 | that's true only with -std. */ | |
3136 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3137 | ||
3138 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3139 | inside strings and character constants. */ | |
3140 | #define FOO(x) 'x' | |
3141 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3142 | ||
3143 | int test (int i, double x); | |
3144 | struct s1 {int (*f) (int a);}; | |
3145 | struct s2 {int (*f) (double a);}; | |
3146 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3147 | int argc; | |
3148 | char **argv; | |
3149 | int | |
3150 | main () | |
3151 | { | |
3152 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3153 | ; | |
3154 | return 0; | |
3155 | } | |
3156 | _ACEOF | |
3157 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3158 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3159 | do | |
3160 | CC="$ac_save_CC $ac_arg" | |
3161 | if ac_fn_c_try_compile "$LINENO"; then : | |
3162 | ac_cv_prog_cc_c89=$ac_arg | |
3163 | fi | |
3164 | rm -f core conftest.err conftest.$ac_objext | |
3165 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3166 | done | |
3167 | rm -f conftest.$ac_ext | |
3168 | CC=$ac_save_CC | |
3169 | ||
3170 | fi | |
3171 | # AC_CACHE_VAL | |
3172 | case "x$ac_cv_prog_cc_c89" in | |
3173 | x) | |
3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3175 | $as_echo "none needed" >&6; } ;; | |
3176 | xno) | |
3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3178 | $as_echo "unsupported" >&6; } ;; | |
3179 | *) | |
3180 | CC="$CC $ac_cv_prog_cc_c89" | |
3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3182 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3183 | esac | |
3184 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3185 | ||
3186 | fi | |
3187 | ||
3188 | ac_ext=c | |
3189 | ac_cpp='$CPP $CPPFLAGS' | |
3190 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3191 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3192 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3193 | ||
3194 | ac_ext=c | |
3195 | ac_cpp='$CPP $CPPFLAGS' | |
3196 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3197 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3198 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3200 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3201 | # On Suns, sometimes $CPP names a directory. | |
3202 | if test -n "$CPP" && test -d "$CPP"; then | |
3203 | CPP= | |
3204 | fi | |
3205 | if test -z "$CPP"; then | |
3206 | if ${ac_cv_prog_CPP+:} false; then : | |
3207 | $as_echo_n "(cached) " >&6 | |
3208 | else | |
3209 | # Double quotes because CPP needs to be expanded | |
3210 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3211 | do | |
3212 | ac_preproc_ok=false | |
3213 | for ac_c_preproc_warn_flag in '' yes | |
3214 | do | |
3215 | # Use a header file that comes with gcc, so configuring glibc | |
3216 | # with a fresh cross-compiler works. | |
3217 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3218 | # <limits.h> exists even on freestanding compilers. | |
3219 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3220 | # not just through cpp. "Syntax error" is here to catch this case. | |
3221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3222 | /* end confdefs.h. */ | |
3223 | #ifdef __STDC__ | |
3224 | # include <limits.h> | |
3225 | #else | |
3226 | # include <assert.h> | |
3227 | #endif | |
3228 | Syntax error | |
3229 | _ACEOF | |
3230 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3231 | ||
3232 | else | |
3233 | # Broken: fails on valid input. | |
3234 | continue | |
3235 | fi | |
3236 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3237 | ||
3238 | # OK, works on sane cases. Now check whether nonexistent headers | |
3239 | # can be detected and how. | |
3240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3241 | /* end confdefs.h. */ | |
3242 | #include <ac_nonexistent.h> | |
3243 | _ACEOF | |
3244 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3245 | # Broken: success on invalid input. | |
3246 | continue | |
3247 | else | |
3248 | # Passes both tests. | |
3249 | ac_preproc_ok=: | |
3250 | break | |
3251 | fi | |
3252 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3253 | ||
3254 | done | |
3255 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3256 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3257 | if $ac_preproc_ok; then : | |
3258 | break | |
3259 | fi | |
3260 | ||
3261 | done | |
3262 | ac_cv_prog_CPP=$CPP | |
3263 | ||
3264 | fi | |
3265 | CPP=$ac_cv_prog_CPP | |
3266 | else | |
3267 | ac_cv_prog_CPP=$CPP | |
3268 | fi | |
3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3270 | $as_echo "$CPP" >&6; } | |
3271 | ac_preproc_ok=false | |
3272 | for ac_c_preproc_warn_flag in '' yes | |
3273 | do | |
3274 | # Use a header file that comes with gcc, so configuring glibc | |
3275 | # with a fresh cross-compiler works. | |
3276 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3277 | # <limits.h> exists even on freestanding compilers. | |
3278 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3279 | # not just through cpp. "Syntax error" is here to catch this case. | |
3280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3281 | /* end confdefs.h. */ | |
3282 | #ifdef __STDC__ | |
3283 | # include <limits.h> | |
3284 | #else | |
3285 | # include <assert.h> | |
3286 | #endif | |
3287 | Syntax error | |
3288 | _ACEOF | |
3289 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3290 | ||
3291 | else | |
3292 | # Broken: fails on valid input. | |
3293 | continue | |
3294 | fi | |
3295 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3296 | ||
3297 | # OK, works on sane cases. Now check whether nonexistent headers | |
3298 | # can be detected and how. | |
3299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3300 | /* end confdefs.h. */ | |
3301 | #include <ac_nonexistent.h> | |
3302 | _ACEOF | |
3303 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3304 | # Broken: success on invalid input. | |
3305 | continue | |
3306 | else | |
3307 | # Passes both tests. | |
3308 | ac_preproc_ok=: | |
3309 | break | |
3310 | fi | |
3311 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3312 | ||
3313 | done | |
3314 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3315 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3316 | if $ac_preproc_ok; then : | |
3317 | ||
3318 | else | |
3319 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3320 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3321 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3322 | See \`config.log' for more details" "$LINENO" 5; } | |
3323 | fi | |
3324 | ||
3325 | ac_ext=c | |
3326 | ac_cpp='$CPP $CPPFLAGS' | |
3327 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3328 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3329 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3330 | ||
3331 | ac_ext=cpp | |
3332 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3333 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3334 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3335 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3336 | if test -z "$CXX"; then | |
3337 | if test -n "$CCC"; then | |
3338 | CXX=$CCC | |
3339 | else | |
3340 | if test -n "$ac_tool_prefix"; then | |
3341 | for ac_prog in clang++ c++ g++ | |
3342 | do | |
3343 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3344 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3346 | $as_echo_n "checking for $ac_word... " >&6; } | |
3347 | if ${ac_cv_prog_CXX+:} false; then : | |
3348 | $as_echo_n "(cached) " >&6 | |
3349 | else | |
3350 | if test -n "$CXX"; then | |
3351 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3352 | else | |
3353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3354 | for as_dir in $PATH | |
3355 | do | |
3356 | IFS=$as_save_IFS | |
3357 | test -z "$as_dir" && as_dir=. | |
3358 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3359 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3360 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3362 | break 2 | |
3363 | fi | |
3364 | done | |
3365 | done | |
3366 | IFS=$as_save_IFS | |
3367 | ||
3368 | fi | |
3369 | fi | |
3370 | CXX=$ac_cv_prog_CXX | |
3371 | if test -n "$CXX"; then | |
3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3373 | $as_echo "$CXX" >&6; } | |
3374 | else | |
3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3376 | $as_echo "no" >&6; } | |
3377 | fi | |
3378 | ||
3379 | ||
3380 | test -n "$CXX" && break | |
3381 | done | |
3382 | fi | |
3383 | if test -z "$CXX"; then | |
3384 | ac_ct_CXX=$CXX | |
3385 | for ac_prog in clang++ c++ g++ | |
3386 | do | |
3387 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3388 | set dummy $ac_prog; ac_word=$2 | |
3389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3390 | $as_echo_n "checking for $ac_word... " >&6; } | |
3391 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | |
3392 | $as_echo_n "(cached) " >&6 | |
3393 | else | |
3394 | if test -n "$ac_ct_CXX"; then | |
3395 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3396 | else | |
3397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3398 | for as_dir in $PATH | |
3399 | do | |
3400 | IFS=$as_save_IFS | |
3401 | test -z "$as_dir" && as_dir=. | |
3402 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3403 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3404 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3406 | break 2 | |
3407 | fi | |
3408 | done | |
3409 | done | |
3410 | IFS=$as_save_IFS | |
3411 | ||
3412 | fi | |
3413 | fi | |
3414 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3415 | if test -n "$ac_ct_CXX"; then | |
3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3417 | $as_echo "$ac_ct_CXX" >&6; } | |
3418 | else | |
3419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3420 | $as_echo "no" >&6; } | |
3421 | fi | |
3422 | ||
3423 | ||
3424 | test -n "$ac_ct_CXX" && break | |
3425 | done | |
3426 | ||
3427 | if test "x$ac_ct_CXX" = x; then | |
3428 | CXX="g++" | |
3429 | else | |
3430 | case $cross_compiling:$ac_tool_warned in | |
3431 | yes:) | |
3432 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3433 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3434 | ac_tool_warned=yes ;; | |
3435 | esac | |
3436 | CXX=$ac_ct_CXX | |
3437 | fi | |
3438 | fi | |
3439 | ||
3440 | fi | |
3441 | fi | |
3442 | # Provide some information about the compiler. | |
3443 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3444 | set X $ac_compile | |
3445 | ac_compiler=$2 | |
3446 | for ac_option in --version -v -V -qversion; do | |
3447 | { { ac_try="$ac_compiler $ac_option >&5" | |
3448 | case "(($ac_try" in | |
3449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3450 | *) ac_try_echo=$ac_try;; | |
3451 | esac | |
3452 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3453 | $as_echo "$ac_try_echo"; } >&5 | |
3454 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3455 | ac_status=$? | |
3456 | if test -s conftest.err; then | |
3457 | sed '10a\ | |
3458 | ... rest of stderr output deleted ... | |
3459 | 10q' conftest.err >conftest.er1 | |
3460 | cat conftest.er1 >&5 | |
3461 | fi | |
3462 | rm -f conftest.er1 conftest.err | |
3463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3464 | test $ac_status = 0; } | |
3465 | done | |
3466 | ||
3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
3468 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
3469 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
3470 | $as_echo_n "(cached) " >&6 | |
3471 | else | |
3472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3473 | /* end confdefs.h. */ | |
3474 | ||
3475 | int | |
3476 | main () | |
3477 | { | |
3478 | #ifndef __GNUC__ | |
3479 | choke me | |
3480 | #endif | |
3481 | ||
3482 | ; | |
3483 | return 0; | |
3484 | } | |
3485 | _ACEOF | |
3486 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3487 | ac_compiler_gnu=yes | |
3488 | else | |
3489 | ac_compiler_gnu=no | |
3490 | fi | |
3491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3492 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3493 | ||
3494 | fi | |
3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3496 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3497 | if test $ac_compiler_gnu = yes; then | |
3498 | GXX=yes | |
3499 | else | |
3500 | GXX= | |
3501 | fi | |
3502 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3503 | ac_save_CXXFLAGS=$CXXFLAGS | |
3504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3505 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
3506 | if ${ac_cv_prog_cxx_g+:} false; then : | |
3507 | $as_echo_n "(cached) " >&6 | |
3508 | else | |
3509 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3510 | ac_cxx_werror_flag=yes | |
3511 | ac_cv_prog_cxx_g=no | |
3512 | CXXFLAGS="-g" | |
3513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3514 | /* end confdefs.h. */ | |
3515 | ||
3516 | int | |
3517 | main () | |
3518 | { | |
3519 | ||
3520 | ; | |
3521 | return 0; | |
3522 | } | |
3523 | _ACEOF | |
3524 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3525 | ac_cv_prog_cxx_g=yes | |
3526 | else | |
3527 | CXXFLAGS="" | |
3528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3529 | /* end confdefs.h. */ | |
3530 | ||
3531 | int | |
3532 | main () | |
3533 | { | |
3534 | ||
3535 | ; | |
3536 | return 0; | |
3537 | } | |
3538 | _ACEOF | |
3539 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3540 | ||
3541 | else | |
3542 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3543 | CXXFLAGS="-g" | |
3544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3545 | /* end confdefs.h. */ | |
3546 | ||
3547 | int | |
3548 | main () | |
3549 | { | |
3550 | ||
3551 | ; | |
3552 | return 0; | |
3553 | } | |
3554 | _ACEOF | |
3555 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3556 | ac_cv_prog_cxx_g=yes | |
3557 | fi | |
3558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3559 | fi | |
3560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3561 | fi | |
3562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3563 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3564 | fi | |
3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3566 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3567 | if test "$ac_test_CXXFLAGS" = set; then | |
3568 | CXXFLAGS=$ac_save_CXXFLAGS | |
3569 | elif test $ac_cv_prog_cxx_g = yes; then | |
3570 | if test "$GXX" = yes; then | |
3571 | CXXFLAGS="-g -O2" | |
3572 | else | |
3573 | CXXFLAGS="-g" | |
3574 | fi | |
3575 | else | |
3576 | if test "$GXX" = yes; then | |
3577 | CXXFLAGS="-O2" | |
3578 | else | |
3579 | CXXFLAGS= | |
3580 | fi | |
3581 | fi | |
3582 | ac_ext=c | |
3583 | ac_cpp='$CPP $CPPFLAGS' | |
3584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3587 | ||
3588 | if test -n "$ac_tool_prefix"; then | |
3589 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3590 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3592 | $as_echo_n "checking for $ac_word... " >&6; } | |
3593 | if ${ac_cv_prog_RANLIB+:} false; then : | |
3594 | $as_echo_n "(cached) " >&6 | |
3595 | else | |
3596 | if test -n "$RANLIB"; then | |
3597 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3598 | else | |
3599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3600 | for as_dir in $PATH | |
3601 | do | |
3602 | IFS=$as_save_IFS | |
3603 | test -z "$as_dir" && as_dir=. | |
3604 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3605 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3606 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3607 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3608 | break 2 | |
3609 | fi | |
3610 | done | |
3611 | done | |
3612 | IFS=$as_save_IFS | |
3613 | ||
3614 | fi | |
3615 | fi | |
3616 | RANLIB=$ac_cv_prog_RANLIB | |
3617 | if test -n "$RANLIB"; then | |
3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
3619 | $as_echo "$RANLIB" >&6; } | |
3620 | else | |
3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3622 | $as_echo "no" >&6; } | |
3623 | fi | |
3624 | ||
3625 | ||
3626 | fi | |
3627 | if test -z "$ac_cv_prog_RANLIB"; then | |
3628 | ac_ct_RANLIB=$RANLIB | |
3629 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3630 | set dummy ranlib; ac_word=$2 | |
3631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3632 | $as_echo_n "checking for $ac_word... " >&6; } | |
3633 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
3634 | $as_echo_n "(cached) " >&6 | |
3635 | else | |
3636 | if test -n "$ac_ct_RANLIB"; then | |
3637 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3638 | else | |
3639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3640 | for as_dir in $PATH | |
3641 | do | |
3642 | IFS=$as_save_IFS | |
3643 | test -z "$as_dir" && as_dir=. | |
3644 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3645 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3646 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3648 | break 2 | |
3649 | fi | |
3650 | done | |
3651 | done | |
3652 | IFS=$as_save_IFS | |
3653 | ||
3654 | fi | |
3655 | fi | |
3656 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3657 | if test -n "$ac_ct_RANLIB"; then | |
3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
3659 | $as_echo "$ac_ct_RANLIB" >&6; } | |
3660 | else | |
3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3662 | $as_echo "no" >&6; } | |
3663 | fi | |
3664 | ||
3665 | if test "x$ac_ct_RANLIB" = x; then | |
3666 | RANLIB=":" | |
3667 | else | |
3668 | case $cross_compiling:$ac_tool_warned in | |
3669 | yes:) | |
3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3671 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3672 | ac_tool_warned=yes ;; | |
3673 | esac | |
3674 | RANLIB=$ac_ct_RANLIB | |
3675 | fi | |
3676 | else | |
3677 | RANLIB="$ac_cv_prog_RANLIB" | |
3678 | fi | |
3679 | ||
3680 | # Extract the first word of "ar", so it can be a program name with args. | |
3681 | set dummy ar; ac_word=$2 | |
3682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3683 | $as_echo_n "checking for $ac_word... " >&6; } | |
3684 | if ${ac_cv_path_AR+:} false; then : | |
3685 | $as_echo_n "(cached) " >&6 | |
3686 | else | |
3687 | case $AR in | |
3688 | [\\/]* | ?:[\\/]*) | |
3689 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
3690 | ;; | |
3691 | *) | |
3692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3693 | for as_dir in $PATH | |
3694 | do | |
3695 | IFS=$as_save_IFS | |
3696 | test -z "$as_dir" && as_dir=. | |
3697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3699 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | |
3700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3701 | break 2 | |
3702 | fi | |
3703 | done | |
3704 | done | |
3705 | IFS=$as_save_IFS | |
3706 | ||
3707 | ;; | |
3708 | esac | |
3709 | fi | |
3710 | AR=$ac_cv_path_AR | |
3711 | if test -n "$AR"; then | |
3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
3713 | $as_echo "$AR" >&6; } | |
3714 | else | |
3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3716 | $as_echo "no" >&6; } | |
3717 | fi | |
3718 | ||
3719 | ||
3720 | # Extract the first word of "chmod", so it can be a program name with args. | |
3721 | set dummy chmod; ac_word=$2 | |
3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3723 | $as_echo_n "checking for $ac_word... " >&6; } | |
3724 | if ${ac_cv_path_CHMOD+:} false; then : | |
3725 | $as_echo_n "(cached) " >&6 | |
3726 | else | |
3727 | case $CHMOD in | |
3728 | [\\/]* | ?:[\\/]*) | |
3729 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
3730 | ;; | |
3731 | *) | |
3732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3733 | for as_dir in $PATH | |
3734 | do | |
3735 | IFS=$as_save_IFS | |
3736 | test -z "$as_dir" && as_dir=. | |
3737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3739 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" | |
3740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3741 | break 2 | |
3742 | fi | |
3743 | done | |
3744 | done | |
3745 | IFS=$as_save_IFS | |
3746 | ||
3747 | ;; | |
3748 | esac | |
3749 | fi | |
3750 | CHMOD=$ac_cv_path_CHMOD | |
3751 | if test -n "$CHMOD"; then | |
3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 | |
3753 | $as_echo "$CHMOD" >&6; } | |
3754 | else | |
3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3756 | $as_echo "no" >&6; } | |
3757 | fi | |
3758 | ||
3759 | ||
3760 | # Extract the first word of "gzip", so it can be a program name with args. | |
3761 | set dummy gzip; ac_word=$2 | |
3762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3763 | $as_echo_n "checking for $ac_word... " >&6; } | |
3764 | if ${ac_cv_path_GZIP+:} false; then : | |
3765 | $as_echo_n "(cached) " >&6 | |
3766 | else | |
3767 | case $GZIP in | |
3768 | [\\/]* | ?:[\\/]*) | |
3769 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. | |
3770 | ;; | |
3771 | *) | |
3772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3773 | for as_dir in $PATH | |
3774 | do | |
3775 | IFS=$as_save_IFS | |
3776 | test -z "$as_dir" && as_dir=. | |
3777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3778 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3779 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" | |
3780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3781 | break 2 | |
3782 | fi | |
3783 | done | |
3784 | done | |
3785 | IFS=$as_save_IFS | |
3786 | ||
3787 | ;; | |
3788 | esac | |
3789 | fi | |
3790 | GZIP=$ac_cv_path_GZIP | |
3791 | if test -n "$GZIP"; then | |
3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 | |
3793 | $as_echo "$GZIP" >&6; } | |
3794 | else | |
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3796 | $as_echo "no" >&6; } | |
3797 | fi | |
3798 | ||
3799 | ||
3800 | # Extract the first word of "ld", so it can be a program name with args. | |
3801 | set dummy ld; ac_word=$2 | |
3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3803 | $as_echo_n "checking for $ac_word... " >&6; } | |
3804 | if ${ac_cv_path_LD+:} false; then : | |
3805 | $as_echo_n "(cached) " >&6 | |
3806 | else | |
3807 | case $LD in | |
3808 | [\\/]* | ?:[\\/]*) | |
3809 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
3810 | ;; | |
3811 | *) | |
3812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3813 | for as_dir in $PATH | |
3814 | do | |
3815 | IFS=$as_save_IFS | |
3816 | test -z "$as_dir" && as_dir=. | |
3817 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3819 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" | |
3820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3821 | break 2 | |
3822 | fi | |
3823 | done | |
3824 | done | |
3825 | IFS=$as_save_IFS | |
3826 | ||
3827 | ;; | |
3828 | esac | |
3829 | fi | |
3830 | LD=$ac_cv_path_LD | |
3831 | if test -n "$LD"; then | |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
3833 | $as_echo "$LD" >&6; } | |
3834 | else | |
3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3836 | $as_echo "no" >&6; } | |
3837 | fi | |
3838 | ||
3839 | ||
3840 | # Extract the first word of "ln", so it can be a program name with args. | |
3841 | set dummy ln; ac_word=$2 | |
3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3843 | $as_echo_n "checking for $ac_word... " >&6; } | |
3844 | if ${ac_cv_path_LN+:} false; then : | |
3845 | $as_echo_n "(cached) " >&6 | |
3846 | else | |
3847 | case $LN in | |
3848 | [\\/]* | ?:[\\/]*) | |
3849 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
3850 | ;; | |
3851 | *) | |
3852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3853 | for as_dir in $PATH | |
3854 | do | |
3855 | IFS=$as_save_IFS | |
3856 | test -z "$as_dir" && as_dir=. | |
3857 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3858 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3859 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" | |
3860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3861 | break 2 | |
3862 | fi | |
3863 | done | |
3864 | done | |
3865 | IFS=$as_save_IFS | |
3866 | ||
3867 | ;; | |
3868 | esac | |
3869 | fi | |
3870 | LN=$ac_cv_path_LN | |
3871 | if test -n "$LN"; then | |
3872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
3873 | $as_echo "$LN" >&6; } | |
3874 | else | |
3875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3876 | $as_echo "no" >&6; } | |
3877 | fi | |
3878 | ||
3879 | ||
3880 | # Extract the first word of "mv", so it can be a program name with args. | |
3881 | set dummy mv; ac_word=$2 | |
3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3883 | $as_echo_n "checking for $ac_word... " >&6; } | |
3884 | if ${ac_cv_path_MV+:} false; then : | |
3885 | $as_echo_n "(cached) " >&6 | |
3886 | else | |
3887 | case $MV in | |
3888 | [\\/]* | ?:[\\/]*) | |
3889 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
3890 | ;; | |
3891 | *) | |
3892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3893 | for as_dir in $PATH | |
3894 | do | |
3895 | IFS=$as_save_IFS | |
3896 | test -z "$as_dir" && as_dir=. | |
3897 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3899 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
3900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3901 | break 2 | |
3902 | fi | |
3903 | done | |
3904 | done | |
3905 | IFS=$as_save_IFS | |
3906 | ||
3907 | ;; | |
3908 | esac | |
3909 | fi | |
3910 | MV=$ac_cv_path_MV | |
3911 | if test -n "$MV"; then | |
3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
3913 | $as_echo "$MV" >&6; } | |
3914 | else | |
3915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3916 | $as_echo "no" >&6; } | |
3917 | fi | |
3918 | ||
3919 | ||
3920 | # Extract the first word of "rm", so it can be a program name with args. | |
3921 | set dummy rm; ac_word=$2 | |
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3923 | $as_echo_n "checking for $ac_word... " >&6; } | |
3924 | if ${ac_cv_path_RM+:} false; then : | |
3925 | $as_echo_n "(cached) " >&6 | |
3926 | else | |
3927 | case $RM in | |
3928 | [\\/]* | ?:[\\/]*) | |
3929 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
3930 | ;; | |
3931 | *) | |
3932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3933 | for as_dir in $PATH | |
3934 | do | |
3935 | IFS=$as_save_IFS | |
3936 | test -z "$as_dir" && as_dir=. | |
3937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3938 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3939 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
3940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3941 | break 2 | |
3942 | fi | |
3943 | done | |
3944 | done | |
3945 | IFS=$as_save_IFS | |
3946 | ||
3947 | ;; | |
3948 | esac | |
3949 | fi | |
3950 | RM=$ac_cv_path_RM | |
3951 | if test -n "$RM"; then | |
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
3953 | $as_echo "$RM" >&6; } | |
3954 | else | |
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3956 | $as_echo "no" >&6; } | |
3957 | fi | |
3958 | ||
3959 | ||
3960 | # Extract the first word of "rmdir", so it can be a program name with args. | |
3961 | set dummy rmdir; ac_word=$2 | |
3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3963 | $as_echo_n "checking for $ac_word... " >&6; } | |
3964 | if ${ac_cv_path_RMDIR+:} false; then : | |
3965 | $as_echo_n "(cached) " >&6 | |
3966 | else | |
3967 | case $RMDIR in | |
3968 | [\\/]* | ?:[\\/]*) | |
3969 | ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. | |
3970 | ;; | |
3971 | *) | |
3972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3973 | for as_dir in $PATH | |
3974 | do | |
3975 | IFS=$as_save_IFS | |
3976 | test -z "$as_dir" && as_dir=. | |
3977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3979 | ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" | |
3980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3981 | break 2 | |
3982 | fi | |
3983 | done | |
3984 | done | |
3985 | IFS=$as_save_IFS | |
3986 | ||
3987 | ;; | |
3988 | esac | |
3989 | fi | |
3990 | RMDIR=$ac_cv_path_RMDIR | |
3991 | if test -n "$RMDIR"; then | |
3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 | |
3993 | $as_echo "$RMDIR" >&6; } | |
3994 | else | |
3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3996 | $as_echo "no" >&6; } | |
3997 | fi | |
3998 | ||
3999 | ||
4000 | # Extract the first word of "sed", so it can be a program name with args. | |
4001 | set dummy sed; ac_word=$2 | |
4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4003 | $as_echo_n "checking for $ac_word... " >&6; } | |
4004 | if ${ac_cv_path_SED+:} false; then : | |
4005 | $as_echo_n "(cached) " >&6 | |
4006 | else | |
4007 | case $SED in | |
4008 | [\\/]* | ?:[\\/]*) | |
4009 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
4010 | ;; | |
4011 | *) | |
4012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4013 | for as_dir in $PATH | |
4014 | do | |
4015 | IFS=$as_save_IFS | |
4016 | test -z "$as_dir" && as_dir=. | |
4017 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4018 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4019 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | |
4020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4021 | break 2 | |
4022 | fi | |
4023 | done | |
4024 | done | |
4025 | IFS=$as_save_IFS | |
4026 | ||
4027 | ;; | |
4028 | esac | |
4029 | fi | |
4030 | SED=$ac_cv_path_SED | |
4031 | if test -n "$SED"; then | |
4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
4033 | $as_echo "$SED" >&6; } | |
4034 | else | |
4035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4036 | $as_echo "no" >&6; } | |
4037 | fi | |
4038 | ||
4039 | ||
4040 | # Extract the first word of "xdg-open", so it can be a program name with args. | |
4041 | set dummy xdg-open; ac_word=$2 | |
4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4043 | $as_echo_n "checking for $ac_word... " >&6; } | |
4044 | if ${ac_cv_path_XDGOPEN+:} false; then : | |
4045 | $as_echo_n "(cached) " >&6 | |
4046 | else | |
4047 | case $XDGOPEN in | |
4048 | [\\/]* | ?:[\\/]*) | |
4049 | ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path. | |
4050 | ;; | |
4051 | *) | |
4052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4053 | for as_dir in $PATH | |
4054 | do | |
4055 | IFS=$as_save_IFS | |
4056 | test -z "$as_dir" && as_dir=. | |
4057 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4059 | ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext" | |
4060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4061 | break 2 | |
4062 | fi | |
4063 | done | |
4064 | done | |
4065 | IFS=$as_save_IFS | |
4066 | ||
4067 | ;; | |
4068 | esac | |
4069 | fi | |
4070 | XDGOPEN=$ac_cv_path_XDGOPEN | |
4071 | if test -n "$XDGOPEN"; then | |
4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5 | |
4073 | $as_echo "$XDGOPEN" >&6; } | |
4074 | else | |
4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4076 | $as_echo "no" >&6; } | |
4077 | fi | |
4078 | ||
4079 | ||
4080 | if test "x$XDGOPEN" = x; then | |
4081 | CUPS_HTMLVIEW="htmlview" | |
4082 | else | |
4083 | CUPS_HTMLVIEW="$XDGOPEN" | |
4084 | fi | |
4085 | ||
4086 | ||
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5 | |
4088 | $as_echo_n "checking for install-sh script... " >&6; } | |
4089 | INSTALL="`pwd`/install-sh" | |
4090 | ||
4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5 | |
4092 | $as_echo "using $INSTALL" >&6; } | |
4093 | ||
4094 | if test "x$AR" = x; then | |
4095 | as_fn_error $? "Unable to find required library archive command." "$LINENO" 5 | |
4096 | fi | |
4097 | if test "x$CC" = x; then | |
4098 | as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5 | |
4099 | fi | |
4100 | ||
4101 | INSTALLSTATIC="" | |
4102 | # Check whether --enable-static was given. | |
4103 | if test "${enable_static+set}" = set; then : | |
4104 | enableval=$enable_static; | |
4105 | fi | |
4106 | ||
4107 | ||
4108 | if test x$enable_static = xyes; then | |
4109 | echo Installing static libraries... | |
4110 | INSTALLSTATIC="installstatic" | |
4111 | fi | |
4112 | ||
4113 | ||
4114 | ||
1a18c85c MS |
4115 | if test -n "$ac_tool_prefix"; then |
4116 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
4117 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
61515785 MS |
4118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4119 | $as_echo_n "checking for $ac_word... " >&6; } | |
4120 | if ${ac_cv_path_PKGCONFIG+:} false; then : | |
4121 | $as_echo_n "(cached) " >&6 | |
4122 | else | |
4123 | case $PKGCONFIG in | |
4124 | [\\/]* | ?:[\\/]*) | |
4125 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | |
4126 | ;; | |
4127 | *) | |
4128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4129 | for as_dir in $PATH | |
4130 | do | |
4131 | IFS=$as_save_IFS | |
4132 | test -z "$as_dir" && as_dir=. | |
4133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4135 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4137 | break 2 | |
4138 | fi | |
4139 | done | |
4140 | done | |
4141 | IFS=$as_save_IFS | |
4142 | ||
4143 | ;; | |
4144 | esac | |
4145 | fi | |
4146 | PKGCONFIG=$ac_cv_path_PKGCONFIG | |
4147 | if test -n "$PKGCONFIG"; then | |
4148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 | |
4149 | $as_echo "$PKGCONFIG" >&6; } | |
4150 | else | |
4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4152 | $as_echo "no" >&6; } | |
4153 | fi | |
4154 | ||
4155 | ||
1a18c85c MS |
4156 | fi |
4157 | if test -z "$ac_cv_path_PKGCONFIG"; then | |
4158 | ac_pt_PKGCONFIG=$PKGCONFIG | |
4159 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
4160 | set dummy pkg-config; ac_word=$2 | |
4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4162 | $as_echo_n "checking for $ac_word... " >&6; } | |
4163 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : | |
4164 | $as_echo_n "(cached) " >&6 | |
4165 | else | |
4166 | case $ac_pt_PKGCONFIG in | |
4167 | [\\/]* | ?:[\\/]*) | |
4168 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | |
4169 | ;; | |
4170 | *) | |
4171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4172 | for as_dir in $PATH | |
4173 | do | |
4174 | IFS=$as_save_IFS | |
4175 | test -z "$as_dir" && as_dir=. | |
4176 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4177 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4178 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4180 | break 2 | |
4181 | fi | |
4182 | done | |
4183 | done | |
4184 | IFS=$as_save_IFS | |
4185 | ||
4186 | ;; | |
4187 | esac | |
4188 | fi | |
4189 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | |
4190 | if test -n "$ac_pt_PKGCONFIG"; then | |
4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 | |
4192 | $as_echo "$ac_pt_PKGCONFIG" >&6; } | |
4193 | else | |
4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4195 | $as_echo "no" >&6; } | |
4196 | fi | |
4197 | ||
4198 | if test "x$ac_pt_PKGCONFIG" = x; then | |
4199 | PKGCONFIG="" | |
4200 | else | |
4201 | case $cross_compiling:$ac_tool_warned in | |
4202 | yes:) | |
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4204 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4205 | ac_tool_warned=yes ;; | |
4206 | esac | |
4207 | PKGCONFIG=$ac_pt_PKGCONFIG | |
4208 | fi | |
4209 | else | |
4210 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | |
4211 | fi | |
4212 | ||
61515785 MS |
4213 | |
4214 | ||
4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5 | |
4216 | $as_echo_n "checking for library containing abs... " >&6; } | |
4217 | if ${ac_cv_search_abs+:} false; then : | |
4218 | $as_echo_n "(cached) " >&6 | |
4219 | else | |
4220 | ac_func_search_save_LIBS=$LIBS | |
4221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4222 | /* end confdefs.h. */ | |
4223 | ||
4224 | /* Override any GCC internal prototype to avoid an error. | |
4225 | Use char because int might match the return type of a GCC | |
4226 | builtin and then its argument prototype would still apply. */ | |
4227 | #ifdef __cplusplus | |
4228 | extern "C" | |
4229 | #endif | |
4230 | char abs (); | |
4231 | int | |
4232 | main () | |
4233 | { | |
4234 | return abs (); | |
4235 | ; | |
4236 | return 0; | |
4237 | } | |
4238 | _ACEOF | |
4239 | for ac_lib in '' m; do | |
4240 | if test -z "$ac_lib"; then | |
4241 | ac_res="none required" | |
4242 | else | |
4243 | ac_res=-l$ac_lib | |
4244 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4245 | fi | |
4246 | if ac_fn_c_try_link "$LINENO"; then : | |
4247 | ac_cv_search_abs=$ac_res | |
4248 | fi | |
4249 | rm -f core conftest.err conftest.$ac_objext \ | |
4250 | conftest$ac_exeext | |
4251 | if ${ac_cv_search_abs+:} false; then : | |
4252 | break | |
4253 | fi | |
4254 | done | |
4255 | if ${ac_cv_search_abs+:} false; then : | |
4256 | ||
4257 | else | |
4258 | ac_cv_search_abs=no | |
4259 | fi | |
4260 | rm conftest.$ac_ext | |
4261 | LIBS=$ac_func_search_save_LIBS | |
4262 | fi | |
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5 | |
4264 | $as_echo "$ac_cv_search_abs" >&6; } | |
4265 | ac_res=$ac_cv_search_abs | |
4266 | if test "$ac_res" != no; then : | |
4267 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4268 | $as_echo "#define HAVE_ABS 1" >>confdefs.h | |
4269 | ||
4270 | fi | |
4271 | ||
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 | |
4273 | $as_echo_n "checking for library containing crypt... " >&6; } | |
4274 | if ${ac_cv_search_crypt+:} false; then : | |
4275 | $as_echo_n "(cached) " >&6 | |
4276 | else | |
4277 | ac_func_search_save_LIBS=$LIBS | |
4278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4279 | /* end confdefs.h. */ | |
4280 | ||
4281 | /* Override any GCC internal prototype to avoid an error. | |
4282 | Use char because int might match the return type of a GCC | |
4283 | builtin and then its argument prototype would still apply. */ | |
4284 | #ifdef __cplusplus | |
4285 | extern "C" | |
4286 | #endif | |
4287 | char crypt (); | |
4288 | int | |
4289 | main () | |
4290 | { | |
4291 | return crypt (); | |
4292 | ; | |
4293 | return 0; | |
4294 | } | |
4295 | _ACEOF | |
4296 | for ac_lib in '' crypt; do | |
4297 | if test -z "$ac_lib"; then | |
4298 | ac_res="none required" | |
4299 | else | |
4300 | ac_res=-l$ac_lib | |
4301 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4302 | fi | |
4303 | if ac_fn_c_try_link "$LINENO"; then : | |
4304 | ac_cv_search_crypt=$ac_res | |
4305 | fi | |
4306 | rm -f core conftest.err conftest.$ac_objext \ | |
4307 | conftest$ac_exeext | |
4308 | if ${ac_cv_search_crypt+:} false; then : | |
4309 | break | |
4310 | fi | |
4311 | done | |
4312 | if ${ac_cv_search_crypt+:} false; then : | |
4313 | ||
4314 | else | |
4315 | ac_cv_search_crypt=no | |
4316 | fi | |
4317 | rm conftest.$ac_ext | |
4318 | LIBS=$ac_func_search_save_LIBS | |
4319 | fi | |
4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
4321 | $as_echo "$ac_cv_search_crypt" >&6; } | |
4322 | ac_res=$ac_cv_search_crypt | |
4323 | if test "$ac_res" != no; then : | |
4324 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4325 | ||
4326 | fi | |
4327 | ||
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5 | |
4329 | $as_echo_n "checking for library containing fmod... " >&6; } | |
4330 | if ${ac_cv_search_fmod+:} false; then : | |
4331 | $as_echo_n "(cached) " >&6 | |
4332 | else | |
4333 | ac_func_search_save_LIBS=$LIBS | |
4334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4335 | /* end confdefs.h. */ | |
4336 | ||
4337 | /* Override any GCC internal prototype to avoid an error. | |
4338 | Use char because int might match the return type of a GCC | |
4339 | builtin and then its argument prototype would still apply. */ | |
4340 | #ifdef __cplusplus | |
4341 | extern "C" | |
4342 | #endif | |
4343 | char fmod (); | |
4344 | int | |
4345 | main () | |
4346 | { | |
4347 | return fmod (); | |
4348 | ; | |
4349 | return 0; | |
4350 | } | |
4351 | _ACEOF | |
4352 | for ac_lib in '' m; do | |
4353 | if test -z "$ac_lib"; then | |
4354 | ac_res="none required" | |
4355 | else | |
4356 | ac_res=-l$ac_lib | |
4357 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4358 | fi | |
4359 | if ac_fn_c_try_link "$LINENO"; then : | |
4360 | ac_cv_search_fmod=$ac_res | |
4361 | fi | |
4362 | rm -f core conftest.err conftest.$ac_objext \ | |
4363 | conftest$ac_exeext | |
4364 | if ${ac_cv_search_fmod+:} false; then : | |
4365 | break | |
4366 | fi | |
4367 | done | |
4368 | if ${ac_cv_search_fmod+:} false; then : | |
4369 | ||
4370 | else | |
4371 | ac_cv_search_fmod=no | |
4372 | fi | |
4373 | rm conftest.$ac_ext | |
4374 | LIBS=$ac_func_search_save_LIBS | |
4375 | fi | |
4376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5 | |
4377 | $as_echo "$ac_cv_search_fmod" >&6; } | |
4378 | ac_res=$ac_cv_search_fmod | |
4379 | if test "$ac_res" != no; then : | |
4380 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4381 | ||
4382 | fi | |
4383 | ||
4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5 | |
4385 | $as_echo_n "checking for library containing getspent... " >&6; } | |
4386 | if ${ac_cv_search_getspent+:} false; then : | |
4387 | $as_echo_n "(cached) " >&6 | |
4388 | else | |
4389 | ac_func_search_save_LIBS=$LIBS | |
4390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4391 | /* end confdefs.h. */ | |
4392 | ||
4393 | /* Override any GCC internal prototype to avoid an error. | |
4394 | Use char because int might match the return type of a GCC | |
4395 | builtin and then its argument prototype would still apply. */ | |
4396 | #ifdef __cplusplus | |
4397 | extern "C" | |
4398 | #endif | |
4399 | char getspent (); | |
4400 | int | |
4401 | main () | |
4402 | { | |
4403 | return getspent (); | |
4404 | ; | |
4405 | return 0; | |
4406 | } | |
4407 | _ACEOF | |
4408 | for ac_lib in '' sec gen; do | |
4409 | if test -z "$ac_lib"; then | |
4410 | ac_res="none required" | |
4411 | else | |
4412 | ac_res=-l$ac_lib | |
4413 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4414 | fi | |
4415 | if ac_fn_c_try_link "$LINENO"; then : | |
4416 | ac_cv_search_getspent=$ac_res | |
4417 | fi | |
4418 | rm -f core conftest.err conftest.$ac_objext \ | |
4419 | conftest$ac_exeext | |
4420 | if ${ac_cv_search_getspent+:} false; then : | |
4421 | break | |
4422 | fi | |
4423 | done | |
4424 | if ${ac_cv_search_getspent+:} false; then : | |
4425 | ||
4426 | else | |
4427 | ac_cv_search_getspent=no | |
4428 | fi | |
4429 | rm conftest.$ac_ext | |
4430 | LIBS=$ac_func_search_save_LIBS | |
4431 | fi | |
4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5 | |
4433 | $as_echo "$ac_cv_search_getspent" >&6; } | |
4434 | ac_res=$ac_cv_search_getspent | |
4435 | if test "$ac_res" != no; then : | |
4436 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4437 | ||
4438 | fi | |
4439 | ||
4440 | ||
4441 | LIBMALLOC="" | |
4442 | # Check whether --enable-mallinfo was given. | |
4443 | if test "${enable_mallinfo+set}" = set; then : | |
4444 | enableval=$enable_mallinfo; | |
4445 | fi | |
4446 | ||
4447 | ||
4448 | if test x$enable_mallinfo = xyes; then | |
4449 | SAVELIBS="$LIBS" | |
4450 | LIBS="" | |
4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5 | |
4452 | $as_echo_n "checking for library containing mallinfo... " >&6; } | |
4453 | if ${ac_cv_search_mallinfo+:} false; then : | |
4454 | $as_echo_n "(cached) " >&6 | |
4455 | else | |
4456 | ac_func_search_save_LIBS=$LIBS | |
4457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4458 | /* end confdefs.h. */ | |
4459 | ||
4460 | /* Override any GCC internal prototype to avoid an error. | |
4461 | Use char because int might match the return type of a GCC | |
4462 | builtin and then its argument prototype would still apply. */ | |
4463 | #ifdef __cplusplus | |
4464 | extern "C" | |
4465 | #endif | |
4466 | char mallinfo (); | |
4467 | int | |
4468 | main () | |
4469 | { | |
4470 | return mallinfo (); | |
4471 | ; | |
4472 | return 0; | |
4473 | } | |
4474 | _ACEOF | |
4475 | for ac_lib in '' malloc; do | |
4476 | if test -z "$ac_lib"; then | |
4477 | ac_res="none required" | |
4478 | else | |
4479 | ac_res=-l$ac_lib | |
4480 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4481 | fi | |
4482 | if ac_fn_c_try_link "$LINENO"; then : | |
4483 | ac_cv_search_mallinfo=$ac_res | |
4484 | fi | |
4485 | rm -f core conftest.err conftest.$ac_objext \ | |
4486 | conftest$ac_exeext | |
4487 | if ${ac_cv_search_mallinfo+:} false; then : | |
4488 | break | |
4489 | fi | |
4490 | done | |
4491 | if ${ac_cv_search_mallinfo+:} false; then : | |
4492 | ||
4493 | else | |
4494 | ac_cv_search_mallinfo=no | |
4495 | fi | |
4496 | rm conftest.$ac_ext | |
4497 | LIBS=$ac_func_search_save_LIBS | |
4498 | fi | |
4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5 | |
4500 | $as_echo "$ac_cv_search_mallinfo" >&6; } | |
4501 | ac_res=$ac_cv_search_mallinfo | |
4502 | if test "$ac_res" != no; then : | |
4503 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4504 | $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h | |
4505 | ||
4506 | fi | |
4507 | ||
4508 | LIBMALLOC="$LIBS" | |
4509 | LIBS="$SAVELIBS" | |
4510 | fi | |
4511 | ||
4512 | ||
4513 | ||
4514 | # Check whether --enable-libpaper was given. | |
4515 | if test "${enable_libpaper+set}" = set; then : | |
4516 | enableval=$enable_libpaper; | |
4517 | fi | |
4518 | ||
4519 | ||
4520 | if test x$enable_libpaper = xyes; then | |
4521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5 | |
4522 | $as_echo_n "checking for systempapername in -lpaper... " >&6; } | |
4523 | if ${ac_cv_lib_paper_systempapername+:} false; then : | |
4524 | $as_echo_n "(cached) " >&6 | |
4525 | else | |
4526 | ac_check_lib_save_LIBS=$LIBS | |
4527 | LIBS="-lpaper $LIBS" | |
4528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4529 | /* end confdefs.h. */ | |
4530 | ||
4531 | /* Override any GCC internal prototype to avoid an error. | |
4532 | Use char because int might match the return type of a GCC | |
4533 | builtin and then its argument prototype would still apply. */ | |
4534 | #ifdef __cplusplus | |
4535 | extern "C" | |
4536 | #endif | |
4537 | char systempapername (); | |
4538 | int | |
4539 | main () | |
4540 | { | |
4541 | return systempapername (); | |
4542 | ; | |
4543 | return 0; | |
4544 | } | |
4545 | _ACEOF | |
4546 | if ac_fn_c_try_link "$LINENO"; then : | |
4547 | ac_cv_lib_paper_systempapername=yes | |
4548 | else | |
4549 | ac_cv_lib_paper_systempapername=no | |
4550 | fi | |
4551 | rm -f core conftest.err conftest.$ac_objext \ | |
4552 | conftest$ac_exeext conftest.$ac_ext | |
4553 | LIBS=$ac_check_lib_save_LIBS | |
4554 | fi | |
4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5 | |
4556 | $as_echo "$ac_cv_lib_paper_systempapername" >&6; } | |
4557 | if test "x$ac_cv_lib_paper_systempapername" = xyes; then : | |
4558 | $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h | |
4559 | ||
4560 | LIBPAPER="-lpaper" | |
4561 | else | |
4562 | LIBPAPER="" | |
4563 | fi | |
4564 | ||
4565 | else | |
4566 | LIBPAPER="" | |
4567 | fi | |
4568 | ||
4569 | ||
4570 | ||
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4572 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4573 | if ${ac_cv_path_GREP+:} false; then : | |
4574 | $as_echo_n "(cached) " >&6 | |
4575 | else | |
4576 | if test -z "$GREP"; then | |
4577 | ac_path_GREP_found=false | |
4578 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4580 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4581 | do | |
4582 | IFS=$as_save_IFS | |
4583 | test -z "$as_dir" && as_dir=. | |
4584 | for ac_prog in grep ggrep; do | |
4585 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4586 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4587 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4588 | # Check for GNU ac_path_GREP and select it if it is found. | |
4589 | # Check for GNU $ac_path_GREP | |
4590 | case `"$ac_path_GREP" --version 2>&1` in | |
4591 | *GNU*) | |
4592 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4593 | *) | |
4594 | ac_count=0 | |
4595 | $as_echo_n 0123456789 >"conftest.in" | |
4596 | while : | |
4597 | do | |
4598 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4599 | mv "conftest.tmp" "conftest.in" | |
4600 | cp "conftest.in" "conftest.nl" | |
4601 | $as_echo 'GREP' >> "conftest.nl" | |
4602 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4603 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4604 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4605 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4606 | # Best one so far, save it but keep looking for a better one | |
4607 | ac_cv_path_GREP="$ac_path_GREP" | |
4608 | ac_path_GREP_max=$ac_count | |
4609 | fi | |
4610 | # 10*(2^10) chars as input seems more than enough | |
4611 | test $ac_count -gt 10 && break | |
4612 | done | |
4613 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4614 | esac | |
4615 | ||
4616 | $ac_path_GREP_found && break 3 | |
4617 | done | |
4618 | done | |
4619 | done | |
4620 | IFS=$as_save_IFS | |
4621 | if test -z "$ac_cv_path_GREP"; then | |
4622 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4623 | fi | |
4624 | else | |
4625 | ac_cv_path_GREP=$GREP | |
4626 | fi | |
4627 | ||
4628 | fi | |
4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4630 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4631 | GREP="$ac_cv_path_GREP" | |
4632 | ||
4633 | ||
4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4635 | $as_echo_n "checking for egrep... " >&6; } | |
4636 | if ${ac_cv_path_EGREP+:} false; then : | |
4637 | $as_echo_n "(cached) " >&6 | |
4638 | else | |
4639 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4640 | then ac_cv_path_EGREP="$GREP -E" | |
4641 | else | |
4642 | if test -z "$EGREP"; then | |
4643 | ac_path_EGREP_found=false | |
4644 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4646 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4647 | do | |
4648 | IFS=$as_save_IFS | |
4649 | test -z "$as_dir" && as_dir=. | |
4650 | for ac_prog in egrep; do | |
4651 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4652 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4653 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4654 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4655 | # Check for GNU $ac_path_EGREP | |
4656 | case `"$ac_path_EGREP" --version 2>&1` in | |
4657 | *GNU*) | |
4658 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4659 | *) | |
4660 | ac_count=0 | |
4661 | $as_echo_n 0123456789 >"conftest.in" | |
4662 | while : | |
4663 | do | |
4664 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4665 | mv "conftest.tmp" "conftest.in" | |
4666 | cp "conftest.in" "conftest.nl" | |
4667 | $as_echo 'EGREP' >> "conftest.nl" | |
4668 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4669 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4670 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4671 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4672 | # Best one so far, save it but keep looking for a better one | |
4673 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4674 | ac_path_EGREP_max=$ac_count | |
4675 | fi | |
4676 | # 10*(2^10) chars as input seems more than enough | |
4677 | test $ac_count -gt 10 && break | |
4678 | done | |
4679 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4680 | esac | |
4681 | ||
4682 | $ac_path_EGREP_found && break 3 | |
4683 | done | |
4684 | done | |
4685 | done | |
4686 | IFS=$as_save_IFS | |
4687 | if test -z "$ac_cv_path_EGREP"; then | |
4688 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4689 | fi | |
4690 | else | |
4691 | ac_cv_path_EGREP=$EGREP | |
4692 | fi | |
4693 | ||
4694 | fi | |
4695 | fi | |
4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4697 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4698 | EGREP="$ac_cv_path_EGREP" | |
4699 | ||
4700 | ||
4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4702 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4703 | if ${ac_cv_header_stdc+:} false; then : | |
4704 | $as_echo_n "(cached) " >&6 | |
4705 | else | |
4706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4707 | /* end confdefs.h. */ | |
4708 | #include <stdlib.h> | |
4709 | #include <stdarg.h> | |
4710 | #include <string.h> | |
4711 | #include <float.h> | |
4712 | ||
4713 | int | |
4714 | main () | |
4715 | { | |
4716 | ||
4717 | ; | |
4718 | return 0; | |
4719 | } | |
4720 | _ACEOF | |
4721 | if ac_fn_c_try_compile "$LINENO"; then : | |
4722 | ac_cv_header_stdc=yes | |
4723 | else | |
4724 | ac_cv_header_stdc=no | |
4725 | fi | |
4726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4727 | ||
4728 | if test $ac_cv_header_stdc = yes; then | |
4729 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4731 | /* end confdefs.h. */ | |
4732 | #include <string.h> | |
4733 | ||
4734 | _ACEOF | |
4735 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4736 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4737 | ||
4738 | else | |
4739 | ac_cv_header_stdc=no | |
4740 | fi | |
4741 | rm -f conftest* | |
4742 | ||
4743 | fi | |
4744 | ||
4745 | if test $ac_cv_header_stdc = yes; then | |
4746 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4748 | /* end confdefs.h. */ | |
4749 | #include <stdlib.h> | |
4750 | ||
4751 | _ACEOF | |
4752 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4753 | $EGREP "free" >/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 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4764 | if test "$cross_compiling" = yes; then : | |
4765 | : | |
4766 | else | |
4767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4768 | /* end confdefs.h. */ | |
4769 | #include <ctype.h> | |
4770 | #include <stdlib.h> | |
4771 | #if ((' ' & 0x0FF) == 0x020) | |
4772 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4773 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4774 | #else | |
4775 | # define ISLOWER(c) \ | |
4776 | (('a' <= (c) && (c) <= 'i') \ | |
4777 | || ('j' <= (c) && (c) <= 'r') \ | |
4778 | || ('s' <= (c) && (c) <= 'z')) | |
4779 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4780 | #endif | |
4781 | ||
4782 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4783 | int | |
4784 | main () | |
4785 | { | |
4786 | int i; | |
4787 | for (i = 0; i < 256; i++) | |
4788 | if (XOR (islower (i), ISLOWER (i)) | |
4789 | || toupper (i) != TOUPPER (i)) | |
4790 | return 2; | |
4791 | return 0; | |
4792 | } | |
4793 | _ACEOF | |
4794 | if ac_fn_c_try_run "$LINENO"; then : | |
4795 | ||
4796 | else | |
4797 | ac_cv_header_stdc=no | |
4798 | fi | |
4799 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4800 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4801 | fi | |
4802 | ||
4803 | fi | |
4804 | fi | |
4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4806 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4807 | if test $ac_cv_header_stdc = yes; then | |
4808 | ||
4809 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4810 | ||
4811 | fi | |
4812 | ||
4813 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4814 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4815 | inttypes.h stdint.h unistd.h | |
4816 | do : | |
4817 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4818 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4819 | " | |
4820 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4821 | cat >>confdefs.h <<_ACEOF | |
4822 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4823 | _ACEOF | |
4824 | ||
4825 | fi | |
4826 | ||
4827 | done | |
4828 | ||
4829 | ||
4830 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
4831 | if test "x$ac_cv_header_stdlib_h" = xyes; then : | |
4832 | $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h | |
4833 | ||
4834 | fi | |
4835 | ||
4836 | ||
4837 | ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" | |
4838 | if test "x$ac_cv_header_crypt_h" = xyes; then : | |
4839 | $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h | |
4840 | ||
4841 | fi | |
4842 | ||
4843 | ||
4844 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" | |
4845 | if test "x$ac_cv_header_langinfo_h" = xyes; then : | |
4846 | $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h | |
4847 | ||
4848 | fi | |
4849 | ||
4850 | ||
4851 | ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" | |
4852 | if test "x$ac_cv_header_malloc_h" = xyes; then : | |
4853 | $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h | |
4854 | ||
4855 | fi | |
4856 | ||
4857 | ||
4858 | ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" | |
4859 | if test "x$ac_cv_header_shadow_h" = xyes; then : | |
4860 | $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h | |
4861 | ||
4862 | fi | |
4863 | ||
4864 | ||
4865 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
4866 | if test "x$ac_cv_header_stdint_h" = xyes; then : | |
4867 | $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h | |
4868 | ||
4869 | fi | |
4870 | ||
4871 | ||
4872 | ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" | |
4873 | if test "x$ac_cv_header_string_h" = xyes; then : | |
4874 | $as_echo "#define HAVE_STRING_H 1" >>confdefs.h | |
4875 | ||
4876 | fi | |
4877 | ||
4878 | ||
4879 | ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" | |
4880 | if test "x$ac_cv_header_strings_h" = xyes; then : | |
4881 | $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h | |
4882 | ||
4883 | fi | |
4884 | ||
4885 | ||
4886 | ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default" | |
4887 | if test "x$ac_cv_header_bstring_h" = xyes; then : | |
4888 | $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h | |
4889 | ||
4890 | fi | |
4891 | ||
4892 | ||
61515785 MS |
4893 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
4894 | if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : | |
4895 | $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h | |
4896 | ||
4897 | fi | |
4898 | ||
4899 | ||
4900 | ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" | |
4901 | if test "x$ac_cv_header_sys_param_h" = xyes; then : | |
4902 | $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h | |
4903 | ||
4904 | fi | |
4905 | ||
4906 | ||
4907 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default" | |
4908 | if test "x$ac_cv_header_sys_ucred_h" = xyes; then : | |
4909 | $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h | |
4910 | ||
4911 | fi | |
4912 | ||
4913 | ||
61515785 MS |
4914 | |
4915 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" | |
4916 | if test "x$ac_cv_header_iconv_h" = xyes; then : | |
4917 | SAVELIBS="$LIBS" | |
4918 | LIBS="" | |
4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5 | |
4920 | $as_echo_n "checking for library containing iconv_open... " >&6; } | |
4921 | if ${ac_cv_search_iconv_open+:} false; then : | |
4922 | $as_echo_n "(cached) " >&6 | |
4923 | else | |
4924 | ac_func_search_save_LIBS=$LIBS | |
4925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4926 | /* end confdefs.h. */ | |
4927 | ||
4928 | /* Override any GCC internal prototype to avoid an error. | |
4929 | Use char because int might match the return type of a GCC | |
4930 | builtin and then its argument prototype would still apply. */ | |
4931 | #ifdef __cplusplus | |
4932 | extern "C" | |
4933 | #endif | |
4934 | char iconv_open (); | |
4935 | int | |
4936 | main () | |
4937 | { | |
4938 | return iconv_open (); | |
4939 | ; | |
4940 | return 0; | |
4941 | } | |
4942 | _ACEOF | |
4943 | for ac_lib in '' iconv; do | |
4944 | if test -z "$ac_lib"; then | |
4945 | ac_res="none required" | |
4946 | else | |
4947 | ac_res=-l$ac_lib | |
4948 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4949 | fi | |
4950 | if ac_fn_c_try_link "$LINENO"; then : | |
4951 | ac_cv_search_iconv_open=$ac_res | |
4952 | fi | |
4953 | rm -f core conftest.err conftest.$ac_objext \ | |
4954 | conftest$ac_exeext | |
4955 | if ${ac_cv_search_iconv_open+:} false; then : | |
4956 | break | |
4957 | fi | |
4958 | done | |
4959 | if ${ac_cv_search_iconv_open+:} false; then : | |
4960 | ||
4961 | else | |
4962 | ac_cv_search_iconv_open=no | |
4963 | fi | |
4964 | rm conftest.$ac_ext | |
4965 | LIBS=$ac_func_search_save_LIBS | |
4966 | fi | |
4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5 | |
4968 | $as_echo "$ac_cv_search_iconv_open" >&6; } | |
4969 | ac_res=$ac_cv_search_iconv_open | |
4970 | if test "$ac_res" != no; then : | |
4971 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4972 | $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h | |
4973 | ||
4974 | SAVELIBS="$SAVELIBS $LIBS" | |
4975 | fi | |
4976 | ||
4977 | LIBS="$SAVELIBS" | |
4978 | fi | |
4979 | ||
4980 | ||
4981 | ||
4982 | LIBMXML="" | |
4983 | ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default" | |
4984 | if test "x$ac_cv_header_mxml_h" = xyes; then : | |
4985 | SAVELIBS="$LIBS" | |
4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5 | |
4987 | $as_echo_n "checking for library containing mmxlNewElement... " >&6; } | |
4988 | if ${ac_cv_search_mmxlNewElement+:} false; then : | |
4989 | $as_echo_n "(cached) " >&6 | |
4990 | else | |
4991 | ac_func_search_save_LIBS=$LIBS | |
4992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4993 | /* end confdefs.h. */ | |
4994 | ||
4995 | /* Override any GCC internal prototype to avoid an error. | |
4996 | Use char because int might match the return type of a GCC | |
4997 | builtin and then its argument prototype would still apply. */ | |
4998 | #ifdef __cplusplus | |
4999 | extern "C" | |
5000 | #endif | |
5001 | char mmxlNewElement (); | |
5002 | int | |
5003 | main () | |
5004 | { | |
5005 | return mmxlNewElement (); | |
5006 | ; | |
5007 | return 0; | |
5008 | } | |
5009 | _ACEOF | |
5010 | for ac_lib in '' mxml; do | |
5011 | if test -z "$ac_lib"; then | |
5012 | ac_res="none required" | |
5013 | else | |
5014 | ac_res=-l$ac_lib | |
5015 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5016 | fi | |
5017 | if ac_fn_c_try_link "$LINENO"; then : | |
5018 | ac_cv_search_mmxlNewElement=$ac_res | |
5019 | fi | |
5020 | rm -f core conftest.err conftest.$ac_objext \ | |
5021 | conftest$ac_exeext | |
5022 | if ${ac_cv_search_mmxlNewElement+:} false; then : | |
5023 | break | |
5024 | fi | |
5025 | done | |
5026 | if ${ac_cv_search_mmxlNewElement+:} false; then : | |
5027 | ||
5028 | else | |
5029 | ac_cv_search_mmxlNewElement=no | |
5030 | fi | |
5031 | rm conftest.$ac_ext | |
5032 | LIBS=$ac_func_search_save_LIBS | |
5033 | fi | |
5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5 | |
5035 | $as_echo "$ac_cv_search_mmxlNewElement" >&6; } | |
5036 | ac_res=$ac_cv_search_mmxlNewElement | |
5037 | if test "$ac_res" != no; then : | |
5038 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5039 | $as_echo "#define HAVE_MXML_H 1" >>confdefs.h | |
5040 | ||
5041 | LIBMXML="-lmxml" | |
5042 | fi | |
5043 | ||
5044 | LIBS="$SAVELIBS" | |
5045 | fi | |
5046 | ||
5047 | ||
5048 | ||
5049 | ||
5050 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" | |
5051 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | |
5052 | $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h | |
5053 | ||
5054 | fi | |
5055 | ||
5056 | ||
5057 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" | |
5058 | if test "x$ac_cv_header_sys_statfs_h" = xyes; then : | |
5059 | $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h | |
5060 | ||
5061 | fi | |
5062 | ||
5063 | ||
5064 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" | |
5065 | if test "x$ac_cv_header_sys_statvfs_h" = xyes; then : | |
5066 | $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h | |
5067 | ||
5068 | fi | |
5069 | ||
5070 | ||
5071 | ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" | |
5072 | if test "x$ac_cv_header_sys_vfs_h" = xyes; then : | |
5073 | $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h | |
5074 | ||
5075 | fi | |
5076 | ||
5077 | ||
5078 | for ac_func in statfs statvfs | |
5079 | do : | |
5080 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5081 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5082 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5083 | cat >>confdefs.h <<_ACEOF | |
5084 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5085 | _ACEOF | |
5086 | ||
5087 | fi | |
5088 | done | |
5089 | ||
5090 | ||
5091 | for ac_func in strdup strlcat strlcpy | |
5092 | do : | |
5093 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5094 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5095 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5096 | cat >>confdefs.h <<_ACEOF | |
5097 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5098 | _ACEOF | |
5099 | ||
5100 | fi | |
5101 | done | |
5102 | ||
5103 | if test "$uname" = "HP-UX" -a "$uversion" = "1020"; then | |
5104 | echo Forcing snprintf emulation for HP-UX. | |
5105 | else | |
5106 | for ac_func in snprintf vsnprintf | |
5107 | do : | |
5108 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5109 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5110 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5111 | cat >>confdefs.h <<_ACEOF | |
5112 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5113 | _ACEOF | |
5114 | ||
5115 | fi | |
5116 | done | |
5117 | ||
5118 | fi | |
5119 | ||
5120 | for ac_func in random lrand48 arc4random | |
5121 | do : | |
5122 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5123 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5124 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5125 | cat >>confdefs.h <<_ACEOF | |
5126 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5127 | _ACEOF | |
5128 | ||
5129 | fi | |
5130 | done | |
5131 | ||
5132 | ||
5133 | for ac_func in geteuid | |
5134 | do : | |
5135 | ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" | |
5136 | if test "x$ac_cv_func_geteuid" = xyes; then : | |
5137 | cat >>confdefs.h <<_ACEOF | |
5138 | #define HAVE_GETEUID 1 | |
5139 | _ACEOF | |
5140 | ||
5141 | fi | |
5142 | done | |
5143 | ||
5144 | ||
5145 | for ac_func in setpgid | |
5146 | do : | |
5147 | ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" | |
5148 | if test "x$ac_cv_func_setpgid" = xyes; then : | |
5149 | cat >>confdefs.h <<_ACEOF | |
5150 | #define HAVE_SETPGID 1 | |
5151 | _ACEOF | |
5152 | ||
5153 | fi | |
5154 | done | |
5155 | ||
5156 | ||
5157 | for ac_func in vsyslog | |
5158 | do : | |
5159 | ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog" | |
5160 | if test "x$ac_cv_func_vsyslog" = xyes; then : | |
5161 | cat >>confdefs.h <<_ACEOF | |
5162 | #define HAVE_VSYSLOG 1 | |
5163 | _ACEOF | |
5164 | ||
5165 | fi | |
5166 | done | |
5167 | ||
5168 | ||
5169 | case "$uname" in | |
5170 | Linux | GNU) | |
5171 | # Do not use sigset on Linux or GNU HURD | |
5172 | ;; | |
5173 | *) | |
5174 | # Use sigset on other platforms, if available | |
5175 | for ac_func in sigset | |
5176 | do : | |
5177 | ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset" | |
5178 | if test "x$ac_cv_func_sigset" = xyes; then : | |
5179 | cat >>confdefs.h <<_ACEOF | |
5180 | #define HAVE_SIGSET 1 | |
5181 | _ACEOF | |
5182 | ||
5183 | fi | |
5184 | done | |
5185 | ||
5186 | ;; | |
5187 | esac | |
5188 | ||
5189 | for ac_func in sigaction | |
5190 | do : | |
5191 | ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" | |
5192 | if test "x$ac_cv_func_sigaction" = xyes; then : | |
5193 | cat >>confdefs.h <<_ACEOF | |
5194 | #define HAVE_SIGACTION 1 | |
5195 | _ACEOF | |
5196 | ||
5197 | fi | |
5198 | done | |
5199 | ||
5200 | ||
5201 | for ac_func in waitpid wait3 | |
5202 | do : | |
5203 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5204 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5205 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5206 | cat >>confdefs.h <<_ACEOF | |
5207 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5208 | _ACEOF | |
5209 | ||
5210 | fi | |
5211 | done | |
5212 | ||
5213 | ||
1a18c85c MS |
5214 | for ac_func in posix_spawn |
5215 | do : | |
5216 | ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn" | |
5217 | if test "x$ac_cv_func_posix_spawn" = xyes; then : | |
5218 | cat >>confdefs.h <<_ACEOF | |
5219 | #define HAVE_POSIX_SPAWN 1 | |
5220 | _ACEOF | |
5221 | ||
5222 | fi | |
5223 | done | |
5224 | ||
5225 | ||
61515785 MS |
5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5 |
5227 | $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; } | |
5228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5229 | /* end confdefs.h. */ | |
5230 | #include <time.h> | |
5231 | int | |
5232 | main () | |
5233 | { | |
5234 | struct tm t; | |
5235 | int o = t.tm_gmtoff; | |
5236 | ; | |
5237 | return 0; | |
5238 | } | |
5239 | _ACEOF | |
5240 | if ac_fn_c_try_compile "$LINENO"; then : | |
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5242 | $as_echo "yes" >&6; } | |
5243 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h | |
5244 | ||
5245 | else | |
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5247 | $as_echo "no" >&6; } | |
5248 | fi | |
5249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5250 | ||
5251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5 | |
5252 | $as_echo_n "checking for st_gen member in stat structure... " >&6; } | |
5253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5254 | /* end confdefs.h. */ | |
5255 | #include <sys/stat.h> | |
5256 | int | |
5257 | main () | |
5258 | { | |
5259 | struct stat t; | |
5260 | int o = t.st_gen; | |
5261 | ; | |
5262 | return 0; | |
5263 | } | |
5264 | _ACEOF | |
5265 | if ac_fn_c_try_compile "$LINENO"; then : | |
5266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5267 | $as_echo "yes" >&6; } | |
5268 | $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h | |
5269 | ||
5270 | else | |
5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5272 | $as_echo "no" >&6; } | |
5273 | fi | |
5274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5275 | ||
5276 | for ac_func in removefile | |
5277 | do : | |
5278 | ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile" | |
5279 | if test "x$ac_cv_func_removefile" = xyes; then : | |
5280 | cat >>confdefs.h <<_ACEOF | |
5281 | #define HAVE_REMOVEFILE 1 | |
5282 | _ACEOF | |
5283 | ||
5284 | fi | |
5285 | done | |
5286 | ||
5287 | ||
5288 | # Check whether --enable-libusb was given. | |
5289 | if test "${enable_libusb+set}" = set; then : | |
5290 | enableval=$enable_libusb; | |
5291 | fi | |
5292 | ||
5293 | ||
5294 | LIBUSB="" | |
5295 | USBQUIRKS="" | |
5296 | ||
5297 | ||
5298 | ||
5299 | if test "x$PKGCONFIG" != x; then | |
215ef638 | 5300 | if test x$enable_libusb != xno -a $uname != Darwin; then |
61515785 MS |
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5 |
5302 | $as_echo_n "checking for libusb-1.0... " >&6; } | |
5303 | if $PKGCONFIG --exists libusb-1.0; then | |
5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5305 | $as_echo "yes" >&6; } | |
5306 | $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h | |
5307 | ||
5308 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0`" | |
5309 | LIBUSB="`$PKGCONFIG --libs libusb-1.0`" | |
5310 | USBQUIRKS="\$(DATADIR)/usb" | |
5311 | else | |
5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5313 | $as_echo "no" >&6; } | |
215ef638 MS |
5314 | if test x$enable_libusb = xyes; then |
5315 | as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5 | |
5316 | fi | |
61515785 MS |
5317 | fi |
5318 | fi | |
5319 | elif test x$enable_libusb = xyes; then | |
5320 | as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5 | |
5321 | fi | |
5322 | ||
5323 | # Check whether --enable-tcp_wrappers was given. | |
5324 | if test "${enable_tcp_wrappers+set}" = set; then : | |
5325 | enableval=$enable_tcp_wrappers; | |
5326 | fi | |
5327 | ||
5328 | ||
5329 | LIBWRAP="" | |
5330 | ||
5331 | ||
5332 | if test x$enable_tcp_wrappers = xyes; then | |
5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5 | |
5334 | $as_echo_n "checking for hosts_access in -lwrap... " >&6; } | |
5335 | if ${ac_cv_lib_wrap_hosts_access+:} false; then : | |
5336 | $as_echo_n "(cached) " >&6 | |
5337 | else | |
5338 | ac_check_lib_save_LIBS=$LIBS | |
5339 | LIBS="-lwrap $LIBS" | |
5340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5341 | /* end confdefs.h. */ | |
5342 | ||
5343 | /* Override any GCC internal prototype to avoid an error. | |
5344 | Use char because int might match the return type of a GCC | |
5345 | builtin and then its argument prototype would still apply. */ | |
5346 | #ifdef __cplusplus | |
5347 | extern "C" | |
5348 | #endif | |
5349 | char hosts_access (); | |
5350 | int | |
5351 | main () | |
5352 | { | |
5353 | return hosts_access (); | |
5354 | ; | |
5355 | return 0; | |
5356 | } | |
5357 | _ACEOF | |
5358 | if ac_fn_c_try_link "$LINENO"; then : | |
5359 | ac_cv_lib_wrap_hosts_access=yes | |
5360 | else | |
5361 | ac_cv_lib_wrap_hosts_access=no | |
5362 | fi | |
5363 | rm -f core conftest.err conftest.$ac_objext \ | |
5364 | conftest$ac_exeext conftest.$ac_ext | |
5365 | LIBS=$ac_check_lib_save_LIBS | |
5366 | fi | |
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5 | |
5368 | $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; } | |
5369 | if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then : | |
5370 | ||
5371 | ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default" | |
5372 | if test "x$ac_cv_header_tcpd_h" = xyes; then : | |
5373 | $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h | |
5374 | ||
5375 | LIBWRAP="-lwrap" | |
5376 | fi | |
5377 | ||
5378 | ||
5379 | fi | |
5380 | ||
5381 | fi | |
5382 | ||
5383 | INSTALL_GZIP="" | |
5384 | LIBZ="" | |
5385 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
5386 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5 | |
5388 | $as_echo_n "checking for gzgets in -lz... " >&6; } | |
5389 | if ${ac_cv_lib_z_gzgets+:} false; then : | |
5390 | $as_echo_n "(cached) " >&6 | |
5391 | else | |
5392 | ac_check_lib_save_LIBS=$LIBS | |
5393 | LIBS="-lz $LIBS" | |
5394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5395 | /* end confdefs.h. */ | |
5396 | ||
5397 | /* Override any GCC internal prototype to avoid an error. | |
5398 | Use char because int might match the return type of a GCC | |
5399 | builtin and then its argument prototype would still apply. */ | |
5400 | #ifdef __cplusplus | |
5401 | extern "C" | |
5402 | #endif | |
5403 | char gzgets (); | |
5404 | int | |
5405 | main () | |
5406 | { | |
5407 | return gzgets (); | |
5408 | ; | |
5409 | return 0; | |
5410 | } | |
5411 | _ACEOF | |
5412 | if ac_fn_c_try_link "$LINENO"; then : | |
5413 | ac_cv_lib_z_gzgets=yes | |
5414 | else | |
5415 | ac_cv_lib_z_gzgets=no | |
5416 | fi | |
5417 | rm -f core conftest.err conftest.$ac_objext \ | |
5418 | conftest$ac_exeext conftest.$ac_ext | |
5419 | LIBS=$ac_check_lib_save_LIBS | |
5420 | fi | |
5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5 | |
5422 | $as_echo "$ac_cv_lib_z_gzgets" >&6; } | |
5423 | if test "x$ac_cv_lib_z_gzgets" = xyes; then : | |
5424 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h | |
5425 | ||
5426 | LIBZ="-lz" | |
5427 | LIBS="$LIBS -lz" | |
5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | |
5429 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | |
5430 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | |
5431 | $as_echo_n "(cached) " >&6 | |
5432 | else | |
5433 | ac_check_lib_save_LIBS=$LIBS | |
5434 | LIBS="-lz $LIBS" | |
5435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5436 | /* end confdefs.h. */ | |
5437 | ||
5438 | /* Override any GCC internal prototype to avoid an error. | |
5439 | Use char because int might match the return type of a GCC | |
5440 | builtin and then its argument prototype would still apply. */ | |
5441 | #ifdef __cplusplus | |
5442 | extern "C" | |
5443 | #endif | |
5444 | char inflateCopy (); | |
5445 | int | |
5446 | main () | |
5447 | { | |
5448 | return inflateCopy (); | |
5449 | ; | |
5450 | return 0; | |
5451 | } | |
5452 | _ACEOF | |
5453 | if ac_fn_c_try_link "$LINENO"; then : | |
5454 | ac_cv_lib_z_inflateCopy=yes | |
5455 | else | |
5456 | ac_cv_lib_z_inflateCopy=no | |
5457 | fi | |
5458 | rm -f core conftest.err conftest.$ac_objext \ | |
5459 | conftest$ac_exeext conftest.$ac_ext | |
5460 | LIBS=$ac_check_lib_save_LIBS | |
5461 | fi | |
5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | |
5463 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | |
5464 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | |
5465 | $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h | |
5466 | ||
5467 | fi | |
5468 | ||
5469 | if test "x$GZIP" != z; then | |
5470 | INSTALL_GZIP="-z" | |
5471 | fi | |
5472 | fi | |
5473 | ||
5474 | fi | |
5475 | ||
5476 | ||
5477 | ||
5478 | ||
5479 | ||
5480 | case $uname in | |
5481 | Darwin* | *BSD*) | |
5482 | ARFLAGS="-rcv" | |
5483 | ;; | |
5484 | *) | |
5485 | ARFLAGS="crvs" | |
5486 | ;; | |
5487 | esac | |
5488 | ||
5489 | ||
5490 | ||
5491 | BACKLIBS="" | |
5492 | SERVERLIBS="" | |
5493 | ||
5494 | ||
5495 | ||
5496 | SAVELIBS="$LIBS" | |
5497 | LIBS="" | |
5498 | # Check whether --enable-acl was given. | |
5499 | if test "${enable_acl+set}" = set; then : | |
5500 | enableval=$enable_acl; | |
5501 | fi | |
5502 | ||
5503 | if test "x$enable_acl" != xno; then | |
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5 | |
5505 | $as_echo_n "checking for library containing acl_init... " >&6; } | |
5506 | if ${ac_cv_search_acl_init+:} false; then : | |
5507 | $as_echo_n "(cached) " >&6 | |
5508 | else | |
5509 | ac_func_search_save_LIBS=$LIBS | |
5510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5511 | /* end confdefs.h. */ | |
5512 | ||
5513 | /* Override any GCC internal prototype to avoid an error. | |
5514 | Use char because int might match the return type of a GCC | |
5515 | builtin and then its argument prototype would still apply. */ | |
5516 | #ifdef __cplusplus | |
5517 | extern "C" | |
5518 | #endif | |
5519 | char acl_init (); | |
5520 | int | |
5521 | main () | |
5522 | { | |
5523 | return acl_init (); | |
5524 | ; | |
5525 | return 0; | |
5526 | } | |
5527 | _ACEOF | |
5528 | for ac_lib in '' acl; do | |
5529 | if test -z "$ac_lib"; then | |
5530 | ac_res="none required" | |
5531 | else | |
5532 | ac_res=-l$ac_lib | |
5533 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5534 | fi | |
5535 | if ac_fn_c_try_link "$LINENO"; then : | |
5536 | ac_cv_search_acl_init=$ac_res | |
5537 | fi | |
5538 | rm -f core conftest.err conftest.$ac_objext \ | |
5539 | conftest$ac_exeext | |
5540 | if ${ac_cv_search_acl_init+:} false; then : | |
5541 | break | |
5542 | fi | |
5543 | done | |
5544 | if ${ac_cv_search_acl_init+:} false; then : | |
5545 | ||
5546 | else | |
5547 | ac_cv_search_acl_init=no | |
5548 | fi | |
5549 | rm conftest.$ac_ext | |
5550 | LIBS=$ac_func_search_save_LIBS | |
5551 | fi | |
5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5 | |
5553 | $as_echo "$ac_cv_search_acl_init" >&6; } | |
5554 | ac_res=$ac_cv_search_acl_init | |
5555 | if test "$ac_res" != no; then : | |
5556 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5557 | $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h | |
5558 | ||
5559 | fi | |
5560 | ||
5561 | SERVERLIBS="$SERVERLIBS $LIBS" | |
5562 | fi | |
5563 | LIBS="$SAVELIBS" | |
5564 | ||
61515785 MS |
5565 | # Check whether --enable-dbus was given. |
5566 | if test "${enable_dbus+set}" = set; then : | |
5567 | enableval=$enable_dbus; | |
5568 | fi | |
5569 | ||
5570 | ||
5571 | # Check whether --with-dbusdir was given. | |
5572 | if test "${with_dbusdir+set}" = set; then : | |
5573 | withval=$with_dbusdir; DBUSDIR="$withval" | |
5574 | fi | |
5575 | ||
5576 | ||
71f63681 | 5577 | DBUSDIR="" |
61515785 MS |
5578 | DBUS_NOTIFIER="" |
5579 | DBUS_NOTIFIERLIBS="" | |
5580 | ||
5581 | if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x; then | |
5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 | |
5583 | $as_echo_n "checking for DBUS... " >&6; } | |
5584 | if $PKGCONFIG --exists dbus-1; then | |
5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5586 | $as_echo "yes" >&6; } | |
5587 | $as_echo "#define HAVE_DBUS 1" >>confdefs.h | |
5588 | ||
5589 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE" | |
5590 | SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1`" | |
5591 | DBUS_NOTIFIER="dbus" | |
5592 | DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1`" | |
5593 | SAVELIBS="$LIBS" | |
5594 | LIBS="$LIBS $DBUS_NOTIFIERLIBS" | |
5595 | ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append" | |
5596 | if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then : | |
5597 | $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h | |
5598 | ||
71f63681 MS |
5599 | fi |
5600 | ||
5601 | ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init" | |
5602 | if test "x$ac_cv_func_dbus_threads_init" = xyes; then : | |
5603 | $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h | |
5604 | ||
61515785 MS |
5605 | fi |
5606 | ||
5607 | LIBS="$SAVELIBS" | |
71f63681 MS |
5608 | if test -d /etc/dbus-1; then |
5609 | DBUSDIR="/etc/dbus-1" | |
5610 | fi | |
61515785 MS |
5611 | else |
5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5613 | $as_echo "no" >&6; } | |
5614 | fi | |
5615 | fi | |
5616 | ||
5617 | ||
5618 | ||
5619 | ||
5620 | ||
5621 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM" | |
5622 | CUPS_DEFAULT_SYSTEM_AUTHKEY="" | |
5623 | CUPS_SYSTEM_AUTHKEY="" | |
5624 | INSTALLXPC="" | |
5625 | ||
5626 | case $uname in | |
5627 | Darwin*) | |
5628 | BACKLIBS="$BACKLIBS -framework IOKit" | |
5629 | SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices" | |
5630 | LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS" | |
5631 | ||
5632 | ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default" | |
5633 | if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then : | |
5634 | $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h | |
5635 | ||
5636 | fi | |
5637 | ||
5638 | ||
5639 | ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default" | |
5640 | if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then : | |
5641 | $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h | |
5642 | ||
5643 | fi | |
5644 | ||
5645 | ||
5646 | ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default" | |
5647 | if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then : | |
5648 | $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h | |
5649 | ||
5650 | fi | |
5651 | ||
5652 | ||
5653 | ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default" | |
5654 | if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then : | |
5655 | $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h | |
5656 | ||
5657 | fi | |
5658 | ||
5659 | ||
61515785 MS |
5660 | |
5661 | for ac_func in SCDynamicStoreCopyComputerName | |
5662 | do : | |
5663 | ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName" | |
5664 | if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then : | |
5665 | cat >>confdefs.h <<_ACEOF | |
5666 | #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1 | |
5667 | _ACEOF | |
5668 | ||
5669 | fi | |
5670 | done | |
5671 | ||
5672 | ||
5673 | ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default" | |
5674 | if test "x$ac_cv_header_membership_h" = xyes; then : | |
5675 | $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h | |
5676 | ||
5677 | fi | |
5678 | ||
5679 | ||
5680 | ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default" | |
5681 | if test "x$ac_cv_header_membershipPriv_h" = xyes; then : | |
5682 | $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h | |
5683 | ||
5684 | fi | |
5685 | ||
5686 | ||
5687 | for ac_func in mbr_uid_to_uuid | |
5688 | do : | |
5689 | ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid" | |
5690 | if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then : | |
5691 | cat >>confdefs.h <<_ACEOF | |
5692 | #define HAVE_MBR_UID_TO_UUID 1 | |
5693 | _ACEOF | |
5694 | ||
5695 | fi | |
5696 | done | |
5697 | ||
5698 | ||
5699 | for ac_func in vproc_transaction_begin | |
5700 | do : | |
5701 | ac_fn_c_check_func "$LINENO" "vproc_transaction_begin" "ac_cv_func_vproc_transaction_begin" | |
5702 | if test "x$ac_cv_func_vproc_transaction_begin" = xyes; then : | |
5703 | cat >>confdefs.h <<_ACEOF | |
5704 | #define HAVE_VPROC_TRANSACTION_BEGIN 1 | |
5705 | _ACEOF | |
5706 | ||
5707 | fi | |
5708 | done | |
5709 | ||
5710 | ||
5711 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
5712 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
5713 | $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h | |
5714 | ||
5715 | fi | |
5716 | ||
5717 | ||
5718 | ||
5719 | ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default" | |
5720 | if test "x$ac_cv_header_notify_h" = xyes; then : | |
5721 | $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h | |
5722 | ||
5723 | fi | |
5724 | ||
5725 | ||
5726 | for ac_func in notify_post | |
5727 | do : | |
5728 | ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post" | |
5729 | if test "x$ac_cv_func_notify_post" = xyes; then : | |
5730 | cat >>confdefs.h <<_ACEOF | |
5731 | #define HAVE_NOTIFY_POST 1 | |
5732 | _ACEOF | |
5733 | ||
5734 | fi | |
5735 | done | |
5736 | ||
5737 | ||
5738 | ||
5739 | # Check whether --with-adminkey was given. | |
5740 | if test "${with_adminkey+set}" = set; then : | |
5741 | withval=$with_adminkey; default_adminkey="$withval" | |
5742 | else | |
5743 | default_adminkey="default" | |
5744 | fi | |
5745 | ||
5746 | ||
5747 | # Check whether --with-operkey was given. | |
5748 | if test "${with_operkey+set}" = set; then : | |
5749 | withval=$with_operkey; default_operkey="$withval" | |
5750 | else | |
5751 | default_operkey="default" | |
5752 | fi | |
5753 | ||
5754 | ||
5755 | ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default" | |
5756 | if test "x$ac_cv_header_Security_Authorization_h" = xyes; then : | |
5757 | ||
5758 | $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h | |
5759 | ||
5760 | ||
5761 | if test "x$default_adminkey" != xdefault; then | |
5762 | CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey" | |
5763 | CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey" | |
5764 | elif grep -q system.print.operator /etc/authorization; then | |
5765 | CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin" | |
5766 | CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin" | |
5767 | else | |
5768 | CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences" | |
5769 | CUPS_DEFAULT_SYSTEM_AUTHKEY="system.preferences" | |
5770 | fi | |
5771 | ||
5772 | if test "x$default_operkey" != xdefault; then | |
5773 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin" | |
5774 | elif grep -q system.print.operator /etc/authorization; then | |
5775 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin" | |
5776 | else | |
5777 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin" | |
5778 | fi | |
5779 | fi | |
5780 | ||
5781 | ||
5782 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default" | |
5783 | if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then : | |
5784 | $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h | |
5785 | ||
5786 | fi | |
5787 | ||
5788 | ||
5789 | ||
5790 | if test $uversion -ge 100; then | |
5791 | ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" | |
5792 | if test "x$ac_cv_header_sandbox_h" = xyes; then : | |
5793 | $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h | |
5794 | ||
5795 | fi | |
5796 | ||
5797 | ||
5798 | fi | |
5799 | if test $uversion -ge 110 -a $uversion -lt 120; then | |
5800 | # Broken public headers in 10.7.x... | |
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5 | |
5802 | $as_echo_n "checking for sandbox/private.h presence... " >&6; } | |
5803 | if test -f /usr/local/include/sandbox/private.h; then | |
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5805 | $as_echo "yes" >&6; } | |
5806 | else | |
5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5808 | $as_echo "no" >&6; } | |
5809 | 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 | |
5810 | fi | |
5811 | fi | |
5812 | ||
5813 | ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default" | |
5814 | if test "x$ac_cv_header_xpc_xpc_h" = xyes; then : | |
5815 | $as_echo "#define HAVE_XPC 1" >>confdefs.h | |
5816 | ||
5817 | INSTALLXPC="install-xpc" | |
5818 | fi | |
5819 | ||
5820 | ||
5821 | ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default" | |
5822 | if test "x$ac_cv_header_xpc_private_h" = xyes; then : | |
5823 | $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h | |
5824 | ||
5825 | fi | |
5826 | ||
5827 | ||
5828 | ;; | |
5829 | esac | |
5830 | ||
5831 | ||
5832 | cat >>confdefs.h <<_ACEOF | |
5833 | #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH" | |
5834 | _ACEOF | |
5835 | ||
5836 | cat >>confdefs.h <<_ACEOF | |
5837 | #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY" | |
5838 | _ACEOF | |
5839 | ||
5840 | ||
5841 | ||
5842 | ||
5843 | COMPONENTS="all" | |
5844 | ||
5845 | ||
5846 | # Check whether --with-components was given. | |
5847 | if test "${with_components+set}" = set; then : | |
5848 | withval=$with_components; COMPONENTS="$withval" | |
5849 | fi | |
5850 | ||
5851 | ||
5852 | case "$COMPONENTS" in | |
5853 | all) | |
5854 | BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates" | |
5855 | ;; | |
5856 | ||
5857 | core) | |
5858 | BUILDDIRS="data locale" | |
5859 | ;; | |
5860 | ||
5861 | *) | |
5862 | as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5 | |
5863 | ;; | |
5864 | esac | |
5865 | ||
5866 | ||
5867 | ||
5868 | ||
5869 | ||
5870 | ||
5871 | ||
5872 | if test "$prefix" = "NONE"; then | |
5873 | prefix="/" | |
5874 | fi | |
5875 | ||
5876 | if test "$exec_prefix" = "NONE"; then | |
5877 | if test "$prefix" = "/"; then | |
5878 | exec_prefix="/usr" | |
5879 | else | |
5880 | exec_prefix="$prefix" | |
5881 | fi | |
5882 | fi | |
5883 | ||
5884 | if test "$bindir" = "\${exec_prefix}/bin"; then | |
5885 | bindir="$exec_prefix/bin" | |
5886 | fi | |
5887 | ||
5888 | cat >>confdefs.h <<_ACEOF | |
5889 | #define CUPS_BINDIR "$bindir" | |
5890 | _ACEOF | |
5891 | ||
5892 | ||
5893 | if test "$sbindir" = "\${exec_prefix}/sbin"; then | |
5894 | sbindir="$exec_prefix/sbin" | |
5895 | fi | |
5896 | ||
5897 | cat >>confdefs.h <<_ACEOF | |
5898 | #define CUPS_SBINDIR "$sbindir" | |
5899 | _ACEOF | |
5900 | ||
5901 | ||
5902 | if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then | |
5903 | sharedstatedir="/usr/com" | |
5904 | fi | |
5905 | ||
5906 | if test "$datarootdir" = "\${prefix}/share"; then | |
5907 | if test "$prefix" = "/"; then | |
5908 | datarootdir="/usr/share" | |
5909 | else | |
5910 | datarootdir="$prefix/share" | |
5911 | fi | |
5912 | fi | |
5913 | ||
5914 | if test "$datadir" = "\${prefix}/share"; then | |
5915 | if test "$prefix" = "/"; then | |
5916 | datadir="/usr/share" | |
5917 | else | |
5918 | datadir="$prefix/share" | |
5919 | fi | |
5920 | elif test "$datadir" = "\${datarootdir}"; then | |
5921 | datadir="$datarootdir" | |
5922 | fi | |
5923 | ||
5924 | if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then | |
5925 | includedir="/usr/include" | |
5926 | fi | |
5927 | ||
5928 | if test "$localstatedir" = "\${prefix}/var"; then | |
5929 | if test "$prefix" = "/"; then | |
5930 | if test "$uname" = Darwin; then | |
5931 | localstatedir="/private/var" | |
5932 | else | |
5933 | localstatedir="/var" | |
5934 | fi | |
5935 | else | |
5936 | localstatedir="$prefix/var" | |
5937 | fi | |
5938 | fi | |
5939 | ||
5940 | if test "$sysconfdir" = "\${prefix}/etc"; then | |
5941 | if test "$prefix" = "/"; then | |
5942 | if test "$uname" = Darwin; then | |
5943 | sysconfdir="/private/etc" | |
5944 | else | |
5945 | sysconfdir="/etc" | |
5946 | fi | |
5947 | else | |
5948 | sysconfdir="$prefix/etc" | |
5949 | fi | |
5950 | fi | |
5951 | ||
5952 | if test "$libdir" = "\${exec_prefix}/lib"; then | |
5953 | case "$uname" in | |
5954 | Linux*) | |
5955 | if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then | |
5956 | libdir="$exec_prefix/lib64" | |
5957 | fi | |
5958 | ;; | |
61515785 MS |
5959 | esac |
5960 | fi | |
5961 | ||
5962 | ||
5963 | # Check whether --with-privateinclude was given. | |
5964 | if test "${with_privateinclude+set}" = set; then : | |
5965 | withval=$with_privateinclude; privateinclude="$withval" | |
5966 | else | |
5967 | privateinclude="" | |
5968 | fi | |
5969 | ||
5970 | if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then | |
5971 | PRIVATEINCLUDE="$privateinclude/cups" | |
5972 | else | |
5973 | privateinclude="" | |
5974 | PRIVATEINCLUDE="" | |
5975 | fi | |
5976 | ||
5977 | ||
5978 | ||
5979 | ||
61515785 MS |
5980 | # Check whether --with-lpdconfig was given. |
5981 | if test "${with_lpdconfig+set}" = set; then : | |
5982 | withval=$with_lpdconfig; LPDCONFIG="$withval" | |
5983 | else | |
5984 | LPDCONFIG="" | |
5985 | fi | |
5986 | ||
5987 | ||
5988 | if test "x$LPDCONFIG" = x; then | |
5989 | if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then | |
5990 | LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist" | |
5991 | elif test "x$XINETD" != x; then | |
5992 | LPDCONFIG="xinetd://$XINETD/cups-lpd" | |
5993 | fi | |
5994 | fi | |
5995 | ||
5996 | if test "x$LPDCONFIG" = xoff; then | |
5997 | cat >>confdefs.h <<_ACEOF | |
5998 | #define CUPS_DEFAULT_LPD_CONFIG "" | |
5999 | _ACEOF | |
6000 | ||
6001 | else | |
6002 | cat >>confdefs.h <<_ACEOF | |
6003 | #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG" | |
6004 | _ACEOF | |
6005 | ||
6006 | fi | |
6007 | ||
6008 | ||
6009 | # Check whether --with-smbconfig was given. | |
6010 | if test "${with_smbconfig+set}" = set; then : | |
6011 | withval=$with_smbconfig; SMBCONFIG="$withval" | |
6012 | else | |
6013 | SMBCONFIG="" | |
6014 | fi | |
6015 | ||
6016 | ||
6017 | if test "x$SMBCONFIG" = x; then | |
6018 | if test -f /System/Library/LaunchDaemons/smbd.plist; then | |
6019 | SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist" | |
6020 | else | |
6021 | for dir in /etc /etc/samba /usr/local/etc; do | |
6022 | if test -f $dir/smb.conf; then | |
6023 | SMBCONFIG="samba://$dir/smb.conf" | |
6024 | break | |
6025 | fi | |
6026 | done | |
6027 | fi | |
6028 | fi | |
6029 | ||
6030 | if test "x$SMBCONFIG" = xoff; then | |
6031 | cat >>confdefs.h <<_ACEOF | |
6032 | #define CUPS_DEFAULT_SMB_CONFIG "" | |
6033 | _ACEOF | |
6034 | ||
6035 | else | |
6036 | cat >>confdefs.h <<_ACEOF | |
6037 | #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG" | |
6038 | _ACEOF | |
6039 | ||
6040 | fi | |
6041 | ||
6042 | # Cache data... | |
6043 | ||
6044 | # Check whether --with-cachedir was given. | |
6045 | if test "${with_cachedir+set}" = set; then : | |
6046 | withval=$with_cachedir; cachedir="$withval" | |
6047 | else | |
6048 | cachedir="" | |
6049 | fi | |
6050 | ||
6051 | ||
6052 | if test x$cachedir = x; then | |
6053 | if test "x$uname" = xDarwin; then | |
6054 | CUPS_CACHEDIR="$localstatedir/spool/cups/cache" | |
6055 | else | |
6056 | CUPS_CACHEDIR="$localstatedir/cache/cups" | |
6057 | fi | |
6058 | else | |
6059 | CUPS_CACHEDIR="$cachedir" | |
6060 | fi | |
6061 | cat >>confdefs.h <<_ACEOF | |
6062 | #define CUPS_CACHEDIR "$CUPS_CACHEDIR" | |
6063 | _ACEOF | |
6064 | ||
6065 | ||
6066 | ||
6067 | # Data files | |
6068 | CUPS_DATADIR="$datadir/cups" | |
6069 | cat >>confdefs.h <<_ACEOF | |
6070 | #define CUPS_DATADIR "$datadir/cups" | |
6071 | _ACEOF | |
6072 | ||
6073 | ||
6074 | ||
6075 | # Icon directory | |
6076 | ||
6077 | # Check whether --with-icondir was given. | |
6078 | if test "${with_icondir+set}" = set; then : | |
6079 | withval=$with_icondir; icondir="$withval" | |
6080 | else | |
6081 | icondir="" | |
6082 | fi | |
6083 | ||
6084 | ||
6085 | if test "x$icondir" = x -a -d /usr/share/icons; then | |
6086 | ICONDIR="/usr/share/icons" | |
6087 | else | |
6088 | ICONDIR="$icondir" | |
6089 | fi | |
6090 | ||
6091 | ||
6092 | ||
6093 | # Menu directory | |
6094 | ||
6095 | # Check whether --with-menudir was given. | |
6096 | if test "${with_menudir+set}" = set; then : | |
6097 | withval=$with_menudir; menudir="$withval" | |
6098 | else | |
6099 | menudir="" | |
6100 | fi | |
6101 | ||
6102 | ||
6103 | if test "x$menudir" = x -a -d /usr/share/applications; then | |
6104 | MENUDIR="/usr/share/applications" | |
6105 | else | |
6106 | MENUDIR="$menudir" | |
6107 | fi | |
6108 | ||
6109 | ||
6110 | ||
6111 | # Documentation files | |
6112 | ||
6113 | # Check whether --with-docdir was given. | |
6114 | if test "${with_docdir+set}" = set; then : | |
6115 | withval=$with_docdir; docdir="$withval" | |
6116 | else | |
6117 | docdir="" | |
6118 | fi | |
6119 | ||
6120 | ||
6121 | if test x$docdir = x; then | |
6122 | CUPS_DOCROOT="$datadir/doc/cups" | |
6123 | docdir="$datadir/doc/cups" | |
6124 | else | |
6125 | CUPS_DOCROOT="$docdir" | |
6126 | fi | |
6127 | ||
6128 | cat >>confdefs.h <<_ACEOF | |
6129 | #define CUPS_DOCROOT "$docdir" | |
6130 | _ACEOF | |
6131 | ||
6132 | ||
6133 | ||
6134 | # Fonts | |
6135 | ||
6136 | # Check whether --with-fontpath was given. | |
6137 | if test "${with_fontpath+set}" = set; then : | |
6138 | withval=$with_fontpath; fontpath="$withval" | |
6139 | else | |
6140 | fontpath="" | |
6141 | fi | |
6142 | ||
6143 | ||
6144 | if test "x$fontpath" = "x"; then | |
6145 | CUPS_FONTPATH="$datadir/cups/fonts" | |
6146 | else | |
6147 | CUPS_FONTPATH="$fontpath" | |
6148 | fi | |
6149 | ||
6150 | ||
6151 | cat >>confdefs.h <<_ACEOF | |
6152 | #define CUPS_FONTPATH "$CUPS_FONTPATH" | |
6153 | _ACEOF | |
6154 | ||
6155 | ||
6156 | # Locale data | |
6157 | if test "$localedir" = "\${datarootdir}/locale"; then | |
6158 | case "$uname" in | |
6159 | Linux | GNU | *BSD* | Darwin*) | |
6160 | CUPS_LOCALEDIR="$datarootdir/locale" | |
6161 | ;; | |
6162 | ||
61515785 MS |
6163 | *) |
6164 | # This is the standard System V location... | |
6165 | CUPS_LOCALEDIR="$exec_prefix/lib/locale" | |
6166 | ;; | |
6167 | esac | |
6168 | else | |
6169 | CUPS_LOCALEDIR="$localedir" | |
6170 | fi | |
6171 | ||
6172 | cat >>confdefs.h <<_ACEOF | |
6173 | #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR" | |
6174 | _ACEOF | |
6175 | ||
6176 | ||
6177 | ||
6178 | # Log files... | |
6179 | ||
6180 | # Check whether --with-logdir was given. | |
6181 | if test "${with_logdir+set}" = set; then : | |
6182 | withval=$with_logdir; logdir="$withval" | |
6183 | else | |
6184 | logdir="" | |
6185 | fi | |
6186 | ||
6187 | ||
6188 | if test x$logdir = x; then | |
6189 | CUPS_LOGDIR="$localstatedir/log/cups" | |
6190 | cat >>confdefs.h <<_ACEOF | |
6191 | #define CUPS_LOGDIR "$localstatedir/log/cups" | |
6192 | _ACEOF | |
6193 | ||
6194 | else | |
6195 | CUPS_LOGDIR="$logdir" | |
6196 | fi | |
6197 | cat >>confdefs.h <<_ACEOF | |
6198 | #define CUPS_LOGDIR "$CUPS_LOGDIR" | |
6199 | _ACEOF | |
6200 | ||
6201 | ||
6202 | ||
6203 | # Longer-term spool data | |
6204 | CUPS_REQUESTS="$localstatedir/spool/cups" | |
6205 | cat >>confdefs.h <<_ACEOF | |
6206 | #define CUPS_REQUESTS "$localstatedir/spool/cups" | |
6207 | _ACEOF | |
6208 | ||
6209 | ||
6210 | ||
6211 | # Server executables... | |
6212 | case "$uname" in | |
6213 | *BSD* | Darwin*) | |
6214 | # *BSD and Darwin (MacOS X) | |
6215 | INSTALL_SYSV="" | |
6216 | CUPS_SERVERBIN="$exec_prefix/libexec/cups" | |
6217 | ;; | |
6218 | *) | |
6219 | # All others | |
6220 | INSTALL_SYSV="install-sysv" | |
6221 | CUPS_SERVERBIN="$exec_prefix/lib/cups" | |
6222 | ;; | |
6223 | esac | |
6224 | ||
6225 | cat >>confdefs.h <<_ACEOF | |
6226 | #define CUPS_SERVERBIN "$CUPS_SERVERBIN" | |
6227 | _ACEOF | |
6228 | ||
6229 | ||
6230 | ||
6231 | ||
6232 | # Configuration files | |
6233 | CUPS_SERVERROOT="$sysconfdir/cups" | |
6234 | cat >>confdefs.h <<_ACEOF | |
6235 | #define CUPS_SERVERROOT "$sysconfdir/cups" | |
6236 | _ACEOF | |
6237 | ||
6238 | ||
6239 | ||
6240 | # Transient run-time state | |
6241 | ||
6242 | # Check whether --with-rundir was given. | |
6243 | if test "${with_rundir+set}" = set; then : | |
6244 | withval=$with_rundir; CUPS_STATEDIR="$withval" | |
6245 | else | |
6246 | ||
6247 | case "$uname" in | |
6248 | Darwin*) | |
6249 | # Darwin (OS X) | |
6250 | CUPS_STATEDIR="$CUPS_SERVERROOT" | |
6251 | ;; | |
6252 | *) | |
6253 | # All others | |
6254 | CUPS_STATEDIR="$localstatedir/run/cups" | |
6255 | ;; | |
6256 | esac | |
6257 | fi | |
6258 | ||
6259 | cat >>confdefs.h <<_ACEOF | |
6260 | #define CUPS_STATEDIR "$CUPS_STATEDIR" | |
6261 | _ACEOF | |
6262 | ||
6263 | ||
6264 | ||
6265 | ||
6266 | ||
6267 | if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then | |
6268 | # New GNU "standards" break previous ones, so make sure we use | |
6269 | # the right default location for the operating system... | |
6270 | mandir="\${prefix}/man" | |
6271 | fi | |
6272 | ||
6273 | if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then | |
6274 | case "$uname" in | |
1a18c85c MS |
6275 | Darwin* | Linux | GNU | *BSD*) |
6276 | # Darwin, MacOS X, Linux, GNU HURD, and *BSD | |
61515785 MS |
6277 | mandir="/usr/share/man" |
6278 | AMANDIR="/usr/share/man" | |
6279 | PMANDIR="/usr/share/man" | |
6280 | ;; | |
6281 | *) | |
6282 | # All others | |
6283 | mandir="/usr/man" | |
6284 | AMANDIR="/usr/man" | |
6285 | PMANDIR="/usr/man" | |
6286 | ;; | |
6287 | esac | |
6288 | else | |
6289 | AMANDIR="$mandir" | |
6290 | PMANDIR="$mandir" | |
6291 | fi | |
6292 | ||
6293 | ||
6294 | ||
6295 | ||
6296 | case "$uname" in | |
1a18c85c MS |
6297 | SunOS*) |
6298 | # Solaris | |
61515785 MS |
6299 | MAN1EXT=1 |
6300 | MAN5EXT=5 | |
6301 | MAN7EXT=7 | |
6302 | MAN8EXT=1m | |
6303 | MAN8DIR=1m | |
6304 | ;; | |
6305 | Linux* | GNU* | Darwin*) | |
6306 | # Linux, GNU Hurd, and OS X | |
6307 | MAN1EXT=1.gz | |
6308 | MAN5EXT=5.gz | |
6309 | MAN7EXT=7.gz | |
6310 | MAN8EXT=8.gz | |
6311 | MAN8DIR=8 | |
6312 | ;; | |
6313 | *) | |
6314 | # All others | |
6315 | MAN1EXT=1 | |
6316 | MAN5EXT=5 | |
6317 | MAN7EXT=7 | |
6318 | MAN8EXT=8 | |
6319 | MAN8DIR=8 | |
6320 | ;; | |
6321 | esac | |
6322 | ||
6323 | ||
6324 | ||
6325 | ||
6326 | ||
6327 | ||
6328 | ||
6329 | ||
6330 | ||
6331 | ||
6332 | PICFLAG=1 | |
6333 | DSOFLAGS="${DSOFLAGS:=}" | |
6334 | ||
6335 | # Check whether --enable-shared was given. | |
6336 | if test "${enable_shared+set}" = set; then : | |
6337 | enableval=$enable_shared; | |
6338 | fi | |
6339 | ||
6340 | ||
6341 | cupsbase="cups" | |
6342 | LIBCUPSBASE="lib$cupsbase" | |
6343 | LIBCUPSSTATIC="lib$cupsbase.a" | |
6344 | ||
6345 | if test x$enable_shared != xno; then | |
6346 | case "$uname" in | |
6347 | SunOS*) | |
6348 | LIBCUPS="lib$cupsbase.so.2" | |
6349 | LIBCUPSCGI="libcupscgi.so.1" | |
6350 | LIBCUPSIMAGE="libcupsimage.so.2" | |
6351 | LIBCUPSMIME="libcupsmime.so.1" | |
6352 | LIBCUPSPPDC="libcupsppdc.so.1" | |
6353 | DSO="\$(CC)" | |
6354 | DSOXX="\$(CXX)" | |
6355 | DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G \$(OPTIM)" | |
6356 | ;; | |
1a18c85c | 6357 | Linux | GNU | *BSD*) |
61515785 MS |
6358 | LIBCUPS="lib$cupsbase.so.2" |
6359 | LIBCUPSCGI="libcupscgi.so.1" | |
6360 | LIBCUPSIMAGE="libcupsimage.so.2" | |
6361 | LIBCUPSMIME="libcupsmime.so.1" | |
6362 | LIBCUPSPPDC="libcupsppdc.so.1" | |
6363 | DSO="\$(CC)" | |
6364 | DSOXX="\$(CXX)" | |
6365 | DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)" | |
6366 | ;; | |
6367 | Darwin*) | |
6368 | LIBCUPS="lib$cupsbase.2.dylib" | |
6369 | LIBCUPSCGI="libcupscgi.1.dylib" | |
6370 | LIBCUPSIMAGE="libcupsimage.2.dylib" | |
6371 | LIBCUPSMIME="libcupsmime.1.dylib" | |
6372 | LIBCUPSPPDC="libcupsppdc.1.dylib" | |
6373 | DSO="\$(CC)" | |
6374 | DSOXX="\$(CXX)" | |
6375 | DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc" | |
6376 | ;; | |
61515785 MS |
6377 | *) |
6378 | echo "Warning: shared libraries may not be supported. Trying -shared" | |
6379 | echo " option with compiler." | |
6380 | LIBCUPS="lib$cupsbase.so.2" | |
6381 | LIBCUPSCGI="libcupscgi.so.1" | |
6382 | LIBCUPSIMAGE="libcupsimage.so.2" | |
6383 | LIBCUPSMIME="libcupsmime.so.1" | |
6384 | LIBCUPSPPDC="libcupsppdc.so.1" | |
6385 | DSO="\$(CC)" | |
6386 | DSOXX="\$(CXX)" | |
6387 | DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)" | |
6388 | ;; | |
6389 | esac | |
6390 | else | |
6391 | PICFLAG=0 | |
6392 | LIBCUPS="lib$cupsbase.a" | |
6393 | LIBCUPSCGI="libcupscgi.a" | |
6394 | LIBCUPSIMAGE="libcupsimage.a" | |
6395 | LIBCUPSMIME="libcupsmime.a" | |
6396 | LIBCUPSPPDC="libcupsppdc.a" | |
6397 | DSO=":" | |
6398 | DSOXX=":" | |
6399 | fi | |
6400 | ||
6401 | ||
6402 | ||
6403 | ||
6404 | ||
6405 | ||
6406 | ||
6407 | ||
6408 | ||
6409 | ||
6410 | ||
6411 | ||
6412 | if test x$enable_shared = xno; then | |
6413 | LINKCUPS="../cups/lib$cupsbase.a" | |
6414 | LINKCUPSIMAGE="../filter/libcupsimage.a" | |
6415 | ||
6416 | EXTLINKCUPS="-lcups" | |
6417 | EXTLINKCUPSIMAGE="-lcupsimage" | |
6418 | else | |
1a18c85c MS |
6419 | LINKCUPS="-l${cupsbase}" |
6420 | LINKCUPSIMAGE="-lcupsimage" | |
61515785 | 6421 | |
1a18c85c MS |
6422 | EXTLINKCUPS="-lcups" |
6423 | EXTLINKCUPSIMAGE="-lcupsimage" | |
61515785 MS |
6424 | fi |
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | EXPORT_LDFLAGS="" | |
6432 | ||
6433 | if test "$DSO" != ":"; then | |
6434 | # When using DSOs the image libraries are linked to libcupsimage.so | |
6435 | # rather than to the executables. This makes things smaller if you | |
6436 | # are using any static libraries, and it also allows us to distribute | |
6437 | # a single DSO rather than a bunch... | |
6438 | DSOLIBS="\$(LIBZ)" | |
6439 | IMGLIBS="" | |
6440 | ||
6441 | # Tell the run-time linkers where to find a DSO. Some platforms | |
6442 | # need this option, even when the library is installed in a | |
6443 | # standard location... | |
6444 | case $uname in | |
61515785 MS |
6445 | SunOS*) |
6446 | # Solaris... | |
6447 | if test $exec_prefix != /usr; then | |
6448 | DSOFLAGS="-R$libdir $DSOFLAGS" | |
6449 | LDFLAGS="$LDFLAGS -R$libdir" | |
6450 | EXPORT_LDFLAGS="-R$libdir" | |
6451 | fi | |
6452 | ;; | |
6453 | *BSD*) | |
6454 | # *BSD... | |
6455 | if test $exec_prefix != /usr; then | |
6456 | DSOFLAGS="-Wl,-R$libdir $DSOFLAGS" | |
6457 | LDFLAGS="$LDFLAGS -Wl,-R$libdir" | |
6458 | EXPORT_LDFLAGS="-Wl,-R$libdir" | |
6459 | fi | |
6460 | ;; | |
6461 | Linux | GNU) | |
6462 | # Linux, and HURD... | |
6463 | if test $exec_prefix != /usr; then | |
6464 | DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS" | |
6465 | LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir" | |
6466 | EXPORT_LDFLAGS="-Wl,-rpath,$libdir" | |
6467 | fi | |
6468 | ;; | |
6469 | esac | |
6470 | else | |
6471 | DSOLIBS="" | |
6472 | IMGLIBS="\$(LIBZ)" | |
6473 | fi | |
6474 | ||
6475 | ||
6476 | ||
6477 | ||
6478 | ||
6479 | ||
6480 | ||
6481 | # Check whether --enable-libtool_unsupported was given. | |
6482 | if test "${enable_libtool_unsupported+set}" = set; then : | |
6483 | enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then | |
6484 | LIBTOOL="$enable_libtool_unsupported" | |
6485 | enable_shared=no | |
6486 | echo "WARNING: libtool is not supported or endorsed by Apple Inc." | |
6487 | echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS." | |
6488 | else | |
6489 | LIBTOOL="" | |
6490 | fi | |
6491 | fi | |
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | if test x$LIBTOOL != x; then | |
6497 | LIBCUPS="libcups.la" | |
6498 | LIBCUPSIMAGE="libcupsimage.la" | |
6499 | LINKCUPS="../cups/\$(LIBCUPS)" | |
6500 | LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)" | |
6501 | DSO="\$(CC)" | |
6502 | fi | |
6503 | ||
6504 | ||
6505 | ||
6506 | INSTALL_STRIP="" | |
6507 | OPTIM="" | |
6508 | ||
6509 | ||
6510 | ||
6511 | ||
6512 | # Check whether --with-optim was given. | |
6513 | if test "${with_optim+set}" = set; then : | |
6514 | withval=$with_optim; | |
6515 | fi | |
6516 | ||
6517 | # Check whether --enable-debug was given. | |
6518 | if test "${enable_debug+set}" = set; then : | |
6519 | enableval=$enable_debug; | |
6520 | fi | |
6521 | ||
6522 | # Check whether --enable-debug_guards was given. | |
6523 | if test "${enable_debug_guards+set}" = set; then : | |
6524 | enableval=$enable_debug_guards; | |
6525 | fi | |
6526 | ||
6527 | # Check whether --enable-debug_printfs was given. | |
6528 | if test "${enable_debug_printfs+set}" = set; then : | |
6529 | enableval=$enable_debug_printfs; | |
6530 | fi | |
6531 | ||
6532 | # Check whether --enable-unit_tests was given. | |
6533 | if test "${enable_unit_tests+set}" = set; then : | |
6534 | enableval=$enable_unit_tests; | |
6535 | fi | |
6536 | ||
6537 | ||
6538 | if test x$enable_debug = xyes; then | |
6539 | OPTIM="-g" | |
6540 | else | |
6541 | INSTALL_STRIP="-s" | |
6542 | fi | |
6543 | ||
6544 | if test x$enable_debug_printfs = xyes; then | |
6545 | CFLAGS="$CFLAGS -DDEBUG" | |
6546 | CXXFLAGS="$CXXFLAGS -DDEBUG" | |
6547 | fi | |
6548 | ||
6549 | if test x$enable_debug_guards = xyes; then | |
6550 | CFLAGS="$CFLAGS -DDEBUG_GUARDS" | |
6551 | CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS" | |
6552 | fi | |
6553 | ||
6554 | if test x$enable_unit_tests = xyes; then | |
6555 | UNITTESTS="unittests" | |
6556 | else | |
6557 | UNITTESTS="" | |
6558 | fi | |
6559 | ||
6560 | ||
6561 | ||
6562 | # Check whether --with-archflags was given. | |
6563 | if test "${with_archflags+set}" = set; then : | |
6564 | withval=$with_archflags; | |
6565 | fi | |
6566 | ||
6567 | ||
6568 | # Check whether --with-ldarchflags was given. | |
6569 | if test "${with_ldarchflags+set}" = set; then : | |
6570 | withval=$with_ldarchflags; | |
6571 | fi | |
6572 | ||
6573 | ||
6574 | if test -z "$with_archflags"; then | |
6575 | ARCHFLAGS="" | |
6576 | else | |
6577 | ARCHFLAGS="$with_archflags" | |
6578 | fi | |
6579 | ||
6580 | if test -z "$with_ldarchflags"; then | |
6581 | if test "$uname" = Darwin; then | |
6582 | # Only create Intel programs by default | |
6583 | LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch ppc64//'`" | |
6584 | else | |
6585 | LDARCHFLAGS="$ARCHFLAGS" | |
6586 | fi | |
6587 | else | |
6588 | LDARCHFLAGS="$with_ldarchflags" | |
6589 | fi | |
6590 | ||
6591 | ||
6592 | ||
6593 | ||
6594 | # Check whether --enable-relro was given. | |
6595 | if test "${enable_relro+set}" = set; then : | |
6596 | enableval=$enable_relro; | |
6597 | fi | |
6598 | ||
6599 | ||
6600 | CXXLIBS="${CXXLIBS:=}" | |
6601 | ||
6602 | ||
6603 | PIEFLAGS="" | |
6604 | ||
6605 | ||
6606 | RELROFLAGS="" | |
6607 | ||
6608 | ||
6609 | if test -n "$GCC"; then | |
6610 | # Add GCC-specific compiler options... | |
6611 | if test -z "$OPTIM"; then | |
6612 | if test "x$with_optim" = x; then | |
6613 | # Default to optimize-for-size and debug | |
6614 | OPTIM="-Os -g" | |
6615 | else | |
6616 | OPTIM="$with_optim $OPTIM" | |
6617 | fi | |
6618 | fi | |
6619 | ||
6620 | # Generate position-independent code as needed... | |
1a18c85c | 6621 | if test $PICFLAG = 1; then |
61515785 MS |
6622 | OPTIM="-fPIC $OPTIM" |
6623 | fi | |
6624 | ||
6625 | # The -fstack-protector option is available with some versions of | |
6626 | # GCC and adds "stack canaries" which detect when the return address | |
6627 | # has been overwritten, preventing many types of exploit attacks. | |
6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fstack-protector" >&5 | |
6629 | $as_echo_n "checking if GCC supports -fstack-protector... " >&6; } | |
6630 | OLDCFLAGS="$CFLAGS" | |
6631 | CFLAGS="$CFLAGS -fstack-protector" | |
6632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6633 | /* end confdefs.h. */ | |
6634 | ||
6635 | int | |
6636 | main () | |
6637 | { | |
6638 | ||
6639 | ; | |
6640 | return 0; | |
6641 | } | |
6642 | _ACEOF | |
6643 | if ac_fn_c_try_link "$LINENO"; then : | |
6644 | if test "x$LSB_BUILD" = xy; then | |
6645 | # Can't use stack-protector with LSB binaries... | |
6646 | OPTIM="$OPTIM -fno-stack-protector" | |
6647 | else | |
6648 | OPTIM="$OPTIM -fstack-protector" | |
6649 | fi | |
6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6651 | $as_echo "yes" >&6; } | |
6652 | else | |
6653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6654 | $as_echo "no" >&6; } | |
6655 | fi | |
6656 | rm -f core conftest.err conftest.$ac_objext \ | |
6657 | conftest$ac_exeext conftest.$ac_ext | |
6658 | CFLAGS="$OLDCFLAGS" | |
6659 | ||
6660 | if test "x$LSB_BUILD" != xy; then | |
6661 | # The -fPIE option is available with some versions of GCC and | |
6662 | # adds randomization of addresses, which avoids another class of | |
6663 | # exploits that depend on a fixed address for common functions. | |
6664 | # | |
6665 | # Not available to LSB binaries... | |
6666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fPIE" >&5 | |
6667 | $as_echo_n "checking if GCC supports -fPIE... " >&6; } | |
6668 | OLDCFLAGS="$CFLAGS" | |
6669 | case "$uname" in | |
6670 | Darwin*) | |
6671 | CFLAGS="$CFLAGS -fPIE -Wl,-pie" | |
6672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6673 | /* end confdefs.h. */ | |
6674 | ||
6675 | int | |
6676 | main () | |
6677 | { | |
6678 | ||
6679 | ; | |
6680 | return 0; | |
6681 | } | |
6682 | _ACEOF | |
6683 | if ac_fn_c_try_compile "$LINENO"; then : | |
6684 | ||
6685 | PIEFLAGS="-fPIE -Wl,-pie" | |
6686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6687 | $as_echo "yes" >&6; } | |
6688 | else | |
6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6690 | $as_echo "no" >&6; } | |
6691 | fi | |
6692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6693 | ;; | |
6694 | ||
6695 | *) | |
6696 | CFLAGS="$CFLAGS -fPIE -pie" | |
6697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6698 | /* end confdefs.h. */ | |
6699 | ||
6700 | int | |
6701 | main () | |
6702 | { | |
6703 | ||
6704 | ; | |
6705 | return 0; | |
6706 | } | |
6707 | _ACEOF | |
6708 | if ac_fn_c_try_compile "$LINENO"; then : | |
6709 | ||
6710 | PIEFLAGS="-fPIE -pie" | |
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6712 | $as_echo "yes" >&6; } | |
6713 | else | |
6714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6715 | $as_echo "no" >&6; } | |
6716 | fi | |
6717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6718 | ;; | |
6719 | esac | |
6720 | CFLAGS="$OLDCFLAGS" | |
6721 | fi | |
6722 | ||
6723 | if test "x$with_optim" = x; then | |
6724 | # Add useful warning options for tracking down problems... | |
1a18c85c | 6725 | OPTIM="-Wall -Wno-format-y2k -Wsign-conversion -Wunused $OPTIM" |
61515785 | 6726 | |
1a18c85c | 6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -Wno-tautological-compare" >&5 |
61515785 | 6728 | $as_echo_n "checking if GCC supports -Wno-tautological-compare... " >&6; } |
1a18c85c MS |
6729 | OLDCFLAGS="$CFLAGS" |
6730 | CFLAGS="$CFLAGS -Werror -Wno-tautological-compare" | |
6731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
61515785 MS |
6732 | /* end confdefs.h. */ |
6733 | ||
6734 | int | |
6735 | main () | |
6736 | { | |
6737 | ||
6738 | ; | |
6739 | return 0; | |
6740 | } | |
6741 | _ACEOF | |
6742 | if ac_fn_c_try_compile "$LINENO"; then : | |
6743 | OPTIM="$OPTIM -Wno-tautological-compare" | |
1a18c85c | 6744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
61515785 MS |
6745 | $as_echo "yes" >&6; } |
6746 | else | |
6747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6748 | $as_echo "no" >&6; } | |
6749 | fi | |
6750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1a18c85c MS |
6751 | CFLAGS="$OLDCFLAGS" |
6752 | ||
6753 | # Additional warning options for development testing... | |
6754 | if test -d .svn; then | |
6755 | OPTIM="-Werror $OPTIM" | |
61515785 MS |
6756 | fi |
6757 | fi | |
6758 | ||
6759 | case "$uname" in | |
6760 | Darwin*) | |
6761 | # -D_FORTIFY_SOURCE=2 adds additional object size | |
6762 | # checking, basically wrapping all string functions | |
6763 | # with buffer-limited ones. Not strictly needed for | |
6764 | # CUPS since we already use buffer-limited calls, but | |
6765 | # this will catch any additions that are broken. | |
6766 | CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" | |
6767 | ;; | |
6768 | ||
6769 | Linux*) | |
6770 | # The -z relro option is provided by the Linux linker command to | |
6771 | # make relocatable data read-only. | |
6772 | if test x$enable_relro = xyes; then | |
71f63681 | 6773 | RELROFLAGS="-Wl,-z,relro,-z,now" |
61515785 MS |
6774 | fi |
6775 | ;; | |
6776 | esac | |
6777 | else | |
6778 | # Add vendor-specific compiler options... | |
6779 | case $uname in | |
1a18c85c MS |
6780 | SunOS*) |
6781 | # Solaris | |
61515785 MS |
6782 | if test -z "$OPTIM"; then |
6783 | if test "x$with_optim" = x; then | |
1a18c85c | 6784 | OPTIM="-xO2" |
61515785 MS |
6785 | else |
6786 | OPTIM="$with_optim $OPTIM" | |
6787 | fi | |
1a18c85c MS |
6788 | fi |
6789 | ||
6790 | if test $PICFLAG = 1; then | |
6791 | OPTIM="-KPIC $OPTIM" | |
61515785 MS |
6792 | fi |
6793 | ;; | |
6794 | *) | |
6795 | # Running some other operating system; inform the user they | |
6796 | # should contribute the necessary options to | |
6797 | # cups-support@cups.org... | |
6798 | echo "Building CUPS with default compiler optimizations; contact" | |
6799 | echo "cups-bugs@cups.org with uname and compiler options needed" | |
6800 | echo "for your platform, or set the CFLAGS and LDFLAGS environment" | |
6801 | echo "variables before running configure." | |
6802 | ;; | |
6803 | esac | |
6804 | fi | |
6805 | ||
6806 | # Add general compiler options per platform... | |
6807 | case $uname in | |
61515785 MS |
6808 | Linux*) |
6809 | # glibc 2.8 and higher breaks peer credentials unless you | |
6810 | # define _GNU_SOURCE... | |
6811 | OPTIM="$OPTIM -D_GNU_SOURCE" | |
6812 | ;; | |
61515785 MS |
6813 | esac |
6814 | ||
6815 | ||
6816 | ||
6817 | ||
6818 | ac_fn_c_check_header_mongrel "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default" | |
6819 | if test "x$ac_cv_header_resolv_h" = xyes; then : | |
6820 | $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h | |
6821 | ||
6822 | fi | |
6823 | ||
6824 | ||
6825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
6826 | $as_echo_n "checking for library containing socket... " >&6; } | |
6827 | if ${ac_cv_search_socket+:} false; then : | |
6828 | $as_echo_n "(cached) " >&6 | |
6829 | else | |
6830 | ac_func_search_save_LIBS=$LIBS | |
6831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6832 | /* end confdefs.h. */ | |
6833 | ||
6834 | /* Override any GCC internal prototype to avoid an error. | |
6835 | Use char because int might match the return type of a GCC | |
6836 | builtin and then its argument prototype would still apply. */ | |
6837 | #ifdef __cplusplus | |
6838 | extern "C" | |
6839 | #endif | |
6840 | char socket (); | |
6841 | int | |
6842 | main () | |
6843 | { | |
6844 | return socket (); | |
6845 | ; | |
6846 | return 0; | |
6847 | } | |
6848 | _ACEOF | |
6849 | for ac_lib in '' socket; do | |
6850 | if test -z "$ac_lib"; then | |
6851 | ac_res="none required" | |
6852 | else | |
6853 | ac_res=-l$ac_lib | |
6854 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6855 | fi | |
6856 | if ac_fn_c_try_link "$LINENO"; then : | |
6857 | ac_cv_search_socket=$ac_res | |
6858 | fi | |
6859 | rm -f core conftest.err conftest.$ac_objext \ | |
6860 | conftest$ac_exeext | |
6861 | if ${ac_cv_search_socket+:} false; then : | |
6862 | break | |
6863 | fi | |
6864 | done | |
6865 | if ${ac_cv_search_socket+:} false; then : | |
6866 | ||
6867 | else | |
6868 | ac_cv_search_socket=no | |
6869 | fi | |
6870 | rm conftest.$ac_ext | |
6871 | LIBS=$ac_func_search_save_LIBS | |
6872 | fi | |
6873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
6874 | $as_echo "$ac_cv_search_socket" >&6; } | |
6875 | ac_res=$ac_cv_search_socket | |
6876 | if test "$ac_res" != no; then : | |
6877 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6878 | ||
6879 | fi | |
6880 | ||
6881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5 | |
6882 | $as_echo_n "checking for library containing gethostbyaddr... " >&6; } | |
6883 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
6884 | $as_echo_n "(cached) " >&6 | |
6885 | else | |
6886 | ac_func_search_save_LIBS=$LIBS | |
6887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6888 | /* end confdefs.h. */ | |
6889 | ||
6890 | /* Override any GCC internal prototype to avoid an error. | |
6891 | Use char because int might match the return type of a GCC | |
6892 | builtin and then its argument prototype would still apply. */ | |
6893 | #ifdef __cplusplus | |
6894 | extern "C" | |
6895 | #endif | |
6896 | char gethostbyaddr (); | |
6897 | int | |
6898 | main () | |
6899 | { | |
6900 | return gethostbyaddr (); | |
6901 | ; | |
6902 | return 0; | |
6903 | } | |
6904 | _ACEOF | |
6905 | for ac_lib in '' nsl; do | |
6906 | if test -z "$ac_lib"; then | |
6907 | ac_res="none required" | |
6908 | else | |
6909 | ac_res=-l$ac_lib | |
6910 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6911 | fi | |
6912 | if ac_fn_c_try_link "$LINENO"; then : | |
6913 | ac_cv_search_gethostbyaddr=$ac_res | |
6914 | fi | |
6915 | rm -f core conftest.err conftest.$ac_objext \ | |
6916 | conftest$ac_exeext | |
6917 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
6918 | break | |
6919 | fi | |
6920 | done | |
6921 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
6922 | ||
6923 | else | |
6924 | ac_cv_search_gethostbyaddr=no | |
6925 | fi | |
6926 | rm conftest.$ac_ext | |
6927 | LIBS=$ac_func_search_save_LIBS | |
6928 | fi | |
6929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5 | |
6930 | $as_echo "$ac_cv_search_gethostbyaddr" >&6; } | |
6931 | ac_res=$ac_cv_search_gethostbyaddr | |
6932 | if test "$ac_res" != no; then : | |
6933 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6934 | ||
6935 | fi | |
6936 | ||
6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5 | |
6938 | $as_echo_n "checking for library containing getifaddrs... " >&6; } | |
6939 | if ${ac_cv_search_getifaddrs+:} false; then : | |
6940 | $as_echo_n "(cached) " >&6 | |
6941 | else | |
6942 | ac_func_search_save_LIBS=$LIBS | |
6943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6944 | /* end confdefs.h. */ | |
6945 | ||
6946 | /* Override any GCC internal prototype to avoid an error. | |
6947 | Use char because int might match the return type of a GCC | |
6948 | builtin and then its argument prototype would still apply. */ | |
6949 | #ifdef __cplusplus | |
6950 | extern "C" | |
6951 | #endif | |
6952 | char getifaddrs (); | |
6953 | int | |
6954 | main () | |
6955 | { | |
6956 | return getifaddrs (); | |
6957 | ; | |
6958 | return 0; | |
6959 | } | |
6960 | _ACEOF | |
6961 | for ac_lib in '' nsl; do | |
6962 | if test -z "$ac_lib"; then | |
6963 | ac_res="none required" | |
6964 | else | |
6965 | ac_res=-l$ac_lib | |
6966 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6967 | fi | |
6968 | if ac_fn_c_try_link "$LINENO"; then : | |
6969 | ac_cv_search_getifaddrs=$ac_res | |
6970 | fi | |
6971 | rm -f core conftest.err conftest.$ac_objext \ | |
6972 | conftest$ac_exeext | |
6973 | if ${ac_cv_search_getifaddrs+:} false; then : | |
6974 | break | |
6975 | fi | |
6976 | done | |
6977 | if ${ac_cv_search_getifaddrs+:} false; then : | |
6978 | ||
6979 | else | |
6980 | ac_cv_search_getifaddrs=no | |
6981 | fi | |
6982 | rm conftest.$ac_ext | |
6983 | LIBS=$ac_func_search_save_LIBS | |
6984 | fi | |
6985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5 | |
6986 | $as_echo "$ac_cv_search_getifaddrs" >&6; } | |
6987 | ac_res=$ac_cv_search_getifaddrs | |
6988 | if test "$ac_res" != no; then : | |
6989 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6990 | $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h | |
6991 | ||
6992 | fi | |
6993 | ||
6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 | |
6995 | $as_echo_n "checking for library containing hstrerror... " >&6; } | |
6996 | if ${ac_cv_search_hstrerror+:} false; then : | |
6997 | $as_echo_n "(cached) " >&6 | |
6998 | else | |
6999 | ac_func_search_save_LIBS=$LIBS | |
7000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7001 | /* end confdefs.h. */ | |
7002 | ||
7003 | /* Override any GCC internal prototype to avoid an error. | |
7004 | Use char because int might match the return type of a GCC | |
7005 | builtin and then its argument prototype would still apply. */ | |
7006 | #ifdef __cplusplus | |
7007 | extern "C" | |
7008 | #endif | |
7009 | char hstrerror (); | |
7010 | int | |
7011 | main () | |
7012 | { | |
7013 | return hstrerror (); | |
7014 | ; | |
7015 | return 0; | |
7016 | } | |
7017 | _ACEOF | |
7018 | for ac_lib in '' nsl socket resolv; do | |
7019 | if test -z "$ac_lib"; then | |
7020 | ac_res="none required" | |
7021 | else | |
7022 | ac_res=-l$ac_lib | |
7023 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7024 | fi | |
7025 | if ac_fn_c_try_link "$LINENO"; then : | |
7026 | ac_cv_search_hstrerror=$ac_res | |
7027 | fi | |
7028 | rm -f core conftest.err conftest.$ac_objext \ | |
7029 | conftest$ac_exeext | |
7030 | if ${ac_cv_search_hstrerror+:} false; then : | |
7031 | break | |
7032 | fi | |
7033 | done | |
7034 | if ${ac_cv_search_hstrerror+:} false; then : | |
7035 | ||
7036 | else | |
7037 | ac_cv_search_hstrerror=no | |
7038 | fi | |
7039 | rm conftest.$ac_ext | |
7040 | LIBS=$ac_func_search_save_LIBS | |
7041 | fi | |
7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 | |
7043 | $as_echo "$ac_cv_search_hstrerror" >&6; } | |
7044 | ac_res=$ac_cv_search_hstrerror | |
7045 | if test "$ac_res" != no; then : | |
7046 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7047 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | |
7048 | ||
7049 | fi | |
7050 | ||
7051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5 | |
7052 | $as_echo_n "checking for library containing rresvport_af... " >&6; } | |
7053 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7054 | $as_echo_n "(cached) " >&6 | |
7055 | else | |
7056 | ac_func_search_save_LIBS=$LIBS | |
7057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7058 | /* end confdefs.h. */ | |
7059 | ||
7060 | /* Override any GCC internal prototype to avoid an error. | |
7061 | Use char because int might match the return type of a GCC | |
7062 | builtin and then its argument prototype would still apply. */ | |
7063 | #ifdef __cplusplus | |
7064 | extern "C" | |
7065 | #endif | |
7066 | char rresvport_af (); | |
7067 | int | |
7068 | main () | |
7069 | { | |
7070 | return rresvport_af (); | |
7071 | ; | |
7072 | return 0; | |
7073 | } | |
7074 | _ACEOF | |
7075 | for ac_lib in '' nsl; do | |
7076 | if test -z "$ac_lib"; then | |
7077 | ac_res="none required" | |
7078 | else | |
7079 | ac_res=-l$ac_lib | |
7080 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7081 | fi | |
7082 | if ac_fn_c_try_link "$LINENO"; then : | |
7083 | ac_cv_search_rresvport_af=$ac_res | |
7084 | fi | |
7085 | rm -f core conftest.err conftest.$ac_objext \ | |
7086 | conftest$ac_exeext | |
7087 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7088 | break | |
7089 | fi | |
7090 | done | |
7091 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7092 | ||
7093 | else | |
7094 | ac_cv_search_rresvport_af=no | |
7095 | fi | |
7096 | rm conftest.$ac_ext | |
7097 | LIBS=$ac_func_search_save_LIBS | |
7098 | fi | |
7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5 | |
7100 | $as_echo "$ac_cv_search_rresvport_af" >&6; } | |
7101 | ac_res=$ac_cv_search_rresvport_af | |
7102 | if test "$ac_res" != no; then : | |
7103 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7104 | $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h | |
7105 | ||
7106 | fi | |
7107 | ||
7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5 | |
7109 | $as_echo_n "checking for library containing __res_init... " >&6; } | |
7110 | if ${ac_cv_search___res_init+:} false; then : | |
7111 | $as_echo_n "(cached) " >&6 | |
7112 | else | |
7113 | ac_func_search_save_LIBS=$LIBS | |
7114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7115 | /* end confdefs.h. */ | |
7116 | ||
7117 | /* Override any GCC internal prototype to avoid an error. | |
7118 | Use char because int might match the return type of a GCC | |
7119 | builtin and then its argument prototype would still apply. */ | |
7120 | #ifdef __cplusplus | |
7121 | extern "C" | |
7122 | #endif | |
7123 | char __res_init (); | |
7124 | int | |
7125 | main () | |
7126 | { | |
7127 | return __res_init (); | |
7128 | ; | |
7129 | return 0; | |
7130 | } | |
7131 | _ACEOF | |
7132 | for ac_lib in '' resolv bind; do | |
7133 | if test -z "$ac_lib"; then | |
7134 | ac_res="none required" | |
7135 | else | |
7136 | ac_res=-l$ac_lib | |
7137 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7138 | fi | |
7139 | if ac_fn_c_try_link "$LINENO"; then : | |
7140 | ac_cv_search___res_init=$ac_res | |
7141 | fi | |
7142 | rm -f core conftest.err conftest.$ac_objext \ | |
7143 | conftest$ac_exeext | |
7144 | if ${ac_cv_search___res_init+:} false; then : | |
7145 | break | |
7146 | fi | |
7147 | done | |
7148 | if ${ac_cv_search___res_init+:} false; then : | |
7149 | ||
7150 | else | |
7151 | ac_cv_search___res_init=no | |
7152 | fi | |
7153 | rm conftest.$ac_ext | |
7154 | LIBS=$ac_func_search_save_LIBS | |
7155 | fi | |
7156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5 | |
7157 | $as_echo "$ac_cv_search___res_init" >&6; } | |
7158 | ac_res=$ac_cv_search___res_init | |
7159 | if test "$ac_res" != no; then : | |
7160 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7161 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7162 | ||
7163 | else | |
7164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 | |
7165 | $as_echo_n "checking for library containing res_9_init... " >&6; } | |
7166 | if ${ac_cv_search_res_9_init+:} false; then : | |
7167 | $as_echo_n "(cached) " >&6 | |
7168 | else | |
7169 | ac_func_search_save_LIBS=$LIBS | |
7170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7171 | /* end confdefs.h. */ | |
7172 | ||
7173 | /* Override any GCC internal prototype to avoid an error. | |
7174 | Use char because int might match the return type of a GCC | |
7175 | builtin and then its argument prototype would still apply. */ | |
7176 | #ifdef __cplusplus | |
7177 | extern "C" | |
7178 | #endif | |
7179 | char res_9_init (); | |
7180 | int | |
7181 | main () | |
7182 | { | |
7183 | return res_9_init (); | |
7184 | ; | |
7185 | return 0; | |
7186 | } | |
7187 | _ACEOF | |
7188 | for ac_lib in '' resolv bind; do | |
7189 | if test -z "$ac_lib"; then | |
7190 | ac_res="none required" | |
7191 | else | |
7192 | ac_res=-l$ac_lib | |
7193 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7194 | fi | |
7195 | if ac_fn_c_try_link "$LINENO"; then : | |
7196 | ac_cv_search_res_9_init=$ac_res | |
7197 | fi | |
7198 | rm -f core conftest.err conftest.$ac_objext \ | |
7199 | conftest$ac_exeext | |
7200 | if ${ac_cv_search_res_9_init+:} false; then : | |
7201 | break | |
7202 | fi | |
7203 | done | |
7204 | if ${ac_cv_search_res_9_init+:} false; then : | |
7205 | ||
7206 | else | |
7207 | ac_cv_search_res_9_init=no | |
7208 | fi | |
7209 | rm conftest.$ac_ext | |
7210 | LIBS=$ac_func_search_save_LIBS | |
7211 | fi | |
7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 | |
7213 | $as_echo "$ac_cv_search_res_9_init" >&6; } | |
7214 | ac_res=$ac_cv_search_res_9_init | |
7215 | if test "$ac_res" != no; then : | |
7216 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7217 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7218 | ||
7219 | else | |
7220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 | |
7221 | $as_echo_n "checking for library containing res_init... " >&6; } | |
7222 | if ${ac_cv_search_res_init+:} false; then : | |
7223 | $as_echo_n "(cached) " >&6 | |
7224 | else | |
7225 | ac_func_search_save_LIBS=$LIBS | |
7226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7227 | /* end confdefs.h. */ | |
7228 | ||
7229 | /* Override any GCC internal prototype to avoid an error. | |
7230 | Use char because int might match the return type of a GCC | |
7231 | builtin and then its argument prototype would still apply. */ | |
7232 | #ifdef __cplusplus | |
7233 | extern "C" | |
7234 | #endif | |
7235 | char res_init (); | |
7236 | int | |
7237 | main () | |
7238 | { | |
7239 | return res_init (); | |
7240 | ; | |
7241 | return 0; | |
7242 | } | |
7243 | _ACEOF | |
7244 | for ac_lib in '' resolv bind; do | |
7245 | if test -z "$ac_lib"; then | |
7246 | ac_res="none required" | |
7247 | else | |
7248 | ac_res=-l$ac_lib | |
7249 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7250 | fi | |
7251 | if ac_fn_c_try_link "$LINENO"; then : | |
7252 | ac_cv_search_res_init=$ac_res | |
7253 | fi | |
7254 | rm -f core conftest.err conftest.$ac_objext \ | |
7255 | conftest$ac_exeext | |
7256 | if ${ac_cv_search_res_init+:} false; then : | |
7257 | break | |
7258 | fi | |
7259 | done | |
7260 | if ${ac_cv_search_res_init+:} false; then : | |
7261 | ||
7262 | else | |
7263 | ac_cv_search_res_init=no | |
7264 | fi | |
7265 | rm conftest.$ac_ext | |
7266 | LIBS=$ac_func_search_save_LIBS | |
7267 | fi | |
7268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 | |
7269 | $as_echo "$ac_cv_search_res_init" >&6; } | |
7270 | ac_res=$ac_cv_search_res_init | |
7271 | if test "$ac_res" != no; then : | |
7272 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7273 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7274 | ||
7275 | fi | |
7276 | ||
7277 | fi | |
7278 | ||
7279 | fi | |
7280 | ||
7281 | ||
7282 | # Tru64 5.1b leaks file descriptors with these functions; disable until | |
7283 | # we can come up with a test for this... | |
7284 | if test "$uname" != "OSF1"; then | |
7285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 | |
7286 | $as_echo_n "checking for library containing getaddrinfo... " >&6; } | |
7287 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7288 | $as_echo_n "(cached) " >&6 | |
7289 | else | |
7290 | ac_func_search_save_LIBS=$LIBS | |
7291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7292 | /* end confdefs.h. */ | |
7293 | ||
7294 | /* Override any GCC internal prototype to avoid an error. | |
7295 | Use char because int might match the return type of a GCC | |
7296 | builtin and then its argument prototype would still apply. */ | |
7297 | #ifdef __cplusplus | |
7298 | extern "C" | |
7299 | #endif | |
7300 | char getaddrinfo (); | |
7301 | int | |
7302 | main () | |
7303 | { | |
7304 | return getaddrinfo (); | |
7305 | ; | |
7306 | return 0; | |
7307 | } | |
7308 | _ACEOF | |
7309 | for ac_lib in '' nsl; do | |
7310 | if test -z "$ac_lib"; then | |
7311 | ac_res="none required" | |
7312 | else | |
7313 | ac_res=-l$ac_lib | |
7314 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7315 | fi | |
7316 | if ac_fn_c_try_link "$LINENO"; then : | |
7317 | ac_cv_search_getaddrinfo=$ac_res | |
7318 | fi | |
7319 | rm -f core conftest.err conftest.$ac_objext \ | |
7320 | conftest$ac_exeext | |
7321 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7322 | break | |
7323 | fi | |
7324 | done | |
7325 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7326 | ||
7327 | else | |
7328 | ac_cv_search_getaddrinfo=no | |
7329 | fi | |
7330 | rm conftest.$ac_ext | |
7331 | LIBS=$ac_func_search_save_LIBS | |
7332 | fi | |
7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 | |
7334 | $as_echo "$ac_cv_search_getaddrinfo" >&6; } | |
7335 | ac_res=$ac_cv_search_getaddrinfo | |
7336 | if test "$ac_res" != no; then : | |
7337 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7338 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | |
7339 | ||
7340 | fi | |
7341 | ||
7342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 | |
7343 | $as_echo_n "checking for library containing getnameinfo... " >&6; } | |
7344 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7345 | $as_echo_n "(cached) " >&6 | |
7346 | else | |
7347 | ac_func_search_save_LIBS=$LIBS | |
7348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7349 | /* end confdefs.h. */ | |
7350 | ||
7351 | /* Override any GCC internal prototype to avoid an error. | |
7352 | Use char because int might match the return type of a GCC | |
7353 | builtin and then its argument prototype would still apply. */ | |
7354 | #ifdef __cplusplus | |
7355 | extern "C" | |
7356 | #endif | |
7357 | char getnameinfo (); | |
7358 | int | |
7359 | main () | |
7360 | { | |
7361 | return getnameinfo (); | |
7362 | ; | |
7363 | return 0; | |
7364 | } | |
7365 | _ACEOF | |
7366 | for ac_lib in '' nsl; do | |
7367 | if test -z "$ac_lib"; then | |
7368 | ac_res="none required" | |
7369 | else | |
7370 | ac_res=-l$ac_lib | |
7371 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7372 | fi | |
7373 | if ac_fn_c_try_link "$LINENO"; then : | |
7374 | ac_cv_search_getnameinfo=$ac_res | |
7375 | fi | |
7376 | rm -f core conftest.err conftest.$ac_objext \ | |
7377 | conftest$ac_exeext | |
7378 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7379 | break | |
7380 | fi | |
7381 | done | |
7382 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7383 | ||
7384 | else | |
7385 | ac_cv_search_getnameinfo=no | |
7386 | fi | |
7387 | rm conftest.$ac_ext | |
7388 | LIBS=$ac_func_search_save_LIBS | |
7389 | fi | |
7390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 | |
7391 | $as_echo "$ac_cv_search_getnameinfo" >&6; } | |
7392 | ac_res=$ac_cv_search_getnameinfo | |
7393 | if test "$ac_res" != no; then : | |
7394 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7395 | $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h | |
7396 | ||
7397 | fi | |
7398 | ||
7399 | fi | |
7400 | ||
7401 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h> | |
7402 | " | |
7403 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : | |
7404 | ||
7405 | fi | |
7406 | ||
7407 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" | |
7408 | if test "x$ac_cv_header_sys_sockio_h" = xyes; then : | |
7409 | $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h | |
7410 | ||
7411 | fi | |
7412 | ||
7413 | ||
7414 | ||
7415 | CUPS_DEFAULT_DOMAINSOCKET="" | |
7416 | ||
7417 | ||
7418 | # Check whether --with-domainsocket was given. | |
7419 | if test "${with_domainsocket+set}" = set; then : | |
7420 | withval=$with_domainsocket; default_domainsocket="$withval" | |
7421 | else | |
7422 | default_domainsocket="" | |
7423 | fi | |
7424 | ||
7425 | ||
7426 | if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then | |
7427 | if test "x$default_domainsocket" = x; then | |
7428 | case "$uname" in | |
7429 | Darwin*) | |
7430 | # Darwin and MaxOS X do their own thing... | |
7431 | CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd" | |
7432 | ;; | |
7433 | *) | |
7434 | # All others use FHS standard... | |
7435 | CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock" | |
7436 | ;; | |
7437 | esac | |
7438 | else | |
7439 | CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket" | |
7440 | fi | |
7441 | ||
7442 | CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET" | |
7443 | ||
7444 | cat >>confdefs.h <<_ACEOF | |
7445 | #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET" | |
7446 | _ACEOF | |
7447 | ||
7448 | else | |
7449 | CUPS_LISTEN_DOMAINSOCKET="" | |
7450 | fi | |
7451 | ||
7452 | ||
7453 | ||
7454 | ||
61515785 MS |
7455 | |
7456 | ||
7457 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" | |
7458 | if test "x$ac_cv_func_poll" = xyes; then : | |
7459 | $as_echo "#define HAVE_POLL 1" >>confdefs.h | |
7460 | ||
7461 | fi | |
7462 | ||
7463 | ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create" | |
7464 | if test "x$ac_cv_func_epoll_create" = xyes; then : | |
7465 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | |
7466 | ||
7467 | fi | |
7468 | ||
7469 | ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" | |
7470 | if test "x$ac_cv_func_kqueue" = xyes; then : | |
7471 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | |
7472 | ||
7473 | fi | |
7474 | ||
7475 | ||
7476 | ||
7477 | ||
7478 | # Check whether --enable-gssapi was given. | |
7479 | if test "${enable_gssapi+set}" = set; then : | |
7480 | enableval=$enable_gssapi; | |
7481 | fi | |
7482 | ||
7483 | ||
7484 | LIBGSSAPI="" | |
7485 | ||
7486 | ||
7487 | if test x$enable_gssapi != xno; then | |
1a18c85c MS |
7488 | if test -n "$ac_tool_prefix"; then |
7489 | # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args. | |
7490 | set dummy ${ac_tool_prefix}krb5-config; ac_word=$2 | |
61515785 MS |
7491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7492 | $as_echo_n "checking for $ac_word... " >&6; } | |
7493 | if ${ac_cv_path_KRB5CONFIG+:} false; then : | |
7494 | $as_echo_n "(cached) " >&6 | |
7495 | else | |
7496 | case $KRB5CONFIG in | |
7497 | [\\/]* | ?:[\\/]*) | |
7498 | ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path. | |
7499 | ;; | |
7500 | *) | |
7501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7502 | for as_dir in $PATH | |
7503 | do | |
7504 | IFS=$as_save_IFS | |
7505 | test -z "$as_dir" && as_dir=. | |
7506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7507 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7508 | ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
7509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7510 | break 2 | |
7511 | fi | |
7512 | done | |
7513 | done | |
7514 | IFS=$as_save_IFS | |
7515 | ||
7516 | ;; | |
7517 | esac | |
7518 | fi | |
7519 | KRB5CONFIG=$ac_cv_path_KRB5CONFIG | |
7520 | if test -n "$KRB5CONFIG"; then | |
7521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5 | |
7522 | $as_echo "$KRB5CONFIG" >&6; } | |
7523 | else | |
7524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7525 | $as_echo "no" >&6; } | |
7526 | fi | |
7527 | ||
7528 | ||
1a18c85c MS |
7529 | fi |
7530 | if test -z "$ac_cv_path_KRB5CONFIG"; then | |
7531 | ac_pt_KRB5CONFIG=$KRB5CONFIG | |
7532 | # Extract the first word of "krb5-config", so it can be a program name with args. | |
7533 | set dummy krb5-config; ac_word=$2 | |
7534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7535 | $as_echo_n "checking for $ac_word... " >&6; } | |
7536 | if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then : | |
7537 | $as_echo_n "(cached) " >&6 | |
7538 | else | |
7539 | case $ac_pt_KRB5CONFIG in | |
7540 | [\\/]* | ?:[\\/]*) | |
7541 | ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path. | |
7542 | ;; | |
7543 | *) | |
7544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7545 | for as_dir in $PATH | |
7546 | do | |
7547 | IFS=$as_save_IFS | |
7548 | test -z "$as_dir" && as_dir=. | |
7549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7550 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7551 | ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
7552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7553 | break 2 | |
7554 | fi | |
7555 | done | |
7556 | done | |
7557 | IFS=$as_save_IFS | |
7558 | ||
7559 | ;; | |
7560 | esac | |
7561 | fi | |
7562 | ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG | |
7563 | if test -n "$ac_pt_KRB5CONFIG"; then | |
7564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5 | |
7565 | $as_echo "$ac_pt_KRB5CONFIG" >&6; } | |
7566 | else | |
7567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7568 | $as_echo "no" >&6; } | |
7569 | fi | |
7570 | ||
7571 | if test "x$ac_pt_KRB5CONFIG" = x; then | |
7572 | KRB5CONFIG="" | |
7573 | else | |
7574 | case $cross_compiling:$ac_tool_warned in | |
7575 | yes:) | |
7576 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7577 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7578 | ac_tool_warned=yes ;; | |
7579 | esac | |
7580 | KRB5CONFIG=$ac_pt_KRB5CONFIG | |
7581 | fi | |
7582 | else | |
7583 | KRB5CONFIG="$ac_cv_path_KRB5CONFIG" | |
7584 | fi | |
7585 | ||
61515785 MS |
7586 | if test "x$KRB5CONFIG" != x; then |
7587 | case "$uname" in | |
7588 | Darwin) | |
7589 | # OS X weak-links to the Kerberos framework... | |
7590 | LIBGSSAPI="-weak_framework Kerberos" | |
7591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5 | |
7592 | $as_echo_n "checking for GSS framework... " >&6; } | |
7593 | if test -d /System/Library/Frameworks/GSS.framework; then | |
7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7595 | $as_echo "yes" >&6; } | |
7596 | LIBGSSAPI="$LIBGSSAPI -weak_framework GSS" | |
7597 | else | |
7598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7599 | $as_echo "no" >&6; } | |
7600 | fi | |
7601 | ;; | |
7602 | SunOS*) | |
7603 | # Solaris has a non-standard krb5-config, don't use it! | |
7604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 | |
7605 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
7606 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
7607 | $as_echo_n "(cached) " >&6 | |
7608 | else | |
7609 | ac_check_lib_save_LIBS=$LIBS | |
7610 | LIBS="-lgss $LIBS" | |
7611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7612 | /* end confdefs.h. */ | |
7613 | ||
7614 | /* Override any GCC internal prototype to avoid an error. | |
7615 | Use char because int might match the return type of a GCC | |
7616 | builtin and then its argument prototype would still apply. */ | |
7617 | #ifdef __cplusplus | |
7618 | extern "C" | |
7619 | #endif | |
7620 | char gss_display_status (); | |
7621 | int | |
7622 | main () | |
7623 | { | |
7624 | return gss_display_status (); | |
7625 | ; | |
7626 | return 0; | |
7627 | } | |
7628 | _ACEOF | |
7629 | if ac_fn_c_try_link "$LINENO"; then : | |
7630 | ac_cv_lib_gss_gss_display_status=yes | |
7631 | else | |
7632 | ac_cv_lib_gss_gss_display_status=no | |
7633 | fi | |
7634 | rm -f core conftest.err conftest.$ac_objext \ | |
7635 | conftest$ac_exeext conftest.$ac_ext | |
7636 | LIBS=$ac_check_lib_save_LIBS | |
7637 | fi | |
7638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
7639 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
7640 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
7641 | ||
7642 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7643 | ||
7644 | CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS" | |
7645 | CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS" | |
7646 | LIBGSSAPI="-lgss `$KRB5CONFIG --libs`" | |
7647 | fi | |
7648 | ||
7649 | ;; | |
7650 | *) | |
7651 | # Other platforms just ask for GSSAPI | |
7652 | CFLAGS="`$KRB5CONFIG --cflags gssapi` $CFLAGS" | |
7653 | CPPFLAGS="`$KRB5CONFIG --cflags gssapi` $CPPFLAGS" | |
7654 | LIBGSSAPI="`$KRB5CONFIG --libs gssapi`" | |
7655 | ;; | |
7656 | esac | |
7657 | ||
7658 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7659 | ||
7660 | else | |
7661 | # Check for vendor-specific implementations... | |
7662 | case "$uname" in | |
7663 | HP-UX*) | |
7664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 | |
7665 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
7666 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
7667 | $as_echo_n "(cached) " >&6 | |
7668 | else | |
7669 | ac_check_lib_save_LIBS=$LIBS | |
7670 | LIBS="-lgss $LIBS" | |
7671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7672 | /* end confdefs.h. */ | |
7673 | ||
7674 | /* Override any GCC internal prototype to avoid an error. | |
7675 | Use char because int might match the return type of a GCC | |
7676 | builtin and then its argument prototype would still apply. */ | |
7677 | #ifdef __cplusplus | |
7678 | extern "C" | |
7679 | #endif | |
7680 | char gss_display_status (); | |
7681 | int | |
7682 | main () | |
7683 | { | |
7684 | return gss_display_status (); | |
7685 | ; | |
7686 | return 0; | |
7687 | } | |
7688 | _ACEOF | |
7689 | if ac_fn_c_try_link "$LINENO"; then : | |
7690 | ac_cv_lib_gss_gss_display_status=yes | |
7691 | else | |
7692 | ac_cv_lib_gss_gss_display_status=no | |
7693 | fi | |
7694 | rm -f core conftest.err conftest.$ac_objext \ | |
7695 | conftest$ac_exeext conftest.$ac_ext | |
7696 | LIBS=$ac_check_lib_save_LIBS | |
7697 | fi | |
7698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
7699 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
7700 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
7701 | ||
7702 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7703 | ||
7704 | LIBGSSAPI="-lgss -lgssapi_krb5" | |
7705 | fi | |
7706 | ||
7707 | ;; | |
7708 | SunOS*) | |
7709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 | |
7710 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
7711 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
7712 | $as_echo_n "(cached) " >&6 | |
7713 | else | |
7714 | ac_check_lib_save_LIBS=$LIBS | |
7715 | LIBS="-lgss $LIBS" | |
7716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7717 | /* end confdefs.h. */ | |
7718 | ||
7719 | /* Override any GCC internal prototype to avoid an error. | |
7720 | Use char because int might match the return type of a GCC | |
7721 | builtin and then its argument prototype would still apply. */ | |
7722 | #ifdef __cplusplus | |
7723 | extern "C" | |
7724 | #endif | |
7725 | char gss_display_status (); | |
7726 | int | |
7727 | main () | |
7728 | { | |
7729 | return gss_display_status (); | |
7730 | ; | |
7731 | return 0; | |
7732 | } | |
7733 | _ACEOF | |
7734 | if ac_fn_c_try_link "$LINENO"; then : | |
7735 | ac_cv_lib_gss_gss_display_status=yes | |
7736 | else | |
7737 | ac_cv_lib_gss_gss_display_status=no | |
7738 | fi | |
7739 | rm -f core conftest.err conftest.$ac_objext \ | |
7740 | conftest$ac_exeext conftest.$ac_ext | |
7741 | LIBS=$ac_check_lib_save_LIBS | |
7742 | fi | |
7743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
7744 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
7745 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
7746 | ||
7747 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7748 | ||
7749 | LIBGSSAPI="-lgss" | |
7750 | fi | |
7751 | ||
7752 | ;; | |
7753 | esac | |
7754 | fi | |
7755 | ||
7756 | if test "x$LIBGSSAPI" != x; then | |
7757 | ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" | |
7758 | if test "x$ac_cv_header_krb5_h" = xyes; then : | |
7759 | $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h | |
7760 | ||
7761 | fi | |
7762 | ||
7763 | ||
7764 | if test -d /System/Library/Frameworks/GSS.framework; then | |
71f63681 MS |
7765 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default" |
7766 | if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then : | |
7767 | $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h | |
61515785 | 7768 | |
71f63681 MS |
7769 | fi |
7770 | ||
7771 | ||
7772 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default" | |
7773 | if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then : | |
7774 | $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h | |
7775 | ||
7776 | fi | |
7777 | ||
7778 | ||
7779 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default" | |
7780 | if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then : | |
7781 | $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h | |
7782 | ||
7783 | fi | |
61515785 | 7784 | |
61515785 | 7785 | |
61515785 MS |
7786 | else |
7787 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | |
7788 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | |
7789 | $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h | |
7790 | ||
7791 | fi | |
7792 | ||
7793 | ||
7794 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" | |
7795 | if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then : | |
7796 | $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h | |
7797 | ||
7798 | fi | |
7799 | ||
7800 | ||
7801 | fi | |
7802 | ||
7803 | SAVELIBS="$LIBS" | |
7804 | LIBS="$LIBS $LIBGSSAPI" | |
7805 | ||
7806 | ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" | |
7807 | if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then : | |
7808 | $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h | |
7809 | ||
7810 | fi | |
7811 | ||
7812 | ||
7813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5 | |
7814 | $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; } | |
7815 | if test x$ac_cv_header_gssapi_gssapi_h = xyes; then | |
7816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7817 | /* end confdefs.h. */ | |
7818 | #include <gssapi/gssapi.h> | |
7819 | int | |
7820 | main () | |
7821 | { | |
7822 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
7823 | ; | |
7824 | return 0; | |
7825 | } | |
7826 | _ACEOF | |
7827 | if ac_fn_c_try_compile "$LINENO"; then : | |
7828 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
7829 | ||
7830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7831 | $as_echo "yes" >&6; } | |
7832 | else | |
7833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7834 | $as_echo "no" >&6; } | |
7835 | fi | |
7836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7837 | elif test x$ac_cv_header_gss_gssapi_h = xyes; then | |
7838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7839 | /* end confdefs.h. */ | |
7840 | #include <GSS/gssapi.h> | |
7841 | int | |
7842 | main () | |
7843 | { | |
7844 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
7845 | ; | |
7846 | return 0; | |
7847 | } | |
7848 | _ACEOF | |
7849 | if ac_fn_c_try_compile "$LINENO"; then : | |
7850 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
7851 | ||
7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7853 | $as_echo "yes" >&6; } | |
7854 | else | |
7855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7856 | $as_echo "no" >&6; } | |
7857 | fi | |
7858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7859 | else | |
7860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7861 | /* end confdefs.h. */ | |
7862 | #include <gssapi.h> | |
7863 | int | |
7864 | main () | |
7865 | { | |
7866 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
7867 | ; | |
7868 | return 0; | |
7869 | } | |
7870 | _ACEOF | |
7871 | if ac_fn_c_try_compile "$LINENO"; then : | |
7872 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
7873 | ||
7874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7875 | $as_echo "yes" >&6; } | |
7876 | else | |
7877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7878 | $as_echo "no" >&6; } | |
7879 | fi | |
7880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7881 | fi | |
7882 | ||
7883 | LIBS="$SAVELIBS" | |
7884 | fi | |
7885 | fi | |
7886 | ||
7887 | ||
7888 | # Check whether --with-gssservicename was given. | |
7889 | if test "${with_gssservicename+set}" = set; then : | |
7890 | withval=$with_gssservicename; default_gssservicename="$withval" | |
7891 | else | |
7892 | default_gssservicename="default" | |
7893 | fi | |
7894 | ||
7895 | ||
7896 | if test x$default_gssservicename != xno; then | |
7897 | if test "x$default_gssservicename" = "xdefault"; then | |
7898 | CUPS_DEFAULT_GSSSERVICENAME="host" | |
7899 | else | |
7900 | CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename" | |
7901 | fi | |
7902 | else | |
7903 | CUPS_DEFAULT_GSSSERVICENAME="" | |
7904 | fi | |
7905 | ||
7906 | ||
7907 | cat >>confdefs.h <<_ACEOF | |
7908 | #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME" | |
7909 | _ACEOF | |
7910 | ||
7911 | ||
7912 | ||
7913 | ||
7914 | # Check whether --enable-threads was given. | |
7915 | if test "${enable_threads+set}" = set; then : | |
7916 | enableval=$enable_threads; | |
7917 | fi | |
7918 | ||
7919 | ||
7920 | have_pthread=no | |
7921 | PTHREAD_FLAGS="" | |
7922 | ||
7923 | if test "x$enable_threads" != xno; then | |
7924 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | |
7925 | if test "x$ac_cv_header_pthread_h" = xyes; then : | |
7926 | $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h | |
7927 | ||
7928 | fi | |
7929 | ||
7930 | ||
7931 | ||
7932 | if test x$ac_cv_header_pthread_h = xyes; then | |
7933 | for flag in -lpthreads -lpthread -pthread; do | |
7934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5 | |
7935 | $as_echo_n "checking for pthread_create using $flag... " >&6; } | |
7936 | SAVELIBS="$LIBS" | |
7937 | LIBS="$flag $LIBS" | |
7938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7939 | /* end confdefs.h. */ | |
7940 | #include <pthread.h> | |
7941 | int | |
7942 | main () | |
7943 | { | |
7944 | pthread_create(0, 0, 0, 0); | |
7945 | ; | |
7946 | return 0; | |
7947 | } | |
7948 | _ACEOF | |
7949 | if ac_fn_c_try_link "$LINENO"; then : | |
7950 | have_pthread=yes | |
7951 | else | |
7952 | LIBS="$SAVELIBS" | |
7953 | fi | |
7954 | rm -f core conftest.err conftest.$ac_objext \ | |
7955 | conftest$ac_exeext conftest.$ac_ext | |
7956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5 | |
7957 | $as_echo "$have_pthread" >&6; } | |
7958 | ||
7959 | if test $have_pthread = yes; then | |
7960 | PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT" | |
7961 | ||
7962 | # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to | |
7963 | # be POSIX-compliant... :( | |
7964 | if test $uname = SunOS; then | |
7965 | PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS" | |
7966 | fi | |
7967 | break | |
7968 | fi | |
7969 | done | |
7970 | fi | |
7971 | fi | |
7972 | ||
7973 | ||
7974 | ||
7975 | ||
7976 | ||
7977 | # Check whether --enable-ssl was given. | |
7978 | if test "${enable_ssl+set}" = set; then : | |
7979 | enableval=$enable_ssl; | |
7980 | fi | |
7981 | ||
7982 | # Check whether --enable-cdsassl was given. | |
7983 | if test "${enable_cdsassl+set}" = set; then : | |
7984 | enableval=$enable_cdsassl; | |
7985 | fi | |
7986 | ||
7987 | # Check whether --enable-gnutls was given. | |
7988 | if test "${enable_gnutls+set}" = set; then : | |
7989 | enableval=$enable_gnutls; | |
7990 | fi | |
7991 | ||
61515785 MS |
7992 | |
7993 | SSLFLAGS="" | |
7994 | SSLLIBS="" | |
7995 | have_ssl=0 | |
7996 | CUPS_SERVERCERT="" | |
7997 | CUPS_SERVERKEY="" | |
7998 | ||
7999 | if test x$enable_ssl != xno; then | |
8000 | if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then | |
8001 | if test $uname = Darwin; then | |
8002 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default" | |
8003 | if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then : | |
8004 | ||
8005 | have_ssl=1 | |
8006 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8007 | ||
8008 | $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h | |
8009 | ||
8010 | CUPS_SERVERCERT="/Library/Keychains/System.keychain" | |
8011 | ||
8012 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default" | |
8013 | if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then : | |
8014 | $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h | |
8015 | ||
8016 | fi | |
8017 | ||
8018 | ||
8019 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default" | |
8020 | if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then : | |
8021 | $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h | |
8022 | ||
8023 | fi | |
8024 | ||
8025 | ||
8026 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default" | |
8027 | if test "x$ac_cv_header_Security_SecItem_h" = xyes; then : | |
8028 | $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h | |
8029 | ||
8030 | fi | |
8031 | ||
8032 | ||
8033 | ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h> | |
8034 | " | |
8035 | if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then : | |
8036 | $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h | |
8037 | ||
8038 | fi | |
8039 | ||
8040 | ||
8041 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default" | |
8042 | if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then : | |
8043 | $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h | |
8044 | ||
8045 | fi | |
8046 | ||
8047 | ||
8048 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default" | |
8049 | if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then : | |
8050 | $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h | |
8051 | ||
8052 | fi | |
8053 | ||
8054 | ||
8055 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default" | |
8056 | if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then : | |
8057 | $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h | |
8058 | ||
8059 | fi | |
8060 | ||
8061 | ||
8062 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default" | |
8063 | if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then : | |
8064 | $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h | |
8065 | ||
8066 | fi | |
8067 | ||
8068 | ||
8069 | ||
8070 | $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h | |
8071 | ||
1a18c85c MS |
8072 | $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h |
8073 | ||
61515785 MS |
8074 | fi |
8075 | ||
8076 | ||
8077 | fi | |
8078 | fi | |
8079 | ||
8080 | if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then | |
1a18c85c MS |
8081 | if test -n "$ac_tool_prefix"; then |
8082 | # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args. | |
8083 | set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2 | |
61515785 MS |
8084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8085 | $as_echo_n "checking for $ac_word... " >&6; } | |
8086 | if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then : | |
8087 | $as_echo_n "(cached) " >&6 | |
8088 | else | |
8089 | case $LIBGNUTLSCONFIG in | |
8090 | [\\/]* | ?:[\\/]*) | |
8091 | ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path. | |
8092 | ;; | |
8093 | *) | |
8094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8095 | for as_dir in $PATH | |
8096 | do | |
8097 | IFS=$as_save_IFS | |
8098 | test -z "$as_dir" && as_dir=. | |
8099 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8101 | ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
8102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8103 | break 2 | |
8104 | fi | |
8105 | done | |
8106 | done | |
8107 | IFS=$as_save_IFS | |
8108 | ||
8109 | ;; | |
8110 | esac | |
8111 | fi | |
8112 | LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG | |
8113 | if test -n "$LIBGNUTLSCONFIG"; then | |
8114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5 | |
8115 | $as_echo "$LIBGNUTLSCONFIG" >&6; } | |
8116 | else | |
8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8118 | $as_echo "no" >&6; } | |
8119 | fi | |
8120 | ||
8121 | ||
1a18c85c MS |
8122 | fi |
8123 | if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then | |
8124 | ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG | |
8125 | # Extract the first word of "libgnutls-config", so it can be a program name with args. | |
8126 | set dummy libgnutls-config; ac_word=$2 | |
8127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8128 | $as_echo_n "checking for $ac_word... " >&6; } | |
8129 | if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then : | |
8130 | $as_echo_n "(cached) " >&6 | |
8131 | else | |
8132 | case $ac_pt_LIBGNUTLSCONFIG in | |
8133 | [\\/]* | ?:[\\/]*) | |
8134 | ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path. | |
8135 | ;; | |
8136 | *) | |
8137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8138 | for as_dir in $PATH | |
8139 | do | |
8140 | IFS=$as_save_IFS | |
8141 | test -z "$as_dir" && as_dir=. | |
8142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8144 | ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
8145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8146 | break 2 | |
8147 | fi | |
8148 | done | |
8149 | done | |
8150 | IFS=$as_save_IFS | |
8151 | ||
8152 | ;; | |
8153 | esac | |
8154 | fi | |
8155 | ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG | |
8156 | if test -n "$ac_pt_LIBGNUTLSCONFIG"; then | |
8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5 | |
8158 | $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; } | |
8159 | else | |
8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8161 | $as_echo "no" >&6; } | |
8162 | fi | |
8163 | ||
8164 | if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then | |
8165 | LIBGNUTLSCONFIG="" | |
8166 | else | |
8167 | case $cross_compiling:$ac_tool_warned in | |
8168 | yes:) | |
8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8170 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8171 | ac_tool_warned=yes ;; | |
8172 | esac | |
8173 | LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG | |
8174 | fi | |
8175 | else | |
8176 | LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG" | |
8177 | fi | |
8178 | ||
8179 | if test -n "$ac_tool_prefix"; then | |
8180 | # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args. | |
8181 | set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2 | |
61515785 MS |
8182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8183 | $as_echo_n "checking for $ac_word... " >&6; } | |
8184 | if ${ac_cv_path_LIBGCRYPTCONFIG+:} false; then : | |
8185 | $as_echo_n "(cached) " >&6 | |
8186 | else | |
8187 | case $LIBGCRYPTCONFIG in | |
8188 | [\\/]* | ?:[\\/]*) | |
8189 | ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path. | |
8190 | ;; | |
8191 | *) | |
8192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8193 | for as_dir in $PATH | |
8194 | do | |
8195 | IFS=$as_save_IFS | |
8196 | test -z "$as_dir" && as_dir=. | |
8197 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8198 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8199 | ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
8200 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8201 | break 2 | |
8202 | fi | |
8203 | done | |
8204 | done | |
8205 | IFS=$as_save_IFS | |
8206 | ||
8207 | ;; | |
8208 | esac | |
8209 | fi | |
8210 | LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG | |
8211 | if test -n "$LIBGCRYPTCONFIG"; then | |
8212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5 | |
8213 | $as_echo "$LIBGCRYPTCONFIG" >&6; } | |
8214 | else | |
8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8216 | $as_echo "no" >&6; } | |
8217 | fi | |
8218 | ||
8219 | ||
1a18c85c MS |
8220 | fi |
8221 | if test -z "$ac_cv_path_LIBGCRYPTCONFIG"; then | |
8222 | ac_pt_LIBGCRYPTCONFIG=$LIBGCRYPTCONFIG | |
8223 | # Extract the first word of "libgcrypt-config", so it can be a program name with args. | |
8224 | set dummy libgcrypt-config; ac_word=$2 | |
8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8226 | $as_echo_n "checking for $ac_word... " >&6; } | |
8227 | if ${ac_cv_path_ac_pt_LIBGCRYPTCONFIG+:} false; then : | |
8228 | $as_echo_n "(cached) " >&6 | |
8229 | else | |
8230 | case $ac_pt_LIBGCRYPTCONFIG in | |
8231 | [\\/]* | ?:[\\/]*) | |
8232 | ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$ac_pt_LIBGCRYPTCONFIG" # Let the user override the test with a path. | |
8233 | ;; | |
8234 | *) | |
8235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8236 | for as_dir in $PATH | |
8237 | do | |
8238 | IFS=$as_save_IFS | |
8239 | test -z "$as_dir" && as_dir=. | |
8240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8242 | ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
8243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8244 | break 2 | |
8245 | fi | |
8246 | done | |
8247 | done | |
8248 | IFS=$as_save_IFS | |
8249 | ||
8250 | ;; | |
8251 | esac | |
8252 | fi | |
8253 | ac_pt_LIBGCRYPTCONFIG=$ac_cv_path_ac_pt_LIBGCRYPTCONFIG | |
8254 | if test -n "$ac_pt_LIBGCRYPTCONFIG"; then | |
8255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPTCONFIG" >&5 | |
8256 | $as_echo "$ac_pt_LIBGCRYPTCONFIG" >&6; } | |
8257 | else | |
8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8259 | $as_echo "no" >&6; } | |
8260 | fi | |
8261 | ||
8262 | if test "x$ac_pt_LIBGCRYPTCONFIG" = x; then | |
8263 | LIBGCRYPTCONFIG="" | |
8264 | else | |
8265 | case $cross_compiling:$ac_tool_warned in | |
8266 | yes:) | |
8267 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8268 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8269 | ac_tool_warned=yes ;; | |
8270 | esac | |
8271 | LIBGCRYPTCONFIG=$ac_pt_LIBGCRYPTCONFIG | |
8272 | fi | |
8273 | else | |
8274 | LIBGCRYPTCONFIG="$ac_cv_path_LIBGCRYPTCONFIG" | |
8275 | fi | |
8276 | ||
61515785 MS |
8277 | if $PKGCONFIG --exists gnutls; then |
8278 | have_ssl=1 | |
8279 | SSLLIBS=`$PKGCONFIG --libs gnutls` | |
8280 | SSLFLAGS=`$PKGCONFIG --cflags gnutls` | |
8281 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8282 | ||
8283 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
8284 | ||
8285 | elif test "x$LIBGNUTLSCONFIG" != x; then | |
8286 | have_ssl=1 | |
8287 | SSLLIBS=`$LIBGNUTLSCONFIG --libs` | |
8288 | SSLFLAGS=`$LIBGNUTLSCONFIG --cflags` | |
8289 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8290 | ||
8291 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
8292 | ||
8293 | fi | |
8294 | ||
8295 | if test $have_ssl = 1; then | |
8296 | CUPS_SERVERCERT="ssl/server.crt" | |
8297 | CUPS_SERVERKEY="ssl/server.key" | |
61515785 | 8298 | fi |
61515785 MS |
8299 | fi |
8300 | fi | |
8301 | ||
8302 | IPPALIASES="http" | |
8303 | if test $have_ssl = 1; then | |
8304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5 | |
8305 | $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; } | |
8306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5 | |
8307 | $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; } | |
8308 | IPPALIASES="http https ipps" | |
1a18c85c | 8309 | elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then |
61515785 MS |
8310 | as_fn_error $? "Unable to enable SSL support." "$LINENO" 5 |
8311 | fi | |
8312 | ||
8313 | ||
8314 | ||
8315 | ||
8316 | ||
8317 | ||
8318 | ||
8319 | EXPORT_SSLLIBS="$SSLLIBS" | |
8320 | ||
8321 | ||
8322 | ||
8323 | ||
8324 | # Check whether --enable-pam was given. | |
8325 | if test "${enable_pam+set}" = set; then : | |
8326 | enableval=$enable_pam; | |
8327 | fi | |
8328 | ||
8329 | ||
8330 | # Check whether --with-pam_module was given. | |
8331 | if test "${with_pam_module+set}" = set; then : | |
8332 | withval=$with_pam_module; | |
8333 | fi | |
8334 | ||
8335 | ||
61515785 MS |
8336 | PAMDIR="" |
8337 | PAMFILE="pam.std" | |
8338 | PAMLIBS="" | |
8339 | PAMMOD="pam_unknown.so" | |
8340 | PAMMODAUTH="pam_unknown.so" | |
8341 | ||
8342 | if test x$enable_pam != xno; then | |
8343 | SAVELIBS="$LIBS" | |
8344 | ||
8345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
8346 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
8347 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
8348 | $as_echo_n "(cached) " >&6 | |
8349 | else | |
8350 | ac_check_lib_save_LIBS=$LIBS | |
8351 | LIBS="-ldl $LIBS" | |
8352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8353 | /* end confdefs.h. */ | |
8354 | ||
8355 | /* Override any GCC internal prototype to avoid an error. | |
8356 | Use char because int might match the return type of a GCC | |
8357 | builtin and then its argument prototype would still apply. */ | |
8358 | #ifdef __cplusplus | |
8359 | extern "C" | |
8360 | #endif | |
8361 | char dlopen (); | |
8362 | int | |
8363 | main () | |
8364 | { | |
8365 | return dlopen (); | |
8366 | ; | |
8367 | return 0; | |
8368 | } | |
8369 | _ACEOF | |
8370 | if ac_fn_c_try_link "$LINENO"; then : | |
8371 | ac_cv_lib_dl_dlopen=yes | |
8372 | else | |
8373 | ac_cv_lib_dl_dlopen=no | |
8374 | fi | |
8375 | rm -f core conftest.err conftest.$ac_objext \ | |
8376 | conftest$ac_exeext conftest.$ac_ext | |
8377 | LIBS=$ac_check_lib_save_LIBS | |
8378 | fi | |
8379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
8380 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
8381 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
8382 | cat >>confdefs.h <<_ACEOF | |
8383 | #define HAVE_LIBDL 1 | |
8384 | _ACEOF | |
8385 | ||
8386 | LIBS="-ldl $LIBS" | |
8387 | ||
8388 | fi | |
8389 | ||
8390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 | |
8391 | $as_echo_n "checking for pam_start in -lpam... " >&6; } | |
8392 | if ${ac_cv_lib_pam_pam_start+:} false; then : | |
8393 | $as_echo_n "(cached) " >&6 | |
8394 | else | |
8395 | ac_check_lib_save_LIBS=$LIBS | |
8396 | LIBS="-lpam $LIBS" | |
8397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8398 | /* end confdefs.h. */ | |
8399 | ||
8400 | /* Override any GCC internal prototype to avoid an error. | |
8401 | Use char because int might match the return type of a GCC | |
8402 | builtin and then its argument prototype would still apply. */ | |
8403 | #ifdef __cplusplus | |
8404 | extern "C" | |
8405 | #endif | |
8406 | char pam_start (); | |
8407 | int | |
8408 | main () | |
8409 | { | |
8410 | return pam_start (); | |
8411 | ; | |
8412 | return 0; | |
8413 | } | |
8414 | _ACEOF | |
8415 | if ac_fn_c_try_link "$LINENO"; then : | |
8416 | ac_cv_lib_pam_pam_start=yes | |
8417 | else | |
8418 | ac_cv_lib_pam_pam_start=no | |
8419 | fi | |
8420 | rm -f core conftest.err conftest.$ac_objext \ | |
8421 | conftest$ac_exeext conftest.$ac_ext | |
8422 | LIBS=$ac_check_lib_save_LIBS | |
8423 | fi | |
8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 | |
8425 | $as_echo "$ac_cv_lib_pam_pam_start" >&6; } | |
8426 | if test "x$ac_cv_lib_pam_pam_start" = xyes; then : | |
8427 | cat >>confdefs.h <<_ACEOF | |
8428 | #define HAVE_LIBPAM 1 | |
8429 | _ACEOF | |
8430 | ||
8431 | LIBS="-lpam $LIBS" | |
8432 | ||
8433 | fi | |
8434 | ||
8435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 | |
8436 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } | |
8437 | if ${ac_cv_lib_pam_pam_set_item+:} false; then : | |
8438 | $as_echo_n "(cached) " >&6 | |
8439 | else | |
8440 | ac_check_lib_save_LIBS=$LIBS | |
8441 | LIBS="-lpam $LIBS" | |
8442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8443 | /* end confdefs.h. */ | |
8444 | ||
8445 | /* Override any GCC internal prototype to avoid an error. | |
8446 | Use char because int might match the return type of a GCC | |
8447 | builtin and then its argument prototype would still apply. */ | |
8448 | #ifdef __cplusplus | |
8449 | extern "C" | |
8450 | #endif | |
8451 | char pam_set_item (); | |
8452 | int | |
8453 | main () | |
8454 | { | |
8455 | return pam_set_item (); | |
8456 | ; | |
8457 | return 0; | |
8458 | } | |
8459 | _ACEOF | |
8460 | if ac_fn_c_try_link "$LINENO"; then : | |
8461 | ac_cv_lib_pam_pam_set_item=yes | |
8462 | else | |
8463 | ac_cv_lib_pam_pam_set_item=no | |
8464 | fi | |
8465 | rm -f core conftest.err conftest.$ac_objext \ | |
8466 | conftest$ac_exeext conftest.$ac_ext | |
8467 | LIBS=$ac_check_lib_save_LIBS | |
8468 | fi | |
8469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 | |
8470 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } | |
8471 | if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : | |
8472 | $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h | |
8473 | ||
8474 | fi | |
8475 | ||
8476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5 | |
8477 | $as_echo_n "checking for pam_setcred in -lpam... " >&6; } | |
8478 | if ${ac_cv_lib_pam_pam_setcred+:} false; then : | |
8479 | $as_echo_n "(cached) " >&6 | |
8480 | else | |
8481 | ac_check_lib_save_LIBS=$LIBS | |
8482 | LIBS="-lpam $LIBS" | |
8483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8484 | /* end confdefs.h. */ | |
8485 | ||
8486 | /* Override any GCC internal prototype to avoid an error. | |
8487 | Use char because int might match the return type of a GCC | |
8488 | builtin and then its argument prototype would still apply. */ | |
8489 | #ifdef __cplusplus | |
8490 | extern "C" | |
8491 | #endif | |
8492 | char pam_setcred (); | |
8493 | int | |
8494 | main () | |
8495 | { | |
8496 | return pam_setcred (); | |
8497 | ; | |
8498 | return 0; | |
8499 | } | |
8500 | _ACEOF | |
8501 | if ac_fn_c_try_link "$LINENO"; then : | |
8502 | ac_cv_lib_pam_pam_setcred=yes | |
8503 | else | |
8504 | ac_cv_lib_pam_pam_setcred=no | |
8505 | fi | |
8506 | rm -f core conftest.err conftest.$ac_objext \ | |
8507 | conftest$ac_exeext conftest.$ac_ext | |
8508 | LIBS=$ac_check_lib_save_LIBS | |
8509 | fi | |
8510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5 | |
8511 | $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; } | |
8512 | if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then : | |
8513 | $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h | |
8514 | ||
8515 | fi | |
8516 | ||
8517 | ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" | |
8518 | if test "x$ac_cv_header_security_pam_appl_h" = xyes; then : | |
8519 | ||
8520 | fi | |
8521 | ||
8522 | ||
8523 | if test x$ac_cv_header_security_pam_appl_h != xyes; then | |
8524 | ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default" | |
8525 | if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then : | |
8526 | $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h | |
8527 | ||
8528 | fi | |
8529 | ||
8530 | ||
8531 | fi | |
8532 | ||
8533 | if test x$ac_cv_lib_pam_pam_start != xno; then | |
8534 | # Set the necessary libraries for PAM... | |
8535 | if test x$ac_cv_lib_dl_dlopen != xno; then | |
8536 | PAMLIBS="-lpam -ldl" | |
8537 | else | |
8538 | PAMLIBS="-lpam" | |
8539 | fi | |
8540 | ||
8541 | # Find the PAM configuration directory, if any... | |
8542 | for dir in /private/etc/pam.d /etc/pam.d; do | |
8543 | if test -d $dir; then | |
8544 | PAMDIR=$dir | |
8545 | break; | |
8546 | fi | |
8547 | done | |
8548 | fi | |
8549 | ||
8550 | LIBS="$SAVELIBS" | |
8551 | ||
8552 | case "$uname" in | |
8553 | Darwin*) | |
8554 | # Darwin/OS X | |
8555 | if test "x$with_pam_module" != x; then | |
8556 | PAMFILE="pam.$with_pam_module" | |
8557 | elif test -f /usr/lib/pam/pam_opendirectory.so.2; then | |
8558 | PAMFILE="pam.opendirectory" | |
8559 | else | |
8560 | PAMFILE="pam.securityserver" | |
8561 | fi | |
8562 | ;; | |
8563 | ||
8564 | *) | |
8565 | # All others; this test might need to be updated | |
8566 | # as Linux distributors move things around... | |
8567 | if test "x$with_pam_module" != x; then | |
8568 | PAMMOD="pam_${with_pam_module}.so" | |
8569 | elif test -f /lib/security/pam_unix2.so; then | |
8570 | PAMMOD="pam_unix2.so" | |
8571 | elif test -f /lib/security/pam_unix.so; then | |
8572 | PAMMOD="pam_unix.so" | |
8573 | fi | |
8574 | ||
8575 | if test "x$PAMMOD" = xpam_unix.so; then | |
8576 | PAMMODAUTH="$PAMMOD shadow nodelay" | |
8577 | else | |
8578 | PAMMODAUTH="$PAMMOD nodelay" | |
8579 | fi | |
8580 | ;; | |
8581 | esac | |
8582 | fi | |
8583 | ||
8584 | ||
8585 | ||
8586 | ||
8587 | ||
8588 | ||
8589 | ||
8590 | ||
8591 | ||
8592 | # Check whether --enable-largefile was given. | |
8593 | if test "${enable_largefile+set}" = set; then : | |
8594 | enableval=$enable_largefile; | |
8595 | fi | |
8596 | ||
8597 | if test "$enable_largefile" != no; then | |
8598 | ||
8599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
8600 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
8601 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
8602 | $as_echo_n "(cached) " >&6 | |
8603 | else | |
8604 | ac_cv_sys_largefile_CC=no | |
8605 | if test "$GCC" != yes; then | |
8606 | ac_save_CC=$CC | |
8607 | while :; do | |
8608 | # IRIX 6.2 and later do not support large files by default, | |
8609 | # so use the C compiler's -n32 option if that helps. | |
8610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8611 | /* end confdefs.h. */ | |
8612 | #include <sys/types.h> | |
8613 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8614 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8615 | since some C++ compilers masquerading as C compilers | |
8616 | incorrectly reject 9223372036854775807. */ | |
8617 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
8618 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
8619 | && LARGE_OFF_T % 2147483647 == 1) | |
8620 | ? 1 : -1]; | |
8621 | int | |
8622 | main () | |
8623 | { | |
8624 | ||
8625 | ; | |
8626 | return 0; | |
8627 | } | |
8628 | _ACEOF | |
8629 | if ac_fn_c_try_compile "$LINENO"; then : | |
8630 | break | |
8631 | fi | |
8632 | rm -f core conftest.err conftest.$ac_objext | |
8633 | CC="$CC -n32" | |
8634 | if ac_fn_c_try_compile "$LINENO"; then : | |
8635 | ac_cv_sys_largefile_CC=' -n32'; break | |
8636 | fi | |
8637 | rm -f core conftest.err conftest.$ac_objext | |
8638 | break | |
8639 | done | |
8640 | CC=$ac_save_CC | |
8641 | rm -f conftest.$ac_ext | |
8642 | fi | |
8643 | fi | |
8644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
8645 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
8646 | if test "$ac_cv_sys_largefile_CC" != no; then | |
8647 | CC=$CC$ac_cv_sys_largefile_CC | |
8648 | fi | |
8649 | ||
8650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
8651 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
8652 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
8653 | $as_echo_n "(cached) " >&6 | |
8654 | else | |
8655 | while :; do | |
8656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8657 | /* end confdefs.h. */ | |
8658 | #include <sys/types.h> | |
8659 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8660 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8661 | since some C++ compilers masquerading as C compilers | |
8662 | incorrectly reject 9223372036854775807. */ | |
8663 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
8664 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
8665 | && LARGE_OFF_T % 2147483647 == 1) | |
8666 | ? 1 : -1]; | |
8667 | int | |
8668 | main () | |
8669 | { | |
8670 | ||
8671 | ; | |
8672 | return 0; | |
8673 | } | |
8674 | _ACEOF | |
8675 | if ac_fn_c_try_compile "$LINENO"; then : | |
8676 | ac_cv_sys_file_offset_bits=no; break | |
8677 | fi | |
8678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8680 | /* end confdefs.h. */ | |
8681 | #define _FILE_OFFSET_BITS 64 | |
8682 | #include <sys/types.h> | |
8683 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8684 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8685 | since some C++ compilers masquerading as C compilers | |
8686 | incorrectly reject 9223372036854775807. */ | |
8687 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
8688 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
8689 | && LARGE_OFF_T % 2147483647 == 1) | |
8690 | ? 1 : -1]; | |
8691 | int | |
8692 | main () | |
8693 | { | |
8694 | ||
8695 | ; | |
8696 | return 0; | |
8697 | } | |
8698 | _ACEOF | |
8699 | if ac_fn_c_try_compile "$LINENO"; then : | |
8700 | ac_cv_sys_file_offset_bits=64; break | |
8701 | fi | |
8702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8703 | ac_cv_sys_file_offset_bits=unknown | |
8704 | break | |
8705 | done | |
8706 | fi | |
8707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
8708 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
8709 | case $ac_cv_sys_file_offset_bits in #( | |
8710 | no | unknown) ;; | |
8711 | *) | |
8712 | cat >>confdefs.h <<_ACEOF | |
8713 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
8714 | _ACEOF | |
8715 | ;; | |
8716 | esac | |
8717 | rm -rf conftest* | |
8718 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
8719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
8720 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
8721 | if ${ac_cv_sys_large_files+:} false; then : | |
8722 | $as_echo_n "(cached) " >&6 | |
8723 | else | |
8724 | while :; do | |
8725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8726 | /* end confdefs.h. */ | |
8727 | #include <sys/types.h> | |
8728 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8729 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8730 | since some C++ compilers masquerading as C compilers | |
8731 | incorrectly reject 9223372036854775807. */ | |
8732 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
8733 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
8734 | && LARGE_OFF_T % 2147483647 == 1) | |
8735 | ? 1 : -1]; | |
8736 | int | |
8737 | main () | |
8738 | { | |
8739 | ||
8740 | ; | |
8741 | return 0; | |
8742 | } | |
8743 | _ACEOF | |
8744 | if ac_fn_c_try_compile "$LINENO"; then : | |
8745 | ac_cv_sys_large_files=no; break | |
8746 | fi | |
8747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8749 | /* end confdefs.h. */ | |
8750 | #define _LARGE_FILES 1 | |
8751 | #include <sys/types.h> | |
8752 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8753 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8754 | since some C++ compilers masquerading as C compilers | |
8755 | incorrectly reject 9223372036854775807. */ | |
8756 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
8757 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
8758 | && LARGE_OFF_T % 2147483647 == 1) | |
8759 | ? 1 : -1]; | |
8760 | int | |
8761 | main () | |
8762 | { | |
8763 | ||
8764 | ; | |
8765 | return 0; | |
8766 | } | |
8767 | _ACEOF | |
8768 | if ac_fn_c_try_compile "$LINENO"; then : | |
8769 | ac_cv_sys_large_files=1; break | |
8770 | fi | |
8771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8772 | ac_cv_sys_large_files=unknown | |
8773 | break | |
8774 | done | |
8775 | fi | |
8776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
8777 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
8778 | case $ac_cv_sys_large_files in #( | |
8779 | no | unknown) ;; | |
8780 | *) | |
8781 | cat >>confdefs.h <<_ACEOF | |
8782 | #define _LARGE_FILES $ac_cv_sys_large_files | |
8783 | _ACEOF | |
8784 | ;; | |
8785 | esac | |
8786 | rm -rf conftest* | |
8787 | fi | |
8788 | fi | |
8789 | ||
8790 | ||
8791 | LARGEFILE="" | |
8792 | if test x$enable_largefile != xno; then | |
8793 | LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" | |
8794 | ||
8795 | if test x$ac_cv_sys_large_files = x1; then | |
8796 | LARGEFILE="$LARGEFILE -D_LARGE_FILES" | |
8797 | fi | |
8798 | ||
8799 | if test x$ac_cv_sys_file_offset_bits = x64; then | |
8800 | LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64" | |
8801 | fi | |
8802 | fi | |
8803 | ||
8804 | ||
8805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 | |
8806 | $as_echo_n "checking for long long int... " >&6; } | |
8807 | if ${ac_cv_c_long_long+:} false; then : | |
8808 | $as_echo_n "(cached) " >&6 | |
8809 | else | |
8810 | if test "$GCC" = yes; then | |
8811 | ac_cv_c_long_long=yes | |
8812 | else | |
8813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8814 | /* end confdefs.h. */ | |
8815 | ||
8816 | int | |
8817 | main () | |
8818 | { | |
8819 | long long int i; | |
8820 | ; | |
8821 | return 0; | |
8822 | } | |
8823 | _ACEOF | |
8824 | if ac_fn_c_try_compile "$LINENO"; then : | |
8825 | ac_cv_c_long_long=yes | |
8826 | else | |
8827 | ac_cv_c_long_long=no | |
8828 | fi | |
8829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8830 | fi | |
8831 | fi | |
8832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5 | |
8833 | $as_echo "$ac_cv_c_long_long" >&6; } | |
8834 | ||
8835 | if test $ac_cv_c_long_long = yes; then | |
8836 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | |
8837 | ||
8838 | fi | |
8839 | ||
8840 | ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" | |
8841 | if test "x$ac_cv_func_strtoll" = xyes; then : | |
8842 | $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h | |
8843 | ||
8844 | fi | |
8845 | ||
8846 | ||
8847 | ||
8848 | ||
8849 | # Check whether --enable-avahi was given. | |
8850 | if test "${enable_avahi+set}" = set; then : | |
8851 | enableval=$enable_avahi; | |
8852 | fi | |
8853 | ||
8854 | # Check whether --enable-dnssd was given. | |
8855 | if test "${enable_dnssd+set}" = set; then : | |
8856 | enableval=$enable_dnssd; | |
8857 | fi | |
8858 | ||
8859 | ||
8860 | # Check whether --with-dnssd-libs was given. | |
8861 | if test "${with_dnssd_libs+set}" = set; then : | |
8862 | withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS" | |
8863 | DSOFLAGS="-L$withval $DSOFLAGS" | |
8864 | fi | |
8865 | ||
8866 | ||
8867 | # Check whether --with-dnssd-includes was given. | |
8868 | if test "${with_dnssd_includes+set}" = set; then : | |
8869 | withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS" | |
8870 | CPPFLAGS="-I$withval $CPPFLAGS" | |
8871 | fi | |
8872 | ||
8873 | ||
8874 | DNSSDLIBS="" | |
8875 | DNSSD_BACKEND="" | |
8876 | IPPFIND_BIN="" | |
8877 | IPPFIND_MAN="" | |
8878 | ||
8879 | if test "x$PKGCONFIG" != x -a x$enable_avahi != xno; then | |
8880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5 | |
8881 | $as_echo_n "checking for Avahi... " >&6; } | |
8882 | if $PKGCONFIG --exists avahi-client; then | |
8883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8884 | $as_echo "yes" >&6; } | |
8885 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`" | |
8886 | DNSSDLIBS="`$PKGCONFIG --libs avahi-client`" | |
8887 | DNSSD_BACKEND="dnssd" | |
8888 | IPPFIND_BIN="ippfind" | |
8889 | IPPFIND_MAN="ippfind.\$(MAN1EXT)" | |
8890 | $as_echo "#define HAVE_AVAHI 1" >>confdefs.h | |
8891 | ||
8892 | else | |
8893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8894 | $as_echo "no" >&6; } | |
8895 | fi | |
8896 | fi | |
8897 | ||
8898 | if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then | |
8899 | ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default" | |
8900 | if test "x$ac_cv_header_dns_sd_h" = xyes; then : | |
8901 | ||
8902 | case "$uname" in | |
8903 | Darwin*) | |
8904 | # Darwin and MacOS X... | |
8905 | $as_echo "#define HAVE_DNSSD 1" >>confdefs.h | |
8906 | ||
8907 | DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration" | |
8908 | DNSSD_BACKEND="dnssd" | |
8909 | IPPFIND_BIN="ippfind" | |
8910 | IPPFIND_MAN="ippfind.\$(MAN1EXT)" | |
8911 | ;; | |
8912 | *) | |
8913 | # All others... | |
8914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5 | |
8915 | $as_echo_n "checking for current version of dns_sd library... " >&6; } | |
8916 | SAVELIBS="$LIBS" | |
8917 | LIBS="$LIBS -ldns_sd" | |
8918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8919 | /* end confdefs.h. */ | |
8920 | #include <dns_sd.h> | |
8921 | int | |
8922 | main () | |
8923 | { | |
8924 | int constant = kDNSServiceFlagsShareConnection; | |
8925 | unsigned char txtRecord[100]; | |
8926 | uint8_t valueLen; | |
8927 | TXTRecordGetValuePtr(sizeof(txtRecord), | |
8928 | txtRecord, "value", &valueLen); | |
8929 | ; | |
8930 | return 0; | |
8931 | } | |
8932 | _ACEOF | |
8933 | if ac_fn_c_try_compile "$LINENO"; then : | |
8934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8935 | $as_echo "yes" >&6; } | |
8936 | $as_echo "#define HAVE_DNSSD 1" >>confdefs.h | |
8937 | ||
8938 | DNSSDLIBS="-ldns_sd" | |
8939 | DNSSD_BACKEND="dnssd" | |
8940 | else | |
8941 | IPPFIND_BIN="ippfind" | |
8942 | IPPFIND_MAN="ippfind.\$(MAN1EXT)" | |
8943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8944 | $as_echo "no" >&6; } | |
8945 | fi | |
8946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8947 | LIBS="$SAVELIBS" | |
8948 | ;; | |
8949 | esac | |
8950 | ||
8951 | fi | |
8952 | ||
8953 | ||
8954 | fi | |
8955 | ||
8956 | ||
8957 | ||
8958 | ||
8959 | ||
8960 | ||
8961 | ||
8962 | ||
1a18c85c MS |
8963 | ONDEMANDFLAGS="" |
8964 | ONDEMANDLIBS="" | |
8965 | ||
8966 | ||
61515785 MS |
8967 | |
8968 | # Check whether --enable-launchd was given. | |
8969 | if test "${enable_launchd+set}" = set; then : | |
8970 | enableval=$enable_launchd; | |
8971 | fi | |
8972 | ||
1a18c85c | 8973 | LAUNCHD_DIR="" |
61515785 | 8974 | |
61515785 MS |
8975 | |
8976 | if test x$enable_launchd != xno; then | |
8977 | ac_fn_c_check_func "$LINENO" "launch_msg" "ac_cv_func_launch_msg" | |
8978 | if test "x$ac_cv_func_launch_msg" = xyes; then : | |
8979 | $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h | |
8980 | ||
8981 | fi | |
8982 | ||
1a18c85c MS |
8983 | if test $uversion -ge 140; then |
8984 | ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket" | |
8985 | if test "x$ac_cv_func_launch_activate_socket" = xyes; then : | |
8986 | ||
8987 | $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h | |
8988 | ||
8989 | $as_echo "#define HAVE_LAUNCH_ACTIVATE_SOCKET 1" >>confdefs.h | |
8990 | ||
8991 | fi | |
8992 | ||
8993 | fi | |
61515785 MS |
8994 | ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default" |
8995 | if test "x$ac_cv_header_launch_h" = xyes; then : | |
8996 | $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h | |
8997 | ||
8998 | fi | |
8999 | ||
9000 | ||
9001 | ||
9002 | case "$uname" in | |
9003 | Darwin*) | |
9004 | # Darwin, MacOS X | |
1a18c85c | 9005 | LAUNCHD_DIR="/System/Library/LaunchDaemons" |
61515785 MS |
9006 | # liblaunch is already part of libSystem |
9007 | ;; | |
9008 | *) | |
9009 | # All others; this test will need to be updated | |
9010 | ;; | |
9011 | esac | |
9012 | fi | |
9013 | ||
1a18c85c MS |
9014 | # Check whether --enable-systemd was given. |
9015 | if test "${enable_systemd+set}" = set; then : | |
9016 | enableval=$enable_systemd; | |
9017 | fi | |
9018 | ||
61515785 | 9019 | |
1a18c85c MS |
9020 | # Check whether --with-systemd was given. |
9021 | if test "${with_systemd+set}" = set; then : | |
9022 | withval=$with_systemd; SYSTEMD_DIR="$withval" | |
9023 | else | |
9024 | SYSTEMD_DIR="" | |
9025 | fi | |
9026 | ||
9027 | ||
9028 | ||
9029 | if test x$enable_systemd != xno; then | |
9030 | if test "x$PKGCONFIG" = x; then | |
9031 | if test x$enable_systemd = xyes; then | |
9032 | as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5 | |
9033 | fi | |
9034 | else | |
9035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5 | |
9036 | $as_echo_n "checking for libsystemd-daemon... " >&6; } | |
9037 | if $PKGCONFIG --exists libsystemd-daemon; then | |
9038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9039 | $as_echo "yes" >&6; } | |
9040 | ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon` | |
9041 | ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon` | |
9042 | $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h | |
9043 | ||
9044 | if test "x$SYSTEMD_DIR" = x; then | |
9045 | SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd`" | |
9046 | fi | |
9047 | else | |
9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9049 | $as_echo "no" >&6; } | |
9050 | fi | |
9051 | fi | |
9052 | fi | |
9053 | ||
9054 | SMFMANIFESTDIR="" | |
9055 | ||
9056 | ||
9057 | # Check whether --with-smfmanifestdir was given. | |
9058 | if test "${with_smfmanifestdir+set}" = set; then : | |
9059 | withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval" | |
9060 | fi | |
9061 | ||
9062 | ||
9063 | ||
9064 | # Check whether --with-rcdir was given. | |
9065 | if test "${with_rcdir+set}" = set; then : | |
9066 | withval=$with_rcdir; rcdir="$withval" | |
9067 | else | |
9068 | rcdir="" | |
9069 | fi | |
9070 | ||
9071 | ||
9072 | # Check whether --with-rclevels was given. | |
9073 | if test "${with_rclevels+set}" = set; then : | |
9074 | withval=$with_rclevels; rclevels="$withval" | |
9075 | else | |
9076 | rclevels="2 3 5" | |
9077 | fi | |
9078 | ||
9079 | ||
9080 | # Check whether --with-rcstart was given. | |
9081 | if test "${with_rcstart+set}" = set; then : | |
9082 | withval=$with_rcstart; rcstart="$withval" | |
9083 | else | |
9084 | rcstart="" | |
9085 | fi | |
9086 | ||
9087 | ||
9088 | # Check whether --with-rcstop was given. | |
9089 | if test "${with_rcstop+set}" = set; then : | |
9090 | withval=$with_rcstop; rcstop="$withval" | |
9091 | else | |
9092 | rcstop="" | |
9093 | fi | |
9094 | ||
9095 | ||
9096 | if test x$rcdir = x; then | |
9097 | if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then | |
9098 | # Fall back on "init", the original service startup interface... | |
9099 | if test -d /sbin/init.d; then | |
9100 | # SuSE | |
9101 | rcdir="/sbin/init.d" | |
9102 | elif test -d /etc/init.d; then | |
9103 | # Others | |
9104 | rcdir="/etc" | |
9105 | else | |
9106 | # RedHat, NetBSD | |
9107 | rcdir="/etc/rc.d" | |
9108 | fi | |
9109 | else | |
9110 | rcdir="no" | |
9111 | fi | |
9112 | fi | |
9113 | ||
9114 | if test "x$rcstart" = x; then | |
9115 | case "$uname" in | |
9116 | Linux | GNU | GNU/k*BSD*) | |
9117 | # Linux | |
9118 | rcstart="81" | |
9119 | ;; | |
9120 | ||
9121 | SunOS*) | |
9122 | # Solaris | |
9123 | rcstart="81" | |
9124 | ;; | |
9125 | ||
9126 | *) | |
9127 | # Others | |
9128 | rcstart="99" | |
9129 | ;; | |
9130 | esac | |
9131 | fi | |
9132 | ||
9133 | if test "x$rcstop" = x; then | |
9134 | case "$uname" in | |
9135 | Linux | GNU | GNU/k*BSD*) | |
9136 | # Linux | |
9137 | rcstop="36" | |
9138 | ;; | |
9139 | ||
9140 | *) | |
9141 | # Others | |
9142 | rcstop="00" | |
9143 | ;; | |
9144 | esac | |
9145 | fi | |
9146 | ||
9147 | INITDIR="" | |
9148 | INITDDIR="" | |
9149 | RCLEVELS="$rclevels" | |
9150 | RCSTART="$rcstart" | |
9151 | RCSTOP="$rcstop" | |
9152 | ||
9153 | ||
9154 | ||
9155 | ||
9156 | ||
9157 | ||
9158 | if test "x$rcdir" != xno; then | |
9159 | if test "x$rclevels" = x; then | |
9160 | INITDDIR="$rcdir" | |
9161 | else | |
9162 | INITDIR="$rcdir" | |
9163 | fi | |
9164 | fi | |
9165 | ||
9166 | ||
9167 | # Check whether --with-xinetd was given. | |
9168 | if test "${with_xinetd+set}" = set; then : | |
9169 | withval=$with_xinetd; xinetd="$withval" | |
9170 | else | |
9171 | xinetd="" | |
9172 | fi | |
9173 | ||
9174 | XINETD="" | |
9175 | ||
9176 | ||
9177 | if test "x$xinetd" = x; then | |
9178 | if test ! -x /sbin/launchd; then | |
9179 | for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do | |
9180 | if test -d $dir; then | |
9181 | XINETD="$dir" | |
9182 | break | |
9183 | fi | |
9184 | done | |
9185 | fi | |
9186 | elif test "x$xinet" != xno; then | |
9187 | XINETD="$xinetd" | |
9188 | fi | |
61515785 MS |
9189 | |
9190 | ||
9191 | ||
9192 | ||
9193 | LANGUAGES="`ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`" | |
9194 | ||
9195 | ||
9196 | # Check whether --with-languages was given. | |
9197 | if test "${with_languages+set}" = set; then : | |
9198 | withval=$with_languages; | |
9199 | case "$withval" in | |
9200 | none | no) LANGUAGES="" ;; | |
9201 | all) ;; | |
9202 | *) LANGUAGES="$withval" ;; | |
9203 | esac | |
9204 | fi | |
9205 | ||
9206 | ||
9207 | ||
9208 | ||
9209 | # Check whether --with-bundledir was given. | |
9210 | if test "${with_bundledir+set}" = set; then : | |
9211 | withval=$with_bundledir; CUPS_BUNDLEDIR="$withval" | |
9212 | else | |
9213 | if test "x$uname" = xDarwin -a $uversion -ge 100; then | |
9214 | CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A" | |
9215 | LANGUAGES="" | |
9216 | else | |
9217 | CUPS_BUNDLEDIR="" | |
9218 | fi | |
9219 | fi | |
9220 | ||
9221 | ||
9222 | ||
9223 | if test "x$CUPS_BUNDLEDIR" != x; then | |
9224 | cat >>confdefs.h <<_ACEOF | |
9225 | #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR" | |
9226 | _ACEOF | |
9227 | ||
9228 | fi | |
9229 | ||
9230 | ||
9231 | # Check whether --with-config_file_perm was given. | |
9232 | if test "${with_config_file_perm+set}" = set; then : | |
9233 | withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval" | |
9234 | else | |
9235 | if test "x$uname" = xDarwin; then | |
9236 | CUPS_CONFIG_FILE_PERM="644" | |
9237 | else | |
9238 | CUPS_CONFIG_FILE_PERM="640" | |
9239 | fi | |
9240 | fi | |
9241 | ||
9242 | ||
9243 | cat >>confdefs.h <<_ACEOF | |
9244 | #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM | |
9245 | _ACEOF | |
9246 | ||
9247 | ||
9248 | ||
9249 | # Check whether --with-cupsd_file_perm was given. | |
9250 | if test "${with_cupsd_file_perm+set}" = set; then : | |
9251 | withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval" | |
9252 | else | |
9253 | CUPS_CUPSD_FILE_PERM="500" | |
9254 | fi | |
9255 | ||
9256 | ||
9257 | ||
9258 | ||
9259 | # Check whether --with-log_file_perm was given. | |
9260 | if test "${with_log_file_perm+set}" = set; then : | |
9261 | withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval" | |
9262 | else | |
9263 | CUPS_LOG_FILE_PERM="644" | |
9264 | fi | |
9265 | ||
9266 | ||
9267 | cat >>confdefs.h <<_ACEOF | |
9268 | #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM | |
9269 | _ACEOF | |
9270 | ||
9271 | ||
9272 | ||
9273 | # Check whether --with-fatal_errors was given. | |
9274 | if test "${with_fatal_errors+set}" = set; then : | |
9275 | withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval" | |
9276 | else | |
9277 | CUPS_FATAL_ERRORS="config" | |
9278 | fi | |
9279 | ||
9280 | ||
9281 | cat >>confdefs.h <<_ACEOF | |
9282 | #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS" | |
9283 | _ACEOF | |
9284 | ||
9285 | ||
9286 | ||
9287 | # Check whether --with-log_level was given. | |
9288 | if test "${with_log_level+set}" = set; then : | |
9289 | withval=$with_log_level; CUPS_LOG_LEVEL="$withval" | |
9290 | else | |
9291 | CUPS_LOG_LEVEL="warn" | |
9292 | fi | |
9293 | ||
9294 | ||
9295 | cat >>confdefs.h <<_ACEOF | |
9296 | #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL" | |
9297 | _ACEOF | |
9298 | ||
9299 | ||
9300 | ||
9301 | # Check whether --with-access_log_level was given. | |
9302 | if test "${with_access_log_level+set}" = set; then : | |
9303 | withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval" | |
9304 | else | |
1a18c85c | 9305 | CUPS_ACCESS_LOG_LEVEL="none" |
61515785 MS |
9306 | fi |
9307 | ||
9308 | ||
9309 | cat >>confdefs.h <<_ACEOF | |
9310 | #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL" | |
9311 | _ACEOF | |
9312 | ||
9313 | ||
1a18c85c MS |
9314 | |
9315 | # Check whether --with-page_logging was given. | |
9316 | if test "${with_page_logging+set}" = set; then : | |
9317 | withval=$with_page_logging; | |
9318 | fi | |
9319 | ||
9320 | if test "x$enable_page_logging" = xyes; then | |
9321 | CUPS_PAGE_LOG_FORMAT="" | |
9322 | else | |
9323 | CUPS_PAGE_LOG_FORMAT="PageLogFormat" | |
9324 | fi | |
9325 | ||
9326 | ||
61515785 MS |
9327 | # Check whether --enable-browsing was given. |
9328 | if test "${enable_browsing+set}" = set; then : | |
9329 | enableval=$enable_browsing; | |
9330 | fi | |
9331 | ||
9332 | if test "x$enable_browsing" = xno; then | |
9333 | CUPS_BROWSING="No" | |
9334 | cat >>confdefs.h <<_ACEOF | |
9335 | #define CUPS_DEFAULT_BROWSING 0 | |
9336 | _ACEOF | |
9337 | ||
9338 | else | |
9339 | CUPS_BROWSING="Yes" | |
9340 | cat >>confdefs.h <<_ACEOF | |
9341 | #define CUPS_DEFAULT_BROWSING 1 | |
9342 | _ACEOF | |
9343 | ||
9344 | fi | |
9345 | ||
9346 | ||
9347 | ||
9348 | # Check whether --with-local_protocols was given. | |
9349 | if test "${with_local_protocols+set}" = set; then : | |
9350 | withval=$with_local_protocols; default_local_protocols="$withval" | |
9351 | else | |
9352 | default_local_protocols="default" | |
9353 | fi | |
9354 | ||
9355 | ||
9356 | if test x$with_local_protocols != xno; then | |
9357 | if test "x$default_local_protocols" = "xdefault"; then | |
9358 | if test "x$DNSSD_BACKEND" != "x"; then | |
9359 | CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd" | |
9360 | else | |
9361 | CUPS_BROWSE_LOCAL_PROTOCOLS="" | |
9362 | fi | |
9363 | else | |
9364 | CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols" | |
9365 | fi | |
9366 | else | |
9367 | CUPS_BROWSE_LOCAL_PROTOCOLS="" | |
9368 | fi | |
9369 | ||
9370 | ||
9371 | cat >>confdefs.h <<_ACEOF | |
9372 | #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS" | |
9373 | _ACEOF | |
9374 | ||
9375 | ||
9376 | # Check whether --enable-default_shared was given. | |
9377 | if test "${enable_default_shared+set}" = set; then : | |
9378 | enableval=$enable_default_shared; | |
9379 | fi | |
9380 | ||
9381 | if test "x$enable_default_shared" = xno; then | |
9382 | CUPS_DEFAULT_SHARED="No" | |
9383 | cat >>confdefs.h <<_ACEOF | |
9384 | #define CUPS_DEFAULT_DEFAULT_SHARED 0 | |
9385 | _ACEOF | |
9386 | ||
9387 | else | |
9388 | CUPS_DEFAULT_SHARED="Yes" | |
9389 | cat >>confdefs.h <<_ACEOF | |
9390 | #define CUPS_DEFAULT_DEFAULT_SHARED 1 | |
9391 | _ACEOF | |
9392 | ||
9393 | fi | |
9394 | ||
9395 | ||
9396 | ||
9397 | # Check whether --with-cups_user was given. | |
9398 | if test "${with_cups_user+set}" = set; then : | |
9399 | withval=$with_cups_user; CUPS_USER="$withval" | |
9400 | else | |
9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5 | |
9402 | $as_echo_n "checking for default print user... " >&6; } | |
9403 | if test x$uname = xDarwin; then | |
9404 | if test x`id -u _lp 2>/dev/null` = x; then | |
9405 | CUPS_USER="lp"; | |
9406 | else | |
9407 | CUPS_USER="_lp"; | |
9408 | fi | |
9409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5 | |
9410 | $as_echo "$CUPS_USER" >&6; } | |
9411 | elif test -f /etc/passwd; then | |
9412 | CUPS_USER="" | |
9413 | for user in lp lpd guest daemon nobody; do | |
9414 | if test "`grep \^${user}: /etc/passwd`" != ""; then | |
9415 | CUPS_USER="$user" | |
9416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5 | |
9417 | $as_echo "$user" >&6; } | |
9418 | break; | |
9419 | fi | |
9420 | done | |
9421 | ||
9422 | if test x$CUPS_USER = x; then | |
9423 | CUPS_USER="nobody" | |
9424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
9425 | $as_echo "not found" >&6; } | |
9426 | fi | |
9427 | else | |
9428 | CUPS_USER="nobody" | |
9429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5 | |
9430 | $as_echo "no password file" >&6; } | |
9431 | fi | |
9432 | fi | |
9433 | ||
9434 | ||
9435 | if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then | |
9436 | as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5 | |
9437 | fi | |
9438 | ||
9439 | ||
9440 | # Check whether --with-cups_group was given. | |
9441 | if test "${with_cups_group+set}" = set; then : | |
9442 | withval=$with_cups_group; CUPS_GROUP="$withval" | |
9443 | else | |
9444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5 | |
9445 | $as_echo_n "checking for default print group... " >&6; } | |
9446 | if test x$uname = xDarwin; then | |
9447 | if test x`id -g _lp 2>/dev/null` = x; then | |
9448 | CUPS_GROUP="lp"; | |
9449 | else | |
9450 | CUPS_GROUP="_lp"; | |
9451 | fi | |
9452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5 | |
9453 | $as_echo "$CUPS_GROUP" >&6; } | |
9454 | elif test -f /etc/group; then | |
9455 | GROUP_LIST="_lp lp nobody" | |
9456 | CUPS_GROUP="" | |
9457 | for group in $GROUP_LIST; do | |
9458 | if test "`grep \^${group}: /etc/group`" != ""; then | |
9459 | CUPS_GROUP="$group" | |
9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5 | |
9461 | $as_echo "$group" >&6; } | |
9462 | break; | |
9463 | fi | |
9464 | done | |
9465 | ||
9466 | if test x$CUPS_GROUP = x; then | |
9467 | CUPS_GROUP="nobody" | |
9468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
9469 | $as_echo "not found" >&6; } | |
9470 | fi | |
9471 | else | |
9472 | CUPS_GROUP="nobody" | |
9473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5 | |
9474 | $as_echo "no group file" >&6; } | |
9475 | fi | |
9476 | fi | |
9477 | ||
9478 | ||
9479 | if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then | |
9480 | as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5 | |
9481 | fi | |
9482 | ||
9483 | ||
9484 | # Check whether --with-system_groups was given. | |
9485 | if test "${with_system_groups+set}" = set; then : | |
9486 | withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval" | |
9487 | else | |
9488 | if test x$uname = xDarwin; then | |
9489 | CUPS_SYSTEM_GROUPS="admin" | |
9490 | else | |
9491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5 | |
9492 | $as_echo_n "checking for default system groups... " >&6; } | |
9493 | if test -f /etc/group; then | |
9494 | CUPS_SYSTEM_GROUPS="" | |
9495 | GROUP_LIST="lpadmin sys system root" | |
9496 | for group in $GROUP_LIST; do | |
9497 | if test "`grep \^${group}: /etc/group`" != ""; then | |
9498 | if test "x$CUPS_SYSTEM_GROUPS" = x; then | |
9499 | CUPS_SYSTEM_GROUPS="$group" | |
9500 | else | |
9501 | CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group" | |
9502 | fi | |
9503 | fi | |
9504 | done | |
9505 | ||
9506 | if test "x$CUPS_SYSTEM_GROUPS" = x; then | |
9507 | CUPS_SYSTEM_GROUPS="$GROUP_LIST" | |
9508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5 | |
9509 | $as_echo "no groups found" >&6; } | |
9510 | else | |
9511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5 | |
9512 | $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; } | |
9513 | fi | |
9514 | else | |
9515 | CUPS_SYSTEM_GROUPS="$GROUP_LIST" | |
9516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5 | |
9517 | $as_echo "no group file" >&6; } | |
9518 | fi | |
9519 | fi | |
9520 | fi | |
9521 | ||
9522 | ||
9523 | CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS | awk '{print $1}'`" | |
9524 | ||
9525 | for group in $CUPS_SYSTEM_GROUPS; do | |
9526 | if test "x$CUPS_GROUP" = "x$group"; then | |
9527 | as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5 | |
9528 | fi | |
9529 | done | |
9530 | ||
9531 | ||
9532 | ||
9533 | ||
9534 | ||
9535 | ||
9536 | cat >>confdefs.h <<_ACEOF | |
9537 | #define CUPS_DEFAULT_USER "$CUPS_USER" | |
9538 | _ACEOF | |
9539 | ||
9540 | cat >>confdefs.h <<_ACEOF | |
9541 | #define CUPS_DEFAULT_GROUP "$CUPS_GROUP" | |
9542 | _ACEOF | |
9543 | ||
9544 | cat >>confdefs.h <<_ACEOF | |
9545 | #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS" | |
9546 | _ACEOF | |
9547 | ||
9548 | ||
9549 | ||
9550 | # Check whether --with-printcap was given. | |
9551 | if test "${with_printcap+set}" = set; then : | |
9552 | withval=$with_printcap; default_printcap="$withval" | |
9553 | else | |
9554 | default_printcap="default" | |
9555 | fi | |
9556 | ||
9557 | ||
9558 | if test x$default_printcap != xno; then | |
9559 | if test "x$default_printcap" = "xdefault"; then | |
9560 | case $uname in | |
9561 | Darwin*) | |
9562 | if test $uversion -ge 90; then | |
9563 | CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist" | |
9564 | else | |
9565 | CUPS_DEFAULT_PRINTCAP="/etc/printcap" | |
9566 | fi | |
9567 | ;; | |
9568 | SunOS*) | |
9569 | CUPS_DEFAULT_PRINTCAP="/etc/printers.conf" | |
9570 | ;; | |
9571 | *) | |
9572 | CUPS_DEFAULT_PRINTCAP="/etc/printcap" | |
9573 | ;; | |
9574 | esac | |
9575 | else | |
9576 | CUPS_DEFAULT_PRINTCAP="$default_printcap" | |
9577 | fi | |
9578 | else | |
9579 | CUPS_DEFAULT_PRINTCAP="" | |
9580 | fi | |
9581 | ||
9582 | ||
9583 | cat >>confdefs.h <<_ACEOF | |
9584 | #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP" | |
9585 | _ACEOF | |
9586 | ||
9587 | ||
9588 | ||
9589 | # Check whether --with-lpdconfigfile was given. | |
9590 | if test "${with_lpdconfigfile+set}" = set; then : | |
9591 | withval=$with_lpdconfigfile; default_lpdconfigfile="$withval" | |
9592 | else | |
9593 | default_lpdconfigfile="default" | |
9594 | fi | |
9595 | ||
9596 | ||
9597 | if test x$default_lpdconfigfile != xno; then | |
9598 | if test "x$default_lpdconfigfile" = "xdefault"; then | |
9599 | case $uname in | |
9600 | Darwin*) | |
9601 | CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist" | |
9602 | ;; | |
9603 | *) | |
9604 | if test "x$XINETD" != x; then | |
9605 | CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd" | |
9606 | else | |
9607 | CUPS_DEFAULT_LPD_CONFIG_FILE="" | |
9608 | fi | |
9609 | ;; | |
9610 | esac | |
9611 | else | |
9612 | CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile" | |
9613 | fi | |
9614 | else | |
9615 | CUPS_DEFAULT_LPD_CONFIG_FILE="" | |
9616 | fi | |
9617 | ||
9618 | cat >>confdefs.h <<_ACEOF | |
9619 | #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE" | |
9620 | _ACEOF | |
9621 | ||
9622 | ||
9623 | ||
9624 | ||
9625 | # Check whether --with-smbconfigfile was given. | |
9626 | if test "${with_smbconfigfile+set}" = set; then : | |
9627 | withval=$with_smbconfigfile; default_smbconfigfile="$withval" | |
9628 | else | |
9629 | default_smbconfigfile="default" | |
9630 | fi | |
9631 | ||
9632 | ||
9633 | if test x$default_smbconfigfile != xno; then | |
9634 | if test "x$default_smbconfigfile" = "xdefault"; then | |
9635 | if test -f /etc/smb.conf; then | |
9636 | CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf" | |
9637 | else | |
9638 | CUPS_DEFAULT_SMB_CONFIG_FILE="" | |
9639 | fi | |
9640 | else | |
9641 | CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile" | |
9642 | fi | |
9643 | else | |
9644 | CUPS_DEFAULT_SMB_CONFIG_FILE="" | |
9645 | fi | |
9646 | ||
9647 | cat >>confdefs.h <<_ACEOF | |
9648 | #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE" | |
9649 | _ACEOF | |
9650 | ||
9651 | ||
9652 | ||
9653 | ||
9654 | # Check whether --with-max-copies was given. | |
9655 | if test "${with_max_copies+set}" = set; then : | |
9656 | withval=$with_max_copies; CUPS_MAX_COPIES="$withval" | |
9657 | else | |
9658 | CUPS_MAX_COPIES="9999" | |
9659 | fi | |
9660 | ||
9661 | ||
9662 | ||
9663 | cat >>confdefs.h <<_ACEOF | |
9664 | #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES | |
9665 | _ACEOF | |
9666 | ||
9667 | ||
9668 | # Check whether --enable-raw_printing was given. | |
9669 | if test "${enable_raw_printing+set}" = set; then : | |
9670 | enableval=$enable_raw_printing; | |
9671 | fi | |
9672 | ||
9673 | if test "x$enable_raw_printing" != xno; then | |
9674 | DEFAULT_RAW_PRINTING="" | |
9675 | else | |
9676 | DEFAULT_RAW_PRINTING="#" | |
9677 | fi | |
9678 | ||
9679 | ||
9680 | ||
9681 | # Check whether --with-snmp-address was given. | |
9682 | if test "${with_snmp_address+set}" = set; then : | |
9683 | withval=$with_snmp_address; if test "x$withval" = x; then | |
9684 | CUPS_SNMP_ADDRESS="" | |
9685 | else | |
9686 | CUPS_SNMP_ADDRESS="Address $withval" | |
9687 | fi | |
9688 | else | |
9689 | if test "x$uname" = xDarwin; then | |
9690 | CUPS_SNMP_ADDRESS="" | |
9691 | else | |
9692 | CUPS_SNMP_ADDRESS="Address @LOCAL" | |
9693 | fi | |
9694 | fi | |
9695 | ||
9696 | ||
9697 | ||
9698 | # Check whether --with-snmp-community was given. | |
9699 | if test "${with_snmp_community+set}" = set; then : | |
9700 | withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval" | |
9701 | else | |
9702 | CUPS_SNMP_COMMUNITY="Community public" | |
9703 | fi | |
9704 | ||
9705 | ||
9706 | ||
9707 | ||
9708 | ||
9709 | ||
9710 | # Check whether --with-ipp-port was given. | |
9711 | if test "${with_ipp_port+set}" = set; then : | |
9712 | withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval" | |
9713 | else | |
9714 | DEFAULT_IPP_PORT="631" | |
9715 | fi | |
9716 | ||
9717 | ||
9718 | ||
9719 | cat >>confdefs.h <<_ACEOF | |
9720 | #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT | |
9721 | _ACEOF | |
9722 | ||
9723 | ||
9724 | # Check whether --enable-webif was given. | |
9725 | if test "${enable_webif+set}" = set; then : | |
9726 | enableval=$enable_webif; | |
9727 | fi | |
9728 | ||
9729 | case "x$enable_webif" in | |
9730 | xno) | |
9731 | CUPS_WEBIF=No | |
9732 | CUPS_DEFAULT_WEBIF=0 | |
9733 | ;; | |
9734 | xyes) | |
9735 | CUPS_WEBIF=Yes | |
9736 | CUPS_DEFAULT_WEBIF=1 | |
9737 | ;; | |
9738 | *) | |
9739 | if test $uname = Darwin; then | |
9740 | CUPS_WEBIF=No | |
9741 | CUPS_DEFAULT_WEBIF=0 | |
9742 | else | |
9743 | CUPS_WEBIF=Yes | |
9744 | CUPS_DEFAULT_WEBIF=1 | |
9745 | fi | |
9746 | ;; | |
9747 | esac | |
9748 | ||
9749 | ||
9750 | cat >>confdefs.h <<_ACEOF | |
9751 | #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF | |
9752 | _ACEOF | |
9753 | ||
9754 | ||
9755 | ||
9756 | ||
9757 | ||
9758 | # Check whether --with-java was given. | |
9759 | if test "${with_java+set}" = set; then : | |
9760 | withval=$with_java; CUPS_JAVA="$withval" | |
9761 | else | |
9762 | CUPS_JAVA="" | |
9763 | fi | |
9764 | ||
9765 | ||
9766 | if test "x$CUPS_JAVA" = x; then | |
9767 | # Extract the first word of "java", so it can be a program name with args. | |
9768 | set dummy java; ac_word=$2 | |
9769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9770 | $as_echo_n "checking for $ac_word... " >&6; } | |
9771 | if ${ac_cv_path_JAVA+:} false; then : | |
9772 | $as_echo_n "(cached) " >&6 | |
9773 | else | |
9774 | case $JAVA in | |
9775 | [\\/]* | ?:[\\/]*) | |
9776 | ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. | |
9777 | ;; | |
9778 | *) | |
9779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9780 | for as_dir in $PATH | |
9781 | do | |
9782 | IFS=$as_save_IFS | |
9783 | test -z "$as_dir" && as_dir=. | |
9784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9786 | ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" | |
9787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9788 | break 2 | |
9789 | fi | |
9790 | done | |
9791 | done | |
9792 | IFS=$as_save_IFS | |
9793 | ||
9794 | ;; | |
9795 | esac | |
9796 | fi | |
9797 | JAVA=$ac_cv_path_JAVA | |
9798 | if test -n "$JAVA"; then | |
9799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 | |
9800 | $as_echo "$JAVA" >&6; } | |
9801 | else | |
9802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9803 | $as_echo "no" >&6; } | |
9804 | fi | |
9805 | ||
9806 | ||
9807 | CUPS_JAVA="$JAVA" | |
9808 | fi | |
9809 | ||
9810 | cat >>confdefs.h <<_ACEOF | |
9811 | #define CUPS_JAVA "$CUPS_JAVA" | |
9812 | _ACEOF | |
9813 | ||
9814 | ||
9815 | if test "x$CUPS_JAVA" != x; then | |
9816 | $as_echo "#define HAVE_JAVA 1" >>confdefs.h | |
9817 | ||
9818 | fi | |
9819 | ||
9820 | ||
9821 | # Check whether --with-perl was given. | |
9822 | if test "${with_perl+set}" = set; then : | |
9823 | withval=$with_perl; CUPS_PERL="$withval" | |
9824 | else | |
9825 | CUPS_PERL="" | |
9826 | fi | |
9827 | ||
9828 | ||
9829 | if test "x$CUPS_PERL" = x; then | |
9830 | # Extract the first word of "perl", so it can be a program name with args. | |
9831 | set dummy perl; ac_word=$2 | |
9832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9833 | $as_echo_n "checking for $ac_word... " >&6; } | |
9834 | if ${ac_cv_path_PERL+:} false; then : | |
9835 | $as_echo_n "(cached) " >&6 | |
9836 | else | |
9837 | case $PERL in | |
9838 | [\\/]* | ?:[\\/]*) | |
9839 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
9840 | ;; | |
9841 | *) | |
9842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9843 | for as_dir in $PATH | |
9844 | do | |
9845 | IFS=$as_save_IFS | |
9846 | test -z "$as_dir" && as_dir=. | |
9847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9849 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | |
9850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9851 | break 2 | |
9852 | fi | |
9853 | done | |
9854 | done | |
9855 | IFS=$as_save_IFS | |
9856 | ||
9857 | ;; | |
9858 | esac | |
9859 | fi | |
9860 | PERL=$ac_cv_path_PERL | |
9861 | if test -n "$PERL"; then | |
9862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | |
9863 | $as_echo "$PERL" >&6; } | |
9864 | else | |
9865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9866 | $as_echo "no" >&6; } | |
9867 | fi | |
9868 | ||
9869 | ||
9870 | CUPS_PERL="$PERL" | |
9871 | fi | |
9872 | ||
9873 | cat >>confdefs.h <<_ACEOF | |
9874 | #define CUPS_PERL "$CUPS_PERL" | |
9875 | _ACEOF | |
9876 | ||
9877 | ||
9878 | if test "x$CUPS_PERL" != x; then | |
9879 | $as_echo "#define HAVE_PERL 1" >>confdefs.h | |
9880 | ||
9881 | fi | |
9882 | ||
9883 | ||
9884 | # Check whether --with-php was given. | |
9885 | if test "${with_php+set}" = set; then : | |
9886 | withval=$with_php; CUPS_PHP="$withval" | |
9887 | else | |
9888 | CUPS_PHP="" | |
9889 | fi | |
9890 | ||
9891 | ||
9892 | if test "x$CUPS_PHP" = x; then | |
9893 | # Extract the first word of "php-cgi", so it can be a program name with args. | |
9894 | set dummy php-cgi; ac_word=$2 | |
9895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9896 | $as_echo_n "checking for $ac_word... " >&6; } | |
9897 | if ${ac_cv_path_PHPCGI+:} false; then : | |
9898 | $as_echo_n "(cached) " >&6 | |
9899 | else | |
9900 | case $PHPCGI in | |
9901 | [\\/]* | ?:[\\/]*) | |
9902 | ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path. | |
9903 | ;; | |
9904 | *) | |
9905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9906 | for as_dir in $PATH | |
9907 | do | |
9908 | IFS=$as_save_IFS | |
9909 | test -z "$as_dir" && as_dir=. | |
9910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9911 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9912 | ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext" | |
9913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9914 | break 2 | |
9915 | fi | |
9916 | done | |
9917 | done | |
9918 | IFS=$as_save_IFS | |
9919 | ||
9920 | ;; | |
9921 | esac | |
9922 | fi | |
9923 | PHPCGI=$ac_cv_path_PHPCGI | |
9924 | if test -n "$PHPCGI"; then | |
9925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5 | |
9926 | $as_echo "$PHPCGI" >&6; } | |
9927 | else | |
9928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9929 | $as_echo "no" >&6; } | |
9930 | fi | |
9931 | ||
9932 | ||
9933 | if test "x$PHPCGI" = x; then | |
9934 | # Extract the first word of "php", so it can be a program name with args. | |
9935 | set dummy php; ac_word=$2 | |
9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9937 | $as_echo_n "checking for $ac_word... " >&6; } | |
9938 | if ${ac_cv_path_PHP+:} false; then : | |
9939 | $as_echo_n "(cached) " >&6 | |
9940 | else | |
9941 | case $PHP in | |
9942 | [\\/]* | ?:[\\/]*) | |
9943 | ac_cv_path_PHP="$PHP" # Let the user override the test with a path. | |
9944 | ;; | |
9945 | *) | |
9946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9947 | for as_dir in $PATH | |
9948 | do | |
9949 | IFS=$as_save_IFS | |
9950 | test -z "$as_dir" && as_dir=. | |
9951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9953 | ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext" | |
9954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9955 | break 2 | |
9956 | fi | |
9957 | done | |
9958 | done | |
9959 | IFS=$as_save_IFS | |
9960 | ||
9961 | ;; | |
9962 | esac | |
9963 | fi | |
9964 | PHP=$ac_cv_path_PHP | |
9965 | if test -n "$PHP"; then | |
9966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5 | |
9967 | $as_echo "$PHP" >&6; } | |
9968 | else | |
9969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9970 | $as_echo "no" >&6; } | |
9971 | fi | |
9972 | ||
9973 | ||
9974 | CUPS_PHP="$PHP" | |
9975 | else | |
9976 | CUPS_PHP="$PHPCGI" | |
9977 | fi | |
9978 | fi | |
9979 | ||
9980 | cat >>confdefs.h <<_ACEOF | |
9981 | #define CUPS_PHP "$CUPS_PHP" | |
9982 | _ACEOF | |
9983 | ||
9984 | ||
9985 | if test "x$CUPS_PHP" = x; then | |
9986 | CUPS_PHP="no" | |
9987 | else | |
9988 | $as_echo "#define HAVE_PHP 1" >>confdefs.h | |
9989 | ||
9990 | fi | |
9991 | ||
9992 | ||
9993 | # Check whether --with-python was given. | |
9994 | if test "${with_python+set}" = set; then : | |
9995 | withval=$with_python; CUPS_PYTHON="$withval" | |
9996 | else | |
9997 | CUPS_PYTHON="" | |
9998 | fi | |
9999 | ||
10000 | ||
10001 | if test "x$CUPS_PYTHON" = x; then | |
10002 | # Extract the first word of "python", so it can be a program name with args. | |
10003 | set dummy python; ac_word=$2 | |
10004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10005 | $as_echo_n "checking for $ac_word... " >&6; } | |
10006 | if ${ac_cv_path_PYTHON+:} false; then : | |
10007 | $as_echo_n "(cached) " >&6 | |
10008 | else | |
10009 | case $PYTHON in | |
10010 | [\\/]* | ?:[\\/]*) | |
10011 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | |
10012 | ;; | |
10013 | *) | |
10014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10015 | for as_dir in $PATH | |
10016 | do | |
10017 | IFS=$as_save_IFS | |
10018 | test -z "$as_dir" && as_dir=. | |
10019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10020 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10021 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" | |
10022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10023 | break 2 | |
10024 | fi | |
10025 | done | |
10026 | done | |
10027 | IFS=$as_save_IFS | |
10028 | ||
10029 | ;; | |
10030 | esac | |
10031 | fi | |
10032 | PYTHON=$ac_cv_path_PYTHON | |
10033 | if test -n "$PYTHON"; then | |
10034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 | |
10035 | $as_echo "$PYTHON" >&6; } | |
10036 | else | |
10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10038 | $as_echo "no" >&6; } | |
10039 | fi | |
10040 | ||
10041 | ||
10042 | CUPS_PYTHON="$PYTHON" | |
10043 | fi | |
10044 | ||
10045 | cat >>confdefs.h <<_ACEOF | |
10046 | #define CUPS_PYTHON "$CUPS_PYTHON" | |
10047 | _ACEOF | |
10048 | ||
10049 | ||
10050 | if test "x$CUPS_PYTHON" != x; then | |
10051 | $as_echo "#define HAVE_PYTHON 1" >>confdefs.h | |
10052 | ||
10053 | fi | |
10054 | ||
10055 | ||
10056 | ||
10057 | INSTALL_LANGUAGES="" | |
10058 | UNINSTALL_LANGUAGES="" | |
10059 | LANGFILES="" | |
10060 | if test "x$LANGUAGES" != x; then | |
10061 | INSTALL_LANGUAGES="install-languages" | |
10062 | UNINSTALL_LANGUAGES="uninstall-languages" | |
10063 | for lang in $LANGUAGES; do | |
10064 | if test -f doc/$lang/index.html.in; then | |
10065 | LANGFILES="$LANGFILES doc/$lang/index.html" | |
10066 | fi | |
10067 | ||
10068 | if test -f templates/$lang/header.tmpl.in; then | |
10069 | LANGFILES="$LANGFILES templates/$lang/header.tmpl" | |
10070 | fi | |
10071 | done | |
10072 | elif test "x$CUPS_BUNDLEDIR" != x; then | |
10073 | INSTALL_LANGUAGES="install-langbundle" | |
10074 | UNINSTALL_LANGUAGES="uninstall-langbundle" | |
10075 | fi | |
10076 | ||
10077 | ||
10078 | ||
10079 | ||
1a18c85c | 10080 | 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 data/testprint 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.cupsd.path scheduler/org.cups.cupsd.service scheduler/org.cups.cupsd.socket templates/header.tmpl packaging/cups.list $LANGFILES" |
61515785 MS |
10081 | |
10082 | cat >confcache <<\_ACEOF | |
10083 | # This file is a shell script that caches the results of configure | |
10084 | # tests run on this system so they can be shared between configure | |
10085 | # scripts and configure runs, see configure's option --config-cache. | |
10086 | # It is not useful on other systems. If it contains results you don't | |
10087 | # want to keep, you may remove or edit it. | |
10088 | # | |
10089 | # config.status only pays attention to the cache file if you give it | |
10090 | # the --recheck option to rerun configure. | |
10091 | # | |
10092 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10093 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10094 | # following values. | |
10095 | ||
10096 | _ACEOF | |
10097 | ||
10098 | # The following way of writing the cache mishandles newlines in values, | |
10099 | # but we know of no workaround that is simple, portable, and efficient. | |
10100 | # So, we kill variables containing newlines. | |
10101 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10102 | # and sets the high bit in the cache file unless we assign to the vars. | |
10103 | ( | |
10104 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10105 | eval ac_val=\$$ac_var | |
10106 | case $ac_val in #( | |
10107 | *${as_nl}*) | |
10108 | case $ac_var in #( | |
10109 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
10110 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
10111 | esac | |
10112 | case $ac_var in #( | |
10113 | _ | IFS | as_nl) ;; #( | |
10114 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
10115 | *) { eval $ac_var=; unset $ac_var;} ;; | |
10116 | esac ;; | |
10117 | esac | |
10118 | done | |
10119 | ||
10120 | (set) 2>&1 | | |
10121 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
10122 | *${as_nl}ac_space=\ *) | |
10123 | # `set' does not quote correctly, so add quotes: double-quote | |
10124 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
10125 | sed -n \ | |
10126 | "s/'/'\\\\''/g; | |
10127 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
10128 | ;; #( | |
10129 | *) | |
10130 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10131 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
10132 | ;; | |
10133 | esac | | |
10134 | sort | |
10135 | ) | | |
10136 | sed ' | |
10137 | /^ac_cv_env_/b end | |
10138 | t clear | |
10139 | :clear | |
10140 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10141 | t end | |
10142 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10143 | :end' >>confcache | |
10144 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10145 | if test -w "$cache_file"; then | |
10146 | if test "x$cache_file" != "x/dev/null"; then | |
10147 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
10148 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
10149 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
10150 | cat confcache >"$cache_file" | |
10151 | else | |
10152 | case $cache_file in #( | |
10153 | */* | ?:*) | |
10154 | mv -f confcache "$cache_file"$$ && | |
10155 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
10156 | *) | |
10157 | mv -f confcache "$cache_file" ;; | |
10158 | esac | |
10159 | fi | |
10160 | fi | |
10161 | else | |
10162 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
10163 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
10164 | fi | |
10165 | fi | |
10166 | rm -f confcache | |
10167 | ||
10168 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
10169 | # Let make expand exec_prefix. | |
10170 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10171 | ||
10172 | DEFS=-DHAVE_CONFIG_H | |
10173 | ||
10174 | ac_libobjs= | |
10175 | ac_ltlibobjs= | |
10176 | U= | |
10177 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
10178 | # 1. Remove the extension, and $U if already installed. | |
10179 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
10180 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
10181 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
10182 | # will be set to the directory where LIBOBJS objects are built. | |
10183 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
10184 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
10185 | done | |
10186 | LIBOBJS=$ac_libobjs | |
10187 | ||
10188 | LTLIBOBJS=$ac_ltlibobjs | |
10189 | ||
10190 | ||
10191 | ||
10192 | : "${CONFIG_STATUS=./config.status}" | |
10193 | ac_write_fail=0 | |
10194 | ac_clean_files_save=$ac_clean_files | |
10195 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
10196 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
10197 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10198 | as_write_fail=0 | |
10199 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
10200 | #! $SHELL | |
10201 | # Generated by $as_me. | |
10202 | # Run this file to recreate the current configuration. | |
10203 | # Compiler output produced by configure, useful for debugging | |
10204 | # configure, is in config.log if it exists. | |
10205 | ||
10206 | debug=false | |
10207 | ac_cs_recheck=false | |
10208 | ac_cs_silent=false | |
10209 | ||
10210 | SHELL=\${CONFIG_SHELL-$SHELL} | |
10211 | export SHELL | |
10212 | _ASEOF | |
10213 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10214 | ## -------------------- ## | |
10215 | ## M4sh Initialization. ## | |
10216 | ## -------------------- ## | |
10217 | ||
10218 | # Be more Bourne compatible | |
10219 | DUALCASE=1; export DUALCASE # for MKS sh | |
10220 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
10221 | emulate sh | |
10222 | NULLCMD=: | |
10223 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
10224 | # is contrary to our usage. Disable this feature. | |
10225 | alias -g '${1+"$@"}'='"$@"' | |
10226 | setopt NO_GLOB_SUBST | |
10227 | else | |
10228 | case `(set -o) 2>/dev/null` in #( | |
10229 | *posix*) : | |
10230 | set -o posix ;; #( | |
10231 | *) : | |
10232 | ;; | |
10233 | esac | |
10234 | fi | |
10235 | ||
10236 | ||
10237 | as_nl=' | |
10238 | ' | |
10239 | export as_nl | |
10240 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10241 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10242 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10243 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
10244 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
10245 | # but without wasting forks for bash or zsh. | |
10246 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10247 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10248 | as_echo='print -r --' | |
10249 | as_echo_n='print -rn --' | |
10250 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10251 | as_echo='printf %s\n' | |
10252 | as_echo_n='printf %s' | |
10253 | else | |
10254 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10255 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10256 | as_echo_n='/usr/ucb/echo -n' | |
10257 | else | |
10258 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
10259 | as_echo_n_body='eval | |
10260 | arg=$1; | |
10261 | case $arg in #( | |
10262 | *"$as_nl"*) | |
10263 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10264 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10265 | esac; | |
10266 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10267 | ' | |
10268 | export as_echo_n_body | |
10269 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
10270 | fi | |
10271 | export as_echo_body | |
10272 | as_echo='sh -c $as_echo_body as_echo' | |
10273 | fi | |
10274 | ||
10275 | # The user is always right. | |
10276 | if test "${PATH_SEPARATOR+set}" != set; then | |
10277 | PATH_SEPARATOR=: | |
10278 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10279 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10280 | PATH_SEPARATOR=';' | |
10281 | } | |
10282 | fi | |
10283 | ||
10284 | ||
10285 | # IFS | |
10286 | # We need space, tab and new line, in precisely that order. Quoting is | |
10287 | # there to prevent editors from complaining about space-tab. | |
10288 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10289 | # splitting by setting IFS to empty value.) | |
10290 | IFS=" "" $as_nl" | |
10291 | ||
10292 | # Find who we are. Look in the path if we contain no directory separator. | |
10293 | as_myself= | |
10294 | case $0 in #(( | |
10295 | *[\\/]* ) as_myself=$0 ;; | |
10296 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10297 | for as_dir in $PATH | |
10298 | do | |
10299 | IFS=$as_save_IFS | |
10300 | test -z "$as_dir" && as_dir=. | |
10301 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
10302 | done | |
10303 | IFS=$as_save_IFS | |
10304 | ||
10305 | ;; | |
10306 | esac | |
10307 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10308 | # in which case we are not to be found in the path. | |
10309 | if test "x$as_myself" = x; then | |
10310 | as_myself=$0 | |
10311 | fi | |
10312 | if test ! -f "$as_myself"; then | |
10313 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
10314 | exit 1 | |
10315 | fi | |
10316 | ||
10317 | # Unset variables that we do not need and which cause bugs (e.g. in | |
10318 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10319 | # suppresses any "Segmentation fault" message there. '((' could | |
10320 | # trigger a bug in pdksh 5.2.14. | |
10321 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10322 | do eval test x\${$as_var+set} = xset \ | |
10323 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
10324 | done | |
10325 | PS1='$ ' | |
10326 | PS2='> ' | |
10327 | PS4='+ ' | |
10328 | ||
10329 | # NLS nuisances. | |
10330 | LC_ALL=C | |
10331 | export LC_ALL | |
10332 | LANGUAGE=C | |
10333 | export LANGUAGE | |
10334 | ||
10335 | # CDPATH. | |
10336 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10337 | ||
10338 | ||
10339 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10340 | # ---------------------------------------- | |
10341 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10342 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10343 | # script with STATUS, using 1 if that was 0. | |
10344 | as_fn_error () | |
10345 | { | |
10346 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10347 | if test "$4"; then | |
10348 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10349 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10350 | fi | |
10351 | $as_echo "$as_me: error: $2" >&2 | |
10352 | as_fn_exit $as_status | |
10353 | } # as_fn_error | |
10354 | ||
10355 | ||
10356 | # as_fn_set_status STATUS | |
10357 | # ----------------------- | |
10358 | # Set $? to STATUS, without forking. | |
10359 | as_fn_set_status () | |
10360 | { | |
10361 | return $1 | |
10362 | } # as_fn_set_status | |
10363 | ||
10364 | # as_fn_exit STATUS | |
10365 | # ----------------- | |
10366 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10367 | as_fn_exit () | |
10368 | { | |
10369 | set +e | |
10370 | as_fn_set_status $1 | |
10371 | exit $1 | |
10372 | } # as_fn_exit | |
10373 | ||
10374 | # as_fn_unset VAR | |
10375 | # --------------- | |
10376 | # Portably unset VAR. | |
10377 | as_fn_unset () | |
10378 | { | |
10379 | { eval $1=; unset $1;} | |
10380 | } | |
10381 | as_unset=as_fn_unset | |
10382 | # as_fn_append VAR VALUE | |
10383 | # ---------------------- | |
10384 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10385 | # advantage of any shell optimizations that allow amortized linear growth over | |
10386 | # repeated appends, instead of the typical quadratic growth present in naive | |
10387 | # implementations. | |
10388 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10389 | eval 'as_fn_append () | |
10390 | { | |
10391 | eval $1+=\$2 | |
10392 | }' | |
10393 | else | |
10394 | as_fn_append () | |
10395 | { | |
10396 | eval $1=\$$1\$2 | |
10397 | } | |
10398 | fi # as_fn_append | |
10399 | ||
10400 | # as_fn_arith ARG... | |
10401 | # ------------------ | |
10402 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10403 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10404 | # must be portable across $(()) and expr. | |
10405 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10406 | eval 'as_fn_arith () | |
10407 | { | |
10408 | as_val=$(( $* )) | |
10409 | }' | |
10410 | else | |
10411 | as_fn_arith () | |
10412 | { | |
10413 | as_val=`expr "$@" || test $? -eq 1` | |
10414 | } | |
10415 | fi # as_fn_arith | |
10416 | ||
10417 | ||
10418 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
10419 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
10420 | as_expr=expr | |
10421 | else | |
10422 | as_expr=false | |
10423 | fi | |
10424 | ||
10425 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
10426 | as_basename=basename | |
10427 | else | |
10428 | as_basename=false | |
10429 | fi | |
10430 | ||
10431 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
10432 | as_dirname=dirname | |
10433 | else | |
10434 | as_dirname=false | |
10435 | fi | |
10436 | ||
10437 | as_me=`$as_basename -- "$0" || | |
10438 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
10439 | X"$0" : 'X\(//\)$' \| \ | |
10440 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
10441 | $as_echo X/"$0" | | |
10442 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
10443 | s//\1/ | |
10444 | q | |
10445 | } | |
10446 | /^X\/\(\/\/\)$/{ | |
10447 | s//\1/ | |
10448 | q | |
10449 | } | |
10450 | /^X\/\(\/\).*/{ | |
10451 | s//\1/ | |
10452 | q | |
10453 | } | |
10454 | s/.*/./; q'` | |
10455 | ||
10456 | # Avoid depending upon Character Ranges. | |
10457 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10458 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10459 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10460 | as_cr_digits='0123456789' | |
10461 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
10462 | ||
10463 | ECHO_C= ECHO_N= ECHO_T= | |
10464 | case `echo -n x` in #((((( | |
10465 | -n*) | |
10466 | case `echo 'xy\c'` in | |
10467 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
10468 | xy) ECHO_C='\c';; | |
10469 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10470 | ECHO_T=' ';; | |
10471 | esac;; | |
10472 | *) | |
10473 | ECHO_N='-n';; | |
10474 | esac | |
10475 | ||
10476 | rm -f conf$$ conf$$.exe conf$$.file | |
10477 | if test -d conf$$.dir; then | |
10478 | rm -f conf$$.dir/conf$$.file | |
10479 | else | |
10480 | rm -f conf$$.dir | |
10481 | mkdir conf$$.dir 2>/dev/null | |
10482 | fi | |
10483 | if (echo >conf$$.file) 2>/dev/null; then | |
10484 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10485 | as_ln_s='ln -s' | |
10486 | # ... but there are two gotchas: | |
10487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10489 | # In both cases, we have to default to `cp -p'. | |
10490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
10491 | as_ln_s='cp -p' | |
10492 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10493 | as_ln_s=ln | |
10494 | else | |
10495 | as_ln_s='cp -p' | |
10496 | fi | |
10497 | else | |
10498 | as_ln_s='cp -p' | |
10499 | fi | |
10500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
10501 | rmdir conf$$.dir 2>/dev/null | |
10502 | ||
10503 | ||
10504 | # as_fn_mkdir_p | |
10505 | # ------------- | |
10506 | # Create "$as_dir" as a directory, including parents if necessary. | |
10507 | as_fn_mkdir_p () | |
10508 | { | |
10509 | ||
10510 | case $as_dir in #( | |
10511 | -*) as_dir=./$as_dir;; | |
10512 | esac | |
10513 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10514 | as_dirs= | |
10515 | while :; do | |
10516 | case $as_dir in #( | |
10517 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10518 | *) as_qdir=$as_dir;; | |
10519 | esac | |
10520 | as_dirs="'$as_qdir' $as_dirs" | |
10521 | as_dir=`$as_dirname -- "$as_dir" || | |
10522 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10523 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10524 | X"$as_dir" : 'X\(//\)$' \| \ | |
10525 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10526 | $as_echo X"$as_dir" | | |
10527 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10528 | s//\1/ | |
10529 | q | |
10530 | } | |
10531 | /^X\(\/\/\)[^/].*/{ | |
10532 | s//\1/ | |
10533 | q | |
10534 | } | |
10535 | /^X\(\/\/\)$/{ | |
10536 | s//\1/ | |
10537 | q | |
10538 | } | |
10539 | /^X\(\/\).*/{ | |
10540 | s//\1/ | |
10541 | q | |
10542 | } | |
10543 | s/.*/./; q'` | |
10544 | test -d "$as_dir" && break | |
10545 | done | |
10546 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10547 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
10548 | ||
10549 | ||
10550 | } # as_fn_mkdir_p | |
10551 | if mkdir -p . 2>/dev/null; then | |
10552 | as_mkdir_p='mkdir -p "$as_dir"' | |
10553 | else | |
10554 | test -d ./-p && rmdir ./-p | |
10555 | as_mkdir_p=false | |
10556 | fi | |
10557 | ||
10558 | if test -x / >/dev/null 2>&1; then | |
10559 | as_test_x='test -x' | |
10560 | else | |
10561 | if ls -dL / >/dev/null 2>&1; then | |
10562 | as_ls_L_option=L | |
10563 | else | |
10564 | as_ls_L_option= | |
10565 | fi | |
10566 | as_test_x=' | |
10567 | eval sh -c '\'' | |
10568 | if test -d "$1"; then | |
10569 | test -d "$1/."; | |
10570 | else | |
10571 | case $1 in #( | |
10572 | -*)set "./$1";; | |
10573 | esac; | |
10574 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
10575 | ???[sx]*):;;*)false;;esac;fi | |
10576 | '\'' sh | |
10577 | ' | |
10578 | fi | |
10579 | as_executable_p=$as_test_x | |
10580 | ||
10581 | # Sed expression to map a string onto a valid CPP name. | |
10582 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10583 | ||
10584 | # Sed expression to map a string onto a valid variable name. | |
10585 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10586 | ||
10587 | ||
10588 | exec 6>&1 | |
10589 | ## ----------------------------------- ## | |
10590 | ## Main body of $CONFIG_STATUS script. ## | |
10591 | ## ----------------------------------- ## | |
10592 | _ASEOF | |
10593 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
10594 | ||
10595 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10596 | # Save the log message, to keep $0 and so on meaningful, and to | |
10597 | # report actual input values of CONFIG_FILES etc. instead of their | |
10598 | # values after options handling. | |
10599 | ac_log=" | |
10600 | This file was extended by $as_me, which was | |
10601 | generated by GNU Autoconf 2.68. Invocation command line was | |
10602 | ||
10603 | CONFIG_FILES = $CONFIG_FILES | |
10604 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10605 | CONFIG_LINKS = $CONFIG_LINKS | |
10606 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10607 | $ $0 $@ | |
10608 | ||
10609 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
10610 | " | |
10611 | ||
10612 | _ACEOF | |
10613 | ||
10614 | case $ac_config_files in *" | |
10615 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10616 | esac | |
10617 | ||
10618 | case $ac_config_headers in *" | |
10619 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10620 | esac | |
10621 | ||
10622 | ||
10623 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10624 | # Files that config.status was made for. | |
10625 | config_files="$ac_config_files" | |
10626 | config_headers="$ac_config_headers" | |
10627 | ||
10628 | _ACEOF | |
10629 | ||
10630 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10631 | ac_cs_usage="\ | |
10632 | \`$as_me' instantiates files and other configuration actions | |
10633 | from templates according to the current configuration. Unless the files | |
10634 | and actions are specified as TAGs, all are instantiated by default. | |
10635 | ||
10636 | Usage: $0 [OPTION]... [TAG]... | |
10637 | ||
10638 | -h, --help print this help, then exit | |
10639 | -V, --version print version number and configuration settings, then exit | |
10640 | --config print configuration, then exit | |
10641 | -q, --quiet, --silent | |
10642 | do not print progress messages | |
10643 | -d, --debug don't remove temporary files | |
10644 | --recheck update $as_me by reconfiguring in the same conditions | |
10645 | --file=FILE[:TEMPLATE] | |
10646 | instantiate the configuration file FILE | |
10647 | --header=FILE[:TEMPLATE] | |
10648 | instantiate the configuration header FILE | |
10649 | ||
10650 | Configuration files: | |
10651 | $config_files | |
10652 | ||
10653 | Configuration headers: | |
10654 | $config_headers | |
10655 | ||
10656 | Report bugs to the package provider." | |
10657 | ||
10658 | _ACEOF | |
10659 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10660 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
10661 | ac_cs_version="\\ | |
10662 | config.status | |
10663 | configured by $0, generated by GNU Autoconf 2.68, | |
10664 | with options \\"\$ac_cs_config\\" | |
10665 | ||
10666 | Copyright (C) 2010 Free Software Foundation, Inc. | |
10667 | This config.status script is free software; the Free Software Foundation | |
10668 | gives unlimited permission to copy, distribute and modify it." | |
10669 | ||
10670 | ac_pwd='$ac_pwd' | |
10671 | srcdir='$srcdir' | |
10672 | AWK='$AWK' | |
10673 | test -n "\$AWK" || AWK=awk | |
10674 | _ACEOF | |
10675 | ||
10676 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10677 | # The default lists apply if the user does not specify any file. | |
10678 | ac_need_defaults=: | |
10679 | while test $# != 0 | |
10680 | do | |
10681 | case $1 in | |
10682 | --*=?*) | |
10683 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10684 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
10685 | ac_shift=: | |
10686 | ;; | |
10687 | --*=) | |
10688 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10689 | ac_optarg= | |
10690 | ac_shift=: | |
10691 | ;; | |
10692 | *) | |
10693 | ac_option=$1 | |
10694 | ac_optarg=$2 | |
10695 | ac_shift=shift | |
10696 | ;; | |
10697 | esac | |
10698 | ||
10699 | case $ac_option in | |
10700 | # Handling of the options. | |
10701 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
10702 | ac_cs_recheck=: ;; | |
10703 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
10704 | $as_echo "$ac_cs_version"; exit ;; | |
10705 | --config | --confi | --conf | --con | --co | --c ) | |
10706 | $as_echo "$ac_cs_config"; exit ;; | |
10707 | --debug | --debu | --deb | --de | --d | -d ) | |
10708 | debug=: ;; | |
10709 | --file | --fil | --fi | --f ) | |
10710 | $ac_shift | |
10711 | case $ac_optarg in | |
10712 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10713 | '') as_fn_error $? "missing file argument" ;; | |
10714 | esac | |
10715 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
10716 | ac_need_defaults=false;; | |
10717 | --header | --heade | --head | --hea ) | |
10718 | $ac_shift | |
10719 | case $ac_optarg in | |
10720 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10721 | esac | |
10722 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
10723 | ac_need_defaults=false;; | |
10724 | --he | --h) | |
10725 | # Conflict between --help and --header | |
10726 | as_fn_error $? "ambiguous option: \`$1' | |
10727 | Try \`$0 --help' for more information.";; | |
10728 | --help | --hel | -h ) | |
10729 | $as_echo "$ac_cs_usage"; exit ;; | |
10730 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
10731 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10732 | ac_cs_silent=: ;; | |
10733 | ||
10734 | # This is an error. | |
10735 | -*) as_fn_error $? "unrecognized option: \`$1' | |
10736 | Try \`$0 --help' for more information." ;; | |
10737 | ||
10738 | *) as_fn_append ac_config_targets " $1" | |
10739 | ac_need_defaults=false ;; | |
10740 | ||
10741 | esac | |
10742 | shift | |
10743 | done | |
10744 | ||
10745 | ac_configure_extra_args= | |
10746 | ||
10747 | if $ac_cs_silent; then | |
10748 | exec 6>/dev/null | |
10749 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10750 | fi | |
10751 | ||
10752 | _ACEOF | |
10753 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10754 | if \$ac_cs_recheck; then | |
10755 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
10756 | shift | |
10757 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10758 | CONFIG_SHELL='$SHELL' | |
10759 | export CONFIG_SHELL | |
10760 | exec "\$@" | |
10761 | fi | |
10762 | ||
10763 | _ACEOF | |
10764 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10765 | exec 5>>config.log | |
10766 | { | |
10767 | echo | |
10768 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10769 | ## Running $as_me. ## | |
10770 | _ASBOX | |
10771 | $as_echo "$ac_log" | |
10772 | } >&5 | |
10773 | ||
10774 | _ACEOF | |
10775 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10776 | _ACEOF | |
10777 | ||
10778 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10779 | ||
10780 | # Handling of arguments. | |
10781 | for ac_config_target in $ac_config_targets | |
10782 | do | |
10783 | case $ac_config_target in | |
10784 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
10785 | "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;; | |
10786 | "conf/cups-files.conf") CONFIG_FILES="$CONFIG_FILES conf/cups-files.conf" ;; | |
10787 | "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;; | |
10788 | "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;; | |
10789 | "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;; | |
10790 | "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;; | |
10791 | "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;; | |
10792 | "data/testprint") CONFIG_FILES="$CONFIG_FILES data/testprint" ;; | |
10793 | "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;; | |
61515785 MS |
10794 | "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;; |
10795 | "man/client.conf.man") CONFIG_FILES="$CONFIG_FILES man/client.conf.man" ;; | |
61515785 MS |
10796 | "man/cups-files.conf.man") CONFIG_FILES="$CONFIG_FILES man/cups-files.conf.man" ;; |
10797 | "man/cups-lpd.man") CONFIG_FILES="$CONFIG_FILES man/cups-lpd.man" ;; | |
10798 | "man/cups-snmp.man") CONFIG_FILES="$CONFIG_FILES man/cups-snmp.man" ;; | |
10799 | "man/cupsaddsmb.man") CONFIG_FILES="$CONFIG_FILES man/cupsaddsmb.man" ;; | |
10800 | "man/cupsd.conf.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.conf.man" ;; | |
10801 | "man/cupsd.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.man" ;; | |
10802 | "man/lpoptions.man") CONFIG_FILES="$CONFIG_FILES man/lpoptions.man" ;; | |
10803 | "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;; | |
10804 | "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;; | |
10805 | "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;; | |
10806 | "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;; | |
1a18c85c MS |
10807 | "scheduler/org.cups.cupsd.path") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;; |
10808 | "scheduler/org.cups.cupsd.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;; | |
10809 | "scheduler/org.cups.cupsd.socket") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;; | |
61515785 MS |
10810 | "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;; |
10811 | "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;; | |
10812 | "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;; | |
10813 | ||
10814 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
10815 | esac | |
10816 | done | |
10817 | ||
10818 | ||
10819 | # If the user did not use the arguments to specify the items to instantiate, | |
10820 | # then the envvar interface is used. Set only those that are not. | |
10821 | # We use the long form for the default assignment because of an extremely | |
10822 | # bizarre bug on SunOS 4.1.3. | |
10823 | if $ac_need_defaults; then | |
10824 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10825 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
10826 | fi | |
10827 | ||
10828 | # Have a temporary directory for convenience. Make it in the build tree | |
10829 | # simply because there is no reason against having it here, and in addition, | |
10830 | # creating and moving files from /tmp can sometimes cause problems. | |
10831 | # Hook for its removal unless debugging. | |
10832 | # Note that there is a small window in which the directory will not be cleaned: | |
10833 | # after its creation but before its name has been assigned to `$tmp'. | |
10834 | $debug || | |
10835 | { | |
10836 | tmp= ac_tmp= | |
10837 | trap 'exit_status=$? | |
10838 | : "${ac_tmp:=$tmp}" | |
10839 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
10840 | ' 0 | |
10841 | trap 'as_fn_exit 1' 1 2 13 15 | |
10842 | } | |
10843 | # Create a (secure) tmp directory for tmp files. | |
10844 | ||
10845 | { | |
10846 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
10847 | test -d "$tmp" | |
10848 | } || | |
10849 | { | |
10850 | tmp=./conf$$-$RANDOM | |
10851 | (umask 077 && mkdir "$tmp") | |
10852 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
10853 | ac_tmp=$tmp | |
10854 | ||
10855 | # Set up the scripts for CONFIG_FILES section. | |
10856 | # No need to generate them if there are no CONFIG_FILES. | |
10857 | # This happens for instance with `./config.status config.h'. | |
10858 | if test -n "$CONFIG_FILES"; then | |
10859 | ||
10860 | ||
10861 | ac_cr=`echo X | tr X '\015'` | |
10862 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
10863 | # But we know of no other shell where ac_cr would be empty at this | |
10864 | # point, so we can use a bashism as a fallback. | |
10865 | if test "x$ac_cr" = x; then | |
10866 | eval ac_cr=\$\'\\r\' | |
10867 | fi | |
10868 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
10869 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
10870 | ac_cs_awk_cr='\\r' | |
10871 | else | |
10872 | ac_cs_awk_cr=$ac_cr | |
10873 | fi | |
10874 | ||
10875 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
10876 | _ACEOF | |
10877 | ||
10878 | ||
10879 | { | |
10880 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
10881 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
10882 | echo "_ACEOF" | |
10883 | } >conf$$subs.sh || | |
10884 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10885 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
10886 | ac_delim='%!_!# ' | |
10887 | for ac_last_try in false false false false false :; do | |
10888 | . ./conf$$subs.sh || | |
10889 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10890 | ||
10891 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
10892 | if test $ac_delim_n = $ac_delim_num; then | |
10893 | break | |
10894 | elif $ac_last_try; then | |
10895 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10896 | else | |
10897 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10898 | fi | |
10899 | done | |
10900 | rm -f conf$$subs.sh | |
10901 | ||
10902 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10903 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
10904 | _ACEOF | |
10905 | sed -n ' | |
10906 | h | |
10907 | s/^/S["/; s/!.*/"]=/ | |
10908 | p | |
10909 | g | |
10910 | s/^[^!]*!// | |
10911 | :repl | |
10912 | t repl | |
10913 | s/'"$ac_delim"'$// | |
10914 | t delim | |
10915 | :nl | |
10916 | h | |
10917 | s/\(.\{148\}\)..*/\1/ | |
10918 | t more1 | |
10919 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
10920 | p | |
10921 | n | |
10922 | b repl | |
10923 | :more1 | |
10924 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10925 | p | |
10926 | g | |
10927 | s/.\{148\}// | |
10928 | t nl | |
10929 | :delim | |
10930 | h | |
10931 | s/\(.\{148\}\)..*/\1/ | |
10932 | t more2 | |
10933 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
10934 | p | |
10935 | b | |
10936 | :more2 | |
10937 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10938 | p | |
10939 | g | |
10940 | s/.\{148\}// | |
10941 | t delim | |
10942 | ' <conf$$subs.awk | sed ' | |
10943 | /^[^""]/{ | |
10944 | N | |
10945 | s/\n// | |
10946 | } | |
10947 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
10948 | rm -f conf$$subs.awk | |
10949 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10950 | _ACAWK | |
10951 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
10952 | for (key in S) S_is_set[key] = 1 | |
10953 | FS = "\a" | |
10954 | ||
10955 | } | |
10956 | { | |
10957 | line = $ 0 | |
10958 | nfields = split(line, field, "@") | |
10959 | substed = 0 | |
10960 | len = length(field[1]) | |
10961 | for (i = 2; i < nfields; i++) { | |
10962 | key = field[i] | |
10963 | keylen = length(key) | |
10964 | if (S_is_set[key]) { | |
10965 | value = S[key] | |
10966 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
10967 | len += length(value) + length(field[++i]) | |
10968 | substed = 1 | |
10969 | } else | |
10970 | len += 1 + keylen | |
10971 | } | |
10972 | ||
10973 | print line | |
10974 | } | |
10975 | ||
10976 | _ACAWK | |
10977 | _ACEOF | |
10978 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10979 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
10980 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
10981 | else | |
10982 | cat | |
10983 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
10984 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
10985 | _ACEOF | |
10986 | ||
10987 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
10988 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
10989 | # trailing colons and then remove the whole line if VPATH becomes empty | |
10990 | # (actually we leave an empty line to preserve line numbers). | |
10991 | if test "x$srcdir" = x.; then | |
10992 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
10993 | h | |
10994 | s/// | |
10995 | s/^/:/ | |
10996 | s/[ ]*$/:/ | |
10997 | s/:\$(srcdir):/:/g | |
10998 | s/:\${srcdir}:/:/g | |
10999 | s/:@srcdir@:/:/g | |
11000 | s/^:*// | |
11001 | s/:*$// | |
11002 | x | |
11003 | s/\(=[ ]*\).*/\1/ | |
11004 | G | |
11005 | s/\n// | |
11006 | s/^[^=]*=[ ]*$// | |
11007 | }' | |
11008 | fi | |
11009 | ||
11010 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11011 | fi # test -n "$CONFIG_FILES" | |
11012 | ||
11013 | # Set up the scripts for CONFIG_HEADERS section. | |
11014 | # No need to generate them if there are no CONFIG_HEADERS. | |
11015 | # This happens for instance with `./config.status Makefile'. | |
11016 | if test -n "$CONFIG_HEADERS"; then | |
11017 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
11018 | BEGIN { | |
11019 | _ACEOF | |
11020 | ||
11021 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11022 | # here-document in config.status, that substitutes the proper values into | |
11023 | # config.h.in to produce config.h. | |
11024 | ||
11025 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11026 | # handling of long lines. | |
11027 | ac_delim='%!_!# ' | |
11028 | for ac_last_try in false false :; do | |
11029 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
11030 | if test -z "$ac_tt"; then | |
11031 | break | |
11032 | elif $ac_last_try; then | |
11033 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
11034 | else | |
11035 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11036 | fi | |
11037 | done | |
11038 | ||
11039 | # For the awk script, D is an array of macro values keyed by name, | |
11040 | # likewise P contains macro parameters if any. Preserve backslash | |
11041 | # newline sequences. | |
11042 | ||
11043 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11044 | sed -n ' | |
11045 | s/.\{148\}/&'"$ac_delim"'/g | |
11046 | t rset | |
11047 | :rset | |
11048 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11049 | t def | |
11050 | d | |
11051 | :def | |
11052 | s/\\$// | |
11053 | t bsnl | |
11054 | s/["\\]/\\&/g | |
11055 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11056 | D["\1"]=" \3"/p | |
11057 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11058 | d | |
11059 | :bsnl | |
11060 | s/["\\]/\\&/g | |
11061 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11062 | D["\1"]=" \3\\\\\\n"\\/p | |
11063 | t cont | |
11064 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11065 | t cont | |
11066 | d | |
11067 | :cont | |
11068 | n | |
11069 | s/.\{148\}/&'"$ac_delim"'/g | |
11070 | t clear | |
11071 | :clear | |
11072 | s/\\$// | |
11073 | t bsnlc | |
11074 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11075 | d | |
11076 | :bsnlc | |
11077 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11078 | b cont | |
11079 | ' <confdefs.h | sed ' | |
11080 | s/'"$ac_delim"'/"\\\ | |
11081 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11082 | ||
11083 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11084 | for (key in D) D_is_set[key] = 1 | |
11085 | FS = "\a" | |
11086 | } | |
11087 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11088 | line = \$ 0 | |
11089 | split(line, arg, " ") | |
11090 | if (arg[1] == "#") { | |
11091 | defundef = arg[2] | |
11092 | mac1 = arg[3] | |
11093 | } else { | |
11094 | defundef = substr(arg[1], 2) | |
11095 | mac1 = arg[2] | |
11096 | } | |
11097 | split(mac1, mac2, "(") #) | |
11098 | macro = mac2[1] | |
11099 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11100 | if (D_is_set[macro]) { | |
11101 | # Preserve the white space surrounding the "#". | |
11102 | print prefix "define", macro P[macro] D[macro] | |
11103 | next | |
11104 | } else { | |
11105 | # Replace #undef with comments. This is necessary, for example, | |
11106 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11107 | # on some systems where configure will not decide to define it. | |
11108 | if (defundef == "undef") { | |
11109 | print "/*", prefix defundef, macro, "*/" | |
11110 | next | |
11111 | } | |
11112 | } | |
11113 | } | |
11114 | { print } | |
11115 | _ACAWK | |
11116 | _ACEOF | |
11117 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11118 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
11119 | fi # test -n "$CONFIG_HEADERS" | |
11120 | ||
11121 | ||
11122 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
11123 | shift | |
11124 | for ac_tag | |
11125 | do | |
11126 | case $ac_tag in | |
11127 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11128 | esac | |
11129 | case $ac_mode$ac_tag in | |
11130 | :[FHL]*:*);; | |
11131 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
11132 | :[FH]-) ac_tag=-:-;; | |
11133 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11134 | esac | |
11135 | ac_save_IFS=$IFS | |
11136 | IFS=: | |
11137 | set x $ac_tag | |
11138 | IFS=$ac_save_IFS | |
11139 | shift | |
11140 | ac_file=$1 | |
11141 | shift | |
11142 | ||
11143 | case $ac_mode in | |
11144 | :L) ac_source=$1;; | |
11145 | :[FH]) | |
11146 | ac_file_inputs= | |
11147 | for ac_f | |
11148 | do | |
11149 | case $ac_f in | |
11150 | -) ac_f="$ac_tmp/stdin";; | |
11151 | *) # Look for the file first in the build tree, then in the source tree | |
11152 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11153 | # because $ac_f cannot contain `:'. | |
11154 | test -f "$ac_f" || | |
11155 | case $ac_f in | |
11156 | [\\/$]*) false;; | |
11157 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11158 | esac || | |
11159 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
11160 | esac | |
11161 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
11162 | as_fn_append ac_file_inputs " '$ac_f'" | |
11163 | done | |
11164 | ||
11165 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11166 | # use $as_me), people would be surprised to read: | |
11167 | # /* config.h. Generated by config.status. */ | |
11168 | configure_input='Generated from '` | |
11169 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11170 | `' by configure.' | |
11171 | if test x"$ac_file" != x-; then | |
11172 | configure_input="$ac_file. $configure_input" | |
11173 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
11174 | $as_echo "$as_me: creating $ac_file" >&6;} | |
11175 | fi | |
11176 | # Neutralize special characters interpreted by sed in replacement strings. | |
11177 | case $configure_input in #( | |
11178 | *\&* | *\|* | *\\* ) | |
11179 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11180 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11181 | *) ac_sed_conf_input=$configure_input;; | |
11182 | esac | |
11183 | ||
11184 | case $ac_tag in | |
11185 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
11186 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
11187 | esac | |
11188 | ;; | |
11189 | esac | |
11190 | ||
11191 | ac_dir=`$as_dirname -- "$ac_file" || | |
11192 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11193 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
11194 | X"$ac_file" : 'X\(//\)$' \| \ | |
11195 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
11196 | $as_echo X"$ac_file" | | |
11197 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11198 | s//\1/ | |
11199 | q | |
11200 | } | |
11201 | /^X\(\/\/\)[^/].*/{ | |
11202 | s//\1/ | |
11203 | q | |
11204 | } | |
11205 | /^X\(\/\/\)$/{ | |
11206 | s//\1/ | |
11207 | q | |
11208 | } | |
11209 | /^X\(\/\).*/{ | |
11210 | s//\1/ | |
11211 | q | |
11212 | } | |
11213 | s/.*/./; q'` | |
11214 | as_dir="$ac_dir"; as_fn_mkdir_p | |
11215 | ac_builddir=. | |
11216 | ||
11217 | case "$ac_dir" in | |
11218 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11219 | *) | |
11220 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
11221 | # A ".." for each directory in $ac_dir_suffix. | |
11222 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
11223 | case $ac_top_builddir_sub in | |
11224 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11225 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11226 | esac ;; | |
11227 | esac | |
11228 | ac_abs_top_builddir=$ac_pwd | |
11229 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11230 | # for backward compatibility: | |
11231 | ac_top_builddir=$ac_top_build_prefix | |
11232 | ||
11233 | case $srcdir in | |
11234 | .) # We are building in place. | |
11235 | ac_srcdir=. | |
11236 | ac_top_srcdir=$ac_top_builddir_sub | |
11237 | ac_abs_top_srcdir=$ac_pwd ;; | |
11238 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
11239 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11240 | ac_top_srcdir=$srcdir | |
11241 | ac_abs_top_srcdir=$srcdir ;; | |
11242 | *) # Relative name. | |
11243 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11244 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11245 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
11246 | esac | |
11247 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
11248 | ||
11249 | ||
11250 | case $ac_mode in | |
11251 | :F) | |
11252 | # | |
11253 | # CONFIG_FILE | |
11254 | # | |
11255 | ||
11256 | _ACEOF | |
11257 | ||
11258 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11259 | # If the template does not know about datarootdir, expand it. | |
11260 | # FIXME: This hack should be removed a few years after 2.60. | |
11261 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
11262 | ac_sed_dataroot=' | |
11263 | /datarootdir/ { | |
11264 | p | |
11265 | q | |
11266 | } | |
11267 | /@datadir@/p | |
11268 | /@docdir@/p | |
11269 | /@infodir@/p | |
11270 | /@localedir@/p | |
11271 | /@mandir@/p' | |
11272 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
11273 | *datarootdir*) ac_datarootdir_seen=yes;; | |
11274 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
11275 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
11276 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11277 | _ACEOF | |
11278 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11279 | ac_datarootdir_hack=' | |
11280 | s&@datadir@&$datadir&g | |
11281 | s&@docdir@&$docdir&g | |
11282 | s&@infodir@&$infodir&g | |
11283 | s&@localedir@&$localedir&g | |
11284 | s&@mandir@&$mandir&g | |
11285 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
11286 | esac | |
11287 | _ACEOF | |
11288 | ||
11289 | # Neutralize VPATH when `$srcdir' = `.'. | |
11290 | # Shell code in configure.ac might set extrasub. | |
11291 | # FIXME: do we really want to maintain this feature? | |
11292 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11293 | ac_sed_extra="$ac_vpsub | |
11294 | $extrasub | |
11295 | _ACEOF | |
11296 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11297 | :t | |
11298 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
11299 | s|@configure_input@|$ac_sed_conf_input|;t t | |
11300 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
11301 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
11302 | s&@srcdir@&$ac_srcdir&;t t | |
11303 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11304 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11305 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11306 | s&@builddir@&$ac_builddir&;t t | |
11307 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11308 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11309 | $ac_datarootdir_hack | |
11310 | " | |
11311 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
11312 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11313 | ||
11314 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11315 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
11316 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
11317 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
11318 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11319 | which seems to be undefined. Please make sure it is defined" >&5 | |
11320 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11321 | which seems to be undefined. Please make sure it is defined" >&2;} | |
11322 | ||
11323 | rm -f "$ac_tmp/stdin" | |
11324 | case $ac_file in | |
11325 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
11326 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
11327 | esac \ | |
11328 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11329 | ;; | |
11330 | :H) | |
11331 | # | |
11332 | # CONFIG_HEADER | |
11333 | # | |
11334 | if test x"$ac_file" != x-; then | |
11335 | { | |
11336 | $as_echo "/* $configure_input */" \ | |
11337 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
11338 | } >"$ac_tmp/config.h" \ | |
11339 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11340 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
11341 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
11342 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
11343 | else | |
11344 | rm -f "$ac_file" | |
11345 | mv "$ac_tmp/config.h" "$ac_file" \ | |
11346 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11347 | fi | |
11348 | else | |
11349 | $as_echo "/* $configure_input */" \ | |
11350 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
11351 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
11352 | fi | |
11353 | ;; | |
11354 | ||
11355 | ||
11356 | esac | |
11357 | ||
11358 | done # for ac_tag | |
11359 | ||
11360 | ||
11361 | as_fn_exit 0 | |
11362 | _ACEOF | |
11363 | ac_clean_files=$ac_clean_files_save | |
11364 | ||
11365 | test $ac_write_fail = 0 || | |
11366 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
11367 | ||
11368 | ||
11369 | # configure is writing to config.log, and then calls config.status. | |
11370 | # config.status does its own redirection, appending to config.log. | |
11371 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11372 | # by configure, so config.status won't be able to write to it; its | |
11373 | # output is simply discarded. So we exec the FD to /dev/null, | |
11374 | # effectively closing config.log, so it can be properly (re)opened and | |
11375 | # appended to by config.status. When coming back to configure, we | |
11376 | # need to make the FD available again. | |
11377 | if test "$no_create" != yes; then | |
11378 | ac_cs_success=: | |
11379 | ac_config_status_args= | |
11380 | test "$silent" = yes && | |
11381 | ac_config_status_args="$ac_config_status_args --quiet" | |
11382 | exec 5>/dev/null | |
11383 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11384 | exec 5>>config.log | |
11385 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11386 | # would make configure fail if this is the last instruction. | |
11387 | $ac_cs_success || as_fn_exit 1 | |
11388 | fi | |
11389 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
11390 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
11391 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
11392 | fi | |
11393 | ||
11394 | ||
11395 | chmod +x cups-config | |
11396 |