]>
Commit | Line | Data |
---|---|---|
d9f356c5 MS |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
971a6b5d | 3 | # Generated by GNU Autoconf 2.68 for CUPS 2.3b7. |
d9f356c5 | 4 | # |
24343173 | 5 | # Report bugs to <https://github.com/apple/cups/issues>. |
d9f356c5 MS |
6 | # |
7 | # | |
971a6b5d MS |
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
10 | # Foundation, Inc. | |
d9f356c5 MS |
11 | # |
12 | # | |
13 | # This configure script is free software; the Free Software Foundation | |
14 | # gives unlimited permission to copy, distribute and modify it. | |
15 | ## -------------------- ## | |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
18 | ||
19 | # Be more Bourne compatible | |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22 | emulate sh | |
23 | NULLCMD=: | |
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
25 | # is contrary to our usage. Disable this feature. | |
26 | alias -g '${1+"$@"}'='"$@"' | |
27 | setopt NO_GLOB_SUBST | |
28 | else | |
29 | case `(set -o) 2>/dev/null` in #( | |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
34 | esac | |
35 | fi | |
36 | ||
37 | ||
38 | as_nl=' | |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 | as_echo='printf %s\n' | |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
58 | else | |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
62 | case $arg in #( | |
63 | *"$as_nl"*) | |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
71 | fi | |
72 | export as_echo_body | |
73 | as_echo='sh -c $as_echo_body as_echo' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
83 | fi | |
84 | ||
85 | ||
86 | # IFS | |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
91 | IFS=" "" $as_nl" | |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
94 | as_myself= | |
95 | case $0 in #(( | |
96 | *[\\/]* ) as_myself=$0 ;; | |
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 | for as_dir in $PATH | |
99 | do | |
100 | IFS=$as_save_IFS | |
101 | test -z "$as_dir" && as_dir=. | |
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
103 | done | |
104 | IFS=$as_save_IFS | |
105 | ||
106 | ;; | |
107 | esac | |
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
109 | # in which case we are not to be found in the path. | |
110 | if test "x$as_myself" = x; then | |
111 | as_myself=$0 | |
112 | fi | |
113 | if test ! -f "$as_myself"; then | |
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
115 | exit 1 | |
116 | fi | |
117 | ||
118 | # Unset variables that we do not need and which cause bugs (e.g. in | |
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 | # suppresses any "Segmentation fault" message there. '((' could | |
121 | # trigger a bug in pdksh 5.2.14. | |
122 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 | do eval test x\${$as_var+set} = xset \ | |
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
125 | done | |
126 | PS1='$ ' | |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
131 | LC_ALL=C | |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
135 | ||
136 | # CDPATH. | |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | ||
139 | if test "x$CONFIG_SHELL" = x; then | |
140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
141 | emulate sh | |
142 | NULLCMD=: | |
143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
144 | # is contrary to our usage. Disable this feature. | |
145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
146 | setopt NO_GLOB_SUBST | |
147 | else | |
148 | case \`(set -o) 2>/dev/null\` in #( | |
149 | *posix*) : | |
150 | set -o posix ;; #( | |
151 | *) : | |
152 | ;; | |
153 | esac | |
154 | fi | |
155 | " | |
156 | as_required="as_fn_return () { (exit \$1); } | |
157 | as_fn_success () { as_fn_return 0; } | |
158 | as_fn_failure () { as_fn_return 1; } | |
159 | as_fn_ret_success () { return 0; } | |
160 | as_fn_ret_failure () { return 1; } | |
161 | ||
162 | exitcode=0 | |
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
168 | ||
169 | else | |
170 | exitcode=1; echo positional parameters were not saved. | |
171 | fi | |
971a6b5d | 172 | test x\$exitcode = x0 || exit 1" |
d9f356c5 MS |
173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
177 | test \$(( 1 + 1 )) = 2 || exit 1" | |
178 | if (eval "$as_required") 2>/dev/null; then : | |
179 | as_have_required=yes | |
180 | else | |
181 | as_have_required=no | |
182 | fi | |
183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
184 | ||
185 | else | |
186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
187 | as_found=false | |
188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
189 | do | |
190 | IFS=$as_save_IFS | |
191 | test -z "$as_dir" && as_dir=. | |
192 | as_found=: | |
193 | case $as_dir in #( | |
194 | /*) | |
195 | for as_base in sh bash ksh sh5; do | |
196 | # Try only shells that exist, to save several forks. | |
197 | as_shell=$as_dir/$as_base | |
198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
200 | CONFIG_SHELL=$as_shell as_have_required=yes | |
201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
202 | break 2 | |
203 | fi | |
204 | fi | |
205 | done;; | |
206 | esac | |
207 | as_found=false | |
208 | done | |
209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
211 | CONFIG_SHELL=$SHELL as_have_required=yes | |
212 | fi; } | |
213 | IFS=$as_save_IFS | |
214 | ||
215 | ||
216 | if test "x$CONFIG_SHELL" != x; then : | |
971a6b5d MS |
217 | # We cannot yet assume a decent shell, so we have to provide a |
218 | # neutralization value for shells without unset; and this also | |
219 | # works around shells that cannot unset nonexistent variables. | |
220 | # Preserve -v and -x to the replacement shell. | |
221 | BASH_ENV=/dev/null | |
222 | ENV=/dev/null | |
223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
224 | export CONFIG_SHELL | |
225 | case $- in # (((( | |
226 | *v*x* | *x*v* ) as_opts=-vx ;; | |
227 | *v* ) as_opts=-v ;; | |
228 | *x* ) as_opts=-x ;; | |
229 | * ) as_opts= ;; | |
230 | esac | |
231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
d9f356c5 MS |
232 | fi |
233 | ||
234 | if test x$as_have_required = xno; then : | |
235 | $as_echo "$0: This script requires a shell more modern than all" | |
236 | $as_echo "$0: the shells that I found on your system." | |
237 | if test x${ZSH_VERSION+set} = xset ; then | |
238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
240 | else | |
241 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
24343173 | 242 | $0: https://github.com/apple/cups/issues about your system, |
d9f356c5 MS |
243 | $0: including any error possibly output before this |
244 | $0: message. Then install a modern shell, or manually run | |
245 | $0: the script under such a shell if you do have one." | |
246 | fi | |
247 | exit 1 | |
248 | fi | |
249 | fi | |
250 | fi | |
251 | SHELL=${CONFIG_SHELL-/bin/sh} | |
252 | export SHELL | |
253 | # Unset more variables known to interfere with behavior of common tools. | |
254 | CLICOLOR_FORCE= GREP_OPTIONS= | |
255 | unset CLICOLOR_FORCE GREP_OPTIONS | |
256 | ||
257 | ## --------------------- ## | |
258 | ## M4sh Shell Functions. ## | |
259 | ## --------------------- ## | |
260 | # as_fn_unset VAR | |
261 | # --------------- | |
262 | # Portably unset VAR. | |
263 | as_fn_unset () | |
264 | { | |
265 | { eval $1=; unset $1;} | |
266 | } | |
267 | as_unset=as_fn_unset | |
268 | ||
269 | # as_fn_set_status STATUS | |
270 | # ----------------------- | |
271 | # Set $? to STATUS, without forking. | |
272 | as_fn_set_status () | |
273 | { | |
274 | return $1 | |
275 | } # as_fn_set_status | |
276 | ||
277 | # as_fn_exit STATUS | |
278 | # ----------------- | |
279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
280 | as_fn_exit () | |
281 | { | |
282 | set +e | |
283 | as_fn_set_status $1 | |
284 | exit $1 | |
285 | } # as_fn_exit | |
286 | ||
287 | # as_fn_mkdir_p | |
288 | # ------------- | |
289 | # Create "$as_dir" as a directory, including parents if necessary. | |
290 | as_fn_mkdir_p () | |
291 | { | |
292 | ||
293 | case $as_dir in #( | |
294 | -*) as_dir=./$as_dir;; | |
295 | esac | |
296 | test -d "$as_dir" || eval $as_mkdir_p || { | |
297 | as_dirs= | |
298 | while :; do | |
299 | case $as_dir in #( | |
300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
301 | *) as_qdir=$as_dir;; | |
302 | esac | |
303 | as_dirs="'$as_qdir' $as_dirs" | |
304 | as_dir=`$as_dirname -- "$as_dir" || | |
305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
306 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
307 | X"$as_dir" : 'X\(//\)$' \| \ | |
308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
309 | $as_echo X"$as_dir" | | |
310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
311 | s//\1/ | |
312 | q | |
313 | } | |
314 | /^X\(\/\/\)[^/].*/{ | |
315 | s//\1/ | |
316 | q | |
317 | } | |
318 | /^X\(\/\/\)$/{ | |
319 | s//\1/ | |
320 | q | |
321 | } | |
322 | /^X\(\/\).*/{ | |
323 | s//\1/ | |
324 | q | |
325 | } | |
326 | s/.*/./; q'` | |
327 | test -d "$as_dir" && break | |
328 | done | |
329 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
331 | ||
332 | ||
333 | } # as_fn_mkdir_p | |
334 | # as_fn_append VAR VALUE | |
335 | # ---------------------- | |
336 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
337 | # advantage of any shell optimizations that allow amortized linear growth over | |
338 | # repeated appends, instead of the typical quadratic growth present in naive | |
339 | # implementations. | |
340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
341 | eval 'as_fn_append () | |
342 | { | |
343 | eval $1+=\$2 | |
344 | }' | |
345 | else | |
346 | as_fn_append () | |
347 | { | |
348 | eval $1=\$$1\$2 | |
349 | } | |
350 | fi # as_fn_append | |
351 | ||
352 | # as_fn_arith ARG... | |
353 | # ------------------ | |
354 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
356 | # must be portable across $(()) and expr. | |
357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
358 | eval 'as_fn_arith () | |
359 | { | |
360 | as_val=$(( $* )) | |
361 | }' | |
362 | else | |
363 | as_fn_arith () | |
364 | { | |
365 | as_val=`expr "$@" || test $? -eq 1` | |
366 | } | |
367 | fi # as_fn_arith | |
368 | ||
369 | ||
370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
371 | # ---------------------------------------- | |
372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
373 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
374 | # script with STATUS, using 1 if that was 0. | |
375 | as_fn_error () | |
376 | { | |
377 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
378 | if test "$4"; then | |
379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
381 | fi | |
382 | $as_echo "$as_me: error: $2" >&2 | |
383 | as_fn_exit $as_status | |
384 | } # as_fn_error | |
385 | ||
386 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
388 | as_expr=expr | |
389 | else | |
390 | as_expr=false | |
391 | fi | |
392 | ||
393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
394 | as_basename=basename | |
395 | else | |
396 | as_basename=false | |
397 | fi | |
398 | ||
399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
400 | as_dirname=dirname | |
401 | else | |
402 | as_dirname=false | |
403 | fi | |
404 | ||
405 | as_me=`$as_basename -- "$0" || | |
406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
407 | X"$0" : 'X\(//\)$' \| \ | |
408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
409 | $as_echo X/"$0" | | |
410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
411 | s//\1/ | |
412 | q | |
413 | } | |
414 | /^X\/\(\/\/\)$/{ | |
415 | s//\1/ | |
416 | q | |
417 | } | |
418 | /^X\/\(\/\).*/{ | |
419 | s//\1/ | |
420 | q | |
421 | } | |
422 | s/.*/./; q'` | |
423 | ||
424 | # Avoid depending upon Character Ranges. | |
425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
428 | as_cr_digits='0123456789' | |
429 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
430 | ||
431 | ||
432 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
433 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
434 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
435 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
436 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
437 | sed -n ' | |
438 | p | |
439 | /[$]LINENO/= | |
440 | ' <$as_myself | | |
441 | sed ' | |
442 | s/[$]LINENO.*/&-/ | |
443 | t lineno | |
444 | b | |
445 | :lineno | |
446 | N | |
447 | :loop | |
448 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
449 | t loop | |
450 | s/-\n.*// | |
451 | ' >$as_me.lineno && | |
452 | chmod +x "$as_me.lineno" || | |
453 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
454 | ||
455 | # Don't try to exec as it changes $[0], causing all sort of problems | |
456 | # (the dirname of $[0] is not the place where we might find the | |
457 | # original and so on. Autoconf is especially sensitive to this). | |
458 | . "./$as_me.lineno" | |
459 | # Exit status is that of the last command. | |
460 | exit | |
461 | } | |
462 | ||
463 | ECHO_C= ECHO_N= ECHO_T= | |
464 | case `echo -n x` in #((((( | |
465 | -n*) | |
466 | case `echo 'xy\c'` in | |
467 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
468 | xy) ECHO_C='\c';; | |
469 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
470 | ECHO_T=' ';; | |
471 | esac;; | |
472 | *) | |
473 | ECHO_N='-n';; | |
474 | esac | |
475 | ||
476 | rm -f conf$$ conf$$.exe conf$$.file | |
477 | if test -d conf$$.dir; then | |
478 | rm -f conf$$.dir/conf$$.file | |
479 | else | |
480 | rm -f conf$$.dir | |
481 | mkdir conf$$.dir 2>/dev/null | |
482 | fi | |
483 | if (echo >conf$$.file) 2>/dev/null; then | |
484 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
485 | as_ln_s='ln -s' | |
486 | # ... but there are two gotchas: | |
487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
971a6b5d | 489 | # In both cases, we have to default to `cp -p'. |
d9f356c5 | 490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
971a6b5d | 491 | as_ln_s='cp -p' |
d9f356c5 MS |
492 | elif ln conf$$.file conf$$ 2>/dev/null; then |
493 | as_ln_s=ln | |
494 | else | |
971a6b5d | 495 | as_ln_s='cp -p' |
d9f356c5 MS |
496 | fi |
497 | else | |
971a6b5d | 498 | as_ln_s='cp -p' |
d9f356c5 MS |
499 | fi |
500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
501 | rmdir conf$$.dir 2>/dev/null | |
502 | ||
503 | if mkdir -p . 2>/dev/null; then | |
504 | as_mkdir_p='mkdir -p "$as_dir"' | |
505 | else | |
506 | test -d ./-p && rmdir ./-p | |
507 | as_mkdir_p=false | |
508 | fi | |
509 | ||
971a6b5d MS |
510 | if test -x / >/dev/null 2>&1; then |
511 | as_test_x='test -x' | |
512 | else | |
513 | if ls -dL / >/dev/null 2>&1; then | |
514 | as_ls_L_option=L | |
515 | else | |
516 | as_ls_L_option= | |
517 | fi | |
518 | as_test_x=' | |
519 | eval sh -c '\'' | |
520 | if test -d "$1"; then | |
521 | test -d "$1/."; | |
522 | else | |
523 | case $1 in #( | |
524 | -*)set "./$1";; | |
525 | esac; | |
526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
527 | ???[sx]*):;;*)false;;esac;fi | |
528 | '\'' sh | |
529 | ' | |
530 | fi | |
531 | as_executable_p=$as_test_x | |
d9f356c5 MS |
532 | |
533 | # Sed expression to map a string onto a valid CPP name. | |
534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
535 | ||
536 | # Sed expression to map a string onto a valid variable name. | |
537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
538 | ||
539 | ||
540 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
541 | exec 6>&1 | |
542 | ||
543 | # Name of the host. | |
544 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
545 | # so uname gets run too. | |
546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
547 | ||
548 | # | |
549 | # Initializations. | |
550 | # | |
551 | ac_default_prefix=/usr/local | |
552 | ac_clean_files= | |
553 | ac_config_libobj_dir=. | |
554 | LIBOBJS= | |
555 | cross_compiling=no | |
556 | subdirs= | |
557 | MFLAGS= | |
558 | MAKEFLAGS= | |
559 | ||
560 | # Identity of this package. | |
561 | PACKAGE_NAME='CUPS' | |
562 | PACKAGE_TARNAME='cups' | |
8a763079 MS |
563 | PACKAGE_VERSION='2.3b7' |
564 | PACKAGE_STRING='CUPS 2.3b7' | |
24343173 | 565 | PACKAGE_BUGREPORT='https://github.com/apple/cups/issues' |
d9f356c5 MS |
566 | PACKAGE_URL='https://www.cups.org/' |
567 | ||
568 | # Factoring default headers for most tests. | |
569 | ac_includes_default="\ | |
570 | #include <stdio.h> | |
571 | #ifdef HAVE_SYS_TYPES_H | |
572 | # include <sys/types.h> | |
573 | #endif | |
574 | #ifdef HAVE_SYS_STAT_H | |
575 | # include <sys/stat.h> | |
576 | #endif | |
577 | #ifdef STDC_HEADERS | |
578 | # include <stdlib.h> | |
579 | # include <stddef.h> | |
580 | #else | |
581 | # ifdef HAVE_STDLIB_H | |
582 | # include <stdlib.h> | |
583 | # endif | |
584 | #endif | |
585 | #ifdef HAVE_STRING_H | |
586 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
587 | # include <memory.h> | |
588 | # endif | |
589 | # include <string.h> | |
590 | #endif | |
591 | #ifdef HAVE_STRINGS_H | |
592 | # include <strings.h> | |
593 | #endif | |
594 | #ifdef HAVE_INTTYPES_H | |
595 | # include <inttypes.h> | |
596 | #endif | |
597 | #ifdef HAVE_STDINT_H | |
598 | # include <stdint.h> | |
599 | #endif | |
600 | #ifdef HAVE_UNISTD_H | |
601 | # include <unistd.h> | |
602 | #endif" | |
603 | ||
604 | ac_default_prefix=/ | |
605 | ac_subst_vars='LTLIBOBJS | |
606 | LIBOBJS | |
607 | UNINSTALL_LANGUAGES | |
608 | INSTALL_LANGUAGES | |
d9f356c5 MS |
609 | CUPS_WEBIF |
610 | DEFAULT_IPP_PORT | |
611 | CUPS_SNMP_COMMUNITY | |
612 | CUPS_SNMP_ADDRESS | |
613 | DEFAULT_RAW_PRINTING | |
614 | CUPS_MAX_COPIES | |
615 | CUPS_DEFAULT_SMB_CONFIG_FILE | |
616 | CUPS_DEFAULT_LPD_CONFIG_FILE | |
617 | CUPS_DEFAULT_PRINTCAP | |
618 | CUPS_PRIMARY_SYSTEM_GROUP | |
619 | CUPS_SYSTEM_GROUPS | |
620 | CUPS_GROUP | |
621 | CUPS_USER | |
622 | CUPS_DEFAULT_SHARED | |
623 | CUPS_BROWSE_LOCAL_PROTOCOLS | |
624 | CUPS_BROWSING | |
625 | CUPS_PAGE_LOG_FORMAT | |
626 | CUPS_ACCESS_LOG_LEVEL | |
627 | CUPS_LOG_LEVEL | |
628 | CUPS_FATAL_ERRORS | |
629 | CUPS_LOG_FILE_PERM | |
630 | CUPS_CUPSD_FILE_PERM | |
631 | CUPS_CONFIG_FILE_PERM | |
d4a895f8 | 632 | CUPS_EXE_FILE_PERM |
e4b72d7e | 633 | CUPS_RESOURCEDIR |
d9f356c5 MS |
634 | CUPS_BUNDLEDIR |
635 | LANGUAGES | |
636 | XINETD | |
637 | RCSTOP | |
638 | RCSTART | |
639 | RCLEVELS | |
640 | INITDDIR | |
641 | INITDIR | |
642 | SMFMANIFESTDIR | |
643 | SYSTEMD_DIR | |
644 | LAUNCHD_DIR | |
645 | ONDEMANDLIBS | |
646 | ONDEMANDFLAGS | |
647 | IPPFIND_MAN | |
648 | IPPFIND_BIN | |
649 | DNSSD_BACKEND | |
650 | DNSSDLIBS | |
651 | LARGEFILE | |
652 | PAMMODAUTH | |
653 | PAMMOD | |
654 | PAMLIBS | |
655 | PAMFILE | |
656 | PAMDIR | |
657 | EXPORT_SSLLIBS | |
658 | SSLLIBS | |
659 | SSLFLAGS | |
660 | IPPALIASES | |
661 | CUPS_SERVERKEYCHAIN | |
d9f356c5 MS |
662 | LIBGNUTLSCONFIG |
663 | PTHREAD_FLAGS | |
664 | CUPS_DEFAULT_GSSSERVICENAME | |
665 | KRB5CONFIG | |
666 | LIBGSSAPI | |
667 | CUPS_LISTEN_DOMAINSOCKET | |
668 | CUPS_DEFAULT_DOMAINSOCKET | |
f518bf7e | 669 | WARNING_OPTIONS |
d9f356c5 MS |
670 | RELROFLAGS |
671 | PIEFLAGS | |
672 | CXXLIBS | |
673 | LDARCHFLAGS | |
674 | ARCHFLAGS | |
675 | UNITTESTS | |
676 | OPTIM | |
677 | INSTALL_STRIP | |
b94f7488 MS |
678 | LIBTOOL_INSTALL |
679 | LIBTOOL_CXX | |
680 | LIBTOOL_CC | |
d9f356c5 | 681 | LIBTOOL |
07cb7247 MS |
682 | LD_CXX |
683 | LD_CC | |
d9f356c5 MS |
684 | EXPORT_LDFLAGS |
685 | IMGLIBS | |
686 | DSOLIBS | |
687 | LINKCUPSIMAGE | |
688 | LINKCUPS | |
689 | EXTLINKCUPSIMAGE | |
690 | EXTLINKCUPS | |
691 | LIBCUPSSTATIC | |
d9f356c5 | 692 | LIBCUPSIMAGE |
d9f356c5 MS |
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 | |
718 | PRIVATEINCLUDE | |
719 | privateinclude | |
58b64dbb | 720 | LIBCUPSOBJS |
d9f356c5 MS |
721 | BUILDDIRS |
722 | INSTALLXPC | |
723 | CUPS_SYSTEM_AUTHKEY | |
724 | CUPS_DEFAULT_PRINTOPERATOR_AUTH | |
725 | DBUS_NOTIFIERLIBS | |
726 | DBUS_NOTIFIER | |
727 | DBUSDIR | |
728 | SERVERLIBS | |
729 | BACKLIBS | |
730 | ARFLAGS | |
731 | LIBZ | |
732 | INSTALL_GZIP | |
733 | LIBWRAP | |
734 | USBQUIRKS | |
735 | LIBUSB | |
736 | LIBMXML | |
737 | EGREP | |
738 | GREP | |
739 | LIBPAPER | |
740 | LIBMALLOC | |
741 | PKGCONFIG | |
742 | INSTALLSTATIC | |
743 | INSTALL | |
744 | CUPS_HTMLVIEW | |
745 | XDGOPEN | |
746 | SED | |
747 | RMDIR | |
748 | RM | |
749 | MV | |
9964a31a | 750 | MKDIR |
d9f356c5 MS |
751 | LN |
752 | LD | |
753 | GZIP | |
754 | CHMOD | |
755 | AR | |
756 | RANLIB | |
757 | ac_ct_CXX | |
758 | CXXFLAGS | |
759 | CXX | |
48cc3892 | 760 | CPP |
d9f356c5 MS |
761 | OBJEXT |
762 | EXEEXT | |
763 | ac_ct_CC | |
764 | CPPFLAGS | |
765 | LDFLAGS | |
766 | CFLAGS | |
767 | CC | |
768 | AWK | |
769 | CUPS_BUILD | |
770 | CUPS_REVISION | |
771 | CUPS_VERSION | |
137fa9a8 | 772 | CODE_SIGN |
105922ec MS |
773 | LOCALTARGET |
774 | host_os | |
775 | host_vendor | |
776 | host_cpu | |
777 | host | |
778 | build_os | |
779 | build_vendor | |
780 | build_cpu | |
781 | build | |
d9f356c5 MS |
782 | target_alias |
783 | host_alias | |
784 | build_alias | |
785 | LIBS | |
786 | ECHO_T | |
787 | ECHO_N | |
788 | ECHO_C | |
789 | DEFS | |
790 | mandir | |
791 | localedir | |
792 | libdir | |
793 | psdir | |
794 | pdfdir | |
795 | dvidir | |
796 | htmldir | |
797 | infodir | |
798 | docdir | |
799 | oldincludedir | |
800 | includedir | |
801 | localstatedir | |
802 | sharedstatedir | |
803 | sysconfdir | |
804 | datadir | |
805 | datarootdir | |
806 | libexecdir | |
807 | sbindir | |
808 | bindir | |
809 | program_transform_name | |
810 | prefix | |
811 | exec_prefix | |
812 | PACKAGE_URL | |
813 | PACKAGE_BUGREPORT | |
814 | PACKAGE_STRING | |
815 | PACKAGE_VERSION | |
816 | PACKAGE_TARNAME | |
817 | PACKAGE_NAME | |
818 | PATH_SEPARATOR | |
819 | SHELL' | |
820 | ac_subst_files='' | |
821 | ac_user_opts=' | |
822 | enable_option_checking | |
823 | with_cups_build | |
824 | enable_static | |
825 | enable_mallinfo | |
826 | enable_libpaper | |
827 | enable_libusb | |
828 | enable_tcp_wrappers | |
829 | enable_acl | |
830 | enable_dbus | |
831 | with_dbusdir | |
832 | with_adminkey | |
833 | with_operkey | |
834 | with_components | |
835 | with_privateinclude | |
836 | with_lpdconfig | |
837 | with_smbconfig | |
838 | with_cachedir | |
839 | with_icondir | |
840 | with_menudir | |
841 | with_docdir | |
842 | with_fontpath | |
843 | with_logdir | |
844 | with_rundir | |
845 | enable_shared | |
846 | enable_libtool_unsupported | |
847 | with_optim | |
848 | enable_debug | |
849 | enable_debug_guards | |
850 | enable_debug_printfs | |
851 | enable_unit_tests | |
852 | with_archflags | |
853 | with_ldarchflags | |
854 | enable_relro | |
f518bf7e | 855 | enable_sanitizer |
d9f356c5 MS |
856 | with_domainsocket |
857 | enable_gssapi | |
858 | with_gssservicename | |
859 | enable_threads | |
860 | enable_ssl | |
861 | enable_cdsassl | |
862 | enable_gnutls | |
863 | enable_pam | |
864 | with_pam_module | |
865 | enable_largefile | |
866 | enable_avahi | |
867 | enable_dnssd | |
868 | with_dnssd_libs | |
869 | with_dnssd_includes | |
870 | enable_launchd | |
871 | enable_systemd | |
872 | with_systemd | |
441de8b2 | 873 | enable_upstart |
d9f356c5 MS |
874 | with_smfmanifestdir |
875 | with_rcdir | |
876 | with_rclevels | |
877 | with_rcstart | |
878 | with_rcstop | |
879 | with_xinetd | |
880 | with_languages | |
881 | with_bundledir | |
171c38f2 | 882 | with_bundlelang |
d4a895f8 | 883 | with_exe_file_perm |
d9f356c5 MS |
884 | with_config_file_perm |
885 | with_cupsd_file_perm | |
886 | with_log_file_perm | |
887 | with_fatal_errors | |
888 | with_log_level | |
889 | with_access_log_level | |
890 | enable_page_logging | |
891 | enable_browsing | |
892 | with_local_protocols | |
893 | enable_default_shared | |
894 | with_cups_user | |
895 | with_cups_group | |
896 | with_system_groups | |
897 | with_printcap | |
898 | with_lpdconfigfile | |
899 | with_smbconfigfile | |
900 | with_max_copies | |
901 | enable_raw_printing | |
902 | with_snmp_address | |
903 | with_snmp_community | |
904 | with_ipp_port | |
905 | enable_webif | |
d9f356c5 MS |
906 | ' |
907 | ac_precious_vars='build_alias | |
908 | host_alias | |
909 | target_alias | |
910 | CC | |
911 | CFLAGS | |
912 | LDFLAGS | |
913 | LIBS | |
914 | CPPFLAGS | |
48cc3892 | 915 | CPP |
d9f356c5 MS |
916 | CXX |
917 | CXXFLAGS | |
48cc3892 | 918 | CCC' |
d9f356c5 MS |
919 | |
920 | ||
921 | # Initialize some variables set by options. | |
922 | ac_init_help= | |
923 | ac_init_version=false | |
924 | ac_unrecognized_opts= | |
925 | ac_unrecognized_sep= | |
926 | # The variables have the same names as the options, with | |
927 | # dashes changed to underlines. | |
928 | cache_file=/dev/null | |
929 | exec_prefix=NONE | |
930 | no_create= | |
931 | no_recursion= | |
932 | prefix=NONE | |
933 | program_prefix=NONE | |
934 | program_suffix=NONE | |
935 | program_transform_name=s,x,x, | |
936 | silent= | |
937 | site= | |
938 | srcdir= | |
939 | verbose= | |
940 | x_includes=NONE | |
941 | x_libraries=NONE | |
942 | ||
943 | # Installation directory options. | |
944 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
945 | # and all the variables that are supposed to be based on exec_prefix | |
946 | # by default will actually change. | |
947 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
948 | # (The list follows the same order as the GNU Coding Standards.) | |
949 | bindir='${exec_prefix}/bin' | |
950 | sbindir='${exec_prefix}/sbin' | |
951 | libexecdir='${exec_prefix}/libexec' | |
952 | datarootdir='${prefix}/share' | |
953 | datadir='${datarootdir}' | |
954 | sysconfdir='${prefix}/etc' | |
955 | sharedstatedir='${prefix}/com' | |
956 | localstatedir='${prefix}/var' | |
957 | includedir='${prefix}/include' | |
958 | oldincludedir='/usr/include' | |
959 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
960 | infodir='${datarootdir}/info' | |
961 | htmldir='${docdir}' | |
962 | dvidir='${docdir}' | |
963 | pdfdir='${docdir}' | |
964 | psdir='${docdir}' | |
965 | libdir='${exec_prefix}/lib' | |
966 | localedir='${datarootdir}/locale' | |
967 | mandir='${datarootdir}/man' | |
968 | ||
969 | ac_prev= | |
970 | ac_dashdash= | |
971 | for ac_option | |
972 | do | |
973 | # If the previous option needs an argument, assign it. | |
974 | if test -n "$ac_prev"; then | |
975 | eval $ac_prev=\$ac_option | |
976 | ac_prev= | |
977 | continue | |
978 | fi | |
979 | ||
980 | case $ac_option in | |
981 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
982 | *=) ac_optarg= ;; | |
983 | *) ac_optarg=yes ;; | |
984 | esac | |
985 | ||
986 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
987 | ||
988 | case $ac_dashdash$ac_option in | |
989 | --) | |
990 | ac_dashdash=yes ;; | |
991 | ||
992 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
993 | ac_prev=bindir ;; | |
994 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
995 | bindir=$ac_optarg ;; | |
996 | ||
997 | -build | --build | --buil | --bui | --bu) | |
998 | ac_prev=build_alias ;; | |
999 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1000 | build_alias=$ac_optarg ;; | |
1001 | ||
1002 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1003 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1004 | ac_prev=cache_file ;; | |
1005 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1006 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1007 | cache_file=$ac_optarg ;; | |
1008 | ||
1009 | --config-cache | -C) | |
1010 | cache_file=config.cache ;; | |
1011 | ||
1012 | -datadir | --datadir | --datadi | --datad) | |
1013 | ac_prev=datadir ;; | |
1014 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1015 | datadir=$ac_optarg ;; | |
1016 | ||
1017 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1018 | | --dataroo | --dataro | --datar) | |
1019 | ac_prev=datarootdir ;; | |
1020 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1021 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1022 | datarootdir=$ac_optarg ;; | |
1023 | ||
1024 | -disable-* | --disable-*) | |
1025 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1026 | # Reject names that are not valid shell variable names. | |
1027 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1028 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1029 | ac_useropt_orig=$ac_useropt | |
1030 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1031 | case $ac_user_opts in | |
1032 | *" | |
1033 | "enable_$ac_useropt" | |
1034 | "*) ;; | |
1035 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1036 | ac_unrecognized_sep=', ';; | |
1037 | esac | |
1038 | eval enable_$ac_useropt=no ;; | |
1039 | ||
1040 | -docdir | --docdir | --docdi | --doc | --do) | |
1041 | ac_prev=docdir ;; | |
1042 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1043 | docdir=$ac_optarg ;; | |
1044 | ||
1045 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1046 | ac_prev=dvidir ;; | |
1047 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1048 | dvidir=$ac_optarg ;; | |
1049 | ||
1050 | -enable-* | --enable-*) | |
1051 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1052 | # Reject names that are not valid shell variable names. | |
1053 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1054 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1055 | ac_useropt_orig=$ac_useropt | |
1056 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1057 | case $ac_user_opts in | |
1058 | *" | |
1059 | "enable_$ac_useropt" | |
1060 | "*) ;; | |
1061 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1062 | ac_unrecognized_sep=', ';; | |
1063 | esac | |
1064 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1065 | ||
1066 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1067 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1068 | | --exec | --exe | --ex) | |
1069 | ac_prev=exec_prefix ;; | |
1070 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1071 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1072 | | --exec=* | --exe=* | --ex=*) | |
1073 | exec_prefix=$ac_optarg ;; | |
1074 | ||
1075 | -gas | --gas | --ga | --g) | |
1076 | # Obsolete; use --with-gas. | |
1077 | with_gas=yes ;; | |
1078 | ||
1079 | -help | --help | --hel | --he | -h) | |
1080 | ac_init_help=long ;; | |
1081 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1082 | ac_init_help=recursive ;; | |
1083 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1084 | ac_init_help=short ;; | |
1085 | ||
1086 | -host | --host | --hos | --ho) | |
1087 | ac_prev=host_alias ;; | |
1088 | -host=* | --host=* | --hos=* | --ho=*) | |
1089 | host_alias=$ac_optarg ;; | |
1090 | ||
1091 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1092 | ac_prev=htmldir ;; | |
1093 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1094 | | --ht=*) | |
1095 | htmldir=$ac_optarg ;; | |
1096 | ||
1097 | -includedir | --includedir | --includedi | --included | --include \ | |
1098 | | --includ | --inclu | --incl | --inc) | |
1099 | ac_prev=includedir ;; | |
1100 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1101 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1102 | includedir=$ac_optarg ;; | |
1103 | ||
1104 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1105 | ac_prev=infodir ;; | |
1106 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1107 | infodir=$ac_optarg ;; | |
1108 | ||
1109 | -libdir | --libdir | --libdi | --libd) | |
1110 | ac_prev=libdir ;; | |
1111 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1112 | libdir=$ac_optarg ;; | |
1113 | ||
1114 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1115 | | --libexe | --libex | --libe) | |
1116 | ac_prev=libexecdir ;; | |
1117 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1118 | | --libexe=* | --libex=* | --libe=*) | |
1119 | libexecdir=$ac_optarg ;; | |
1120 | ||
1121 | -localedir | --localedir | --localedi | --localed | --locale) | |
1122 | ac_prev=localedir ;; | |
1123 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1124 | localedir=$ac_optarg ;; | |
1125 | ||
1126 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1127 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1128 | ac_prev=localstatedir ;; | |
1129 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1130 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1131 | localstatedir=$ac_optarg ;; | |
1132 | ||
1133 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1134 | ac_prev=mandir ;; | |
1135 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1136 | mandir=$ac_optarg ;; | |
1137 | ||
1138 | -nfp | --nfp | --nf) | |
1139 | # Obsolete; use --without-fp. | |
1140 | with_fp=no ;; | |
1141 | ||
1142 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1143 | | --no-cr | --no-c | -n) | |
1144 | no_create=yes ;; | |
1145 | ||
1146 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1147 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1148 | no_recursion=yes ;; | |
1149 | ||
1150 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1151 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1152 | | --oldin | --oldi | --old | --ol | --o) | |
1153 | ac_prev=oldincludedir ;; | |
1154 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1155 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1156 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1157 | oldincludedir=$ac_optarg ;; | |
1158 | ||
1159 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1160 | ac_prev=prefix ;; | |
1161 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1162 | prefix=$ac_optarg ;; | |
1163 | ||
1164 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1165 | | --program-pre | --program-pr | --program-p) | |
1166 | ac_prev=program_prefix ;; | |
1167 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1168 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1169 | program_prefix=$ac_optarg ;; | |
1170 | ||
1171 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1172 | | --program-suf | --program-su | --program-s) | |
1173 | ac_prev=program_suffix ;; | |
1174 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1175 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1176 | program_suffix=$ac_optarg ;; | |
1177 | ||
1178 | -program-transform-name | --program-transform-name \ | |
1179 | | --program-transform-nam | --program-transform-na \ | |
1180 | | --program-transform-n | --program-transform- \ | |
1181 | | --program-transform | --program-transfor \ | |
1182 | | --program-transfo | --program-transf \ | |
1183 | | --program-trans | --program-tran \ | |
1184 | | --progr-tra | --program-tr | --program-t) | |
1185 | ac_prev=program_transform_name ;; | |
1186 | -program-transform-name=* | --program-transform-name=* \ | |
1187 | | --program-transform-nam=* | --program-transform-na=* \ | |
1188 | | --program-transform-n=* | --program-transform-=* \ | |
1189 | | --program-transform=* | --program-transfor=* \ | |
1190 | | --program-transfo=* | --program-transf=* \ | |
1191 | | --program-trans=* | --program-tran=* \ | |
1192 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1193 | program_transform_name=$ac_optarg ;; | |
1194 | ||
1195 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1196 | ac_prev=pdfdir ;; | |
1197 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1198 | pdfdir=$ac_optarg ;; | |
1199 | ||
1200 | -psdir | --psdir | --psdi | --psd | --ps) | |
1201 | ac_prev=psdir ;; | |
1202 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1203 | psdir=$ac_optarg ;; | |
1204 | ||
1205 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1206 | | -silent | --silent | --silen | --sile | --sil) | |
1207 | silent=yes ;; | |
1208 | ||
1209 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1210 | ac_prev=sbindir ;; | |
1211 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1212 | | --sbi=* | --sb=*) | |
1213 | sbindir=$ac_optarg ;; | |
1214 | ||
1215 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1216 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1217 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1218 | | --sha | --sh) | |
1219 | ac_prev=sharedstatedir ;; | |
1220 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1221 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1222 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1223 | | --sha=* | --sh=*) | |
1224 | sharedstatedir=$ac_optarg ;; | |
1225 | ||
1226 | -site | --site | --sit) | |
1227 | ac_prev=site ;; | |
1228 | -site=* | --site=* | --sit=*) | |
1229 | site=$ac_optarg ;; | |
1230 | ||
1231 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1232 | ac_prev=srcdir ;; | |
1233 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1234 | srcdir=$ac_optarg ;; | |
1235 | ||
1236 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1237 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1238 | ac_prev=sysconfdir ;; | |
1239 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1240 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1241 | sysconfdir=$ac_optarg ;; | |
1242 | ||
1243 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1244 | ac_prev=target_alias ;; | |
1245 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1246 | target_alias=$ac_optarg ;; | |
1247 | ||
1248 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1249 | verbose=yes ;; | |
1250 | ||
1251 | -version | --version | --versio | --versi | --vers | -V) | |
1252 | ac_init_version=: ;; | |
1253 | ||
1254 | -with-* | --with-*) | |
1255 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1256 | # Reject names that are not valid shell variable names. | |
1257 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1258 | as_fn_error $? "invalid package name: $ac_useropt" | |
1259 | ac_useropt_orig=$ac_useropt | |
1260 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1261 | case $ac_user_opts in | |
1262 | *" | |
1263 | "with_$ac_useropt" | |
1264 | "*) ;; | |
1265 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1266 | ac_unrecognized_sep=', ';; | |
1267 | esac | |
1268 | eval with_$ac_useropt=\$ac_optarg ;; | |
1269 | ||
1270 | -without-* | --without-*) | |
1271 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1272 | # Reject names that are not valid shell variable names. | |
1273 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1274 | as_fn_error $? "invalid package name: $ac_useropt" | |
1275 | ac_useropt_orig=$ac_useropt | |
1276 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1277 | case $ac_user_opts in | |
1278 | *" | |
1279 | "with_$ac_useropt" | |
1280 | "*) ;; | |
1281 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1282 | ac_unrecognized_sep=', ';; | |
1283 | esac | |
1284 | eval with_$ac_useropt=no ;; | |
1285 | ||
1286 | --x) | |
1287 | # Obsolete; use --with-x. | |
1288 | with_x=yes ;; | |
1289 | ||
1290 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1291 | | --x-incl | --x-inc | --x-in | --x-i) | |
1292 | ac_prev=x_includes ;; | |
1293 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1294 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1295 | x_includes=$ac_optarg ;; | |
1296 | ||
1297 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1298 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1299 | ac_prev=x_libraries ;; | |
1300 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1301 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1302 | x_libraries=$ac_optarg ;; | |
1303 | ||
1304 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1305 | Try \`$0 --help' for more information" | |
1306 | ;; | |
1307 | ||
1308 | *=*) | |
1309 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1310 | # Reject names that are not valid shell variable names. | |
1311 | case $ac_envvar in #( | |
1312 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1313 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1314 | esac | |
1315 | eval $ac_envvar=\$ac_optarg | |
1316 | export $ac_envvar ;; | |
1317 | ||
1318 | *) | |
1319 | # FIXME: should be removed in autoconf 3.0. | |
1320 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1321 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1322 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1323 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1324 | ;; | |
1325 | ||
1326 | esac | |
1327 | done | |
1328 | ||
1329 | if test -n "$ac_prev"; then | |
1330 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1331 | as_fn_error $? "missing argument to $ac_option" | |
1332 | fi | |
1333 | ||
1334 | if test -n "$ac_unrecognized_opts"; then | |
1335 | case $enable_option_checking in | |
1336 | no) ;; | |
1337 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1338 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1339 | esac | |
1340 | fi | |
1341 | ||
1342 | # Check all directory arguments for consistency. | |
1343 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1344 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1345 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1346 | libdir localedir mandir | |
1347 | do | |
1348 | eval ac_val=\$$ac_var | |
1349 | # Remove trailing slashes. | |
1350 | case $ac_val in | |
1351 | */ ) | |
1352 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1353 | eval $ac_var=\$ac_val;; | |
1354 | esac | |
1355 | # Be sure to have absolute directory names. | |
1356 | case $ac_val in | |
1357 | [\\/$]* | ?:[\\/]* ) continue;; | |
1358 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1359 | esac | |
1360 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1361 | done | |
1362 | ||
1363 | # There might be people who depend on the old broken behavior: `$host' | |
1364 | # used to hold the argument of --host etc. | |
1365 | # FIXME: To remove some day. | |
1366 | build=$build_alias | |
1367 | host=$host_alias | |
1368 | target=$target_alias | |
1369 | ||
1370 | # FIXME: To remove some day. | |
1371 | if test "x$host_alias" != x; then | |
1372 | if test "x$build_alias" = x; then | |
1373 | cross_compiling=maybe | |
971a6b5d MS |
1374 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1375 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
d9f356c5 MS |
1376 | elif test "x$build_alias" != "x$host_alias"; then |
1377 | cross_compiling=yes | |
1378 | fi | |
1379 | fi | |
1380 | ||
1381 | ac_tool_prefix= | |
1382 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1383 | ||
1384 | test "$silent" = yes && exec 6>/dev/null | |
1385 | ||
1386 | ||
1387 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1388 | ac_ls_di=`ls -di .` && | |
1389 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1390 | as_fn_error $? "working directory cannot be determined" | |
1391 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1392 | as_fn_error $? "pwd does not report name of working directory" | |
1393 | ||
1394 | ||
1395 | # Find the source files, if location was not specified. | |
1396 | if test -z "$srcdir"; then | |
1397 | ac_srcdir_defaulted=yes | |
1398 | # Try the directory containing this script, then the parent directory. | |
1399 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1400 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1401 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1402 | X"$as_myself" : 'X\(//\)$' \| \ | |
1403 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1404 | $as_echo X"$as_myself" | | |
1405 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1406 | s//\1/ | |
1407 | q | |
1408 | } | |
1409 | /^X\(\/\/\)[^/].*/{ | |
1410 | s//\1/ | |
1411 | q | |
1412 | } | |
1413 | /^X\(\/\/\)$/{ | |
1414 | s//\1/ | |
1415 | q | |
1416 | } | |
1417 | /^X\(\/\).*/{ | |
1418 | s//\1/ | |
1419 | q | |
1420 | } | |
1421 | s/.*/./; q'` | |
1422 | srcdir=$ac_confdir | |
1423 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1424 | srcdir=.. | |
1425 | fi | |
1426 | else | |
1427 | ac_srcdir_defaulted=no | |
1428 | fi | |
1429 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1430 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1431 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1432 | fi | |
1433 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1434 | ac_abs_confdir=`( | |
1435 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1436 | pwd)` | |
1437 | # When building in place, set srcdir=. | |
1438 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1439 | srcdir=. | |
1440 | fi | |
1441 | # Remove unnecessary trailing slashes from srcdir. | |
1442 | # Double slashes in file names in object file debugging info | |
1443 | # mess up M-x gdb in Emacs. | |
1444 | case $srcdir in | |
1445 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1446 | esac | |
1447 | for ac_var in $ac_precious_vars; do | |
1448 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1449 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1450 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1451 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1452 | done | |
1453 | ||
1454 | # | |
1455 | # Report the --help message. | |
1456 | # | |
1457 | if test "$ac_init_help" = "long"; then | |
1458 | # Omit some internal or obsolete options to make the list less imposing. | |
1459 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1460 | cat <<_ACEOF | |
8a763079 | 1461 | \`configure' configures CUPS 2.3b7 to adapt to many kinds of systems. |
d9f356c5 MS |
1462 | |
1463 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1464 | ||
1465 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1466 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1467 | ||
1468 | Defaults for the options are specified in brackets. | |
1469 | ||
1470 | Configuration: | |
1471 | -h, --help display this help and exit | |
1472 | --help=short display options specific to this package | |
1473 | --help=recursive display the short help of all the included packages | |
1474 | -V, --version display version information and exit | |
1475 | -q, --quiet, --silent do not print \`checking ...' messages | |
1476 | --cache-file=FILE cache test results in FILE [disabled] | |
1477 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1478 | -n, --no-create do not create output files | |
1479 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1480 | ||
1481 | Installation directories: | |
1482 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1483 | [$ac_default_prefix] | |
1484 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1485 | [PREFIX] | |
1486 | ||
1487 | By default, \`make install' will install all the files in | |
1488 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1489 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1490 | for instance \`--prefix=\$HOME'. | |
1491 | ||
1492 | For better control, use the options below. | |
1493 | ||
1494 | Fine tuning of the installation directories: | |
1495 | --bindir=DIR user executables [EPREFIX/bin] | |
1496 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1497 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1498 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1499 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1500 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1501 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1502 | --includedir=DIR C header files [PREFIX/include] | |
1503 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1504 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1505 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1506 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1507 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1508 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1509 | --docdir=DIR documentation root [DATAROOTDIR/doc/cups] | |
1510 | --htmldir=DIR html documentation [DOCDIR] | |
1511 | --dvidir=DIR dvi documentation [DOCDIR] | |
1512 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1513 | --psdir=DIR ps documentation [DOCDIR] | |
1514 | _ACEOF | |
1515 | ||
1516 | cat <<\_ACEOF | |
105922ec MS |
1517 | |
1518 | System types: | |
1519 | --build=BUILD configure for building on BUILD [guessed] | |
1520 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
d9f356c5 MS |
1521 | _ACEOF |
1522 | fi | |
1523 | ||
1524 | if test -n "$ac_init_help"; then | |
1525 | case $ac_init_help in | |
8a763079 | 1526 | short | recursive ) echo "Configuration of CUPS 2.3b7:";; |
d9f356c5 MS |
1527 | esac |
1528 | cat <<\_ACEOF | |
1529 | ||
1530 | Optional Features: | |
1531 | --disable-option-checking ignore unrecognized --enable/--with options | |
1532 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1533 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1534 | --enable-static install static libraries | |
1535 | --enable-mallinfo build with malloc debug logging | |
1536 | --enable-libpaper build with libpaper support | |
1537 | --enable-libusb use libusb for USB printing | |
1538 | --enable-tcp-wrappers use libwrap for TCP wrappers support | |
1539 | --enable-acl build with POSIX ACL support | |
6eda776e | 1540 | --disable-dbus build without DBUS support |
d9f356c5 | 1541 | --disable-shared do not create shared libraries |
a621d151 | 1542 | --enable-libtool-unsupported=/path/to/libtool |
d9f356c5 MS |
1543 | build with libtool (UNSUPPORTED!) |
1544 | --enable-debug build with debugging symbols | |
1545 | --enable-debug-guards build with memory allocation guards | |
1546 | --enable-debug-printfs build with CUPS_DEBUG_LOG support | |
1547 | --enable-unit-tests build and run unit tests | |
1548 | --enable-relro build with the GCC relro option | |
f518bf7e | 1549 | --enable-sanitizer build with AddressSanitizer |
d9f356c5 MS |
1550 | --disable-gssapi disable GSSAPI support |
1551 | --disable-threads disable multi-threading support | |
1552 | --disable-ssl disable SSL/TLS support | |
1553 | --enable-cdsassl use CDSA for SSL/TLS support, default=first | |
1554 | --enable-gnutls use GNU TLS for SSL/TLS support, default=second | |
1555 | --disable-pam disable PAM support | |
1556 | --disable-largefile omit support for large files | |
1557 | --disable-avahi disable DNS Service Discovery support using Avahi | |
1558 | --disable-dnssd disable DNS Service Discovery support using mDNSResponder | |
1559 | --disable-launchd disable launchd support | |
1560 | --disable-systemd disable systemd support | |
6eda776e | 1561 | --enable-upstart enable upstart support |
d9f356c5 MS |
1562 | --enable-page-logging enable page_log by default |
1563 | --disable-browsing disable Browsing by default | |
1564 | --disable-default-shared | |
1565 | disable DefaultShared by default | |
1566 | --disable-raw-printing do not allow raw printing by default | |
8072030b | 1567 | --enable-webif enable the web interface by default, default=no for macOS |
d9f356c5 MS |
1568 | |
1569 | Optional Packages: | |
1570 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1571 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1572 | --with-cups-build set "cups-config --build" string | |
1573 | --with-dbusdir set DBUS configuration directory | |
1574 | --with-adminkey set the default SystemAuthKey value | |
1575 | --with-operkey set the default operator @AUTHKEY value | |
1576 | --with-components set components to build: | |
1577 | - "all" (default) builds everything | |
1578 | - "core" builds libcups and ipptool | |
171c38f2 | 1579 | - "libcups" builds just libcups |
58b64dbb | 1580 | - "libcupslite" builds just libcups without driver support |
d9f356c5 MS |
1581 | --with-privateinclude set path for private include files, default=none |
1582 | --with-lpdconfig set URI for LPD config file | |
1583 | --with-smbconfig set URI for Samba config file | |
1584 | --with-cachedir set path for cache files | |
1585 | --with-icondir set path for application icons | |
1586 | --with-menudir set path for application menus | |
1587 | --with-docdir set path for documentation | |
1588 | --with-fontpath set font path for pstoraster | |
1589 | --with-logdir set path for log files | |
1590 | --with-rundir set transient run-time state directory | |
1591 | --with-optim set optimization flags | |
1592 | --with-archflags set default architecture flags | |
1593 | --with-ldarchflags set program architecture flags | |
1594 | --with-domainsocket set unix domain socket name | |
1595 | --with-gssservicename set default gss service name | |
6eda776e | 1596 | --with-pam-module set the PAM module to use |
d9f356c5 MS |
1597 | --with-dnssd-libs set directory for DNS Service Discovery library |
1598 | --with-dnssd-includes set directory for DNS Service Discovery includes | |
1599 | --with-systemd set directory for systemd service files | |
1600 | --with-smfmanifestdir set path for Solaris SMF manifest | |
1601 | --with-rcdir set path for rc scripts | |
1602 | --with-rclevels set run levels for rc scripts | |
1603 | --with-rcstart set start number for rc scripts | |
1604 | --with-rcstop set stop number for rc scripts | |
1605 | --with-xinetd set path for xinetd config files | |
1606 | --with-languages set installed languages, default=all | |
171c38f2 MS |
1607 | --with-bundledir set localization bundle directory |
1608 | --with-bundlelang set localization bundle base language (English or en) | |
6eda776e | 1609 | --with-exe-file-perm set default executable permissions value, default=0555 |
d9f356c5 MS |
1610 | --with-config-file-perm set default ConfigFilePerm value, default=0640 |
1611 | --with-cupsd-file-perm set default cupsd permissions, default=0500 | |
1612 | --with-log-file-perm set default LogFilePerm value, default=0644 | |
1613 | --with-fatal-errors set default FatalErrors value, default=config | |
1614 | --with-log-level set default LogLevel value, default=warn | |
1615 | --with-access-log-level set default AccessLogLevel value, default=none | |
1616 | --with-local-protocols set default BrowseLocalProtocols, default="" | |
1617 | --with-cups-user set default user for CUPS | |
1618 | --with-cups-group set default group for CUPS | |
1619 | --with-system-groups set default system groups for CUPS | |
1620 | --with-printcap set default printcap file | |
1621 | --with-lpdconfigfile set default LPDConfigFile URI | |
1622 | --with-smbconfigfile set default SMBConfigFile URI | |
1623 | --with-max-copies set default max copies value, default=9999 | |
1624 | --with-snmp-address set SNMP query address, default=auto | |
1625 | --with-snmp-community set SNMP community, default=public | |
1626 | --with-ipp-port set port number for IPP, default=631 | |
d9f356c5 MS |
1627 | |
1628 | Some influential environment variables: | |
1629 | CC C compiler command | |
1630 | CFLAGS C compiler flags | |
1631 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1632 | nonstandard directory <lib dir> | |
1633 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1634 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1635 | you have headers in a nonstandard directory <include dir> | |
48cc3892 | 1636 | CPP C preprocessor |
d9f356c5 MS |
1637 | CXX C++ compiler command |
1638 | CXXFLAGS C++ compiler flags | |
1639 | ||
1640 | Use these variables to override the choices made by `configure' or to help | |
1641 | it to find libraries and programs with nonstandard names/locations. | |
1642 | ||
24343173 | 1643 | Report bugs to <https://github.com/apple/cups/issues>. |
d9f356c5 MS |
1644 | CUPS home page: <https://www.cups.org/>. |
1645 | _ACEOF | |
1646 | ac_status=$? | |
1647 | fi | |
1648 | ||
1649 | if test "$ac_init_help" = "recursive"; then | |
1650 | # If there are subdirs, report their specific --help. | |
1651 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1652 | test -d "$ac_dir" || | |
1653 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1654 | continue | |
1655 | ac_builddir=. | |
1656 | ||
1657 | case "$ac_dir" in | |
1658 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1659 | *) | |
1660 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1661 | # A ".." for each directory in $ac_dir_suffix. | |
1662 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1663 | case $ac_top_builddir_sub in | |
1664 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1665 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1666 | esac ;; | |
1667 | esac | |
1668 | ac_abs_top_builddir=$ac_pwd | |
1669 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1670 | # for backward compatibility: | |
1671 | ac_top_builddir=$ac_top_build_prefix | |
1672 | ||
1673 | case $srcdir in | |
1674 | .) # We are building in place. | |
1675 | ac_srcdir=. | |
1676 | ac_top_srcdir=$ac_top_builddir_sub | |
1677 | ac_abs_top_srcdir=$ac_pwd ;; | |
1678 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1679 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1680 | ac_top_srcdir=$srcdir | |
1681 | ac_abs_top_srcdir=$srcdir ;; | |
1682 | *) # Relative name. | |
1683 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1684 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1685 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1686 | esac | |
1687 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1688 | ||
1689 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1690 | # Check for guested configure. | |
1691 | if test -f "$ac_srcdir/configure.gnu"; then | |
1692 | echo && | |
1693 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1694 | elif test -f "$ac_srcdir/configure"; then | |
1695 | echo && | |
1696 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1697 | else | |
1698 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1699 | fi || ac_status=$? | |
1700 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1701 | done | |
1702 | fi | |
1703 | ||
1704 | test -n "$ac_init_help" && exit $ac_status | |
1705 | if $ac_init_version; then | |
1706 | cat <<\_ACEOF | |
8a763079 | 1707 | CUPS configure 2.3b7 |
971a6b5d | 1708 | generated by GNU Autoconf 2.68 |
d9f356c5 | 1709 | |
971a6b5d | 1710 | Copyright (C) 2010 Free Software Foundation, Inc. |
d9f356c5 MS |
1711 | This configure script is free software; the Free Software Foundation |
1712 | gives unlimited permission to copy, distribute and modify it. | |
1713 | _ACEOF | |
1714 | exit | |
1715 | fi | |
1716 | ||
1717 | ## ------------------------ ## | |
1718 | ## Autoconf initialization. ## | |
1719 | ## ------------------------ ## | |
1720 | ||
1721 | # ac_fn_c_try_compile LINENO | |
1722 | # -------------------------- | |
1723 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1724 | ac_fn_c_try_compile () | |
1725 | { | |
1726 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1727 | rm -f conftest.$ac_objext | |
1728 | if { { ac_try="$ac_compile" | |
1729 | case "(($ac_try" in | |
1730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1731 | *) ac_try_echo=$ac_try;; | |
1732 | esac | |
1733 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1734 | $as_echo "$ac_try_echo"; } >&5 | |
1735 | (eval "$ac_compile") 2>conftest.err | |
1736 | ac_status=$? | |
1737 | if test -s conftest.err; then | |
1738 | grep -v '^ *+' conftest.err >conftest.er1 | |
1739 | cat conftest.er1 >&5 | |
1740 | mv -f conftest.er1 conftest.err | |
1741 | fi | |
1742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1743 | test $ac_status = 0; } && { | |
1744 | test -z "$ac_c_werror_flag" || | |
1745 | test ! -s conftest.err | |
1746 | } && test -s conftest.$ac_objext; then : | |
1747 | ac_retval=0 | |
1748 | else | |
1749 | $as_echo "$as_me: failed program was:" >&5 | |
1750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1751 | ||
1752 | ac_retval=1 | |
1753 | fi | |
1754 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1755 | as_fn_set_status $ac_retval | |
1756 | ||
1757 | } # ac_fn_c_try_compile | |
1758 | ||
48cc3892 MS |
1759 | # ac_fn_c_try_cpp LINENO |
1760 | # ---------------------- | |
1761 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1762 | ac_fn_c_try_cpp () | |
1763 | { | |
1764 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1765 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1766 | case "(($ac_try" in | |
1767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1768 | *) ac_try_echo=$ac_try;; | |
1769 | esac | |
1770 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1771 | $as_echo "$ac_try_echo"; } >&5 | |
1772 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1773 | ac_status=$? | |
1774 | if test -s conftest.err; then | |
1775 | grep -v '^ *+' conftest.err >conftest.er1 | |
1776 | cat conftest.er1 >&5 | |
1777 | mv -f conftest.er1 conftest.err | |
1778 | fi | |
1779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1780 | test $ac_status = 0; } > conftest.i && { | |
1781 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1782 | test ! -s conftest.err | |
1783 | }; then : | |
1784 | ac_retval=0 | |
1785 | else | |
1786 | $as_echo "$as_me: failed program was:" >&5 | |
1787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1788 | ||
1789 | ac_retval=1 | |
1790 | fi | |
1791 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1792 | as_fn_set_status $ac_retval | |
1793 | ||
1794 | } # ac_fn_c_try_cpp | |
1795 | ||
d9f356c5 MS |
1796 | # ac_fn_cxx_try_compile LINENO |
1797 | # ---------------------------- | |
1798 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1799 | ac_fn_cxx_try_compile () | |
1800 | { | |
1801 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1802 | rm -f conftest.$ac_objext | |
1803 | if { { ac_try="$ac_compile" | |
1804 | case "(($ac_try" in | |
1805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1806 | *) ac_try_echo=$ac_try;; | |
1807 | esac | |
1808 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1809 | $as_echo "$ac_try_echo"; } >&5 | |
1810 | (eval "$ac_compile") 2>conftest.err | |
1811 | ac_status=$? | |
1812 | if test -s conftest.err; then | |
1813 | grep -v '^ *+' conftest.err >conftest.er1 | |
1814 | cat conftest.er1 >&5 | |
1815 | mv -f conftest.er1 conftest.err | |
1816 | fi | |
1817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1818 | test $ac_status = 0; } && { | |
1819 | test -z "$ac_cxx_werror_flag" || | |
1820 | test ! -s conftest.err | |
1821 | } && test -s conftest.$ac_objext; then : | |
1822 | ac_retval=0 | |
1823 | else | |
1824 | $as_echo "$as_me: failed program was:" >&5 | |
1825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1826 | ||
1827 | ac_retval=1 | |
1828 | fi | |
1829 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1830 | as_fn_set_status $ac_retval | |
1831 | ||
1832 | } # ac_fn_cxx_try_compile | |
1833 | ||
1834 | # ac_fn_c_try_link LINENO | |
1835 | # ----------------------- | |
1836 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1837 | ac_fn_c_try_link () | |
1838 | { | |
1839 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1840 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1841 | if { { ac_try="$ac_link" | |
1842 | case "(($ac_try" in | |
1843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1844 | *) ac_try_echo=$ac_try;; | |
1845 | esac | |
1846 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1847 | $as_echo "$ac_try_echo"; } >&5 | |
1848 | (eval "$ac_link") 2>conftest.err | |
1849 | ac_status=$? | |
1850 | if test -s conftest.err; then | |
1851 | grep -v '^ *+' conftest.err >conftest.er1 | |
1852 | cat conftest.er1 >&5 | |
1853 | mv -f conftest.er1 conftest.err | |
1854 | fi | |
1855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1856 | test $ac_status = 0; } && { | |
1857 | test -z "$ac_c_werror_flag" || | |
1858 | test ! -s conftest.err | |
1859 | } && test -s conftest$ac_exeext && { | |
1860 | test "$cross_compiling" = yes || | |
971a6b5d | 1861 | $as_test_x conftest$ac_exeext |
d9f356c5 MS |
1862 | }; then : |
1863 | ac_retval=0 | |
1864 | else | |
1865 | $as_echo "$as_me: failed program was:" >&5 | |
1866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1867 | ||
1868 | ac_retval=1 | |
1869 | fi | |
1870 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1871 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1872 | # interfere with the next link command; also delete a directory that is | |
1873 | # left behind by Apple's compiler. We do this before executing the actions. | |
1874 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1875 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1876 | as_fn_set_status $ac_retval | |
1877 | ||
1878 | } # ac_fn_c_try_link | |
1879 | ||
1880 | # ac_fn_c_try_run LINENO | |
1881 | # ---------------------- | |
1882 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1883 | # that executables *can* be run. | |
1884 | ac_fn_c_try_run () | |
1885 | { | |
1886 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1887 | if { { ac_try="$ac_link" | |
1888 | case "(($ac_try" in | |
1889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1890 | *) ac_try_echo=$ac_try;; | |
1891 | esac | |
1892 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1893 | $as_echo "$ac_try_echo"; } >&5 | |
1894 | (eval "$ac_link") 2>&5 | |
1895 | ac_status=$? | |
1896 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1897 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1898 | { { case "(($ac_try" in | |
1899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1900 | *) ac_try_echo=$ac_try;; | |
1901 | esac | |
1902 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1903 | $as_echo "$ac_try_echo"; } >&5 | |
1904 | (eval "$ac_try") 2>&5 | |
1905 | ac_status=$? | |
1906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1907 | test $ac_status = 0; }; }; then : | |
1908 | ac_retval=0 | |
1909 | else | |
1910 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1911 | $as_echo "$as_me: failed program was:" >&5 | |
1912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1913 | ||
1914 | ac_retval=$ac_status | |
1915 | fi | |
1916 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1917 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1918 | as_fn_set_status $ac_retval | |
1919 | ||
1920 | } # ac_fn_c_try_run | |
1921 | ||
1922 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1923 | # ------------------------------------------------------- | |
1924 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1925 | # the include files in INCLUDES and setting the cache variable VAR | |
1926 | # accordingly. | |
1927 | ac_fn_c_check_header_mongrel () | |
1928 | { | |
1929 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1930 | if eval \${$3+:} false; then : | |
1931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1932 | $as_echo_n "checking for $2... " >&6; } | |
1933 | if eval \${$3+:} false; then : | |
1934 | $as_echo_n "(cached) " >&6 | |
1935 | fi | |
1936 | eval ac_res=\$$3 | |
1937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1938 | $as_echo "$ac_res" >&6; } | |
1939 | else | |
1940 | # Is the header compilable? | |
1941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1942 | $as_echo_n "checking $2 usability... " >&6; } | |
1943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1944 | /* end confdefs.h. */ | |
1945 | $4 | |
1946 | #include <$2> | |
1947 | _ACEOF | |
1948 | if ac_fn_c_try_compile "$LINENO"; then : | |
1949 | ac_header_compiler=yes | |
1950 | else | |
1951 | ac_header_compiler=no | |
1952 | fi | |
1953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1955 | $as_echo "$ac_header_compiler" >&6; } | |
1956 | ||
1957 | # Is the header present? | |
1958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1959 | $as_echo_n "checking $2 presence... " >&6; } | |
1960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1961 | /* end confdefs.h. */ | |
1962 | #include <$2> | |
1963 | _ACEOF | |
1964 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1965 | ac_header_preproc=yes | |
1966 | else | |
1967 | ac_header_preproc=no | |
1968 | fi | |
1969 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1971 | $as_echo "$ac_header_preproc" >&6; } | |
1972 | ||
1973 | # So? What about this header? | |
1974 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1975 | yes:no: ) | |
1976 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1977 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1979 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1980 | ;; | |
1981 | no:yes:* ) | |
1982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1983 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1985 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1987 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1989 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1990 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1991 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
24343173 MS |
1992 | ( $as_echo "## --------------------------------------------------- ## |
1993 | ## Report this to https://github.com/apple/cups/issues ## | |
1994 | ## --------------------------------------------------- ##" | |
d9f356c5 MS |
1995 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1996 | ;; | |
1997 | esac | |
1998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1999 | $as_echo_n "checking for $2... " >&6; } | |
2000 | if eval \${$3+:} false; then : | |
2001 | $as_echo_n "(cached) " >&6 | |
2002 | else | |
2003 | eval "$3=\$ac_header_compiler" | |
2004 | fi | |
2005 | eval ac_res=\$$3 | |
2006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2007 | $as_echo "$ac_res" >&6; } | |
2008 | fi | |
2009 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2010 | ||
2011 | } # ac_fn_c_check_header_mongrel | |
2012 | ||
2013 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
2014 | # ------------------------------------------------------- | |
2015 | # Tests whether HEADER exists and can be compiled using the include files in | |
2016 | # INCLUDES, setting the cache variable VAR accordingly. | |
2017 | ac_fn_c_check_header_compile () | |
2018 | { | |
2019 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2021 | $as_echo_n "checking for $2... " >&6; } | |
2022 | if eval \${$3+:} false; then : | |
2023 | $as_echo_n "(cached) " >&6 | |
2024 | else | |
2025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2026 | /* end confdefs.h. */ | |
2027 | $4 | |
2028 | #include <$2> | |
2029 | _ACEOF | |
2030 | if ac_fn_c_try_compile "$LINENO"; then : | |
2031 | eval "$3=yes" | |
2032 | else | |
2033 | eval "$3=no" | |
2034 | fi | |
2035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2036 | fi | |
2037 | eval ac_res=\$$3 | |
2038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2039 | $as_echo "$ac_res" >&6; } | |
2040 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2041 | ||
2042 | } # ac_fn_c_check_header_compile | |
2043 | ||
2044 | # ac_fn_c_check_func LINENO FUNC VAR | |
2045 | # ---------------------------------- | |
2046 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2047 | ac_fn_c_check_func () | |
2048 | { | |
2049 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2051 | $as_echo_n "checking for $2... " >&6; } | |
2052 | if eval \${$3+:} false; then : | |
2053 | $as_echo_n "(cached) " >&6 | |
2054 | else | |
2055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2056 | /* end confdefs.h. */ | |
2057 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2058 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2059 | #define $2 innocuous_$2 | |
2060 | ||
2061 | /* System header to define __stub macros and hopefully few prototypes, | |
2062 | which can conflict with char $2 (); below. | |
2063 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2064 | <limits.h> exists even on freestanding compilers. */ | |
2065 | ||
2066 | #ifdef __STDC__ | |
2067 | # include <limits.h> | |
2068 | #else | |
2069 | # include <assert.h> | |
2070 | #endif | |
2071 | ||
2072 | #undef $2 | |
2073 | ||
2074 | /* Override any GCC internal prototype to avoid an error. | |
2075 | Use char because int might match the return type of a GCC | |
2076 | builtin and then its argument prototype would still apply. */ | |
2077 | #ifdef __cplusplus | |
2078 | extern "C" | |
2079 | #endif | |
2080 | char $2 (); | |
2081 | /* The GNU C library defines this for functions which it implements | |
2082 | to always fail with ENOSYS. Some functions are actually named | |
2083 | something starting with __ and the normal name is an alias. */ | |
2084 | #if defined __stub_$2 || defined __stub___$2 | |
2085 | choke me | |
2086 | #endif | |
2087 | ||
2088 | int | |
2089 | main () | |
2090 | { | |
2091 | return $2 (); | |
2092 | ; | |
2093 | return 0; | |
2094 | } | |
2095 | _ACEOF | |
2096 | if ac_fn_c_try_link "$LINENO"; then : | |
2097 | eval "$3=yes" | |
2098 | else | |
2099 | eval "$3=no" | |
2100 | fi | |
2101 | rm -f core conftest.err conftest.$ac_objext \ | |
2102 | conftest$ac_exeext conftest.$ac_ext | |
2103 | fi | |
2104 | eval ac_res=\$$3 | |
2105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2106 | $as_echo "$ac_res" >&6; } | |
2107 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2108 | ||
2109 | } # ac_fn_c_check_func | |
2110 | ||
2111 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2112 | # ---------------------------------------------------- | |
2113 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2114 | # INCLUDES, setting cache variable VAR accordingly. | |
2115 | ac_fn_c_check_member () | |
2116 | { | |
2117 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2119 | $as_echo_n "checking for $2.$3... " >&6; } | |
2120 | if eval \${$4+:} false; then : | |
2121 | $as_echo_n "(cached) " >&6 | |
2122 | else | |
2123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2124 | /* end confdefs.h. */ | |
2125 | $5 | |
2126 | int | |
2127 | main () | |
2128 | { | |
2129 | static $2 ac_aggr; | |
2130 | if (ac_aggr.$3) | |
2131 | return 0; | |
2132 | ; | |
2133 | return 0; | |
2134 | } | |
2135 | _ACEOF | |
2136 | if ac_fn_c_try_compile "$LINENO"; then : | |
2137 | eval "$4=yes" | |
2138 | else | |
2139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2140 | /* end confdefs.h. */ | |
2141 | $5 | |
2142 | int | |
2143 | main () | |
2144 | { | |
2145 | static $2 ac_aggr; | |
2146 | if (sizeof ac_aggr.$3) | |
2147 | return 0; | |
2148 | ; | |
2149 | return 0; | |
2150 | } | |
2151 | _ACEOF | |
2152 | if ac_fn_c_try_compile "$LINENO"; then : | |
2153 | eval "$4=yes" | |
2154 | else | |
2155 | eval "$4=no" | |
2156 | fi | |
2157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2158 | fi | |
2159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2160 | fi | |
2161 | eval ac_res=\$$4 | |
2162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2163 | $as_echo "$ac_res" >&6; } | |
2164 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2165 | ||
2166 | } # ac_fn_c_check_member | |
2167 | cat >config.log <<_ACEOF | |
2168 | This file contains any messages produced by compilers while | |
2169 | running configure, to aid debugging if configure makes a mistake. | |
2170 | ||
8a763079 | 2171 | It was created by CUPS $as_me 2.3b7, which was |
971a6b5d | 2172 | generated by GNU Autoconf 2.68. Invocation command line was |
d9f356c5 MS |
2173 | |
2174 | $ $0 $@ | |
2175 | ||
2176 | _ACEOF | |
2177 | exec 5>>config.log | |
2178 | { | |
2179 | cat <<_ASUNAME | |
2180 | ## --------- ## | |
2181 | ## Platform. ## | |
2182 | ## --------- ## | |
2183 | ||
2184 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2185 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2186 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2187 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2188 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2189 | ||
2190 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2191 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2192 | ||
2193 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2194 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2195 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2196 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2197 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2198 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2199 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2200 | ||
2201 | _ASUNAME | |
2202 | ||
2203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2204 | for as_dir in $PATH | |
2205 | do | |
2206 | IFS=$as_save_IFS | |
2207 | test -z "$as_dir" && as_dir=. | |
2208 | $as_echo "PATH: $as_dir" | |
2209 | done | |
2210 | IFS=$as_save_IFS | |
2211 | ||
2212 | } >&5 | |
2213 | ||
2214 | cat >&5 <<_ACEOF | |
2215 | ||
2216 | ||
2217 | ## ----------- ## | |
2218 | ## Core tests. ## | |
2219 | ## ----------- ## | |
2220 | ||
2221 | _ACEOF | |
2222 | ||
2223 | ||
2224 | # Keep a trace of the command line. | |
2225 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2226 | # Strip out --silent because we don't want to record it for future runs. | |
2227 | # Also quote any args containing shell meta-characters. | |
2228 | # Make two passes to allow for proper duplicate-argument suppression. | |
2229 | ac_configure_args= | |
2230 | ac_configure_args0= | |
2231 | ac_configure_args1= | |
2232 | ac_must_keep_next=false | |
2233 | for ac_pass in 1 2 | |
2234 | do | |
2235 | for ac_arg | |
2236 | do | |
2237 | case $ac_arg in | |
2238 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2239 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2240 | | -silent | --silent | --silen | --sile | --sil) | |
2241 | continue ;; | |
2242 | *\'*) | |
2243 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2244 | esac | |
2245 | case $ac_pass in | |
2246 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2247 | 2) | |
2248 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2249 | if test $ac_must_keep_next = true; then | |
2250 | ac_must_keep_next=false # Got value, back to normal. | |
2251 | else | |
2252 | case $ac_arg in | |
2253 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2254 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2255 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2256 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2257 | case "$ac_configure_args0 " in | |
2258 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2259 | esac | |
2260 | ;; | |
2261 | -* ) ac_must_keep_next=true ;; | |
2262 | esac | |
2263 | fi | |
2264 | as_fn_append ac_configure_args " '$ac_arg'" | |
2265 | ;; | |
2266 | esac | |
2267 | done | |
2268 | done | |
2269 | { ac_configure_args0=; unset ac_configure_args0;} | |
2270 | { ac_configure_args1=; unset ac_configure_args1;} | |
2271 | ||
2272 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2273 | # config.log. We remove comments because anyway the quotes in there | |
2274 | # would cause problems or look ugly. | |
2275 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2276 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2277 | trap 'exit_status=$? | |
2278 | # Save into config.log some information that might help in debugging. | |
2279 | { | |
2280 | echo | |
2281 | ||
2282 | $as_echo "## ---------------- ## | |
2283 | ## Cache variables. ## | |
2284 | ## ---------------- ##" | |
2285 | echo | |
2286 | # The following way of writing the cache mishandles newlines in values, | |
2287 | ( | |
2288 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2289 | eval ac_val=\$$ac_var | |
2290 | case $ac_val in #( | |
2291 | *${as_nl}*) | |
2292 | case $ac_var in #( | |
2293 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2294 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2295 | esac | |
2296 | case $ac_var in #( | |
2297 | _ | IFS | as_nl) ;; #( | |
2298 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2299 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2300 | esac ;; | |
2301 | esac | |
2302 | done | |
2303 | (set) 2>&1 | | |
2304 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2305 | *${as_nl}ac_space=\ *) | |
2306 | sed -n \ | |
2307 | "s/'\''/'\''\\\\'\'''\''/g; | |
2308 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2309 | ;; #( | |
2310 | *) | |
2311 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2312 | ;; | |
2313 | esac | | |
2314 | sort | |
2315 | ) | |
2316 | echo | |
2317 | ||
2318 | $as_echo "## ----------------- ## | |
2319 | ## Output variables. ## | |
2320 | ## ----------------- ##" | |
2321 | echo | |
2322 | for ac_var in $ac_subst_vars | |
2323 | do | |
2324 | eval ac_val=\$$ac_var | |
2325 | case $ac_val in | |
2326 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2327 | esac | |
2328 | $as_echo "$ac_var='\''$ac_val'\''" | |
2329 | done | sort | |
2330 | echo | |
2331 | ||
2332 | if test -n "$ac_subst_files"; then | |
2333 | $as_echo "## ------------------- ## | |
2334 | ## File substitutions. ## | |
2335 | ## ------------------- ##" | |
2336 | echo | |
2337 | for ac_var in $ac_subst_files | |
2338 | do | |
2339 | eval ac_val=\$$ac_var | |
2340 | case $ac_val in | |
2341 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2342 | esac | |
2343 | $as_echo "$ac_var='\''$ac_val'\''" | |
2344 | done | sort | |
2345 | echo | |
2346 | fi | |
2347 | ||
2348 | if test -s confdefs.h; then | |
2349 | $as_echo "## ----------- ## | |
2350 | ## confdefs.h. ## | |
2351 | ## ----------- ##" | |
2352 | echo | |
2353 | cat confdefs.h | |
2354 | echo | |
2355 | fi | |
2356 | test "$ac_signal" != 0 && | |
2357 | $as_echo "$as_me: caught signal $ac_signal" | |
2358 | $as_echo "$as_me: exit $exit_status" | |
2359 | } >&5 | |
2360 | rm -f core *.core core.conftest.* && | |
2361 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2362 | exit $exit_status | |
2363 | ' 0 | |
2364 | for ac_signal in 1 2 13 15; do | |
2365 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2366 | done | |
2367 | ac_signal=0 | |
2368 | ||
2369 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2370 | rm -f -r conftest* confdefs.h | |
2371 | ||
2372 | $as_echo "/* confdefs.h */" > confdefs.h | |
2373 | ||
2374 | # Predefined preprocessor variables. | |
2375 | ||
2376 | cat >>confdefs.h <<_ACEOF | |
2377 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2378 | _ACEOF | |
2379 | ||
2380 | cat >>confdefs.h <<_ACEOF | |
2381 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2382 | _ACEOF | |
2383 | ||
2384 | cat >>confdefs.h <<_ACEOF | |
2385 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2386 | _ACEOF | |
2387 | ||
2388 | cat >>confdefs.h <<_ACEOF | |
2389 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2390 | _ACEOF | |
2391 | ||
2392 | cat >>confdefs.h <<_ACEOF | |
2393 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2394 | _ACEOF | |
2395 | ||
2396 | cat >>confdefs.h <<_ACEOF | |
2397 | #define PACKAGE_URL "$PACKAGE_URL" | |
2398 | _ACEOF | |
2399 | ||
2400 | ||
2401 | # Let the site file select an alternate cache file if it wants to. | |
2402 | # Prefer an explicitly selected file to automatically selected ones. | |
2403 | ac_site_file1=NONE | |
2404 | ac_site_file2=NONE | |
2405 | if test -n "$CONFIG_SITE"; then | |
2406 | # We do not want a PATH search for config.site. | |
2407 | case $CONFIG_SITE in #(( | |
2408 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2409 | */*) ac_site_file1=$CONFIG_SITE;; | |
2410 | *) ac_site_file1=./$CONFIG_SITE;; | |
2411 | esac | |
2412 | elif test "x$prefix" != xNONE; then | |
2413 | ac_site_file1=$prefix/share/config.site | |
2414 | ac_site_file2=$prefix/etc/config.site | |
2415 | else | |
2416 | ac_site_file1=$ac_default_prefix/share/config.site | |
2417 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2418 | fi | |
2419 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2420 | do | |
2421 | test "x$ac_site_file" = xNONE && continue | |
2422 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2424 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2425 | sed 's/^/| /' "$ac_site_file" >&5 | |
2426 | . "$ac_site_file" \ | |
2427 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2428 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2429 | as_fn_error $? "failed to load site script $ac_site_file | |
2430 | See \`config.log' for more details" "$LINENO" 5; } | |
2431 | fi | |
2432 | done | |
2433 | ||
2434 | if test -r "$cache_file"; then | |
2435 | # Some versions of bash will fail to source /dev/null (special files | |
2436 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2437 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2439 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2440 | case $cache_file in | |
2441 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2442 | *) . "./$cache_file";; | |
2443 | esac | |
2444 | fi | |
2445 | else | |
2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2447 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2448 | >$cache_file | |
2449 | fi | |
2450 | ||
2451 | # Check that the precious variables saved in the cache have kept the same | |
2452 | # value. | |
2453 | ac_cache_corrupted=false | |
2454 | for ac_var in $ac_precious_vars; do | |
2455 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2456 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2457 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2458 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2459 | case $ac_old_set,$ac_new_set in | |
2460 | set,) | |
2461 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2462 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2463 | ac_cache_corrupted=: ;; | |
2464 | ,set) | |
2465 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2466 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2467 | ac_cache_corrupted=: ;; | |
2468 | ,);; | |
2469 | *) | |
2470 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2471 | # differences in whitespace do not lead to failure. | |
2472 | ac_old_val_w=`echo x $ac_old_val` | |
2473 | ac_new_val_w=`echo x $ac_new_val` | |
2474 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2475 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2476 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2477 | ac_cache_corrupted=: | |
2478 | else | |
2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2480 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2481 | eval $ac_var=\$ac_old_val | |
2482 | fi | |
2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2484 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2486 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2487 | fi;; | |
2488 | esac | |
2489 | # Pass precious variables to config.status. | |
2490 | if test "$ac_new_set" = set; then | |
2491 | case $ac_new_val in | |
2492 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2493 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2494 | esac | |
2495 | case " $ac_configure_args " in | |
2496 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2497 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2498 | esac | |
2499 | fi | |
2500 | done | |
2501 | if $ac_cache_corrupted; then | |
2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2503 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2505 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2506 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2507 | fi | |
2508 | ## -------------------- ## | |
2509 | ## Main body of script. ## | |
2510 | ## -------------------- ## | |
2511 | ||
2512 | ac_ext=c | |
2513 | ac_cpp='$CPP $CPPFLAGS' | |
2514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2517 | ||
2518 | ||
2519 | ||
2520 | ||
105922ec MS |
2521 | ac_aux_dir= |
2522 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2523 | if test -f "$ac_dir/install-sh"; then | |
2524 | ac_aux_dir=$ac_dir | |
2525 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2526 | break | |
2527 | elif test -f "$ac_dir/install.sh"; then | |
2528 | ac_aux_dir=$ac_dir | |
2529 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2530 | break | |
2531 | elif test -f "$ac_dir/shtool"; then | |
2532 | ac_aux_dir=$ac_dir | |
2533 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2534 | break | |
2535 | fi | |
2536 | done | |
2537 | if test -z "$ac_aux_dir"; then | |
2538 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2539 | fi | |
d9f356c5 | 2540 | |
105922ec MS |
2541 | # These three variables are undocumented and unsupported, |
2542 | # and are intended to be withdrawn in a future Autoconf release. | |
2543 | # They can cause serious problems if a builder's source tree is in a directory | |
2544 | # whose full name contains unusual characters. | |
2545 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2546 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2547 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
d9f356c5 | 2548 | |
105922ec MS |
2549 | |
2550 | # Make sure we can run config.sub. | |
2551 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2552 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2553 | ||
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2555 | $as_echo_n "checking build system type... " >&6; } | |
2556 | if ${ac_cv_build+:} false; then : | |
2557 | $as_echo_n "(cached) " >&6 | |
2558 | else | |
2559 | ac_build_alias=$build_alias | |
2560 | test "x$ac_build_alias" = x && | |
2561 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2562 | test "x$ac_build_alias" = x && | |
2563 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2564 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2565 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2566 | ||
2567 | fi | |
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2569 | $as_echo "$ac_cv_build" >&6; } | |
2570 | case $ac_cv_build in | |
2571 | *-*-*) ;; | |
2572 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2573 | esac | |
2574 | build=$ac_cv_build | |
2575 | ac_save_IFS=$IFS; IFS='-' | |
2576 | set x $ac_cv_build | |
2577 | shift | |
2578 | build_cpu=$1 | |
2579 | build_vendor=$2 | |
2580 | shift; shift | |
2581 | # Remember, the first character of IFS is used to create $*, | |
2582 | # except with old shells: | |
2583 | build_os=$* | |
2584 | IFS=$ac_save_IFS | |
2585 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2586 | ||
2587 | ||
2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2589 | $as_echo_n "checking host system type... " >&6; } | |
2590 | if ${ac_cv_host+:} false; then : | |
2591 | $as_echo_n "(cached) " >&6 | |
2592 | else | |
2593 | if test "x$host_alias" = x; then | |
2594 | ac_cv_host=$ac_cv_build | |
2595 | else | |
2596 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2597 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2598 | fi | |
2599 | ||
2600 | fi | |
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2602 | $as_echo "$ac_cv_host" >&6; } | |
2603 | case $ac_cv_host in | |
2604 | *-*-*) ;; | |
2605 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
d9f356c5 | 2606 | esac |
105922ec MS |
2607 | host=$ac_cv_host |
2608 | ac_save_IFS=$IFS; IFS='-' | |
2609 | set x $ac_cv_host | |
2610 | shift | |
2611 | host_cpu=$1 | |
2612 | host_vendor=$2 | |
2613 | shift; shift | |
2614 | # Remember, the first character of IFS is used to create $*, | |
2615 | # except with old shells: | |
2616 | host_os=$* | |
2617 | IFS=$ac_save_IFS | |
2618 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2619 | ||
2620 | ||
2621 | ||
2622 | host_os_name=`echo $host_os | sed -e '1,$s/[0-9.]*$//g'` | |
2623 | host_os_version=`echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}'` | |
d4a895f8 | 2624 | # Linux often does not yield an OS version we can use... |
bb719eb3 MS |
2625 | if test "x$host_os_version" = x; then |
2626 | host_os_version="0" | |
2627 | fi | |
105922ec | 2628 | |
105922ec MS |
2629 | if test "$build" = "$host"; then |
2630 | # No, build local targets | |
2631 | LOCALTARGET="local" | |
2632 | else | |
2633 | # Yes, don't build local targets | |
2634 | LOCALTARGET="" | |
2635 | fi | |
2636 | ||
d9f356c5 | 2637 | |
c8c5ec3b MS |
2638 | for ac_prog in codesign true |
2639 | do | |
2640 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2641 | set dummy $ac_prog; ac_word=$2 | |
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2643 | $as_echo_n "checking for $ac_word... " >&6; } | |
2644 | if ${ac_cv_path_CODE_SIGN+:} false; then : | |
2645 | $as_echo_n "(cached) " >&6 | |
2646 | else | |
2647 | case $CODE_SIGN in | |
2648 | [\\/]* | ?:[\\/]*) | |
2649 | ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path. | |
2650 | ;; | |
2651 | *) | |
2652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2653 | for as_dir in $PATH | |
2654 | do | |
2655 | IFS=$as_save_IFS | |
2656 | test -z "$as_dir" && as_dir=. | |
2657 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 2658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c8c5ec3b MS |
2659 | ac_cv_path_CODE_SIGN="$as_dir/$ac_word$ac_exec_ext" |
2660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2661 | break 2 | |
2662 | fi | |
2663 | done | |
2664 | done | |
2665 | IFS=$as_save_IFS | |
137fa9a8 | 2666 | |
c8c5ec3b MS |
2667 | ;; |
2668 | esac | |
137fa9a8 | 2669 | fi |
c8c5ec3b MS |
2670 | CODE_SIGN=$ac_cv_path_CODE_SIGN |
2671 | if test -n "$CODE_SIGN"; then | |
2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5 | |
2673 | $as_echo "$CODE_SIGN" >&6; } | |
2674 | else | |
2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2676 | $as_echo "no" >&6; } | |
2677 | fi | |
2678 | ||
2679 | ||
2680 | test -n "$CODE_SIGN" && break | |
2681 | done | |
2682 | ||
137fa9a8 | 2683 | |
d9f356c5 | 2684 | |
d9f356c5 MS |
2685 | ac_config_headers="$ac_config_headers config.h" |
2686 | ||
2687 | ||
8a763079 | 2688 | CUPS_VERSION="2.3b7" |
24343173 | 2689 | CUPS_REVISION="" |
d9f356c5 MS |
2690 | CUPS_BUILD="cups-$CUPS_VERSION" |
2691 | ||
2692 | ||
2693 | # Check whether --with-cups_build was given. | |
2694 | if test "${with_cups_build+set}" = set; then : | |
2695 | withval=$with_cups_build; CUPS_BUILD="$withval" | |
2696 | fi | |
2697 | ||
2698 | ||
2699 | ||
2700 | ||
2701 | ||
2702 | cat >>confdefs.h <<_ACEOF | |
2703 | #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION" | |
2704 | _ACEOF | |
2705 | ||
2706 | cat >>confdefs.h <<_ACEOF | |
2707 | #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION" | |
2708 | _ACEOF | |
2709 | ||
2710 | ||
2711 | CFLAGS="${CFLAGS:=}" | |
2712 | CPPFLAGS="${CPPFLAGS:=}" | |
2713 | CXXFLAGS="${CXXFLAGS:=}" | |
2714 | LDFLAGS="${LDFLAGS:=}" | |
2715 | ||
2716 | for ac_prog in gawk mawk nawk awk | |
2717 | do | |
2718 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2719 | set dummy $ac_prog; ac_word=$2 | |
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2721 | $as_echo_n "checking for $ac_word... " >&6; } | |
2722 | if ${ac_cv_prog_AWK+:} false; then : | |
2723 | $as_echo_n "(cached) " >&6 | |
2724 | else | |
2725 | if test -n "$AWK"; then | |
2726 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2727 | else | |
2728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2729 | for as_dir in $PATH | |
2730 | do | |
2731 | IFS=$as_save_IFS | |
2732 | test -z "$as_dir" && as_dir=. | |
2733 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 2734 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
2735 | ac_cv_prog_AWK="$ac_prog" |
2736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2737 | break 2 | |
2738 | fi | |
2739 | done | |
2740 | done | |
2741 | IFS=$as_save_IFS | |
2742 | ||
2743 | fi | |
2744 | fi | |
2745 | AWK=$ac_cv_prog_AWK | |
2746 | if test -n "$AWK"; then | |
2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2748 | $as_echo "$AWK" >&6; } | |
2749 | else | |
2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2751 | $as_echo "no" >&6; } | |
2752 | fi | |
2753 | ||
2754 | ||
2755 | test -n "$AWK" && break | |
2756 | done | |
2757 | ||
2758 | ac_ext=c | |
2759 | ac_cpp='$CPP $CPPFLAGS' | |
2760 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2761 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2762 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2763 | if test -n "$ac_tool_prefix"; then | |
2764 | for ac_prog in clang cc gcc | |
2765 | do | |
2766 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2767 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2769 | $as_echo_n "checking for $ac_word... " >&6; } | |
2770 | if ${ac_cv_prog_CC+:} false; then : | |
2771 | $as_echo_n "(cached) " >&6 | |
2772 | else | |
2773 | if test -n "$CC"; then | |
2774 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2775 | else | |
2776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2777 | for as_dir in $PATH | |
2778 | do | |
2779 | IFS=$as_save_IFS | |
2780 | test -z "$as_dir" && as_dir=. | |
2781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 2782 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
2783 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2785 | break 2 | |
2786 | fi | |
2787 | done | |
2788 | done | |
2789 | IFS=$as_save_IFS | |
2790 | ||
2791 | fi | |
2792 | fi | |
2793 | CC=$ac_cv_prog_CC | |
2794 | if test -n "$CC"; then | |
2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2796 | $as_echo "$CC" >&6; } | |
2797 | else | |
2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2799 | $as_echo "no" >&6; } | |
2800 | fi | |
2801 | ||
2802 | ||
2803 | test -n "$CC" && break | |
2804 | done | |
2805 | fi | |
2806 | if test -z "$CC"; then | |
2807 | ac_ct_CC=$CC | |
2808 | for ac_prog in clang cc gcc | |
2809 | do | |
2810 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2811 | set dummy $ac_prog; ac_word=$2 | |
2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2813 | $as_echo_n "checking for $ac_word... " >&6; } | |
2814 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2815 | $as_echo_n "(cached) " >&6 | |
2816 | else | |
2817 | if test -n "$ac_ct_CC"; then | |
2818 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2819 | else | |
2820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2821 | for as_dir in $PATH | |
2822 | do | |
2823 | IFS=$as_save_IFS | |
2824 | test -z "$as_dir" && as_dir=. | |
2825 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 2826 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
2827 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2829 | break 2 | |
2830 | fi | |
2831 | done | |
2832 | done | |
2833 | IFS=$as_save_IFS | |
2834 | ||
2835 | fi | |
2836 | fi | |
2837 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2838 | if test -n "$ac_ct_CC"; then | |
2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2840 | $as_echo "$ac_ct_CC" >&6; } | |
2841 | else | |
2842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2843 | $as_echo "no" >&6; } | |
2844 | fi | |
2845 | ||
2846 | ||
2847 | test -n "$ac_ct_CC" && break | |
2848 | done | |
2849 | ||
2850 | if test "x$ac_ct_CC" = x; then | |
2851 | CC="" | |
2852 | else | |
2853 | case $cross_compiling:$ac_tool_warned in | |
2854 | yes:) | |
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2856 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2857 | ac_tool_warned=yes ;; | |
2858 | esac | |
2859 | CC=$ac_ct_CC | |
2860 | fi | |
2861 | fi | |
2862 | ||
2863 | ||
2864 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2865 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2866 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2867 | See \`config.log' for more details" "$LINENO" 5; } | |
2868 | ||
2869 | # Provide some information about the compiler. | |
2870 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2871 | set X $ac_compile | |
2872 | ac_compiler=$2 | |
2873 | for ac_option in --version -v -V -qversion; do | |
2874 | { { ac_try="$ac_compiler $ac_option >&5" | |
2875 | case "(($ac_try" in | |
2876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2877 | *) ac_try_echo=$ac_try;; | |
2878 | esac | |
2879 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2880 | $as_echo "$ac_try_echo"; } >&5 | |
2881 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2882 | ac_status=$? | |
2883 | if test -s conftest.err; then | |
2884 | sed '10a\ | |
2885 | ... rest of stderr output deleted ... | |
2886 | 10q' conftest.err >conftest.er1 | |
2887 | cat conftest.er1 >&5 | |
2888 | fi | |
2889 | rm -f conftest.er1 conftest.err | |
2890 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2891 | test $ac_status = 0; } | |
2892 | done | |
2893 | ||
2894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2895 | /* end confdefs.h. */ | |
2896 | ||
2897 | int | |
2898 | main () | |
2899 | { | |
2900 | ||
2901 | ; | |
2902 | return 0; | |
2903 | } | |
2904 | _ACEOF | |
2905 | ac_clean_files_save=$ac_clean_files | |
2906 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2907 | # Try to create an executable without -o first, disregard a.out. | |
2908 | # It will help us diagnose broken compilers, and finding out an intuition | |
2909 | # of exeext. | |
2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2911 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2912 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2913 | ||
2914 | # The possible output files: | |
2915 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2916 | ||
2917 | ac_rmfiles= | |
2918 | for ac_file in $ac_files | |
2919 | do | |
2920 | case $ac_file in | |
2921 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2922 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2923 | esac | |
2924 | done | |
2925 | rm -f $ac_rmfiles | |
2926 | ||
2927 | if { { ac_try="$ac_link_default" | |
2928 | case "(($ac_try" in | |
2929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2930 | *) ac_try_echo=$ac_try;; | |
2931 | esac | |
2932 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2933 | $as_echo "$ac_try_echo"; } >&5 | |
2934 | (eval "$ac_link_default") 2>&5 | |
2935 | ac_status=$? | |
2936 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2937 | test $ac_status = 0; }; then : | |
2938 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2939 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2940 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2941 | # so that the user can short-circuit this test for compilers unknown to | |
2942 | # Autoconf. | |
2943 | for ac_file in $ac_files '' | |
2944 | do | |
2945 | test -f "$ac_file" || continue | |
2946 | case $ac_file in | |
2947 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2948 | ;; | |
2949 | [ab].out ) | |
2950 | # We found the default executable, but exeext='' is most | |
2951 | # certainly right. | |
2952 | break;; | |
2953 | *.* ) | |
2954 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2955 | then :; else | |
2956 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2957 | fi | |
2958 | # We set ac_cv_exeext here because the later test for it is not | |
2959 | # safe: cross compilers may not add the suffix if given an `-o' | |
2960 | # argument, so we may need to know it at that point already. | |
2961 | # Even if this section looks crufty: it has the advantage of | |
2962 | # actually working. | |
2963 | break;; | |
2964 | * ) | |
2965 | break;; | |
2966 | esac | |
2967 | done | |
2968 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2969 | ||
2970 | else | |
2971 | ac_file='' | |
2972 | fi | |
2973 | if test -z "$ac_file"; then : | |
2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2975 | $as_echo "no" >&6; } | |
2976 | $as_echo "$as_me: failed program was:" >&5 | |
2977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2978 | ||
2979 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2980 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2981 | as_fn_error 77 "C compiler cannot create executables | |
2982 | See \`config.log' for more details" "$LINENO" 5; } | |
2983 | else | |
2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2985 | $as_echo "yes" >&6; } | |
2986 | fi | |
2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2988 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2990 | $as_echo "$ac_file" >&6; } | |
2991 | ac_exeext=$ac_cv_exeext | |
2992 | ||
2993 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2994 | ac_clean_files=$ac_clean_files_save | |
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2996 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2997 | if { { ac_try="$ac_link" | |
2998 | case "(($ac_try" in | |
2999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3000 | *) ac_try_echo=$ac_try;; | |
3001 | esac | |
3002 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3003 | $as_echo "$ac_try_echo"; } >&5 | |
3004 | (eval "$ac_link") 2>&5 | |
3005 | ac_status=$? | |
3006 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3007 | test $ac_status = 0; }; then : | |
3008 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3009 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3010 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3011 | # `rm'. | |
3012 | for ac_file in conftest.exe conftest conftest.*; do | |
3013 | test -f "$ac_file" || continue | |
3014 | case $ac_file in | |
3015 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3016 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3017 | break;; | |
3018 | * ) break;; | |
3019 | esac | |
3020 | done | |
3021 | else | |
3022 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3023 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3024 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3025 | See \`config.log' for more details" "$LINENO" 5; } | |
3026 | fi | |
3027 | rm -f conftest conftest$ac_cv_exeext | |
3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3029 | $as_echo "$ac_cv_exeext" >&6; } | |
3030 | ||
3031 | rm -f conftest.$ac_ext | |
3032 | EXEEXT=$ac_cv_exeext | |
3033 | ac_exeext=$EXEEXT | |
3034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3035 | /* end confdefs.h. */ | |
3036 | #include <stdio.h> | |
3037 | int | |
3038 | main () | |
3039 | { | |
3040 | FILE *f = fopen ("conftest.out", "w"); | |
3041 | return ferror (f) || fclose (f) != 0; | |
3042 | ||
3043 | ; | |
3044 | return 0; | |
3045 | } | |
3046 | _ACEOF | |
3047 | ac_clean_files="$ac_clean_files conftest.out" | |
3048 | # Check that the compiler produces executables we can run. If not, either | |
3049 | # the compiler is broken, or we cross compile. | |
3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3051 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3052 | if test "$cross_compiling" != yes; then | |
3053 | { { ac_try="$ac_link" | |
3054 | case "(($ac_try" in | |
3055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3056 | *) ac_try_echo=$ac_try;; | |
3057 | esac | |
3058 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3059 | $as_echo "$ac_try_echo"; } >&5 | |
3060 | (eval "$ac_link") 2>&5 | |
3061 | ac_status=$? | |
3062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3063 | test $ac_status = 0; } | |
3064 | if { ac_try='./conftest$ac_cv_exeext' | |
3065 | { { case "(($ac_try" in | |
3066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3067 | *) ac_try_echo=$ac_try;; | |
3068 | esac | |
3069 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3070 | $as_echo "$ac_try_echo"; } >&5 | |
3071 | (eval "$ac_try") 2>&5 | |
3072 | ac_status=$? | |
3073 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3074 | test $ac_status = 0; }; }; then | |
3075 | cross_compiling=no | |
3076 | else | |
3077 | if test "$cross_compiling" = maybe; then | |
3078 | cross_compiling=yes | |
3079 | else | |
3080 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3081 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3082 | as_fn_error $? "cannot run C compiled programs. | |
3083 | If you meant to cross compile, use \`--host'. | |
3084 | See \`config.log' for more details" "$LINENO" 5; } | |
3085 | fi | |
3086 | fi | |
3087 | fi | |
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3089 | $as_echo "$cross_compiling" >&6; } | |
3090 | ||
3091 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3092 | ac_clean_files=$ac_clean_files_save | |
3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3094 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3095 | if ${ac_cv_objext+:} false; then : | |
3096 | $as_echo_n "(cached) " >&6 | |
3097 | else | |
3098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3099 | /* end confdefs.h. */ | |
3100 | ||
3101 | int | |
3102 | main () | |
3103 | { | |
3104 | ||
3105 | ; | |
3106 | return 0; | |
3107 | } | |
3108 | _ACEOF | |
3109 | rm -f conftest.o conftest.obj | |
3110 | if { { ac_try="$ac_compile" | |
3111 | case "(($ac_try" in | |
3112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3113 | *) ac_try_echo=$ac_try;; | |
3114 | esac | |
3115 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3116 | $as_echo "$ac_try_echo"; } >&5 | |
3117 | (eval "$ac_compile") 2>&5 | |
3118 | ac_status=$? | |
3119 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3120 | test $ac_status = 0; }; then : | |
3121 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3122 | test -f "$ac_file" || continue; | |
3123 | case $ac_file in | |
3124 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3125 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3126 | break;; | |
3127 | esac | |
3128 | done | |
3129 | else | |
3130 | $as_echo "$as_me: failed program was:" >&5 | |
3131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3132 | ||
3133 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3134 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3135 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3136 | See \`config.log' for more details" "$LINENO" 5; } | |
3137 | fi | |
3138 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3139 | fi | |
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3141 | $as_echo "$ac_cv_objext" >&6; } | |
3142 | OBJEXT=$ac_cv_objext | |
3143 | ac_objext=$OBJEXT | |
3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3145 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3146 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3147 | $as_echo_n "(cached) " >&6 | |
3148 | else | |
3149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3150 | /* end confdefs.h. */ | |
3151 | ||
3152 | int | |
3153 | main () | |
3154 | { | |
3155 | #ifndef __GNUC__ | |
3156 | choke me | |
3157 | #endif | |
3158 | ||
3159 | ; | |
3160 | return 0; | |
3161 | } | |
3162 | _ACEOF | |
3163 | if ac_fn_c_try_compile "$LINENO"; then : | |
3164 | ac_compiler_gnu=yes | |
3165 | else | |
3166 | ac_compiler_gnu=no | |
3167 | fi | |
3168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3169 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3170 | ||
3171 | fi | |
3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3173 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3174 | if test $ac_compiler_gnu = yes; then | |
3175 | GCC=yes | |
3176 | else | |
3177 | GCC= | |
3178 | fi | |
3179 | ac_test_CFLAGS=${CFLAGS+set} | |
3180 | ac_save_CFLAGS=$CFLAGS | |
3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3182 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3183 | if ${ac_cv_prog_cc_g+:} false; then : | |
3184 | $as_echo_n "(cached) " >&6 | |
3185 | else | |
3186 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3187 | ac_c_werror_flag=yes | |
3188 | ac_cv_prog_cc_g=no | |
3189 | CFLAGS="-g" | |
3190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3191 | /* end confdefs.h. */ | |
3192 | ||
3193 | int | |
3194 | main () | |
3195 | { | |
3196 | ||
3197 | ; | |
3198 | return 0; | |
3199 | } | |
3200 | _ACEOF | |
3201 | if ac_fn_c_try_compile "$LINENO"; then : | |
3202 | ac_cv_prog_cc_g=yes | |
3203 | else | |
3204 | CFLAGS="" | |
3205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3206 | /* end confdefs.h. */ | |
3207 | ||
3208 | int | |
3209 | main () | |
3210 | { | |
3211 | ||
3212 | ; | |
3213 | return 0; | |
3214 | } | |
3215 | _ACEOF | |
3216 | if ac_fn_c_try_compile "$LINENO"; then : | |
3217 | ||
3218 | else | |
3219 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3220 | CFLAGS="-g" | |
3221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3222 | /* end confdefs.h. */ | |
3223 | ||
3224 | int | |
3225 | main () | |
3226 | { | |
3227 | ||
3228 | ; | |
3229 | return 0; | |
3230 | } | |
3231 | _ACEOF | |
3232 | if ac_fn_c_try_compile "$LINENO"; then : | |
3233 | ac_cv_prog_cc_g=yes | |
3234 | fi | |
3235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3236 | fi | |
3237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3238 | fi | |
3239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3240 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3241 | fi | |
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3243 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3244 | if test "$ac_test_CFLAGS" = set; then | |
3245 | CFLAGS=$ac_save_CFLAGS | |
3246 | elif test $ac_cv_prog_cc_g = yes; then | |
3247 | if test "$GCC" = yes; then | |
3248 | CFLAGS="-g -O2" | |
3249 | else | |
3250 | CFLAGS="-g" | |
3251 | fi | |
3252 | else | |
3253 | if test "$GCC" = yes; then | |
3254 | CFLAGS="-O2" | |
3255 | else | |
3256 | CFLAGS= | |
3257 | fi | |
3258 | fi | |
3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3260 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3261 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3262 | $as_echo_n "(cached) " >&6 | |
3263 | else | |
3264 | ac_cv_prog_cc_c89=no | |
3265 | ac_save_CC=$CC | |
3266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3267 | /* end confdefs.h. */ | |
3268 | #include <stdarg.h> | |
3269 | #include <stdio.h> | |
971a6b5d MS |
3270 | #include <sys/types.h> |
3271 | #include <sys/stat.h> | |
d9f356c5 MS |
3272 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3273 | struct buf { int x; }; | |
3274 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3275 | static char *e (p, i) | |
3276 | char **p; | |
3277 | int i; | |
3278 | { | |
3279 | return p[i]; | |
3280 | } | |
3281 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3282 | { | |
3283 | char *s; | |
3284 | va_list v; | |
3285 | va_start (v,p); | |
3286 | s = g (p, va_arg (v,int)); | |
3287 | va_end (v); | |
3288 | return s; | |
3289 | } | |
3290 | ||
3291 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3292 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3293 | These don't provoke an error unfortunately, instead are silently treated | |
3294 | as 'x'. The following induces an error, until -std is added to get | |
3295 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3296 | array size at least. It's necessary to write '\x00'==0 to get something | |
3297 | that's true only with -std. */ | |
3298 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3299 | ||
3300 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3301 | inside strings and character constants. */ | |
3302 | #define FOO(x) 'x' | |
3303 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3304 | ||
3305 | int test (int i, double x); | |
3306 | struct s1 {int (*f) (int a);}; | |
3307 | struct s2 {int (*f) (double a);}; | |
3308 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3309 | int argc; | |
3310 | char **argv; | |
3311 | int | |
3312 | main () | |
3313 | { | |
3314 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3315 | ; | |
3316 | return 0; | |
3317 | } | |
3318 | _ACEOF | |
3319 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3320 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3321 | do | |
3322 | CC="$ac_save_CC $ac_arg" | |
3323 | if ac_fn_c_try_compile "$LINENO"; then : | |
3324 | ac_cv_prog_cc_c89=$ac_arg | |
3325 | fi | |
3326 | rm -f core conftest.err conftest.$ac_objext | |
3327 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3328 | done | |
3329 | rm -f conftest.$ac_ext | |
3330 | CC=$ac_save_CC | |
3331 | ||
3332 | fi | |
3333 | # AC_CACHE_VAL | |
3334 | case "x$ac_cv_prog_cc_c89" in | |
3335 | x) | |
3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3337 | $as_echo "none needed" >&6; } ;; | |
3338 | xno) | |
3339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3340 | $as_echo "unsupported" >&6; } ;; | |
3341 | *) | |
3342 | CC="$CC $ac_cv_prog_cc_c89" | |
3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3344 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3345 | esac | |
3346 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3347 | ||
3348 | fi | |
3349 | ||
3350 | ac_ext=c | |
3351 | ac_cpp='$CPP $CPPFLAGS' | |
3352 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3353 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3354 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3355 | ||
48cc3892 MS |
3356 | ac_ext=c |
3357 | ac_cpp='$CPP $CPPFLAGS' | |
3358 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3359 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3360 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3362 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3363 | # On Suns, sometimes $CPP names a directory. | |
3364 | if test -n "$CPP" && test -d "$CPP"; then | |
3365 | CPP= | |
3366 | fi | |
3367 | if test -z "$CPP"; then | |
3368 | if ${ac_cv_prog_CPP+:} false; then : | |
3369 | $as_echo_n "(cached) " >&6 | |
3370 | else | |
3371 | # Double quotes because CPP needs to be expanded | |
3372 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3373 | do | |
3374 | ac_preproc_ok=false | |
3375 | for ac_c_preproc_warn_flag in '' yes | |
3376 | do | |
3377 | # Use a header file that comes with gcc, so configuring glibc | |
3378 | # with a fresh cross-compiler works. | |
3379 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3380 | # <limits.h> exists even on freestanding compilers. | |
3381 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3382 | # not just through cpp. "Syntax error" is here to catch this case. | |
3383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3384 | /* end confdefs.h. */ | |
3385 | #ifdef __STDC__ | |
3386 | # include <limits.h> | |
3387 | #else | |
3388 | # include <assert.h> | |
3389 | #endif | |
3390 | Syntax error | |
3391 | _ACEOF | |
3392 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3393 | ||
3394 | else | |
3395 | # Broken: fails on valid input. | |
3396 | continue | |
3397 | fi | |
3398 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3399 | ||
3400 | # OK, works on sane cases. Now check whether nonexistent headers | |
3401 | # can be detected and how. | |
3402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3403 | /* end confdefs.h. */ | |
3404 | #include <ac_nonexistent.h> | |
3405 | _ACEOF | |
3406 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3407 | # Broken: success on invalid input. | |
3408 | continue | |
3409 | else | |
3410 | # Passes both tests. | |
3411 | ac_preproc_ok=: | |
3412 | break | |
3413 | fi | |
3414 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3415 | ||
3416 | done | |
3417 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3418 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3419 | if $ac_preproc_ok; then : | |
3420 | break | |
3421 | fi | |
3422 | ||
3423 | done | |
3424 | ac_cv_prog_CPP=$CPP | |
3425 | ||
3426 | fi | |
3427 | CPP=$ac_cv_prog_CPP | |
3428 | else | |
3429 | ac_cv_prog_CPP=$CPP | |
3430 | fi | |
3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3432 | $as_echo "$CPP" >&6; } | |
3433 | ac_preproc_ok=false | |
3434 | for ac_c_preproc_warn_flag in '' yes | |
3435 | do | |
3436 | # Use a header file that comes with gcc, so configuring glibc | |
3437 | # with a fresh cross-compiler works. | |
3438 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3439 | # <limits.h> exists even on freestanding compilers. | |
3440 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3441 | # not just through cpp. "Syntax error" is here to catch this case. | |
3442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3443 | /* end confdefs.h. */ | |
3444 | #ifdef __STDC__ | |
3445 | # include <limits.h> | |
3446 | #else | |
3447 | # include <assert.h> | |
3448 | #endif | |
3449 | Syntax error | |
3450 | _ACEOF | |
3451 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3452 | ||
3453 | else | |
3454 | # Broken: fails on valid input. | |
3455 | continue | |
3456 | fi | |
3457 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3458 | ||
3459 | # OK, works on sane cases. Now check whether nonexistent headers | |
3460 | # can be detected and how. | |
3461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3462 | /* end confdefs.h. */ | |
3463 | #include <ac_nonexistent.h> | |
3464 | _ACEOF | |
3465 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3466 | # Broken: success on invalid input. | |
3467 | continue | |
3468 | else | |
3469 | # Passes both tests. | |
3470 | ac_preproc_ok=: | |
3471 | break | |
3472 | fi | |
3473 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3474 | ||
3475 | done | |
3476 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3477 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3478 | if $ac_preproc_ok; then : | |
3479 | ||
3480 | else | |
3481 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3482 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3483 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3484 | See \`config.log' for more details" "$LINENO" 5; } | |
3485 | fi | |
3486 | ||
3487 | ac_ext=c | |
3488 | ac_cpp='$CPP $CPPFLAGS' | |
3489 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3490 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3491 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3492 | ||
d9f356c5 MS |
3493 | ac_ext=cpp |
3494 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3495 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3496 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3497 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3498 | if test -z "$CXX"; then | |
3499 | if test -n "$CCC"; then | |
3500 | CXX=$CCC | |
3501 | else | |
3502 | if test -n "$ac_tool_prefix"; then | |
3503 | for ac_prog in clang++ c++ g++ | |
3504 | do | |
3505 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3506 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3508 | $as_echo_n "checking for $ac_word... " >&6; } | |
3509 | if ${ac_cv_prog_CXX+:} false; then : | |
3510 | $as_echo_n "(cached) " >&6 | |
3511 | else | |
3512 | if test -n "$CXX"; then | |
3513 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3514 | else | |
3515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3516 | for as_dir in $PATH | |
3517 | do | |
3518 | IFS=$as_save_IFS | |
3519 | test -z "$as_dir" && as_dir=. | |
3520 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 3521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3522 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
3523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3524 | break 2 | |
3525 | fi | |
3526 | done | |
3527 | done | |
3528 | IFS=$as_save_IFS | |
3529 | ||
3530 | fi | |
3531 | fi | |
3532 | CXX=$ac_cv_prog_CXX | |
3533 | if test -n "$CXX"; then | |
3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3535 | $as_echo "$CXX" >&6; } | |
3536 | else | |
3537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3538 | $as_echo "no" >&6; } | |
3539 | fi | |
3540 | ||
3541 | ||
3542 | test -n "$CXX" && break | |
3543 | done | |
3544 | fi | |
3545 | if test -z "$CXX"; then | |
3546 | ac_ct_CXX=$CXX | |
3547 | for ac_prog in clang++ c++ g++ | |
3548 | do | |
3549 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3550 | set dummy $ac_prog; ac_word=$2 | |
3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3552 | $as_echo_n "checking for $ac_word... " >&6; } | |
3553 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | |
3554 | $as_echo_n "(cached) " >&6 | |
3555 | else | |
3556 | if test -n "$ac_ct_CXX"; then | |
3557 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3558 | else | |
3559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3560 | for as_dir in $PATH | |
3561 | do | |
3562 | IFS=$as_save_IFS | |
3563 | test -z "$as_dir" && as_dir=. | |
3564 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 3565 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3566 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
3567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3568 | break 2 | |
3569 | fi | |
3570 | done | |
3571 | done | |
3572 | IFS=$as_save_IFS | |
3573 | ||
3574 | fi | |
3575 | fi | |
3576 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3577 | if test -n "$ac_ct_CXX"; then | |
3578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3579 | $as_echo "$ac_ct_CXX" >&6; } | |
3580 | else | |
3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3582 | $as_echo "no" >&6; } | |
3583 | fi | |
3584 | ||
3585 | ||
3586 | test -n "$ac_ct_CXX" && break | |
3587 | done | |
3588 | ||
3589 | if test "x$ac_ct_CXX" = x; then | |
3590 | CXX="g++" | |
3591 | else | |
3592 | case $cross_compiling:$ac_tool_warned in | |
3593 | yes:) | |
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3595 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3596 | ac_tool_warned=yes ;; | |
3597 | esac | |
3598 | CXX=$ac_ct_CXX | |
3599 | fi | |
3600 | fi | |
3601 | ||
3602 | fi | |
3603 | fi | |
3604 | # Provide some information about the compiler. | |
3605 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3606 | set X $ac_compile | |
3607 | ac_compiler=$2 | |
3608 | for ac_option in --version -v -V -qversion; do | |
3609 | { { ac_try="$ac_compiler $ac_option >&5" | |
3610 | case "(($ac_try" in | |
3611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3612 | *) ac_try_echo=$ac_try;; | |
3613 | esac | |
3614 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3615 | $as_echo "$ac_try_echo"; } >&5 | |
3616 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3617 | ac_status=$? | |
3618 | if test -s conftest.err; then | |
3619 | sed '10a\ | |
3620 | ... rest of stderr output deleted ... | |
3621 | 10q' conftest.err >conftest.er1 | |
3622 | cat conftest.er1 >&5 | |
3623 | fi | |
3624 | rm -f conftest.er1 conftest.err | |
3625 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3626 | test $ac_status = 0; } | |
3627 | done | |
3628 | ||
3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
3630 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
3631 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
3632 | $as_echo_n "(cached) " >&6 | |
3633 | else | |
3634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3635 | /* end confdefs.h. */ | |
3636 | ||
3637 | int | |
3638 | main () | |
3639 | { | |
3640 | #ifndef __GNUC__ | |
3641 | choke me | |
3642 | #endif | |
3643 | ||
3644 | ; | |
3645 | return 0; | |
3646 | } | |
3647 | _ACEOF | |
3648 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3649 | ac_compiler_gnu=yes | |
3650 | else | |
3651 | ac_compiler_gnu=no | |
3652 | fi | |
3653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3654 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3655 | ||
3656 | fi | |
3657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3658 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3659 | if test $ac_compiler_gnu = yes; then | |
3660 | GXX=yes | |
3661 | else | |
3662 | GXX= | |
3663 | fi | |
3664 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3665 | ac_save_CXXFLAGS=$CXXFLAGS | |
3666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3667 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
3668 | if ${ac_cv_prog_cxx_g+:} false; then : | |
3669 | $as_echo_n "(cached) " >&6 | |
3670 | else | |
3671 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3672 | ac_cxx_werror_flag=yes | |
3673 | ac_cv_prog_cxx_g=no | |
3674 | CXXFLAGS="-g" | |
3675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3676 | /* end confdefs.h. */ | |
3677 | ||
3678 | int | |
3679 | main () | |
3680 | { | |
3681 | ||
3682 | ; | |
3683 | return 0; | |
3684 | } | |
3685 | _ACEOF | |
3686 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3687 | ac_cv_prog_cxx_g=yes | |
3688 | else | |
3689 | CXXFLAGS="" | |
3690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3691 | /* end confdefs.h. */ | |
3692 | ||
3693 | int | |
3694 | main () | |
3695 | { | |
3696 | ||
3697 | ; | |
3698 | return 0; | |
3699 | } | |
3700 | _ACEOF | |
3701 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3702 | ||
3703 | else | |
3704 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3705 | CXXFLAGS="-g" | |
3706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3707 | /* end confdefs.h. */ | |
3708 | ||
3709 | int | |
3710 | main () | |
3711 | { | |
3712 | ||
3713 | ; | |
3714 | return 0; | |
3715 | } | |
3716 | _ACEOF | |
3717 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3718 | ac_cv_prog_cxx_g=yes | |
3719 | fi | |
3720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3721 | fi | |
3722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3723 | fi | |
3724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3725 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3726 | fi | |
3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3728 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3729 | if test "$ac_test_CXXFLAGS" = set; then | |
3730 | CXXFLAGS=$ac_save_CXXFLAGS | |
3731 | elif test $ac_cv_prog_cxx_g = yes; then | |
3732 | if test "$GXX" = yes; then | |
3733 | CXXFLAGS="-g -O2" | |
3734 | else | |
3735 | CXXFLAGS="-g" | |
3736 | fi | |
3737 | else | |
3738 | if test "$GXX" = yes; then | |
3739 | CXXFLAGS="-O2" | |
3740 | else | |
3741 | CXXFLAGS= | |
3742 | fi | |
3743 | fi | |
3744 | ac_ext=c | |
3745 | ac_cpp='$CPP $CPPFLAGS' | |
3746 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3747 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3748 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3749 | ||
3750 | if test -n "$ac_tool_prefix"; then | |
3751 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3752 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3754 | $as_echo_n "checking for $ac_word... " >&6; } | |
3755 | if ${ac_cv_prog_RANLIB+:} false; then : | |
3756 | $as_echo_n "(cached) " >&6 | |
3757 | else | |
3758 | if test -n "$RANLIB"; then | |
3759 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3760 | else | |
3761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3762 | for as_dir in $PATH | |
3763 | do | |
3764 | IFS=$as_save_IFS | |
3765 | test -z "$as_dir" && as_dir=. | |
3766 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 3767 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3768 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3770 | break 2 | |
3771 | fi | |
3772 | done | |
3773 | done | |
3774 | IFS=$as_save_IFS | |
3775 | ||
3776 | fi | |
3777 | fi | |
3778 | RANLIB=$ac_cv_prog_RANLIB | |
3779 | if test -n "$RANLIB"; then | |
3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
3781 | $as_echo "$RANLIB" >&6; } | |
3782 | else | |
3783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3784 | $as_echo "no" >&6; } | |
3785 | fi | |
3786 | ||
3787 | ||
3788 | fi | |
3789 | if test -z "$ac_cv_prog_RANLIB"; then | |
3790 | ac_ct_RANLIB=$RANLIB | |
3791 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3792 | set dummy ranlib; ac_word=$2 | |
3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3794 | $as_echo_n "checking for $ac_word... " >&6; } | |
3795 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
3796 | $as_echo_n "(cached) " >&6 | |
3797 | else | |
3798 | if test -n "$ac_ct_RANLIB"; then | |
3799 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3800 | else | |
3801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3802 | for as_dir in $PATH | |
3803 | do | |
3804 | IFS=$as_save_IFS | |
3805 | test -z "$as_dir" && as_dir=. | |
3806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 3807 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3808 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3810 | break 2 | |
3811 | fi | |
3812 | done | |
3813 | done | |
3814 | IFS=$as_save_IFS | |
3815 | ||
3816 | fi | |
3817 | fi | |
3818 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3819 | if test -n "$ac_ct_RANLIB"; then | |
3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
3821 | $as_echo "$ac_ct_RANLIB" >&6; } | |
3822 | else | |
3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3824 | $as_echo "no" >&6; } | |
3825 | fi | |
3826 | ||
3827 | if test "x$ac_ct_RANLIB" = x; then | |
3828 | RANLIB=":" | |
3829 | else | |
3830 | case $cross_compiling:$ac_tool_warned in | |
3831 | yes:) | |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3833 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3834 | ac_tool_warned=yes ;; | |
3835 | esac | |
3836 | RANLIB=$ac_ct_RANLIB | |
3837 | fi | |
3838 | else | |
3839 | RANLIB="$ac_cv_prog_RANLIB" | |
3840 | fi | |
3841 | ||
3842 | # Extract the first word of "ar", so it can be a program name with args. | |
3843 | set dummy ar; ac_word=$2 | |
3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3845 | $as_echo_n "checking for $ac_word... " >&6; } | |
3846 | if ${ac_cv_path_AR+:} false; then : | |
3847 | $as_echo_n "(cached) " >&6 | |
3848 | else | |
3849 | case $AR in | |
3850 | [\\/]* | ?:[\\/]*) | |
3851 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
3852 | ;; | |
3853 | *) | |
3854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3855 | for as_dir in $PATH | |
3856 | do | |
3857 | IFS=$as_save_IFS | |
3858 | test -z "$as_dir" && as_dir=. | |
3859 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 3860 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3861 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
3862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3863 | break 2 | |
3864 | fi | |
3865 | done | |
3866 | done | |
3867 | IFS=$as_save_IFS | |
3868 | ||
3869 | ;; | |
3870 | esac | |
3871 | fi | |
3872 | AR=$ac_cv_path_AR | |
3873 | if test -n "$AR"; then | |
3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
3875 | $as_echo "$AR" >&6; } | |
3876 | else | |
3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3878 | $as_echo "no" >&6; } | |
3879 | fi | |
3880 | ||
3881 | ||
3882 | # Extract the first word of "chmod", so it can be a program name with args. | |
3883 | set dummy chmod; ac_word=$2 | |
3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3885 | $as_echo_n "checking for $ac_word... " >&6; } | |
3886 | if ${ac_cv_path_CHMOD+:} false; then : | |
3887 | $as_echo_n "(cached) " >&6 | |
3888 | else | |
3889 | case $CHMOD in | |
3890 | [\\/]* | ?:[\\/]*) | |
3891 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
3892 | ;; | |
3893 | *) | |
3894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3895 | for as_dir in $PATH | |
3896 | do | |
3897 | IFS=$as_save_IFS | |
3898 | test -z "$as_dir" && as_dir=. | |
3899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 3900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3901 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
3902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3903 | break 2 | |
3904 | fi | |
3905 | done | |
3906 | done | |
3907 | IFS=$as_save_IFS | |
3908 | ||
3909 | ;; | |
3910 | esac | |
3911 | fi | |
3912 | CHMOD=$ac_cv_path_CHMOD | |
3913 | if test -n "$CHMOD"; then | |
3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 | |
3915 | $as_echo "$CHMOD" >&6; } | |
3916 | else | |
3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3918 | $as_echo "no" >&6; } | |
3919 | fi | |
3920 | ||
3921 | ||
3922 | # Extract the first word of "gzip", so it can be a program name with args. | |
3923 | set dummy gzip; ac_word=$2 | |
3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3925 | $as_echo_n "checking for $ac_word... " >&6; } | |
3926 | if ${ac_cv_path_GZIP+:} false; then : | |
3927 | $as_echo_n "(cached) " >&6 | |
3928 | else | |
3929 | case $GZIP in | |
3930 | [\\/]* | ?:[\\/]*) | |
3931 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. | |
3932 | ;; | |
3933 | *) | |
3934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3935 | for as_dir in $PATH | |
3936 | do | |
3937 | IFS=$as_save_IFS | |
3938 | test -z "$as_dir" && as_dir=. | |
3939 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 3940 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3941 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
3942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3943 | break 2 | |
3944 | fi | |
3945 | done | |
3946 | done | |
3947 | IFS=$as_save_IFS | |
3948 | ||
3949 | ;; | |
3950 | esac | |
3951 | fi | |
3952 | GZIP=$ac_cv_path_GZIP | |
3953 | if test -n "$GZIP"; then | |
3954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 | |
3955 | $as_echo "$GZIP" >&6; } | |
3956 | else | |
3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3958 | $as_echo "no" >&6; } | |
3959 | fi | |
3960 | ||
3961 | ||
3962 | # Extract the first word of "ld", so it can be a program name with args. | |
3963 | set dummy ld; ac_word=$2 | |
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3965 | $as_echo_n "checking for $ac_word... " >&6; } | |
3966 | if ${ac_cv_path_LD+:} false; then : | |
3967 | $as_echo_n "(cached) " >&6 | |
3968 | else | |
3969 | case $LD in | |
3970 | [\\/]* | ?:[\\/]*) | |
3971 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
3972 | ;; | |
3973 | *) | |
3974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3975 | for as_dir in $PATH | |
3976 | do | |
3977 | IFS=$as_save_IFS | |
3978 | test -z "$as_dir" && as_dir=. | |
3979 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 3980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3981 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
3982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3983 | break 2 | |
3984 | fi | |
3985 | done | |
3986 | done | |
3987 | IFS=$as_save_IFS | |
3988 | ||
3989 | ;; | |
3990 | esac | |
3991 | fi | |
3992 | LD=$ac_cv_path_LD | |
3993 | if test -n "$LD"; then | |
3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
3995 | $as_echo "$LD" >&6; } | |
3996 | else | |
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3998 | $as_echo "no" >&6; } | |
3999 | fi | |
4000 | ||
4001 | ||
4002 | # Extract the first word of "ln", so it can be a program name with args. | |
4003 | set dummy ln; ac_word=$2 | |
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4005 | $as_echo_n "checking for $ac_word... " >&6; } | |
4006 | if ${ac_cv_path_LN+:} false; then : | |
4007 | $as_echo_n "(cached) " >&6 | |
4008 | else | |
4009 | case $LN in | |
4010 | [\\/]* | ?:[\\/]*) | |
4011 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
4012 | ;; | |
4013 | *) | |
4014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4015 | for as_dir in $PATH | |
4016 | do | |
4017 | IFS=$as_save_IFS | |
4018 | test -z "$as_dir" && as_dir=. | |
4019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 4020 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4021 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
4022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4023 | break 2 | |
4024 | fi | |
4025 | done | |
4026 | done | |
4027 | IFS=$as_save_IFS | |
4028 | ||
4029 | ;; | |
4030 | esac | |
4031 | fi | |
4032 | LN=$ac_cv_path_LN | |
4033 | if test -n "$LN"; then | |
4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
4035 | $as_echo "$LN" >&6; } | |
4036 | else | |
4037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4038 | $as_echo "no" >&6; } | |
4039 | fi | |
4040 | ||
4041 | ||
9964a31a MS |
4042 | # Extract the first word of "mkdir", so it can be a program name with args. |
4043 | set dummy mkdir; ac_word=$2 | |
4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4045 | $as_echo_n "checking for $ac_word... " >&6; } | |
4046 | if ${ac_cv_path_MKDIR+:} false; then : | |
4047 | $as_echo_n "(cached) " >&6 | |
4048 | else | |
4049 | case $MKDIR in | |
4050 | [\\/]* | ?:[\\/]*) | |
4051 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. | |
4052 | ;; | |
4053 | *) | |
4054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4055 | for as_dir in $PATH | |
4056 | do | |
4057 | IFS=$as_save_IFS | |
4058 | test -z "$as_dir" && as_dir=. | |
4059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 4060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9964a31a MS |
4061 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
4062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4063 | break 2 | |
4064 | fi | |
4065 | done | |
4066 | done | |
4067 | IFS=$as_save_IFS | |
4068 | ||
4069 | ;; | |
4070 | esac | |
4071 | fi | |
4072 | MKDIR=$ac_cv_path_MKDIR | |
4073 | if test -n "$MKDIR"; then | |
4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 | |
4075 | $as_echo "$MKDIR" >&6; } | |
4076 | else | |
4077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4078 | $as_echo "no" >&6; } | |
4079 | fi | |
4080 | ||
4081 | ||
d9f356c5 MS |
4082 | # Extract the first word of "mv", so it can be a program name with args. |
4083 | set dummy mv; ac_word=$2 | |
4084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4085 | $as_echo_n "checking for $ac_word... " >&6; } | |
4086 | if ${ac_cv_path_MV+:} false; then : | |
4087 | $as_echo_n "(cached) " >&6 | |
4088 | else | |
4089 | case $MV in | |
4090 | [\\/]* | ?:[\\/]*) | |
4091 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
4092 | ;; | |
4093 | *) | |
4094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4095 | for as_dir in $PATH | |
4096 | do | |
4097 | IFS=$as_save_IFS | |
4098 | test -z "$as_dir" && as_dir=. | |
4099 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 4100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4101 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
4102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4103 | break 2 | |
4104 | fi | |
4105 | done | |
4106 | done | |
4107 | IFS=$as_save_IFS | |
4108 | ||
4109 | ;; | |
4110 | esac | |
4111 | fi | |
4112 | MV=$ac_cv_path_MV | |
4113 | if test -n "$MV"; then | |
4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
4115 | $as_echo "$MV" >&6; } | |
4116 | else | |
4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4118 | $as_echo "no" >&6; } | |
4119 | fi | |
4120 | ||
4121 | ||
4122 | # Extract the first word of "rm", so it can be a program name with args. | |
4123 | set dummy rm; ac_word=$2 | |
4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4125 | $as_echo_n "checking for $ac_word... " >&6; } | |
4126 | if ${ac_cv_path_RM+:} false; then : | |
4127 | $as_echo_n "(cached) " >&6 | |
4128 | else | |
4129 | case $RM in | |
4130 | [\\/]* | ?:[\\/]*) | |
4131 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
4132 | ;; | |
4133 | *) | |
4134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4135 | for as_dir in $PATH | |
4136 | do | |
4137 | IFS=$as_save_IFS | |
4138 | test -z "$as_dir" && as_dir=. | |
4139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 4140 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4141 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
4142 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4143 | break 2 | |
4144 | fi | |
4145 | done | |
4146 | done | |
4147 | IFS=$as_save_IFS | |
4148 | ||
4149 | ;; | |
4150 | esac | |
4151 | fi | |
4152 | RM=$ac_cv_path_RM | |
4153 | if test -n "$RM"; then | |
4154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
4155 | $as_echo "$RM" >&6; } | |
4156 | else | |
4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4158 | $as_echo "no" >&6; } | |
4159 | fi | |
4160 | ||
4161 | ||
4162 | # Extract the first word of "rmdir", so it can be a program name with args. | |
4163 | set dummy rmdir; ac_word=$2 | |
4164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4165 | $as_echo_n "checking for $ac_word... " >&6; } | |
4166 | if ${ac_cv_path_RMDIR+:} false; then : | |
4167 | $as_echo_n "(cached) " >&6 | |
4168 | else | |
4169 | case $RMDIR in | |
4170 | [\\/]* | ?:[\\/]*) | |
4171 | ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. | |
4172 | ;; | |
4173 | *) | |
4174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4175 | for as_dir in $PATH | |
4176 | do | |
4177 | IFS=$as_save_IFS | |
4178 | test -z "$as_dir" && as_dir=. | |
4179 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 4180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4181 | ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" |
4182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4183 | break 2 | |
4184 | fi | |
4185 | done | |
4186 | done | |
4187 | IFS=$as_save_IFS | |
4188 | ||
4189 | ;; | |
4190 | esac | |
4191 | fi | |
4192 | RMDIR=$ac_cv_path_RMDIR | |
4193 | if test -n "$RMDIR"; then | |
4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 | |
4195 | $as_echo "$RMDIR" >&6; } | |
4196 | else | |
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4198 | $as_echo "no" >&6; } | |
4199 | fi | |
4200 | ||
4201 | ||
4202 | # Extract the first word of "sed", so it can be a program name with args. | |
4203 | set dummy sed; ac_word=$2 | |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4205 | $as_echo_n "checking for $ac_word... " >&6; } | |
4206 | if ${ac_cv_path_SED+:} false; then : | |
4207 | $as_echo_n "(cached) " >&6 | |
4208 | else | |
4209 | case $SED in | |
4210 | [\\/]* | ?:[\\/]*) | |
4211 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
4212 | ;; | |
4213 | *) | |
4214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4215 | for as_dir in $PATH | |
4216 | do | |
4217 | IFS=$as_save_IFS | |
4218 | test -z "$as_dir" && as_dir=. | |
4219 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 4220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4221 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
4222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4223 | break 2 | |
4224 | fi | |
4225 | done | |
4226 | done | |
4227 | IFS=$as_save_IFS | |
4228 | ||
4229 | ;; | |
4230 | esac | |
4231 | fi | |
4232 | SED=$ac_cv_path_SED | |
4233 | if test -n "$SED"; then | |
4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
4235 | $as_echo "$SED" >&6; } | |
4236 | else | |
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4238 | $as_echo "no" >&6; } | |
4239 | fi | |
4240 | ||
4241 | ||
4242 | # Extract the first word of "xdg-open", so it can be a program name with args. | |
4243 | set dummy xdg-open; ac_word=$2 | |
4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4245 | $as_echo_n "checking for $ac_word... " >&6; } | |
4246 | if ${ac_cv_path_XDGOPEN+:} false; then : | |
4247 | $as_echo_n "(cached) " >&6 | |
4248 | else | |
4249 | case $XDGOPEN in | |
4250 | [\\/]* | ?:[\\/]*) | |
4251 | ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path. | |
4252 | ;; | |
4253 | *) | |
4254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4255 | for as_dir in $PATH | |
4256 | do | |
4257 | IFS=$as_save_IFS | |
4258 | test -z "$as_dir" && as_dir=. | |
4259 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 4260 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4261 | ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext" |
4262 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4263 | break 2 | |
4264 | fi | |
4265 | done | |
4266 | done | |
4267 | IFS=$as_save_IFS | |
4268 | ||
4269 | ;; | |
4270 | esac | |
4271 | fi | |
4272 | XDGOPEN=$ac_cv_path_XDGOPEN | |
4273 | if test -n "$XDGOPEN"; then | |
4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5 | |
4275 | $as_echo "$XDGOPEN" >&6; } | |
4276 | else | |
4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4278 | $as_echo "no" >&6; } | |
4279 | fi | |
4280 | ||
4281 | ||
4282 | if test "x$XDGOPEN" = x; then | |
4283 | CUPS_HTMLVIEW="htmlview" | |
4284 | else | |
4285 | CUPS_HTMLVIEW="$XDGOPEN" | |
4286 | fi | |
4287 | ||
4288 | ||
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5 | |
4290 | $as_echo_n "checking for install-sh script... " >&6; } | |
4291 | INSTALL="`pwd`/install-sh" | |
4292 | ||
4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5 | |
4294 | $as_echo "using $INSTALL" >&6; } | |
4295 | ||
4296 | if test "x$AR" = x; then | |
4297 | as_fn_error $? "Unable to find required library archive command." "$LINENO" 5 | |
4298 | fi | |
4299 | if test "x$CC" = x; then | |
4300 | as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5 | |
4301 | fi | |
4302 | ||
4303 | INSTALLSTATIC="" | |
4304 | # Check whether --enable-static was given. | |
4305 | if test "${enable_static+set}" = set; then : | |
4306 | enableval=$enable_static; | |
4307 | fi | |
4308 | ||
4309 | ||
4310 | if test x$enable_static = xyes; then | |
4311 | echo Installing static libraries... | |
4312 | INSTALLSTATIC="installstatic" | |
4313 | fi | |
4314 | ||
4315 | ||
4316 | ||
4317 | if test -n "$ac_tool_prefix"; then | |
4318 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
4319 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4321 | $as_echo_n "checking for $ac_word... " >&6; } | |
4322 | if ${ac_cv_path_PKGCONFIG+:} false; then : | |
4323 | $as_echo_n "(cached) " >&6 | |
4324 | else | |
4325 | case $PKGCONFIG in | |
4326 | [\\/]* | ?:[\\/]*) | |
4327 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | |
4328 | ;; | |
4329 | *) | |
4330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4331 | for as_dir in $PATH | |
4332 | do | |
4333 | IFS=$as_save_IFS | |
4334 | test -z "$as_dir" && as_dir=. | |
4335 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 4336 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4337 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
4338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4339 | break 2 | |
4340 | fi | |
4341 | done | |
4342 | done | |
4343 | IFS=$as_save_IFS | |
4344 | ||
4345 | ;; | |
4346 | esac | |
4347 | fi | |
4348 | PKGCONFIG=$ac_cv_path_PKGCONFIG | |
4349 | if test -n "$PKGCONFIG"; then | |
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 | |
4351 | $as_echo "$PKGCONFIG" >&6; } | |
4352 | else | |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4354 | $as_echo "no" >&6; } | |
4355 | fi | |
4356 | ||
4357 | ||
4358 | fi | |
4359 | if test -z "$ac_cv_path_PKGCONFIG"; then | |
4360 | ac_pt_PKGCONFIG=$PKGCONFIG | |
4361 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
4362 | set dummy pkg-config; ac_word=$2 | |
4363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4364 | $as_echo_n "checking for $ac_word... " >&6; } | |
4365 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : | |
4366 | $as_echo_n "(cached) " >&6 | |
4367 | else | |
4368 | case $ac_pt_PKGCONFIG in | |
4369 | [\\/]* | ?:[\\/]*) | |
4370 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | |
4371 | ;; | |
4372 | *) | |
4373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4374 | for as_dir in $PATH | |
4375 | do | |
4376 | IFS=$as_save_IFS | |
4377 | test -z "$as_dir" && as_dir=. | |
4378 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 4379 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4380 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
4381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4382 | break 2 | |
4383 | fi | |
4384 | done | |
4385 | done | |
4386 | IFS=$as_save_IFS | |
4387 | ||
4388 | ;; | |
4389 | esac | |
4390 | fi | |
4391 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | |
4392 | if test -n "$ac_pt_PKGCONFIG"; then | |
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 | |
4394 | $as_echo "$ac_pt_PKGCONFIG" >&6; } | |
4395 | else | |
4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4397 | $as_echo "no" >&6; } | |
4398 | fi | |
4399 | ||
4400 | if test "x$ac_pt_PKGCONFIG" = x; then | |
4401 | PKGCONFIG="" | |
4402 | else | |
4403 | case $cross_compiling:$ac_tool_warned in | |
4404 | yes:) | |
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4406 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4407 | ac_tool_warned=yes ;; | |
4408 | esac | |
4409 | PKGCONFIG=$ac_pt_PKGCONFIG | |
4410 | fi | |
4411 | else | |
4412 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | |
4413 | fi | |
4414 | ||
4415 | ||
4416 | ||
4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5 | |
4418 | $as_echo_n "checking for library containing abs... " >&6; } | |
4419 | if ${ac_cv_search_abs+:} false; then : | |
4420 | $as_echo_n "(cached) " >&6 | |
4421 | else | |
4422 | ac_func_search_save_LIBS=$LIBS | |
4423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4424 | /* end confdefs.h. */ | |
4425 | ||
4426 | /* Override any GCC internal prototype to avoid an error. | |
4427 | Use char because int might match the return type of a GCC | |
4428 | builtin and then its argument prototype would still apply. */ | |
4429 | #ifdef __cplusplus | |
4430 | extern "C" | |
4431 | #endif | |
4432 | char abs (); | |
4433 | int | |
4434 | main () | |
4435 | { | |
4436 | return abs (); | |
4437 | ; | |
4438 | return 0; | |
4439 | } | |
4440 | _ACEOF | |
4441 | for ac_lib in '' m; do | |
4442 | if test -z "$ac_lib"; then | |
4443 | ac_res="none required" | |
4444 | else | |
4445 | ac_res=-l$ac_lib | |
4446 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4447 | fi | |
4448 | if ac_fn_c_try_link "$LINENO"; then : | |
4449 | ac_cv_search_abs=$ac_res | |
4450 | fi | |
4451 | rm -f core conftest.err conftest.$ac_objext \ | |
4452 | conftest$ac_exeext | |
4453 | if ${ac_cv_search_abs+:} false; then : | |
4454 | break | |
4455 | fi | |
4456 | done | |
4457 | if ${ac_cv_search_abs+:} false; then : | |
4458 | ||
4459 | else | |
4460 | ac_cv_search_abs=no | |
4461 | fi | |
4462 | rm conftest.$ac_ext | |
4463 | LIBS=$ac_func_search_save_LIBS | |
4464 | fi | |
4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5 | |
4466 | $as_echo "$ac_cv_search_abs" >&6; } | |
4467 | ac_res=$ac_cv_search_abs | |
4468 | if test "$ac_res" != no; then : | |
4469 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4470 | $as_echo "#define HAVE_ABS 1" >>confdefs.h | |
4471 | ||
4472 | fi | |
4473 | ||
4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 | |
4475 | $as_echo_n "checking for library containing crypt... " >&6; } | |
4476 | if ${ac_cv_search_crypt+:} false; then : | |
4477 | $as_echo_n "(cached) " >&6 | |
4478 | else | |
4479 | ac_func_search_save_LIBS=$LIBS | |
4480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4481 | /* end confdefs.h. */ | |
4482 | ||
4483 | /* Override any GCC internal prototype to avoid an error. | |
4484 | Use char because int might match the return type of a GCC | |
4485 | builtin and then its argument prototype would still apply. */ | |
4486 | #ifdef __cplusplus | |
4487 | extern "C" | |
4488 | #endif | |
4489 | char crypt (); | |
4490 | int | |
4491 | main () | |
4492 | { | |
4493 | return crypt (); | |
4494 | ; | |
4495 | return 0; | |
4496 | } | |
4497 | _ACEOF | |
4498 | for ac_lib in '' crypt; do | |
4499 | if test -z "$ac_lib"; then | |
4500 | ac_res="none required" | |
4501 | else | |
4502 | ac_res=-l$ac_lib | |
4503 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4504 | fi | |
4505 | if ac_fn_c_try_link "$LINENO"; then : | |
4506 | ac_cv_search_crypt=$ac_res | |
4507 | fi | |
4508 | rm -f core conftest.err conftest.$ac_objext \ | |
4509 | conftest$ac_exeext | |
4510 | if ${ac_cv_search_crypt+:} false; then : | |
4511 | break | |
4512 | fi | |
4513 | done | |
4514 | if ${ac_cv_search_crypt+:} false; then : | |
4515 | ||
4516 | else | |
4517 | ac_cv_search_crypt=no | |
4518 | fi | |
4519 | rm conftest.$ac_ext | |
4520 | LIBS=$ac_func_search_save_LIBS | |
4521 | fi | |
4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
4523 | $as_echo "$ac_cv_search_crypt" >&6; } | |
4524 | ac_res=$ac_cv_search_crypt | |
4525 | if test "$ac_res" != no; then : | |
4526 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4527 | ||
4528 | fi | |
4529 | ||
4530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5 | |
4531 | $as_echo_n "checking for library containing fmod... " >&6; } | |
4532 | if ${ac_cv_search_fmod+:} false; then : | |
4533 | $as_echo_n "(cached) " >&6 | |
4534 | else | |
4535 | ac_func_search_save_LIBS=$LIBS | |
4536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4537 | /* end confdefs.h. */ | |
4538 | ||
4539 | /* Override any GCC internal prototype to avoid an error. | |
4540 | Use char because int might match the return type of a GCC | |
4541 | builtin and then its argument prototype would still apply. */ | |
4542 | #ifdef __cplusplus | |
4543 | extern "C" | |
4544 | #endif | |
4545 | char fmod (); | |
4546 | int | |
4547 | main () | |
4548 | { | |
4549 | return fmod (); | |
4550 | ; | |
4551 | return 0; | |
4552 | } | |
4553 | _ACEOF | |
4554 | for ac_lib in '' m; do | |
4555 | if test -z "$ac_lib"; then | |
4556 | ac_res="none required" | |
4557 | else | |
4558 | ac_res=-l$ac_lib | |
4559 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4560 | fi | |
4561 | if ac_fn_c_try_link "$LINENO"; then : | |
4562 | ac_cv_search_fmod=$ac_res | |
4563 | fi | |
4564 | rm -f core conftest.err conftest.$ac_objext \ | |
4565 | conftest$ac_exeext | |
4566 | if ${ac_cv_search_fmod+:} false; then : | |
4567 | break | |
4568 | fi | |
4569 | done | |
4570 | if ${ac_cv_search_fmod+:} false; then : | |
4571 | ||
4572 | else | |
4573 | ac_cv_search_fmod=no | |
4574 | fi | |
4575 | rm conftest.$ac_ext | |
4576 | LIBS=$ac_func_search_save_LIBS | |
4577 | fi | |
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5 | |
4579 | $as_echo "$ac_cv_search_fmod" >&6; } | |
4580 | ac_res=$ac_cv_search_fmod | |
4581 | if test "$ac_res" != no; then : | |
4582 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4583 | ||
4584 | fi | |
4585 | ||
4586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5 | |
4587 | $as_echo_n "checking for library containing getspent... " >&6; } | |
4588 | if ${ac_cv_search_getspent+:} false; then : | |
4589 | $as_echo_n "(cached) " >&6 | |
4590 | else | |
4591 | ac_func_search_save_LIBS=$LIBS | |
4592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4593 | /* end confdefs.h. */ | |
4594 | ||
4595 | /* Override any GCC internal prototype to avoid an error. | |
4596 | Use char because int might match the return type of a GCC | |
4597 | builtin and then its argument prototype would still apply. */ | |
4598 | #ifdef __cplusplus | |
4599 | extern "C" | |
4600 | #endif | |
4601 | char getspent (); | |
4602 | int | |
4603 | main () | |
4604 | { | |
4605 | return getspent (); | |
4606 | ; | |
4607 | return 0; | |
4608 | } | |
4609 | _ACEOF | |
4610 | for ac_lib in '' sec gen; do | |
4611 | if test -z "$ac_lib"; then | |
4612 | ac_res="none required" | |
4613 | else | |
4614 | ac_res=-l$ac_lib | |
4615 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4616 | fi | |
4617 | if ac_fn_c_try_link "$LINENO"; then : | |
4618 | ac_cv_search_getspent=$ac_res | |
4619 | fi | |
4620 | rm -f core conftest.err conftest.$ac_objext \ | |
4621 | conftest$ac_exeext | |
4622 | if ${ac_cv_search_getspent+:} false; then : | |
4623 | break | |
4624 | fi | |
4625 | done | |
4626 | if ${ac_cv_search_getspent+:} false; then : | |
4627 | ||
4628 | else | |
4629 | ac_cv_search_getspent=no | |
4630 | fi | |
4631 | rm conftest.$ac_ext | |
4632 | LIBS=$ac_func_search_save_LIBS | |
4633 | fi | |
4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5 | |
4635 | $as_echo "$ac_cv_search_getspent" >&6; } | |
4636 | ac_res=$ac_cv_search_getspent | |
4637 | if test "$ac_res" != no; then : | |
4638 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4639 | ||
4640 | fi | |
4641 | ||
4642 | ||
4643 | LIBMALLOC="" | |
4644 | # Check whether --enable-mallinfo was given. | |
4645 | if test "${enable_mallinfo+set}" = set; then : | |
4646 | enableval=$enable_mallinfo; | |
4647 | fi | |
4648 | ||
4649 | ||
4650 | if test x$enable_mallinfo = xyes; then | |
4651 | SAVELIBS="$LIBS" | |
4652 | LIBS="" | |
4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5 | |
4654 | $as_echo_n "checking for library containing mallinfo... " >&6; } | |
4655 | if ${ac_cv_search_mallinfo+:} false; then : | |
4656 | $as_echo_n "(cached) " >&6 | |
4657 | else | |
4658 | ac_func_search_save_LIBS=$LIBS | |
4659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4660 | /* end confdefs.h. */ | |
4661 | ||
4662 | /* Override any GCC internal prototype to avoid an error. | |
4663 | Use char because int might match the return type of a GCC | |
4664 | builtin and then its argument prototype would still apply. */ | |
4665 | #ifdef __cplusplus | |
4666 | extern "C" | |
4667 | #endif | |
4668 | char mallinfo (); | |
4669 | int | |
4670 | main () | |
4671 | { | |
4672 | return mallinfo (); | |
4673 | ; | |
4674 | return 0; | |
4675 | } | |
4676 | _ACEOF | |
4677 | for ac_lib in '' malloc; do | |
4678 | if test -z "$ac_lib"; then | |
4679 | ac_res="none required" | |
4680 | else | |
4681 | ac_res=-l$ac_lib | |
4682 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4683 | fi | |
4684 | if ac_fn_c_try_link "$LINENO"; then : | |
4685 | ac_cv_search_mallinfo=$ac_res | |
4686 | fi | |
4687 | rm -f core conftest.err conftest.$ac_objext \ | |
4688 | conftest$ac_exeext | |
4689 | if ${ac_cv_search_mallinfo+:} false; then : | |
4690 | break | |
4691 | fi | |
4692 | done | |
4693 | if ${ac_cv_search_mallinfo+:} false; then : | |
4694 | ||
4695 | else | |
4696 | ac_cv_search_mallinfo=no | |
4697 | fi | |
4698 | rm conftest.$ac_ext | |
4699 | LIBS=$ac_func_search_save_LIBS | |
4700 | fi | |
4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5 | |
4702 | $as_echo "$ac_cv_search_mallinfo" >&6; } | |
4703 | ac_res=$ac_cv_search_mallinfo | |
4704 | if test "$ac_res" != no; then : | |
4705 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4706 | $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h | |
4707 | ||
4708 | fi | |
4709 | ||
4710 | LIBMALLOC="$LIBS" | |
4711 | LIBS="$SAVELIBS" | |
4712 | fi | |
4713 | ||
4714 | ||
4715 | ||
4716 | # Check whether --enable-libpaper was given. | |
4717 | if test "${enable_libpaper+set}" = set; then : | |
4718 | enableval=$enable_libpaper; | |
4719 | fi | |
4720 | ||
4721 | ||
4722 | if test x$enable_libpaper = xyes; then | |
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5 | |
4724 | $as_echo_n "checking for systempapername in -lpaper... " >&6; } | |
4725 | if ${ac_cv_lib_paper_systempapername+:} false; then : | |
4726 | $as_echo_n "(cached) " >&6 | |
4727 | else | |
4728 | ac_check_lib_save_LIBS=$LIBS | |
4729 | LIBS="-lpaper $LIBS" | |
4730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4731 | /* end confdefs.h. */ | |
4732 | ||
4733 | /* Override any GCC internal prototype to avoid an error. | |
4734 | Use char because int might match the return type of a GCC | |
4735 | builtin and then its argument prototype would still apply. */ | |
4736 | #ifdef __cplusplus | |
4737 | extern "C" | |
4738 | #endif | |
4739 | char systempapername (); | |
4740 | int | |
4741 | main () | |
4742 | { | |
4743 | return systempapername (); | |
4744 | ; | |
4745 | return 0; | |
4746 | } | |
4747 | _ACEOF | |
4748 | if ac_fn_c_try_link "$LINENO"; then : | |
4749 | ac_cv_lib_paper_systempapername=yes | |
4750 | else | |
4751 | ac_cv_lib_paper_systempapername=no | |
4752 | fi | |
4753 | rm -f core conftest.err conftest.$ac_objext \ | |
4754 | conftest$ac_exeext conftest.$ac_ext | |
4755 | LIBS=$ac_check_lib_save_LIBS | |
4756 | fi | |
4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5 | |
4758 | $as_echo "$ac_cv_lib_paper_systempapername" >&6; } | |
4759 | if test "x$ac_cv_lib_paper_systempapername" = xyes; then : | |
4760 | $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h | |
4761 | ||
4762 | LIBPAPER="-lpaper" | |
4763 | else | |
4764 | LIBPAPER="" | |
4765 | fi | |
4766 | ||
4767 | else | |
4768 | LIBPAPER="" | |
4769 | fi | |
4770 | ||
4771 | ||
4772 | ||
4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4774 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4775 | if ${ac_cv_path_GREP+:} false; then : | |
4776 | $as_echo_n "(cached) " >&6 | |
4777 | else | |
4778 | if test -z "$GREP"; then | |
4779 | ac_path_GREP_found=false | |
4780 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4782 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4783 | do | |
4784 | IFS=$as_save_IFS | |
4785 | test -z "$as_dir" && as_dir=. | |
4786 | for ac_prog in grep ggrep; do | |
4787 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4788 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
971a6b5d | 4789 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
d9f356c5 MS |
4790 | # Check for GNU ac_path_GREP and select it if it is found. |
4791 | # Check for GNU $ac_path_GREP | |
4792 | case `"$ac_path_GREP" --version 2>&1` in | |
4793 | *GNU*) | |
4794 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4795 | *) | |
4796 | ac_count=0 | |
4797 | $as_echo_n 0123456789 >"conftest.in" | |
4798 | while : | |
4799 | do | |
4800 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4801 | mv "conftest.tmp" "conftest.in" | |
4802 | cp "conftest.in" "conftest.nl" | |
4803 | $as_echo 'GREP' >> "conftest.nl" | |
4804 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4805 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4806 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4807 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4808 | # Best one so far, save it but keep looking for a better one | |
4809 | ac_cv_path_GREP="$ac_path_GREP" | |
4810 | ac_path_GREP_max=$ac_count | |
4811 | fi | |
4812 | # 10*(2^10) chars as input seems more than enough | |
4813 | test $ac_count -gt 10 && break | |
4814 | done | |
4815 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4816 | esac | |
4817 | ||
4818 | $ac_path_GREP_found && break 3 | |
4819 | done | |
4820 | done | |
4821 | done | |
4822 | IFS=$as_save_IFS | |
4823 | if test -z "$ac_cv_path_GREP"; then | |
4824 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4825 | fi | |
4826 | else | |
4827 | ac_cv_path_GREP=$GREP | |
4828 | fi | |
4829 | ||
4830 | fi | |
4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4832 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4833 | GREP="$ac_cv_path_GREP" | |
4834 | ||
4835 | ||
4836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4837 | $as_echo_n "checking for egrep... " >&6; } | |
4838 | if ${ac_cv_path_EGREP+:} false; then : | |
4839 | $as_echo_n "(cached) " >&6 | |
4840 | else | |
4841 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4842 | then ac_cv_path_EGREP="$GREP -E" | |
4843 | else | |
4844 | if test -z "$EGREP"; then | |
4845 | ac_path_EGREP_found=false | |
4846 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4848 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4849 | do | |
4850 | IFS=$as_save_IFS | |
4851 | test -z "$as_dir" && as_dir=. | |
4852 | for ac_prog in egrep; do | |
4853 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4854 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
971a6b5d | 4855 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
d9f356c5 MS |
4856 | # Check for GNU ac_path_EGREP and select it if it is found. |
4857 | # Check for GNU $ac_path_EGREP | |
4858 | case `"$ac_path_EGREP" --version 2>&1` in | |
4859 | *GNU*) | |
4860 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4861 | *) | |
4862 | ac_count=0 | |
4863 | $as_echo_n 0123456789 >"conftest.in" | |
4864 | while : | |
4865 | do | |
4866 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4867 | mv "conftest.tmp" "conftest.in" | |
4868 | cp "conftest.in" "conftest.nl" | |
4869 | $as_echo 'EGREP' >> "conftest.nl" | |
4870 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4871 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4872 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4873 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4874 | # Best one so far, save it but keep looking for a better one | |
4875 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4876 | ac_path_EGREP_max=$ac_count | |
4877 | fi | |
4878 | # 10*(2^10) chars as input seems more than enough | |
4879 | test $ac_count -gt 10 && break | |
4880 | done | |
4881 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4882 | esac | |
4883 | ||
4884 | $ac_path_EGREP_found && break 3 | |
4885 | done | |
4886 | done | |
4887 | done | |
4888 | IFS=$as_save_IFS | |
4889 | if test -z "$ac_cv_path_EGREP"; then | |
4890 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4891 | fi | |
4892 | else | |
4893 | ac_cv_path_EGREP=$EGREP | |
4894 | fi | |
4895 | ||
4896 | fi | |
4897 | fi | |
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4899 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4900 | EGREP="$ac_cv_path_EGREP" | |
4901 | ||
4902 | ||
4903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4904 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4905 | if ${ac_cv_header_stdc+:} false; then : | |
4906 | $as_echo_n "(cached) " >&6 | |
4907 | else | |
4908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4909 | /* end confdefs.h. */ | |
4910 | #include <stdlib.h> | |
4911 | #include <stdarg.h> | |
4912 | #include <string.h> | |
4913 | #include <float.h> | |
4914 | ||
4915 | int | |
4916 | main () | |
4917 | { | |
4918 | ||
4919 | ; | |
4920 | return 0; | |
4921 | } | |
4922 | _ACEOF | |
4923 | if ac_fn_c_try_compile "$LINENO"; then : | |
4924 | ac_cv_header_stdc=yes | |
4925 | else | |
4926 | ac_cv_header_stdc=no | |
4927 | fi | |
4928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4929 | ||
4930 | if test $ac_cv_header_stdc = yes; then | |
4931 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4933 | /* end confdefs.h. */ | |
4934 | #include <string.h> | |
4935 | ||
4936 | _ACEOF | |
4937 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4938 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4939 | ||
4940 | else | |
4941 | ac_cv_header_stdc=no | |
4942 | fi | |
4943 | rm -f conftest* | |
4944 | ||
4945 | fi | |
4946 | ||
4947 | if test $ac_cv_header_stdc = yes; then | |
4948 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4950 | /* end confdefs.h. */ | |
4951 | #include <stdlib.h> | |
4952 | ||
4953 | _ACEOF | |
4954 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4955 | $EGREP "free" >/dev/null 2>&1; then : | |
4956 | ||
4957 | else | |
4958 | ac_cv_header_stdc=no | |
4959 | fi | |
4960 | rm -f conftest* | |
4961 | ||
4962 | fi | |
4963 | ||
4964 | if test $ac_cv_header_stdc = yes; then | |
4965 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4966 | if test "$cross_compiling" = yes; then : | |
4967 | : | |
4968 | else | |
4969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4970 | /* end confdefs.h. */ | |
4971 | #include <ctype.h> | |
4972 | #include <stdlib.h> | |
4973 | #if ((' ' & 0x0FF) == 0x020) | |
4974 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4975 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4976 | #else | |
4977 | # define ISLOWER(c) \ | |
4978 | (('a' <= (c) && (c) <= 'i') \ | |
4979 | || ('j' <= (c) && (c) <= 'r') \ | |
4980 | || ('s' <= (c) && (c) <= 'z')) | |
4981 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4982 | #endif | |
4983 | ||
4984 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4985 | int | |
4986 | main () | |
4987 | { | |
4988 | int i; | |
4989 | for (i = 0; i < 256; i++) | |
4990 | if (XOR (islower (i), ISLOWER (i)) | |
4991 | || toupper (i) != TOUPPER (i)) | |
4992 | return 2; | |
4993 | return 0; | |
4994 | } | |
4995 | _ACEOF | |
4996 | if ac_fn_c_try_run "$LINENO"; then : | |
4997 | ||
4998 | else | |
4999 | ac_cv_header_stdc=no | |
5000 | fi | |
5001 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5002 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5003 | fi | |
5004 | ||
5005 | fi | |
5006 | fi | |
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5008 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5009 | if test $ac_cv_header_stdc = yes; then | |
5010 | ||
5011 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5012 | ||
5013 | fi | |
5014 | ||
5015 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5016 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5017 | inttypes.h stdint.h unistd.h | |
5018 | do : | |
5019 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5020 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5021 | " | |
5022 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5023 | cat >>confdefs.h <<_ACEOF | |
5024 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5025 | _ACEOF | |
5026 | ||
5027 | fi | |
5028 | ||
5029 | done | |
5030 | ||
5031 | ||
5032 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
5033 | if test "x$ac_cv_header_stdlib_h" = xyes; then : | |
5034 | $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h | |
5035 | ||
5036 | fi | |
5037 | ||
5038 | ||
5039 | ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" | |
5040 | if test "x$ac_cv_header_crypt_h" = xyes; then : | |
5041 | $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h | |
5042 | ||
5043 | fi | |
5044 | ||
5045 | ||
5046 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" | |
5047 | if test "x$ac_cv_header_langinfo_h" = xyes; then : | |
5048 | $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h | |
5049 | ||
5050 | fi | |
5051 | ||
5052 | ||
5053 | ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" | |
5054 | if test "x$ac_cv_header_malloc_h" = xyes; then : | |
5055 | $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h | |
5056 | ||
5057 | fi | |
5058 | ||
5059 | ||
5060 | ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" | |
5061 | if test "x$ac_cv_header_shadow_h" = xyes; then : | |
5062 | $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h | |
5063 | ||
5064 | fi | |
5065 | ||
5066 | ||
5067 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
5068 | if test "x$ac_cv_header_stdint_h" = xyes; then : | |
5069 | $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h | |
5070 | ||
5071 | fi | |
5072 | ||
5073 | ||
5074 | ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" | |
5075 | if test "x$ac_cv_header_string_h" = xyes; then : | |
5076 | $as_echo "#define HAVE_STRING_H 1" >>confdefs.h | |
5077 | ||
5078 | fi | |
5079 | ||
5080 | ||
5081 | ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" | |
5082 | if test "x$ac_cv_header_strings_h" = xyes; then : | |
5083 | $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h | |
5084 | ||
5085 | fi | |
5086 | ||
5087 | ||
5088 | ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default" | |
5089 | if test "x$ac_cv_header_bstring_h" = xyes; then : | |
5090 | $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h | |
5091 | ||
5092 | fi | |
5093 | ||
5094 | ||
5095 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" | |
5096 | if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : | |
5097 | $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h | |
5098 | ||
5099 | fi | |
5100 | ||
5101 | ||
5102 | ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" | |
5103 | if test "x$ac_cv_header_sys_param_h" = xyes; then : | |
5104 | $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h | |
5105 | ||
5106 | fi | |
5107 | ||
5108 | ||
5109 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default" | |
5110 | if test "x$ac_cv_header_sys_ucred_h" = xyes; then : | |
5111 | $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h | |
5112 | ||
5113 | fi | |
5114 | ||
5115 | ||
d9f356c5 MS |
5116 | |
5117 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" | |
5118 | if test "x$ac_cv_header_iconv_h" = xyes; then : | |
5119 | SAVELIBS="$LIBS" | |
5120 | LIBS="" | |
5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5 | |
5122 | $as_echo_n "checking for library containing iconv_open... " >&6; } | |
5123 | if ${ac_cv_search_iconv_open+:} false; then : | |
5124 | $as_echo_n "(cached) " >&6 | |
5125 | else | |
5126 | ac_func_search_save_LIBS=$LIBS | |
5127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5128 | /* end confdefs.h. */ | |
5129 | ||
5130 | /* Override any GCC internal prototype to avoid an error. | |
5131 | Use char because int might match the return type of a GCC | |
5132 | builtin and then its argument prototype would still apply. */ | |
5133 | #ifdef __cplusplus | |
5134 | extern "C" | |
5135 | #endif | |
5136 | char iconv_open (); | |
5137 | int | |
5138 | main () | |
5139 | { | |
5140 | return iconv_open (); | |
5141 | ; | |
5142 | return 0; | |
5143 | } | |
5144 | _ACEOF | |
5145 | for ac_lib in '' iconv; do | |
5146 | if test -z "$ac_lib"; then | |
5147 | ac_res="none required" | |
5148 | else | |
5149 | ac_res=-l$ac_lib | |
5150 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5151 | fi | |
5152 | if ac_fn_c_try_link "$LINENO"; then : | |
5153 | ac_cv_search_iconv_open=$ac_res | |
5154 | fi | |
5155 | rm -f core conftest.err conftest.$ac_objext \ | |
5156 | conftest$ac_exeext | |
5157 | if ${ac_cv_search_iconv_open+:} false; then : | |
5158 | break | |
5159 | fi | |
5160 | done | |
5161 | if ${ac_cv_search_iconv_open+:} false; then : | |
5162 | ||
5163 | else | |
5164 | ac_cv_search_iconv_open=no | |
5165 | fi | |
5166 | rm conftest.$ac_ext | |
5167 | LIBS=$ac_func_search_save_LIBS | |
5168 | fi | |
5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5 | |
5170 | $as_echo "$ac_cv_search_iconv_open" >&6; } | |
5171 | ac_res=$ac_cv_search_iconv_open | |
5172 | if test "$ac_res" != no; then : | |
5173 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5174 | $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h | |
5175 | ||
5176 | SAVELIBS="$SAVELIBS $LIBS" | |
5177 | fi | |
5178 | ||
5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5 | |
5180 | $as_echo_n "checking for library containing libiconv_open... " >&6; } | |
5181 | if ${ac_cv_search_libiconv_open+:} false; then : | |
5182 | $as_echo_n "(cached) " >&6 | |
5183 | else | |
5184 | ac_func_search_save_LIBS=$LIBS | |
5185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5186 | /* end confdefs.h. */ | |
5187 | ||
5188 | /* Override any GCC internal prototype to avoid an error. | |
5189 | Use char because int might match the return type of a GCC | |
5190 | builtin and then its argument prototype would still apply. */ | |
5191 | #ifdef __cplusplus | |
5192 | extern "C" | |
5193 | #endif | |
5194 | char libiconv_open (); | |
5195 | int | |
5196 | main () | |
5197 | { | |
5198 | return libiconv_open (); | |
5199 | ; | |
5200 | return 0; | |
5201 | } | |
5202 | _ACEOF | |
5203 | for ac_lib in '' iconv; do | |
5204 | if test -z "$ac_lib"; then | |
5205 | ac_res="none required" | |
5206 | else | |
5207 | ac_res=-l$ac_lib | |
5208 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5209 | fi | |
5210 | if ac_fn_c_try_link "$LINENO"; then : | |
5211 | ac_cv_search_libiconv_open=$ac_res | |
5212 | fi | |
5213 | rm -f core conftest.err conftest.$ac_objext \ | |
5214 | conftest$ac_exeext | |
5215 | if ${ac_cv_search_libiconv_open+:} false; then : | |
5216 | break | |
5217 | fi | |
5218 | done | |
5219 | if ${ac_cv_search_libiconv_open+:} false; then : | |
5220 | ||
5221 | else | |
5222 | ac_cv_search_libiconv_open=no | |
5223 | fi | |
5224 | rm conftest.$ac_ext | |
5225 | LIBS=$ac_func_search_save_LIBS | |
5226 | fi | |
5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5 | |
5228 | $as_echo "$ac_cv_search_libiconv_open" >&6; } | |
5229 | ac_res=$ac_cv_search_libiconv_open | |
5230 | if test "$ac_res" != no; then : | |
5231 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5232 | $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h | |
5233 | ||
5234 | SAVELIBS="$SAVELIBS $LIBS" | |
5235 | fi | |
5236 | ||
5237 | LIBS="$SAVELIBS" | |
5238 | fi | |
5239 | ||
5240 | ||
5241 | ||
5242 | LIBMXML="" | |
5243 | ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default" | |
5244 | if test "x$ac_cv_header_mxml_h" = xyes; then : | |
5245 | SAVELIBS="$LIBS" | |
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5 | |
5247 | $as_echo_n "checking for library containing mmxlNewElement... " >&6; } | |
5248 | if ${ac_cv_search_mmxlNewElement+:} false; then : | |
5249 | $as_echo_n "(cached) " >&6 | |
5250 | else | |
5251 | ac_func_search_save_LIBS=$LIBS | |
5252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5253 | /* end confdefs.h. */ | |
5254 | ||
5255 | /* Override any GCC internal prototype to avoid an error. | |
5256 | Use char because int might match the return type of a GCC | |
5257 | builtin and then its argument prototype would still apply. */ | |
5258 | #ifdef __cplusplus | |
5259 | extern "C" | |
5260 | #endif | |
5261 | char mmxlNewElement (); | |
5262 | int | |
5263 | main () | |
5264 | { | |
5265 | return mmxlNewElement (); | |
5266 | ; | |
5267 | return 0; | |
5268 | } | |
5269 | _ACEOF | |
5270 | for ac_lib in '' mxml; do | |
5271 | if test -z "$ac_lib"; then | |
5272 | ac_res="none required" | |
5273 | else | |
5274 | ac_res=-l$ac_lib | |
5275 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5276 | fi | |
5277 | if ac_fn_c_try_link "$LINENO"; then : | |
5278 | ac_cv_search_mmxlNewElement=$ac_res | |
5279 | fi | |
5280 | rm -f core conftest.err conftest.$ac_objext \ | |
5281 | conftest$ac_exeext | |
5282 | if ${ac_cv_search_mmxlNewElement+:} false; then : | |
5283 | break | |
5284 | fi | |
5285 | done | |
5286 | if ${ac_cv_search_mmxlNewElement+:} false; then : | |
5287 | ||
5288 | else | |
5289 | ac_cv_search_mmxlNewElement=no | |
5290 | fi | |
5291 | rm conftest.$ac_ext | |
5292 | LIBS=$ac_func_search_save_LIBS | |
5293 | fi | |
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5 | |
5295 | $as_echo "$ac_cv_search_mmxlNewElement" >&6; } | |
5296 | ac_res=$ac_cv_search_mmxlNewElement | |
5297 | if test "$ac_res" != no; then : | |
5298 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5299 | $as_echo "#define HAVE_MXML_H 1" >>confdefs.h | |
5300 | ||
5301 | LIBMXML="-lmxml" | |
5302 | fi | |
5303 | ||
5304 | LIBS="$SAVELIBS" | |
5305 | fi | |
5306 | ||
5307 | ||
5308 | ||
5309 | ||
5310 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" | |
5311 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | |
5312 | $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h | |
5313 | ||
5314 | fi | |
5315 | ||
5316 | ||
5317 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" | |
5318 | if test "x$ac_cv_header_sys_statfs_h" = xyes; then : | |
5319 | $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h | |
5320 | ||
5321 | fi | |
5322 | ||
5323 | ||
5324 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" | |
5325 | if test "x$ac_cv_header_sys_statvfs_h" = xyes; then : | |
5326 | $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h | |
5327 | ||
5328 | fi | |
5329 | ||
5330 | ||
5331 | ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" | |
5332 | if test "x$ac_cv_header_sys_vfs_h" = xyes; then : | |
5333 | $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h | |
5334 | ||
5335 | fi | |
5336 | ||
5337 | ||
5338 | for ac_func in statfs statvfs | |
5339 | do : | |
5340 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5341 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5342 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5343 | cat >>confdefs.h <<_ACEOF | |
5344 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5345 | _ACEOF | |
5346 | ||
5347 | fi | |
5348 | done | |
5349 | ||
5350 | ||
5351 | for ac_func in strdup strlcat strlcpy | |
5352 | do : | |
5353 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5354 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5355 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5356 | cat >>confdefs.h <<_ACEOF | |
5357 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5358 | _ACEOF | |
5359 | ||
5360 | fi | |
5361 | done | |
5362 | ||
105922ec | 5363 | if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then |
d9f356c5 MS |
5364 | echo Forcing snprintf emulation for HP-UX. |
5365 | else | |
5366 | for ac_func in snprintf vsnprintf | |
5367 | do : | |
5368 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5369 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5370 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5371 | cat >>confdefs.h <<_ACEOF | |
5372 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5373 | _ACEOF | |
5374 | ||
5375 | fi | |
5376 | done | |
5377 | ||
5378 | fi | |
5379 | ||
5380 | for ac_func in random lrand48 arc4random | |
5381 | do : | |
5382 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5383 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5384 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5385 | cat >>confdefs.h <<_ACEOF | |
5386 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5387 | _ACEOF | |
5388 | ||
5389 | fi | |
5390 | done | |
5391 | ||
5392 | ||
5393 | for ac_func in geteuid | |
5394 | do : | |
5395 | ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" | |
5396 | if test "x$ac_cv_func_geteuid" = xyes; then : | |
5397 | cat >>confdefs.h <<_ACEOF | |
5398 | #define HAVE_GETEUID 1 | |
5399 | _ACEOF | |
5400 | ||
5401 | fi | |
5402 | done | |
5403 | ||
5404 | ||
5405 | for ac_func in setpgid | |
5406 | do : | |
5407 | ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" | |
5408 | if test "x$ac_cv_func_setpgid" = xyes; then : | |
5409 | cat >>confdefs.h <<_ACEOF | |
5410 | #define HAVE_SETPGID 1 | |
5411 | _ACEOF | |
5412 | ||
5413 | fi | |
5414 | done | |
5415 | ||
5416 | ||
5417 | for ac_func in vsyslog | |
5418 | do : | |
5419 | ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog" | |
5420 | if test "x$ac_cv_func_vsyslog" = xyes; then : | |
5421 | cat >>confdefs.h <<_ACEOF | |
5422 | #define HAVE_VSYSLOG 1 | |
5423 | _ACEOF | |
5424 | ||
5425 | fi | |
5426 | done | |
5427 | ||
5428 | ||
105922ec | 5429 | case "$host_os_name" in |
827bf9ce | 5430 | linux* | gnu*) |
d9f356c5 MS |
5431 | # Do not use sigset on Linux or GNU HURD |
5432 | ;; | |
5433 | *) | |
5434 | # Use sigset on other platforms, if available | |
5435 | for ac_func in sigset | |
5436 | do : | |
5437 | ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset" | |
5438 | if test "x$ac_cv_func_sigset" = xyes; then : | |
5439 | cat >>confdefs.h <<_ACEOF | |
5440 | #define HAVE_SIGSET 1 | |
5441 | _ACEOF | |
5442 | ||
5443 | fi | |
5444 | done | |
5445 | ||
5446 | ;; | |
5447 | esac | |
5448 | ||
5449 | for ac_func in sigaction | |
5450 | do : | |
5451 | ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" | |
5452 | if test "x$ac_cv_func_sigaction" = xyes; then : | |
5453 | cat >>confdefs.h <<_ACEOF | |
5454 | #define HAVE_SIGACTION 1 | |
5455 | _ACEOF | |
5456 | ||
5457 | fi | |
5458 | done | |
5459 | ||
5460 | ||
5461 | for ac_func in waitpid wait3 | |
5462 | do : | |
5463 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5464 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5465 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5466 | cat >>confdefs.h <<_ACEOF | |
5467 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5468 | _ACEOF | |
5469 | ||
5470 | fi | |
5471 | done | |
5472 | ||
5473 | ||
5474 | for ac_func in posix_spawn | |
5475 | do : | |
5476 | ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn" | |
5477 | if test "x$ac_cv_func_posix_spawn" = xyes; then : | |
5478 | cat >>confdefs.h <<_ACEOF | |
5479 | #define HAVE_POSIX_SPAWN 1 | |
5480 | _ACEOF | |
5481 | ||
5482 | fi | |
5483 | done | |
5484 | ||
5485 | ||
6eb98aee MS |
5486 | for ac_func in getgrouplist |
5487 | do : | |
5488 | ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist" | |
5489 | if test "x$ac_cv_func_getgrouplist" = xyes; then : | |
5490 | cat >>confdefs.h <<_ACEOF | |
5491 | #define HAVE_GETGROUPLIST 1 | |
5492 | _ACEOF | |
5493 | ||
5494 | fi | |
5495 | done | |
5496 | ||
5497 | ||
d9f356c5 MS |
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5 |
5499 | $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; } | |
5500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5501 | /* end confdefs.h. */ | |
5502 | #include <time.h> | |
5503 | int | |
5504 | main () | |
5505 | { | |
5506 | struct tm t; | |
5507 | int o = t.tm_gmtoff; | |
5508 | ; | |
5509 | return 0; | |
5510 | } | |
5511 | _ACEOF | |
5512 | if ac_fn_c_try_compile "$LINENO"; then : | |
5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5514 | $as_echo "yes" >&6; } | |
5515 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h | |
5516 | ||
5517 | else | |
5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5519 | $as_echo "no" >&6; } | |
5520 | fi | |
5521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5522 | ||
5523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5 | |
5524 | $as_echo_n "checking for st_gen member in stat structure... " >&6; } | |
5525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5526 | /* end confdefs.h. */ | |
5527 | #include <sys/stat.h> | |
5528 | int | |
5529 | main () | |
5530 | { | |
5531 | struct stat t; | |
5532 | int o = t.st_gen; | |
5533 | ; | |
5534 | return 0; | |
5535 | } | |
5536 | _ACEOF | |
5537 | if ac_fn_c_try_compile "$LINENO"; then : | |
5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5539 | $as_echo "yes" >&6; } | |
5540 | $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h | |
5541 | ||
5542 | else | |
5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5544 | $as_echo "no" >&6; } | |
5545 | fi | |
5546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5547 | ||
5548 | for ac_func in removefile | |
5549 | do : | |
5550 | ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile" | |
5551 | if test "x$ac_cv_func_removefile" = xyes; then : | |
5552 | cat >>confdefs.h <<_ACEOF | |
5553 | #define HAVE_REMOVEFILE 1 | |
5554 | _ACEOF | |
5555 | ||
5556 | fi | |
5557 | done | |
5558 | ||
5559 | ||
5560 | # Check whether --enable-libusb was given. | |
5561 | if test "${enable_libusb+set}" = set; then : | |
5562 | enableval=$enable_libusb; | |
5563 | fi | |
5564 | ||
5565 | ||
5566 | LIBUSB="" | |
5567 | USBQUIRKS="" | |
5568 | ||
5569 | ||
5570 | ||
5571 | if test "x$PKGCONFIG" != x; then | |
105922ec | 5572 | if test x$enable_libusb != xno -a $host_os_name != darwin; then |
d9f356c5 MS |
5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5 |
5574 | $as_echo_n "checking for libusb-1.0... " >&6; } | |
5575 | if $PKGCONFIG --exists libusb-1.0; then | |
5576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5577 | $as_echo "yes" >&6; } | |
5578 | $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h | |
5579 | ||
5580 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0`" | |
5581 | LIBUSB="`$PKGCONFIG --libs libusb-1.0`" | |
5582 | USBQUIRKS="\$(DATADIR)/usb" | |
5583 | else | |
5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5585 | $as_echo "no" >&6; } | |
5586 | if test x$enable_libusb = xyes; then | |
5587 | as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5 | |
5588 | fi | |
5589 | fi | |
5590 | fi | |
5591 | elif test x$enable_libusb = xyes; then | |
5592 | as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5 | |
5593 | fi | |
5594 | ||
5595 | # Check whether --enable-tcp_wrappers was given. | |
5596 | if test "${enable_tcp_wrappers+set}" = set; then : | |
5597 | enableval=$enable_tcp_wrappers; | |
5598 | fi | |
5599 | ||
5600 | ||
5601 | LIBWRAP="" | |
5602 | ||
5603 | ||
5604 | if test x$enable_tcp_wrappers = xyes; then | |
5605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5 | |
5606 | $as_echo_n "checking for hosts_access in -lwrap... " >&6; } | |
5607 | if ${ac_cv_lib_wrap_hosts_access+:} false; then : | |
5608 | $as_echo_n "(cached) " >&6 | |
5609 | else | |
5610 | ac_check_lib_save_LIBS=$LIBS | |
5611 | LIBS="-lwrap $LIBS" | |
5612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5613 | /* end confdefs.h. */ | |
5614 | ||
5615 | /* Override any GCC internal prototype to avoid an error. | |
5616 | Use char because int might match the return type of a GCC | |
5617 | builtin and then its argument prototype would still apply. */ | |
5618 | #ifdef __cplusplus | |
5619 | extern "C" | |
5620 | #endif | |
5621 | char hosts_access (); | |
5622 | int | |
5623 | main () | |
5624 | { | |
5625 | return hosts_access (); | |
5626 | ; | |
5627 | return 0; | |
5628 | } | |
5629 | _ACEOF | |
5630 | if ac_fn_c_try_link "$LINENO"; then : | |
5631 | ac_cv_lib_wrap_hosts_access=yes | |
5632 | else | |
5633 | ac_cv_lib_wrap_hosts_access=no | |
5634 | fi | |
5635 | rm -f core conftest.err conftest.$ac_objext \ | |
5636 | conftest$ac_exeext conftest.$ac_ext | |
5637 | LIBS=$ac_check_lib_save_LIBS | |
5638 | fi | |
5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5 | |
5640 | $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; } | |
5641 | if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then : | |
5642 | ||
5643 | ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default" | |
5644 | if test "x$ac_cv_header_tcpd_h" = xyes; then : | |
5645 | $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h | |
5646 | ||
5647 | LIBWRAP="-lwrap" | |
5648 | fi | |
5649 | ||
5650 | ||
5651 | fi | |
5652 | ||
5653 | fi | |
5654 | ||
5655 | INSTALL_GZIP="" | |
5656 | LIBZ="" | |
5657 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
5658 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5 | |
5660 | $as_echo_n "checking for gzgets in -lz... " >&6; } | |
5661 | if ${ac_cv_lib_z_gzgets+:} false; then : | |
5662 | $as_echo_n "(cached) " >&6 | |
5663 | else | |
5664 | ac_check_lib_save_LIBS=$LIBS | |
5665 | LIBS="-lz $LIBS" | |
5666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5667 | /* end confdefs.h. */ | |
5668 | ||
5669 | /* Override any GCC internal prototype to avoid an error. | |
5670 | Use char because int might match the return type of a GCC | |
5671 | builtin and then its argument prototype would still apply. */ | |
5672 | #ifdef __cplusplus | |
5673 | extern "C" | |
5674 | #endif | |
5675 | char gzgets (); | |
5676 | int | |
5677 | main () | |
5678 | { | |
5679 | return gzgets (); | |
5680 | ; | |
5681 | return 0; | |
5682 | } | |
5683 | _ACEOF | |
5684 | if ac_fn_c_try_link "$LINENO"; then : | |
5685 | ac_cv_lib_z_gzgets=yes | |
5686 | else | |
5687 | ac_cv_lib_z_gzgets=no | |
5688 | fi | |
5689 | rm -f core conftest.err conftest.$ac_objext \ | |
5690 | conftest$ac_exeext conftest.$ac_ext | |
5691 | LIBS=$ac_check_lib_save_LIBS | |
5692 | fi | |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5 | |
5694 | $as_echo "$ac_cv_lib_z_gzgets" >&6; } | |
5695 | if test "x$ac_cv_lib_z_gzgets" = xyes; then : | |
5696 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h | |
5697 | ||
5698 | LIBZ="-lz" | |
5699 | LIBS="$LIBS -lz" | |
5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | |
5701 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | |
5702 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | |
5703 | $as_echo_n "(cached) " >&6 | |
5704 | else | |
5705 | ac_check_lib_save_LIBS=$LIBS | |
5706 | LIBS="-lz $LIBS" | |
5707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5708 | /* end confdefs.h. */ | |
5709 | ||
5710 | /* Override any GCC internal prototype to avoid an error. | |
5711 | Use char because int might match the return type of a GCC | |
5712 | builtin and then its argument prototype would still apply. */ | |
5713 | #ifdef __cplusplus | |
5714 | extern "C" | |
5715 | #endif | |
5716 | char inflateCopy (); | |
5717 | int | |
5718 | main () | |
5719 | { | |
5720 | return inflateCopy (); | |
5721 | ; | |
5722 | return 0; | |
5723 | } | |
5724 | _ACEOF | |
5725 | if ac_fn_c_try_link "$LINENO"; then : | |
5726 | ac_cv_lib_z_inflateCopy=yes | |
5727 | else | |
5728 | ac_cv_lib_z_inflateCopy=no | |
5729 | fi | |
5730 | rm -f core conftest.err conftest.$ac_objext \ | |
5731 | conftest$ac_exeext conftest.$ac_ext | |
5732 | LIBS=$ac_check_lib_save_LIBS | |
5733 | fi | |
5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | |
5735 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | |
5736 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | |
5737 | $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h | |
5738 | ||
5739 | fi | |
5740 | ||
5741 | if test "x$GZIP" != z; then | |
5742 | INSTALL_GZIP="-z" | |
5743 | fi | |
5744 | fi | |
5745 | ||
5746 | fi | |
5747 | ||
5748 | ||
5749 | ||
5750 | ||
5751 | ||
105922ec MS |
5752 | case $host_os_name in |
5753 | darwin* | *bsd*) | |
d9f356c5 MS |
5754 | ARFLAGS="-rcv" |
5755 | ;; | |
5756 | *) | |
5757 | ARFLAGS="crvs" | |
5758 | ;; | |
5759 | esac | |
5760 | ||
5761 | ||
5762 | ||
5763 | BACKLIBS="" | |
5764 | SERVERLIBS="" | |
5765 | ||
5766 | ||
5767 | ||
5768 | SAVELIBS="$LIBS" | |
5769 | LIBS="" | |
5770 | # Check whether --enable-acl was given. | |
5771 | if test "${enable_acl+set}" = set; then : | |
5772 | enableval=$enable_acl; | |
5773 | fi | |
5774 | ||
5775 | if test "x$enable_acl" != xno; then | |
5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5 | |
5777 | $as_echo_n "checking for library containing acl_init... " >&6; } | |
5778 | if ${ac_cv_search_acl_init+:} false; then : | |
5779 | $as_echo_n "(cached) " >&6 | |
5780 | else | |
5781 | ac_func_search_save_LIBS=$LIBS | |
5782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5783 | /* end confdefs.h. */ | |
5784 | ||
5785 | /* Override any GCC internal prototype to avoid an error. | |
5786 | Use char because int might match the return type of a GCC | |
5787 | builtin and then its argument prototype would still apply. */ | |
5788 | #ifdef __cplusplus | |
5789 | extern "C" | |
5790 | #endif | |
5791 | char acl_init (); | |
5792 | int | |
5793 | main () | |
5794 | { | |
5795 | return acl_init (); | |
5796 | ; | |
5797 | return 0; | |
5798 | } | |
5799 | _ACEOF | |
5800 | for ac_lib in '' acl; do | |
5801 | if test -z "$ac_lib"; then | |
5802 | ac_res="none required" | |
5803 | else | |
5804 | ac_res=-l$ac_lib | |
5805 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5806 | fi | |
5807 | if ac_fn_c_try_link "$LINENO"; then : | |
5808 | ac_cv_search_acl_init=$ac_res | |
5809 | fi | |
5810 | rm -f core conftest.err conftest.$ac_objext \ | |
5811 | conftest$ac_exeext | |
5812 | if ${ac_cv_search_acl_init+:} false; then : | |
5813 | break | |
5814 | fi | |
5815 | done | |
5816 | if ${ac_cv_search_acl_init+:} false; then : | |
5817 | ||
5818 | else | |
5819 | ac_cv_search_acl_init=no | |
5820 | fi | |
5821 | rm conftest.$ac_ext | |
5822 | LIBS=$ac_func_search_save_LIBS | |
5823 | fi | |
5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5 | |
5825 | $as_echo "$ac_cv_search_acl_init" >&6; } | |
5826 | ac_res=$ac_cv_search_acl_init | |
5827 | if test "$ac_res" != no; then : | |
5828 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5829 | $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h | |
5830 | ||
5831 | fi | |
5832 | ||
5833 | SERVERLIBS="$SERVERLIBS $LIBS" | |
5834 | fi | |
5835 | LIBS="$SAVELIBS" | |
5836 | ||
5837 | # Check whether --enable-dbus was given. | |
5838 | if test "${enable_dbus+set}" = set; then : | |
5839 | enableval=$enable_dbus; | |
5840 | fi | |
5841 | ||
5842 | ||
5843 | # Check whether --with-dbusdir was given. | |
5844 | if test "${with_dbusdir+set}" = set; then : | |
5845 | withval=$with_dbusdir; DBUSDIR="$withval" | |
5846 | fi | |
5847 | ||
5848 | ||
5849 | DBUSDIR="" | |
5850 | DBUS_NOTIFIER="" | |
5851 | DBUS_NOTIFIERLIBS="" | |
5852 | ||
105922ec | 5853 | if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then |
d9f356c5 MS |
5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 |
5855 | $as_echo_n "checking for DBUS... " >&6; } | |
5856 | if $PKGCONFIG --exists dbus-1; then | |
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5858 | $as_echo "yes" >&6; } | |
5859 | $as_echo "#define HAVE_DBUS 1" >>confdefs.h | |
5860 | ||
5861 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE" | |
5862 | SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1`" | |
5863 | DBUS_NOTIFIER="dbus" | |
5864 | DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1`" | |
5865 | SAVELIBS="$LIBS" | |
5866 | LIBS="$LIBS $DBUS_NOTIFIERLIBS" | |
5867 | ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append" | |
5868 | if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then : | |
5869 | $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h | |
5870 | ||
5871 | fi | |
5872 | ||
5873 | ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init" | |
5874 | if test "x$ac_cv_func_dbus_threads_init" = xyes; then : | |
5875 | $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h | |
5876 | ||
5877 | fi | |
5878 | ||
5879 | LIBS="$SAVELIBS" | |
5880 | if test -d /etc/dbus-1; then | |
5881 | DBUSDIR="/etc/dbus-1" | |
5882 | fi | |
5883 | else | |
5884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5885 | $as_echo "no" >&6; } | |
5886 | fi | |
5887 | fi | |
5888 | ||
5889 | ||
5890 | ||
5891 | ||
5892 | ||
5893 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM" | |
5894 | CUPS_DEFAULT_SYSTEM_AUTHKEY="" | |
5895 | CUPS_SYSTEM_AUTHKEY="" | |
5896 | INSTALLXPC="" | |
5897 | ||
105922ec MS |
5898 | case $host_os_name in |
5899 | darwin*) | |
d9f356c5 MS |
5900 | BACKLIBS="$BACKLIBS -framework IOKit" |
5901 | SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices" | |
5902 | LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS" | |
5903 | ||
5904 | ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default" | |
5905 | if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then : | |
5906 | $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h | |
5907 | ||
5908 | fi | |
5909 | ||
5910 | ||
5911 | ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default" | |
5912 | if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then : | |
5913 | $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h | |
5914 | ||
5915 | fi | |
5916 | ||
5917 | ||
5918 | ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default" | |
5919 | if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then : | |
5920 | $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h | |
5921 | ||
5922 | fi | |
5923 | ||
5924 | ||
5925 | ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default" | |
5926 | if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then : | |
5927 | $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h | |
5928 | ||
5929 | fi | |
5930 | ||
5931 | ||
5932 | ||
5933 | for ac_func in SCDynamicStoreCopyComputerName | |
5934 | do : | |
5935 | ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName" | |
5936 | if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then : | |
5937 | cat >>confdefs.h <<_ACEOF | |
5938 | #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1 | |
5939 | _ACEOF | |
5940 | ||
5941 | fi | |
5942 | done | |
5943 | ||
5944 | ||
5945 | ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default" | |
5946 | if test "x$ac_cv_header_membership_h" = xyes; then : | |
5947 | $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h | |
5948 | ||
5949 | fi | |
5950 | ||
5951 | ||
5952 | ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default" | |
5953 | if test "x$ac_cv_header_membershipPriv_h" = xyes; then : | |
5954 | $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h | |
5955 | ||
5956 | fi | |
5957 | ||
5958 | ||
5959 | for ac_func in mbr_uid_to_uuid | |
5960 | do : | |
5961 | ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid" | |
5962 | if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then : | |
5963 | cat >>confdefs.h <<_ACEOF | |
5964 | #define HAVE_MBR_UID_TO_UUID 1 | |
5965 | _ACEOF | |
5966 | ||
5967 | fi | |
5968 | done | |
5969 | ||
5970 | ||
5971 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
5972 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
5973 | $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h | |
5974 | ||
5975 | fi | |
5976 | ||
5977 | ||
5978 | ||
5979 | ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default" | |
5980 | if test "x$ac_cv_header_notify_h" = xyes; then : | |
5981 | $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h | |
5982 | ||
5983 | fi | |
5984 | ||
5985 | ||
5986 | for ac_func in notify_post | |
5987 | do : | |
5988 | ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post" | |
5989 | if test "x$ac_cv_func_notify_post" = xyes; then : | |
5990 | cat >>confdefs.h <<_ACEOF | |
5991 | #define HAVE_NOTIFY_POST 1 | |
5992 | _ACEOF | |
5993 | ||
5994 | fi | |
5995 | done | |
5996 | ||
5997 | ||
5998 | ||
5999 | # Check whether --with-adminkey was given. | |
6000 | if test "${with_adminkey+set}" = set; then : | |
6001 | withval=$with_adminkey; default_adminkey="$withval" | |
6002 | else | |
6003 | default_adminkey="default" | |
6004 | fi | |
6005 | ||
6006 | ||
6007 | # Check whether --with-operkey was given. | |
6008 | if test "${with_operkey+set}" = set; then : | |
6009 | withval=$with_operkey; default_operkey="$withval" | |
6010 | else | |
6011 | default_operkey="default" | |
6012 | fi | |
6013 | ||
6014 | ||
6015 | ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default" | |
6016 | if test "x$ac_cv_header_Security_Authorization_h" = xyes; then : | |
6017 | ||
6018 | $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h | |
6019 | ||
6020 | ||
6021 | if test "x$default_adminkey" != xdefault; then | |
6022 | CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey" | |
6023 | CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey" | |
b94f7488 | 6024 | else |
d9f356c5 MS |
6025 | CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin" |
6026 | CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin" | |
d9f356c5 MS |
6027 | fi |
6028 | ||
6029 | if test "x$default_operkey" != xdefault; then | |
6030 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin" | |
d9f356c5 | 6031 | else |
b94f7488 | 6032 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin" |
d9f356c5 MS |
6033 | fi |
6034 | fi | |
6035 | ||
6036 | ||
6037 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default" | |
6038 | if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then : | |
6039 | $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h | |
6040 | ||
6041 | fi | |
6042 | ||
6043 | ||
6044 | ||
105922ec | 6045 | if test $host_os_version -ge 100; then |
d9f356c5 MS |
6046 | ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" |
6047 | if test "x$ac_cv_header_sandbox_h" = xyes; then : | |
6048 | $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h | |
6049 | ||
6050 | fi | |
6051 | ||
6052 | ||
6053 | fi | |
105922ec | 6054 | if test $host_os_version -ge 110 -a $host_os_version -lt 120; then |
d9f356c5 MS |
6055 | # Broken public headers in 10.7.x... |
6056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5 | |
6057 | $as_echo_n "checking for sandbox/private.h presence... " >&6; } | |
6058 | if test -f /usr/local/include/sandbox/private.h; then | |
6059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6060 | $as_echo "yes" >&6; } | |
6061 | else | |
6062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6063 | $as_echo "no" >&6; } | |
6064 | 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 | |
6065 | fi | |
6066 | fi | |
6067 | ||
6068 | ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default" | |
6069 | if test "x$ac_cv_header_xpc_xpc_h" = xyes; then : | |
6070 | $as_echo "#define HAVE_XPC 1" >>confdefs.h | |
6071 | ||
6072 | INSTALLXPC="install-xpc" | |
6073 | fi | |
6074 | ||
6075 | ||
6076 | ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default" | |
6077 | if test "x$ac_cv_header_xpc_private_h" = xyes; then : | |
6078 | $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h | |
6079 | ||
6080 | fi | |
6081 | ||
6082 | ||
6083 | ;; | |
6084 | esac | |
6085 | ||
6086 | ||
6087 | cat >>confdefs.h <<_ACEOF | |
6088 | #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH" | |
6089 | _ACEOF | |
6090 | ||
6091 | cat >>confdefs.h <<_ACEOF | |
6092 | #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY" | |
6093 | _ACEOF | |
6094 | ||
6095 | ||
6096 | ||
6097 | ||
6098 | COMPONENTS="all" | |
6099 | ||
6100 | ||
6101 | # Check whether --with-components was given. | |
6102 | if test "${with_components+set}" = set; then : | |
6103 | withval=$with_components; COMPONENTS="$withval" | |
6104 | fi | |
6105 | ||
6106 | ||
58b64dbb MS |
6107 | cupsimagebase="cupsimage" |
6108 | LIBCUPSOBJS="\$(COREOBJS) \$(DRIVEROBJS)" | |
d9f356c5 MS |
6109 | case "$COMPONENTS" in |
6110 | all) | |
171c38f2 | 6111 | BUILDDIRS="test filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates" |
d9f356c5 MS |
6112 | ;; |
6113 | ||
6114 | core) | |
171c38f2 MS |
6115 | BUILDDIRS="test locale" |
6116 | ;; | |
6117 | ||
6118 | libcups) | |
6119 | BUILDDIRS="locale" | |
58b64dbb MS |
6120 | cupsimagebase="" |
6121 | ;; | |
6122 | ||
6123 | libcupslite) | |
6124 | BUILDDIRS="locale" | |
6125 | cupsimagebase="" | |
6126 | LIBCUPSOBJS="\$(COREOBJS)" | |
d9f356c5 MS |
6127 | ;; |
6128 | ||
6129 | *) | |
6130 | as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5 | |
6131 | ;; | |
6132 | esac | |
6133 | ||
6134 | ||
6135 | ||
6136 | ||
6137 | ||
6138 | ||
58b64dbb | 6139 | |
d9f356c5 MS |
6140 | if test "$prefix" = "NONE"; then |
6141 | prefix="/" | |
6142 | fi | |
6143 | ||
6144 | if test "$exec_prefix" = "NONE"; then | |
6145 | if test "$prefix" = "/"; then | |
6146 | exec_prefix="/usr" | |
6147 | else | |
6148 | exec_prefix="$prefix" | |
6149 | fi | |
6150 | fi | |
6151 | ||
6152 | if test "$bindir" = "\${exec_prefix}/bin"; then | |
6153 | bindir="$exec_prefix/bin" | |
6154 | fi | |
6155 | ||
6156 | cat >>confdefs.h <<_ACEOF | |
6157 | #define CUPS_BINDIR "$bindir" | |
6158 | _ACEOF | |
6159 | ||
6160 | ||
6161 | if test "$sbindir" = "\${exec_prefix}/sbin"; then | |
6162 | sbindir="$exec_prefix/sbin" | |
6163 | fi | |
6164 | ||
6165 | cat >>confdefs.h <<_ACEOF | |
6166 | #define CUPS_SBINDIR "$sbindir" | |
6167 | _ACEOF | |
6168 | ||
6169 | ||
6170 | if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then | |
6171 | sharedstatedir="/usr/com" | |
6172 | fi | |
6173 | ||
6174 | if test "$datarootdir" = "\${prefix}/share"; then | |
6175 | if test "$prefix" = "/"; then | |
6176 | datarootdir="/usr/share" | |
6177 | else | |
6178 | datarootdir="$prefix/share" | |
6179 | fi | |
6180 | fi | |
6181 | ||
6182 | if test "$datadir" = "\${prefix}/share"; then | |
6183 | if test "$prefix" = "/"; then | |
6184 | datadir="/usr/share" | |
6185 | else | |
6186 | datadir="$prefix/share" | |
6187 | fi | |
6188 | elif test "$datadir" = "\${datarootdir}"; then | |
6189 | datadir="$datarootdir" | |
6190 | fi | |
6191 | ||
6192 | if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then | |
6193 | includedir="/usr/include" | |
6194 | fi | |
6195 | ||
6196 | if test "$localstatedir" = "\${prefix}/var"; then | |
6197 | if test "$prefix" = "/"; then | |
105922ec | 6198 | if test "$host_os_name" = darwin; then |
d9f356c5 MS |
6199 | localstatedir="/private/var" |
6200 | else | |
6201 | localstatedir="/var" | |
6202 | fi | |
6203 | else | |
6204 | localstatedir="$prefix/var" | |
6205 | fi | |
6206 | fi | |
6207 | ||
6208 | if test "$sysconfdir" = "\${prefix}/etc"; then | |
6209 | if test "$prefix" = "/"; then | |
105922ec | 6210 | if test "$host_os_name" = darwin; then |
d9f356c5 MS |
6211 | sysconfdir="/private/etc" |
6212 | else | |
6213 | sysconfdir="/etc" | |
6214 | fi | |
6215 | else | |
6216 | sysconfdir="$prefix/etc" | |
6217 | fi | |
6218 | fi | |
6219 | ||
6220 | if test "$libdir" = "\${exec_prefix}/lib"; then | |
105922ec MS |
6221 | case "$host_os_name" in |
6222 | linux*) | |
d9f356c5 MS |
6223 | if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then |
6224 | libdir="$exec_prefix/lib64" | |
6225 | fi | |
6226 | ;; | |
6227 | esac | |
6228 | fi | |
6229 | ||
6230 | ||
6231 | # Check whether --with-privateinclude was given. | |
6232 | if test "${with_privateinclude+set}" = set; then : | |
6233 | withval=$with_privateinclude; privateinclude="$withval" | |
6234 | else | |
6235 | privateinclude="" | |
6236 | fi | |
6237 | ||
6238 | if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then | |
6239 | PRIVATEINCLUDE="$privateinclude/cups" | |
6240 | else | |
6241 | privateinclude="" | |
6242 | PRIVATEINCLUDE="" | |
6243 | fi | |
6244 | ||
6245 | ||
6246 | ||
6247 | ||
6248 | # Check whether --with-lpdconfig was given. | |
6249 | if test "${with_lpdconfig+set}" = set; then : | |
6250 | withval=$with_lpdconfig; LPDCONFIG="$withval" | |
6251 | else | |
6252 | LPDCONFIG="" | |
6253 | fi | |
6254 | ||
6255 | ||
6256 | if test "x$LPDCONFIG" = x; then | |
6257 | if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then | |
6258 | LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist" | |
6259 | elif test "x$XINETD" != x; then | |
6260 | LPDCONFIG="xinetd://$XINETD/cups-lpd" | |
6261 | fi | |
6262 | fi | |
6263 | ||
6264 | if test "x$LPDCONFIG" = xoff; then | |
6265 | cat >>confdefs.h <<_ACEOF | |
6266 | #define CUPS_DEFAULT_LPD_CONFIG "" | |
6267 | _ACEOF | |
6268 | ||
6269 | else | |
6270 | cat >>confdefs.h <<_ACEOF | |
6271 | #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG" | |
6272 | _ACEOF | |
6273 | ||
6274 | fi | |
6275 | ||
6276 | ||
6277 | # Check whether --with-smbconfig was given. | |
6278 | if test "${with_smbconfig+set}" = set; then : | |
6279 | withval=$with_smbconfig; SMBCONFIG="$withval" | |
6280 | else | |
6281 | SMBCONFIG="" | |
6282 | fi | |
6283 | ||
6284 | ||
6285 | if test "x$SMBCONFIG" = x; then | |
6286 | if test -f /System/Library/LaunchDaemons/smbd.plist; then | |
6287 | SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist" | |
6288 | else | |
6289 | for dir in /etc /etc/samba /usr/local/etc; do | |
6290 | if test -f $dir/smb.conf; then | |
6291 | SMBCONFIG="samba://$dir/smb.conf" | |
6292 | break | |
6293 | fi | |
6294 | done | |
6295 | fi | |
6296 | fi | |
6297 | ||
6298 | if test "x$SMBCONFIG" = xoff; then | |
6299 | cat >>confdefs.h <<_ACEOF | |
6300 | #define CUPS_DEFAULT_SMB_CONFIG "" | |
6301 | _ACEOF | |
6302 | ||
6303 | else | |
6304 | cat >>confdefs.h <<_ACEOF | |
6305 | #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG" | |
6306 | _ACEOF | |
6307 | ||
6308 | fi | |
6309 | ||
6310 | # Cache data... | |
6311 | ||
6312 | # Check whether --with-cachedir was given. | |
6313 | if test "${with_cachedir+set}" = set; then : | |
6314 | withval=$with_cachedir; cachedir="$withval" | |
6315 | else | |
6316 | cachedir="" | |
6317 | fi | |
6318 | ||
6319 | ||
6320 | if test x$cachedir = x; then | |
105922ec | 6321 | if test "x$host_os_name" = xdarwin; then |
d9f356c5 MS |
6322 | CUPS_CACHEDIR="$localstatedir/spool/cups/cache" |
6323 | else | |
6324 | CUPS_CACHEDIR="$localstatedir/cache/cups" | |
6325 | fi | |
6326 | else | |
6327 | CUPS_CACHEDIR="$cachedir" | |
6328 | fi | |
6329 | cat >>confdefs.h <<_ACEOF | |
6330 | #define CUPS_CACHEDIR "$CUPS_CACHEDIR" | |
6331 | _ACEOF | |
6332 | ||
6333 | ||
6334 | ||
6335 | # Data files | |
6336 | CUPS_DATADIR="$datadir/cups" | |
6337 | cat >>confdefs.h <<_ACEOF | |
6338 | #define CUPS_DATADIR "$datadir/cups" | |
6339 | _ACEOF | |
6340 | ||
6341 | ||
6342 | ||
6343 | # Icon directory | |
6344 | ||
6345 | # Check whether --with-icondir was given. | |
6346 | if test "${with_icondir+set}" = set; then : | |
6347 | withval=$with_icondir; icondir="$withval" | |
6348 | else | |
6349 | icondir="" | |
6350 | fi | |
6351 | ||
6352 | ||
6353 | if test "x$icondir" = x -a -d /usr/share/icons; then | |
6354 | ICONDIR="/usr/share/icons" | |
6355 | else | |
6356 | ICONDIR="$icondir" | |
6357 | fi | |
6358 | ||
6359 | ||
6360 | ||
6361 | # Menu directory | |
6362 | ||
6363 | # Check whether --with-menudir was given. | |
6364 | if test "${with_menudir+set}" = set; then : | |
6365 | withval=$with_menudir; menudir="$withval" | |
6366 | else | |
6367 | menudir="" | |
6368 | fi | |
6369 | ||
6370 | ||
6371 | if test "x$menudir" = x -a -d /usr/share/applications; then | |
6372 | MENUDIR="/usr/share/applications" | |
6373 | else | |
6374 | MENUDIR="$menudir" | |
6375 | fi | |
6376 | ||
6377 | ||
6378 | ||
6379 | # Documentation files | |
6380 | ||
6381 | # Check whether --with-docdir was given. | |
6382 | if test "${with_docdir+set}" = set; then : | |
6383 | withval=$with_docdir; docdir="$withval" | |
6384 | else | |
6385 | docdir="" | |
6386 | fi | |
6387 | ||
6388 | ||
6389 | if test x$docdir = x; then | |
6390 | CUPS_DOCROOT="$datadir/doc/cups" | |
6391 | docdir="$datadir/doc/cups" | |
6392 | else | |
6393 | CUPS_DOCROOT="$docdir" | |
6394 | fi | |
6395 | ||
6396 | cat >>confdefs.h <<_ACEOF | |
6397 | #define CUPS_DOCROOT "$docdir" | |
6398 | _ACEOF | |
6399 | ||
6400 | ||
6401 | ||
6402 | # Fonts | |
6403 | ||
6404 | # Check whether --with-fontpath was given. | |
6405 | if test "${with_fontpath+set}" = set; then : | |
6406 | withval=$with_fontpath; fontpath="$withval" | |
6407 | else | |
6408 | fontpath="" | |
6409 | fi | |
6410 | ||
6411 | ||
6412 | if test "x$fontpath" = "x"; then | |
6413 | CUPS_FONTPATH="$datadir/cups/fonts" | |
6414 | else | |
6415 | CUPS_FONTPATH="$fontpath" | |
6416 | fi | |
6417 | ||
6418 | ||
6419 | cat >>confdefs.h <<_ACEOF | |
6420 | #define CUPS_FONTPATH "$CUPS_FONTPATH" | |
6421 | _ACEOF | |
6422 | ||
6423 | ||
6424 | # Locale data | |
6425 | if test "$localedir" = "\${datarootdir}/locale"; then | |
105922ec | 6426 | case "$host_os_name" in |
827bf9ce | 6427 | linux* | gnu* | *bsd* | darwin*) |
d9f356c5 MS |
6428 | CUPS_LOCALEDIR="$datarootdir/locale" |
6429 | ;; | |
6430 | ||
6431 | *) | |
6432 | # This is the standard System V location... | |
6433 | CUPS_LOCALEDIR="$exec_prefix/lib/locale" | |
6434 | ;; | |
6435 | esac | |
6436 | else | |
6437 | CUPS_LOCALEDIR="$localedir" | |
6438 | fi | |
6439 | ||
6440 | cat >>confdefs.h <<_ACEOF | |
6441 | #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR" | |
6442 | _ACEOF | |
6443 | ||
6444 | ||
6445 | ||
6446 | # Log files... | |
6447 | ||
6448 | # Check whether --with-logdir was given. | |
6449 | if test "${with_logdir+set}" = set; then : | |
6450 | withval=$with_logdir; logdir="$withval" | |
6451 | else | |
6452 | logdir="" | |
6453 | fi | |
6454 | ||
6455 | ||
6456 | if test x$logdir = x; then | |
6457 | CUPS_LOGDIR="$localstatedir/log/cups" | |
6458 | cat >>confdefs.h <<_ACEOF | |
6459 | #define CUPS_LOGDIR "$localstatedir/log/cups" | |
6460 | _ACEOF | |
6461 | ||
6462 | else | |
6463 | CUPS_LOGDIR="$logdir" | |
6464 | fi | |
6465 | cat >>confdefs.h <<_ACEOF | |
6466 | #define CUPS_LOGDIR "$CUPS_LOGDIR" | |
6467 | _ACEOF | |
6468 | ||
6469 | ||
6470 | ||
6471 | # Longer-term spool data | |
6472 | CUPS_REQUESTS="$localstatedir/spool/cups" | |
6473 | cat >>confdefs.h <<_ACEOF | |
6474 | #define CUPS_REQUESTS "$localstatedir/spool/cups" | |
6475 | _ACEOF | |
6476 | ||
6477 | ||
6478 | ||
6479 | # Server executables... | |
105922ec MS |
6480 | case "$host_os_name" in |
6481 | *bsd* | darwin*) | |
d4874933 | 6482 | # *BSD and Darwin (macOS) |
d9f356c5 MS |
6483 | INSTALL_SYSV="" |
6484 | CUPS_SERVERBIN="$exec_prefix/libexec/cups" | |
6485 | ;; | |
6486 | *) | |
6487 | # All others | |
6488 | INSTALL_SYSV="install-sysv" | |
6489 | CUPS_SERVERBIN="$exec_prefix/lib/cups" | |
6490 | ;; | |
6491 | esac | |
6492 | ||
6493 | cat >>confdefs.h <<_ACEOF | |
6494 | #define CUPS_SERVERBIN "$CUPS_SERVERBIN" | |
6495 | _ACEOF | |
6496 | ||
6497 | ||
6498 | ||
6499 | ||
6500 | # Configuration files | |
6501 | CUPS_SERVERROOT="$sysconfdir/cups" | |
6502 | cat >>confdefs.h <<_ACEOF | |
6503 | #define CUPS_SERVERROOT "$sysconfdir/cups" | |
6504 | _ACEOF | |
6505 | ||
6506 | ||
6507 | ||
6508 | # Transient run-time state | |
6509 | ||
6510 | # Check whether --with-rundir was given. | |
6511 | if test "${with_rundir+set}" = set; then : | |
6512 | withval=$with_rundir; CUPS_STATEDIR="$withval" | |
6513 | else | |
6514 | ||
105922ec MS |
6515 | case "$host_os_name" in |
6516 | darwin*) | |
8072030b | 6517 | # Darwin (macOS) |
d9f356c5 MS |
6518 | CUPS_STATEDIR="$CUPS_SERVERROOT" |
6519 | ;; | |
6520 | *) | |
6521 | # All others | |
6522 | CUPS_STATEDIR="$localstatedir/run/cups" | |
6523 | ;; | |
6524 | esac | |
6525 | fi | |
6526 | ||
6527 | cat >>confdefs.h <<_ACEOF | |
6528 | #define CUPS_STATEDIR "$CUPS_STATEDIR" | |
6529 | _ACEOF | |
6530 | ||
6531 | ||
6532 | ||
6533 | ||
d9f356c5 MS |
6534 | if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then |
6535 | # New GNU "standards" break previous ones, so make sure we use | |
6536 | # the right default location for the operating system... | |
6537 | mandir="\${prefix}/man" | |
6538 | fi | |
6539 | ||
6540 | if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then | |
105922ec | 6541 | case "$host_os_name" in |
4466c8ca | 6542 | darwin* | linux* | gnu* | *bsd*) |
d4874933 | 6543 | # Darwin, macOS, Linux, GNU HURD, and *BSD |
d9f356c5 MS |
6544 | mandir="/usr/share/man" |
6545 | AMANDIR="/usr/share/man" | |
6546 | PMANDIR="/usr/share/man" | |
6547 | ;; | |
6548 | *) | |
6549 | # All others | |
6550 | mandir="/usr/man" | |
6551 | AMANDIR="/usr/man" | |
6552 | PMANDIR="/usr/man" | |
6553 | ;; | |
6554 | esac | |
6555 | else | |
6556 | AMANDIR="$mandir" | |
6557 | PMANDIR="$mandir" | |
6558 | fi | |
6559 | ||
6560 | ||
6561 | ||
6562 | ||
105922ec MS |
6563 | case "$host_os_name" in |
6564 | sunos*) | |
d9f356c5 MS |
6565 | # Solaris |
6566 | MAN1EXT=1 | |
6567 | MAN5EXT=5 | |
6568 | MAN7EXT=7 | |
6569 | MAN8EXT=1m | |
6570 | MAN8DIR=1m | |
6571 | ;; | |
105922ec | 6572 | linux* | gnu* | darwin*) |
8072030b | 6573 | # Linux, GNU Hurd, and macOS |
d9f356c5 MS |
6574 | MAN1EXT=1.gz |
6575 | MAN5EXT=5.gz | |
6576 | MAN7EXT=7.gz | |
6577 | MAN8EXT=8.gz | |
6578 | MAN8DIR=8 | |
6579 | ;; | |
6580 | *) | |
6581 | # All others | |
6582 | MAN1EXT=1 | |
6583 | MAN5EXT=5 | |
6584 | MAN7EXT=7 | |
6585 | MAN8EXT=8 | |
6586 | MAN8DIR=8 | |
6587 | ;; | |
6588 | esac | |
6589 | ||
6590 | ||
6591 | ||
6592 | ||
6593 | ||
6594 | ||
6595 | ||
6596 | ||
6597 | ||
d9f356c5 MS |
6598 | PICFLAG=1 |
6599 | DSOFLAGS="${DSOFLAGS:=}" | |
6600 | ||
6601 | # Check whether --enable-shared was given. | |
6602 | if test "${enable_shared+set}" = set; then : | |
6603 | enableval=$enable_shared; | |
6604 | fi | |
6605 | ||
6606 | ||
6607 | cupsbase="cups" | |
6608 | LIBCUPSBASE="lib$cupsbase" | |
58b64dbb | 6609 | LIBCUPSIMAGE="" |
d9f356c5 MS |
6610 | LIBCUPSSTATIC="lib$cupsbase.a" |
6611 | ||
6612 | if test x$enable_shared != xno; then | |
105922ec MS |
6613 | case "$host_os_name" in |
6614 | sunos*) | |
d9f356c5 | 6615 | LIBCUPS="lib$cupsbase.so.2" |
58b64dbb MS |
6616 | if test "x$cupsimagebase" != x; then |
6617 | LIBCUPSIMAGE="lib$cupsimagebase.so.2" | |
6618 | fi | |
d9f356c5 MS |
6619 | DSO="\$(CC)" |
6620 | DSOXX="\$(CXX)" | |
f518bf7e | 6621 | DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G" |
d9f356c5 | 6622 | ;; |
827bf9ce | 6623 | linux* | gnu* | *bsd*) |
d9f356c5 | 6624 | LIBCUPS="lib$cupsbase.so.2" |
58b64dbb MS |
6625 | if test "x$cupsimagebase" != x; then |
6626 | LIBCUPSIMAGE="lib$cupsimagebase.so.2" | |
6627 | fi | |
d9f356c5 MS |
6628 | DSO="\$(CC)" |
6629 | DSOXX="\$(CXX)" | |
f518bf7e | 6630 | DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared" |
d9f356c5 | 6631 | ;; |
105922ec | 6632 | darwin*) |
d9f356c5 | 6633 | LIBCUPS="lib$cupsbase.2.dylib" |
58b64dbb MS |
6634 | if test "x$cupsimagebase" != x; then |
6635 | LIBCUPSIMAGE="lib$cupsimagebase.2.dylib" | |
6636 | fi | |
d9f356c5 MS |
6637 | DSO="\$(CC)" |
6638 | DSOXX="\$(CXX)" | |
f518bf7e | 6639 | DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc" |
d9f356c5 MS |
6640 | ;; |
6641 | *) | |
6642 | echo "Warning: shared libraries may not be supported. Trying -shared" | |
6643 | echo " option with compiler." | |
6644 | LIBCUPS="lib$cupsbase.so.2" | |
58b64dbb MS |
6645 | if test "x$cupsimagebase" != x; then |
6646 | LIBCUPSIMAGE="lib$cupsimagebase.so.2" | |
6647 | fi | |
d9f356c5 MS |
6648 | DSO="\$(CC)" |
6649 | DSOXX="\$(CXX)" | |
f518bf7e | 6650 | DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared" |
d9f356c5 MS |
6651 | ;; |
6652 | esac | |
6653 | else | |
6654 | PICFLAG=0 | |
6655 | LIBCUPS="lib$cupsbase.a" | |
58b64dbb MS |
6656 | if test "x$cupsimagebase" != x; then |
6657 | LIBCUPSIMAGE="lib$cupsimagebase.a" | |
6658 | fi | |
d9f356c5 MS |
6659 | DSO=":" |
6660 | DSOXX=":" | |
6661 | fi | |
6662 | ||
6663 | ||
6664 | ||
6665 | ||
6666 | ||
6667 | ||
6668 | ||
6669 | ||
6670 | ||
d9f356c5 MS |
6671 | if test x$enable_shared = xno; then |
6672 | LINKCUPS="../cups/lib$cupsbase.a" | |
d9f356c5 | 6673 | EXTLINKCUPS="-lcups" |
58b64dbb MS |
6674 | |
6675 | if test "x$cupsimagebase" != x; then | |
6676 | LINKCUPSIMAGE="../cups/lib$cupsimagebase.a" | |
6677 | EXTLINKCUPSIMAGE="-l$cupsimagebase" | |
6678 | else | |
6679 | LINKCUPSIMAGE="" | |
6680 | EXTLINKCUPSIMAGE="" | |
6681 | fi | |
d9f356c5 MS |
6682 | else |
6683 | LINKCUPS="-l${cupsbase}" | |
d9f356c5 | 6684 | EXTLINKCUPS="-lcups" |
58b64dbb MS |
6685 | |
6686 | if test "x$cupsimagebase" != x; then | |
6687 | LINKCUPSIMAGE="-l$cupsimagebase" | |
6688 | EXTLINKCUPSIMAGE="-l$cupsimagebase" | |
6689 | else | |
6690 | LINKCUPSIMAGE="" | |
6691 | EXTLINKCUPSIMAGE="" | |
6692 | fi | |
d9f356c5 MS |
6693 | fi |
6694 | ||
6695 | ||
6696 | ||
6697 | ||
6698 | ||
6699 | ||
6700 | EXPORT_LDFLAGS="" | |
6701 | ||
6702 | if test "$DSO" != ":"; then | |
6703 | # When using DSOs the image libraries are linked to libcupsimage.so | |
6704 | # rather than to the executables. This makes things smaller if you | |
6705 | # are using any static libraries, and it also allows us to distribute | |
6706 | # a single DSO rather than a bunch... | |
6707 | DSOLIBS="\$(LIBZ)" | |
6708 | IMGLIBS="" | |
6709 | ||
6710 | # Tell the run-time linkers where to find a DSO. Some platforms | |
6711 | # need this option, even when the library is installed in a | |
6712 | # standard location... | |
105922ec MS |
6713 | case $host_os_name in |
6714 | sunos*) | |
d9f356c5 MS |
6715 | # Solaris... |
6716 | if test $exec_prefix != /usr; then | |
6717 | DSOFLAGS="-R$libdir $DSOFLAGS" | |
6718 | LDFLAGS="$LDFLAGS -R$libdir" | |
6719 | EXPORT_LDFLAGS="-R$libdir" | |
6720 | fi | |
6721 | ;; | |
105922ec | 6722 | *bsd*) |
d9f356c5 MS |
6723 | # *BSD... |
6724 | if test $exec_prefix != /usr; then | |
6725 | DSOFLAGS="-Wl,-R$libdir $DSOFLAGS" | |
6726 | LDFLAGS="$LDFLAGS -Wl,-R$libdir" | |
6727 | EXPORT_LDFLAGS="-Wl,-R$libdir" | |
6728 | fi | |
6729 | ;; | |
827bf9ce | 6730 | linux* | gnu*) |
d9f356c5 MS |
6731 | # Linux, and HURD... |
6732 | if test $exec_prefix != /usr; then | |
6733 | DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS" | |
6734 | LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir" | |
6735 | EXPORT_LDFLAGS="-Wl,-rpath,$libdir" | |
6736 | fi | |
6737 | ;; | |
6738 | esac | |
6739 | else | |
6740 | DSOLIBS="" | |
6741 | IMGLIBS="\$(LIBZ)" | |
6742 | fi | |
6743 | ||
6744 | ||
6745 | ||
6746 | ||
6747 | ||
6748 | ||
d9f356c5 MS |
6749 | # Check whether --enable-libtool_unsupported was given. |
6750 | if test "${enable_libtool_unsupported+set}" = set; then : | |
6751 | enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then | |
a621d151 MS |
6752 | if test x$enable_libtool_unsupported == xyes; then |
6753 | as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5 | |
6754 | fi | |
d9f356c5 MS |
6755 | LIBTOOL="$enable_libtool_unsupported" |
6756 | enable_shared=no | |
6757 | echo "WARNING: libtool is not supported or endorsed by Apple Inc." | |
6758 | echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS." | |
6759 | else | |
6760 | LIBTOOL="" | |
6761 | fi | |
6762 | fi | |
6763 | ||
6764 | ||
d9f356c5 | 6765 | if test x$LIBTOOL != x; then |
b94f7488 MS |
6766 | DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}" |
6767 | DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}" | |
6768 | ||
07cb7247 MS |
6769 | LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}" |
6770 | LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}" | |
6771 | ||
d9f356c5 | 6772 | LIBCUPS="libcups.la" |
b94f7488 | 6773 | LIBCUPSSTATIC="libcups.la" |
a621d151 | 6774 | LIBCUPSCGI="libcupscgi.la" |
d9f356c5 | 6775 | LIBCUPSIMAGE="libcupsimage.la" |
a621d151 MS |
6776 | LIBCUPSMIME="libcupsmime.la" |
6777 | LIBCUPSPPDC="libcupsppdc.la" | |
6778 | ||
b94f7488 MS |
6779 | LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC" |
6780 | LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX" | |
6781 | LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install" | |
a621d151 | 6782 | |
d9f356c5 | 6783 | LINKCUPS="../cups/\$(LIBCUPS)" |
123979a9 | 6784 | LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)" |
a621d151 | 6785 | |
a621d151 | 6786 | else |
07cb7247 MS |
6787 | LD_CC="\$(CC)" |
6788 | LD_CXX="\$(CXX)" | |
6789 | ||
b94f7488 MS |
6790 | LIBTOOL_CC="" |
6791 | LIBTOOL_CXX="" | |
6792 | LIBTOOL_INSTALL="" | |
d9f356c5 MS |
6793 | fi |
6794 | ||
6795 | ||
a621d151 MS |
6796 | |
6797 | ||
6798 | ||
6799 | ||
6800 | ||
b94f7488 MS |
6801 | |
6802 | ||
07cb7247 | 6803 | |
d9f356c5 | 6804 | INSTALL_STRIP="" |
d9f356c5 MS |
6805 | |
6806 | ||
6807 | ||
6808 | # Check whether --with-optim was given. | |
6809 | if test "${with_optim+set}" = set; then : | |
f518bf7e MS |
6810 | withval=$with_optim; OPTIM="$withval" |
6811 | else | |
6812 | OPTIM="" | |
d9f356c5 MS |
6813 | fi |
6814 | ||
f518bf7e MS |
6815 | |
6816 | ||
d9f356c5 MS |
6817 | # Check whether --enable-debug was given. |
6818 | if test "${enable_debug+set}" = set; then : | |
6819 | enableval=$enable_debug; | |
6820 | fi | |
6821 | ||
6822 | # Check whether --enable-debug_guards was given. | |
6823 | if test "${enable_debug_guards+set}" = set; then : | |
6824 | enableval=$enable_debug_guards; | |
6825 | fi | |
6826 | ||
6827 | # Check whether --enable-debug_printfs was given. | |
6828 | if test "${enable_debug_printfs+set}" = set; then : | |
6829 | enableval=$enable_debug_printfs; | |
6830 | fi | |
6831 | ||
6832 | # Check whether --enable-unit_tests was given. | |
6833 | if test "${enable_unit_tests+set}" = set; then : | |
6834 | enableval=$enable_unit_tests; | |
6835 | fi | |
6836 | ||
6837 | ||
f518bf7e | 6838 | if test x$enable_debug = xyes -a "x$OPTIM" = x; then |
d9f356c5 MS |
6839 | OPTIM="-g" |
6840 | else | |
6841 | INSTALL_STRIP="-s" | |
6842 | fi | |
6843 | ||
6844 | if test x$enable_debug_printfs = xyes; then | |
6845 | CFLAGS="$CFLAGS -DDEBUG" | |
6846 | CXXFLAGS="$CXXFLAGS -DDEBUG" | |
6847 | fi | |
6848 | ||
6849 | if test x$enable_debug_guards = xyes; then | |
6850 | CFLAGS="$CFLAGS -DDEBUG_GUARDS" | |
6851 | CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS" | |
6852 | fi | |
6853 | ||
6854 | if test x$enable_unit_tests = xyes; then | |
105922ec MS |
6855 | if test "$build" != "$host"; then |
6856 | as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5 | |
6857 | fi | |
6858 | ||
d9f356c5 MS |
6859 | UNITTESTS="unittests" |
6860 | else | |
6861 | UNITTESTS="" | |
6862 | fi | |
6863 | ||
6864 | ||
6865 | ||
6866 | # Check whether --with-archflags was given. | |
6867 | if test "${with_archflags+set}" = set; then : | |
6868 | withval=$with_archflags; | |
6869 | fi | |
6870 | ||
6871 | ||
6872 | # Check whether --with-ldarchflags was given. | |
6873 | if test "${with_ldarchflags+set}" = set; then : | |
6874 | withval=$with_ldarchflags; | |
6875 | fi | |
6876 | ||
6877 | ||
6878 | if test -z "$with_archflags"; then | |
6879 | ARCHFLAGS="" | |
6880 | else | |
6881 | ARCHFLAGS="$with_archflags" | |
6882 | fi | |
6883 | ||
6884 | if test -z "$with_ldarchflags"; then | |
105922ec | 6885 | if test "$host_os_name" = darwin; then |
d9f356c5 MS |
6886 | # Only create Intel programs by default |
6887 | LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch ppc64//'`" | |
6888 | else | |
6889 | LDARCHFLAGS="$ARCHFLAGS" | |
6890 | fi | |
6891 | else | |
6892 | LDARCHFLAGS="$with_ldarchflags" | |
6893 | fi | |
6894 | ||
6895 | ||
6896 | ||
6897 | ||
6898 | # Check whether --enable-relro was given. | |
6899 | if test "${enable_relro+set}" = set; then : | |
6900 | enableval=$enable_relro; | |
6901 | fi | |
6902 | ||
6903 | ||
f518bf7e MS |
6904 | # Check whether --enable-sanitizer was given. |
6905 | if test "${enable_sanitizer+set}" = set; then : | |
6906 | enableval=$enable_sanitizer; | |
6907 | fi | |
6908 | ||
6909 | ||
d9f356c5 MS |
6910 | CXXLIBS="${CXXLIBS:=}" |
6911 | ||
6912 | ||
6913 | PIEFLAGS="" | |
6914 | ||
6915 | ||
6916 | RELROFLAGS="" | |
6917 | ||
6918 | ||
f518bf7e MS |
6919 | WARNING_OPTIONS="" |
6920 | ||
6921 | ||
d9f356c5 MS |
6922 | if test -n "$GCC"; then |
6923 | # Add GCC-specific compiler options... | |
f518bf7e MS |
6924 | |
6925 | # Address sanitizer is a useful tool to use when developing/debugging | |
6926 | # code but adds about 2x overhead... | |
ef4e12b3 MS |
6927 | if test x$enable_sanitizer = xyes; then |
6928 | # Use -fsanitize=address with debugging... | |
f518bf7e | 6929 | OPTIM="$OPTIM -g -fsanitize=address" |
ef4e12b3 MS |
6930 | else |
6931 | # Otherwise use the Fortify enhancements to catch any unbounded | |
6932 | # string operations... | |
6933 | CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" | |
6934 | CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2" | |
6935 | fi | |
f518bf7e MS |
6936 | |
6937 | # Default optimization options... | |
d9f356c5 | 6938 | if test -z "$OPTIM"; then |
f518bf7e MS |
6939 | # Default to optimize-for-size and debug |
6940 | OPTIM="-Os -g" | |
d9f356c5 MS |
6941 | fi |
6942 | ||
6943 | # Generate position-independent code as needed... | |
6944 | if test $PICFLAG = 1; then | |
6945 | OPTIM="-fPIC $OPTIM" | |
6946 | fi | |
6947 | ||
6948 | # The -fstack-protector option is available with some versions of | |
6949 | # GCC and adds "stack canaries" which detect when the return address | |
6950 | # has been overwritten, preventing many types of exploit attacks. | |
6951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5 | |
6952 | $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; } | |
6953 | OLDCFLAGS="$CFLAGS" | |
6954 | CFLAGS="$CFLAGS -fstack-protector" | |
6955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6956 | /* end confdefs.h. */ | |
6957 | ||
6958 | int | |
6959 | main () | |
6960 | { | |
6961 | ||
6962 | ; | |
6963 | return 0; | |
6964 | } | |
6965 | _ACEOF | |
6966 | if ac_fn_c_try_link "$LINENO"; then : | |
6967 | if test "x$LSB_BUILD" = xy; then | |
6968 | # Can't use stack-protector with LSB binaries... | |
6969 | OPTIM="$OPTIM -fno-stack-protector" | |
6970 | else | |
6971 | OPTIM="$OPTIM -fstack-protector" | |
6972 | fi | |
6973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6974 | $as_echo "yes" >&6; } | |
6975 | else | |
6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6977 | $as_echo "no" >&6; } | |
6978 | fi | |
6979 | rm -f core conftest.err conftest.$ac_objext \ | |
6980 | conftest$ac_exeext conftest.$ac_ext | |
6981 | CFLAGS="$OLDCFLAGS" | |
6982 | ||
6983 | if test "x$LSB_BUILD" != xy; then | |
6984 | # The -fPIE option is available with some versions of GCC and | |
6985 | # adds randomization of addresses, which avoids another class of | |
6986 | # exploits that depend on a fixed address for common functions. | |
6987 | # | |
6988 | # Not available to LSB binaries... | |
6989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5 | |
6990 | $as_echo_n "checking whether compiler supports -fPIE... " >&6; } | |
6991 | OLDCFLAGS="$CFLAGS" | |
105922ec MS |
6992 | case "$host_os_name" in |
6993 | darwin*) | |
d9f356c5 MS |
6994 | CFLAGS="$CFLAGS -fPIE -Wl,-pie" |
6995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6996 | /* end confdefs.h. */ | |
6997 | ||
6998 | int | |
6999 | main () | |
7000 | { | |
7001 | ||
7002 | ; | |
7003 | return 0; | |
7004 | } | |
7005 | _ACEOF | |
7006 | if ac_fn_c_try_compile "$LINENO"; then : | |
7007 | ||
7008 | PIEFLAGS="-fPIE -Wl,-pie" | |
7009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7010 | $as_echo "yes" >&6; } | |
7011 | else | |
7012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7013 | $as_echo "no" >&6; } | |
7014 | fi | |
7015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7016 | ;; | |
7017 | ||
7018 | *) | |
7019 | CFLAGS="$CFLAGS -fPIE -pie" | |
7020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7021 | /* end confdefs.h. */ | |
7022 | ||
7023 | int | |
7024 | main () | |
7025 | { | |
7026 | ||
7027 | ; | |
7028 | return 0; | |
7029 | } | |
7030 | _ACEOF | |
7031 | if ac_fn_c_try_compile "$LINENO"; then : | |
7032 | ||
7033 | PIEFLAGS="-fPIE -pie" | |
7034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7035 | $as_echo "yes" >&6; } | |
7036 | else | |
7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7038 | $as_echo "no" >&6; } | |
7039 | fi | |
7040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7041 | ;; | |
7042 | esac | |
7043 | CFLAGS="$OLDCFLAGS" | |
7044 | fi | |
7045 | ||
f518bf7e MS |
7046 | # Add useful warning options for tracking down problems... |
7047 | WARNING_OPTIONS="-Wall -Wno-format-y2k -Wunused -Wno-unused-result -Wsign-conversion" | |
d9f356c5 | 7048 | |
f518bf7e MS |
7049 | # Test GCC version for certain warning flags since -Werror |
7050 | # doesn't trigger... | |
7051 | gccversion=`$CC --version | head -1 | awk '{print $NF}'` | |
7052 | case "$gccversion" in | |
7053 | 7.* | 8.*) | |
7054 | WARNING_OPTIONS="$WARNING_OPTIONS -Wno-format-truncation -Wno-tautological-compare" | |
d9f356c5 MS |
7055 | ;; |
7056 | esac | |
f518bf7e MS |
7057 | |
7058 | # Additional warning options for development testing... | |
7059 | if test -d .git; then | |
7d730d0c | 7060 | WARNING_OPTIONS="-Werror -Wno-error=deprecated-declarations $WARNING_OPTIONS" |
f518bf7e | 7061 | fi |
d9f356c5 MS |
7062 | else |
7063 | # Add vendor-specific compiler options... | |
105922ec MS |
7064 | case $host_os_name in |
7065 | sunos*) | |
d9f356c5 MS |
7066 | # Solaris |
7067 | if test -z "$OPTIM"; then | |
f518bf7e | 7068 | OPTIM="-xO2" |
d9f356c5 MS |
7069 | fi |
7070 | ||
7071 | if test $PICFLAG = 1; then | |
7072 | OPTIM="-KPIC $OPTIM" | |
7073 | fi | |
7074 | ;; | |
7075 | *) | |
f518bf7e MS |
7076 | # Running some other operating system; inform the user |
7077 | # they should contribute the necessary options via | |
7078 | # Github... | |
7079 | echo "Building CUPS with default compiler optimizations; contact the CUPS developers on Github" | |
7080 | echo "(https://github.com/apple/cups/issues) with the uname and compiler options needed for" | |
7081 | echo "your platform, or set the CFLAGS and LDFLAGS environment variables before running" | |
7082 | echo "configure." | |
d9f356c5 MS |
7083 | ;; |
7084 | esac | |
7085 | fi | |
7086 | ||
7087 | # Add general compiler options per platform... | |
105922ec MS |
7088 | case $host_os_name in |
7089 | linux*) | |
d9f356c5 MS |
7090 | # glibc 2.8 and higher breaks peer credentials unless you |
7091 | # define _GNU_SOURCE... | |
7092 | OPTIM="$OPTIM -D_GNU_SOURCE" | |
f518bf7e MS |
7093 | |
7094 | # The -z relro option is provided by the Linux linker command to | |
7095 | # make relocatable data read-only. | |
7096 | if test x$enable_relro = xyes; then | |
7097 | RELROFLAGS="-Wl,-z,relro,-z,now" | |
7098 | fi | |
d9f356c5 MS |
7099 | ;; |
7100 | esac | |
7101 | ||
7102 | ||
7103 | ||
d9f356c5 MS |
7104 | ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " |
7105 | #include <sys/socket.h> | |
7106 | #include <netinet/in.h> | |
7107 | #include <arpa/inet.h> | |
7108 | #include <netinet/in_systm.h> | |
7109 | #include <netinet/ip.h> | |
7110 | " | |
7111 | if test "x$ac_cv_header_resolv_h" = xyes; then : | |
7112 | $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h | |
7113 | ||
7114 | fi | |
7115 | ||
7116 | ||
7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
7118 | $as_echo_n "checking for library containing socket... " >&6; } | |
7119 | if ${ac_cv_search_socket+:} false; then : | |
7120 | $as_echo_n "(cached) " >&6 | |
7121 | else | |
7122 | ac_func_search_save_LIBS=$LIBS | |
7123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7124 | /* end confdefs.h. */ | |
7125 | ||
7126 | /* Override any GCC internal prototype to avoid an error. | |
7127 | Use char because int might match the return type of a GCC | |
7128 | builtin and then its argument prototype would still apply. */ | |
7129 | #ifdef __cplusplus | |
7130 | extern "C" | |
7131 | #endif | |
7132 | char socket (); | |
7133 | int | |
7134 | main () | |
7135 | { | |
7136 | return socket (); | |
7137 | ; | |
7138 | return 0; | |
7139 | } | |
7140 | _ACEOF | |
7141 | for ac_lib in '' socket; do | |
7142 | if test -z "$ac_lib"; then | |
7143 | ac_res="none required" | |
7144 | else | |
7145 | ac_res=-l$ac_lib | |
7146 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7147 | fi | |
7148 | if ac_fn_c_try_link "$LINENO"; then : | |
7149 | ac_cv_search_socket=$ac_res | |
7150 | fi | |
7151 | rm -f core conftest.err conftest.$ac_objext \ | |
7152 | conftest$ac_exeext | |
7153 | if ${ac_cv_search_socket+:} false; then : | |
7154 | break | |
7155 | fi | |
7156 | done | |
7157 | if ${ac_cv_search_socket+:} false; then : | |
7158 | ||
7159 | else | |
7160 | ac_cv_search_socket=no | |
7161 | fi | |
7162 | rm conftest.$ac_ext | |
7163 | LIBS=$ac_func_search_save_LIBS | |
7164 | fi | |
7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
7166 | $as_echo "$ac_cv_search_socket" >&6; } | |
7167 | ac_res=$ac_cv_search_socket | |
7168 | if test "$ac_res" != no; then : | |
7169 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7170 | ||
7171 | fi | |
7172 | ||
7173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5 | |
7174 | $as_echo_n "checking for library containing gethostbyaddr... " >&6; } | |
7175 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
7176 | $as_echo_n "(cached) " >&6 | |
7177 | else | |
7178 | ac_func_search_save_LIBS=$LIBS | |
7179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7180 | /* end confdefs.h. */ | |
7181 | ||
7182 | /* Override any GCC internal prototype to avoid an error. | |
7183 | Use char because int might match the return type of a GCC | |
7184 | builtin and then its argument prototype would still apply. */ | |
7185 | #ifdef __cplusplus | |
7186 | extern "C" | |
7187 | #endif | |
7188 | char gethostbyaddr (); | |
7189 | int | |
7190 | main () | |
7191 | { | |
7192 | return gethostbyaddr (); | |
7193 | ; | |
7194 | return 0; | |
7195 | } | |
7196 | _ACEOF | |
7197 | for ac_lib in '' nsl; do | |
7198 | if test -z "$ac_lib"; then | |
7199 | ac_res="none required" | |
7200 | else | |
7201 | ac_res=-l$ac_lib | |
7202 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7203 | fi | |
7204 | if ac_fn_c_try_link "$LINENO"; then : | |
7205 | ac_cv_search_gethostbyaddr=$ac_res | |
7206 | fi | |
7207 | rm -f core conftest.err conftest.$ac_objext \ | |
7208 | conftest$ac_exeext | |
7209 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
7210 | break | |
7211 | fi | |
7212 | done | |
7213 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
7214 | ||
7215 | else | |
7216 | ac_cv_search_gethostbyaddr=no | |
7217 | fi | |
7218 | rm conftest.$ac_ext | |
7219 | LIBS=$ac_func_search_save_LIBS | |
7220 | fi | |
7221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5 | |
7222 | $as_echo "$ac_cv_search_gethostbyaddr" >&6; } | |
7223 | ac_res=$ac_cv_search_gethostbyaddr | |
7224 | if test "$ac_res" != no; then : | |
7225 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7226 | ||
7227 | fi | |
7228 | ||
7229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5 | |
7230 | $as_echo_n "checking for library containing getifaddrs... " >&6; } | |
7231 | if ${ac_cv_search_getifaddrs+:} false; then : | |
7232 | $as_echo_n "(cached) " >&6 | |
7233 | else | |
7234 | ac_func_search_save_LIBS=$LIBS | |
7235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7236 | /* end confdefs.h. */ | |
7237 | ||
7238 | /* Override any GCC internal prototype to avoid an error. | |
7239 | Use char because int might match the return type of a GCC | |
7240 | builtin and then its argument prototype would still apply. */ | |
7241 | #ifdef __cplusplus | |
7242 | extern "C" | |
7243 | #endif | |
7244 | char getifaddrs (); | |
7245 | int | |
7246 | main () | |
7247 | { | |
7248 | return getifaddrs (); | |
7249 | ; | |
7250 | return 0; | |
7251 | } | |
7252 | _ACEOF | |
7253 | for ac_lib in '' nsl; do | |
7254 | if test -z "$ac_lib"; then | |
7255 | ac_res="none required" | |
7256 | else | |
7257 | ac_res=-l$ac_lib | |
7258 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7259 | fi | |
7260 | if ac_fn_c_try_link "$LINENO"; then : | |
7261 | ac_cv_search_getifaddrs=$ac_res | |
7262 | fi | |
7263 | rm -f core conftest.err conftest.$ac_objext \ | |
7264 | conftest$ac_exeext | |
7265 | if ${ac_cv_search_getifaddrs+:} false; then : | |
7266 | break | |
7267 | fi | |
7268 | done | |
7269 | if ${ac_cv_search_getifaddrs+:} false; then : | |
7270 | ||
7271 | else | |
7272 | ac_cv_search_getifaddrs=no | |
7273 | fi | |
7274 | rm conftest.$ac_ext | |
7275 | LIBS=$ac_func_search_save_LIBS | |
7276 | fi | |
7277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5 | |
7278 | $as_echo "$ac_cv_search_getifaddrs" >&6; } | |
7279 | ac_res=$ac_cv_search_getifaddrs | |
7280 | if test "$ac_res" != no; then : | |
7281 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7282 | $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h | |
7283 | ||
7284 | fi | |
7285 | ||
7286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 | |
7287 | $as_echo_n "checking for library containing hstrerror... " >&6; } | |
7288 | if ${ac_cv_search_hstrerror+:} false; then : | |
7289 | $as_echo_n "(cached) " >&6 | |
7290 | else | |
7291 | ac_func_search_save_LIBS=$LIBS | |
7292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7293 | /* end confdefs.h. */ | |
7294 | ||
7295 | /* Override any GCC internal prototype to avoid an error. | |
7296 | Use char because int might match the return type of a GCC | |
7297 | builtin and then its argument prototype would still apply. */ | |
7298 | #ifdef __cplusplus | |
7299 | extern "C" | |
7300 | #endif | |
7301 | char hstrerror (); | |
7302 | int | |
7303 | main () | |
7304 | { | |
7305 | return hstrerror (); | |
7306 | ; | |
7307 | return 0; | |
7308 | } | |
7309 | _ACEOF | |
7310 | for ac_lib in '' nsl socket resolv; do | |
7311 | if test -z "$ac_lib"; then | |
7312 | ac_res="none required" | |
7313 | else | |
7314 | ac_res=-l$ac_lib | |
7315 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7316 | fi | |
7317 | if ac_fn_c_try_link "$LINENO"; then : | |
7318 | ac_cv_search_hstrerror=$ac_res | |
7319 | fi | |
7320 | rm -f core conftest.err conftest.$ac_objext \ | |
7321 | conftest$ac_exeext | |
7322 | if ${ac_cv_search_hstrerror+:} false; then : | |
7323 | break | |
7324 | fi | |
7325 | done | |
7326 | if ${ac_cv_search_hstrerror+:} false; then : | |
7327 | ||
7328 | else | |
7329 | ac_cv_search_hstrerror=no | |
7330 | fi | |
7331 | rm conftest.$ac_ext | |
7332 | LIBS=$ac_func_search_save_LIBS | |
7333 | fi | |
7334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 | |
7335 | $as_echo "$ac_cv_search_hstrerror" >&6; } | |
7336 | ac_res=$ac_cv_search_hstrerror | |
7337 | if test "$ac_res" != no; then : | |
7338 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7339 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | |
7340 | ||
7341 | fi | |
7342 | ||
7343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5 | |
7344 | $as_echo_n "checking for library containing rresvport_af... " >&6; } | |
7345 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7346 | $as_echo_n "(cached) " >&6 | |
7347 | else | |
7348 | ac_func_search_save_LIBS=$LIBS | |
7349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7350 | /* end confdefs.h. */ | |
7351 | ||
7352 | /* Override any GCC internal prototype to avoid an error. | |
7353 | Use char because int might match the return type of a GCC | |
7354 | builtin and then its argument prototype would still apply. */ | |
7355 | #ifdef __cplusplus | |
7356 | extern "C" | |
7357 | #endif | |
7358 | char rresvport_af (); | |
7359 | int | |
7360 | main () | |
7361 | { | |
7362 | return rresvport_af (); | |
7363 | ; | |
7364 | return 0; | |
7365 | } | |
7366 | _ACEOF | |
7367 | for ac_lib in '' nsl; do | |
7368 | if test -z "$ac_lib"; then | |
7369 | ac_res="none required" | |
7370 | else | |
7371 | ac_res=-l$ac_lib | |
7372 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7373 | fi | |
7374 | if ac_fn_c_try_link "$LINENO"; then : | |
7375 | ac_cv_search_rresvport_af=$ac_res | |
7376 | fi | |
7377 | rm -f core conftest.err conftest.$ac_objext \ | |
7378 | conftest$ac_exeext | |
7379 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7380 | break | |
7381 | fi | |
7382 | done | |
7383 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7384 | ||
7385 | else | |
7386 | ac_cv_search_rresvport_af=no | |
7387 | fi | |
7388 | rm conftest.$ac_ext | |
7389 | LIBS=$ac_func_search_save_LIBS | |
7390 | fi | |
7391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5 | |
7392 | $as_echo "$ac_cv_search_rresvport_af" >&6; } | |
7393 | ac_res=$ac_cv_search_rresvport_af | |
7394 | if test "$ac_res" != no; then : | |
7395 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7396 | $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h | |
7397 | ||
7398 | fi | |
7399 | ||
7400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5 | |
7401 | $as_echo_n "checking for library containing __res_init... " >&6; } | |
7402 | if ${ac_cv_search___res_init+:} false; then : | |
7403 | $as_echo_n "(cached) " >&6 | |
7404 | else | |
7405 | ac_func_search_save_LIBS=$LIBS | |
7406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7407 | /* end confdefs.h. */ | |
7408 | ||
7409 | /* Override any GCC internal prototype to avoid an error. | |
7410 | Use char because int might match the return type of a GCC | |
7411 | builtin and then its argument prototype would still apply. */ | |
7412 | #ifdef __cplusplus | |
7413 | extern "C" | |
7414 | #endif | |
7415 | char __res_init (); | |
7416 | int | |
7417 | main () | |
7418 | { | |
7419 | return __res_init (); | |
7420 | ; | |
7421 | return 0; | |
7422 | } | |
7423 | _ACEOF | |
7424 | for ac_lib in '' resolv bind; do | |
7425 | if test -z "$ac_lib"; then | |
7426 | ac_res="none required" | |
7427 | else | |
7428 | ac_res=-l$ac_lib | |
7429 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7430 | fi | |
7431 | if ac_fn_c_try_link "$LINENO"; then : | |
7432 | ac_cv_search___res_init=$ac_res | |
7433 | fi | |
7434 | rm -f core conftest.err conftest.$ac_objext \ | |
7435 | conftest$ac_exeext | |
7436 | if ${ac_cv_search___res_init+:} false; then : | |
7437 | break | |
7438 | fi | |
7439 | done | |
7440 | if ${ac_cv_search___res_init+:} false; then : | |
7441 | ||
7442 | else | |
7443 | ac_cv_search___res_init=no | |
7444 | fi | |
7445 | rm conftest.$ac_ext | |
7446 | LIBS=$ac_func_search_save_LIBS | |
7447 | fi | |
7448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5 | |
7449 | $as_echo "$ac_cv_search___res_init" >&6; } | |
7450 | ac_res=$ac_cv_search___res_init | |
7451 | if test "$ac_res" != no; then : | |
7452 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7453 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7454 | ||
7455 | else | |
7456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 | |
7457 | $as_echo_n "checking for library containing res_9_init... " >&6; } | |
7458 | if ${ac_cv_search_res_9_init+:} false; then : | |
7459 | $as_echo_n "(cached) " >&6 | |
7460 | else | |
7461 | ac_func_search_save_LIBS=$LIBS | |
7462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7463 | /* end confdefs.h. */ | |
7464 | ||
7465 | /* Override any GCC internal prototype to avoid an error. | |
7466 | Use char because int might match the return type of a GCC | |
7467 | builtin and then its argument prototype would still apply. */ | |
7468 | #ifdef __cplusplus | |
7469 | extern "C" | |
7470 | #endif | |
7471 | char res_9_init (); | |
7472 | int | |
7473 | main () | |
7474 | { | |
7475 | return res_9_init (); | |
7476 | ; | |
7477 | return 0; | |
7478 | } | |
7479 | _ACEOF | |
7480 | for ac_lib in '' resolv bind; do | |
7481 | if test -z "$ac_lib"; then | |
7482 | ac_res="none required" | |
7483 | else | |
7484 | ac_res=-l$ac_lib | |
7485 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7486 | fi | |
7487 | if ac_fn_c_try_link "$LINENO"; then : | |
7488 | ac_cv_search_res_9_init=$ac_res | |
7489 | fi | |
7490 | rm -f core conftest.err conftest.$ac_objext \ | |
7491 | conftest$ac_exeext | |
7492 | if ${ac_cv_search_res_9_init+:} false; then : | |
7493 | break | |
7494 | fi | |
7495 | done | |
7496 | if ${ac_cv_search_res_9_init+:} false; then : | |
7497 | ||
7498 | else | |
7499 | ac_cv_search_res_9_init=no | |
7500 | fi | |
7501 | rm conftest.$ac_ext | |
7502 | LIBS=$ac_func_search_save_LIBS | |
7503 | fi | |
7504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 | |
7505 | $as_echo "$ac_cv_search_res_9_init" >&6; } | |
7506 | ac_res=$ac_cv_search_res_9_init | |
7507 | if test "$ac_res" != no; then : | |
7508 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7509 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7510 | ||
7511 | else | |
7512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 | |
7513 | $as_echo_n "checking for library containing res_init... " >&6; } | |
7514 | if ${ac_cv_search_res_init+:} false; then : | |
7515 | $as_echo_n "(cached) " >&6 | |
7516 | else | |
7517 | ac_func_search_save_LIBS=$LIBS | |
7518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7519 | /* end confdefs.h. */ | |
7520 | ||
7521 | /* Override any GCC internal prototype to avoid an error. | |
7522 | Use char because int might match the return type of a GCC | |
7523 | builtin and then its argument prototype would still apply. */ | |
7524 | #ifdef __cplusplus | |
7525 | extern "C" | |
7526 | #endif | |
7527 | char res_init (); | |
7528 | int | |
7529 | main () | |
7530 | { | |
7531 | return res_init (); | |
7532 | ; | |
7533 | return 0; | |
7534 | } | |
7535 | _ACEOF | |
7536 | for ac_lib in '' resolv bind; do | |
7537 | if test -z "$ac_lib"; then | |
7538 | ac_res="none required" | |
7539 | else | |
7540 | ac_res=-l$ac_lib | |
7541 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7542 | fi | |
7543 | if ac_fn_c_try_link "$LINENO"; then : | |
7544 | ac_cv_search_res_init=$ac_res | |
7545 | fi | |
7546 | rm -f core conftest.err conftest.$ac_objext \ | |
7547 | conftest$ac_exeext | |
7548 | if ${ac_cv_search_res_init+:} false; then : | |
7549 | break | |
7550 | fi | |
7551 | done | |
7552 | if ${ac_cv_search_res_init+:} false; then : | |
7553 | ||
7554 | else | |
7555 | ac_cv_search_res_init=no | |
7556 | fi | |
7557 | rm conftest.$ac_ext | |
7558 | LIBS=$ac_func_search_save_LIBS | |
7559 | fi | |
7560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 | |
7561 | $as_echo "$ac_cv_search_res_init" >&6; } | |
7562 | ac_res=$ac_cv_search_res_init | |
7563 | if test "$ac_res" != no; then : | |
7564 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7565 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7566 | ||
7567 | fi | |
7568 | ||
7569 | fi | |
7570 | ||
7571 | fi | |
7572 | ||
7573 | ||
7574 | # Tru64 5.1b leaks file descriptors with these functions; disable until | |
7575 | # we can come up with a test for this... | |
105922ec | 7576 | if test "$host_os_name" != "osf1"; then |
d9f356c5 MS |
7577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 |
7578 | $as_echo_n "checking for library containing getaddrinfo... " >&6; } | |
7579 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7580 | $as_echo_n "(cached) " >&6 | |
7581 | else | |
7582 | ac_func_search_save_LIBS=$LIBS | |
7583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7584 | /* end confdefs.h. */ | |
7585 | ||
7586 | /* Override any GCC internal prototype to avoid an error. | |
7587 | Use char because int might match the return type of a GCC | |
7588 | builtin and then its argument prototype would still apply. */ | |
7589 | #ifdef __cplusplus | |
7590 | extern "C" | |
7591 | #endif | |
7592 | char getaddrinfo (); | |
7593 | int | |
7594 | main () | |
7595 | { | |
7596 | return getaddrinfo (); | |
7597 | ; | |
7598 | return 0; | |
7599 | } | |
7600 | _ACEOF | |
7601 | for ac_lib in '' nsl; do | |
7602 | if test -z "$ac_lib"; then | |
7603 | ac_res="none required" | |
7604 | else | |
7605 | ac_res=-l$ac_lib | |
7606 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7607 | fi | |
7608 | if ac_fn_c_try_link "$LINENO"; then : | |
7609 | ac_cv_search_getaddrinfo=$ac_res | |
7610 | fi | |
7611 | rm -f core conftest.err conftest.$ac_objext \ | |
7612 | conftest$ac_exeext | |
7613 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7614 | break | |
7615 | fi | |
7616 | done | |
7617 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7618 | ||
7619 | else | |
7620 | ac_cv_search_getaddrinfo=no | |
7621 | fi | |
7622 | rm conftest.$ac_ext | |
7623 | LIBS=$ac_func_search_save_LIBS | |
7624 | fi | |
7625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 | |
7626 | $as_echo "$ac_cv_search_getaddrinfo" >&6; } | |
7627 | ac_res=$ac_cv_search_getaddrinfo | |
7628 | if test "$ac_res" != no; then : | |
7629 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7630 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | |
7631 | ||
7632 | fi | |
7633 | ||
7634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 | |
7635 | $as_echo_n "checking for library containing getnameinfo... " >&6; } | |
7636 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7637 | $as_echo_n "(cached) " >&6 | |
7638 | else | |
7639 | ac_func_search_save_LIBS=$LIBS | |
7640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7641 | /* end confdefs.h. */ | |
7642 | ||
7643 | /* Override any GCC internal prototype to avoid an error. | |
7644 | Use char because int might match the return type of a GCC | |
7645 | builtin and then its argument prototype would still apply. */ | |
7646 | #ifdef __cplusplus | |
7647 | extern "C" | |
7648 | #endif | |
7649 | char getnameinfo (); | |
7650 | int | |
7651 | main () | |
7652 | { | |
7653 | return getnameinfo (); | |
7654 | ; | |
7655 | return 0; | |
7656 | } | |
7657 | _ACEOF | |
7658 | for ac_lib in '' nsl; do | |
7659 | if test -z "$ac_lib"; then | |
7660 | ac_res="none required" | |
7661 | else | |
7662 | ac_res=-l$ac_lib | |
7663 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7664 | fi | |
7665 | if ac_fn_c_try_link "$LINENO"; then : | |
7666 | ac_cv_search_getnameinfo=$ac_res | |
7667 | fi | |
7668 | rm -f core conftest.err conftest.$ac_objext \ | |
7669 | conftest$ac_exeext | |
7670 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7671 | break | |
7672 | fi | |
7673 | done | |
7674 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7675 | ||
7676 | else | |
7677 | ac_cv_search_getnameinfo=no | |
7678 | fi | |
7679 | rm conftest.$ac_ext | |
7680 | LIBS=$ac_func_search_save_LIBS | |
7681 | fi | |
7682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 | |
7683 | $as_echo "$ac_cv_search_getnameinfo" >&6; } | |
7684 | ac_res=$ac_cv_search_getnameinfo | |
7685 | if test "$ac_res" != no; then : | |
7686 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7687 | $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h | |
7688 | ||
7689 | fi | |
7690 | ||
7691 | fi | |
7692 | ||
7693 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h> | |
7694 | " | |
7695 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : | |
7696 | ||
7697 | fi | |
7698 | ||
7699 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" | |
7700 | if test "x$ac_cv_header_sys_sockio_h" = xyes; then : | |
7701 | $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h | |
7702 | ||
7703 | fi | |
7704 | ||
7705 | ||
7706 | ||
7707 | CUPS_DEFAULT_DOMAINSOCKET="" | |
7708 | ||
7709 | ||
7710 | # Check whether --with-domainsocket was given. | |
7711 | if test "${with_domainsocket+set}" = set; then : | |
7712 | withval=$with_domainsocket; default_domainsocket="$withval" | |
7713 | else | |
7714 | default_domainsocket="" | |
7715 | fi | |
7716 | ||
7717 | ||
7718 | if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then | |
7719 | if test "x$default_domainsocket" = x; then | |
105922ec MS |
7720 | case "$host_os_name" in |
7721 | darwin*) | |
d4874933 | 7722 | # Darwin and macOS do their own thing... |
d9f356c5 MS |
7723 | CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd" |
7724 | ;; | |
7725 | *) | |
7726 | # All others use FHS standard... | |
7727 | CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock" | |
7728 | ;; | |
7729 | esac | |
7730 | else | |
7731 | CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket" | |
7732 | fi | |
7733 | ||
7734 | CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET" | |
7735 | ||
7736 | cat >>confdefs.h <<_ACEOF | |
7737 | #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET" | |
7738 | _ACEOF | |
7739 | ||
7740 | else | |
7741 | CUPS_LISTEN_DOMAINSOCKET="" | |
7742 | fi | |
7743 | ||
7744 | ||
7745 | ||
7746 | ||
7747 | ||
d9f356c5 MS |
7748 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" |
7749 | if test "x$ac_cv_func_poll" = xyes; then : | |
7750 | $as_echo "#define HAVE_POLL 1" >>confdefs.h | |
7751 | ||
7752 | fi | |
7753 | ||
7754 | ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create" | |
7755 | if test "x$ac_cv_func_epoll_create" = xyes; then : | |
7756 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | |
7757 | ||
7758 | fi | |
7759 | ||
7760 | ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" | |
7761 | if test "x$ac_cv_func_kqueue" = xyes; then : | |
7762 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | |
7763 | ||
7764 | fi | |
7765 | ||
7766 | ||
7767 | ||
d9f356c5 MS |
7768 | # Check whether --enable-gssapi was given. |
7769 | if test "${enable_gssapi+set}" = set; then : | |
7770 | enableval=$enable_gssapi; | |
7771 | fi | |
7772 | ||
7773 | ||
7774 | LIBGSSAPI="" | |
7775 | ||
7776 | ||
7777 | if test x$enable_gssapi != xno; then | |
7778 | if test -n "$ac_tool_prefix"; then | |
7779 | # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args. | |
7780 | set dummy ${ac_tool_prefix}krb5-config; ac_word=$2 | |
7781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7782 | $as_echo_n "checking for $ac_word... " >&6; } | |
7783 | if ${ac_cv_path_KRB5CONFIG+:} false; then : | |
7784 | $as_echo_n "(cached) " >&6 | |
7785 | else | |
7786 | case $KRB5CONFIG in | |
7787 | [\\/]* | ?:[\\/]*) | |
7788 | ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path. | |
7789 | ;; | |
7790 | *) | |
7791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7792 | for as_dir in $PATH | |
7793 | do | |
7794 | IFS=$as_save_IFS | |
7795 | test -z "$as_dir" && as_dir=. | |
7796 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 7797 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
7798 | ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7800 | break 2 | |
7801 | fi | |
7802 | done | |
7803 | done | |
7804 | IFS=$as_save_IFS | |
7805 | ||
7806 | ;; | |
7807 | esac | |
7808 | fi | |
7809 | KRB5CONFIG=$ac_cv_path_KRB5CONFIG | |
7810 | if test -n "$KRB5CONFIG"; then | |
7811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5 | |
7812 | $as_echo "$KRB5CONFIG" >&6; } | |
7813 | else | |
7814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7815 | $as_echo "no" >&6; } | |
7816 | fi | |
7817 | ||
7818 | ||
7819 | fi | |
7820 | if test -z "$ac_cv_path_KRB5CONFIG"; then | |
7821 | ac_pt_KRB5CONFIG=$KRB5CONFIG | |
7822 | # Extract the first word of "krb5-config", so it can be a program name with args. | |
7823 | set dummy krb5-config; ac_word=$2 | |
7824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7825 | $as_echo_n "checking for $ac_word... " >&6; } | |
7826 | if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then : | |
7827 | $as_echo_n "(cached) " >&6 | |
7828 | else | |
7829 | case $ac_pt_KRB5CONFIG in | |
7830 | [\\/]* | ?:[\\/]*) | |
7831 | ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path. | |
7832 | ;; | |
7833 | *) | |
7834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7835 | for as_dir in $PATH | |
7836 | do | |
7837 | IFS=$as_save_IFS | |
7838 | test -z "$as_dir" && as_dir=. | |
7839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 7840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
7841 | ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7843 | break 2 | |
7844 | fi | |
7845 | done | |
7846 | done | |
7847 | IFS=$as_save_IFS | |
7848 | ||
7849 | ;; | |
7850 | esac | |
7851 | fi | |
7852 | ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG | |
7853 | if test -n "$ac_pt_KRB5CONFIG"; then | |
7854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5 | |
7855 | $as_echo "$ac_pt_KRB5CONFIG" >&6; } | |
7856 | else | |
7857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7858 | $as_echo "no" >&6; } | |
7859 | fi | |
7860 | ||
7861 | if test "x$ac_pt_KRB5CONFIG" = x; then | |
7862 | KRB5CONFIG="" | |
7863 | else | |
7864 | case $cross_compiling:$ac_tool_warned in | |
7865 | yes:) | |
7866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7867 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7868 | ac_tool_warned=yes ;; | |
7869 | esac | |
7870 | KRB5CONFIG=$ac_pt_KRB5CONFIG | |
7871 | fi | |
7872 | else | |
7873 | KRB5CONFIG="$ac_cv_path_KRB5CONFIG" | |
7874 | fi | |
7875 | ||
7876 | if test "x$KRB5CONFIG" != x; then | |
105922ec MS |
7877 | case "$host_os_name" in |
7878 | darwin) | |
8072030b | 7879 | # macOS weak-links to the Kerberos framework... |
d9f356c5 MS |
7880 | LIBGSSAPI="-weak_framework Kerberos" |
7881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5 | |
7882 | $as_echo_n "checking for GSS framework... " >&6; } | |
7883 | if test -d /System/Library/Frameworks/GSS.framework; then | |
7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7885 | $as_echo "yes" >&6; } | |
7886 | LIBGSSAPI="$LIBGSSAPI -weak_framework GSS" | |
7887 | else | |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7889 | $as_echo "no" >&6; } | |
7890 | fi | |
7891 | ;; | |
105922ec | 7892 | sunos*) |
d9f356c5 MS |
7893 | # Solaris has a non-standard krb5-config, don't use it! |
7894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 | |
7895 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
7896 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
7897 | $as_echo_n "(cached) " >&6 | |
7898 | else | |
7899 | ac_check_lib_save_LIBS=$LIBS | |
7900 | LIBS="-lgss $LIBS" | |
7901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7902 | /* end confdefs.h. */ | |
7903 | ||
7904 | /* Override any GCC internal prototype to avoid an error. | |
7905 | Use char because int might match the return type of a GCC | |
7906 | builtin and then its argument prototype would still apply. */ | |
7907 | #ifdef __cplusplus | |
7908 | extern "C" | |
7909 | #endif | |
7910 | char gss_display_status (); | |
7911 | int | |
7912 | main () | |
7913 | { | |
7914 | return gss_display_status (); | |
7915 | ; | |
7916 | return 0; | |
7917 | } | |
7918 | _ACEOF | |
7919 | if ac_fn_c_try_link "$LINENO"; then : | |
7920 | ac_cv_lib_gss_gss_display_status=yes | |
7921 | else | |
7922 | ac_cv_lib_gss_gss_display_status=no | |
7923 | fi | |
7924 | rm -f core conftest.err conftest.$ac_objext \ | |
7925 | conftest$ac_exeext conftest.$ac_ext | |
7926 | LIBS=$ac_check_lib_save_LIBS | |
7927 | fi | |
7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
7929 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
7930 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
7931 | ||
7932 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7933 | ||
7934 | CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS" | |
7935 | CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS" | |
7936 | LIBGSSAPI="-lgss `$KRB5CONFIG --libs`" | |
7937 | fi | |
7938 | ||
7939 | ;; | |
7940 | *) | |
7941 | # Other platforms just ask for GSSAPI | |
7942 | CFLAGS="`$KRB5CONFIG --cflags gssapi` $CFLAGS" | |
7943 | CPPFLAGS="`$KRB5CONFIG --cflags gssapi` $CPPFLAGS" | |
7944 | LIBGSSAPI="`$KRB5CONFIG --libs gssapi`" | |
7945 | ;; | |
7946 | esac | |
7947 | ||
7948 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7949 | ||
7950 | else | |
7951 | # Check for vendor-specific implementations... | |
105922ec MS |
7952 | case "$host_os_name" in |
7953 | hp-ux*) | |
d9f356c5 MS |
7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 |
7955 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
7956 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
7957 | $as_echo_n "(cached) " >&6 | |
7958 | else | |
7959 | ac_check_lib_save_LIBS=$LIBS | |
7960 | LIBS="-lgss $LIBS" | |
7961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7962 | /* end confdefs.h. */ | |
7963 | ||
7964 | /* Override any GCC internal prototype to avoid an error. | |
7965 | Use char because int might match the return type of a GCC | |
7966 | builtin and then its argument prototype would still apply. */ | |
7967 | #ifdef __cplusplus | |
7968 | extern "C" | |
7969 | #endif | |
7970 | char gss_display_status (); | |
7971 | int | |
7972 | main () | |
7973 | { | |
7974 | return gss_display_status (); | |
7975 | ; | |
7976 | return 0; | |
7977 | } | |
7978 | _ACEOF | |
7979 | if ac_fn_c_try_link "$LINENO"; then : | |
7980 | ac_cv_lib_gss_gss_display_status=yes | |
7981 | else | |
7982 | ac_cv_lib_gss_gss_display_status=no | |
7983 | fi | |
7984 | rm -f core conftest.err conftest.$ac_objext \ | |
7985 | conftest$ac_exeext conftest.$ac_ext | |
7986 | LIBS=$ac_check_lib_save_LIBS | |
7987 | fi | |
7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
7989 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
7990 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
7991 | ||
7992 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7993 | ||
7994 | LIBGSSAPI="-lgss -lgssapi_krb5" | |
7995 | fi | |
7996 | ||
7997 | ;; | |
105922ec | 7998 | sunos*) |
d9f356c5 MS |
7999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 |
8000 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
8001 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
8002 | $as_echo_n "(cached) " >&6 | |
8003 | else | |
8004 | ac_check_lib_save_LIBS=$LIBS | |
8005 | LIBS="-lgss $LIBS" | |
8006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8007 | /* end confdefs.h. */ | |
8008 | ||
8009 | /* Override any GCC internal prototype to avoid an error. | |
8010 | Use char because int might match the return type of a GCC | |
8011 | builtin and then its argument prototype would still apply. */ | |
8012 | #ifdef __cplusplus | |
8013 | extern "C" | |
8014 | #endif | |
8015 | char gss_display_status (); | |
8016 | int | |
8017 | main () | |
8018 | { | |
8019 | return gss_display_status (); | |
8020 | ; | |
8021 | return 0; | |
8022 | } | |
8023 | _ACEOF | |
8024 | if ac_fn_c_try_link "$LINENO"; then : | |
8025 | ac_cv_lib_gss_gss_display_status=yes | |
8026 | else | |
8027 | ac_cv_lib_gss_gss_display_status=no | |
8028 | fi | |
8029 | rm -f core conftest.err conftest.$ac_objext \ | |
8030 | conftest$ac_exeext conftest.$ac_ext | |
8031 | LIBS=$ac_check_lib_save_LIBS | |
8032 | fi | |
8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
8034 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
8035 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
8036 | ||
8037 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
8038 | ||
8039 | LIBGSSAPI="-lgss" | |
8040 | fi | |
8041 | ||
8042 | ;; | |
8043 | esac | |
8044 | fi | |
8045 | ||
8046 | if test "x$LIBGSSAPI" != x; then | |
8047 | ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" | |
8048 | if test "x$ac_cv_header_krb5_h" = xyes; then : | |
8049 | $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h | |
8050 | ||
8051 | fi | |
8052 | ||
8053 | ||
8054 | if test -d /System/Library/Frameworks/GSS.framework; then | |
8055 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default" | |
8056 | if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then : | |
8057 | $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h | |
8058 | ||
8059 | fi | |
8060 | ||
8061 | ||
8062 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default" | |
8063 | if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then : | |
8064 | $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h | |
8065 | ||
8066 | fi | |
8067 | ||
8068 | ||
8069 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default" | |
8070 | if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then : | |
8071 | $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h | |
8072 | ||
8073 | fi | |
8074 | ||
8075 | ||
8076 | else | |
8077 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | |
8078 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | |
8079 | $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h | |
8080 | ||
8081 | fi | |
8082 | ||
8083 | ||
8084 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" | |
8085 | if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then : | |
8086 | $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h | |
8087 | ||
8088 | fi | |
8089 | ||
8090 | ||
8091 | fi | |
8092 | ||
8093 | SAVELIBS="$LIBS" | |
8094 | LIBS="$LIBS $LIBGSSAPI" | |
8095 | ||
8096 | ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" | |
8097 | if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then : | |
8098 | $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h | |
8099 | ||
8100 | fi | |
8101 | ||
8102 | ||
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5 | |
8104 | $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; } | |
8105 | if test x$ac_cv_header_gssapi_gssapi_h = xyes; then | |
8106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8107 | /* end confdefs.h. */ | |
8108 | #include <gssapi/gssapi.h> | |
8109 | int | |
8110 | main () | |
8111 | { | |
8112 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
8113 | ; | |
8114 | return 0; | |
8115 | } | |
8116 | _ACEOF | |
8117 | if ac_fn_c_try_compile "$LINENO"; then : | |
8118 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
8119 | ||
8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8121 | $as_echo "yes" >&6; } | |
8122 | else | |
8123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8124 | $as_echo "no" >&6; } | |
8125 | fi | |
8126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8127 | elif test x$ac_cv_header_gss_gssapi_h = xyes; then | |
8128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8129 | /* end confdefs.h. */ | |
8130 | #include <GSS/gssapi.h> | |
8131 | int | |
8132 | main () | |
8133 | { | |
8134 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
8135 | ; | |
8136 | return 0; | |
8137 | } | |
8138 | _ACEOF | |
8139 | if ac_fn_c_try_compile "$LINENO"; then : | |
8140 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
8141 | ||
8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8143 | $as_echo "yes" >&6; } | |
8144 | else | |
8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8146 | $as_echo "no" >&6; } | |
8147 | fi | |
8148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8149 | else | |
8150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8151 | /* end confdefs.h. */ | |
8152 | #include <gssapi.h> | |
8153 | int | |
8154 | main () | |
8155 | { | |
8156 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
8157 | ; | |
8158 | return 0; | |
8159 | } | |
8160 | _ACEOF | |
8161 | if ac_fn_c_try_compile "$LINENO"; then : | |
8162 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
8163 | ||
8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8165 | $as_echo "yes" >&6; } | |
8166 | else | |
8167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8168 | $as_echo "no" >&6; } | |
8169 | fi | |
8170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8171 | fi | |
8172 | ||
8173 | LIBS="$SAVELIBS" | |
8174 | fi | |
8175 | fi | |
8176 | ||
8177 | ||
8178 | # Check whether --with-gssservicename was given. | |
8179 | if test "${with_gssservicename+set}" = set; then : | |
8180 | withval=$with_gssservicename; default_gssservicename="$withval" | |
8181 | else | |
8182 | default_gssservicename="default" | |
8183 | fi | |
8184 | ||
8185 | ||
8186 | if test x$default_gssservicename != xno; then | |
8187 | if test "x$default_gssservicename" = "xdefault"; then | |
8188 | CUPS_DEFAULT_GSSSERVICENAME="host" | |
8189 | else | |
8190 | CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename" | |
8191 | fi | |
8192 | else | |
8193 | CUPS_DEFAULT_GSSSERVICENAME="" | |
8194 | fi | |
8195 | ||
8196 | ||
8197 | cat >>confdefs.h <<_ACEOF | |
8198 | #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME" | |
8199 | _ACEOF | |
8200 | ||
8201 | ||
8202 | ||
d9f356c5 MS |
8203 | # Check whether --enable-threads was given. |
8204 | if test "${enable_threads+set}" = set; then : | |
8205 | enableval=$enable_threads; | |
8206 | fi | |
8207 | ||
8208 | ||
8209 | have_pthread=no | |
8210 | PTHREAD_FLAGS="" | |
8211 | ||
8212 | if test "x$enable_threads" != xno; then | |
8213 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | |
8214 | if test "x$ac_cv_header_pthread_h" = xyes; then : | |
8215 | $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h | |
8216 | ||
8217 | fi | |
8218 | ||
8219 | ||
8220 | ||
8221 | if test x$ac_cv_header_pthread_h = xyes; then | |
8222 | for flag in -lpthreads -lpthread -pthread; do | |
8223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5 | |
8224 | $as_echo_n "checking for pthread_create using $flag... " >&6; } | |
8225 | SAVELIBS="$LIBS" | |
8226 | LIBS="$flag $LIBS" | |
8227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8228 | /* end confdefs.h. */ | |
8229 | #include <pthread.h> | |
8230 | int | |
8231 | main () | |
8232 | { | |
8233 | pthread_create(0, 0, 0, 0); | |
8234 | ; | |
8235 | return 0; | |
8236 | } | |
8237 | _ACEOF | |
8238 | if ac_fn_c_try_link "$LINENO"; then : | |
8239 | have_pthread=yes | |
8240 | else | |
8241 | LIBS="$SAVELIBS" | |
8242 | fi | |
8243 | rm -f core conftest.err conftest.$ac_objext \ | |
8244 | conftest$ac_exeext conftest.$ac_ext | |
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5 | |
8246 | $as_echo "$have_pthread" >&6; } | |
8247 | ||
8248 | if test $have_pthread = yes; then | |
8249 | PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT" | |
8250 | ||
8251 | # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to | |
8252 | # be POSIX-compliant... :( | |
105922ec | 8253 | if test $host_os_name = sunos; then |
d9f356c5 MS |
8254 | PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS" |
8255 | fi | |
8256 | break | |
8257 | fi | |
8258 | done | |
8259 | fi | |
8260 | fi | |
8261 | ||
8262 | ||
8263 | ||
8264 | ||
d9f356c5 MS |
8265 | # Check whether --enable-ssl was given. |
8266 | if test "${enable_ssl+set}" = set; then : | |
8267 | enableval=$enable_ssl; | |
8268 | fi | |
8269 | ||
8270 | # Check whether --enable-cdsassl was given. | |
8271 | if test "${enable_cdsassl+set}" = set; then : | |
8272 | enableval=$enable_cdsassl; | |
8273 | fi | |
8274 | ||
8275 | # Check whether --enable-gnutls was given. | |
8276 | if test "${enable_gnutls+set}" = set; then : | |
8277 | enableval=$enable_gnutls; | |
8278 | fi | |
8279 | ||
8280 | ||
8281 | SSLFLAGS="" | |
8282 | SSLLIBS="" | |
8283 | have_ssl=0 | |
8284 | CUPS_SERVERKEYCHAIN="" | |
8285 | ||
8286 | if test x$enable_ssl != xno; then | |
8287 | if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then | |
105922ec | 8288 | if test $host_os_name = darwin; then |
d9f356c5 MS |
8289 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default" |
8290 | if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then : | |
8291 | ||
8292 | have_ssl=1 | |
8293 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8294 | ||
8295 | $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h | |
8296 | ||
8297 | CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain" | |
8298 | ||
8299 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default" | |
8300 | if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then : | |
8301 | $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h | |
8302 | ||
8303 | fi | |
8304 | ||
8305 | ||
8306 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default" | |
8307 | if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then : | |
8308 | $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h | |
8309 | ||
8310 | fi | |
8311 | ||
8312 | ||
8313 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default" | |
8314 | if test "x$ac_cv_header_Security_SecItem_h" = xyes; then : | |
8315 | $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h | |
8316 | ||
8317 | fi | |
8318 | ||
8319 | ||
8320 | ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h> | |
8321 | " | |
8322 | if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then : | |
8323 | $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h | |
8324 | ||
8325 | fi | |
8326 | ||
8327 | ||
8328 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default" | |
8329 | if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then : | |
8330 | $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h | |
8331 | ||
8332 | fi | |
8333 | ||
8334 | ||
8335 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default" | |
8336 | if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then : | |
8337 | $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h | |
8338 | ||
8339 | fi | |
8340 | ||
8341 | ||
8342 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default" | |
8343 | if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then : | |
8344 | $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h | |
8345 | ||
8346 | fi | |
8347 | ||
8348 | ||
8349 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default" | |
8350 | if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then : | |
8351 | $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h | |
8352 | ||
8353 | fi | |
8354 | ||
8355 | ||
8356 | ||
8357 | $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h | |
8358 | ||
8359 | $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h | |
8360 | ||
8361 | fi | |
8362 | ||
8363 | ||
8364 | ||
105922ec | 8365 | if test $host_os_version -ge 150; then |
d9f356c5 MS |
8366 | $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h |
8367 | ||
8368 | fi | |
8369 | fi | |
8370 | fi | |
8371 | ||
8372 | if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then | |
8373 | if test -n "$ac_tool_prefix"; then | |
8374 | # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args. | |
8375 | set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2 | |
8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8377 | $as_echo_n "checking for $ac_word... " >&6; } | |
8378 | if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then : | |
8379 | $as_echo_n "(cached) " >&6 | |
8380 | else | |
8381 | case $LIBGNUTLSCONFIG in | |
8382 | [\\/]* | ?:[\\/]*) | |
8383 | ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path. | |
8384 | ;; | |
8385 | *) | |
8386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8387 | for as_dir in $PATH | |
8388 | do | |
8389 | IFS=$as_save_IFS | |
8390 | test -z "$as_dir" && as_dir=. | |
8391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 8392 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
8393 | ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext" |
8394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8395 | break 2 | |
8396 | fi | |
8397 | done | |
8398 | done | |
8399 | IFS=$as_save_IFS | |
8400 | ||
8401 | ;; | |
8402 | esac | |
8403 | fi | |
8404 | LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG | |
8405 | if test -n "$LIBGNUTLSCONFIG"; then | |
8406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5 | |
8407 | $as_echo "$LIBGNUTLSCONFIG" >&6; } | |
8408 | else | |
8409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8410 | $as_echo "no" >&6; } | |
8411 | fi | |
8412 | ||
8413 | ||
8414 | fi | |
8415 | if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then | |
8416 | ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG | |
8417 | # Extract the first word of "libgnutls-config", so it can be a program name with args. | |
8418 | set dummy libgnutls-config; ac_word=$2 | |
8419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8420 | $as_echo_n "checking for $ac_word... " >&6; } | |
8421 | if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then : | |
8422 | $as_echo_n "(cached) " >&6 | |
8423 | else | |
8424 | case $ac_pt_LIBGNUTLSCONFIG in | |
8425 | [\\/]* | ?:[\\/]*) | |
8426 | ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path. | |
8427 | ;; | |
8428 | *) | |
8429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8430 | for as_dir in $PATH | |
8431 | do | |
8432 | IFS=$as_save_IFS | |
8433 | test -z "$as_dir" && as_dir=. | |
8434 | for ac_exec_ext in '' $ac_executable_extensions; do | |
971a6b5d | 8435 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
8436 | ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext" |
8437 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8438 | break 2 | |
8439 | fi | |
8440 | done | |
8441 | done | |
8442 | IFS=$as_save_IFS | |
8443 | ||
8444 | ;; | |
8445 | esac | |
8446 | fi | |
8447 | ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG | |
8448 | if test -n "$ac_pt_LIBGNUTLSCONFIG"; then | |
8449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5 | |
8450 | $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; } | |
8451 | else | |
8452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8453 | $as_echo "no" >&6; } | |
8454 | fi | |
8455 | ||
8456 | if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then | |
8457 | LIBGNUTLSCONFIG="" | |
8458 | else | |
8459 | case $cross_compiling:$ac_tool_warned in | |
8460 | yes:) | |
8461 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8462 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8463 | ac_tool_warned=yes ;; | |
8464 | esac | |
8465 | LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG | |
8466 | fi | |
8467 | else | |
8468 | LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG" | |
8469 | fi | |
8470 | ||
d9f356c5 MS |
8471 | if $PKGCONFIG --exists gnutls; then |
8472 | have_ssl=1 | |
8473 | SSLLIBS=`$PKGCONFIG --libs gnutls` | |
8474 | SSLFLAGS=`$PKGCONFIG --cflags gnutls` | |
8475 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8476 | ||
8477 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
8478 | ||
8479 | elif test "x$LIBGNUTLSCONFIG" != x; then | |
8480 | have_ssl=1 | |
8481 | SSLLIBS=`$LIBGNUTLSCONFIG --libs` | |
8482 | SSLFLAGS=`$LIBGNUTLSCONFIG --cflags` | |
8483 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8484 | ||
8485 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
8486 | ||
8487 | fi | |
8488 | ||
8489 | if test $have_ssl = 1; then | |
8490 | CUPS_SERVERKEYCHAIN="ssl" | |
8491 | ||
8492 | SAVELIBS="$LIBS" | |
8493 | LIBS="$LIBS $SSLLIBS" | |
8494 | ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function" | |
8495 | if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then : | |
8496 | $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h | |
8497 | ||
8498 | fi | |
8499 | ||
8500 | ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct" | |
8501 | if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then : | |
8502 | $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h | |
8503 | ||
8504 | fi | |
8505 | ||
8506 | LIBS="$SAVELIBS" | |
8507 | fi | |
8508 | fi | |
8509 | fi | |
8510 | ||
8511 | IPPALIASES="http" | |
8512 | if test $have_ssl = 1; then | |
8513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5 | |
8514 | $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; } | |
8515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5 | |
8516 | $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; } | |
8517 | IPPALIASES="http https ipps" | |
8518 | elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then | |
8519 | as_fn_error $? "Unable to enable SSL support." "$LINENO" 5 | |
8520 | fi | |
8521 | ||
8522 | ||
8523 | ||
8524 | ||
8525 | ||
8526 | ||
8527 | EXPORT_SSLLIBS="$SSLLIBS" | |
8528 | ||
8529 | ||
8530 | ||
d9f356c5 MS |
8531 | # Check whether --enable-pam was given. |
8532 | if test "${enable_pam+set}" = set; then : | |
8533 | enableval=$enable_pam; | |
8534 | fi | |
8535 | ||
8536 | ||
8537 | # Check whether --with-pam_module was given. | |
8538 | if test "${with_pam_module+set}" = set; then : | |
8539 | withval=$with_pam_module; | |
8540 | fi | |
8541 | ||
8542 | ||
8543 | PAMDIR="" | |
8544 | PAMFILE="pam.std" | |
8545 | PAMLIBS="" | |
8546 | PAMMOD="pam_unknown.so" | |
8547 | PAMMODAUTH="pam_unknown.so" | |
8548 | ||
8549 | if test x$enable_pam != xno; then | |
8550 | SAVELIBS="$LIBS" | |
8551 | ||
8552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
8553 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
8554 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
8555 | $as_echo_n "(cached) " >&6 | |
8556 | else | |
8557 | ac_check_lib_save_LIBS=$LIBS | |
8558 | LIBS="-ldl $LIBS" | |
8559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8560 | /* end confdefs.h. */ | |
8561 | ||
8562 | /* Override any GCC internal prototype to avoid an error. | |
8563 | Use char because int might match the return type of a GCC | |
8564 | builtin and then its argument prototype would still apply. */ | |
8565 | #ifdef __cplusplus | |
8566 | extern "C" | |
8567 | #endif | |
8568 | char dlopen (); | |
8569 | int | |
8570 | main () | |
8571 | { | |
8572 | return dlopen (); | |
8573 | ; | |
8574 | return 0; | |
8575 | } | |
8576 | _ACEOF | |
8577 | if ac_fn_c_try_link "$LINENO"; then : | |
8578 | ac_cv_lib_dl_dlopen=yes | |
8579 | else | |
8580 | ac_cv_lib_dl_dlopen=no | |
8581 | fi | |
8582 | rm -f core conftest.err conftest.$ac_objext \ | |
8583 | conftest$ac_exeext conftest.$ac_ext | |
8584 | LIBS=$ac_check_lib_save_LIBS | |
8585 | fi | |
8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
8587 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
8588 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
8589 | cat >>confdefs.h <<_ACEOF | |
8590 | #define HAVE_LIBDL 1 | |
8591 | _ACEOF | |
8592 | ||
8593 | LIBS="-ldl $LIBS" | |
8594 | ||
8595 | fi | |
8596 | ||
8597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 | |
8598 | $as_echo_n "checking for pam_start in -lpam... " >&6; } | |
8599 | if ${ac_cv_lib_pam_pam_start+:} false; then : | |
8600 | $as_echo_n "(cached) " >&6 | |
8601 | else | |
8602 | ac_check_lib_save_LIBS=$LIBS | |
8603 | LIBS="-lpam $LIBS" | |
8604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8605 | /* end confdefs.h. */ | |
8606 | ||
8607 | /* Override any GCC internal prototype to avoid an error. | |
8608 | Use char because int might match the return type of a GCC | |
8609 | builtin and then its argument prototype would still apply. */ | |
8610 | #ifdef __cplusplus | |
8611 | extern "C" | |
8612 | #endif | |
8613 | char pam_start (); | |
8614 | int | |
8615 | main () | |
8616 | { | |
8617 | return pam_start (); | |
8618 | ; | |
8619 | return 0; | |
8620 | } | |
8621 | _ACEOF | |
8622 | if ac_fn_c_try_link "$LINENO"; then : | |
8623 | ac_cv_lib_pam_pam_start=yes | |
8624 | else | |
8625 | ac_cv_lib_pam_pam_start=no | |
8626 | fi | |
8627 | rm -f core conftest.err conftest.$ac_objext \ | |
8628 | conftest$ac_exeext conftest.$ac_ext | |
8629 | LIBS=$ac_check_lib_save_LIBS | |
8630 | fi | |
8631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 | |
8632 | $as_echo "$ac_cv_lib_pam_pam_start" >&6; } | |
8633 | if test "x$ac_cv_lib_pam_pam_start" = xyes; then : | |
8634 | cat >>confdefs.h <<_ACEOF | |
8635 | #define HAVE_LIBPAM 1 | |
8636 | _ACEOF | |
8637 | ||
8638 | LIBS="-lpam $LIBS" | |
8639 | ||
8640 | fi | |
8641 | ||
8642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 | |
8643 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } | |
8644 | if ${ac_cv_lib_pam_pam_set_item+:} false; then : | |
8645 | $as_echo_n "(cached) " >&6 | |
8646 | else | |
8647 | ac_check_lib_save_LIBS=$LIBS | |
8648 | LIBS="-lpam $LIBS" | |
8649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8650 | /* end confdefs.h. */ | |
8651 | ||
8652 | /* Override any GCC internal prototype to avoid an error. | |
8653 | Use char because int might match the return type of a GCC | |
8654 | builtin and then its argument prototype would still apply. */ | |
8655 | #ifdef __cplusplus | |
8656 | extern "C" | |
8657 | #endif | |
8658 | char pam_set_item (); | |
8659 | int | |
8660 | main () | |
8661 | { | |
8662 | return pam_set_item (); | |
8663 | ; | |
8664 | return 0; | |
8665 | } | |
8666 | _ACEOF | |
8667 | if ac_fn_c_try_link "$LINENO"; then : | |
8668 | ac_cv_lib_pam_pam_set_item=yes | |
8669 | else | |
8670 | ac_cv_lib_pam_pam_set_item=no | |
8671 | fi | |
8672 | rm -f core conftest.err conftest.$ac_objext \ | |
8673 | conftest$ac_exeext conftest.$ac_ext | |
8674 | LIBS=$ac_check_lib_save_LIBS | |
8675 | fi | |
8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 | |
8677 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } | |
8678 | if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : | |
8679 | $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h | |
8680 | ||
8681 | fi | |
8682 | ||
8683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5 | |
8684 | $as_echo_n "checking for pam_setcred in -lpam... " >&6; } | |
8685 | if ${ac_cv_lib_pam_pam_setcred+:} false; then : | |
8686 | $as_echo_n "(cached) " >&6 | |
8687 | else | |
8688 | ac_check_lib_save_LIBS=$LIBS | |
8689 | LIBS="-lpam $LIBS" | |
8690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8691 | /* end confdefs.h. */ | |
8692 | ||
8693 | /* Override any GCC internal prototype to avoid an error. | |
8694 | Use char because int might match the return type of a GCC | |
8695 | builtin and then its argument prototype would still apply. */ | |
8696 | #ifdef __cplusplus | |
8697 | extern "C" | |
8698 | #endif | |
8699 | char pam_setcred (); | |
8700 | int | |
8701 | main () | |
8702 | { | |
8703 | return pam_setcred (); | |
8704 | ; | |
8705 | return 0; | |
8706 | } | |
8707 | _ACEOF | |
8708 | if ac_fn_c_try_link "$LINENO"; then : | |
8709 | ac_cv_lib_pam_pam_setcred=yes | |
8710 | else | |
8711 | ac_cv_lib_pam_pam_setcred=no | |
8712 | fi | |
8713 | rm -f core conftest.err conftest.$ac_objext \ | |
8714 | conftest$ac_exeext conftest.$ac_ext | |
8715 | LIBS=$ac_check_lib_save_LIBS | |
8716 | fi | |
8717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5 | |
8718 | $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; } | |
8719 | if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then : | |
8720 | $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h | |
8721 | ||
8722 | fi | |
8723 | ||
8724 | ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" | |
8725 | if test "x$ac_cv_header_security_pam_appl_h" = xyes; then : | |
8726 | ||
8727 | fi | |
8728 | ||
8729 | ||
8730 | if test x$ac_cv_header_security_pam_appl_h != xyes; then | |
8731 | ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default" | |
8732 | if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then : | |
8733 | $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h | |
8734 | ||
8735 | fi | |
8736 | ||
8737 | ||
8738 | fi | |
8739 | ||
8740 | if test x$ac_cv_lib_pam_pam_start != xno; then | |
8741 | # Set the necessary libraries for PAM... | |
8742 | if test x$ac_cv_lib_dl_dlopen != xno; then | |
8743 | PAMLIBS="-lpam -ldl" | |
8744 | else | |
8745 | PAMLIBS="-lpam" | |
8746 | fi | |
8747 | ||
8748 | # Find the PAM configuration directory, if any... | |
8749 | for dir in /private/etc/pam.d /etc/pam.d; do | |
8750 | if test -d $dir; then | |
8751 | PAMDIR=$dir | |
8752 | break; | |
8753 | fi | |
8754 | done | |
8755 | fi | |
8756 | ||
8757 | LIBS="$SAVELIBS" | |
8758 | ||
105922ec | 8759 | case "$host_os_name" in |
8d7d268f | 8760 | darwin*) |
8072030b | 8761 | # Darwin/macOS |
d9f356c5 MS |
8762 | if test "x$with_pam_module" != x; then |
8763 | PAMFILE="pam.$with_pam_module" | |
8764 | elif test -f /usr/lib/pam/pam_opendirectory.so.2; then | |
8765 | PAMFILE="pam.opendirectory" | |
8766 | else | |
8767 | PAMFILE="pam.securityserver" | |
8768 | fi | |
8769 | ;; | |
8770 | ||
8771 | *) | |
8772 | # All others; this test might need to be updated | |
8773 | # as Linux distributors move things around... | |
8774 | if test "x$with_pam_module" != x; then | |
8775 | PAMMOD="pam_${with_pam_module}.so" | |
ac05c630 MS |
8776 | elif test -f /etc/pam.d/common-auth; then |
8777 | PAMFILE="pam.common" | |
8778 | else | |
8779 | moddir="" | |
8780 | for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do | |
8781 | if test -d $dir; then | |
8782 | moddir=$dir | |
8783 | break; | |
8784 | fi | |
8785 | done | |
8786 | ||
8787 | if test -f $moddir/pam_unix2.so; then | |
8788 | PAMMOD="pam_unix2.so" | |
8789 | elif test -f $moddir/pam_unix.so; then | |
8790 | PAMMOD="pam_unix.so" | |
8791 | fi | |
d9f356c5 MS |
8792 | fi |
8793 | ||
8794 | if test "x$PAMMOD" = xpam_unix.so; then | |
8795 | PAMMODAUTH="$PAMMOD shadow nodelay" | |
8796 | else | |
8797 | PAMMODAUTH="$PAMMOD nodelay" | |
8798 | fi | |
8799 | ;; | |
8800 | esac | |
8801 | fi | |
8802 | ||
8803 | ||
8804 | ||
8805 | ||
8806 | ||
8807 | ||
8808 | ||
8809 | ||
d9f356c5 MS |
8810 | # Check whether --enable-largefile was given. |
8811 | if test "${enable_largefile+set}" = set; then : | |
8812 | enableval=$enable_largefile; | |
8813 | fi | |
8814 | ||
8815 | if test "$enable_largefile" != no; then | |
8816 | ||
8817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
8818 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
8819 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
8820 | $as_echo_n "(cached) " >&6 | |
8821 | else | |
8822 | ac_cv_sys_largefile_CC=no | |
8823 | if test "$GCC" != yes; then | |
8824 | ac_save_CC=$CC | |
8825 | while :; do | |
8826 | # IRIX 6.2 and later do not support large files by default, | |
8827 | # so use the C compiler's -n32 option if that helps. | |
8828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8829 | /* end confdefs.h. */ | |
8830 | #include <sys/types.h> | |
8831 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8832 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8833 | since some C++ compilers masquerading as C compilers | |
8834 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 8835 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
8836 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
8837 | && LARGE_OFF_T % 2147483647 == 1) | |
8838 | ? 1 : -1]; | |
8839 | int | |
8840 | main () | |
8841 | { | |
8842 | ||
8843 | ; | |
8844 | return 0; | |
8845 | } | |
8846 | _ACEOF | |
8847 | if ac_fn_c_try_compile "$LINENO"; then : | |
8848 | break | |
8849 | fi | |
8850 | rm -f core conftest.err conftest.$ac_objext | |
8851 | CC="$CC -n32" | |
8852 | if ac_fn_c_try_compile "$LINENO"; then : | |
8853 | ac_cv_sys_largefile_CC=' -n32'; break | |
8854 | fi | |
8855 | rm -f core conftest.err conftest.$ac_objext | |
8856 | break | |
8857 | done | |
8858 | CC=$ac_save_CC | |
8859 | rm -f conftest.$ac_ext | |
8860 | fi | |
8861 | fi | |
8862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
8863 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
8864 | if test "$ac_cv_sys_largefile_CC" != no; then | |
8865 | CC=$CC$ac_cv_sys_largefile_CC | |
8866 | fi | |
8867 | ||
8868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
8869 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
8870 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
8871 | $as_echo_n "(cached) " >&6 | |
8872 | else | |
8873 | while :; do | |
8874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8875 | /* end confdefs.h. */ | |
8876 | #include <sys/types.h> | |
8877 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8878 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8879 | since some C++ compilers masquerading as C compilers | |
8880 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 8881 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
8882 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
8883 | && LARGE_OFF_T % 2147483647 == 1) | |
8884 | ? 1 : -1]; | |
8885 | int | |
8886 | main () | |
8887 | { | |
8888 | ||
8889 | ; | |
8890 | return 0; | |
8891 | } | |
8892 | _ACEOF | |
8893 | if ac_fn_c_try_compile "$LINENO"; then : | |
8894 | ac_cv_sys_file_offset_bits=no; break | |
8895 | fi | |
8896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8898 | /* end confdefs.h. */ | |
8899 | #define _FILE_OFFSET_BITS 64 | |
8900 | #include <sys/types.h> | |
8901 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8902 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8903 | since some C++ compilers masquerading as C compilers | |
8904 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 8905 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
8906 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
8907 | && LARGE_OFF_T % 2147483647 == 1) | |
8908 | ? 1 : -1]; | |
8909 | int | |
8910 | main () | |
8911 | { | |
8912 | ||
8913 | ; | |
8914 | return 0; | |
8915 | } | |
8916 | _ACEOF | |
8917 | if ac_fn_c_try_compile "$LINENO"; then : | |
8918 | ac_cv_sys_file_offset_bits=64; break | |
8919 | fi | |
8920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8921 | ac_cv_sys_file_offset_bits=unknown | |
8922 | break | |
8923 | done | |
8924 | fi | |
8925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
8926 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
8927 | case $ac_cv_sys_file_offset_bits in #( | |
8928 | no | unknown) ;; | |
8929 | *) | |
8930 | cat >>confdefs.h <<_ACEOF | |
8931 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
8932 | _ACEOF | |
8933 | ;; | |
8934 | esac | |
8935 | rm -rf conftest* | |
8936 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
8938 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
8939 | if ${ac_cv_sys_large_files+:} false; then : | |
8940 | $as_echo_n "(cached) " >&6 | |
8941 | else | |
8942 | while :; do | |
8943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8944 | /* end confdefs.h. */ | |
8945 | #include <sys/types.h> | |
8946 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8947 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8948 | since some C++ compilers masquerading as C compilers | |
8949 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 8950 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
8951 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
8952 | && LARGE_OFF_T % 2147483647 == 1) | |
8953 | ? 1 : -1]; | |
8954 | int | |
8955 | main () | |
8956 | { | |
8957 | ||
8958 | ; | |
8959 | return 0; | |
8960 | } | |
8961 | _ACEOF | |
8962 | if ac_fn_c_try_compile "$LINENO"; then : | |
8963 | ac_cv_sys_large_files=no; break | |
8964 | fi | |
8965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8967 | /* end confdefs.h. */ | |
8968 | #define _LARGE_FILES 1 | |
8969 | #include <sys/types.h> | |
8970 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8971 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8972 | since some C++ compilers masquerading as C compilers | |
8973 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 8974 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
8975 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
8976 | && LARGE_OFF_T % 2147483647 == 1) | |
8977 | ? 1 : -1]; | |
8978 | int | |
8979 | main () | |
8980 | { | |
8981 | ||
8982 | ; | |
8983 | return 0; | |
8984 | } | |
8985 | _ACEOF | |
8986 | if ac_fn_c_try_compile "$LINENO"; then : | |
8987 | ac_cv_sys_large_files=1; break | |
8988 | fi | |
8989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8990 | ac_cv_sys_large_files=unknown | |
8991 | break | |
8992 | done | |
8993 | fi | |
8994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
8995 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
8996 | case $ac_cv_sys_large_files in #( | |
8997 | no | unknown) ;; | |
8998 | *) | |
8999 | cat >>confdefs.h <<_ACEOF | |
9000 | #define _LARGE_FILES $ac_cv_sys_large_files | |
9001 | _ACEOF | |
9002 | ;; | |
9003 | esac | |
9004 | rm -rf conftest* | |
9005 | fi | |
9006 | fi | |
9007 | ||
9008 | ||
9009 | LARGEFILE="" | |
9010 | if test x$enable_largefile != xno; then | |
9011 | LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" | |
9012 | ||
9013 | if test x$ac_cv_sys_large_files = x1; then | |
9014 | LARGEFILE="$LARGEFILE -D_LARGE_FILES" | |
9015 | fi | |
9016 | ||
9017 | if test x$ac_cv_sys_file_offset_bits = x64; then | |
9018 | LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64" | |
9019 | fi | |
9020 | fi | |
9021 | ||
9022 | ||
9023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 | |
9024 | $as_echo_n "checking for long long int... " >&6; } | |
9025 | if ${ac_cv_c_long_long+:} false; then : | |
9026 | $as_echo_n "(cached) " >&6 | |
9027 | else | |
9028 | if test "$GCC" = yes; then | |
9029 | ac_cv_c_long_long=yes | |
9030 | else | |
9031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9032 | /* end confdefs.h. */ | |
9033 | ||
9034 | int | |
9035 | main () | |
9036 | { | |
9037 | long long int i; | |
9038 | ; | |
9039 | return 0; | |
9040 | } | |
9041 | _ACEOF | |
9042 | if ac_fn_c_try_compile "$LINENO"; then : | |
9043 | ac_cv_c_long_long=yes | |
9044 | else | |
9045 | ac_cv_c_long_long=no | |
9046 | fi | |
9047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9048 | fi | |
9049 | fi | |
9050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5 | |
9051 | $as_echo "$ac_cv_c_long_long" >&6; } | |
9052 | ||
9053 | if test $ac_cv_c_long_long = yes; then | |
9054 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | |
9055 | ||
9056 | fi | |
9057 | ||
9058 | ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" | |
9059 | if test "x$ac_cv_func_strtoll" = xyes; then : | |
9060 | $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h | |
9061 | ||
9062 | fi | |
9063 | ||
9064 | ||
9065 | ||
d9f356c5 MS |
9066 | # Check whether --enable-avahi was given. |
9067 | if test "${enable_avahi+set}" = set; then : | |
9068 | enableval=$enable_avahi; | |
9069 | fi | |
9070 | ||
9071 | # Check whether --enable-dnssd was given. | |
9072 | if test "${enable_dnssd+set}" = set; then : | |
9073 | enableval=$enable_dnssd; | |
9074 | fi | |
9075 | ||
9076 | ||
9077 | # Check whether --with-dnssd-libs was given. | |
9078 | if test "${with_dnssd_libs+set}" = set; then : | |
9079 | withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS" | |
9080 | DSOFLAGS="-L$withval $DSOFLAGS" | |
9081 | fi | |
9082 | ||
9083 | ||
9084 | # Check whether --with-dnssd-includes was given. | |
9085 | if test "${with_dnssd_includes+set}" = set; then : | |
9086 | withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS" | |
9087 | CPPFLAGS="-I$withval $CPPFLAGS" | |
9088 | fi | |
9089 | ||
9090 | ||
9091 | DNSSDLIBS="" | |
9092 | DNSSD_BACKEND="" | |
9093 | IPPFIND_BIN="" | |
9094 | IPPFIND_MAN="" | |
9095 | ||
105922ec | 9096 | if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then |
d9f356c5 MS |
9097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5 |
9098 | $as_echo_n "checking for Avahi... " >&6; } | |
9099 | if $PKGCONFIG --exists avahi-client; then | |
9100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9101 | $as_echo "yes" >&6; } | |
9102 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`" | |
9103 | DNSSDLIBS="`$PKGCONFIG --libs avahi-client`" | |
9104 | DNSSD_BACKEND="dnssd" | |
9105 | IPPFIND_BIN="ippfind" | |
9106 | IPPFIND_MAN="ippfind.\$(MAN1EXT)" | |
9107 | $as_echo "#define HAVE_AVAHI 1" >>confdefs.h | |
9108 | ||
9109 | else | |
9110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9111 | $as_echo "no" >&6; } | |
9112 | fi | |
9113 | fi | |
9114 | ||
9115 | if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then | |
9116 | ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default" | |
9117 | if test "x$ac_cv_header_dns_sd_h" = xyes; then : | |
9118 | ||
105922ec MS |
9119 | case "$host_os_name" in |
9120 | darwin*) | |
d4874933 | 9121 | # Darwin and macOS... |
d9f356c5 MS |
9122 | $as_echo "#define HAVE_DNSSD 1" >>confdefs.h |
9123 | ||
9124 | DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration" | |
9125 | DNSSD_BACKEND="dnssd" | |
9126 | IPPFIND_BIN="ippfind" | |
9127 | IPPFIND_MAN="ippfind.\$(MAN1EXT)" | |
9128 | ;; | |
9129 | *) | |
9130 | # All others... | |
9131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5 | |
9132 | $as_echo_n "checking for current version of dns_sd library... " >&6; } | |
9133 | SAVELIBS="$LIBS" | |
9134 | LIBS="$LIBS -ldns_sd" | |
9135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9136 | /* end confdefs.h. */ | |
9137 | #include <dns_sd.h> | |
9138 | int | |
9139 | main () | |
9140 | { | |
9141 | int constant = kDNSServiceFlagsShareConnection; | |
9142 | unsigned char txtRecord[100]; | |
9143 | uint8_t valueLen; | |
9144 | TXTRecordGetValuePtr(sizeof(txtRecord), | |
9145 | txtRecord, "value", &valueLen); | |
9146 | ; | |
9147 | return 0; | |
9148 | } | |
9149 | _ACEOF | |
9150 | if ac_fn_c_try_compile "$LINENO"; then : | |
9151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9152 | $as_echo "yes" >&6; } | |
9153 | $as_echo "#define HAVE_DNSSD 1" >>confdefs.h | |
9154 | ||
9155 | DNSSDLIBS="-ldns_sd" | |
9156 | DNSSD_BACKEND="dnssd" | |
9157 | else | |
9158 | IPPFIND_BIN="ippfind" | |
9159 | IPPFIND_MAN="ippfind.\$(MAN1EXT)" | |
9160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9161 | $as_echo "no" >&6; } | |
9162 | fi | |
9163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9164 | LIBS="$SAVELIBS" | |
9165 | ;; | |
9166 | esac | |
9167 | ||
9168 | fi | |
9169 | ||
9170 | ||
9171 | fi | |
9172 | ||
9173 | ||
9174 | ||
9175 | ||
9176 | ||
9177 | ||
9178 | ||
d9f356c5 MS |
9179 | ONDEMANDFLAGS="" |
9180 | ONDEMANDLIBS="" | |
9181 | ||
9182 | ||
9183 | ||
9184 | # Check whether --enable-launchd was given. | |
9185 | if test "${enable_launchd+set}" = set; then : | |
9186 | enableval=$enable_launchd; | |
9187 | fi | |
9188 | ||
9189 | LAUNCHD_DIR="" | |
9190 | ||
9191 | ||
9192 | if test x$enable_launchd != xno; then | |
1166bf58 | 9193 | ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket" |
d9f356c5 MS |
9194 | if test "x$ac_cv_func_launch_activate_socket" = xyes; then : |
9195 | ||
1166bf58 | 9196 | $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h |
d9f356c5 | 9197 | |
1166bf58 | 9198 | $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h |
d9f356c5 MS |
9199 | |
9200 | fi | |
9201 | ||
d9f356c5 MS |
9202 | ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default" |
9203 | if test "x$ac_cv_header_launch_h" = xyes; then : | |
9204 | $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h | |
9205 | ||
9206 | fi | |
9207 | ||
9208 | ||
9209 | ||
105922ec MS |
9210 | if test "$host_os_name" = darwin; then |
9211 | LAUNCHD_DIR="/System/Library/LaunchDaemons" | |
9212 | # liblaunch is already part of libSystem | |
9213 | fi | |
d9f356c5 MS |
9214 | fi |
9215 | ||
9216 | # Check whether --enable-systemd was given. | |
9217 | if test "${enable_systemd+set}" = set; then : | |
9218 | enableval=$enable_systemd; | |
9219 | fi | |
9220 | ||
9221 | ||
9222 | # Check whether --with-systemd was given. | |
9223 | if test "${with_systemd+set}" = set; then : | |
9224 | withval=$with_systemd; SYSTEMD_DIR="$withval" | |
9225 | else | |
9226 | SYSTEMD_DIR="" | |
9227 | fi | |
9228 | ||
9229 | ||
9230 | ||
9231 | if test x$enable_systemd != xno; then | |
9232 | if test "x$PKGCONFIG" = x; then | |
9233 | if test x$enable_systemd = xyes; then | |
9234 | as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5 | |
9235 | fi | |
9236 | else | |
9237 | have_systemd=no | |
9238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 | |
9239 | $as_echo_n "checking for libsystemd... " >&6; } | |
9240 | if $PKGCONFIG --exists libsystemd; then | |
9241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9242 | $as_echo "yes" >&6; } | |
9243 | have_systemd=yes | |
9244 | ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd` | |
9245 | ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd` | |
9246 | elif $PKGCONFIG --exists libsystemd-daemon; then | |
9247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5 | |
9248 | $as_echo "yes - legacy" >&6; } | |
9249 | have_systemd=yes | |
9250 | ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon` | |
9251 | ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon` | |
9252 | ||
9253 | if $PKGCONFIG --exists libsystemd-journal; then | |
9254 | ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal`" | |
9255 | ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal`" | |
9256 | fi | |
9257 | else | |
9258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9259 | $as_echo "no" >&6; } | |
9260 | fi | |
9261 | ||
9262 | if test $have_systemd = yes; then | |
9263 | $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h | |
9264 | ||
1166bf58 MS |
9265 | $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h |
9266 | ||
d9f356c5 MS |
9267 | ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default" |
9268 | if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then : | |
9269 | $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h | |
9270 | ||
9271 | fi | |
9272 | ||
9273 | ||
9274 | if test "x$SYSTEMD_DIR" = x; then | |
9275 | SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd`" | |
9276 | fi | |
9277 | fi | |
9278 | fi | |
9279 | fi | |
9280 | ||
441de8b2 BN |
9281 | # Check whether --enable-upstart was given. |
9282 | if test "${enable_upstart+set}" = set; then : | |
9283 | enableval=$enable_upstart; | |
9284 | fi | |
9285 | ||
9286 | if test "x$enable_upstart" = "xyes"; then | |
9287 | if test "x$have_systemd" = "xyes"; then | |
9288 | as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5 | |
9289 | fi | |
9290 | $as_echo "#define HAVE_UPSTART 1" >>confdefs.h | |
9291 | ||
1166bf58 MS |
9292 | $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h |
9293 | ||
441de8b2 BN |
9294 | fi |
9295 | ||
d9f356c5 MS |
9296 | SMFMANIFESTDIR="" |
9297 | ||
9298 | ||
9299 | # Check whether --with-smfmanifestdir was given. | |
9300 | if test "${with_smfmanifestdir+set}" = set; then : | |
9301 | withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval" | |
9302 | fi | |
9303 | ||
9304 | ||
9305 | ||
9306 | # Check whether --with-rcdir was given. | |
9307 | if test "${with_rcdir+set}" = set; then : | |
9308 | withval=$with_rcdir; rcdir="$withval" | |
9309 | else | |
9310 | rcdir="" | |
9311 | fi | |
9312 | ||
9313 | ||
9314 | # Check whether --with-rclevels was given. | |
9315 | if test "${with_rclevels+set}" = set; then : | |
9316 | withval=$with_rclevels; rclevels="$withval" | |
9317 | else | |
9318 | rclevels="2 3 5" | |
9319 | fi | |
9320 | ||
9321 | ||
9322 | # Check whether --with-rcstart was given. | |
9323 | if test "${with_rcstart+set}" = set; then : | |
9324 | withval=$with_rcstart; rcstart="$withval" | |
9325 | else | |
9326 | rcstart="" | |
9327 | fi | |
9328 | ||
9329 | ||
9330 | # Check whether --with-rcstop was given. | |
9331 | if test "${with_rcstop+set}" = set; then : | |
9332 | withval=$with_rcstop; rcstop="$withval" | |
9333 | else | |
9334 | rcstop="" | |
9335 | fi | |
9336 | ||
9337 | ||
9338 | if test x$rcdir = x; then | |
9339 | if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then | |
9340 | # Fall back on "init", the original service startup interface... | |
9341 | if test -d /sbin/init.d; then | |
9342 | # SuSE | |
9343 | rcdir="/sbin/init.d" | |
9344 | elif test -d /etc/init.d; then | |
9345 | # Others | |
9346 | rcdir="/etc" | |
9347 | else | |
9348 | # RedHat, NetBSD | |
9349 | rcdir="/etc/rc.d" | |
9350 | fi | |
9351 | else | |
9352 | rcdir="no" | |
9353 | fi | |
9354 | fi | |
9355 | ||
9356 | if test "x$rcstart" = x; then | |
105922ec | 9357 | case "$host_os_name" in |
827bf9ce | 9358 | linux* | gnu*) |
d9f356c5 MS |
9359 | # Linux |
9360 | rcstart="81" | |
9361 | ;; | |
9362 | ||
105922ec | 9363 | sunos*) |
d9f356c5 MS |
9364 | # Solaris |
9365 | rcstart="81" | |
9366 | ;; | |
9367 | ||
9368 | *) | |
9369 | # Others | |
9370 | rcstart="99" | |
9371 | ;; | |
9372 | esac | |
9373 | fi | |
9374 | ||
9375 | if test "x$rcstop" = x; then | |
105922ec | 9376 | case "$host_os_name" in |
827bf9ce | 9377 | linux* | gnu*) |
d9f356c5 MS |
9378 | # Linux |
9379 | rcstop="36" | |
9380 | ;; | |
9381 | ||
9382 | *) | |
9383 | # Others | |
9384 | rcstop="00" | |
9385 | ;; | |
9386 | esac | |
9387 | fi | |
9388 | ||
9389 | INITDIR="" | |
9390 | INITDDIR="" | |
9391 | RCLEVELS="$rclevels" | |
9392 | RCSTART="$rcstart" | |
9393 | RCSTOP="$rcstop" | |
9394 | ||
9395 | ||
9396 | ||
9397 | ||
9398 | ||
9399 | ||
9400 | if test "x$rcdir" != xno; then | |
9401 | if test "x$rclevels" = x; then | |
9402 | INITDDIR="$rcdir" | |
9403 | else | |
9404 | INITDIR="$rcdir" | |
9405 | fi | |
9406 | fi | |
9407 | ||
9408 | ||
9409 | # Check whether --with-xinetd was given. | |
9410 | if test "${with_xinetd+set}" = set; then : | |
9411 | withval=$with_xinetd; xinetd="$withval" | |
9412 | else | |
9413 | xinetd="" | |
9414 | fi | |
9415 | ||
9416 | XINETD="" | |
9417 | ||
9418 | ||
9419 | if test "x$xinetd" = x; then | |
9420 | if test ! -x /sbin/launchd; then | |
9421 | for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do | |
9422 | if test -d $dir; then | |
9423 | XINETD="$dir" | |
9424 | break | |
9425 | fi | |
9426 | done | |
9427 | fi | |
9428 | elif test "x$xinetd" != xno; then | |
9429 | XINETD="$xinetd" | |
9430 | fi | |
9431 | ||
9432 | ||
d9f356c5 MS |
9433 | LANGUAGES="`ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`" |
9434 | ||
9435 | ||
9436 | # Check whether --with-languages was given. | |
9437 | if test "${with_languages+set}" = set; then : | |
9438 | withval=$with_languages; | |
9439 | case "$withval" in | |
9440 | none | no) LANGUAGES="" ;; | |
9441 | all) ;; | |
9442 | *) LANGUAGES="$withval" ;; | |
9443 | esac | |
9444 | fi | |
9445 | ||
9446 | ||
9447 | ||
9448 | ||
9449 | # Check whether --with-bundledir was given. | |
9450 | if test "${with_bundledir+set}" = set; then : | |
9451 | withval=$with_bundledir; CUPS_BUNDLEDIR="$withval" | |
9452 | else | |
e4b72d7e MS |
9453 | |
9454 | if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then | |
d9f356c5 MS |
9455 | CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A" |
9456 | LANGUAGES="" | |
9457 | else | |
9458 | CUPS_BUNDLEDIR="" | |
9459 | fi | |
9460 | fi | |
9461 | ||
9462 | ||
9463 | ||
9464 | if test "x$CUPS_BUNDLEDIR" != x; then | |
9465 | cat >>confdefs.h <<_ACEOF | |
9466 | #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR" | |
9467 | _ACEOF | |
9468 | ||
171c38f2 MS |
9469 | fi |
9470 | ||
9471 | ||
9472 | # Check whether --with-bundlelang was given. | |
9473 | if test "${with_bundlelang+set}" = set; then : | |
9474 | withval=$with_bundlelang; cups_bundlelang="$withval" | |
9475 | else | |
e4b72d7e MS |
9476 | |
9477 | if test $host_os_version -ge 190; then | |
171c38f2 | 9478 | cups_bundlelang="en" |
e4b72d7e | 9479 | else |
171c38f2 | 9480 | cups_bundlelang="English" |
e4b72d7e | 9481 | fi |
171c38f2 MS |
9482 | fi |
9483 | ||
171c38f2 MS |
9484 | |
9485 | if test "x$cups_bundlelang" != x -a "x$CUPS_BUNDLEDIR" != x; then | |
9486 | CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/$cups_bundlelang.lproj" | |
e4b72d7e MS |
9487 | else |
9488 | CUPS_RESOURCEDIR="" | |
d9f356c5 MS |
9489 | fi |
9490 | ||
9491 | ||
e4b72d7e | 9492 | |
d4a895f8 MS |
9493 | # Check whether --with-exe_file_perm was given. |
9494 | if test "${with_exe_file_perm+set}" = set; then : | |
9495 | withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval" | |
9496 | else | |
827bf9ce | 9497 | case "$host_os_name" in |
134d0579 | 9498 | linux* | gnu*) |
827bf9ce MS |
9499 | CUPS_EXE_FILE_PERM="755" |
9500 | ;; | |
9501 | *) | |
9502 | CUPS_EXE_FILE_PERM="555" | |
9503 | ;; | |
134d0579 MS |
9504 | esac |
9505 | fi | |
9506 | ||
d4a895f8 MS |
9507 | |
9508 | ||
9509 | ||
d9f356c5 MS |
9510 | # Check whether --with-config_file_perm was given. |
9511 | if test "${with_config_file_perm+set}" = set; then : | |
9512 | withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval" | |
9513 | else | |
105922ec | 9514 | if test "x$host_os_name" = xdarwin; then |
d9f356c5 MS |
9515 | CUPS_CONFIG_FILE_PERM="644" |
9516 | else | |
9517 | CUPS_CONFIG_FILE_PERM="640" | |
9518 | fi | |
9519 | fi | |
9520 | ||
9521 | ||
9522 | cat >>confdefs.h <<_ACEOF | |
9523 | #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM | |
9524 | _ACEOF | |
9525 | ||
9526 | ||
9527 | ||
9528 | # Check whether --with-cupsd_file_perm was given. | |
9529 | if test "${with_cupsd_file_perm+set}" = set; then : | |
9530 | withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval" | |
9531 | else | |
827bf9ce | 9532 | case "$host_os_name" in |
134d0579 | 9533 | linux* | gnu*) |
827bf9ce MS |
9534 | CUPS_CUPSD_FILE_PERM="700" |
9535 | ;; | |
9536 | *) | |
9537 | CUPS_CUPSD_FILE_PERM="500" | |
9538 | ;; | |
134d0579 MS |
9539 | esac |
9540 | fi | |
9541 | ||
d9f356c5 MS |
9542 | |
9543 | ||
9544 | ||
9545 | # Check whether --with-log_file_perm was given. | |
9546 | if test "${with_log_file_perm+set}" = set; then : | |
9547 | withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval" | |
9548 | else | |
9549 | CUPS_LOG_FILE_PERM="644" | |
9550 | fi | |
9551 | ||
9552 | ||
9553 | cat >>confdefs.h <<_ACEOF | |
9554 | #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM | |
9555 | _ACEOF | |
9556 | ||
9557 | ||
9558 | ||
9559 | # Check whether --with-fatal_errors was given. | |
9560 | if test "${with_fatal_errors+set}" = set; then : | |
9561 | withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval" | |
9562 | else | |
9563 | CUPS_FATAL_ERRORS="config" | |
9564 | fi | |
9565 | ||
9566 | ||
9567 | cat >>confdefs.h <<_ACEOF | |
9568 | #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS" | |
9569 | _ACEOF | |
9570 | ||
9571 | ||
9572 | ||
9573 | # Check whether --with-log_level was given. | |
9574 | if test "${with_log_level+set}" = set; then : | |
9575 | withval=$with_log_level; CUPS_LOG_LEVEL="$withval" | |
9576 | else | |
9577 | CUPS_LOG_LEVEL="warn" | |
9578 | fi | |
9579 | ||
9580 | ||
9581 | cat >>confdefs.h <<_ACEOF | |
9582 | #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL" | |
9583 | _ACEOF | |
9584 | ||
9585 | ||
9586 | ||
9587 | # Check whether --with-access_log_level was given. | |
9588 | if test "${with_access_log_level+set}" = set; then : | |
9589 | withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval" | |
9590 | else | |
9591 | CUPS_ACCESS_LOG_LEVEL="none" | |
9592 | fi | |
9593 | ||
9594 | ||
9595 | cat >>confdefs.h <<_ACEOF | |
9596 | #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL" | |
9597 | _ACEOF | |
9598 | ||
9599 | ||
9600 | # Check whether --enable-page_logging was given. | |
9601 | if test "${enable_page_logging+set}" = set; then : | |
9602 | enableval=$enable_page_logging; | |
9603 | fi | |
9604 | ||
9605 | if test "x$enable_page_logging" = xyes; then | |
9606 | CUPS_PAGE_LOG_FORMAT="" | |
9607 | else | |
9608 | CUPS_PAGE_LOG_FORMAT="PageLogFormat" | |
9609 | fi | |
9610 | ||
9611 | ||
9612 | # Check whether --enable-browsing was given. | |
9613 | if test "${enable_browsing+set}" = set; then : | |
9614 | enableval=$enable_browsing; | |
9615 | fi | |
9616 | ||
9617 | if test "x$enable_browsing" = xno; then | |
9618 | CUPS_BROWSING="No" | |
9619 | cat >>confdefs.h <<_ACEOF | |
9620 | #define CUPS_DEFAULT_BROWSING 0 | |
9621 | _ACEOF | |
9622 | ||
9623 | else | |
9624 | CUPS_BROWSING="Yes" | |
9625 | cat >>confdefs.h <<_ACEOF | |
9626 | #define CUPS_DEFAULT_BROWSING 1 | |
9627 | _ACEOF | |
9628 | ||
9629 | fi | |
9630 | ||
9631 | ||
9632 | ||
9633 | # Check whether --with-local_protocols was given. | |
9634 | if test "${with_local_protocols+set}" = set; then : | |
9635 | withval=$with_local_protocols; default_local_protocols="$withval" | |
9636 | else | |
9637 | default_local_protocols="default" | |
9638 | fi | |
9639 | ||
9640 | ||
9641 | if test x$with_local_protocols != xno; then | |
9642 | if test "x$default_local_protocols" = "xdefault"; then | |
9643 | if test "x$DNSSD_BACKEND" != "x"; then | |
9644 | CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd" | |
9645 | else | |
9646 | CUPS_BROWSE_LOCAL_PROTOCOLS="" | |
9647 | fi | |
9648 | else | |
9649 | CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols" | |
9650 | fi | |
9651 | else | |
9652 | CUPS_BROWSE_LOCAL_PROTOCOLS="" | |
9653 | fi | |
9654 | ||
9655 | ||
9656 | cat >>confdefs.h <<_ACEOF | |
9657 | #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS" | |
9658 | _ACEOF | |
9659 | ||
9660 | ||
9661 | # Check whether --enable-default_shared was given. | |
9662 | if test "${enable_default_shared+set}" = set; then : | |
9663 | enableval=$enable_default_shared; | |
9664 | fi | |
9665 | ||
9666 | if test "x$enable_default_shared" = xno; then | |
9667 | CUPS_DEFAULT_SHARED="No" | |
9668 | cat >>confdefs.h <<_ACEOF | |
9669 | #define CUPS_DEFAULT_DEFAULT_SHARED 0 | |
9670 | _ACEOF | |
9671 | ||
9672 | else | |
9673 | CUPS_DEFAULT_SHARED="Yes" | |
9674 | cat >>confdefs.h <<_ACEOF | |
9675 | #define CUPS_DEFAULT_DEFAULT_SHARED 1 | |
9676 | _ACEOF | |
9677 | ||
9678 | fi | |
9679 | ||
9680 | ||
9681 | ||
9682 | # Check whether --with-cups_user was given. | |
9683 | if test "${with_cups_user+set}" = set; then : | |
9684 | withval=$with_cups_user; CUPS_USER="$withval" | |
9685 | else | |
9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5 | |
9687 | $as_echo_n "checking for default print user... " >&6; } | |
105922ec | 9688 | if test x$host_os_name = xdarwin; then |
d9f356c5 MS |
9689 | if test x`id -u _lp 2>/dev/null` = x; then |
9690 | CUPS_USER="lp"; | |
9691 | else | |
9692 | CUPS_USER="_lp"; | |
9693 | fi | |
9694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5 | |
9695 | $as_echo "$CUPS_USER" >&6; } | |
9696 | elif test -f /etc/passwd; then | |
9697 | CUPS_USER="" | |
9698 | for user in lp lpd guest daemon nobody; do | |
9699 | if test "`grep \^${user}: /etc/passwd`" != ""; then | |
9700 | CUPS_USER="$user" | |
9701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5 | |
9702 | $as_echo "$user" >&6; } | |
9703 | break; | |
9704 | fi | |
9705 | done | |
9706 | ||
9707 | if test x$CUPS_USER = x; then | |
9708 | CUPS_USER="nobody" | |
9709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
9710 | $as_echo "not found" >&6; } | |
9711 | fi | |
9712 | else | |
9713 | CUPS_USER="nobody" | |
9714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5 | |
9715 | $as_echo "no password file" >&6; } | |
9716 | fi | |
9717 | fi | |
9718 | ||
9719 | ||
9720 | if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then | |
9721 | as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5 | |
9722 | fi | |
9723 | ||
9724 | ||
9725 | # Check whether --with-cups_group was given. | |
9726 | if test "${with_cups_group+set}" = set; then : | |
9727 | withval=$with_cups_group; CUPS_GROUP="$withval" | |
9728 | else | |
9729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5 | |
9730 | $as_echo_n "checking for default print group... " >&6; } | |
105922ec | 9731 | if test x$host_os_name = xdarwin; then |
d9f356c5 MS |
9732 | if test x`id -g _lp 2>/dev/null` = x; then |
9733 | CUPS_GROUP="lp"; | |
9734 | else | |
9735 | CUPS_GROUP="_lp"; | |
9736 | fi | |
9737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5 | |
9738 | $as_echo "$CUPS_GROUP" >&6; } | |
9739 | elif test -f /etc/group; then | |
9740 | GROUP_LIST="_lp lp nobody" | |
9741 | CUPS_GROUP="" | |
9742 | for group in $GROUP_LIST; do | |
9743 | if test "`grep \^${group}: /etc/group`" != ""; then | |
9744 | CUPS_GROUP="$group" | |
9745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5 | |
9746 | $as_echo "$group" >&6; } | |
9747 | break; | |
9748 | fi | |
9749 | done | |
9750 | ||
9751 | if test x$CUPS_GROUP = x; then | |
9752 | CUPS_GROUP="nobody" | |
9753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
9754 | $as_echo "not found" >&6; } | |
9755 | fi | |
9756 | else | |
9757 | CUPS_GROUP="nobody" | |
9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5 | |
9759 | $as_echo "no group file" >&6; } | |
9760 | fi | |
9761 | fi | |
9762 | ||
9763 | ||
9764 | if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then | |
9765 | as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5 | |
9766 | fi | |
9767 | ||
9768 | ||
9769 | # Check whether --with-system_groups was given. | |
9770 | if test "${with_system_groups+set}" = set; then : | |
9771 | withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval" | |
9772 | else | |
105922ec | 9773 | if test x$host_os_name = xdarwin; then |
d9f356c5 MS |
9774 | CUPS_SYSTEM_GROUPS="admin" |
9775 | else | |
9776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5 | |
9777 | $as_echo_n "checking for default system groups... " >&6; } | |
9778 | if test -f /etc/group; then | |
9779 | CUPS_SYSTEM_GROUPS="" | |
9780 | GROUP_LIST="lpadmin sys system root" | |
9781 | for group in $GROUP_LIST; do | |
9782 | if test "`grep \^${group}: /etc/group`" != ""; then | |
9783 | if test "x$CUPS_SYSTEM_GROUPS" = x; then | |
9784 | CUPS_SYSTEM_GROUPS="$group" | |
9785 | else | |
9786 | CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group" | |
9787 | fi | |
9788 | fi | |
9789 | done | |
9790 | ||
9791 | if test "x$CUPS_SYSTEM_GROUPS" = x; then | |
9792 | CUPS_SYSTEM_GROUPS="$GROUP_LIST" | |
9793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5 | |
9794 | $as_echo "no groups found" >&6; } | |
9795 | else | |
9796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5 | |
9797 | $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; } | |
9798 | fi | |
9799 | else | |
9800 | CUPS_SYSTEM_GROUPS="$GROUP_LIST" | |
9801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5 | |
9802 | $as_echo "no group file" >&6; } | |
9803 | fi | |
9804 | fi | |
9805 | fi | |
9806 | ||
9807 | ||
9808 | CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS | awk '{print $1}'`" | |
9809 | ||
9810 | for group in $CUPS_SYSTEM_GROUPS; do | |
9811 | if test "x$CUPS_GROUP" = "x$group"; then | |
9812 | as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5 | |
9813 | fi | |
9814 | done | |
9815 | ||
9816 | ||
9817 | ||
9818 | ||
9819 | ||
9820 | ||
9821 | cat >>confdefs.h <<_ACEOF | |
9822 | #define CUPS_DEFAULT_USER "$CUPS_USER" | |
9823 | _ACEOF | |
9824 | ||
9825 | cat >>confdefs.h <<_ACEOF | |
9826 | #define CUPS_DEFAULT_GROUP "$CUPS_GROUP" | |
9827 | _ACEOF | |
9828 | ||
9829 | cat >>confdefs.h <<_ACEOF | |
9830 | #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS" | |
9831 | _ACEOF | |
9832 | ||
9833 | ||
9834 | ||
9835 | # Check whether --with-printcap was given. | |
9836 | if test "${with_printcap+set}" = set; then : | |
9837 | withval=$with_printcap; default_printcap="$withval" | |
9838 | else | |
9839 | default_printcap="default" | |
9840 | fi | |
9841 | ||
9842 | ||
9843 | if test x$default_printcap != xno; then | |
9844 | if test "x$default_printcap" = "xdefault"; then | |
105922ec MS |
9845 | case $host_os_name in |
9846 | darwin*) | |
9847 | if test $host_os_version -ge 90; then | |
d9f356c5 MS |
9848 | CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist" |
9849 | else | |
9850 | CUPS_DEFAULT_PRINTCAP="/etc/printcap" | |
9851 | fi | |
9852 | ;; | |
105922ec | 9853 | sunos*) |
d9f356c5 MS |
9854 | CUPS_DEFAULT_PRINTCAP="/etc/printers.conf" |
9855 | ;; | |
9856 | *) | |
9857 | CUPS_DEFAULT_PRINTCAP="/etc/printcap" | |
9858 | ;; | |
9859 | esac | |
9860 | else | |
9861 | CUPS_DEFAULT_PRINTCAP="$default_printcap" | |
9862 | fi | |
9863 | else | |
9864 | CUPS_DEFAULT_PRINTCAP="" | |
9865 | fi | |
9866 | ||
9867 | ||
9868 | cat >>confdefs.h <<_ACEOF | |
9869 | #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP" | |
9870 | _ACEOF | |
9871 | ||
9872 | ||
9873 | ||
9874 | # Check whether --with-lpdconfigfile was given. | |
9875 | if test "${with_lpdconfigfile+set}" = set; then : | |
9876 | withval=$with_lpdconfigfile; default_lpdconfigfile="$withval" | |
9877 | else | |
9878 | default_lpdconfigfile="default" | |
9879 | fi | |
9880 | ||
9881 | ||
9882 | if test x$default_lpdconfigfile != xno; then | |
9883 | if test "x$default_lpdconfigfile" = "xdefault"; then | |
105922ec MS |
9884 | case $host_os_name in |
9885 | darwin*) | |
d9f356c5 MS |
9886 | CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist" |
9887 | ;; | |
9888 | *) | |
9889 | if test "x$XINETD" != x; then | |
9890 | CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd" | |
9891 | else | |
9892 | CUPS_DEFAULT_LPD_CONFIG_FILE="" | |
9893 | fi | |
9894 | ;; | |
9895 | esac | |
9896 | else | |
9897 | CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile" | |
9898 | fi | |
9899 | else | |
9900 | CUPS_DEFAULT_LPD_CONFIG_FILE="" | |
9901 | fi | |
9902 | ||
9903 | cat >>confdefs.h <<_ACEOF | |
9904 | #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE" | |
9905 | _ACEOF | |
9906 | ||
9907 | ||
9908 | ||
9909 | ||
9910 | # Check whether --with-smbconfigfile was given. | |
9911 | if test "${with_smbconfigfile+set}" = set; then : | |
9912 | withval=$with_smbconfigfile; default_smbconfigfile="$withval" | |
9913 | else | |
9914 | default_smbconfigfile="default" | |
9915 | fi | |
9916 | ||
9917 | ||
9918 | if test x$default_smbconfigfile != xno; then | |
9919 | if test "x$default_smbconfigfile" = "xdefault"; then | |
9920 | if test -f /etc/smb.conf; then | |
9921 | CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf" | |
9922 | else | |
9923 | CUPS_DEFAULT_SMB_CONFIG_FILE="" | |
9924 | fi | |
9925 | else | |
9926 | CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile" | |
9927 | fi | |
9928 | else | |
9929 | CUPS_DEFAULT_SMB_CONFIG_FILE="" | |
9930 | fi | |
9931 | ||
9932 | cat >>confdefs.h <<_ACEOF | |
9933 | #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE" | |
9934 | _ACEOF | |
9935 | ||
9936 | ||
9937 | ||
9938 | ||
9939 | # Check whether --with-max-copies was given. | |
9940 | if test "${with_max_copies+set}" = set; then : | |
9941 | withval=$with_max_copies; CUPS_MAX_COPIES="$withval" | |
9942 | else | |
9943 | CUPS_MAX_COPIES="9999" | |
9944 | fi | |
9945 | ||
9946 | ||
9947 | ||
9948 | cat >>confdefs.h <<_ACEOF | |
9949 | #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES | |
9950 | _ACEOF | |
9951 | ||
9952 | ||
9953 | # Check whether --enable-raw_printing was given. | |
9954 | if test "${enable_raw_printing+set}" = set; then : | |
9955 | enableval=$enable_raw_printing; | |
9956 | fi | |
9957 | ||
9958 | if test "x$enable_raw_printing" != xno; then | |
9959 | DEFAULT_RAW_PRINTING="" | |
9960 | else | |
9961 | DEFAULT_RAW_PRINTING="#" | |
9962 | fi | |
9963 | ||
9964 | ||
9965 | ||
9966 | # Check whether --with-snmp-address was given. | |
9967 | if test "${with_snmp_address+set}" = set; then : | |
9968 | withval=$with_snmp_address; if test "x$withval" = x; then | |
9969 | CUPS_SNMP_ADDRESS="" | |
9970 | else | |
9971 | CUPS_SNMP_ADDRESS="Address $withval" | |
9972 | fi | |
9973 | else | |
105922ec | 9974 | if test "x$host_os_name" = xdarwin; then |
d9f356c5 MS |
9975 | CUPS_SNMP_ADDRESS="" |
9976 | else | |
9977 | CUPS_SNMP_ADDRESS="Address @LOCAL" | |
9978 | fi | |
9979 | fi | |
9980 | ||
9981 | ||
9982 | ||
9983 | # Check whether --with-snmp-community was given. | |
9984 | if test "${with_snmp_community+set}" = set; then : | |
9985 | withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval" | |
9986 | else | |
9987 | CUPS_SNMP_COMMUNITY="Community public" | |
9988 | fi | |
9989 | ||
9990 | ||
9991 | ||
9992 | ||
9993 | ||
9994 | ||
9995 | # Check whether --with-ipp-port was given. | |
9996 | if test "${with_ipp_port+set}" = set; then : | |
9997 | withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval" | |
9998 | else | |
9999 | DEFAULT_IPP_PORT="631" | |
10000 | fi | |
10001 | ||
10002 | ||
10003 | ||
10004 | cat >>confdefs.h <<_ACEOF | |
10005 | #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT | |
10006 | _ACEOF | |
10007 | ||
10008 | ||
10009 | # Check whether --enable-webif was given. | |
10010 | if test "${enable_webif+set}" = set; then : | |
10011 | enableval=$enable_webif; | |
10012 | fi | |
10013 | ||
10014 | case "x$enable_webif" in | |
10015 | xno) | |
10016 | CUPS_WEBIF=No | |
10017 | CUPS_DEFAULT_WEBIF=0 | |
10018 | ;; | |
10019 | xyes) | |
10020 | CUPS_WEBIF=Yes | |
10021 | CUPS_DEFAULT_WEBIF=1 | |
10022 | ;; | |
10023 | *) | |
105922ec | 10024 | if test $host_os_name = darwin; then |
d9f356c5 MS |
10025 | CUPS_WEBIF=No |
10026 | CUPS_DEFAULT_WEBIF=0 | |
10027 | else | |
10028 | CUPS_WEBIF=Yes | |
10029 | CUPS_DEFAULT_WEBIF=1 | |
10030 | fi | |
10031 | ;; | |
10032 | esac | |
10033 | ||
10034 | ||
10035 | cat >>confdefs.h <<_ACEOF | |
10036 | #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF | |
10037 | _ACEOF | |
10038 | ||
10039 | ||
10040 | ||
d9f356c5 MS |
10041 | INSTALL_LANGUAGES="" |
10042 | UNINSTALL_LANGUAGES="" | |
10043 | LANGFILES="" | |
10044 | if test "x$LANGUAGES" != x; then | |
10045 | INSTALL_LANGUAGES="install-languages" | |
10046 | UNINSTALL_LANGUAGES="uninstall-languages" | |
10047 | for lang in $LANGUAGES; do | |
10048 | if test -f doc/$lang/index.html.in; then | |
10049 | LANGFILES="$LANGFILES doc/$lang/index.html" | |
10050 | fi | |
10051 | ||
10052 | if test -f templates/$lang/header.tmpl.in; then | |
10053 | LANGFILES="$LANGFILES templates/$lang/header.tmpl" | |
10054 | fi | |
10055 | done | |
10056 | elif test "x$CUPS_BUNDLEDIR" != x; then | |
10057 | INSTALL_LANGUAGES="install-langbundle" | |
10058 | UNINSTALL_LANGUAGES="uninstall-langbundle" | |
10059 | fi | |
10060 | ||
10061 | ||
10062 | ||
10063 | ||
f1def5b8 | 10064 | ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config desktop/cups.desktop doc/index.html man/client.conf.man man/cups-files.conf.man man/cups-lpd.man man/cups-snmp.man man/cupsd.conf.man man/cupsd.man man/lpoptions.man scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/org.cups.cups-lpdAT.service scheduler/org.cups.cupsd.path scheduler/org.cups.cupsd.service scheduler/org.cups.cupsd.socket templates/header.tmpl packaging/cups.list $LANGFILES" |
d9f356c5 MS |
10065 | |
10066 | cat >confcache <<\_ACEOF | |
10067 | # This file is a shell script that caches the results of configure | |
10068 | # tests run on this system so they can be shared between configure | |
10069 | # scripts and configure runs, see configure's option --config-cache. | |
10070 | # It is not useful on other systems. If it contains results you don't | |
10071 | # want to keep, you may remove or edit it. | |
10072 | # | |
10073 | # config.status only pays attention to the cache file if you give it | |
10074 | # the --recheck option to rerun configure. | |
10075 | # | |
10076 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10077 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10078 | # following values. | |
10079 | ||
10080 | _ACEOF | |
10081 | ||
10082 | # The following way of writing the cache mishandles newlines in values, | |
10083 | # but we know of no workaround that is simple, portable, and efficient. | |
10084 | # So, we kill variables containing newlines. | |
10085 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10086 | # and sets the high bit in the cache file unless we assign to the vars. | |
10087 | ( | |
10088 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10089 | eval ac_val=\$$ac_var | |
10090 | case $ac_val in #( | |
10091 | *${as_nl}*) | |
10092 | case $ac_var in #( | |
10093 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
10094 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
10095 | esac | |
10096 | case $ac_var in #( | |
10097 | _ | IFS | as_nl) ;; #( | |
10098 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
10099 | *) { eval $ac_var=; unset $ac_var;} ;; | |
10100 | esac ;; | |
10101 | esac | |
10102 | done | |
10103 | ||
10104 | (set) 2>&1 | | |
10105 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
10106 | *${as_nl}ac_space=\ *) | |
10107 | # `set' does not quote correctly, so add quotes: double-quote | |
10108 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
10109 | sed -n \ | |
10110 | "s/'/'\\\\''/g; | |
10111 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
10112 | ;; #( | |
10113 | *) | |
10114 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10115 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
10116 | ;; | |
10117 | esac | | |
10118 | sort | |
10119 | ) | | |
10120 | sed ' | |
10121 | /^ac_cv_env_/b end | |
10122 | t clear | |
10123 | :clear | |
10124 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10125 | t end | |
10126 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10127 | :end' >>confcache | |
10128 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10129 | if test -w "$cache_file"; then | |
10130 | if test "x$cache_file" != "x/dev/null"; then | |
10131 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
10132 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
10133 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
10134 | cat confcache >"$cache_file" | |
10135 | else | |
10136 | case $cache_file in #( | |
10137 | */* | ?:*) | |
10138 | mv -f confcache "$cache_file"$$ && | |
10139 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
10140 | *) | |
10141 | mv -f confcache "$cache_file" ;; | |
10142 | esac | |
10143 | fi | |
10144 | fi | |
10145 | else | |
10146 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
10147 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
10148 | fi | |
10149 | fi | |
10150 | rm -f confcache | |
10151 | ||
10152 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
10153 | # Let make expand exec_prefix. | |
10154 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10155 | ||
10156 | DEFS=-DHAVE_CONFIG_H | |
10157 | ||
10158 | ac_libobjs= | |
10159 | ac_ltlibobjs= | |
10160 | U= | |
10161 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
10162 | # 1. Remove the extension, and $U if already installed. | |
10163 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
10164 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
10165 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
10166 | # will be set to the directory where LIBOBJS objects are built. | |
10167 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
10168 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
10169 | done | |
10170 | LIBOBJS=$ac_libobjs | |
10171 | ||
10172 | LTLIBOBJS=$ac_ltlibobjs | |
10173 | ||
10174 | ||
10175 | ||
10176 | : "${CONFIG_STATUS=./config.status}" | |
10177 | ac_write_fail=0 | |
10178 | ac_clean_files_save=$ac_clean_files | |
10179 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
10180 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
10181 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10182 | as_write_fail=0 | |
10183 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
10184 | #! $SHELL | |
10185 | # Generated by $as_me. | |
10186 | # Run this file to recreate the current configuration. | |
10187 | # Compiler output produced by configure, useful for debugging | |
10188 | # configure, is in config.log if it exists. | |
10189 | ||
10190 | debug=false | |
10191 | ac_cs_recheck=false | |
10192 | ac_cs_silent=false | |
10193 | ||
10194 | SHELL=\${CONFIG_SHELL-$SHELL} | |
10195 | export SHELL | |
10196 | _ASEOF | |
10197 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10198 | ## -------------------- ## | |
10199 | ## M4sh Initialization. ## | |
10200 | ## -------------------- ## | |
10201 | ||
10202 | # Be more Bourne compatible | |
10203 | DUALCASE=1; export DUALCASE # for MKS sh | |
10204 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
10205 | emulate sh | |
10206 | NULLCMD=: | |
10207 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
10208 | # is contrary to our usage. Disable this feature. | |
10209 | alias -g '${1+"$@"}'='"$@"' | |
10210 | setopt NO_GLOB_SUBST | |
10211 | else | |
10212 | case `(set -o) 2>/dev/null` in #( | |
10213 | *posix*) : | |
10214 | set -o posix ;; #( | |
10215 | *) : | |
10216 | ;; | |
10217 | esac | |
10218 | fi | |
10219 | ||
10220 | ||
10221 | as_nl=' | |
10222 | ' | |
10223 | export as_nl | |
10224 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10225 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10226 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10227 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
10228 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
10229 | # but without wasting forks for bash or zsh. | |
10230 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10231 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10232 | as_echo='print -r --' | |
10233 | as_echo_n='print -rn --' | |
10234 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10235 | as_echo='printf %s\n' | |
10236 | as_echo_n='printf %s' | |
10237 | else | |
10238 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10239 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10240 | as_echo_n='/usr/ucb/echo -n' | |
10241 | else | |
10242 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
10243 | as_echo_n_body='eval | |
10244 | arg=$1; | |
10245 | case $arg in #( | |
10246 | *"$as_nl"*) | |
10247 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10248 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10249 | esac; | |
10250 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10251 | ' | |
10252 | export as_echo_n_body | |
10253 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
10254 | fi | |
10255 | export as_echo_body | |
10256 | as_echo='sh -c $as_echo_body as_echo' | |
10257 | fi | |
10258 | ||
10259 | # The user is always right. | |
10260 | if test "${PATH_SEPARATOR+set}" != set; then | |
10261 | PATH_SEPARATOR=: | |
10262 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10263 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10264 | PATH_SEPARATOR=';' | |
10265 | } | |
10266 | fi | |
10267 | ||
10268 | ||
10269 | # IFS | |
10270 | # We need space, tab and new line, in precisely that order. Quoting is | |
10271 | # there to prevent editors from complaining about space-tab. | |
10272 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10273 | # splitting by setting IFS to empty value.) | |
10274 | IFS=" "" $as_nl" | |
10275 | ||
10276 | # Find who we are. Look in the path if we contain no directory separator. | |
10277 | as_myself= | |
10278 | case $0 in #(( | |
10279 | *[\\/]* ) as_myself=$0 ;; | |
10280 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10281 | for as_dir in $PATH | |
10282 | do | |
10283 | IFS=$as_save_IFS | |
10284 | test -z "$as_dir" && as_dir=. | |
10285 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
10286 | done | |
10287 | IFS=$as_save_IFS | |
10288 | ||
10289 | ;; | |
10290 | esac | |
10291 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10292 | # in which case we are not to be found in the path. | |
10293 | if test "x$as_myself" = x; then | |
10294 | as_myself=$0 | |
10295 | fi | |
10296 | if test ! -f "$as_myself"; then | |
10297 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
10298 | exit 1 | |
10299 | fi | |
10300 | ||
10301 | # Unset variables that we do not need and which cause bugs (e.g. in | |
10302 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10303 | # suppresses any "Segmentation fault" message there. '((' could | |
10304 | # trigger a bug in pdksh 5.2.14. | |
10305 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10306 | do eval test x\${$as_var+set} = xset \ | |
10307 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
10308 | done | |
10309 | PS1='$ ' | |
10310 | PS2='> ' | |
10311 | PS4='+ ' | |
10312 | ||
10313 | # NLS nuisances. | |
10314 | LC_ALL=C | |
10315 | export LC_ALL | |
10316 | LANGUAGE=C | |
10317 | export LANGUAGE | |
10318 | ||
10319 | # CDPATH. | |
10320 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10321 | ||
10322 | ||
10323 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10324 | # ---------------------------------------- | |
10325 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10326 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10327 | # script with STATUS, using 1 if that was 0. | |
10328 | as_fn_error () | |
10329 | { | |
10330 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10331 | if test "$4"; then | |
10332 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10333 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10334 | fi | |
10335 | $as_echo "$as_me: error: $2" >&2 | |
10336 | as_fn_exit $as_status | |
10337 | } # as_fn_error | |
10338 | ||
10339 | ||
10340 | # as_fn_set_status STATUS | |
10341 | # ----------------------- | |
10342 | # Set $? to STATUS, without forking. | |
10343 | as_fn_set_status () | |
10344 | { | |
10345 | return $1 | |
10346 | } # as_fn_set_status | |
10347 | ||
10348 | # as_fn_exit STATUS | |
10349 | # ----------------- | |
10350 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10351 | as_fn_exit () | |
10352 | { | |
10353 | set +e | |
10354 | as_fn_set_status $1 | |
10355 | exit $1 | |
10356 | } # as_fn_exit | |
10357 | ||
10358 | # as_fn_unset VAR | |
10359 | # --------------- | |
10360 | # Portably unset VAR. | |
10361 | as_fn_unset () | |
10362 | { | |
10363 | { eval $1=; unset $1;} | |
10364 | } | |
10365 | as_unset=as_fn_unset | |
10366 | # as_fn_append VAR VALUE | |
10367 | # ---------------------- | |
10368 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10369 | # advantage of any shell optimizations that allow amortized linear growth over | |
10370 | # repeated appends, instead of the typical quadratic growth present in naive | |
10371 | # implementations. | |
10372 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10373 | eval 'as_fn_append () | |
10374 | { | |
10375 | eval $1+=\$2 | |
10376 | }' | |
10377 | else | |
10378 | as_fn_append () | |
10379 | { | |
10380 | eval $1=\$$1\$2 | |
10381 | } | |
10382 | fi # as_fn_append | |
10383 | ||
10384 | # as_fn_arith ARG... | |
10385 | # ------------------ | |
10386 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10387 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10388 | # must be portable across $(()) and expr. | |
10389 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10390 | eval 'as_fn_arith () | |
10391 | { | |
10392 | as_val=$(( $* )) | |
10393 | }' | |
10394 | else | |
10395 | as_fn_arith () | |
10396 | { | |
10397 | as_val=`expr "$@" || test $? -eq 1` | |
10398 | } | |
10399 | fi # as_fn_arith | |
10400 | ||
10401 | ||
10402 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
10403 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
10404 | as_expr=expr | |
10405 | else | |
10406 | as_expr=false | |
10407 | fi | |
10408 | ||
10409 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
10410 | as_basename=basename | |
10411 | else | |
10412 | as_basename=false | |
10413 | fi | |
10414 | ||
10415 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
10416 | as_dirname=dirname | |
10417 | else | |
10418 | as_dirname=false | |
10419 | fi | |
10420 | ||
10421 | as_me=`$as_basename -- "$0" || | |
10422 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
10423 | X"$0" : 'X\(//\)$' \| \ | |
10424 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
10425 | $as_echo X/"$0" | | |
10426 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
10427 | s//\1/ | |
10428 | q | |
10429 | } | |
10430 | /^X\/\(\/\/\)$/{ | |
10431 | s//\1/ | |
10432 | q | |
10433 | } | |
10434 | /^X\/\(\/\).*/{ | |
10435 | s//\1/ | |
10436 | q | |
10437 | } | |
10438 | s/.*/./; q'` | |
10439 | ||
10440 | # Avoid depending upon Character Ranges. | |
10441 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10442 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10443 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10444 | as_cr_digits='0123456789' | |
10445 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
10446 | ||
10447 | ECHO_C= ECHO_N= ECHO_T= | |
10448 | case `echo -n x` in #((((( | |
10449 | -n*) | |
10450 | case `echo 'xy\c'` in | |
10451 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
10452 | xy) ECHO_C='\c';; | |
10453 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10454 | ECHO_T=' ';; | |
10455 | esac;; | |
10456 | *) | |
10457 | ECHO_N='-n';; | |
10458 | esac | |
10459 | ||
10460 | rm -f conf$$ conf$$.exe conf$$.file | |
10461 | if test -d conf$$.dir; then | |
10462 | rm -f conf$$.dir/conf$$.file | |
10463 | else | |
10464 | rm -f conf$$.dir | |
10465 | mkdir conf$$.dir 2>/dev/null | |
10466 | fi | |
10467 | if (echo >conf$$.file) 2>/dev/null; then | |
10468 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10469 | as_ln_s='ln -s' | |
10470 | # ... but there are two gotchas: | |
10471 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10472 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
971a6b5d | 10473 | # In both cases, we have to default to `cp -p'. |
d9f356c5 | 10474 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
971a6b5d | 10475 | as_ln_s='cp -p' |
d9f356c5 MS |
10476 | elif ln conf$$.file conf$$ 2>/dev/null; then |
10477 | as_ln_s=ln | |
10478 | else | |
971a6b5d | 10479 | as_ln_s='cp -p' |
d9f356c5 MS |
10480 | fi |
10481 | else | |
971a6b5d | 10482 | as_ln_s='cp -p' |
d9f356c5 MS |
10483 | fi |
10484 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
10485 | rmdir conf$$.dir 2>/dev/null | |
10486 | ||
10487 | ||
10488 | # as_fn_mkdir_p | |
10489 | # ------------- | |
10490 | # Create "$as_dir" as a directory, including parents if necessary. | |
10491 | as_fn_mkdir_p () | |
10492 | { | |
10493 | ||
10494 | case $as_dir in #( | |
10495 | -*) as_dir=./$as_dir;; | |
10496 | esac | |
10497 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10498 | as_dirs= | |
10499 | while :; do | |
10500 | case $as_dir in #( | |
10501 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10502 | *) as_qdir=$as_dir;; | |
10503 | esac | |
10504 | as_dirs="'$as_qdir' $as_dirs" | |
10505 | as_dir=`$as_dirname -- "$as_dir" || | |
10506 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10507 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10508 | X"$as_dir" : 'X\(//\)$' \| \ | |
10509 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10510 | $as_echo X"$as_dir" | | |
10511 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10512 | s//\1/ | |
10513 | q | |
10514 | } | |
10515 | /^X\(\/\/\)[^/].*/{ | |
10516 | s//\1/ | |
10517 | q | |
10518 | } | |
10519 | /^X\(\/\/\)$/{ | |
10520 | s//\1/ | |
10521 | q | |
10522 | } | |
10523 | /^X\(\/\).*/{ | |
10524 | s//\1/ | |
10525 | q | |
10526 | } | |
10527 | s/.*/./; q'` | |
10528 | test -d "$as_dir" && break | |
10529 | done | |
10530 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10531 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
10532 | ||
10533 | ||
10534 | } # as_fn_mkdir_p | |
10535 | if mkdir -p . 2>/dev/null; then | |
10536 | as_mkdir_p='mkdir -p "$as_dir"' | |
10537 | else | |
10538 | test -d ./-p && rmdir ./-p | |
10539 | as_mkdir_p=false | |
10540 | fi | |
10541 | ||
971a6b5d MS |
10542 | if test -x / >/dev/null 2>&1; then |
10543 | as_test_x='test -x' | |
10544 | else | |
10545 | if ls -dL / >/dev/null 2>&1; then | |
10546 | as_ls_L_option=L | |
10547 | else | |
10548 | as_ls_L_option= | |
10549 | fi | |
10550 | as_test_x=' | |
10551 | eval sh -c '\'' | |
10552 | if test -d "$1"; then | |
10553 | test -d "$1/."; | |
10554 | else | |
10555 | case $1 in #( | |
10556 | -*)set "./$1";; | |
10557 | esac; | |
10558 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
10559 | ???[sx]*):;;*)false;;esac;fi | |
10560 | '\'' sh | |
10561 | ' | |
10562 | fi | |
10563 | as_executable_p=$as_test_x | |
d9f356c5 MS |
10564 | |
10565 | # Sed expression to map a string onto a valid CPP name. | |
10566 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10567 | ||
10568 | # Sed expression to map a string onto a valid variable name. | |
10569 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10570 | ||
10571 | ||
10572 | exec 6>&1 | |
10573 | ## ----------------------------------- ## | |
10574 | ## Main body of $CONFIG_STATUS script. ## | |
10575 | ## ----------------------------------- ## | |
10576 | _ASEOF | |
10577 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
10578 | ||
10579 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10580 | # Save the log message, to keep $0 and so on meaningful, and to | |
10581 | # report actual input values of CONFIG_FILES etc. instead of their | |
10582 | # values after options handling. | |
10583 | ac_log=" | |
8a763079 | 10584 | This file was extended by CUPS $as_me 2.3b7, which was |
971a6b5d | 10585 | generated by GNU Autoconf 2.68. Invocation command line was |
d9f356c5 MS |
10586 | |
10587 | CONFIG_FILES = $CONFIG_FILES | |
10588 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10589 | CONFIG_LINKS = $CONFIG_LINKS | |
10590 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10591 | $ $0 $@ | |
10592 | ||
10593 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
10594 | " | |
10595 | ||
10596 | _ACEOF | |
10597 | ||
10598 | case $ac_config_files in *" | |
10599 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10600 | esac | |
10601 | ||
10602 | case $ac_config_headers in *" | |
10603 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10604 | esac | |
10605 | ||
10606 | ||
10607 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10608 | # Files that config.status was made for. | |
10609 | config_files="$ac_config_files" | |
10610 | config_headers="$ac_config_headers" | |
10611 | ||
10612 | _ACEOF | |
10613 | ||
10614 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10615 | ac_cs_usage="\ | |
10616 | \`$as_me' instantiates files and other configuration actions | |
10617 | from templates according to the current configuration. Unless the files | |
10618 | and actions are specified as TAGs, all are instantiated by default. | |
10619 | ||
10620 | Usage: $0 [OPTION]... [TAG]... | |
10621 | ||
10622 | -h, --help print this help, then exit | |
10623 | -V, --version print version number and configuration settings, then exit | |
10624 | --config print configuration, then exit | |
10625 | -q, --quiet, --silent | |
10626 | do not print progress messages | |
10627 | -d, --debug don't remove temporary files | |
10628 | --recheck update $as_me by reconfiguring in the same conditions | |
10629 | --file=FILE[:TEMPLATE] | |
10630 | instantiate the configuration file FILE | |
10631 | --header=FILE[:TEMPLATE] | |
10632 | instantiate the configuration header FILE | |
10633 | ||
10634 | Configuration files: | |
10635 | $config_files | |
10636 | ||
10637 | Configuration headers: | |
10638 | $config_headers | |
10639 | ||
24343173 | 10640 | Report bugs to <https://github.com/apple/cups/issues>. |
d9f356c5 MS |
10641 | CUPS home page: <https://www.cups.org/>." |
10642 | ||
10643 | _ACEOF | |
10644 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10645 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
10646 | ac_cs_version="\\ | |
8a763079 | 10647 | CUPS config.status 2.3b7 |
971a6b5d | 10648 | configured by $0, generated by GNU Autoconf 2.68, |
d9f356c5 MS |
10649 | with options \\"\$ac_cs_config\\" |
10650 | ||
971a6b5d | 10651 | Copyright (C) 2010 Free Software Foundation, Inc. |
d9f356c5 MS |
10652 | This config.status script is free software; the Free Software Foundation |
10653 | gives unlimited permission to copy, distribute and modify it." | |
10654 | ||
10655 | ac_pwd='$ac_pwd' | |
10656 | srcdir='$srcdir' | |
10657 | AWK='$AWK' | |
10658 | test -n "\$AWK" || AWK=awk | |
10659 | _ACEOF | |
10660 | ||
10661 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10662 | # The default lists apply if the user does not specify any file. | |
10663 | ac_need_defaults=: | |
10664 | while test $# != 0 | |
10665 | do | |
10666 | case $1 in | |
10667 | --*=?*) | |
10668 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10669 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
10670 | ac_shift=: | |
10671 | ;; | |
10672 | --*=) | |
10673 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10674 | ac_optarg= | |
10675 | ac_shift=: | |
10676 | ;; | |
10677 | *) | |
10678 | ac_option=$1 | |
10679 | ac_optarg=$2 | |
10680 | ac_shift=shift | |
10681 | ;; | |
10682 | esac | |
10683 | ||
10684 | case $ac_option in | |
10685 | # Handling of the options. | |
10686 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
10687 | ac_cs_recheck=: ;; | |
10688 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
10689 | $as_echo "$ac_cs_version"; exit ;; | |
10690 | --config | --confi | --conf | --con | --co | --c ) | |
10691 | $as_echo "$ac_cs_config"; exit ;; | |
10692 | --debug | --debu | --deb | --de | --d | -d ) | |
10693 | debug=: ;; | |
10694 | --file | --fil | --fi | --f ) | |
10695 | $ac_shift | |
10696 | case $ac_optarg in | |
10697 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10698 | '') as_fn_error $? "missing file argument" ;; | |
10699 | esac | |
10700 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
10701 | ac_need_defaults=false;; | |
10702 | --header | --heade | --head | --hea ) | |
10703 | $ac_shift | |
10704 | case $ac_optarg in | |
10705 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10706 | esac | |
10707 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
10708 | ac_need_defaults=false;; | |
10709 | --he | --h) | |
10710 | # Conflict between --help and --header | |
10711 | as_fn_error $? "ambiguous option: \`$1' | |
10712 | Try \`$0 --help' for more information.";; | |
10713 | --help | --hel | -h ) | |
10714 | $as_echo "$ac_cs_usage"; exit ;; | |
10715 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
10716 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10717 | ac_cs_silent=: ;; | |
10718 | ||
10719 | # This is an error. | |
10720 | -*) as_fn_error $? "unrecognized option: \`$1' | |
10721 | Try \`$0 --help' for more information." ;; | |
10722 | ||
10723 | *) as_fn_append ac_config_targets " $1" | |
10724 | ac_need_defaults=false ;; | |
10725 | ||
10726 | esac | |
10727 | shift | |
10728 | done | |
10729 | ||
10730 | ac_configure_extra_args= | |
10731 | ||
10732 | if $ac_cs_silent; then | |
10733 | exec 6>/dev/null | |
10734 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10735 | fi | |
10736 | ||
10737 | _ACEOF | |
10738 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10739 | if \$ac_cs_recheck; then | |
971a6b5d | 10740 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
d9f356c5 MS |
10741 | shift |
10742 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10743 | CONFIG_SHELL='$SHELL' | |
10744 | export CONFIG_SHELL | |
10745 | exec "\$@" | |
10746 | fi | |
10747 | ||
10748 | _ACEOF | |
10749 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10750 | exec 5>>config.log | |
10751 | { | |
10752 | echo | |
10753 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10754 | ## Running $as_me. ## | |
10755 | _ASBOX | |
10756 | $as_echo "$ac_log" | |
10757 | } >&5 | |
10758 | ||
10759 | _ACEOF | |
10760 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10761 | _ACEOF | |
10762 | ||
10763 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10764 | ||
10765 | # Handling of arguments. | |
10766 | for ac_config_target in $ac_config_targets | |
10767 | do | |
10768 | case $ac_config_target in | |
10769 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
10770 | "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;; | |
10771 | "conf/cups-files.conf") CONFIG_FILES="$CONFIG_FILES conf/cups-files.conf" ;; | |
10772 | "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;; | |
10773 | "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;; | |
10774 | "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;; | |
10775 | "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;; | |
10776 | "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;; | |
10777 | "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;; | |
10778 | "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;; | |
10779 | "man/client.conf.man") CONFIG_FILES="$CONFIG_FILES man/client.conf.man" ;; | |
10780 | "man/cups-files.conf.man") CONFIG_FILES="$CONFIG_FILES man/cups-files.conf.man" ;; | |
10781 | "man/cups-lpd.man") CONFIG_FILES="$CONFIG_FILES man/cups-lpd.man" ;; | |
10782 | "man/cups-snmp.man") CONFIG_FILES="$CONFIG_FILES man/cups-snmp.man" ;; | |
d9f356c5 MS |
10783 | "man/cupsd.conf.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.conf.man" ;; |
10784 | "man/cupsd.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.man" ;; | |
10785 | "man/lpoptions.man") CONFIG_FILES="$CONFIG_FILES man/lpoptions.man" ;; | |
10786 | "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;; | |
10787 | "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;; | |
10788 | "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;; | |
10789 | "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;; | |
10790 | "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;; | |
10791 | "scheduler/org.cups.cupsd.path") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;; | |
10792 | "scheduler/org.cups.cupsd.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;; | |
10793 | "scheduler/org.cups.cupsd.socket") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;; | |
10794 | "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;; | |
10795 | "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;; | |
10796 | "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;; | |
10797 | ||
10798 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
10799 | esac | |
10800 | done | |
10801 | ||
10802 | ||
10803 | # If the user did not use the arguments to specify the items to instantiate, | |
10804 | # then the envvar interface is used. Set only those that are not. | |
10805 | # We use the long form for the default assignment because of an extremely | |
10806 | # bizarre bug on SunOS 4.1.3. | |
10807 | if $ac_need_defaults; then | |
10808 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10809 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
10810 | fi | |
10811 | ||
10812 | # Have a temporary directory for convenience. Make it in the build tree | |
10813 | # simply because there is no reason against having it here, and in addition, | |
10814 | # creating and moving files from /tmp can sometimes cause problems. | |
10815 | # Hook for its removal unless debugging. | |
10816 | # Note that there is a small window in which the directory will not be cleaned: | |
10817 | # after its creation but before its name has been assigned to `$tmp'. | |
10818 | $debug || | |
10819 | { | |
10820 | tmp= ac_tmp= | |
10821 | trap 'exit_status=$? | |
10822 | : "${ac_tmp:=$tmp}" | |
10823 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
10824 | ' 0 | |
10825 | trap 'as_fn_exit 1' 1 2 13 15 | |
10826 | } | |
10827 | # Create a (secure) tmp directory for tmp files. | |
10828 | ||
10829 | { | |
10830 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
10831 | test -d "$tmp" | |
10832 | } || | |
10833 | { | |
10834 | tmp=./conf$$-$RANDOM | |
10835 | (umask 077 && mkdir "$tmp") | |
10836 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
10837 | ac_tmp=$tmp | |
10838 | ||
10839 | # Set up the scripts for CONFIG_FILES section. | |
10840 | # No need to generate them if there are no CONFIG_FILES. | |
10841 | # This happens for instance with `./config.status config.h'. | |
10842 | if test -n "$CONFIG_FILES"; then | |
10843 | ||
10844 | ||
10845 | ac_cr=`echo X | tr X '\015'` | |
10846 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
10847 | # But we know of no other shell where ac_cr would be empty at this | |
10848 | # point, so we can use a bashism as a fallback. | |
10849 | if test "x$ac_cr" = x; then | |
10850 | eval ac_cr=\$\'\\r\' | |
10851 | fi | |
10852 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
10853 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
10854 | ac_cs_awk_cr='\\r' | |
10855 | else | |
10856 | ac_cs_awk_cr=$ac_cr | |
10857 | fi | |
10858 | ||
10859 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
10860 | _ACEOF | |
10861 | ||
10862 | ||
10863 | { | |
10864 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
10865 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
10866 | echo "_ACEOF" | |
10867 | } >conf$$subs.sh || | |
10868 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10869 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
10870 | ac_delim='%!_!# ' | |
10871 | for ac_last_try in false false false false false :; do | |
10872 | . ./conf$$subs.sh || | |
10873 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10874 | ||
10875 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
10876 | if test $ac_delim_n = $ac_delim_num; then | |
10877 | break | |
10878 | elif $ac_last_try; then | |
10879 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10880 | else | |
10881 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10882 | fi | |
10883 | done | |
10884 | rm -f conf$$subs.sh | |
10885 | ||
10886 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10887 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
10888 | _ACEOF | |
10889 | sed -n ' | |
10890 | h | |
10891 | s/^/S["/; s/!.*/"]=/ | |
10892 | p | |
10893 | g | |
10894 | s/^[^!]*!// | |
10895 | :repl | |
10896 | t repl | |
10897 | s/'"$ac_delim"'$// | |
10898 | t delim | |
10899 | :nl | |
10900 | h | |
10901 | s/\(.\{148\}\)..*/\1/ | |
10902 | t more1 | |
10903 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
10904 | p | |
10905 | n | |
10906 | b repl | |
10907 | :more1 | |
10908 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10909 | p | |
10910 | g | |
10911 | s/.\{148\}// | |
10912 | t nl | |
10913 | :delim | |
10914 | h | |
10915 | s/\(.\{148\}\)..*/\1/ | |
10916 | t more2 | |
10917 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
10918 | p | |
10919 | b | |
10920 | :more2 | |
10921 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10922 | p | |
10923 | g | |
10924 | s/.\{148\}// | |
10925 | t delim | |
10926 | ' <conf$$subs.awk | sed ' | |
10927 | /^[^""]/{ | |
10928 | N | |
10929 | s/\n// | |
10930 | } | |
10931 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
10932 | rm -f conf$$subs.awk | |
10933 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10934 | _ACAWK | |
10935 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
10936 | for (key in S) S_is_set[key] = 1 | |
10937 | FS = "\a" | |
10938 | ||
10939 | } | |
10940 | { | |
10941 | line = $ 0 | |
10942 | nfields = split(line, field, "@") | |
10943 | substed = 0 | |
10944 | len = length(field[1]) | |
10945 | for (i = 2; i < nfields; i++) { | |
10946 | key = field[i] | |
10947 | keylen = length(key) | |
10948 | if (S_is_set[key]) { | |
10949 | value = S[key] | |
10950 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
10951 | len += length(value) + length(field[++i]) | |
10952 | substed = 1 | |
10953 | } else | |
10954 | len += 1 + keylen | |
10955 | } | |
10956 | ||
10957 | print line | |
10958 | } | |
10959 | ||
10960 | _ACAWK | |
10961 | _ACEOF | |
10962 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10963 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
10964 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
10965 | else | |
10966 | cat | |
10967 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
10968 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
10969 | _ACEOF | |
10970 | ||
10971 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
10972 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
10973 | # trailing colons and then remove the whole line if VPATH becomes empty | |
10974 | # (actually we leave an empty line to preserve line numbers). | |
10975 | if test "x$srcdir" = x.; then | |
10976 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
10977 | h | |
10978 | s/// | |
10979 | s/^/:/ | |
10980 | s/[ ]*$/:/ | |
10981 | s/:\$(srcdir):/:/g | |
10982 | s/:\${srcdir}:/:/g | |
10983 | s/:@srcdir@:/:/g | |
10984 | s/^:*// | |
10985 | s/:*$// | |
10986 | x | |
10987 | s/\(=[ ]*\).*/\1/ | |
10988 | G | |
10989 | s/\n// | |
10990 | s/^[^=]*=[ ]*$// | |
10991 | }' | |
10992 | fi | |
10993 | ||
10994 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10995 | fi # test -n "$CONFIG_FILES" | |
10996 | ||
10997 | # Set up the scripts for CONFIG_HEADERS section. | |
10998 | # No need to generate them if there are no CONFIG_HEADERS. | |
10999 | # This happens for instance with `./config.status Makefile'. | |
11000 | if test -n "$CONFIG_HEADERS"; then | |
11001 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
11002 | BEGIN { | |
11003 | _ACEOF | |
11004 | ||
11005 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11006 | # here-document in config.status, that substitutes the proper values into | |
11007 | # config.h.in to produce config.h. | |
11008 | ||
11009 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11010 | # handling of long lines. | |
11011 | ac_delim='%!_!# ' | |
11012 | for ac_last_try in false false :; do | |
11013 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
11014 | if test -z "$ac_tt"; then | |
11015 | break | |
11016 | elif $ac_last_try; then | |
11017 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
11018 | else | |
11019 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11020 | fi | |
11021 | done | |
11022 | ||
11023 | # For the awk script, D is an array of macro values keyed by name, | |
11024 | # likewise P contains macro parameters if any. Preserve backslash | |
11025 | # newline sequences. | |
11026 | ||
11027 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11028 | sed -n ' | |
11029 | s/.\{148\}/&'"$ac_delim"'/g | |
11030 | t rset | |
11031 | :rset | |
11032 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11033 | t def | |
11034 | d | |
11035 | :def | |
11036 | s/\\$// | |
11037 | t bsnl | |
11038 | s/["\\]/\\&/g | |
11039 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11040 | D["\1"]=" \3"/p | |
11041 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11042 | d | |
11043 | :bsnl | |
11044 | s/["\\]/\\&/g | |
11045 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11046 | D["\1"]=" \3\\\\\\n"\\/p | |
11047 | t cont | |
11048 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11049 | t cont | |
11050 | d | |
11051 | :cont | |
11052 | n | |
11053 | s/.\{148\}/&'"$ac_delim"'/g | |
11054 | t clear | |
11055 | :clear | |
11056 | s/\\$// | |
11057 | t bsnlc | |
11058 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11059 | d | |
11060 | :bsnlc | |
11061 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11062 | b cont | |
11063 | ' <confdefs.h | sed ' | |
11064 | s/'"$ac_delim"'/"\\\ | |
11065 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11066 | ||
11067 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11068 | for (key in D) D_is_set[key] = 1 | |
11069 | FS = "\a" | |
11070 | } | |
11071 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11072 | line = \$ 0 | |
11073 | split(line, arg, " ") | |
11074 | if (arg[1] == "#") { | |
11075 | defundef = arg[2] | |
11076 | mac1 = arg[3] | |
11077 | } else { | |
11078 | defundef = substr(arg[1], 2) | |
11079 | mac1 = arg[2] | |
11080 | } | |
11081 | split(mac1, mac2, "(") #) | |
11082 | macro = mac2[1] | |
11083 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11084 | if (D_is_set[macro]) { | |
11085 | # Preserve the white space surrounding the "#". | |
11086 | print prefix "define", macro P[macro] D[macro] | |
11087 | next | |
11088 | } else { | |
11089 | # Replace #undef with comments. This is necessary, for example, | |
11090 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11091 | # on some systems where configure will not decide to define it. | |
11092 | if (defundef == "undef") { | |
11093 | print "/*", prefix defundef, macro, "*/" | |
11094 | next | |
11095 | } | |
11096 | } | |
11097 | } | |
11098 | { print } | |
11099 | _ACAWK | |
11100 | _ACEOF | |
11101 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11102 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
11103 | fi # test -n "$CONFIG_HEADERS" | |
11104 | ||
11105 | ||
11106 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
11107 | shift | |
11108 | for ac_tag | |
11109 | do | |
11110 | case $ac_tag in | |
11111 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11112 | esac | |
11113 | case $ac_mode$ac_tag in | |
11114 | :[FHL]*:*);; | |
11115 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
11116 | :[FH]-) ac_tag=-:-;; | |
11117 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11118 | esac | |
11119 | ac_save_IFS=$IFS | |
11120 | IFS=: | |
11121 | set x $ac_tag | |
11122 | IFS=$ac_save_IFS | |
11123 | shift | |
11124 | ac_file=$1 | |
11125 | shift | |
11126 | ||
11127 | case $ac_mode in | |
11128 | :L) ac_source=$1;; | |
11129 | :[FH]) | |
11130 | ac_file_inputs= | |
11131 | for ac_f | |
11132 | do | |
11133 | case $ac_f in | |
11134 | -) ac_f="$ac_tmp/stdin";; | |
11135 | *) # Look for the file first in the build tree, then in the source tree | |
11136 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11137 | # because $ac_f cannot contain `:'. | |
11138 | test -f "$ac_f" || | |
11139 | case $ac_f in | |
11140 | [\\/$]*) false;; | |
11141 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11142 | esac || | |
11143 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
11144 | esac | |
11145 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
11146 | as_fn_append ac_file_inputs " '$ac_f'" | |
11147 | done | |
11148 | ||
11149 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11150 | # use $as_me), people would be surprised to read: | |
11151 | # /* config.h. Generated by config.status. */ | |
11152 | configure_input='Generated from '` | |
11153 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11154 | `' by configure.' | |
11155 | if test x"$ac_file" != x-; then | |
11156 | configure_input="$ac_file. $configure_input" | |
11157 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
11158 | $as_echo "$as_me: creating $ac_file" >&6;} | |
11159 | fi | |
11160 | # Neutralize special characters interpreted by sed in replacement strings. | |
11161 | case $configure_input in #( | |
11162 | *\&* | *\|* | *\\* ) | |
11163 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11164 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11165 | *) ac_sed_conf_input=$configure_input;; | |
11166 | esac | |
11167 | ||
11168 | case $ac_tag in | |
11169 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
11170 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
11171 | esac | |
11172 | ;; | |
11173 | esac | |
11174 | ||
11175 | ac_dir=`$as_dirname -- "$ac_file" || | |
11176 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11177 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
11178 | X"$ac_file" : 'X\(//\)$' \| \ | |
11179 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
11180 | $as_echo X"$ac_file" | | |
11181 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11182 | s//\1/ | |
11183 | q | |
11184 | } | |
11185 | /^X\(\/\/\)[^/].*/{ | |
11186 | s//\1/ | |
11187 | q | |
11188 | } | |
11189 | /^X\(\/\/\)$/{ | |
11190 | s//\1/ | |
11191 | q | |
11192 | } | |
11193 | /^X\(\/\).*/{ | |
11194 | s//\1/ | |
11195 | q | |
11196 | } | |
11197 | s/.*/./; q'` | |
11198 | as_dir="$ac_dir"; as_fn_mkdir_p | |
11199 | ac_builddir=. | |
11200 | ||
11201 | case "$ac_dir" in | |
11202 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11203 | *) | |
11204 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
11205 | # A ".." for each directory in $ac_dir_suffix. | |
11206 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
11207 | case $ac_top_builddir_sub in | |
11208 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11209 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11210 | esac ;; | |
11211 | esac | |
11212 | ac_abs_top_builddir=$ac_pwd | |
11213 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11214 | # for backward compatibility: | |
11215 | ac_top_builddir=$ac_top_build_prefix | |
11216 | ||
11217 | case $srcdir in | |
11218 | .) # We are building in place. | |
11219 | ac_srcdir=. | |
11220 | ac_top_srcdir=$ac_top_builddir_sub | |
11221 | ac_abs_top_srcdir=$ac_pwd ;; | |
11222 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
11223 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11224 | ac_top_srcdir=$srcdir | |
11225 | ac_abs_top_srcdir=$srcdir ;; | |
11226 | *) # Relative name. | |
11227 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11228 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11229 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
11230 | esac | |
11231 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
11232 | ||
11233 | ||
11234 | case $ac_mode in | |
11235 | :F) | |
11236 | # | |
11237 | # CONFIG_FILE | |
11238 | # | |
11239 | ||
11240 | _ACEOF | |
11241 | ||
11242 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11243 | # If the template does not know about datarootdir, expand it. | |
11244 | # FIXME: This hack should be removed a few years after 2.60. | |
11245 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
11246 | ac_sed_dataroot=' | |
11247 | /datarootdir/ { | |
11248 | p | |
11249 | q | |
11250 | } | |
11251 | /@datadir@/p | |
11252 | /@docdir@/p | |
11253 | /@infodir@/p | |
11254 | /@localedir@/p | |
11255 | /@mandir@/p' | |
11256 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
11257 | *datarootdir*) ac_datarootdir_seen=yes;; | |
11258 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
11259 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
11260 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11261 | _ACEOF | |
11262 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11263 | ac_datarootdir_hack=' | |
11264 | s&@datadir@&$datadir&g | |
11265 | s&@docdir@&$docdir&g | |
11266 | s&@infodir@&$infodir&g | |
11267 | s&@localedir@&$localedir&g | |
11268 | s&@mandir@&$mandir&g | |
11269 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
11270 | esac | |
11271 | _ACEOF | |
11272 | ||
11273 | # Neutralize VPATH when `$srcdir' = `.'. | |
11274 | # Shell code in configure.ac might set extrasub. | |
11275 | # FIXME: do we really want to maintain this feature? | |
11276 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11277 | ac_sed_extra="$ac_vpsub | |
11278 | $extrasub | |
11279 | _ACEOF | |
11280 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11281 | :t | |
11282 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
11283 | s|@configure_input@|$ac_sed_conf_input|;t t | |
11284 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
11285 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
11286 | s&@srcdir@&$ac_srcdir&;t t | |
11287 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11288 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11289 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11290 | s&@builddir@&$ac_builddir&;t t | |
11291 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11292 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11293 | $ac_datarootdir_hack | |
11294 | " | |
11295 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
11296 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11297 | ||
11298 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11299 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
11300 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
11301 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
11302 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11303 | which seems to be undefined. Please make sure it is defined" >&5 | |
11304 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11305 | which seems to be undefined. Please make sure it is defined" >&2;} | |
11306 | ||
11307 | rm -f "$ac_tmp/stdin" | |
11308 | case $ac_file in | |
11309 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
11310 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
11311 | esac \ | |
11312 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11313 | ;; | |
11314 | :H) | |
11315 | # | |
11316 | # CONFIG_HEADER | |
11317 | # | |
11318 | if test x"$ac_file" != x-; then | |
11319 | { | |
11320 | $as_echo "/* $configure_input */" \ | |
11321 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
11322 | } >"$ac_tmp/config.h" \ | |
11323 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11324 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
11325 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
11326 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
11327 | else | |
11328 | rm -f "$ac_file" | |
11329 | mv "$ac_tmp/config.h" "$ac_file" \ | |
11330 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11331 | fi | |
11332 | else | |
11333 | $as_echo "/* $configure_input */" \ | |
11334 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
11335 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
11336 | fi | |
11337 | ;; | |
11338 | ||
11339 | ||
11340 | esac | |
11341 | ||
11342 | done # for ac_tag | |
11343 | ||
11344 | ||
11345 | as_fn_exit 0 | |
11346 | _ACEOF | |
11347 | ac_clean_files=$ac_clean_files_save | |
11348 | ||
11349 | test $ac_write_fail = 0 || | |
11350 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
11351 | ||
11352 | ||
11353 | # configure is writing to config.log, and then calls config.status. | |
11354 | # config.status does its own redirection, appending to config.log. | |
11355 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11356 | # by configure, so config.status won't be able to write to it; its | |
11357 | # output is simply discarded. So we exec the FD to /dev/null, | |
11358 | # effectively closing config.log, so it can be properly (re)opened and | |
11359 | # appended to by config.status. When coming back to configure, we | |
11360 | # need to make the FD available again. | |
11361 | if test "$no_create" != yes; then | |
11362 | ac_cs_success=: | |
11363 | ac_config_status_args= | |
11364 | test "$silent" = yes && | |
11365 | ac_config_status_args="$ac_config_status_args --quiet" | |
11366 | exec 5>/dev/null | |
11367 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11368 | exec 5>>config.log | |
11369 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11370 | # would make configure fail if this is the last instruction. | |
11371 | $ac_cs_success || as_fn_exit 1 | |
11372 | fi | |
11373 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
11375 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
11376 | fi | |
11377 | ||
11378 | ||
11379 | chmod +x cups-config |