configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for rgb 1.0.4.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='rgb'
563 PACKAGE_TARNAME='rgb'
564 PACKAGE_VERSION='1.0.4'
565 PACKAGE_STRING='rgb 1.0.4'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 RGB_DB_FALSE
610 RGB_DB_TRUE
611 RGB_DB_FILES
612 RGB_DB_TYPE
613 XORG_LIBS
614 XORG_CFLAGS
615 db_dir
616 db_file
617 RGB_LIBS
618 RGB_CFLAGS
619 AM_BACKSLASH
620 AM_DEFAULT_VERBOSITY
621 MAN_SUBSTS
622 XORG_MAN_PAGE
623 ADMIN_MAN_DIR
624 DRIVER_MAN_DIR
625 MISC_MAN_DIR
626 FILE_MAN_DIR
627 LIB_MAN_DIR
628 APP_MAN_DIR
629 ADMIN_MAN_SUFFIX
630 DRIVER_MAN_SUFFIX
631 MISC_MAN_SUFFIX
632 FILE_MAN_SUFFIX
633 LIB_MAN_SUFFIX
634 APP_MAN_SUFFIX
635 SED
636 host_os
637 host_vendor
638 host_cpu
639 host
640 build_os
641 build_vendor
642 build_cpu
643 build
644 INSTALL_CMD
645 PKG_CONFIG
646 CHANGELOG_CMD
647 CWARNFLAGS
648 EGREP
649 GREP
650 CPP
651 am__fastdepCC_FALSE
652 am__fastdepCC_TRUE
653 CCDEPMODE
654 AMDEPBACKSLASH
655 AMDEP_FALSE
656 AMDEP_TRUE
657 am__quote
658 am__include
659 DEPDIR
660 OBJEXT
661 EXEEXT
662 ac_ct_CC
663 CPPFLAGS
664 LDFLAGS
665 CFLAGS
666 CC
667 MAINT
668 MAINTAINER_MODE_FALSE
669 MAINTAINER_MODE_TRUE
670 am__untar
671 am__tar
672 AMTAR
673 am__leading_dot
674 SET_MAKE
675 AWK
676 mkdir_p
677 MKDIR_P
678 INSTALL_STRIP_PROGRAM
679 STRIP
680 install_sh
681 MAKEINFO
682 AUTOHEADER
683 AUTOMAKE
684 AUTOCONF
685 ACLOCAL
686 VERSION
687 PACKAGE
688 CYGPATH_W
689 am__isrc
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 target_alias
694 host_alias
695 build_alias
696 LIBS
697 ECHO_T
698 ECHO_N
699 ECHO_C
700 DEFS
701 mandir
702 localedir
703 libdir
704 psdir
705 pdfdir
706 dvidir
707 htmldir
708 infodir
709 docdir
710 oldincludedir
711 includedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 enable_maintainer_mode
735 enable_dependency_tracking
736 enable_strict_compilation
737 enable_silent_rules
738 with_rgb_db_dir
739 with_rgb_db_type
740 '
741 ac_precious_vars='build_alias
742 host_alias
743 target_alias
744 CC
745 CFLAGS
746 LDFLAGS
747 LIBS
748 CPPFLAGS
749 CPP
750 PKG_CONFIG
751 RGB_CFLAGS
752 RGB_LIBS
753 XORG_CFLAGS
754 XORG_LIBS'
755
756
757 # Initialize some variables set by options.
758 ac_init_help=
759 ac_init_version=false
760 ac_unrecognized_opts=
761 ac_unrecognized_sep=
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
778
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
804
805 ac_prev=
806 ac_dashdash=
807 for ac_option
808 do
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
812 ac_prev=
813 continue
814 fi
815
816 case $ac_option in
817 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *=) ac_optarg= ;;
819 *) ac_optarg=yes ;;
820 esac
821
822 # Accept the important Cygnus configure options, so we can diagnose typos.
823
824 case $ac_dashdash$ac_option in
825 --)
826 ac_dashdash=yes ;;
827
828 -bindir | --bindir | --bindi | --bind | --bin | --bi)
829 ac_prev=bindir ;;
830 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831 bindir=$ac_optarg ;;
832
833 -build | --build | --buil | --bui | --bu)
834 ac_prev=build_alias ;;
835 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836 build_alias=$ac_optarg ;;
837
838 -cache-file | --cache-file | --cache-fil | --cache-fi \
839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840 ac_prev=cache_file ;;
841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843 cache_file=$ac_optarg ;;
844
845 --config-cache | -C)
846 cache_file=config.cache ;;
847
848 -datadir | --datadir | --datadi | --datad)
849 ac_prev=datadir ;;
850 -datadir=* | --datadir=* | --datadi=* | --datad=*)
851 datadir=$ac_optarg ;;
852
853 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854 | --dataroo | --dataro | --datar)
855 ac_prev=datarootdir ;;
856 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858 datarootdir=$ac_optarg ;;
859
860 -disable-* | --disable-*)
861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864 as_fn_error $? "invalid feature name: $ac_useropt"
865 ac_useropt_orig=$ac_useropt
866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
868 *"
869 "enable_$ac_useropt"
870 "*) ;;
871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872 ac_unrecognized_sep=', ';;
873 esac
874 eval enable_$ac_useropt=no ;;
875
876 -docdir | --docdir | --docdi | --doc | --do)
877 ac_prev=docdir ;;
878 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 docdir=$ac_optarg ;;
880
881 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882 ac_prev=dvidir ;;
883 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 dvidir=$ac_optarg ;;
885
886 -enable-* | --enable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=\$ac_optarg ;;
901
902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904 | --exec | --exe | --ex)
905 ac_prev=exec_prefix ;;
906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908 | --exec=* | --exe=* | --ex=*)
909 exec_prefix=$ac_optarg ;;
910
911 -gas | --gas | --ga | --g)
912 # Obsolete; use --with-gas.
913 with_gas=yes ;;
914
915 -help | --help | --hel | --he | -h)
916 ac_init_help=long ;;
917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918 ac_init_help=recursive ;;
919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920 ac_init_help=short ;;
921
922 -host | --host | --hos | --ho)
923 ac_prev=host_alias ;;
924 -host=* | --host=* | --hos=* | --ho=*)
925 host_alias=$ac_optarg ;;
926
927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928 ac_prev=htmldir ;;
929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930 | --ht=*)
931 htmldir=$ac_optarg ;;
932
933 -includedir | --includedir | --includedi | --included | --include \
934 | --includ | --inclu | --incl | --inc)
935 ac_prev=includedir ;;
936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937 | --includ=* | --inclu=* | --incl=* | --inc=*)
938 includedir=$ac_optarg ;;
939
940 -infodir | --infodir | --infodi | --infod | --info | --inf)
941 ac_prev=infodir ;;
942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943 infodir=$ac_optarg ;;
944
945 -libdir | --libdir | --libdi | --libd)
946 ac_prev=libdir ;;
947 -libdir=* | --libdir=* | --libdi=* | --libd=*)
948 libdir=$ac_optarg ;;
949
950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951 | --libexe | --libex | --libe)
952 ac_prev=libexecdir ;;
953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954 | --libexe=* | --libex=* | --libe=*)
955 libexecdir=$ac_optarg ;;
956
957 -localedir | --localedir | --localedi | --localed | --locale)
958 ac_prev=localedir ;;
959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960 localedir=$ac_optarg ;;
961
962 -localstatedir | --localstatedir | --localstatedi | --localstated \
963 | --localstate | --localstat | --localsta | --localst | --locals)
964 ac_prev=localstatedir ;;
965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967 localstatedir=$ac_optarg ;;
968
969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970 ac_prev=mandir ;;
971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972 mandir=$ac_optarg ;;
973
974 -nfp | --nfp | --nf)
975 # Obsolete; use --without-fp.
976 with_fp=no ;;
977
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979 | --no-cr | --no-c | -n)
980 no_create=yes ;;
981
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984 no_recursion=yes ;;
985
986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988 | --oldin | --oldi | --old | --ol | --o)
989 ac_prev=oldincludedir ;;
990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993 oldincludedir=$ac_optarg ;;
994
995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996 ac_prev=prefix ;;
997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998 prefix=$ac_optarg ;;
999
1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001 | --program-pre | --program-pr | --program-p)
1002 ac_prev=program_prefix ;;
1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005 program_prefix=$ac_optarg ;;
1006
1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008 | --program-suf | --program-su | --program-s)
1009 ac_prev=program_suffix ;;
1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012 program_suffix=$ac_optarg ;;
1013
1014 -program-transform-name | --program-transform-name \
1015 | --program-transform-nam | --program-transform-na \
1016 | --program-transform-n | --program-transform- \
1017 | --program-transform | --program-transfor \
1018 | --program-transfo | --program-transf \
1019 | --program-trans | --program-tran \
1020 | --progr-tra | --program-tr | --program-t)
1021 ac_prev=program_transform_name ;;
1022 -program-transform-name=* | --program-transform-name=* \
1023 | --program-transform-nam=* | --program-transform-na=* \
1024 | --program-transform-n=* | --program-transform-=* \
1025 | --program-transform=* | --program-transfor=* \
1026 | --program-transfo=* | --program-transf=* \
1027 | --program-trans=* | --program-tran=* \
1028 | --progr-tra=* | --program-tr=* | --program-t=*)
1029 program_transform_name=$ac_optarg ;;
1030
1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032 ac_prev=pdfdir ;;
1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034 pdfdir=$ac_optarg ;;
1035
1036 -psdir | --psdir | --psdi | --psd | --ps)
1037 ac_prev=psdir ;;
1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039 psdir=$ac_optarg ;;
1040
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1043 silent=yes ;;
1044
1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046 ac_prev=sbindir ;;
1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048 | --sbi=* | --sb=*)
1049 sbindir=$ac_optarg ;;
1050
1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053 | --sharedst | --shareds | --shared | --share | --shar \
1054 | --sha | --sh)
1055 ac_prev=sharedstatedir ;;
1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059 | --sha=* | --sh=*)
1060 sharedstatedir=$ac_optarg ;;
1061
1062 -site | --site | --sit)
1063 ac_prev=site ;;
1064 -site=* | --site=* | --sit=*)
1065 site=$ac_optarg ;;
1066
1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068 ac_prev=srcdir ;;
1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070 srcdir=$ac_optarg ;;
1071
1072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073 | --syscon | --sysco | --sysc | --sys | --sy)
1074 ac_prev=sysconfdir ;;
1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077 sysconfdir=$ac_optarg ;;
1078
1079 -target | --target | --targe | --targ | --tar | --ta | --t)
1080 ac_prev=target_alias ;;
1081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082 target_alias=$ac_optarg ;;
1083
1084 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085 verbose=yes ;;
1086
1087 -version | --version | --versio | --versi | --vers | -V)
1088 ac_init_version=: ;;
1089
1090 -with-* | --with-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid package name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1098 *"
1099 "with_$ac_useropt"
1100 "*) ;;
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1103 esac
1104 eval with_$ac_useropt=\$ac_optarg ;;
1105
1106 -without-* | --without-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115 "with_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=no ;;
1121
1122 --x)
1123 # Obsolete; use --with-x.
1124 with_x=yes ;;
1125
1126 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127 | --x-incl | --x-inc | --x-in | --x-i)
1128 ac_prev=x_includes ;;
1129 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131 x_includes=$ac_optarg ;;
1132
1133 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135 ac_prev=x_libraries ;;
1136 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138 x_libraries=$ac_optarg ;;
1139
1140 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1141 Try \`$0 --help' for more information"
1142 ;;
1143
1144 *=*)
1145 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146 # Reject names that are not valid shell variable names.
1147 case $ac_envvar in #(
1148 '' | [0-9]* | *[!_$as_cr_alnum]* )
1149 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1150 esac
1151 eval $ac_envvar=\$ac_optarg
1152 export $ac_envvar ;;
1153
1154 *)
1155 # FIXME: should be removed in autoconf 3.0.
1156 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1160 ;;
1161
1162 esac
1163 done
1164
1165 if test -n "$ac_prev"; then
1166 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167 as_fn_error $? "missing argument to $ac_option"
1168 fi
1169
1170 if test -n "$ac_unrecognized_opts"; then
1171 case $enable_option_checking in
1172 no) ;;
1173 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175 esac
1176 fi
1177
1178 # Check all directory arguments for consistency.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1183 do
1184 eval ac_val=\$$ac_var
1185 # Remove trailing slashes.
1186 case $ac_val in
1187 */ )
1188 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189 eval $ac_var=\$ac_val;;
1190 esac
1191 # Be sure to have absolute directory names.
1192 case $ac_val in
1193 [\\/$]* | ?:[\\/]* ) continue;;
1194 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195 esac
1196 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197 done
1198
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1202 build=$build_alias
1203 host=$host_alias
1204 target=$target_alias
1205
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x; then
1208 if test "x$build_alias" = x; then
1209 cross_compiling=maybe
1210 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1211 If a cross compiler is detected then cross compile mode will be used" >&2
1212 elif test "x$build_alias" != "x$host_alias"; then
1213 cross_compiling=yes
1214 fi
1215 fi
1216
1217 ac_tool_prefix=
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219
1220 test "$silent" = yes && exec 6>/dev/null
1221
1222
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226 as_fn_error $? "working directory cannot be determined"
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228 as_fn_error $? "pwd does not report name of working directory"
1229
1230
1231 # Find the source files, if location was not specified.
1232 if test -z "$srcdir"; then
1233 ac_srcdir_defaulted=yes
1234 # Try the directory containing this script, then the parent directory.
1235 ac_confdir=`$as_dirname -- "$as_myself" ||
1236 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237 X"$as_myself" : 'X\(//\)[^/]' \| \
1238 X"$as_myself" : 'X\(//\)$' \| \
1239 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240 $as_echo X"$as_myself" |
1241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)[^/].*/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\/\)$/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\).*/{
1254 s//\1/
1255 q
1256 }
1257 s/.*/./; q'`
1258 srcdir=$ac_confdir
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 srcdir=..
1261 fi
1262 else
1263 ac_srcdir_defaulted=no
1264 fi
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1268 fi
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270 ac_abs_confdir=`(
1271 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1272 pwd)`
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 srcdir=.
1276 fi
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1280 case $srcdir in
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282 esac
1283 for ac_var in $ac_precious_vars; do
1284 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_env_${ac_var}_value=\$${ac_var}
1286 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288 done
1289
1290 #
1291 # Report the --help message.
1292 #
1293 if test "$ac_init_help" = "long"; then
1294 # Omit some internal or obsolete options to make the list less imposing.
1295 # This message is too long to be a string in the A/UX 3.1 sh.
1296 cat <<_ACEOF
1297 \`configure' configures rgb 1.0.4 to adapt to many kinds of systems.
1298
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1300
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE. See below for descriptions of some of the useful variables.
1303
1304 Defaults for the options are specified in brackets.
1305
1306 Configuration:
1307 -h, --help display this help and exit
1308 --help=short display options specific to this package
1309 --help=recursive display the short help of all the included packages
1310 -V, --version display version information and exit
1311 -q, --quiet, --silent do not print \`checking ...' messages
1312 --cache-file=FILE cache test results in FILE [disabled]
1313 -C, --config-cache alias for \`--cache-file=config.cache'
1314 -n, --no-create do not create output files
1315 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1316
1317 Installation directories:
1318 --prefix=PREFIX install architecture-independent files in PREFIX
1319 [$ac_default_prefix]
1320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 [PREFIX]
1322
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1327
1328 For better control, use the options below.
1329
1330 Fine tuning of the installation directories:
1331 --bindir=DIR user executables [EPREFIX/bin]
1332 --sbindir=DIR system admin executables [EPREFIX/sbin]
1333 --libexecdir=DIR program executables [EPREFIX/libexec]
1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1336 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1337 --libdir=DIR object code libraries [EPREFIX/lib]
1338 --includedir=DIR C header files [PREFIX/include]
1339 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1342 --infodir=DIR info documentation [DATAROOTDIR/info]
1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1344 --mandir=DIR man documentation [DATAROOTDIR/man]
1345 --docdir=DIR documentation root [DATAROOTDIR/doc/rgb]
1346 --htmldir=DIR html documentation [DOCDIR]
1347 --dvidir=DIR dvi documentation [DOCDIR]
1348 --pdfdir=DIR pdf documentation [DOCDIR]
1349 --psdir=DIR ps documentation [DOCDIR]
1350 _ACEOF
1351
1352 cat <<\_ACEOF
1353
1354 Program names:
1355 --program-prefix=PREFIX prepend PREFIX to installed program names
1356 --program-suffix=SUFFIX append SUFFIX to installed program names
1357 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1358
1359 System types:
1360 --build=BUILD configure for building on BUILD [guessed]
1361 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1362 _ACEOF
1363 fi
1364
1365 if test -n "$ac_init_help"; then
1366 case $ac_init_help in
1367 short | recursive ) echo "Configuration of rgb 1.0.4:";;
1368 esac
1369 cat <<\_ACEOF
1370
1371 Optional Features:
1372 --disable-option-checking ignore unrecognized --enable/--with options
1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1375 --enable-maintainer-mode enable make rules and dependencies not useful
1376 (and sometimes confusing) to the casual installer
1377 --disable-dependency-tracking speeds up one-time build
1378 --enable-dependency-tracking do not reject slow dependency extractors
1379 --enable-strict-compilation
1380 Enable all warnings from compiler and make them
1381 errors (default: disabled)
1382 --enable-silent-rules less verbose build output (undo: `make V=1')
1383 --disable-silent-rules verbose build output (undo: `make V=0')
1384
1385 Optional Packages:
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-rgb-db-dir=<path>
1389 rgb database location (default is
1390 ${datadir}/X11/rgb)
1391 --with-rgb-db-type=(text|dbm|ndbm)
1392 rgb database type (default is text)
1393
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1402 CPP C preprocessor
1403 PKG_CONFIG path to pkg-config utility
1404 RGB_CFLAGS C compiler flags for RGB, overriding pkg-config
1405 RGB_LIBS linker flags for RGB, overriding pkg-config
1406 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1407 XORG_LIBS linker flags for XORG, overriding pkg-config
1408
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1411
1412 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1413 _ACEOF
1414 ac_status=$?
1415 fi
1416
1417 if test "$ac_init_help" = "recursive"; then
1418 # If there are subdirs, report their specific --help.
1419 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420 test -d "$ac_dir" ||
1421 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422 continue
1423 ac_builddir=.
1424
1425 case "$ac_dir" in
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *)
1428 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434 esac ;;
1435 esac
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1440
1441 case $srcdir in
1442 .) # We are building in place.
1443 ac_srcdir=.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1450 *) # Relative name.
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 esac
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1460 echo &&
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1465 else
1466 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 fi || ac_status=$?
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1469 done
1470 fi
1471
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1474 cat <<\_ACEOF
1475 rgb configure 1.0.4
1476 generated by GNU Autoconf 2.68
1477
1478 Copyright (C) 2010 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1481 _ACEOF
1482 exit
1483 fi
1484
1485 ## ------------------------ ##
1486 ## Autoconf initialization. ##
1487 ## ------------------------ ##
1488
1489 # ac_fn_c_try_compile LINENO
1490 # --------------------------
1491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492 ac_fn_c_try_compile ()
1493 {
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495 rm -f conftest.$ac_objext
1496 if { { ac_try="$ac_compile"
1497 case "(($ac_try" in
1498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499 *) ac_try_echo=$ac_try;;
1500 esac
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_compile") 2>conftest.err
1504 ac_status=$?
1505 if test -s conftest.err; then
1506 grep -v '^ *+' conftest.err >conftest.er1
1507 cat conftest.er1 >&5
1508 mv -f conftest.er1 conftest.err
1509 fi
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; } && {
1512 test -z "$ac_c_werror_flag" ||
1513 test ! -s conftest.err
1514 } && test -s conftest.$ac_objext; then :
1515 ac_retval=0
1516 else
1517 $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1519
1520 ac_retval=1
1521 fi
1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523 as_fn_set_status $ac_retval
1524
1525 } # ac_fn_c_try_compile
1526
1527 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1528 # ---------------------------------------------
1529 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1530 # accordingly.
1531 ac_fn_c_check_decl ()
1532 {
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 as_decl_name=`echo $2|sed 's/ *(.*//'`
1535 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1537 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1538 if eval \${$3+:} false; then :
1539 $as_echo_n "(cached) " >&6
1540 else
1541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1542 /* end confdefs.h. */
1543 $4
1544 int
1545 main ()
1546 {
1547 #ifndef $as_decl_name
1548 #ifdef __cplusplus
1549 (void) $as_decl_use;
1550 #else
1551 (void) $as_decl_name;
1552 #endif
1553 #endif
1554
1555 ;
1556 return 0;
1557 }
1558 _ACEOF
1559 if ac_fn_c_try_compile "$LINENO"; then :
1560 eval "$3=yes"
1561 else
1562 eval "$3=no"
1563 fi
1564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1565 fi
1566 eval ac_res=\$$3
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1568 $as_echo "$ac_res" >&6; }
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570
1571 } # ac_fn_c_check_decl
1572
1573 # ac_fn_c_try_cpp LINENO
1574 # ----------------------
1575 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_cpp ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if { { ac_try="$ac_cpp conftest.$ac_ext"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } > conftest.i && {
1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 }; then :
1598 ac_retval=0
1599 else
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=1
1604 fi
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_cpp
1609
1610 # ac_fn_c_try_run LINENO
1611 # ----------------------
1612 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1613 # that executables *can* be run.
1614 ac_fn_c_try_run ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_link"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_link") 2>&5
1625 ac_status=$?
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1628 { { case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_try") 2>&5
1635 ac_status=$?
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; }; }; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: program exited with status $ac_status" >&5
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=$ac_status
1645 fi
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_run
1651
1652 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists and can be compiled using the include files in
1655 # INCLUDES, setting the cache variable VAR accordingly.
1656 ac_fn_c_check_header_compile ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662 $as_echo_n "(cached) " >&6
1663 else
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1666 $4
1667 #include <$2>
1668 _ACEOF
1669 if ac_fn_c_try_compile "$LINENO"; then :
1670 eval "$3=yes"
1671 else
1672 eval "$3=no"
1673 fi
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1675 fi
1676 eval ac_res=\$$3
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681 } # ac_fn_c_check_header_compile
1682
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_link ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext conftest$ac_exeext
1690 if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest$ac_exeext && {
1709 test "$cross_compiling" = yes ||
1710 $as_test_x conftest$ac_exeext
1711 }; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718 fi
1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 # interfere with the next link command; also delete a directory that is
1722 # left behind by Apple's compiler. We do this before executing the actions.
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_link
1728
1729 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1732 # the include files in INCLUDES and setting the cache variable VAR
1733 # accordingly.
1734 ac_fn_c_check_header_mongrel ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if eval \${$3+:} false; then :
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1742 fi
1743 eval ac_res=\$$3
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 else
1747 # Is the header compilable?
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1749 $as_echo_n "checking $2 usability... " >&6; }
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 $4
1753 #include <$2>
1754 _ACEOF
1755 if ac_fn_c_try_compile "$LINENO"; then :
1756 ac_header_compiler=yes
1757 else
1758 ac_header_compiler=no
1759 fi
1760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1762 $as_echo "$ac_header_compiler" >&6; }
1763
1764 # Is the header present?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1766 $as_echo_n "checking $2 presence... " >&6; }
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_cpp "$LINENO"; then :
1772 ac_header_preproc=yes
1773 else
1774 ac_header_preproc=no
1775 fi
1776 rm -f conftest.err conftest.i conftest.$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1778 $as_echo "$ac_header_preproc" >&6; }
1779
1780 # So? What about this header?
1781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1782 yes:no: )
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1784 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787 ;;
1788 no:yes:* )
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1790 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1792 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1794 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1796 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799 ( $as_echo "## ---------------------------------------------------------------------- ##
1800 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1801 ## ---------------------------------------------------------------------- ##"
1802 ) | sed "s/^/$as_me: WARNING: /" >&2
1803 ;;
1804 esac
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1809 else
1810 eval "$3=\$ac_header_compiler"
1811 fi
1812 eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 fi
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817
1818 } # ac_fn_c_check_header_mongrel
1819 cat >config.log <<_ACEOF
1820 This file contains any messages produced by compilers while
1821 running configure, to aid debugging if configure makes a mistake.
1822
1823 It was created by rgb $as_me 1.0.4, which was
1824 generated by GNU Autoconf 2.68. Invocation command line was
1825
1826 $ $0 $@
1827
1828 _ACEOF
1829 exec 5>>config.log
1830 {
1831 cat <<_ASUNAME
1832 ## --------- ##
1833 ## Platform. ##
1834 ## --------- ##
1835
1836 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1837 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1838 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1839 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1840 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1841
1842 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1843 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1844
1845 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1846 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1847 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1848 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1849 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1850 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1851 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1852
1853 _ASUNAME
1854
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 $as_echo "PATH: $as_dir"
1861 done
1862 IFS=$as_save_IFS
1863
1864 } >&5
1865
1866 cat >&5 <<_ACEOF
1867
1868
1869 ## ----------- ##
1870 ## Core tests. ##
1871 ## ----------- ##
1872
1873 _ACEOF
1874
1875
1876 # Keep a trace of the command line.
1877 # Strip out --no-create and --no-recursion so they do not pile up.
1878 # Strip out --silent because we don't want to record it for future runs.
1879 # Also quote any args containing shell meta-characters.
1880 # Make two passes to allow for proper duplicate-argument suppression.
1881 ac_configure_args=
1882 ac_configure_args0=
1883 ac_configure_args1=
1884 ac_must_keep_next=false
1885 for ac_pass in 1 2
1886 do
1887 for ac_arg
1888 do
1889 case $ac_arg in
1890 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1891 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1892 | -silent | --silent | --silen | --sile | --sil)
1893 continue ;;
1894 *\'*)
1895 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1896 esac
1897 case $ac_pass in
1898 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1899 2)
1900 as_fn_append ac_configure_args1 " '$ac_arg'"
1901 if test $ac_must_keep_next = true; then
1902 ac_must_keep_next=false # Got value, back to normal.
1903 else
1904 case $ac_arg in
1905 *=* | --config-cache | -C | -disable-* | --disable-* \
1906 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1907 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1908 | -with-* | --with-* | -without-* | --without-* | --x)
1909 case "$ac_configure_args0 " in
1910 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1911 esac
1912 ;;
1913 -* ) ac_must_keep_next=true ;;
1914 esac
1915 fi
1916 as_fn_append ac_configure_args " '$ac_arg'"
1917 ;;
1918 esac
1919 done
1920 done
1921 { ac_configure_args0=; unset ac_configure_args0;}
1922 { ac_configure_args1=; unset ac_configure_args1;}
1923
1924 # When interrupted or exit'd, cleanup temporary files, and complete
1925 # config.log. We remove comments because anyway the quotes in there
1926 # would cause problems or look ugly.
1927 # WARNING: Use '\'' to represent an apostrophe within the trap.
1928 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1929 trap 'exit_status=$?
1930 # Save into config.log some information that might help in debugging.
1931 {
1932 echo
1933
1934 $as_echo "## ---------------- ##
1935 ## Cache variables. ##
1936 ## ---------------- ##"
1937 echo
1938 # The following way of writing the cache mishandles newlines in values,
1939 (
1940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1941 eval ac_val=\$$ac_var
1942 case $ac_val in #(
1943 *${as_nl}*)
1944 case $ac_var in #(
1945 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1947 esac
1948 case $ac_var in #(
1949 _ | IFS | as_nl) ;; #(
1950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1951 *) { eval $ac_var=; unset $ac_var;} ;;
1952 esac ;;
1953 esac
1954 done
1955 (set) 2>&1 |
1956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1957 *${as_nl}ac_space=\ *)
1958 sed -n \
1959 "s/'\''/'\''\\\\'\'''\''/g;
1960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1961 ;; #(
1962 *)
1963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1964 ;;
1965 esac |
1966 sort
1967 )
1968 echo
1969
1970 $as_echo "## ----------------- ##
1971 ## Output variables. ##
1972 ## ----------------- ##"
1973 echo
1974 for ac_var in $ac_subst_vars
1975 do
1976 eval ac_val=\$$ac_var
1977 case $ac_val in
1978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979 esac
1980 $as_echo "$ac_var='\''$ac_val'\''"
1981 done | sort
1982 echo
1983
1984 if test -n "$ac_subst_files"; then
1985 $as_echo "## ------------------- ##
1986 ## File substitutions. ##
1987 ## ------------------- ##"
1988 echo
1989 for ac_var in $ac_subst_files
1990 do
1991 eval ac_val=\$$ac_var
1992 case $ac_val in
1993 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994 esac
1995 $as_echo "$ac_var='\''$ac_val'\''"
1996 done | sort
1997 echo
1998 fi
1999
2000 if test -s confdefs.h; then
2001 $as_echo "## ----------- ##
2002 ## confdefs.h. ##
2003 ## ----------- ##"
2004 echo
2005 cat confdefs.h
2006 echo
2007 fi
2008 test "$ac_signal" != 0 &&
2009 $as_echo "$as_me: caught signal $ac_signal"
2010 $as_echo "$as_me: exit $exit_status"
2011 } >&5
2012 rm -f core *.core core.conftest.* &&
2013 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2014 exit $exit_status
2015 ' 0
2016 for ac_signal in 1 2 13 15; do
2017 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2018 done
2019 ac_signal=0
2020
2021 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2022 rm -f -r conftest* confdefs.h
2023
2024 $as_echo "/* confdefs.h */" > confdefs.h
2025
2026 # Predefined preprocessor variables.
2027
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_NAME "$PACKAGE_NAME"
2030 _ACEOF
2031
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2034 _ACEOF
2035
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2038 _ACEOF
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_STRING "$PACKAGE_STRING"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_URL "$PACKAGE_URL"
2050 _ACEOF
2051
2052
2053 # Let the site file select an alternate cache file if it wants to.
2054 # Prefer an explicitly selected file to automatically selected ones.
2055 ac_site_file1=NONE
2056 ac_site_file2=NONE
2057 if test -n "$CONFIG_SITE"; then
2058 # We do not want a PATH search for config.site.
2059 case $CONFIG_SITE in #((
2060 -*) ac_site_file1=./$CONFIG_SITE;;
2061 */*) ac_site_file1=$CONFIG_SITE;;
2062 *) ac_site_file1=./$CONFIG_SITE;;
2063 esac
2064 elif test "x$prefix" != xNONE; then
2065 ac_site_file1=$prefix/share/config.site
2066 ac_site_file2=$prefix/etc/config.site
2067 else
2068 ac_site_file1=$ac_default_prefix/share/config.site
2069 ac_site_file2=$ac_default_prefix/etc/config.site
2070 fi
2071 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2072 do
2073 test "x$ac_site_file" = xNONE && continue
2074 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2076 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2077 sed 's/^/| /' "$ac_site_file" >&5
2078 . "$ac_site_file" \
2079 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2081 as_fn_error $? "failed to load site script $ac_site_file
2082 See \`config.log' for more details" "$LINENO" 5; }
2083 fi
2084 done
2085
2086 if test -r "$cache_file"; then
2087 # Some versions of bash will fail to source /dev/null (special files
2088 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2089 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2091 $as_echo "$as_me: loading cache $cache_file" >&6;}
2092 case $cache_file in
2093 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2094 *) . "./$cache_file";;
2095 esac
2096 fi
2097 else
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2099 $as_echo "$as_me: creating cache $cache_file" >&6;}
2100 >$cache_file
2101 fi
2102
2103 # Check that the precious variables saved in the cache have kept the same
2104 # value.
2105 ac_cache_corrupted=false
2106 for ac_var in $ac_precious_vars; do
2107 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2108 eval ac_new_set=\$ac_env_${ac_var}_set
2109 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2110 eval ac_new_val=\$ac_env_${ac_var}_value
2111 case $ac_old_set,$ac_new_set in
2112 set,)
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2114 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2115 ac_cache_corrupted=: ;;
2116 ,set)
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2118 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2119 ac_cache_corrupted=: ;;
2120 ,);;
2121 *)
2122 if test "x$ac_old_val" != "x$ac_new_val"; then
2123 # differences in whitespace do not lead to failure.
2124 ac_old_val_w=`echo x $ac_old_val`
2125 ac_new_val_w=`echo x $ac_new_val`
2126 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2128 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2129 ac_cache_corrupted=:
2130 else
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2132 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2133 eval $ac_var=\$ac_old_val
2134 fi
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2136 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2138 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2139 fi;;
2140 esac
2141 # Pass precious variables to config.status.
2142 if test "$ac_new_set" = set; then
2143 case $ac_new_val in
2144 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2145 *) ac_arg=$ac_var=$ac_new_val ;;
2146 esac
2147 case " $ac_configure_args " in
2148 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2149 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2150 esac
2151 fi
2152 done
2153 if $ac_cache_corrupted; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2157 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2158 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2159 fi
2160 ## -------------------- ##
2161 ## Main body of script. ##
2162 ## -------------------- ##
2163
2164 ac_ext=c
2165 ac_cpp='$CPP $CPPFLAGS'
2166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2169
2170
2171 am__api_version='1.11'
2172
2173 ac_aux_dir=
2174 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2175 if test -f "$ac_dir/install-sh"; then
2176 ac_aux_dir=$ac_dir
2177 ac_install_sh="$ac_aux_dir/install-sh -c"
2178 break
2179 elif test -f "$ac_dir/install.sh"; then
2180 ac_aux_dir=$ac_dir
2181 ac_install_sh="$ac_aux_dir/install.sh -c"
2182 break
2183 elif test -f "$ac_dir/shtool"; then
2184 ac_aux_dir=$ac_dir
2185 ac_install_sh="$ac_aux_dir/shtool install -c"
2186 break
2187 fi
2188 done
2189 if test -z "$ac_aux_dir"; then
2190 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2191 fi
2192
2193 # These three variables are undocumented and unsupported,
2194 # and are intended to be withdrawn in a future Autoconf release.
2195 # They can cause serious problems if a builder's source tree is in a directory
2196 # whose full name contains unusual characters.
2197 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2198 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2199 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2200
2201
2202 # Find a good install program. We prefer a C program (faster),
2203 # so one script is as good as another. But avoid the broken or
2204 # incompatible versions:
2205 # SysV /etc/install, /usr/sbin/install
2206 # SunOS /usr/etc/install
2207 # IRIX /sbin/install
2208 # AIX /bin/install
2209 # AmigaOS /C/install, which installs bootblocks on floppy discs
2210 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2211 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2212 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2213 # OS/2's system install, which has a completely different semantic
2214 # ./install, which can be erroneously created by make from ./install.sh.
2215 # Reject install programs that cannot install multiple files.
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2217 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2218 if test -z "$INSTALL"; then
2219 if ${ac_cv_path_install+:} false; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2224 do
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 # Account for people who put trailing slashes in PATH elements.
2228 case $as_dir/ in #((
2229 ./ | .// | /[cC]/* | \
2230 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2231 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2232 /usr/ucb/* ) ;;
2233 *)
2234 # OSF1 and SCO ODT 3.0 have their own names for install.
2235 # Don't use installbsd from OSF since it installs stuff as root
2236 # by default.
2237 for ac_prog in ginstall scoinst install; do
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2240 if test $ac_prog = install &&
2241 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2242 # AIX install. It has an incompatible calling convention.
2243 :
2244 elif test $ac_prog = install &&
2245 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2246 # program-specific install script used by HP pwplus--don't use.
2247 :
2248 else
2249 rm -rf conftest.one conftest.two conftest.dir
2250 echo one > conftest.one
2251 echo two > conftest.two
2252 mkdir conftest.dir
2253 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2254 test -s conftest.one && test -s conftest.two &&
2255 test -s conftest.dir/conftest.one &&
2256 test -s conftest.dir/conftest.two
2257 then
2258 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2259 break 3
2260 fi
2261 fi
2262 fi
2263 done
2264 done
2265 ;;
2266 esac
2267
2268 done
2269 IFS=$as_save_IFS
2270
2271 rm -rf conftest.one conftest.two conftest.dir
2272
2273 fi
2274 if test "${ac_cv_path_install+set}" = set; then
2275 INSTALL=$ac_cv_path_install
2276 else
2277 # As a last resort, use the slow shell script. Don't cache a
2278 # value for INSTALL within a source directory, because that will
2279 # break other packages using the cache if that directory is
2280 # removed, or if the value is a relative name.
2281 INSTALL=$ac_install_sh
2282 fi
2283 fi
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2285 $as_echo "$INSTALL" >&6; }
2286
2287 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2288 # It thinks the first close brace ends the variable substitution.
2289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2290
2291 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2292
2293 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2294
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2296 $as_echo_n "checking whether build environment is sane... " >&6; }
2297 # Just in case
2298 sleep 1
2299 echo timestamp > conftest.file
2300 # Reject unsafe characters in $srcdir or the absolute working directory
2301 # name. Accept space and tab only in the latter.
2302 am_lf='
2303 '
2304 case `pwd` in
2305 *[\\\"\#\$\&\'\`$am_lf]*)
2306 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2307 esac
2308 case $srcdir in
2309 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2310 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2311 esac
2312
2313 # Do `set' in a subshell so we don't clobber the current shell's
2314 # arguments. Must try -L first in case configure is actually a
2315 # symlink; some systems play weird games with the mod time of symlinks
2316 # (eg FreeBSD returns the mod time of the symlink's containing
2317 # directory).
2318 if (
2319 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2320 if test "$*" = "X"; then
2321 # -L didn't work.
2322 set X `ls -t "$srcdir/configure" conftest.file`
2323 fi
2324 rm -f conftest.file
2325 if test "$*" != "X $srcdir/configure conftest.file" \
2326 && test "$*" != "X conftest.file $srcdir/configure"; then
2327
2328 # If neither matched, then we have a broken ls. This can happen
2329 # if, for instance, CONFIG_SHELL is bash and it inherits a
2330 # broken ls alias from the environment. This has actually
2331 # happened. Such a system could not be considered "sane".
2332 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2333 alias in your environment" "$LINENO" 5
2334 fi
2335
2336 test "$2" = conftest.file
2337 )
2338 then
2339 # Ok.
2340 :
2341 else
2342 as_fn_error $? "newly created file is older than distributed files!
2343 Check your system clock" "$LINENO" 5
2344 fi
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2346 $as_echo "yes" >&6; }
2347 test "$program_prefix" != NONE &&
2348 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2349 # Use a double $ so make ignores it.
2350 test "$program_suffix" != NONE &&
2351 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2352 # Double any \ or $.
2353 # By default was `s,x,x', remove it if useless.
2354 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2355 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2356
2357 # expand $ac_aux_dir to an absolute path
2358 am_aux_dir=`cd $ac_aux_dir && pwd`
2359
2360 if test x"${MISSING+set}" != xset; then
2361 case $am_aux_dir in
2362 *\ * | *\ *)
2363 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2364 *)
2365 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2366 esac
2367 fi
2368 # Use eval to expand $SHELL
2369 if eval "$MISSING --run true"; then
2370 am_missing_run="$MISSING --run "
2371 else
2372 am_missing_run=
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2374 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2375 fi
2376
2377 if test x"${install_sh}" != xset; then
2378 case $am_aux_dir in
2379 *\ * | *\ *)
2380 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2381 *)
2382 install_sh="\${SHELL} $am_aux_dir/install-sh"
2383 esac
2384 fi
2385
2386 # Installed binaries are usually stripped using `strip' when the user
2387 # run `make install-strip'. However `strip' might not be the right
2388 # tool to use in cross-compilation environments, therefore Automake
2389 # will honor the `STRIP' environment variable to overrule this program.
2390 if test "$cross_compiling" != no; then
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}strip; ac_word=$2
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2395 $as_echo_n "checking for $ac_word... " >&6; }
2396 if ${ac_cv_prog_STRIP+:} false; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 if test -n "$STRIP"; then
2400 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2404 do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2412 fi
2413 done
2414 done
2415 IFS=$as_save_IFS
2416
2417 fi
2418 fi
2419 STRIP=$ac_cv_prog_STRIP
2420 if test -n "$STRIP"; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2422 $as_echo "$STRIP" >&6; }
2423 else
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2425 $as_echo "no" >&6; }
2426 fi
2427
2428
2429 fi
2430 if test -z "$ac_cv_prog_STRIP"; then
2431 ac_ct_STRIP=$STRIP
2432 # Extract the first word of "strip", so it can be a program name with args.
2433 set dummy strip; ac_word=$2
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2435 $as_echo_n "checking for $ac_word... " >&6; }
2436 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2437 $as_echo_n "(cached) " >&6
2438 else
2439 if test -n "$ac_ct_STRIP"; then
2440 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_ac_ct_STRIP="strip"
2450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2452 fi
2453 done
2454 done
2455 IFS=$as_save_IFS
2456
2457 fi
2458 fi
2459 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2460 if test -n "$ac_ct_STRIP"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2462 $as_echo "$ac_ct_STRIP" >&6; }
2463 else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2465 $as_echo "no" >&6; }
2466 fi
2467
2468 if test "x$ac_ct_STRIP" = x; then
2469 STRIP=":"
2470 else
2471 case $cross_compiling:$ac_tool_warned in
2472 yes:)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2475 ac_tool_warned=yes ;;
2476 esac
2477 STRIP=$ac_ct_STRIP
2478 fi
2479 else
2480 STRIP="$ac_cv_prog_STRIP"
2481 fi
2482
2483 fi
2484 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2485
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2487 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2488 if test -z "$MKDIR_P"; then
2489 if ${ac_cv_path_mkdir+:} false; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_prog in mkdir gmkdir; do
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2500 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2501 'mkdir (GNU coreutils) '* | \
2502 'mkdir (coreutils) '* | \
2503 'mkdir (fileutils) '4.1*)
2504 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2505 break 3;;
2506 esac
2507 done
2508 done
2509 done
2510 IFS=$as_save_IFS
2511
2512 fi
2513
2514 test -d ./--version && rmdir ./--version
2515 if test "${ac_cv_path_mkdir+set}" = set; then
2516 MKDIR_P="$ac_cv_path_mkdir -p"
2517 else
2518 # As a last resort, use the slow shell script. Don't cache a
2519 # value for MKDIR_P within a source directory, because that will
2520 # break other packages using the cache if that directory is
2521 # removed, or if the value is a relative name.
2522 MKDIR_P="$ac_install_sh -d"
2523 fi
2524 fi
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2526 $as_echo "$MKDIR_P" >&6; }
2527
2528 mkdir_p="$MKDIR_P"
2529 case $mkdir_p in
2530 [\\/$]* | ?:[\\/]*) ;;
2531 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2532 esac
2533
2534 for ac_prog in gawk mawk nawk awk
2535 do
2536 # Extract the first word of "$ac_prog", so it can be a program name with args.
2537 set dummy $ac_prog; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_AWK+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 if test -n "$AWK"; then
2544 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_AWK="$ac_prog"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2556 fi
2557 done
2558 done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 AWK=$ac_cv_prog_AWK
2564 if test -n "$AWK"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2566 $as_echo "$AWK" >&6; }
2567 else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2570 fi
2571
2572
2573 test -n "$AWK" && break
2574 done
2575
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2577 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2578 set x ${MAKE-make}
2579 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2580 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 cat >conftest.make <<\_ACEOF
2584 SHELL = /bin/sh
2585 all:
2586 @echo '@@@%%%=$(MAKE)=@@@%%%'
2587 _ACEOF
2588 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2589 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2590 *@@@%%%=?*=@@@%%%*)
2591 eval ac_cv_prog_make_${ac_make}_set=yes;;
2592 *)
2593 eval ac_cv_prog_make_${ac_make}_set=no;;
2594 esac
2595 rm -f conftest.make
2596 fi
2597 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2599 $as_echo "yes" >&6; }
2600 SET_MAKE=
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2604 SET_MAKE="MAKE=${MAKE-make}"
2605 fi
2606
2607 rm -rf .tst 2>/dev/null
2608 mkdir .tst 2>/dev/null
2609 if test -d .tst; then
2610 am__leading_dot=.
2611 else
2612 am__leading_dot=_
2613 fi
2614 rmdir .tst 2>/dev/null
2615
2616 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2617 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2618 # is not polluted with repeated "-I."
2619 am__isrc=' -I$(srcdir)'
2620 # test to see if srcdir already configured
2621 if test -f $srcdir/config.status; then
2622 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2623 fi
2624 fi
2625
2626 # test whether we have cygpath
2627 if test -z "$CYGPATH_W"; then
2628 if (cygpath --version) >/dev/null 2>/dev/null; then
2629 CYGPATH_W='cygpath -w'
2630 else
2631 CYGPATH_W=echo
2632 fi
2633 fi
2634
2635
2636 # Define the identity of the package.
2637 PACKAGE='rgb'
2638 VERSION='1.0.4'
2639
2640
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE "$PACKAGE"
2643 _ACEOF
2644
2645
2646 cat >>confdefs.h <<_ACEOF
2647 #define VERSION "$VERSION"
2648 _ACEOF
2649
2650 # Some tools Automake needs.
2651
2652 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2653
2654
2655 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2656
2657
2658 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2659
2660
2661 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2662
2663
2664 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2665
2666 # We need awk for the "check" target. The system "awk" is bad on
2667 # some platforms.
2668 # Always define AMTAR for backward compatibility.
2669
2670 AMTAR=${AMTAR-"${am_missing_run}tar"}
2671
2672 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2673
2674
2675
2676
2677
2678
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2680 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2681 # Check whether --enable-maintainer-mode was given.
2682 if test "${enable_maintainer_mode+set}" = set; then :
2683 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2684 else
2685 USE_MAINTAINER_MODE=no
2686 fi
2687
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2689 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2690 if test $USE_MAINTAINER_MODE = yes; then
2691 MAINTAINER_MODE_TRUE=
2692 MAINTAINER_MODE_FALSE='#'
2693 else
2694 MAINTAINER_MODE_TRUE='#'
2695 MAINTAINER_MODE_FALSE=
2696 fi
2697
2698 MAINT=$MAINTAINER_MODE_TRUE
2699
2700
2701 ac_config_headers="$ac_config_headers config.h"
2702
2703
2704 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716 DEPDIR="${am__leading_dot}deps"
2717
2718 ac_config_commands="$ac_config_commands depfiles"
2719
2720
2721 am_make=${MAKE-make}
2722 cat > confinc << 'END'
2723 am__doit:
2724 @echo this is the am__doit target
2725 .PHONY: am__doit
2726 END
2727 # If we don't find an include directive, just comment out the code.
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2729 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2730 am__include="#"
2731 am__quote=
2732 _am_result=none
2733 # First try GNU make style include.
2734 echo "include confinc" > confmf
2735 # Ignore all kinds of additional output from `make'.
2736 case `$am_make -s -f confmf 2> /dev/null` in #(
2737 *the\ am__doit\ target*)
2738 am__include=include
2739 am__quote=
2740 _am_result=GNU
2741 ;;
2742 esac
2743 # Now try BSD make style include.
2744 if test "$am__include" = "#"; then
2745 echo '.include "confinc"' > confmf
2746 case `$am_make -s -f confmf 2> /dev/null` in #(
2747 *the\ am__doit\ target*)
2748 am__include=.include
2749 am__quote="\""
2750 _am_result=BSD
2751 ;;
2752 esac
2753 fi
2754
2755
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2757 $as_echo "$_am_result" >&6; }
2758 rm -f confinc confmf
2759
2760 # Check whether --enable-dependency-tracking was given.
2761 if test "${enable_dependency_tracking+set}" = set; then :
2762 enableval=$enable_dependency_tracking;
2763 fi
2764
2765 if test "x$enable_dependency_tracking" != xno; then
2766 am_depcomp="$ac_aux_dir/depcomp"
2767 AMDEPBACKSLASH='\'
2768 fi
2769 if test "x$enable_dependency_tracking" != xno; then
2770 AMDEP_TRUE=
2771 AMDEP_FALSE='#'
2772 else
2773 AMDEP_TRUE='#'
2774 AMDEP_FALSE=
2775 fi
2776
2777
2778 ac_ext=c
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 if test -n "$ac_tool_prefix"; then
2784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if ${ac_cv_prog_CC+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 CC=$ac_cv_prog_CC
2812 if test -n "$CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2814 $as_echo "$CC" >&6; }
2815 else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2818 fi
2819
2820
2821 fi
2822 if test -z "$ac_cv_prog_CC"; then
2823 ac_ct_CC=$CC
2824 # Extract the first word of "gcc", so it can be a program name with args.
2825 set dummy gcc; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_ac_ct_CC="gcc"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2854 $as_echo "$ac_ct_CC" >&6; }
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860 if test "x$ac_ct_CC" = x; then
2861 CC=""
2862 else
2863 case $cross_compiling:$ac_tool_warned in
2864 yes:)
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867 ac_tool_warned=yes ;;
2868 esac
2869 CC=$ac_ct_CC
2870 fi
2871 else
2872 CC="$ac_cv_prog_CC"
2873 fi
2874
2875 if test -z "$CC"; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}cc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_CC+:} false; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_CC="${ac_tool_prefix}cc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2911 fi
2912
2913
2914 fi
2915 fi
2916 if test -z "$CC"; then
2917 # Extract the first word of "cc", so it can be a program name with args.
2918 set dummy cc; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if ${ac_cv_prog_CC+:} false; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 ac_prog_rejected=no
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2936 ac_prog_rejected=yes
2937 continue
2938 fi
2939 ac_cv_prog_CC="cc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 if test $ac_prog_rejected = yes; then
2948 # We found a bogon in the path, so make sure we never use it.
2949 set dummy $ac_cv_prog_CC
2950 shift
2951 if test $# != 0; then
2952 # We chose a different compiler from the bogus one.
2953 # However, it has the same basename, so the bogon will be chosen
2954 # first if we set CC to just the basename; use the full file name.
2955 shift
2956 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2957 fi
2958 fi
2959 fi
2960 fi
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971 fi
2972 if test -z "$CC"; then
2973 if test -n "$ac_tool_prefix"; then
2974 for ac_prog in cl.exe
2975 do
2976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_CC+:} false; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 break 2
2996 fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 fi
3002 fi
3003 CC=$ac_cv_prog_CC
3004 if test -n "$CC"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 fi
3011
3012
3013 test -n "$CC" && break
3014 done
3015 fi
3016 if test -z "$CC"; then
3017 ac_ct_CC=$CC
3018 for ac_prog in cl.exe
3019 do
3020 # Extract the first word of "$ac_prog", so it can be a program name with args.
3021 set dummy $ac_prog; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$ac_ct_CC"; then
3028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 ac_cv_prog_ac_ct_CC="$ac_prog"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3040 fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048 if test -n "$ac_ct_CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3050 $as_echo "$ac_ct_CC" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057 test -n "$ac_ct_CC" && break
3058 done
3059
3060 if test "x$ac_ct_CC" = x; then
3061 CC=""
3062 else
3063 case $cross_compiling:$ac_tool_warned in
3064 yes:)
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3067 ac_tool_warned=yes ;;
3068 esac
3069 CC=$ac_ct_CC
3070 fi
3071 fi
3072
3073 fi
3074
3075
3076 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 as_fn_error $? "no acceptable C compiler found in \$PATH
3079 See \`config.log' for more details" "$LINENO" 5; }
3080
3081 # Provide some information about the compiler.
3082 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3083 set X $ac_compile
3084 ac_compiler=$2
3085 for ac_option in --version -v -V -qversion; do
3086 { { ac_try="$ac_compiler $ac_option >&5"
3087 case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090 esac
3091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092 $as_echo "$ac_try_echo"; } >&5
3093 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3094 ac_status=$?
3095 if test -s conftest.err; then
3096 sed '10a\
3097 ... rest of stderr output deleted ...
3098 10q' conftest.err >conftest.er1
3099 cat conftest.er1 >&5
3100 fi
3101 rm -f conftest.er1 conftest.err
3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }
3104 done
3105
3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3108
3109 int
3110 main ()
3111 {
3112
3113 ;
3114 return 0;
3115 }
3116 _ACEOF
3117 ac_clean_files_save=$ac_clean_files
3118 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3119 # Try to create an executable without -o first, disregard a.out.
3120 # It will help us diagnose broken compilers, and finding out an intuition
3121 # of exeext.
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3123 $as_echo_n "checking whether the C compiler works... " >&6; }
3124 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3125
3126 # The possible output files:
3127 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128
3129 ac_rmfiles=
3130 for ac_file in $ac_files
3131 do
3132 case $ac_file in
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3135 esac
3136 done
3137 rm -f $ac_rmfiles
3138
3139 if { { ac_try="$ac_link_default"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_link_default") 2>&5
3147 ac_status=$?
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; then :
3150 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3151 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3152 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3153 # so that the user can short-circuit this test for compilers unknown to
3154 # Autoconf.
3155 for ac_file in $ac_files ''
3156 do
3157 test -f "$ac_file" || continue
3158 case $ac_file in
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3160 ;;
3161 [ab].out )
3162 # We found the default executable, but exeext='' is most
3163 # certainly right.
3164 break;;
3165 *.* )
3166 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3167 then :; else
3168 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169 fi
3170 # We set ac_cv_exeext here because the later test for it is not
3171 # safe: cross compilers may not add the suffix if given an `-o'
3172 # argument, so we may need to know it at that point already.
3173 # Even if this section looks crufty: it has the advantage of
3174 # actually working.
3175 break;;
3176 * )
3177 break;;
3178 esac
3179 done
3180 test "$ac_cv_exeext" = no && ac_cv_exeext=
3181
3182 else
3183 ac_file=''
3184 fi
3185 if test -z "$ac_file"; then :
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 $as_echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 as_fn_error 77 "C compiler cannot create executables
3194 See \`config.log' for more details" "$LINENO" 5; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3197 $as_echo "yes" >&6; }
3198 fi
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3200 $as_echo_n "checking for C compiler default output file name... " >&6; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3202 $as_echo "$ac_file" >&6; }
3203 ac_exeext=$ac_cv_exeext
3204
3205 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3206 ac_clean_files=$ac_clean_files_save
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3208 $as_echo_n "checking for suffix of executables... " >&6; }
3209 if { { ac_try="$ac_link"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_link") 2>&5
3217 ac_status=$?
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3222 # work properly (i.e., refer to `conftest.exe'), while it won't with
3223 # `rm'.
3224 for ac_file in conftest.exe conftest conftest.*; do
3225 test -f "$ac_file" || continue
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229 break;;
3230 * ) break;;
3231 esac
3232 done
3233 else
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3237 See \`config.log' for more details" "$LINENO" 5; }
3238 fi
3239 rm -f conftest conftest$ac_cv_exeext
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3241 $as_echo "$ac_cv_exeext" >&6; }
3242
3243 rm -f conftest.$ac_ext
3244 EXEEXT=$ac_cv_exeext
3245 ac_exeext=$EXEEXT
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3248 #include <stdio.h>
3249 int
3250 main ()
3251 {
3252 FILE *f = fopen ("conftest.out", "w");
3253 return ferror (f) || fclose (f) != 0;
3254
3255 ;
3256 return 0;
3257 }
3258 _ACEOF
3259 ac_clean_files="$ac_clean_files conftest.out"
3260 # Check that the compiler produces executables we can run. If not, either
3261 # the compiler is broken, or we cross compile.
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3263 $as_echo_n "checking whether we are cross compiling... " >&6; }
3264 if test "$cross_compiling" != yes; then
3265 { { ac_try="$ac_link"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_link") 2>&5
3273 ac_status=$?
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }
3276 if { ac_try='./conftest$ac_cv_exeext'
3277 { { case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_try") 2>&5
3284 ac_status=$?
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; }; then
3287 cross_compiling=no
3288 else
3289 if test "$cross_compiling" = maybe; then
3290 cross_compiling=yes
3291 else
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $? "cannot run C compiled programs.
3295 If you meant to cross compile, use \`--host'.
3296 See \`config.log' for more details" "$LINENO" 5; }
3297 fi
3298 fi
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3301 $as_echo "$cross_compiling" >&6; }
3302
3303 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3304 ac_clean_files=$ac_clean_files_save
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3306 $as_echo_n "checking for suffix of object files... " >&6; }
3307 if ${ac_cv_objext+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3312
3313 int
3314 main ()
3315 {
3316
3317 ;
3318 return 0;
3319 }
3320 _ACEOF
3321 rm -f conftest.o conftest.obj
3322 if { { ac_try="$ac_compile"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_compile") 2>&5
3330 ac_status=$?
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 for ac_file in conftest.o conftest.obj conftest.*; do
3334 test -f "$ac_file" || continue;
3335 case $ac_file in
3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3338 break;;
3339 esac
3340 done
3341 else
3342 $as_echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error $? "cannot compute suffix of object files: cannot compile
3348 See \`config.log' for more details" "$LINENO" 5; }
3349 fi
3350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3351 fi
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3353 $as_echo "$ac_cv_objext" >&6; }
3354 OBJEXT=$ac_cv_objext
3355 ac_objext=$OBJEXT
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3357 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3358 if ${ac_cv_c_compiler_gnu+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3363
3364 int
3365 main ()
3366 {
3367 #ifndef __GNUC__
3368 choke me
3369 #endif
3370
3371 ;
3372 return 0;
3373 }
3374 _ACEOF
3375 if ac_fn_c_try_compile "$LINENO"; then :
3376 ac_compiler_gnu=yes
3377 else
3378 ac_compiler_gnu=no
3379 fi
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3382
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3385 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3386 if test $ac_compiler_gnu = yes; then
3387 GCC=yes
3388 else
3389 GCC=
3390 fi
3391 ac_test_CFLAGS=${CFLAGS+set}
3392 ac_save_CFLAGS=$CFLAGS
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3394 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3395 if ${ac_cv_prog_cc_g+:} false; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 ac_save_c_werror_flag=$ac_c_werror_flag
3399 ac_c_werror_flag=yes
3400 ac_cv_prog_cc_g=no
3401 CFLAGS="-g"
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3404
3405 int
3406 main ()
3407 {
3408
3409 ;
3410 return 0;
3411 }
3412 _ACEOF
3413 if ac_fn_c_try_compile "$LINENO"; then :
3414 ac_cv_prog_cc_g=yes
3415 else
3416 CFLAGS=""
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3419
3420 int
3421 main ()
3422 {
3423
3424 ;
3425 return 0;
3426 }
3427 _ACEOF
3428 if ac_fn_c_try_compile "$LINENO"; then :
3429
3430 else
3431 ac_c_werror_flag=$ac_save_c_werror_flag
3432 CFLAGS="-g"
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3435
3436 int
3437 main ()
3438 {
3439
3440 ;
3441 return 0;
3442 }
3443 _ACEOF
3444 if ac_fn_c_try_compile "$LINENO"; then :
3445 ac_cv_prog_cc_g=yes
3446 fi
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 fi
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 fi
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_c_werror_flag=$ac_save_c_werror_flag
3453 fi
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3455 $as_echo "$ac_cv_prog_cc_g" >&6; }
3456 if test "$ac_test_CFLAGS" = set; then
3457 CFLAGS=$ac_save_CFLAGS
3458 elif test $ac_cv_prog_cc_g = yes; then
3459 if test "$GCC" = yes; then
3460 CFLAGS="-g -O2"
3461 else
3462 CFLAGS="-g"
3463 fi
3464 else
3465 if test "$GCC" = yes; then
3466 CFLAGS="-O2"
3467 else
3468 CFLAGS=
3469 fi
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3472 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3473 if ${ac_cv_prog_cc_c89+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 ac_cv_prog_cc_c89=no
3477 ac_save_CC=$CC
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3480 #include <stdarg.h>
3481 #include <stdio.h>
3482 #include <sys/types.h>
3483 #include <sys/stat.h>
3484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3485 struct buf { int x; };
3486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3487 static char *e (p, i)
3488 char **p;
3489 int i;
3490 {
3491 return p[i];
3492 }
3493 static char *f (char * (*g) (char **, int), char **p, ...)
3494 {
3495 char *s;
3496 va_list v;
3497 va_start (v,p);
3498 s = g (p, va_arg (v,int));
3499 va_end (v);
3500 return s;
3501 }
3502
3503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3504 function prototypes and stuff, but not '\xHH' hex character constants.
3505 These don't provoke an error unfortunately, instead are silently treated
3506 as 'x'. The following induces an error, until -std is added to get
3507 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3508 array size at least. It's necessary to write '\x00'==0 to get something
3509 that's true only with -std. */
3510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3511
3512 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3513 inside strings and character constants. */
3514 #define FOO(x) 'x'
3515 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3516
3517 int test (int i, double x);
3518 struct s1 {int (*f) (int a);};
3519 struct s2 {int (*f) (double a);};
3520 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3521 int argc;
3522 char **argv;
3523 int
3524 main ()
3525 {
3526 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3527 ;
3528 return 0;
3529 }
3530 _ACEOF
3531 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3532 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3533 do
3534 CC="$ac_save_CC $ac_arg"
3535 if ac_fn_c_try_compile "$LINENO"; then :
3536 ac_cv_prog_cc_c89=$ac_arg
3537 fi
3538 rm -f core conftest.err conftest.$ac_objext
3539 test "x$ac_cv_prog_cc_c89" != "xno" && break
3540 done
3541 rm -f conftest.$ac_ext
3542 CC=$ac_save_CC
3543
3544 fi
3545 # AC_CACHE_VAL
3546 case "x$ac_cv_prog_cc_c89" in
3547 x)
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3549 $as_echo "none needed" >&6; } ;;
3550 xno)
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3552 $as_echo "unsupported" >&6; } ;;
3553 *)
3554 CC="$CC $ac_cv_prog_cc_c89"
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3556 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3557 esac
3558 if test "x$ac_cv_prog_cc_c89" != xno; then :
3559
3560 fi
3561
3562 ac_ext=c
3563 ac_cpp='$CPP $CPPFLAGS'
3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567
3568 depcc="$CC" am_compiler_list=
3569
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3571 $as_echo_n "checking dependency style of $depcc... " >&6; }
3572 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3576 # We make a subdir and do the tests there. Otherwise we can end up
3577 # making bogus files that we don't know about and never remove. For
3578 # instance it was reported that on HP-UX the gcc test will end up
3579 # making a dummy file named `D' -- because `-MD' means `put the output
3580 # in D'.
3581 mkdir conftest.dir
3582 # Copy depcomp to subdir because otherwise we won't find it if we're
3583 # using a relative directory.
3584 cp "$am_depcomp" conftest.dir
3585 cd conftest.dir
3586 # We will build objects and dependencies in a subdirectory because
3587 # it helps to detect inapplicable dependency modes. For instance
3588 # both Tru64's cc and ICC support -MD to output dependencies as a
3589 # side effect of compilation, but ICC will put the dependencies in
3590 # the current directory while Tru64 will put them in the object
3591 # directory.
3592 mkdir sub
3593
3594 am_cv_CC_dependencies_compiler_type=none
3595 if test "$am_compiler_list" = ""; then
3596 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3597 fi
3598 am__universal=false
3599 case " $depcc " in #(
3600 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3601 esac
3602
3603 for depmode in $am_compiler_list; do
3604 # Setup a source with many dependencies, because some compilers
3605 # like to wrap large dependency lists on column 80 (with \), and
3606 # we should not choose a depcomp mode which is confused by this.
3607 #
3608 # We need to recreate these files for each test, as the compiler may
3609 # overwrite some of them when testing with obscure command lines.
3610 # This happens at least with the AIX C compiler.
3611 : > sub/conftest.c
3612 for i in 1 2 3 4 5 6; do
3613 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3614 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615 # Solaris 8's {/usr,}/bin/sh.
3616 touch sub/conftst$i.h
3617 done
3618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3619
3620 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3621 # mode. It turns out that the SunPro C++ compiler does not properly
3622 # handle `-M -o', and we need to detect this. Also, some Intel
3623 # versions had trouble with output in subdirs
3624 am__obj=sub/conftest.${OBJEXT-o}
3625 am__minus_obj="-o $am__obj"
3626 case $depmode in
3627 gcc)
3628 # This depmode causes a compiler race in universal mode.
3629 test "$am__universal" = false || continue
3630 ;;
3631 nosideeffect)
3632 # after this tag, mechanisms are not by side-effect, so they'll
3633 # only be used when explicitly requested
3634 if test "x$enable_dependency_tracking" = xyes; then
3635 continue
3636 else
3637 break
3638 fi
3639 ;;
3640 msvisualcpp | msvcmsys)
3641 # This compiler won't grok `-c -o', but also, the minuso test has
3642 # not run yet. These depmodes are late enough in the game, and
3643 # so weak that their functioning should not be impacted.
3644 am__obj=conftest.${OBJEXT-o}
3645 am__minus_obj=
3646 ;;
3647 none) break ;;
3648 esac
3649 if depmode=$depmode \
3650 source=sub/conftest.c object=$am__obj \
3651 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3652 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3653 >/dev/null 2>conftest.err &&
3654 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3655 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3656 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3657 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3658 # icc doesn't choke on unknown options, it will just issue warnings
3659 # or remarks (even with -Werror). So we grep stderr for any message
3660 # that says an option was ignored or not supported.
3661 # When given -MP, icc 7.0 and 7.1 complain thusly:
3662 # icc: Command line warning: ignoring option '-M'; no argument required
3663 # The diagnosis changed in icc 8.0:
3664 # icc: Command line remark: option '-MP' not supported
3665 if (grep 'ignoring option' conftest.err ||
3666 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3667 am_cv_CC_dependencies_compiler_type=$depmode
3668 break
3669 fi
3670 fi
3671 done
3672
3673 cd ..
3674 rm -rf conftest.dir
3675 else
3676 am_cv_CC_dependencies_compiler_type=none
3677 fi
3678
3679 fi
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3681 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3683
3684 if
3685 test "x$enable_dependency_tracking" != xno \
3686 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3687 am__fastdepCC_TRUE=
3688 am__fastdepCC_FALSE='#'
3689 else
3690 am__fastdepCC_TRUE='#'
3691 am__fastdepCC_FALSE=
3692 fi
3693
3694
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3696 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3697 if ${ac_cv_prog_cc_c99+:} false; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 ac_cv_prog_cc_c99=no
3701 ac_save_CC=$CC
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3704 #include <stdarg.h>
3705 #include <stdbool.h>
3706 #include <stdlib.h>
3707 #include <wchar.h>
3708 #include <stdio.h>
3709
3710 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3711 #define debug(...) fprintf (stderr, __VA_ARGS__)
3712 #define showlist(...) puts (#__VA_ARGS__)
3713 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3714 static void
3715 test_varargs_macros (void)
3716 {
3717 int x = 1234;
3718 int y = 5678;
3719 debug ("Flag");
3720 debug ("X = %d\n", x);
3721 showlist (The first, second, and third items.);
3722 report (x>y, "x is %d but y is %d", x, y);
3723 }
3724
3725 // Check long long types.
3726 #define BIG64 18446744073709551615ull
3727 #define BIG32 4294967295ul
3728 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3729 #if !BIG_OK
3730 your preprocessor is broken;
3731 #endif
3732 #if BIG_OK
3733 #else
3734 your preprocessor is broken;
3735 #endif
3736 static long long int bignum = -9223372036854775807LL;
3737 static unsigned long long int ubignum = BIG64;
3738
3739 struct incomplete_array
3740 {
3741 int datasize;
3742 double data[];
3743 };
3744
3745 struct named_init {
3746 int number;
3747 const wchar_t *name;
3748 double average;
3749 };
3750
3751 typedef const char *ccp;
3752
3753 static inline int
3754 test_restrict (ccp restrict text)
3755 {
3756 // See if C++-style comments work.
3757 // Iterate through items via the restricted pointer.
3758 // Also check for declarations in for loops.
3759 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3760 continue;
3761 return 0;
3762 }
3763
3764 // Check varargs and va_copy.
3765 static void
3766 test_varargs (const char *format, ...)
3767 {
3768 va_list args;
3769 va_start (args, format);
3770 va_list args_copy;
3771 va_copy (args_copy, args);
3772
3773 const char *str;
3774 int number;
3775 float fnumber;
3776
3777 while (*format)
3778 {
3779 switch (*format++)
3780 {
3781 case 's': // string
3782 str = va_arg (args_copy, const char *);
3783 break;
3784 case 'd': // int
3785 number = va_arg (args_copy, int);
3786 break;
3787 case 'f': // float
3788 fnumber = va_arg (args_copy, double);
3789 break;
3790 default:
3791 break;
3792 }
3793 }
3794 va_end (args_copy);
3795 va_end (args);
3796 }
3797
3798 int
3799 main ()
3800 {
3801
3802 // Check bool.
3803 _Bool success = false;
3804
3805 // Check restrict.
3806 if (test_restrict ("String literal") == 0)
3807 success = true;
3808 char *restrict newvar = "Another string";
3809
3810 // Check varargs.
3811 test_varargs ("s, d' f .", "string", 65, 34.234);
3812 test_varargs_macros ();
3813
3814 // Check flexible array members.
3815 struct incomplete_array *ia =
3816 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3817 ia->datasize = 10;
3818 for (int i = 0; i < ia->datasize; ++i)
3819 ia->data[i] = i * 1.234;
3820
3821 // Check named initializers.
3822 struct named_init ni = {
3823 .number = 34,
3824 .name = L"Test wide string",
3825 .average = 543.34343,
3826 };
3827
3828 ni.number = 58;
3829
3830 int dynamic_array[ni.number];
3831 dynamic_array[ni.number - 1] = 543;
3832
3833 // work around unused variable warnings
3834 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3835 || dynamic_array[ni.number - 1] != 543);
3836
3837 ;
3838 return 0;
3839 }
3840 _ACEOF
3841 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3842 do
3843 CC="$ac_save_CC $ac_arg"
3844 if ac_fn_c_try_compile "$LINENO"; then :
3845 ac_cv_prog_cc_c99=$ac_arg
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext
3848 test "x$ac_cv_prog_cc_c99" != "xno" && break
3849 done
3850 rm -f conftest.$ac_ext
3851 CC=$ac_save_CC
3852
3853 fi
3854 # AC_CACHE_VAL
3855 case "x$ac_cv_prog_cc_c99" in
3856 x)
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3858 $as_echo "none needed" >&6; } ;;
3859 xno)
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3861 $as_echo "unsupported" >&6; } ;;
3862 *)
3863 CC="$CC $ac_cv_prog_cc_c99"
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3865 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3866 esac
3867 if test "x$ac_cv_prog_cc_c99" != xno; then :
3868
3869 fi
3870
3871
3872
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3879 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3880 # On Suns, sometimes $CPP names a directory.
3881 if test -n "$CPP" && test -d "$CPP"; then
3882 CPP=
3883 fi
3884 if test -z "$CPP"; then
3885 if ${ac_cv_prog_CPP+:} false; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 # Double quotes because CPP needs to be expanded
3889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3890 do
3891 ac_preproc_ok=false
3892 for ac_c_preproc_warn_flag in '' yes
3893 do
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
3896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
3898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error" is here to catch this case.
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3902 #ifdef __STDC__
3903 # include <limits.h>
3904 #else
3905 # include <assert.h>
3906 #endif
3907 Syntax error
3908 _ACEOF
3909 if ac_fn_c_try_cpp "$LINENO"; then :
3910
3911 else
3912 # Broken: fails on valid input.
3913 continue
3914 fi
3915 rm -f conftest.err conftest.i conftest.$ac_ext
3916
3917 # OK, works on sane cases. Now check whether nonexistent headers
3918 # can be detected and how.
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921 #include <ac_nonexistent.h>
3922 _ACEOF
3923 if ac_fn_c_try_cpp "$LINENO"; then :
3924 # Broken: success on invalid input.
3925 continue
3926 else
3927 # Passes both tests.
3928 ac_preproc_ok=:
3929 break
3930 fi
3931 rm -f conftest.err conftest.i conftest.$ac_ext
3932
3933 done
3934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3935 rm -f conftest.i conftest.err conftest.$ac_ext
3936 if $ac_preproc_ok; then :
3937 break
3938 fi
3939
3940 done
3941 ac_cv_prog_CPP=$CPP
3942
3943 fi
3944 CPP=$ac_cv_prog_CPP
3945 else
3946 ac_cv_prog_CPP=$CPP
3947 fi
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3949 $as_echo "$CPP" >&6; }
3950 ac_preproc_ok=false
3951 for ac_c_preproc_warn_flag in '' yes
3952 do
3953 # Use a header file that comes with gcc, so configuring glibc
3954 # with a fresh cross-compiler works.
3955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3956 # <limits.h> exists even on freestanding compilers.
3957 # On the NeXT, cc -E runs the code through the compiler's parser,
3958 # not just through cpp. "Syntax error" is here to catch this case.
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3961 #ifdef __STDC__
3962 # include <limits.h>
3963 #else
3964 # include <assert.h>
3965 #endif
3966 Syntax error
3967 _ACEOF
3968 if ac_fn_c_try_cpp "$LINENO"; then :
3969
3970 else
3971 # Broken: fails on valid input.
3972 continue
3973 fi
3974 rm -f conftest.err conftest.i conftest.$ac_ext
3975
3976 # OK, works on sane cases. Now check whether nonexistent headers
3977 # can be detected and how.
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3980 #include <ac_nonexistent.h>
3981 _ACEOF
3982 if ac_fn_c_try_cpp "$LINENO"; then :
3983 # Broken: success on invalid input.
3984 continue
3985 else
3986 # Passes both tests.
3987 ac_preproc_ok=:
3988 break
3989 fi
3990 rm -f conftest.err conftest.i conftest.$ac_ext
3991
3992 done
3993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3994 rm -f conftest.i conftest.err conftest.$ac_ext
3995 if $ac_preproc_ok; then :
3996
3997 else
3998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4001 See \`config.log' for more details" "$LINENO" 5; }
4002 fi
4003
4004 ac_ext=c
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
4010
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4012 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4013 if ${ac_cv_path_GREP+:} false; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 if test -z "$GREP"; then
4017 ac_path_GREP_found=false
4018 # Loop through the user's path and test for each of PROGNAME-LIST
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4021 do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_prog in grep ggrep; do
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4027 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4028 # Check for GNU ac_path_GREP and select it if it is found.
4029 # Check for GNU $ac_path_GREP
4030 case `"$ac_path_GREP" --version 2>&1` in
4031 *GNU*)
4032 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4033 *)
4034 ac_count=0
4035 $as_echo_n 0123456789 >"conftest.in"
4036 while :
4037 do
4038 cat "conftest.in" "conftest.in" >"conftest.tmp"
4039 mv "conftest.tmp" "conftest.in"
4040 cp "conftest.in" "conftest.nl"
4041 $as_echo 'GREP' >> "conftest.nl"
4042 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4044 as_fn_arith $ac_count + 1 && ac_count=$as_val
4045 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4046 # Best one so far, save it but keep looking for a better one
4047 ac_cv_path_GREP="$ac_path_GREP"
4048 ac_path_GREP_max=$ac_count
4049 fi
4050 # 10*(2^10) chars as input seems more than enough
4051 test $ac_count -gt 10 && break
4052 done
4053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4054 esac
4055
4056 $ac_path_GREP_found && break 3
4057 done
4058 done
4059 done
4060 IFS=$as_save_IFS
4061 if test -z "$ac_cv_path_GREP"; then
4062 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4063 fi
4064 else
4065 ac_cv_path_GREP=$GREP
4066 fi
4067
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4070 $as_echo "$ac_cv_path_GREP" >&6; }
4071 GREP="$ac_cv_path_GREP"
4072
4073
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4075 $as_echo_n "checking for egrep... " >&6; }
4076 if ${ac_cv_path_EGREP+:} false; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4080 then ac_cv_path_EGREP="$GREP -E"
4081 else
4082 if test -z "$EGREP"; then
4083 ac_path_EGREP_found=false
4084 # Loop through the user's path and test for each of PROGNAME-LIST
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087 do
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
4090 for ac_prog in egrep; do
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4093 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4094 # Check for GNU ac_path_EGREP and select it if it is found.
4095 # Check for GNU $ac_path_EGREP
4096 case `"$ac_path_EGREP" --version 2>&1` in
4097 *GNU*)
4098 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4099 *)
4100 ac_count=0
4101 $as_echo_n 0123456789 >"conftest.in"
4102 while :
4103 do
4104 cat "conftest.in" "conftest.in" >"conftest.tmp"
4105 mv "conftest.tmp" "conftest.in"
4106 cp "conftest.in" "conftest.nl"
4107 $as_echo 'EGREP' >> "conftest.nl"
4108 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4110 as_fn_arith $ac_count + 1 && ac_count=$as_val
4111 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4112 # Best one so far, save it but keep looking for a better one
4113 ac_cv_path_EGREP="$ac_path_EGREP"
4114 ac_path_EGREP_max=$ac_count
4115 fi
4116 # 10*(2^10) chars as input seems more than enough
4117 test $ac_count -gt 10 && break
4118 done
4119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120 esac
4121
4122 $ac_path_EGREP_found && break 3
4123 done
4124 done
4125 done
4126 IFS=$as_save_IFS
4127 if test -z "$ac_cv_path_EGREP"; then
4128 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4129 fi
4130 else
4131 ac_cv_path_EGREP=$EGREP
4132 fi
4133
4134 fi
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4137 $as_echo "$ac_cv_path_EGREP" >&6; }
4138 EGREP="$ac_cv_path_EGREP"
4139
4140
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4142 $as_echo_n "checking for ANSI C header files... " >&6; }
4143 if ${ac_cv_header_stdc+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148 #include <stdlib.h>
4149 #include <stdarg.h>
4150 #include <string.h>
4151 #include <float.h>
4152
4153 int
4154 main ()
4155 {
4156
4157 ;
4158 return 0;
4159 }
4160 _ACEOF
4161 if ac_fn_c_try_compile "$LINENO"; then :
4162 ac_cv_header_stdc=yes
4163 else
4164 ac_cv_header_stdc=no
4165 fi
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167
4168 if test $ac_cv_header_stdc = yes; then
4169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 #include <string.h>
4173
4174 _ACEOF
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176 $EGREP "memchr" >/dev/null 2>&1; then :
4177
4178 else
4179 ac_cv_header_stdc=no
4180 fi
4181 rm -f conftest*
4182
4183 fi
4184
4185 if test $ac_cv_header_stdc = yes; then
4186 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 #include <stdlib.h>
4190
4191 _ACEOF
4192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193 $EGREP "free" >/dev/null 2>&1; then :
4194
4195 else
4196 ac_cv_header_stdc=no
4197 fi
4198 rm -f conftest*
4199
4200 fi
4201
4202 if test $ac_cv_header_stdc = yes; then
4203 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4204 if test "$cross_compiling" = yes; then :
4205 :
4206 else
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #include <ctype.h>
4210 #include <stdlib.h>
4211 #if ((' ' & 0x0FF) == 0x020)
4212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4214 #else
4215 # define ISLOWER(c) \
4216 (('a' <= (c) && (c) <= 'i') \
4217 || ('j' <= (c) && (c) <= 'r') \
4218 || ('s' <= (c) && (c) <= 'z'))
4219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4220 #endif
4221
4222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4223 int
4224 main ()
4225 {
4226 int i;
4227 for (i = 0; i < 256; i++)
4228 if (XOR (islower (i), ISLOWER (i))
4229 || toupper (i) != TOUPPER (i))
4230 return 2;
4231 return 0;
4232 }
4233 _ACEOF
4234 if ac_fn_c_try_run "$LINENO"; then :
4235
4236 else
4237 ac_cv_header_stdc=no
4238 fi
4239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4240 conftest.$ac_objext conftest.beam conftest.$ac_ext
4241 fi
4242
4243 fi
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4246 $as_echo "$ac_cv_header_stdc" >&6; }
4247 if test $ac_cv_header_stdc = yes; then
4248
4249 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4250
4251 fi
4252
4253 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4255 inttypes.h stdint.h unistd.h
4256 do :
4257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4258 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4259 "
4260 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4261 cat >>confdefs.h <<_ACEOF
4262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4263 _ACEOF
4264
4265 fi
4266
4267 done
4268
4269
4270
4271
4272 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4273 if test -n "$ac_tool_prefix"; then
4274 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4275 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 case $PKG_CONFIG in
4282 [\\/]* | ?:[\\/]*)
4283 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4284 ;;
4285 *)
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4288 do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 break 2
4296 fi
4297 done
4298 done
4299 IFS=$as_save_IFS
4300
4301 ;;
4302 esac
4303 fi
4304 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4305 if test -n "$PKG_CONFIG"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4307 $as_echo "$PKG_CONFIG" >&6; }
4308 else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312
4313
4314 fi
4315 if test -z "$ac_cv_path_PKG_CONFIG"; then
4316 ac_pt_PKG_CONFIG=$PKG_CONFIG
4317 # Extract the first word of "pkg-config", so it can be a program name with args.
4318 set dummy pkg-config; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 case $ac_pt_PKG_CONFIG in
4325 [\\/]* | ?:[\\/]*)
4326 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4327 ;;
4328 *)
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4331 do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4339 fi
4340 done
4341 done
4342 IFS=$as_save_IFS
4343
4344 ;;
4345 esac
4346 fi
4347 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4348 if test -n "$ac_pt_PKG_CONFIG"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4350 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4351 else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4354 fi
4355
4356 if test "x$ac_pt_PKG_CONFIG" = x; then
4357 PKG_CONFIG=""
4358 else
4359 case $cross_compiling:$ac_tool_warned in
4360 yes:)
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4363 ac_tool_warned=yes ;;
4364 esac
4365 PKG_CONFIG=$ac_pt_PKG_CONFIG
4366 fi
4367 else
4368 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4369 fi
4370
4371 fi
4372 if test -n "$PKG_CONFIG"; then
4373 _pkg_min_version=0.9.0
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4375 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4376 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4378 $as_echo "yes" >&6; }
4379 else
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4382 PKG_CONFIG=""
4383 fi
4384
4385 fi
4386 # Make sure we can run config.sub.
4387 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4388 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4389
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4391 $as_echo_n "checking build system type... " >&6; }
4392 if ${ac_cv_build+:} false; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 ac_build_alias=$build_alias
4396 test "x$ac_build_alias" = x &&
4397 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4398 test "x$ac_build_alias" = x &&
4399 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4400 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4401 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4402
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4405 $as_echo "$ac_cv_build" >&6; }
4406 case $ac_cv_build in
4407 *-*-*) ;;
4408 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4409 esac
4410 build=$ac_cv_build
4411 ac_save_IFS=$IFS; IFS='-'
4412 set x $ac_cv_build
4413 shift
4414 build_cpu=$1
4415 build_vendor=$2
4416 shift; shift
4417 # Remember, the first character of IFS is used to create $*,
4418 # except with old shells:
4419 build_os=$*
4420 IFS=$ac_save_IFS
4421 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4422
4423
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4425 $as_echo_n "checking host system type... " >&6; }
4426 if ${ac_cv_host+:} false; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 if test "x$host_alias" = x; then
4430 ac_cv_host=$ac_cv_build
4431 else
4432 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4433 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4434 fi
4435
4436 fi
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4438 $as_echo "$ac_cv_host" >&6; }
4439 case $ac_cv_host in
4440 *-*-*) ;;
4441 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4442 esac
4443 host=$ac_cv_host
4444 ac_save_IFS=$IFS; IFS='-'
4445 set x $ac_cv_host
4446 shift
4447 host_cpu=$1
4448 host_vendor=$2
4449 shift; shift
4450 # Remember, the first character of IFS is used to create $*,
4451 # except with old shells:
4452 host_os=$*
4453 IFS=$ac_save_IFS
4454 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4455
4456
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4458 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4459 if ${ac_cv_path_SED+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4463 for ac_i in 1 2 3 4 5 6 7; do
4464 ac_script="$ac_script$as_nl$ac_script"
4465 done
4466 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4467 { ac_script=; unset ac_script;}
4468 if test -z "$SED"; then
4469 ac_path_SED_found=false
4470 # Loop through the user's path and test for each of PROGNAME-LIST
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_prog in sed gsed; do
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4479 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4480 # Check for GNU ac_path_SED and select it if it is found.
4481 # Check for GNU $ac_path_SED
4482 case `"$ac_path_SED" --version 2>&1` in
4483 *GNU*)
4484 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4485 *)
4486 ac_count=0
4487 $as_echo_n 0123456789 >"conftest.in"
4488 while :
4489 do
4490 cat "conftest.in" "conftest.in" >"conftest.tmp"
4491 mv "conftest.tmp" "conftest.in"
4492 cp "conftest.in" "conftest.nl"
4493 $as_echo '' >> "conftest.nl"
4494 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4496 as_fn_arith $ac_count + 1 && ac_count=$as_val
4497 if test $ac_count -gt ${ac_path_SED_max-0}; then
4498 # Best one so far, save it but keep looking for a better one
4499 ac_cv_path_SED="$ac_path_SED"
4500 ac_path_SED_max=$ac_count
4501 fi
4502 # 10*(2^10) chars as input seems more than enough
4503 test $ac_count -gt 10 && break
4504 done
4505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4506 esac
4507
4508 $ac_path_SED_found && break 3
4509 done
4510 done
4511 done
4512 IFS=$as_save_IFS
4513 if test -z "$ac_cv_path_SED"; then
4514 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4515 fi
4516 else
4517 ac_cv_path_SED=$SED
4518 fi
4519
4520 fi
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4522 $as_echo "$ac_cv_path_SED" >&6; }
4523 SED="$ac_cv_path_SED"
4524 rm -f conftest.sed
4525
4526
4527
4528
4529
4530 if test "x$GCC" = xyes ; then
4531 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4532 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4533 -Wbad-function-cast -Wformat=2"
4534 case `$CC -dumpversion` in
4535 3.4.* | 4.*)
4536 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4537 ;;
4538 esac
4539 else
4540 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4541 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4542 SUNCC="yes"
4543 else
4544 SUNCC="no"
4545 fi
4546
4547 if test "x$SUNCC" = "xyes"; then
4548 CWARNFLAGS="-v"
4549 fi
4550 fi
4551
4552
4553
4554 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4555
4556
4557
4558 # Check whether --enable-strict-compilation was given.
4559 if test "${enable_strict_compilation+set}" = set; then :
4560 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4561 else
4562 STRICT_COMPILE=no
4563 fi
4564
4565 if test "x$STRICT_COMPILE" = "xyes"; then
4566 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4567 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4568 SUNCC="yes"
4569 else
4570 SUNCC="no"
4571 fi
4572
4573 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4574 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4575 INTELCC="yes"
4576 else
4577 INTELCC="no"
4578 fi
4579
4580 if test "x$GCC" = xyes ; then
4581 STRICT_CFLAGS="-pedantic -Werror"
4582 elif test "x$SUNCC" = "xyes"; then
4583 STRICT_CFLAGS="-errwarn"
4584 elif test "x$INTELCC" = "xyes"; then
4585 STRICT_CFLAGS="-Werror"
4586 fi
4587 fi
4588 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4589
4590
4591
4592
4593 cat >>confdefs.h <<_ACEOF
4594 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4595 _ACEOF
4596
4597 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4598 if test "x$PVM" = "x"; then
4599 PVM="0"
4600 fi
4601
4602 cat >>confdefs.h <<_ACEOF
4603 #define PACKAGE_VERSION_MINOR $PVM
4604 _ACEOF
4605
4606 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4607 if test "x$PVP" = "x"; then
4608 PVP="0"
4609 fi
4610
4611 cat >>confdefs.h <<_ACEOF
4612 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4613 _ACEOF
4614
4615
4616
4617 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4618 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4619 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4620 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4621
4622
4623
4624
4625 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4626 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4627 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4628 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4629 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4630
4631
4632
4633
4634
4635
4636 if test x$APP_MAN_SUFFIX = x ; then
4637 APP_MAN_SUFFIX=1
4638 fi
4639 if test x$APP_MAN_DIR = x ; then
4640 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4641 fi
4642
4643 if test x$LIB_MAN_SUFFIX = x ; then
4644 LIB_MAN_SUFFIX=3
4645 fi
4646 if test x$LIB_MAN_DIR = x ; then
4647 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4648 fi
4649
4650 if test x$FILE_MAN_SUFFIX = x ; then
4651 case $host_os in
4652 solaris*) FILE_MAN_SUFFIX=4 ;;
4653 *) FILE_MAN_SUFFIX=5 ;;
4654 esac
4655 fi
4656 if test x$FILE_MAN_DIR = x ; then
4657 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4658 fi
4659
4660 if test x$MISC_MAN_SUFFIX = x ; then
4661 case $host_os in
4662 solaris*) MISC_MAN_SUFFIX=5 ;;
4663 *) MISC_MAN_SUFFIX=7 ;;
4664 esac
4665 fi
4666 if test x$MISC_MAN_DIR = x ; then
4667 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4668 fi
4669
4670 if test x$DRIVER_MAN_SUFFIX = x ; then
4671 case $host_os in
4672 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4673 *) DRIVER_MAN_SUFFIX=4 ;;
4674 esac
4675 fi
4676 if test x$DRIVER_MAN_DIR = x ; then
4677 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4678 fi
4679
4680 if test x$ADMIN_MAN_SUFFIX = x ; then
4681 case $host_os in
4682 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4683 *) ADMIN_MAN_SUFFIX=8 ;;
4684 esac
4685 fi
4686 if test x$ADMIN_MAN_DIR = x ; then
4687 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4688 fi
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704 XORG_MAN_PAGE="X Version 11"
4705
4706 MAN_SUBSTS="\
4707 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4708 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4709 -e 's|__xservername__|Xorg|g' \
4710 -e 's|__xconfigfile__|xorg.conf|g' \
4711 -e 's|__projectroot__|\$(prefix)|g' \
4712 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4713 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4714 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4715 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4716 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4717 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4718 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4719
4720
4721
4722 # Check whether --enable-silent-rules was given.
4723 if test "${enable_silent_rules+set}" = set; then :
4724 enableval=$enable_silent_rules;
4725 fi
4726
4727 case $enable_silent_rules in
4728 yes) AM_DEFAULT_VERBOSITY=0;;
4729 no) AM_DEFAULT_VERBOSITY=1;;
4730 *) AM_DEFAULT_VERBOSITY=0;;
4731 esac
4732 AM_BACKSLASH='\'
4733
4734
4735
4736
4737 pkg_failed=no
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RGB" >&5
4739 $as_echo_n "checking for RGB... " >&6; }
4740
4741 if test -n "$RGB_CFLAGS"; then
4742 pkg_cv_RGB_CFLAGS="$RGB_CFLAGS"
4743 elif test -n "$PKG_CONFIG"; then
4744 if test -n "$PKG_CONFIG" && \
4745 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
4746 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
4747 ac_status=$?
4748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749 test $ac_status = 0; }; then
4750 pkg_cv_RGB_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
4751 else
4752 pkg_failed=yes
4753 fi
4754 else
4755 pkg_failed=untried
4756 fi
4757 if test -n "$RGB_LIBS"; then
4758 pkg_cv_RGB_LIBS="$RGB_LIBS"
4759 elif test -n "$PKG_CONFIG"; then
4760 if test -n "$PKG_CONFIG" && \
4761 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
4762 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
4763 ac_status=$?
4764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4765 test $ac_status = 0; }; then
4766 pkg_cv_RGB_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
4767 else
4768 pkg_failed=yes
4769 fi
4770 else
4771 pkg_failed=untried
4772 fi
4773
4774
4775
4776 if test $pkg_failed = yes; then
4777
4778 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4779 _pkg_short_errors_supported=yes
4780 else
4781 _pkg_short_errors_supported=no
4782 fi
4783 if test $_pkg_short_errors_supported = yes; then
4784 RGB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
4785 else
4786 RGB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
4787 fi
4788 # Put the nasty error message in config.log where it belongs
4789 echo "$RGB_PKG_ERRORS" >&5
4790
4791 as_fn_error $? "Package requirements (xproto) were not met:
4792
4793 $RGB_PKG_ERRORS
4794
4795 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4796 installed software in a non-standard prefix.
4797
4798 Alternatively, you may set the environment variables RGB_CFLAGS
4799 and RGB_LIBS to avoid the need to call pkg-config.
4800 See the pkg-config man page for more details.
4801 " "$LINENO" 5
4802 elif test $pkg_failed = untried; then
4803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4805 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4806 is in your PATH or set the PKG_CONFIG environment variable to the full
4807 path to pkg-config.
4808
4809 Alternatively, you may set the environment variables RGB_CFLAGS
4810 and RGB_LIBS to avoid the need to call pkg-config.
4811 See the pkg-config man page for more details.
4812
4813 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4814 See \`config.log' for more details" "$LINENO" 5; }
4815 else
4816 RGB_CFLAGS=$pkg_cv_RGB_CFLAGS
4817 RGB_LIBS=$pkg_cv_RGB_LIBS
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4819 $as_echo "yes" >&6; }
4820 :
4821 fi
4822
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rgb database location" >&5
4824 $as_echo_n "checking for rgb database location... " >&6; }
4825
4826 # Check whether --with-rgb-db-dir was given.
4827 if test "${with_rgb_db_dir+set}" = set; then :
4828 withval=$with_rgb_db_dir; db_path=$withval
4829 else
4830 db_path=${datadir}/X11/rgb
4831 fi
4832
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_path" >&5
4834 $as_echo "$db_path" >&6; }
4835 db_file=`basename $db_path`
4836 db_dir=`dirname $db_path`
4837
4838
4839
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rgb database format" >&5
4841 $as_echo_n "checking for rgb database format... " >&6; }
4842
4843 # Check whether --with-rgb-db-type was given.
4844 if test "${with_rgb_db_type+set}" = set; then :
4845 withval=$with_rgb_db_type; db_type=$withval
4846 else
4847 db_type="text"
4848 fi
4849
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_type" >&5
4851 $as_echo "$db_type" >&6; }
4852
4853 RGB_DB_TYPE=$db_type
4854
4855 case $db_type in
4856 text)
4857 RGB_DB_FILES=""
4858
4859 $as_echo "#define USE_RGB_TXT 1" >>confdefs.h
4860
4861 ;;
4862 dbm)
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbminit" >&5
4864 $as_echo_n "checking for library containing dbminit... " >&6; }
4865 if ${ac_cv_search_dbminit+:} false; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 ac_func_search_save_LIBS=$LIBS
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4871
4872 /* Override any GCC internal prototype to avoid an error.
4873 Use char because int might match the return type of a GCC
4874 builtin and then its argument prototype would still apply. */
4875 #ifdef __cplusplus
4876 extern "C"
4877 #endif
4878 char dbminit ();
4879 int
4880 main ()
4881 {
4882 return dbminit ();
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 for ac_lib in '' db dbm nsl; do
4888 if test -z "$ac_lib"; then
4889 ac_res="none required"
4890 else
4891 ac_res=-l$ac_lib
4892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4893 fi
4894 if ac_fn_c_try_link "$LINENO"; then :
4895 ac_cv_search_dbminit=$ac_res
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext \
4898 conftest$ac_exeext
4899 if ${ac_cv_search_dbminit+:} false; then :
4900 break
4901 fi
4902 done
4903 if ${ac_cv_search_dbminit+:} false; then :
4904
4905 else
4906 ac_cv_search_dbminit=no
4907 fi
4908 rm conftest.$ac_ext
4909 LIBS=$ac_func_search_save_LIBS
4910 fi
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbminit" >&5
4912 $as_echo "$ac_cv_search_dbminit" >&6; }
4913 ac_res=$ac_cv_search_dbminit
4914 if test "$ac_res" != no; then :
4915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4916
4917 else
4918 as_fn_error $? "dbm requested but dbminit() not found in any libraries" "$LINENO" 5
4919 fi
4920
4921 ac_fn_c_check_header_mongrel "$LINENO" "dbm.h" "ac_cv_header_dbm_h" "$ac_includes_default"
4922 if test "x$ac_cv_header_dbm_h" = xyes; then :
4923 DBM_HEADER='<dbm.h>'
4924 else
4925 ac_fn_c_check_header_mongrel "$LINENO" "rpcsvc/dbm.h" "ac_cv_header_rpcsvc_dbm_h" "$ac_includes_default"
4926 if test "x$ac_cv_header_rpcsvc_dbm_h" = xyes; then :
4927 DBM_HEADER='<rpcsvc/dbm.h>'
4928 else
4929 as_fn_error $? "dbm requested but dbm.h not found" "$LINENO" 5
4930 fi
4931
4932
4933 fi
4934
4935
4936
4937 pkg_failed=no
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
4939 $as_echo_n "checking for XORG... " >&6; }
4940
4941 if test -n "$XORG_CFLAGS"; then
4942 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
4943 elif test -n "$PKG_CONFIG"; then
4944 if test -n "$PKG_CONFIG" && \
4945 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
4946 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
4947 ac_status=$?
4948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4949 test $ac_status = 0; }; then
4950 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null`
4951 else
4952 pkg_failed=yes
4953 fi
4954 else
4955 pkg_failed=untried
4956 fi
4957 if test -n "$XORG_LIBS"; then
4958 pkg_cv_XORG_LIBS="$XORG_LIBS"
4959 elif test -n "$PKG_CONFIG"; then
4960 if test -n "$PKG_CONFIG" && \
4961 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
4962 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
4963 ac_status=$?
4964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4965 test $ac_status = 0; }; then
4966 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null`
4967 else
4968 pkg_failed=yes
4969 fi
4970 else
4971 pkg_failed=untried
4972 fi
4973
4974
4975
4976 if test $pkg_failed = yes; then
4977
4978 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4979 _pkg_short_errors_supported=yes
4980 else
4981 _pkg_short_errors_supported=no
4982 fi
4983 if test $_pkg_short_errors_supported = yes; then
4984 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server" 2>&1`
4985 else
4986 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server" 2>&1`
4987 fi
4988 # Put the nasty error message in config.log where it belongs
4989 echo "$XORG_PKG_ERRORS" >&5
4990
4991 as_fn_error $? "Package requirements (xorg-server) were not met:
4992
4993 $XORG_PKG_ERRORS
4994
4995 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4996 installed software in a non-standard prefix.
4997
4998 Alternatively, you may set the environment variables XORG_CFLAGS
4999 and XORG_LIBS to avoid the need to call pkg-config.
5000 See the pkg-config man page for more details.
5001 " "$LINENO" 5
5002 elif test $pkg_failed = untried; then
5003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5005 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5006 is in your PATH or set the PKG_CONFIG environment variable to the full
5007 path to pkg-config.
5008
5009 Alternatively, you may set the environment variables XORG_CFLAGS
5010 and XORG_LIBS to avoid the need to call pkg-config.
5011 See the pkg-config man page for more details.
5012
5013 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5014 See \`config.log' for more details" "$LINENO" 5; }
5015 else
5016 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
5017 XORG_LIBS=$pkg_cv_XORG_LIBS
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5019 $as_echo "yes" >&6; }
5020 :
5021 fi
5022 RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS"
5023 RGB_DB_FILES='$(db_file).dir $(db_file).pag'
5024 ;;
5025 ndbm)
5026 # Find a dbm or ndbm implementation
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
5028 $as_echo_n "checking for library containing dbm_open... " >&6; }
5029 if ${ac_cv_search_dbm_open+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 ac_func_search_save_LIBS=$LIBS
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035
5036 /* Override any GCC internal prototype to avoid an error.
5037 Use char because int might match the return type of a GCC
5038 builtin and then its argument prototype would still apply. */
5039 #ifdef __cplusplus
5040 extern "C"
5041 #endif
5042 char dbm_open ();
5043 int
5044 main ()
5045 {
5046 return dbm_open ();
5047 ;
5048 return 0;
5049 }
5050 _ACEOF
5051 for ac_lib in '' db ndbm dbm; do
5052 if test -z "$ac_lib"; then
5053 ac_res="none required"
5054 else
5055 ac_res=-l$ac_lib
5056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5057 fi
5058 if ac_fn_c_try_link "$LINENO"; then :
5059 ac_cv_search_dbm_open=$ac_res
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext \
5062 conftest$ac_exeext
5063 if ${ac_cv_search_dbm_open+:} false; then :
5064 break
5065 fi
5066 done
5067 if ${ac_cv_search_dbm_open+:} false; then :
5068
5069 else
5070 ac_cv_search_dbm_open=no
5071 fi
5072 rm conftest.$ac_ext
5073 LIBS=$ac_func_search_save_LIBS
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
5076 $as_echo "$ac_cv_search_dbm_open" >&6; }
5077 ac_res=$ac_cv_search_dbm_open
5078 if test "$ac_res" != no; then :
5079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5080
5081 $as_echo "#define NDBM 1" >>confdefs.h
5082
5083 else
5084 as_fn_error $? "ndbm requested but dbm_open() not found in any libraries" "$LINENO" 5
5085 fi
5086
5087 DBM_HEADER='<ndbm.h>'
5088
5089 pkg_failed=no
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
5091 $as_echo_n "checking for XORG... " >&6; }
5092
5093 if test -n "$XORG_CFLAGS"; then
5094 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
5095 elif test -n "$PKG_CONFIG"; then
5096 if test -n "$PKG_CONFIG" && \
5097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
5098 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
5099 ac_status=$?
5100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5101 test $ac_status = 0; }; then
5102 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null`
5103 else
5104 pkg_failed=yes
5105 fi
5106 else
5107 pkg_failed=untried
5108 fi
5109 if test -n "$XORG_LIBS"; then
5110 pkg_cv_XORG_LIBS="$XORG_LIBS"
5111 elif test -n "$PKG_CONFIG"; then
5112 if test -n "$PKG_CONFIG" && \
5113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
5114 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
5115 ac_status=$?
5116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5117 test $ac_status = 0; }; then
5118 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null`
5119 else
5120 pkg_failed=yes
5121 fi
5122 else
5123 pkg_failed=untried
5124 fi
5125
5126
5127
5128 if test $pkg_failed = yes; then
5129
5130 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5131 _pkg_short_errors_supported=yes
5132 else
5133 _pkg_short_errors_supported=no
5134 fi
5135 if test $_pkg_short_errors_supported = yes; then
5136 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server" 2>&1`
5137 else
5138 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server" 2>&1`
5139 fi
5140 # Put the nasty error message in config.log where it belongs
5141 echo "$XORG_PKG_ERRORS" >&5
5142
5143 as_fn_error $? "Package requirements (xorg-server) were not met:
5144
5145 $XORG_PKG_ERRORS
5146
5147 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5148 installed software in a non-standard prefix.
5149
5150 Alternatively, you may set the environment variables XORG_CFLAGS
5151 and XORG_LIBS to avoid the need to call pkg-config.
5152 See the pkg-config man page for more details.
5153 " "$LINENO" 5
5154 elif test $pkg_failed = untried; then
5155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5157 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5158 is in your PATH or set the PKG_CONFIG environment variable to the full
5159 path to pkg-config.
5160
5161 Alternatively, you may set the environment variables XORG_CFLAGS
5162 and XORG_LIBS to avoid the need to call pkg-config.
5163 See the pkg-config man page for more details.
5164
5165 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5166 See \`config.log' for more details" "$LINENO" 5; }
5167 else
5168 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
5169 XORG_LIBS=$pkg_cv_XORG_LIBS
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5171 $as_echo "yes" >&6; }
5172 :
5173 fi
5174 RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS"
5175 RGB_DB_FILES='$(db_file).dir $(db_file).pag'
5176 ;;
5177 esac
5178 if test x$DBM_HEADER != x ; then
5179
5180 cat >>confdefs.h <<_ACEOF
5181 #define DBM_HEADER $DBM_HEADER
5182 _ACEOF
5183
5184 fi
5185
5186
5187 if test x$db_type != xtext; then
5188 RGB_DB_TRUE=
5189 RGB_DB_FALSE='#'
5190 else
5191 RGB_DB_TRUE='#'
5192 RGB_DB_FALSE=
5193 fi
5194
5195
5196
5197 ac_config_files="$ac_config_files Makefile man/Makefile"
5198
5199
5200 cat >confcache <<\_ACEOF
5201 # This file is a shell script that caches the results of configure
5202 # tests run on this system so they can be shared between configure
5203 # scripts and configure runs, see configure's option --config-cache.
5204 # It is not useful on other systems. If it contains results you don't
5205 # want to keep, you may remove or edit it.
5206 #
5207 # config.status only pays attention to the cache file if you give it
5208 # the --recheck option to rerun configure.
5209 #
5210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5212 # following values.
5213
5214 _ACEOF
5215
5216 # The following way of writing the cache mishandles newlines in values,
5217 # but we know of no workaround that is simple, portable, and efficient.
5218 # So, we kill variables containing newlines.
5219 # Ultrix sh set writes to stderr and can't be redirected directly,
5220 # and sets the high bit in the cache file unless we assign to the vars.
5221 (
5222 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5223 eval ac_val=\$$ac_var
5224 case $ac_val in #(
5225 *${as_nl}*)
5226 case $ac_var in #(
5227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5229 esac
5230 case $ac_var in #(
5231 _ | IFS | as_nl) ;; #(
5232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5233 *) { eval $ac_var=; unset $ac_var;} ;;
5234 esac ;;
5235 esac
5236 done
5237
5238 (set) 2>&1 |
5239 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5240 *${as_nl}ac_space=\ *)
5241 # `set' does not quote correctly, so add quotes: double-quote
5242 # substitution turns \\\\ into \\, and sed turns \\ into \.
5243 sed -n \
5244 "s/'/'\\\\''/g;
5245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5246 ;; #(
5247 *)
5248 # `set' quotes correctly as required by POSIX, so do not add quotes.
5249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5250 ;;
5251 esac |
5252 sort
5253 ) |
5254 sed '
5255 /^ac_cv_env_/b end
5256 t clear
5257 :clear
5258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5259 t end
5260 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5261 :end' >>confcache
5262 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5263 if test -w "$cache_file"; then
5264 if test "x$cache_file" != "x/dev/null"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5266 $as_echo "$as_me: updating cache $cache_file" >&6;}
5267 if test ! -f "$cache_file" || test -h "$cache_file"; then
5268 cat confcache >"$cache_file"
5269 else
5270 case $cache_file in #(
5271 */* | ?:*)
5272 mv -f confcache "$cache_file"$$ &&
5273 mv -f "$cache_file"$$ "$cache_file" ;; #(
5274 *)
5275 mv -f confcache "$cache_file" ;;
5276 esac
5277 fi
5278 fi
5279 else
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5281 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5282 fi
5283 fi
5284 rm -f confcache
5285
5286 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5287 # Let make expand exec_prefix.
5288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5289
5290 DEFS=-DHAVE_CONFIG_H
5291
5292 ac_libobjs=
5293 ac_ltlibobjs=
5294 U=
5295 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5296 # 1. Remove the extension, and $U if already installed.
5297 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5298 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5299 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5300 # will be set to the directory where LIBOBJS objects are built.
5301 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5302 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5303 done
5304 LIBOBJS=$ac_libobjs
5305
5306 LTLIBOBJS=$ac_ltlibobjs
5307
5308
5309 if test -n "$EXEEXT"; then
5310 am__EXEEXT_TRUE=
5311 am__EXEEXT_FALSE='#'
5312 else
5313 am__EXEEXT_TRUE='#'
5314 am__EXEEXT_FALSE=
5315 fi
5316
5317 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5318 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5320 fi
5321 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5322 as_fn_error $? "conditional \"AMDEP\" was never defined.
5323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5324 fi
5325 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5326 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5328 fi
5329 if test -z "${RGB_DB_TRUE}" && test -z "${RGB_DB_FALSE}"; then
5330 as_fn_error $? "conditional \"RGB_DB\" was never defined.
5331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5332 fi
5333
5334 : "${CONFIG_STATUS=./config.status}"
5335 ac_write_fail=0
5336 ac_clean_files_save=$ac_clean_files
5337 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5339 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5340 as_write_fail=0
5341 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5342 #! $SHELL
5343 # Generated by $as_me.
5344 # Run this file to recreate the current configuration.
5345 # Compiler output produced by configure, useful for debugging
5346 # configure, is in config.log if it exists.
5347
5348 debug=false
5349 ac_cs_recheck=false
5350 ac_cs_silent=false
5351
5352 SHELL=\${CONFIG_SHELL-$SHELL}
5353 export SHELL
5354 _ASEOF
5355 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5356 ## -------------------- ##
5357 ## M4sh Initialization. ##
5358 ## -------------------- ##
5359
5360 # Be more Bourne compatible
5361 DUALCASE=1; export DUALCASE # for MKS sh
5362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5363 emulate sh
5364 NULLCMD=:
5365 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5366 # is contrary to our usage. Disable this feature.
5367 alias -g '${1+"$@"}'='"$@"'
5368 setopt NO_GLOB_SUBST
5369 else
5370 case `(set -o) 2>/dev/null` in #(
5371 *posix*) :
5372 set -o posix ;; #(
5373 *) :
5374 ;;
5375 esac
5376 fi
5377
5378
5379 as_nl='
5380 '
5381 export as_nl
5382 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5383 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5386 # Prefer a ksh shell builtin over an external printf program on Solaris,
5387 # but without wasting forks for bash or zsh.
5388 if test -z "$BASH_VERSION$ZSH_VERSION" \
5389 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5390 as_echo='print -r --'
5391 as_echo_n='print -rn --'
5392 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5393 as_echo='printf %s\n'
5394 as_echo_n='printf %s'
5395 else
5396 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5397 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5398 as_echo_n='/usr/ucb/echo -n'
5399 else
5400 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5401 as_echo_n_body='eval
5402 arg=$1;
5403 case $arg in #(
5404 *"$as_nl"*)
5405 expr "X$arg" : "X\\(.*\\)$as_nl";
5406 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5407 esac;
5408 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5409 '
5410 export as_echo_n_body
5411 as_echo_n='sh -c $as_echo_n_body as_echo'
5412 fi
5413 export as_echo_body
5414 as_echo='sh -c $as_echo_body as_echo'
5415 fi
5416
5417 # The user is always right.
5418 if test "${PATH_SEPARATOR+set}" != set; then
5419 PATH_SEPARATOR=:
5420 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5421 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5422 PATH_SEPARATOR=';'
5423 }
5424 fi
5425
5426
5427 # IFS
5428 # We need space, tab and new line, in precisely that order. Quoting is
5429 # there to prevent editors from complaining about space-tab.
5430 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5431 # splitting by setting IFS to empty value.)
5432 IFS=" "" $as_nl"
5433
5434 # Find who we are. Look in the path if we contain no directory separator.
5435 as_myself=
5436 case $0 in #((
5437 *[\\/]* ) as_myself=$0 ;;
5438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5440 do
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
5443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5444 done
5445 IFS=$as_save_IFS
5446
5447 ;;
5448 esac
5449 # We did not find ourselves, most probably we were run as `sh COMMAND'
5450 # in which case we are not to be found in the path.
5451 if test "x$as_myself" = x; then
5452 as_myself=$0
5453 fi
5454 if test ! -f "$as_myself"; then
5455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5456 exit 1
5457 fi
5458
5459 # Unset variables that we do not need and which cause bugs (e.g. in
5460 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5461 # suppresses any "Segmentation fault" message there. '((' could
5462 # trigger a bug in pdksh 5.2.14.
5463 for as_var in BASH_ENV ENV MAIL MAILPATH
5464 do eval test x\${$as_var+set} = xset \
5465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5466 done
5467 PS1='$ '
5468 PS2='> '
5469 PS4='+ '
5470
5471 # NLS nuisances.
5472 LC_ALL=C
5473 export LC_ALL
5474 LANGUAGE=C
5475 export LANGUAGE
5476
5477 # CDPATH.
5478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5479
5480
5481 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5482 # ----------------------------------------
5483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5485 # script with STATUS, using 1 if that was 0.
5486 as_fn_error ()
5487 {
5488 as_status=$1; test $as_status -eq 0 && as_status=1
5489 if test "$4"; then
5490 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5492 fi
5493 $as_echo "$as_me: error: $2" >&2
5494 as_fn_exit $as_status
5495 } # as_fn_error
5496
5497
5498 # as_fn_set_status STATUS
5499 # -----------------------
5500 # Set $? to STATUS, without forking.
5501 as_fn_set_status ()
5502 {
5503 return $1
5504 } # as_fn_set_status
5505
5506 # as_fn_exit STATUS
5507 # -----------------
5508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5509 as_fn_exit ()
5510 {
5511 set +e
5512 as_fn_set_status $1
5513 exit $1
5514 } # as_fn_exit
5515
5516 # as_fn_unset VAR
5517 # ---------------
5518 # Portably unset VAR.
5519 as_fn_unset ()
5520 {
5521 { eval $1=; unset $1;}
5522 }
5523 as_unset=as_fn_unset
5524 # as_fn_append VAR VALUE
5525 # ----------------------
5526 # Append the text in VALUE to the end of the definition contained in VAR. Take
5527 # advantage of any shell optimizations that allow amortized linear growth over
5528 # repeated appends, instead of the typical quadratic growth present in naive
5529 # implementations.
5530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5531 eval 'as_fn_append ()
5532 {
5533 eval $1+=\$2
5534 }'
5535 else
5536 as_fn_append ()
5537 {
5538 eval $1=\$$1\$2
5539 }
5540 fi # as_fn_append
5541
5542 # as_fn_arith ARG...
5543 # ------------------
5544 # Perform arithmetic evaluation on the ARGs, and store the result in the
5545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5546 # must be portable across $(()) and expr.
5547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5548 eval 'as_fn_arith ()
5549 {
5550 as_val=$(( $* ))
5551 }'
5552 else
5553 as_fn_arith ()
5554 {
5555 as_val=`expr "$@" || test $? -eq 1`
5556 }
5557 fi # as_fn_arith
5558
5559
5560 if expr a : '\(a\)' >/dev/null 2>&1 &&
5561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5562 as_expr=expr
5563 else
5564 as_expr=false
5565 fi
5566
5567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5568 as_basename=basename
5569 else
5570 as_basename=false
5571 fi
5572
5573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5574 as_dirname=dirname
5575 else
5576 as_dirname=false
5577 fi
5578
5579 as_me=`$as_basename -- "$0" ||
5580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5581 X"$0" : 'X\(//\)$' \| \
5582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5583 $as_echo X/"$0" |
5584 sed '/^.*\/\([^/][^/]*\)\/*$/{
5585 s//\1/
5586 q
5587 }
5588 /^X\/\(\/\/\)$/{
5589 s//\1/
5590 q
5591 }
5592 /^X\/\(\/\).*/{
5593 s//\1/
5594 q
5595 }
5596 s/.*/./; q'`
5597
5598 # Avoid depending upon Character Ranges.
5599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5602 as_cr_digits='0123456789'
5603 as_cr_alnum=$as_cr_Letters$as_cr_digits
5604
5605 ECHO_C= ECHO_N= ECHO_T=
5606 case `echo -n x` in #(((((
5607 -n*)
5608 case `echo 'xy\c'` in
5609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5610 xy) ECHO_C='\c';;
5611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5612 ECHO_T=' ';;
5613 esac;;
5614 *)
5615 ECHO_N='-n';;
5616 esac
5617
5618 rm -f conf$$ conf$$.exe conf$$.file
5619 if test -d conf$$.dir; then
5620 rm -f conf$$.dir/conf$$.file
5621 else
5622 rm -f conf$$.dir
5623 mkdir conf$$.dir 2>/dev/null
5624 fi
5625 if (echo >conf$$.file) 2>/dev/null; then
5626 if ln -s conf$$.file conf$$ 2>/dev/null; then
5627 as_ln_s='ln -s'
5628 # ... but there are two gotchas:
5629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5631 # In both cases, we have to default to `cp -p'.
5632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5633 as_ln_s='cp -p'
5634 elif ln conf$$.file conf$$ 2>/dev/null; then
5635 as_ln_s=ln
5636 else
5637 as_ln_s='cp -p'
5638 fi
5639 else
5640 as_ln_s='cp -p'
5641 fi
5642 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5643 rmdir conf$$.dir 2>/dev/null
5644
5645
5646 # as_fn_mkdir_p
5647 # -------------
5648 # Create "$as_dir" as a directory, including parents if necessary.
5649 as_fn_mkdir_p ()
5650 {
5651
5652 case $as_dir in #(
5653 -*) as_dir=./$as_dir;;
5654 esac
5655 test -d "$as_dir" || eval $as_mkdir_p || {
5656 as_dirs=
5657 while :; do
5658 case $as_dir in #(
5659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5660 *) as_qdir=$as_dir;;
5661 esac
5662 as_dirs="'$as_qdir' $as_dirs"
5663 as_dir=`$as_dirname -- "$as_dir" ||
5664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5665 X"$as_dir" : 'X\(//\)[^/]' \| \
5666 X"$as_dir" : 'X\(//\)$' \| \
5667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5668 $as_echo X"$as_dir" |
5669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5670 s//\1/
5671 q
5672 }
5673 /^X\(\/\/\)[^/].*/{
5674 s//\1/
5675 q
5676 }
5677 /^X\(\/\/\)$/{
5678 s//\1/
5679 q
5680 }
5681 /^X\(\/\).*/{
5682 s//\1/
5683 q
5684 }
5685 s/.*/./; q'`
5686 test -d "$as_dir" && break
5687 done
5688 test -z "$as_dirs" || eval "mkdir $as_dirs"
5689 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5690
5691
5692 } # as_fn_mkdir_p
5693 if mkdir -p . 2>/dev/null; then
5694 as_mkdir_p='mkdir -p "$as_dir"'
5695 else
5696 test -d ./-p && rmdir ./-p
5697 as_mkdir_p=false
5698 fi
5699
5700 if test -x / >/dev/null 2>&1; then
5701 as_test_x='test -x'
5702 else
5703 if ls -dL / >/dev/null 2>&1; then
5704 as_ls_L_option=L
5705 else
5706 as_ls_L_option=
5707 fi
5708 as_test_x='
5709 eval sh -c '\''
5710 if test -d "$1"; then
5711 test -d "$1/.";
5712 else
5713 case $1 in #(
5714 -*)set "./$1";;
5715 esac;
5716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5717 ???[sx]*):;;*)false;;esac;fi
5718 '\'' sh
5719 '
5720 fi
5721 as_executable_p=$as_test_x
5722
5723 # Sed expression to map a string onto a valid CPP name.
5724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5725
5726 # Sed expression to map a string onto a valid variable name.
5727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5728
5729
5730 exec 6>&1
5731 ## ----------------------------------- ##
5732 ## Main body of $CONFIG_STATUS script. ##
5733 ## ----------------------------------- ##
5734 _ASEOF
5735 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5736
5737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5738 # Save the log message, to keep $0 and so on meaningful, and to
5739 # report actual input values of CONFIG_FILES etc. instead of their
5740 # values after options handling.
5741 ac_log="
5742 This file was extended by rgb $as_me 1.0.4, which was
5743 generated by GNU Autoconf 2.68. Invocation command line was
5744
5745 CONFIG_FILES = $CONFIG_FILES
5746 CONFIG_HEADERS = $CONFIG_HEADERS
5747 CONFIG_LINKS = $CONFIG_LINKS
5748 CONFIG_COMMANDS = $CONFIG_COMMANDS
5749 $ $0 $@
5750
5751 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5752 "
5753
5754 _ACEOF
5755
5756 case $ac_config_files in *"
5757 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5758 esac
5759
5760 case $ac_config_headers in *"
5761 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5762 esac
5763
5764
5765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5766 # Files that config.status was made for.
5767 config_files="$ac_config_files"
5768 config_headers="$ac_config_headers"
5769 config_commands="$ac_config_commands"
5770
5771 _ACEOF
5772
5773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5774 ac_cs_usage="\
5775 \`$as_me' instantiates files and other configuration actions
5776 from templates according to the current configuration. Unless the files
5777 and actions are specified as TAGs, all are instantiated by default.
5778
5779 Usage: $0 [OPTION]... [TAG]...
5780
5781 -h, --help print this help, then exit
5782 -V, --version print version number and configuration settings, then exit
5783 --config print configuration, then exit
5784 -q, --quiet, --silent
5785 do not print progress messages
5786 -d, --debug don't remove temporary files
5787 --recheck update $as_me by reconfiguring in the same conditions
5788 --file=FILE[:TEMPLATE]
5789 instantiate the configuration file FILE
5790 --header=FILE[:TEMPLATE]
5791 instantiate the configuration header FILE
5792
5793 Configuration files:
5794 $config_files
5795
5796 Configuration headers:
5797 $config_headers
5798
5799 Configuration commands:
5800 $config_commands
5801
5802 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5803
5804 _ACEOF
5805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5806 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5807 ac_cs_version="\\
5808 rgb config.status 1.0.4
5809 configured by $0, generated by GNU Autoconf 2.68,
5810 with options \\"\$ac_cs_config\\"
5811
5812 Copyright (C) 2010 Free Software Foundation, Inc.
5813 This config.status script is free software; the Free Software Foundation
5814 gives unlimited permission to copy, distribute and modify it."
5815
5816 ac_pwd='$ac_pwd'
5817 srcdir='$srcdir'
5818 INSTALL='$INSTALL'
5819 MKDIR_P='$MKDIR_P'
5820 AWK='$AWK'
5821 test -n "\$AWK" || AWK=awk
5822 _ACEOF
5823
5824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5825 # The default lists apply if the user does not specify any file.
5826 ac_need_defaults=:
5827 while test $# != 0
5828 do
5829 case $1 in
5830 --*=?*)
5831 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5832 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5833 ac_shift=:
5834 ;;
5835 --*=)
5836 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5837 ac_optarg=
5838 ac_shift=:
5839 ;;
5840 *)
5841 ac_option=$1
5842 ac_optarg=$2
5843 ac_shift=shift
5844 ;;
5845 esac
5846
5847 case $ac_option in
5848 # Handling of the options.
5849 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5850 ac_cs_recheck=: ;;
5851 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5852 $as_echo "$ac_cs_version"; exit ;;
5853 --config | --confi | --conf | --con | --co | --c )
5854 $as_echo "$ac_cs_config"; exit ;;
5855 --debug | --debu | --deb | --de | --d | -d )
5856 debug=: ;;
5857 --file | --fil | --fi | --f )
5858 $ac_shift
5859 case $ac_optarg in
5860 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5861 '') as_fn_error $? "missing file argument" ;;
5862 esac
5863 as_fn_append CONFIG_FILES " '$ac_optarg'"
5864 ac_need_defaults=false;;
5865 --header | --heade | --head | --hea )
5866 $ac_shift
5867 case $ac_optarg in
5868 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5869 esac
5870 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5871 ac_need_defaults=false;;
5872 --he | --h)
5873 # Conflict between --help and --header
5874 as_fn_error $? "ambiguous option: \`$1'
5875 Try \`$0 --help' for more information.";;
5876 --help | --hel | -h )
5877 $as_echo "$ac_cs_usage"; exit ;;
5878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5879 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5880 ac_cs_silent=: ;;
5881
5882 # This is an error.
5883 -*) as_fn_error $? "unrecognized option: \`$1'
5884 Try \`$0 --help' for more information." ;;
5885
5886 *) as_fn_append ac_config_targets " $1"
5887 ac_need_defaults=false ;;
5888
5889 esac
5890 shift
5891 done
5892
5893 ac_configure_extra_args=
5894
5895 if $ac_cs_silent; then
5896 exec 6>/dev/null
5897 ac_configure_extra_args="$ac_configure_extra_args --silent"
5898 fi
5899
5900 _ACEOF
5901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5902 if \$ac_cs_recheck; then
5903 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5904 shift
5905 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5906 CONFIG_SHELL='$SHELL'
5907 export CONFIG_SHELL
5908 exec "\$@"
5909 fi
5910
5911 _ACEOF
5912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5913 exec 5>>config.log
5914 {
5915 echo
5916 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5917 ## Running $as_me. ##
5918 _ASBOX
5919 $as_echo "$ac_log"
5920 } >&5
5921
5922 _ACEOF
5923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5924 #
5925 # INIT-COMMANDS
5926 #
5927 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5928
5929 _ACEOF
5930
5931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5932
5933 # Handling of arguments.
5934 for ac_config_target in $ac_config_targets
5935 do
5936 case $ac_config_target in
5937 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5938 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5939 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5940 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
5941
5942 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5943 esac
5944 done
5945
5946
5947 # If the user did not use the arguments to specify the items to instantiate,
5948 # then the envvar interface is used. Set only those that are not.
5949 # We use the long form for the default assignment because of an extremely
5950 # bizarre bug on SunOS 4.1.3.
5951 if $ac_need_defaults; then
5952 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5953 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5954 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5955 fi
5956
5957 # Have a temporary directory for convenience. Make it in the build tree
5958 # simply because there is no reason against having it here, and in addition,
5959 # creating and moving files from /tmp can sometimes cause problems.
5960 # Hook for its removal unless debugging.
5961 # Note that there is a small window in which the directory will not be cleaned:
5962 # after its creation but before its name has been assigned to `$tmp'.
5963 $debug ||
5964 {
5965 tmp= ac_tmp=
5966 trap 'exit_status=$?
5967 : "${ac_tmp:=$tmp}"
5968 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5969 ' 0
5970 trap 'as_fn_exit 1' 1 2 13 15
5971 }
5972 # Create a (secure) tmp directory for tmp files.
5973
5974 {
5975 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5976 test -d "$tmp"
5977 } ||
5978 {
5979 tmp=./conf$$-$RANDOM
5980 (umask 077 && mkdir "$tmp")
5981 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5982 ac_tmp=$tmp
5983
5984 # Set up the scripts for CONFIG_FILES section.
5985 # No need to generate them if there are no CONFIG_FILES.
5986 # This happens for instance with `./config.status config.h'.
5987 if test -n "$CONFIG_FILES"; then
5988
5989
5990 ac_cr=`echo X | tr X '\015'`
5991 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5992 # But we know of no other shell where ac_cr would be empty at this
5993 # point, so we can use a bashism as a fallback.
5994 if test "x$ac_cr" = x; then
5995 eval ac_cr=\$\'\\r\'
5996 fi
5997 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5998 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5999 ac_cs_awk_cr='\\r'
6000 else
6001 ac_cs_awk_cr=$ac_cr
6002 fi
6003
6004 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6005 _ACEOF
6006
6007
6008 {
6009 echo "cat >conf$$subs.awk <<_ACEOF" &&
6010 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6011 echo "_ACEOF"
6012 } >conf$$subs.sh ||
6013 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6014 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6015 ac_delim='%!_!# '
6016 for ac_last_try in false false false false false :; do
6017 . ./conf$$subs.sh ||
6018 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6019
6020 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6021 if test $ac_delim_n = $ac_delim_num; then
6022 break
6023 elif $ac_last_try; then
6024 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6025 else
6026 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6027 fi
6028 done
6029 rm -f conf$$subs.sh
6030
6031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6032 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6033 _ACEOF
6034 sed -n '
6035 h
6036 s/^/S["/; s/!.*/"]=/
6037 p
6038 g
6039 s/^[^!]*!//
6040 :repl
6041 t repl
6042 s/'"$ac_delim"'$//
6043 t delim
6044 :nl
6045 h
6046 s/\(.\{148\}\)..*/\1/
6047 t more1
6048 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6049 p
6050 n
6051 b repl
6052 :more1
6053 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6054 p
6055 g
6056 s/.\{148\}//
6057 t nl
6058 :delim
6059 h
6060 s/\(.\{148\}\)..*/\1/
6061 t more2
6062 s/["\\]/\\&/g; s/^/"/; s/$/"/
6063 p
6064 b
6065 :more2
6066 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6067 p
6068 g
6069 s/.\{148\}//
6070 t delim
6071 ' <conf$$subs.awk | sed '
6072 /^[^""]/{
6073 N
6074 s/\n//
6075 }
6076 ' >>$CONFIG_STATUS || ac_write_fail=1
6077 rm -f conf$$subs.awk
6078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6079 _ACAWK
6080 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6081 for (key in S) S_is_set[key] = 1
6082 FS = ""
6083
6084 }
6085 {
6086 line = $ 0
6087 nfields = split(line, field, "@")
6088 substed = 0
6089 len = length(field[1])
6090 for (i = 2; i < nfields; i++) {
6091 key = field[i]
6092 keylen = length(key)
6093 if (S_is_set[key]) {
6094 value = S[key]
6095 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6096 len += length(value) + length(field[++i])
6097 substed = 1
6098 } else
6099 len += 1 + keylen
6100 }
6101
6102 print line
6103 }
6104
6105 _ACAWK
6106 _ACEOF
6107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6108 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6109 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6110 else
6111 cat
6112 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6113 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6114 _ACEOF
6115
6116 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6117 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6118 # trailing colons and then remove the whole line if VPATH becomes empty
6119 # (actually we leave an empty line to preserve line numbers).
6120 if test "x$srcdir" = x.; then
6121 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6122 h
6123 s///
6124 s/^/:/
6125 s/[ ]*$/:/
6126 s/:\$(srcdir):/:/g
6127 s/:\${srcdir}:/:/g
6128 s/:@srcdir@:/:/g
6129 s/^:*//
6130 s/:*$//
6131 x
6132 s/\(=[ ]*\).*/\1/
6133 G
6134 s/\n//
6135 s/^[^=]*=[ ]*$//
6136 }'
6137 fi
6138
6139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6140 fi # test -n "$CONFIG_FILES"
6141
6142 # Set up the scripts for CONFIG_HEADERS section.
6143 # No need to generate them if there are no CONFIG_HEADERS.
6144 # This happens for instance with `./config.status Makefile'.
6145 if test -n "$CONFIG_HEADERS"; then
6146 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6147 BEGIN {
6148 _ACEOF
6149
6150 # Transform confdefs.h into an awk script `defines.awk', embedded as
6151 # here-document in config.status, that substitutes the proper values into
6152 # config.h.in to produce config.h.
6153
6154 # Create a delimiter string that does not exist in confdefs.h, to ease
6155 # handling of long lines.
6156 ac_delim='%!_!# '
6157 for ac_last_try in false false :; do
6158 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6159 if test -z "$ac_tt"; then
6160 break
6161 elif $ac_last_try; then
6162 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6163 else
6164 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6165 fi
6166 done
6167
6168 # For the awk script, D is an array of macro values keyed by name,
6169 # likewise P contains macro parameters if any. Preserve backslash
6170 # newline sequences.
6171
6172 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6173 sed -n '
6174 s/.\{148\}/&'"$ac_delim"'/g
6175 t rset
6176 :rset
6177 s/^[ ]*#[ ]*define[ ][ ]*/ /
6178 t def
6179 d
6180 :def
6181 s/\\$//
6182 t bsnl
6183 s/["\\]/\\&/g
6184 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6185 D["\1"]=" \3"/p
6186 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6187 d
6188 :bsnl
6189 s/["\\]/\\&/g
6190 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6191 D["\1"]=" \3\\\\\\n"\\/p
6192 t cont
6193 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6194 t cont
6195 d
6196 :cont
6197 n
6198 s/.\{148\}/&'"$ac_delim"'/g
6199 t clear
6200 :clear
6201 s/\\$//
6202 t bsnlc
6203 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6204 d
6205 :bsnlc
6206 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6207 b cont
6208 ' <confdefs.h | sed '
6209 s/'"$ac_delim"'/"\\\
6210 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6211
6212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6213 for (key in D) D_is_set[key] = 1
6214 FS = ""
6215 }
6216 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6217 line = \$ 0
6218 split(line, arg, " ")
6219 if (arg[1] == "#") {
6220 defundef = arg[2]
6221 mac1 = arg[3]
6222 } else {
6223 defundef = substr(arg[1], 2)
6224 mac1 = arg[2]
6225 }
6226 split(mac1, mac2, "(") #)
6227 macro = mac2[1]
6228 prefix = substr(line, 1, index(line, defundef) - 1)
6229 if (D_is_set[macro]) {
6230 # Preserve the white space surrounding the "#".
6231 print prefix "define", macro P[macro] D[macro]
6232 next
6233 } else {
6234 # Replace #undef with comments. This is necessary, for example,
6235 # in the case of _POSIX_SOURCE, which is predefined and required
6236 # on some systems where configure will not decide to define it.
6237 if (defundef == "undef") {
6238 print "/*", prefix defundef, macro, "*/"
6239 next
6240 }
6241 }
6242 }
6243 { print }
6244 _ACAWK
6245 _ACEOF
6246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6247 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6248 fi # test -n "$CONFIG_HEADERS"
6249
6250
6251 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6252 shift
6253 for ac_tag
6254 do
6255 case $ac_tag in
6256 :[FHLC]) ac_mode=$ac_tag; continue;;
6257 esac
6258 case $ac_mode$ac_tag in
6259 :[FHL]*:*);;
6260 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6261 :[FH]-) ac_tag=-:-;;
6262 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6263 esac
6264 ac_save_IFS=$IFS
6265 IFS=:
6266 set x $ac_tag
6267 IFS=$ac_save_IFS
6268 shift
6269 ac_file=$1
6270 shift
6271
6272 case $ac_mode in
6273 :L) ac_source=$1;;
6274 :[FH])
6275 ac_file_inputs=
6276 for ac_f
6277 do
6278 case $ac_f in
6279 -) ac_f="$ac_tmp/stdin";;
6280 *) # Look for the file first in the build tree, then in the source tree
6281 # (if the path is not absolute). The absolute path cannot be DOS-style,
6282 # because $ac_f cannot contain `:'.
6283 test -f "$ac_f" ||
6284 case $ac_f in
6285 [\\/$]*) false;;
6286 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6287 esac ||
6288 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6289 esac
6290 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6291 as_fn_append ac_file_inputs " '$ac_f'"
6292 done
6293
6294 # Let's still pretend it is `configure' which instantiates (i.e., don't
6295 # use $as_me), people would be surprised to read:
6296 # /* config.h. Generated by config.status. */
6297 configure_input='Generated from '`
6298 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6299 `' by configure.'
6300 if test x"$ac_file" != x-; then
6301 configure_input="$ac_file. $configure_input"
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6303 $as_echo "$as_me: creating $ac_file" >&6;}
6304 fi
6305 # Neutralize special characters interpreted by sed in replacement strings.
6306 case $configure_input in #(
6307 *\&* | *\|* | *\\* )
6308 ac_sed_conf_input=`$as_echo "$configure_input" |
6309 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6310 *) ac_sed_conf_input=$configure_input;;
6311 esac
6312
6313 case $ac_tag in
6314 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6315 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6316 esac
6317 ;;
6318 esac
6319
6320 ac_dir=`$as_dirname -- "$ac_file" ||
6321 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6322 X"$ac_file" : 'X\(//\)[^/]' \| \
6323 X"$ac_file" : 'X\(//\)$' \| \
6324 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6325 $as_echo X"$ac_file" |
6326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6327 s//\1/
6328 q
6329 }
6330 /^X\(\/\/\)[^/].*/{
6331 s//\1/
6332 q
6333 }
6334 /^X\(\/\/\)$/{
6335 s//\1/
6336 q
6337 }
6338 /^X\(\/\).*/{
6339 s//\1/
6340 q
6341 }
6342 s/.*/./; q'`
6343 as_dir="$ac_dir"; as_fn_mkdir_p
6344 ac_builddir=.
6345
6346 case "$ac_dir" in
6347 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6348 *)
6349 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6350 # A ".." for each directory in $ac_dir_suffix.
6351 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6352 case $ac_top_builddir_sub in
6353 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6354 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6355 esac ;;
6356 esac
6357 ac_abs_top_builddir=$ac_pwd
6358 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6359 # for backward compatibility:
6360 ac_top_builddir=$ac_top_build_prefix
6361
6362 case $srcdir in
6363 .) # We are building in place.
6364 ac_srcdir=.
6365 ac_top_srcdir=$ac_top_builddir_sub
6366 ac_abs_top_srcdir=$ac_pwd ;;
6367 [\\/]* | ?:[\\/]* ) # Absolute name.
6368 ac_srcdir=$srcdir$ac_dir_suffix;
6369 ac_top_srcdir=$srcdir
6370 ac_abs_top_srcdir=$srcdir ;;
6371 *) # Relative name.
6372 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6373 ac_top_srcdir=$ac_top_build_prefix$srcdir
6374 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6375 esac
6376 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6377
6378
6379 case $ac_mode in
6380 :F)
6381 #
6382 # CONFIG_FILE
6383 #
6384
6385 case $INSTALL in
6386 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6387 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6388 esac
6389 ac_MKDIR_P=$MKDIR_P
6390 case $MKDIR_P in
6391 [\\/$]* | ?:[\\/]* ) ;;
6392 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6393 esac
6394 _ACEOF
6395
6396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6397 # If the template does not know about datarootdir, expand it.
6398 # FIXME: This hack should be removed a few years after 2.60.
6399 ac_datarootdir_hack=; ac_datarootdir_seen=
6400 ac_sed_dataroot='
6401 /datarootdir/ {
6402 p
6403 q
6404 }
6405 /@datadir@/p
6406 /@docdir@/p
6407 /@infodir@/p
6408 /@localedir@/p
6409 /@mandir@/p'
6410 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6411 *datarootdir*) ac_datarootdir_seen=yes;;
6412 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6414 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6415 _ACEOF
6416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6417 ac_datarootdir_hack='
6418 s&@datadir@&$datadir&g
6419 s&@docdir@&$docdir&g
6420 s&@infodir@&$infodir&g
6421 s&@localedir@&$localedir&g
6422 s&@mandir@&$mandir&g
6423 s&\\\${datarootdir}&$datarootdir&g' ;;
6424 esac
6425 _ACEOF
6426
6427 # Neutralize VPATH when `$srcdir' = `.'.
6428 # Shell code in configure.ac might set extrasub.
6429 # FIXME: do we really want to maintain this feature?
6430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6431 ac_sed_extra="$ac_vpsub
6432 $extrasub
6433 _ACEOF
6434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6435 :t
6436 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6437 s|@configure_input@|$ac_sed_conf_input|;t t
6438 s&@top_builddir@&$ac_top_builddir_sub&;t t
6439 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6440 s&@srcdir@&$ac_srcdir&;t t
6441 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6442 s&@top_srcdir@&$ac_top_srcdir&;t t
6443 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6444 s&@builddir@&$ac_builddir&;t t
6445 s&@abs_builddir@&$ac_abs_builddir&;t t
6446 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6447 s&@INSTALL@&$ac_INSTALL&;t t
6448 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6449 $ac_datarootdir_hack
6450 "
6451 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6452 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6453
6454 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6455 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6456 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6457 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6459 which seems to be undefined. Please make sure it is defined" >&5
6460 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6461 which seems to be undefined. Please make sure it is defined" >&2;}
6462
6463 rm -f "$ac_tmp/stdin"
6464 case $ac_file in
6465 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6466 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6467 esac \
6468 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6469 ;;
6470 :H)
6471 #
6472 # CONFIG_HEADER
6473 #
6474 if test x"$ac_file" != x-; then
6475 {
6476 $as_echo "/* $configure_input */" \
6477 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6478 } >"$ac_tmp/config.h" \
6479 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6480 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6482 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6483 else
6484 rm -f "$ac_file"
6485 mv "$ac_tmp/config.h" "$ac_file" \
6486 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6487 fi
6488 else
6489 $as_echo "/* $configure_input */" \
6490 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6491 || as_fn_error $? "could not create -" "$LINENO" 5
6492 fi
6493 # Compute "$ac_file"'s index in $config_headers.
6494 _am_arg="$ac_file"
6495 _am_stamp_count=1
6496 for _am_header in $config_headers :; do
6497 case $_am_header in
6498 $_am_arg | $_am_arg:* )
6499 break ;;
6500 * )
6501 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6502 esac
6503 done
6504 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6505 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6506 X"$_am_arg" : 'X\(//\)[^/]' \| \
6507 X"$_am_arg" : 'X\(//\)$' \| \
6508 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6509 $as_echo X"$_am_arg" |
6510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6511 s//\1/
6512 q
6513 }
6514 /^X\(\/\/\)[^/].*/{
6515 s//\1/
6516 q
6517 }
6518 /^X\(\/\/\)$/{
6519 s//\1/
6520 q
6521 }
6522 /^X\(\/\).*/{
6523 s//\1/
6524 q
6525 }
6526 s/.*/./; q'`/stamp-h$_am_stamp_count
6527 ;;
6528
6529 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6530 $as_echo "$as_me: executing $ac_file commands" >&6;}
6531 ;;
6532 esac
6533
6534
6535 case $ac_file$ac_mode in
6536 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6537 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6538 # are listed without --file. Let's play safe and only enable the eval
6539 # if we detect the quoting.
6540 case $CONFIG_FILES in
6541 *\'*) eval set x "$CONFIG_FILES" ;;
6542 *) set x $CONFIG_FILES ;;
6543 esac
6544 shift
6545 for mf
6546 do
6547 # Strip MF so we end up with the name of the file.
6548 mf=`echo "$mf" | sed -e 's/:.*$//'`
6549 # Check whether this is an Automake generated Makefile or not.
6550 # We used to match only the files named `Makefile.in', but
6551 # some people rename them; so instead we look at the file content.
6552 # Grep'ing the first line is not enough: some people post-process
6553 # each Makefile.in and add a new line on top of each file to say so.
6554 # Grep'ing the whole file is not good either: AIX grep has a line
6555 # limit of 2048, but all sed's we know have understand at least 4000.
6556 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6557 dirpart=`$as_dirname -- "$mf" ||
6558 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6559 X"$mf" : 'X\(//\)[^/]' \| \
6560 X"$mf" : 'X\(//\)$' \| \
6561 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6562 $as_echo X"$mf" |
6563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6564 s//\1/
6565 q
6566 }
6567 /^X\(\/\/\)[^/].*/{
6568 s//\1/
6569 q
6570 }
6571 /^X\(\/\/\)$/{
6572 s//\1/
6573 q
6574 }
6575 /^X\(\/\).*/{
6576 s//\1/
6577 q
6578 }
6579 s/.*/./; q'`
6580 else
6581 continue
6582 fi
6583 # Extract the definition of DEPDIR, am__include, and am__quote
6584 # from the Makefile without running `make'.
6585 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6586 test -z "$DEPDIR" && continue
6587 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6588 test -z "am__include" && continue
6589 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6590 # When using ansi2knr, U may be empty or an underscore; expand it
6591 U=`sed -n 's/^U = //p' < "$mf"`
6592 # Find all dependency output files, they are included files with
6593 # $(DEPDIR) in their names. We invoke sed twice because it is the
6594 # simplest approach to changing $(DEPDIR) to its actual value in the
6595 # expansion.
6596 for file in `sed -n "
6597 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6598 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6599 # Make sure the directory exists.
6600 test -f "$dirpart/$file" && continue
6601 fdir=`$as_dirname -- "$file" ||
6602 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6603 X"$file" : 'X\(//\)[^/]' \| \
6604 X"$file" : 'X\(//\)$' \| \
6605 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6606 $as_echo X"$file" |
6607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6608 s//\1/
6609 q
6610 }
6611 /^X\(\/\/\)[^/].*/{
6612 s//\1/
6613 q
6614 }
6615 /^X\(\/\/\)$/{
6616 s//\1/
6617 q
6618 }
6619 /^X\(\/\).*/{
6620 s//\1/
6621 q
6622 }
6623 s/.*/./; q'`
6624 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6625 # echo "creating $dirpart/$file"
6626 echo '# dummy' > "$dirpart/$file"
6627 done
6628 done
6629 }
6630 ;;
6631
6632 esac
6633 done # for ac_tag
6634
6635
6636 as_fn_exit 0
6637 _ACEOF
6638 ac_clean_files=$ac_clean_files_save
6639
6640 test $ac_write_fail = 0 ||
6641 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6642
6643
6644 # configure is writing to config.log, and then calls config.status.
6645 # config.status does its own redirection, appending to config.log.
6646 # Unfortunately, on DOS this fails, as config.log is still kept open
6647 # by configure, so config.status won't be able to write to it; its
6648 # output is simply discarded. So we exec the FD to /dev/null,
6649 # effectively closing config.log, so it can be properly (re)opened and
6650 # appended to by config.status. When coming back to configure, we
6651 # need to make the FD available again.
6652 if test "$no_create" != yes; then
6653 ac_cs_success=:
6654 ac_config_status_args=
6655 test "$silent" = yes &&
6656 ac_config_status_args="$ac_config_status_args --quiet"
6657 exec 5>/dev/null
6658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6659 exec 5>>config.log
6660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6661 # would make configure fail if this is the last instruction.
6662 $ac_cs_success || as_fn_exit 1
6663 fi
6664 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6666 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6667 fi
6668
6669