Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Haskell X11 package 1.4.6.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and [email protected]
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='Haskell X11 package'
582 PACKAGE_TARNAME='X11'
583 PACKAGE_VERSION='1.4.6'
584 PACKAGE_STRING='Haskell X11 package 1.4.6'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL=''
587
588 ac_unique_file="include/HsXlib.h"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 X_LIBRARIES
628 EXTRA_LIBRARIES
629 EGREP
630 GREP
631 BUILD_PACKAGE_BOOL
632 X11_BUILD_PACKAGE
633 X_EXTRA_LIBS
634 X_LIBS
635 X_PRE_LIBS
636 X_CFLAGS
637 CPP
638 OBJEXT
639 EXEEXT
640 ac_ct_CC
641 CPPFLAGS
642 LDFLAGS
643 CFLAGS
644 CC
645 XMKMF
646 target_alias
647 host_alias
648 build_alias
649 LIBS
650 ECHO_T
651 ECHO_N
652 ECHO_C
653 DEFS
654 mandir
655 localedir
656 libdir
657 psdir
658 pdfdir
659 dvidir
660 htmldir
661 infodir
662 docdir
663 oldincludedir
664 includedir
665 runstatedir
666 localstatedir
667 sharedstatedir
668 sysconfdir
669 datadir
670 datarootdir
671 libexecdir
672 sbindir
673 bindir
674 program_transform_name
675 prefix
676 exec_prefix
677 PACKAGE_URL
678 PACKAGE_BUGREPORT
679 PACKAGE_STRING
680 PACKAGE_VERSION
681 PACKAGE_TARNAME
682 PACKAGE_NAME
683 PATH_SEPARATOR
684 SHELL'
685 ac_subst_files=''
686 ac_user_opts='
687 enable_option_checking
688 enable_x11
689 with_x
690 with_xinerama
691 with_xorg_keysym
692 '
693 ac_precious_vars='build_alias
694 host_alias
695 target_alias
696 XMKMF
697 CC
698 CFLAGS
699 LDFLAGS
700 LIBS
701 CPPFLAGS
702 CPP'
703
704
705 # Initialize some variables set by options.
706 ac_init_help=
707 ac_init_version=false
708 ac_unrecognized_opts=
709 ac_unrecognized_sep=
710 # The variables have the same names as the options, with
711 # dashes changed to underlines.
712 cache_file=/dev/null
713 exec_prefix=NONE
714 no_create=
715 no_recursion=
716 prefix=NONE
717 program_prefix=NONE
718 program_suffix=NONE
719 program_transform_name=s,x,x,
720 silent=
721 site=
722 srcdir=
723 verbose=
724 x_includes=NONE
725 x_libraries=NONE
726
727 # Installation directory options.
728 # These are left unexpanded so users can "make install exec_prefix=/foo"
729 # and all the variables that are supposed to be based on exec_prefix
730 # by default will actually change.
731 # Use braces instead of parens because sh, perl, etc. also accept them.
732 # (The list follows the same order as the GNU Coding Standards.)
733 bindir='${exec_prefix}/bin'
734 sbindir='${exec_prefix}/sbin'
735 libexecdir='${exec_prefix}/libexec'
736 datarootdir='${prefix}/share'
737 datadir='${datarootdir}'
738 sysconfdir='${prefix}/etc'
739 sharedstatedir='${prefix}/com'
740 localstatedir='${prefix}/var'
741 runstatedir='${localstatedir}/run'
742 includedir='${prefix}/include'
743 oldincludedir='/usr/include'
744 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
745 infodir='${datarootdir}/info'
746 htmldir='${docdir}'
747 dvidir='${docdir}'
748 pdfdir='${docdir}'
749 psdir='${docdir}'
750 libdir='${exec_prefix}/lib'
751 localedir='${datarootdir}/locale'
752 mandir='${datarootdir}/man'
753
754 ac_prev=
755 ac_dashdash=
756 for ac_option
757 do
758 # If the previous option needs an argument, assign it.
759 if test -n "$ac_prev"; then
760 eval $ac_prev=\$ac_option
761 ac_prev=
762 continue
763 fi
764
765 case $ac_option in
766 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
767 *=) ac_optarg= ;;
768 *) ac_optarg=yes ;;
769 esac
770
771 # Accept the important Cygnus configure options, so we can diagnose typos.
772
773 case $ac_dashdash$ac_option in
774 --)
775 ac_dashdash=yes ;;
776
777 -bindir | --bindir | --bindi | --bind | --bin | --bi)
778 ac_prev=bindir ;;
779 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
780 bindir=$ac_optarg ;;
781
782 -build | --build | --buil | --bui | --bu)
783 ac_prev=build_alias ;;
784 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
785 build_alias=$ac_optarg ;;
786
787 -cache-file | --cache-file | --cache-fil | --cache-fi \
788 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
789 ac_prev=cache_file ;;
790 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
791 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
792 cache_file=$ac_optarg ;;
793
794 --config-cache | -C)
795 cache_file=config.cache ;;
796
797 -datadir | --datadir | --datadi | --datad)
798 ac_prev=datadir ;;
799 -datadir=* | --datadir=* | --datadi=* | --datad=*)
800 datadir=$ac_optarg ;;
801
802 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
803 | --dataroo | --dataro | --datar)
804 ac_prev=datarootdir ;;
805 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
806 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
807 datarootdir=$ac_optarg ;;
808
809 -disable-* | --disable-*)
810 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
811 # Reject names that are not valid shell variable names.
812 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
813 as_fn_error $? "invalid feature name: $ac_useropt"
814 ac_useropt_orig=$ac_useropt
815 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
816 case $ac_user_opts in
817 *"
818 "enable_$ac_useropt"
819 "*) ;;
820 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
821 ac_unrecognized_sep=', ';;
822 esac
823 eval enable_$ac_useropt=no ;;
824
825 -docdir | --docdir | --docdi | --doc | --do)
826 ac_prev=docdir ;;
827 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
828 docdir=$ac_optarg ;;
829
830 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
831 ac_prev=dvidir ;;
832 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
833 dvidir=$ac_optarg ;;
834
835 -enable-* | --enable-*)
836 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
839 as_fn_error $? "invalid feature name: $ac_useropt"
840 ac_useropt_orig=$ac_useropt
841 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
842 case $ac_user_opts in
843 *"
844 "enable_$ac_useropt"
845 "*) ;;
846 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
847 ac_unrecognized_sep=', ';;
848 esac
849 eval enable_$ac_useropt=\$ac_optarg ;;
850
851 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
852 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
853 | --exec | --exe | --ex)
854 ac_prev=exec_prefix ;;
855 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
856 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
857 | --exec=* | --exe=* | --ex=*)
858 exec_prefix=$ac_optarg ;;
859
860 -gas | --gas | --ga | --g)
861 # Obsolete; use --with-gas.
862 with_gas=yes ;;
863
864 -help | --help | --hel | --he | -h)
865 ac_init_help=long ;;
866 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
867 ac_init_help=recursive ;;
868 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
869 ac_init_help=short ;;
870
871 -host | --host | --hos | --ho)
872 ac_prev=host_alias ;;
873 -host=* | --host=* | --hos=* | --ho=*)
874 host_alias=$ac_optarg ;;
875
876 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
877 ac_prev=htmldir ;;
878 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
879 | --ht=*)
880 htmldir=$ac_optarg ;;
881
882 -includedir | --includedir | --includedi | --included | --include \
883 | --includ | --inclu | --incl | --inc)
884 ac_prev=includedir ;;
885 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
886 | --includ=* | --inclu=* | --incl=* | --inc=*)
887 includedir=$ac_optarg ;;
888
889 -infodir | --infodir | --infodi | --infod | --info | --inf)
890 ac_prev=infodir ;;
891 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
892 infodir=$ac_optarg ;;
893
894 -libdir | --libdir | --libdi | --libd)
895 ac_prev=libdir ;;
896 -libdir=* | --libdir=* | --libdi=* | --libd=*)
897 libdir=$ac_optarg ;;
898
899 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
900 | --libexe | --libex | --libe)
901 ac_prev=libexecdir ;;
902 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
903 | --libexe=* | --libex=* | --libe=*)
904 libexecdir=$ac_optarg ;;
905
906 -localedir | --localedir | --localedi | --localed | --locale)
907 ac_prev=localedir ;;
908 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
909 localedir=$ac_optarg ;;
910
911 -localstatedir | --localstatedir | --localstatedi | --localstated \
912 | --localstate | --localstat | --localsta | --localst | --locals)
913 ac_prev=localstatedir ;;
914 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
915 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
916 localstatedir=$ac_optarg ;;
917
918 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
919 ac_prev=mandir ;;
920 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
921 mandir=$ac_optarg ;;
922
923 -nfp | --nfp | --nf)
924 # Obsolete; use --without-fp.
925 with_fp=no ;;
926
927 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
928 | --no-cr | --no-c | -n)
929 no_create=yes ;;
930
931 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
932 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
933 no_recursion=yes ;;
934
935 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
936 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
937 | --oldin | --oldi | --old | --ol | --o)
938 ac_prev=oldincludedir ;;
939 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
940 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
941 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
942 oldincludedir=$ac_optarg ;;
943
944 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
945 ac_prev=prefix ;;
946 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
947 prefix=$ac_optarg ;;
948
949 -program-prefix | --program-prefix | --program-prefi | --program-pref \
950 | --program-pre | --program-pr | --program-p)
951 ac_prev=program_prefix ;;
952 -program-prefix=* | --program-prefix=* | --program-prefi=* \
953 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
954 program_prefix=$ac_optarg ;;
955
956 -program-suffix | --program-suffix | --program-suffi | --program-suff \
957 | --program-suf | --program-su | --program-s)
958 ac_prev=program_suffix ;;
959 -program-suffix=* | --program-suffix=* | --program-suffi=* \
960 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
961 program_suffix=$ac_optarg ;;
962
963 -program-transform-name | --program-transform-name \
964 | --program-transform-nam | --program-transform-na \
965 | --program-transform-n | --program-transform- \
966 | --program-transform | --program-transfor \
967 | --program-transfo | --program-transf \
968 | --program-trans | --program-tran \
969 | --progr-tra | --program-tr | --program-t)
970 ac_prev=program_transform_name ;;
971 -program-transform-name=* | --program-transform-name=* \
972 | --program-transform-nam=* | --program-transform-na=* \
973 | --program-transform-n=* | --program-transform-=* \
974 | --program-transform=* | --program-transfor=* \
975 | --program-transfo=* | --program-transf=* \
976 | --program-trans=* | --program-tran=* \
977 | --progr-tra=* | --program-tr=* | --program-t=*)
978 program_transform_name=$ac_optarg ;;
979
980 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
981 ac_prev=pdfdir ;;
982 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
983 pdfdir=$ac_optarg ;;
984
985 -psdir | --psdir | --psdi | --psd | --ps)
986 ac_prev=psdir ;;
987 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
988 psdir=$ac_optarg ;;
989
990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
991 | -silent | --silent | --silen | --sile | --sil)
992 silent=yes ;;
993
994 -runstatedir | --runstatedir | --runstatedi | --runstated \
995 | --runstate | --runstat | --runsta | --runst | --runs \
996 | --run | --ru | --r)
997 ac_prev=runstatedir ;;
998 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
999 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1000 | --run=* | --ru=* | --r=*)
1001 runstatedir=$ac_optarg ;;
1002
1003 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1004 ac_prev=sbindir ;;
1005 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1006 | --sbi=* | --sb=*)
1007 sbindir=$ac_optarg ;;
1008
1009 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1010 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1011 | --sharedst | --shareds | --shared | --share | --shar \
1012 | --sha | --sh)
1013 ac_prev=sharedstatedir ;;
1014 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1015 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1016 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1017 | --sha=* | --sh=*)
1018 sharedstatedir=$ac_optarg ;;
1019
1020 -site | --site | --sit)
1021 ac_prev=site ;;
1022 -site=* | --site=* | --sit=*)
1023 site=$ac_optarg ;;
1024
1025 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1026 ac_prev=srcdir ;;
1027 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1028 srcdir=$ac_optarg ;;
1029
1030 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1031 | --syscon | --sysco | --sysc | --sys | --sy)
1032 ac_prev=sysconfdir ;;
1033 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1034 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1035 sysconfdir=$ac_optarg ;;
1036
1037 -target | --target | --targe | --targ | --tar | --ta | --t)
1038 ac_prev=target_alias ;;
1039 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1040 target_alias=$ac_optarg ;;
1041
1042 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1043 verbose=yes ;;
1044
1045 -version | --version | --versio | --versi | --vers | -V)
1046 ac_init_version=: ;;
1047
1048 -with-* | --with-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid package name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057 "with_$ac_useropt"
1058 "*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval with_$ac_useropt=\$ac_optarg ;;
1063
1064 -without-* | --without-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error $? "invalid package name: $ac_useropt"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1072 *"
1073 "with_$ac_useropt"
1074 "*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval with_$ac_useropt=no ;;
1079
1080 --x)
1081 # Obsolete; use --with-x.
1082 with_x=yes ;;
1083
1084 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1085 | --x-incl | --x-inc | --x-in | --x-i)
1086 ac_prev=x_includes ;;
1087 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1088 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1089 x_includes=$ac_optarg ;;
1090
1091 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1092 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1093 ac_prev=x_libraries ;;
1094 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1095 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1096 x_libraries=$ac_optarg ;;
1097
1098 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1099 Try \`$0 --help' for more information"
1100 ;;
1101
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 case $ac_envvar in #(
1106 '' | [0-9]* | *[!_$as_cr_alnum]* )
1107 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1108 esac
1109 eval $ac_envvar=\$ac_optarg
1110 export $ac_envvar ;;
1111
1112 *)
1113 # FIXME: should be removed in autoconf 3.0.
1114 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1115 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1116 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1117 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1118 ;;
1119
1120 esac
1121 done
1122
1123 if test -n "$ac_prev"; then
1124 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1125 as_fn_error $? "missing argument to $ac_option"
1126 fi
1127
1128 if test -n "$ac_unrecognized_opts"; then
1129 case $enable_option_checking in
1130 no) ;;
1131 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1132 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1133 esac
1134 fi
1135
1136 # Check all directory arguments for consistency.
1137 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138 datadir sysconfdir sharedstatedir localstatedir includedir \
1139 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140 libdir localedir mandir runstatedir
1141 do
1142 eval ac_val=\$$ac_var
1143 # Remove trailing slashes.
1144 case $ac_val in
1145 */ )
1146 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1147 eval $ac_var=\$ac_val;;
1148 esac
1149 # Be sure to have absolute directory names.
1150 case $ac_val in
1151 [\\/$]* | ?:[\\/]* ) continue;;
1152 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1153 esac
1154 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1155 done
1156
1157 # There might be people who depend on the old broken behavior: `$host'
1158 # used to hold the argument of --host etc.
1159 # FIXME: To remove some day.
1160 build=$build_alias
1161 host=$host_alias
1162 target=$target_alias
1163
1164 # FIXME: To remove some day.
1165 if test "x$host_alias" != x; then
1166 if test "x$build_alias" = x; then
1167 cross_compiling=maybe
1168 elif test "x$build_alias" != "x$host_alias"; then
1169 cross_compiling=yes
1170 fi
1171 fi
1172
1173 ac_tool_prefix=
1174 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1175
1176 test "$silent" = yes && exec 6>/dev/null
1177
1178
1179 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1180 ac_ls_di=`ls -di .` &&
1181 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1182 as_fn_error $? "working directory cannot be determined"
1183 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1184 as_fn_error $? "pwd does not report name of working directory"
1185
1186
1187 # Find the source files, if location was not specified.
1188 if test -z "$srcdir"; then
1189 ac_srcdir_defaulted=yes
1190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir=`$as_dirname -- "$as_myself" ||
1192 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$as_myself" : 'X\(//\)[^/]' \| \
1194 X"$as_myself" : 'X\(//\)$' \| \
1195 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1196 $as_echo X"$as_myself" |
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\/\)[^/].*/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)$/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\).*/{
1210 s//\1/
1211 q
1212 }
1213 s/.*/./; q'`
1214 srcdir=$ac_confdir
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 srcdir=..
1217 fi
1218 else
1219 ac_srcdir_defaulted=no
1220 fi
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1223 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1224 fi
1225 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1226 ac_abs_confdir=`(
1227 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1228 pwd)`
1229 # When building in place, set srcdir=.
1230 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 srcdir=.
1232 fi
1233 # Remove unnecessary trailing slashes from srcdir.
1234 # Double slashes in file names in object file debugging info
1235 # mess up M-x gdb in Emacs.
1236 case $srcdir in
1237 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238 esac
1239 for ac_var in $ac_precious_vars; do
1240 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_env_${ac_var}_value=\$${ac_var}
1242 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1244 done
1245
1246 #
1247 # Report the --help message.
1248 #
1249 if test "$ac_init_help" = "long"; then
1250 # Omit some internal or obsolete options to make the list less imposing.
1251 # This message is too long to be a string in the A/UX 3.1 sh.
1252 cat <<_ACEOF
1253 \`configure' configures Haskell X11 package 1.4.6 to adapt to many kinds of systems.
1254
1255 Usage: $0 [OPTION]... [VAR=VALUE]...
1256
1257 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1258 VAR=VALUE. See below for descriptions of some of the useful variables.
1259
1260 Defaults for the options are specified in brackets.
1261
1262 Configuration:
1263 -h, --help display this help and exit
1264 --help=short display options specific to this package
1265 --help=recursive display the short help of all the included packages
1266 -V, --version display version information and exit
1267 -q, --quiet, --silent do not print \`checking ...' messages
1268 --cache-file=FILE cache test results in FILE [disabled]
1269 -C, --config-cache alias for \`--cache-file=config.cache'
1270 -n, --no-create do not create output files
1271 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272
1273 Installation directories:
1274 --prefix=PREFIX install architecture-independent files in PREFIX
1275 [$ac_default_prefix]
1276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 [PREFIX]
1278
1279 By default, \`make install' will install all the files in
1280 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1281 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282 for instance \`--prefix=\$HOME'.
1283
1284 For better control, use the options below.
1285
1286 Fine tuning of the installation directories:
1287 --bindir=DIR user executables [EPREFIX/bin]
1288 --sbindir=DIR system admin executables [EPREFIX/sbin]
1289 --libexecdir=DIR program executables [EPREFIX/libexec]
1290 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1291 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1292 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1293 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1294 --libdir=DIR object code libraries [EPREFIX/lib]
1295 --includedir=DIR C header files [PREFIX/include]
1296 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1297 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1298 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1299 --infodir=DIR info documentation [DATAROOTDIR/info]
1300 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1301 --mandir=DIR man documentation [DATAROOTDIR/man]
1302 --docdir=DIR documentation root [DATAROOTDIR/doc/X11]
1303 --htmldir=DIR html documentation [DOCDIR]
1304 --dvidir=DIR dvi documentation [DOCDIR]
1305 --pdfdir=DIR pdf documentation [DOCDIR]
1306 --psdir=DIR ps documentation [DOCDIR]
1307 _ACEOF
1308
1309 cat <<\_ACEOF
1310
1311 X features:
1312 --x-includes=DIR X include files are in DIR
1313 --x-libraries=DIR X library files are in DIR
1314 _ACEOF
1315 fi
1316
1317 if test -n "$ac_init_help"; then
1318 case $ac_init_help in
1319 short | recursive ) echo "Configuration of Haskell X11 package 1.4.6:";;
1320 esac
1321 cat <<\_ACEOF
1322
1323 Optional Features:
1324 --disable-option-checking ignore unrecognized --enable/--with options
1325 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1326 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1327 --enable-x11 build a Haskell binding for X11.
1328 (default=autodetect)
1329
1330 Optional Packages:
1331 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1332 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1333 --with-x use the X Window System
1334 --without-xinerama do not build Xinerama support
1335 --without-xorg-keysym do not build X.org keysym support
1336
1337 Some influential environment variables:
1338 XMKMF Path to xmkmf, Makefile generator for X Window System
1339 CC C compiler command
1340 CFLAGS C compiler flags
1341 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1342 nonstandard directory <lib dir>
1343 LIBS libraries to pass to the linker, e.g. -l<library>
1344 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1345 you have headers in a nonstandard directory <include dir>
1346 CPP C preprocessor
1347
1348 Use these variables to override the choices made by `configure' or to help
1349 it to find libraries and programs with nonstandard names/locations.
1350
1351 Report bugs to <[email protected]>.
1352 _ACEOF
1353 ac_status=$?
1354 fi
1355
1356 if test "$ac_init_help" = "recursive"; then
1357 # If there are subdirs, report their specific --help.
1358 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1359 test -d "$ac_dir" ||
1360 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1361 continue
1362 ac_builddir=.
1363
1364 case "$ac_dir" in
1365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366 *)
1367 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1368 # A ".." for each directory in $ac_dir_suffix.
1369 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1370 case $ac_top_builddir_sub in
1371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1373 esac ;;
1374 esac
1375 ac_abs_top_builddir=$ac_pwd
1376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1377 # for backward compatibility:
1378 ac_top_builddir=$ac_top_build_prefix
1379
1380 case $srcdir in
1381 .) # We are building in place.
1382 ac_srcdir=.
1383 ac_top_srcdir=$ac_top_builddir_sub
1384 ac_abs_top_srcdir=$ac_pwd ;;
1385 [\\/]* | ?:[\\/]* ) # Absolute name.
1386 ac_srcdir=$srcdir$ac_dir_suffix;
1387 ac_top_srcdir=$srcdir
1388 ac_abs_top_srcdir=$srcdir ;;
1389 *) # Relative name.
1390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1391 ac_top_srcdir=$ac_top_build_prefix$srcdir
1392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1393 esac
1394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1395
1396 cd "$ac_dir" || { ac_status=$?; continue; }
1397 # Check for guested configure.
1398 if test -f "$ac_srcdir/configure.gnu"; then
1399 echo &&
1400 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1401 elif test -f "$ac_srcdir/configure"; then
1402 echo &&
1403 $SHELL "$ac_srcdir/configure" --help=recursive
1404 else
1405 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1406 fi || ac_status=$?
1407 cd "$ac_pwd" || { ac_status=$?; break; }
1408 done
1409 fi
1410
1411 test -n "$ac_init_help" && exit $ac_status
1412 if $ac_init_version; then
1413 cat <<\_ACEOF
1414 Haskell X11 package configure 1.4.6
1415 generated by GNU Autoconf 2.69
1416
1417 Copyright (C) 2012 Free Software Foundation, Inc.
1418 This configure script is free software; the Free Software Foundation
1419 gives unlimited permission to copy, distribute and modify it.
1420 _ACEOF
1421 exit
1422 fi
1423
1424 ## ------------------------ ##
1425 ## Autoconf initialization. ##
1426 ## ------------------------ ##
1427
1428 # ac_fn_c_try_compile LINENO
1429 # --------------------------
1430 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1431 ac_fn_c_try_compile ()
1432 {
1433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1434 rm -f conftest.$ac_objext
1435 if { { ac_try="$ac_compile"
1436 case "(($ac_try" in
1437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1439 esac
1440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441 $as_echo "$ac_try_echo"; } >&5
1442 (eval "$ac_compile") 2>conftest.err
1443 ac_status=$?
1444 if test -s conftest.err; then
1445 grep -v '^ *+' conftest.err >conftest.er1
1446 cat conftest.er1 >&5
1447 mv -f conftest.er1 conftest.err
1448 fi
1449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450 test $ac_status = 0; } && {
1451 test -z "$ac_c_werror_flag" ||
1452 test ! -s conftest.err
1453 } && test -s conftest.$ac_objext; then :
1454 ac_retval=0
1455 else
1456 $as_echo "$as_me: failed program was:" >&5
1457 sed 's/^/| /' conftest.$ac_ext >&5
1458
1459 ac_retval=1
1460 fi
1461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1462 as_fn_set_status $ac_retval
1463
1464 } # ac_fn_c_try_compile
1465
1466 # ac_fn_c_try_cpp LINENO
1467 # ----------------------
1468 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1469 ac_fn_c_try_cpp ()
1470 {
1471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472 if { { ac_try="$ac_cpp conftest.$ac_ext"
1473 case "(($ac_try" in
1474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1475 *) ac_try_echo=$ac_try;;
1476 esac
1477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1478 $as_echo "$ac_try_echo"; } >&5
1479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1480 ac_status=$?
1481 if test -s conftest.err; then
1482 grep -v '^ *+' conftest.err >conftest.er1
1483 cat conftest.er1 >&5
1484 mv -f conftest.er1 conftest.err
1485 fi
1486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1487 test $ac_status = 0; } > conftest.i && {
1488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1489 test ! -s conftest.err
1490 }; then :
1491 ac_retval=0
1492 else
1493 $as_echo "$as_me: failed program was:" >&5
1494 sed 's/^/| /' conftest.$ac_ext >&5
1495
1496 ac_retval=1
1497 fi
1498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1499 as_fn_set_status $ac_retval
1500
1501 } # ac_fn_c_try_cpp
1502
1503 # ac_fn_c_try_link LINENO
1504 # -----------------------
1505 # Try to link conftest.$ac_ext, and return whether this succeeded.
1506 ac_fn_c_try_link ()
1507 {
1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509 rm -f conftest.$ac_objext conftest$ac_exeext
1510 if { { ac_try="$ac_link"
1511 case "(($ac_try" in
1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513 *) ac_try_echo=$ac_try;;
1514 esac
1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516 $as_echo "$ac_try_echo"; } >&5
1517 (eval "$ac_link") 2>conftest.err
1518 ac_status=$?
1519 if test -s conftest.err; then
1520 grep -v '^ *+' conftest.err >conftest.er1
1521 cat conftest.er1 >&5
1522 mv -f conftest.er1 conftest.err
1523 fi
1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 test $ac_status = 0; } && {
1526 test -z "$ac_c_werror_flag" ||
1527 test ! -s conftest.err
1528 } && test -s conftest$ac_exeext && {
1529 test "$cross_compiling" = yes ||
1530 test -x conftest$ac_exeext
1531 }; then :
1532 ac_retval=0
1533 else
1534 $as_echo "$as_me: failed program was:" >&5
1535 sed 's/^/| /' conftest.$ac_ext >&5
1536
1537 ac_retval=1
1538 fi
1539 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1540 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1541 # interfere with the next link command; also delete a directory that is
1542 # left behind by Apple's compiler. We do this before executing the actions.
1543 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1544 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1545 as_fn_set_status $ac_retval
1546
1547 } # ac_fn_c_try_link
1548
1549 # ac_fn_c_check_func LINENO FUNC VAR
1550 # ----------------------------------
1551 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1552 ac_fn_c_check_func ()
1553 {
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1556 $as_echo_n "checking for $2... " >&6; }
1557 if eval \${$3+:} false; then :
1558 $as_echo_n "(cached) " >&6
1559 else
1560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1561 /* end confdefs.h. */
1562 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1564 #define $2 innocuous_$2
1565
1566 /* System header to define __stub macros and hopefully few prototypes,
1567 which can conflict with char $2 (); below.
1568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1569 <limits.h> exists even on freestanding compilers. */
1570
1571 #ifdef __STDC__
1572 # include <limits.h>
1573 #else
1574 # include <assert.h>
1575 #endif
1576
1577 #undef $2
1578
1579 /* Override any GCC internal prototype to avoid an error.
1580 Use char because int might match the return type of a GCC
1581 builtin and then its argument prototype would still apply. */
1582 #ifdef __cplusplus
1583 extern "C"
1584 #endif
1585 char $2 ();
1586 /* The GNU C library defines this for functions which it implements
1587 to always fail with ENOSYS. Some functions are actually named
1588 something starting with __ and the normal name is an alias. */
1589 #if defined __stub_$2 || defined __stub___$2
1590 choke me
1591 #endif
1592
1593 int
1594 main ()
1595 {
1596 return $2 ();
1597 ;
1598 return 0;
1599 }
1600 _ACEOF
1601 if ac_fn_c_try_link "$LINENO"; then :
1602 eval "$3=yes"
1603 else
1604 eval "$3=no"
1605 fi
1606 rm -f core conftest.err conftest.$ac_objext \
1607 conftest$ac_exeext conftest.$ac_ext
1608 fi
1609 eval ac_res=\$$3
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611 $as_echo "$ac_res" >&6; }
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613
1614 } # ac_fn_c_check_func
1615
1616 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617 # -------------------------------------------------------
1618 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619 # the include files in INCLUDES and setting the cache variable VAR
1620 # accordingly.
1621 ac_fn_c_check_header_mongrel ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if eval \${$3+:} false; then :
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 $as_echo_n "checking for $2... " >&6; }
1627 if eval \${$3+:} false; then :
1628 $as_echo_n "(cached) " >&6
1629 fi
1630 eval ac_res=\$$3
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632 $as_echo "$ac_res" >&6; }
1633 else
1634 # Is the header compilable?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636 $as_echo_n "checking $2 usability... " >&6; }
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1639 $4
1640 #include <$2>
1641 _ACEOF
1642 if ac_fn_c_try_compile "$LINENO"; then :
1643 ac_header_compiler=yes
1644 else
1645 ac_header_compiler=no
1646 fi
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649 $as_echo "$ac_header_compiler" >&6; }
1650
1651 # Is the header present?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653 $as_echo_n "checking $2 presence... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_cpp "$LINENO"; then :
1659 ac_header_preproc=yes
1660 else
1661 ac_header_preproc=no
1662 fi
1663 rm -f conftest.err conftest.i conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665 $as_echo "$ac_header_preproc" >&6; }
1666
1667 # So? What about this header?
1668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1669 yes:no: )
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 ;;
1675 no:yes:* )
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1679 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1683 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 ( $as_echo "## ------------------------------ ##
1687 ## Report this to [email protected] ##
1688 ## ------------------------------ ##"
1689 ) | sed "s/^/$as_me: WARNING: /" >&2
1690 ;;
1691 esac
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1696 else
1697 eval "$3=\$ac_header_compiler"
1698 fi
1699 eval ac_res=\$$3
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702 fi
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705 } # ac_fn_c_check_header_mongrel
1706
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1711 ac_fn_c_try_run ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1732 ac_status=$?
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=$ac_status
1742 fi
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1746
1747 } # ac_fn_c_try_run
1748
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1760 else
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 $4
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767 eval "$3=yes"
1768 else
1769 eval "$3=no"
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 fi
1773 eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_header_compile
1779 cat >config.log <<_ACEOF
1780 This file contains any messages produced by compilers while
1781 running configure, to aid debugging if configure makes a mistake.
1782
1783 It was created by Haskell X11 package $as_me 1.4.6, which was
1784 generated by GNU Autoconf 2.69. Invocation command line was
1785
1786 $ $0 $@
1787
1788 _ACEOF
1789 exec 5>>config.log
1790 {
1791 cat <<_ASUNAME
1792 ## --------- ##
1793 ## Platform. ##
1794 ## --------- ##
1795
1796 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1797 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1798 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1799 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1800 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1801
1802 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1803 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1804
1805 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1806 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1807 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1808 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1809 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1810 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1811 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1812
1813 _ASUNAME
1814
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 for as_dir in $PATH
1817 do
1818 IFS=$as_save_IFS
1819 test -z "$as_dir" && as_dir=.
1820 $as_echo "PATH: $as_dir"
1821 done
1822 IFS=$as_save_IFS
1823
1824 } >&5
1825
1826 cat >&5 <<_ACEOF
1827
1828
1829 ## ----------- ##
1830 ## Core tests. ##
1831 ## ----------- ##
1832
1833 _ACEOF
1834
1835
1836 # Keep a trace of the command line.
1837 # Strip out --no-create and --no-recursion so they do not pile up.
1838 # Strip out --silent because we don't want to record it for future runs.
1839 # Also quote any args containing shell meta-characters.
1840 # Make two passes to allow for proper duplicate-argument suppression.
1841 ac_configure_args=
1842 ac_configure_args0=
1843 ac_configure_args1=
1844 ac_must_keep_next=false
1845 for ac_pass in 1 2
1846 do
1847 for ac_arg
1848 do
1849 case $ac_arg in
1850 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1852 | -silent | --silent | --silen | --sile | --sil)
1853 continue ;;
1854 *\'*)
1855 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1856 esac
1857 case $ac_pass in
1858 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1859 2)
1860 as_fn_append ac_configure_args1 " '$ac_arg'"
1861 if test $ac_must_keep_next = true; then
1862 ac_must_keep_next=false # Got value, back to normal.
1863 else
1864 case $ac_arg in
1865 *=* | --config-cache | -C | -disable-* | --disable-* \
1866 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1867 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1868 | -with-* | --with-* | -without-* | --without-* | --x)
1869 case "$ac_configure_args0 " in
1870 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1871 esac
1872 ;;
1873 -* ) ac_must_keep_next=true ;;
1874 esac
1875 fi
1876 as_fn_append ac_configure_args " '$ac_arg'"
1877 ;;
1878 esac
1879 done
1880 done
1881 { ac_configure_args0=; unset ac_configure_args0;}
1882 { ac_configure_args1=; unset ac_configure_args1;}
1883
1884 # When interrupted or exit'd, cleanup temporary files, and complete
1885 # config.log. We remove comments because anyway the quotes in there
1886 # would cause problems or look ugly.
1887 # WARNING: Use '\'' to represent an apostrophe within the trap.
1888 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1889 trap 'exit_status=$?
1890 # Save into config.log some information that might help in debugging.
1891 {
1892 echo
1893
1894 $as_echo "## ---------------- ##
1895 ## Cache variables. ##
1896 ## ---------------- ##"
1897 echo
1898 # The following way of writing the cache mishandles newlines in values,
1899 (
1900 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1901 eval ac_val=\$$ac_var
1902 case $ac_val in #(
1903 *${as_nl}*)
1904 case $ac_var in #(
1905 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1906 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1907 esac
1908 case $ac_var in #(
1909 _ | IFS | as_nl) ;; #(
1910 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1911 *) { eval $ac_var=; unset $ac_var;} ;;
1912 esac ;;
1913 esac
1914 done
1915 (set) 2>&1 |
1916 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1917 *${as_nl}ac_space=\ *)
1918 sed -n \
1919 "s/'\''/'\''\\\\'\'''\''/g;
1920 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1921 ;; #(
1922 *)
1923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1924 ;;
1925 esac |
1926 sort
1927 )
1928 echo
1929
1930 $as_echo "## ----------------- ##
1931 ## Output variables. ##
1932 ## ----------------- ##"
1933 echo
1934 for ac_var in $ac_subst_vars
1935 do
1936 eval ac_val=\$$ac_var
1937 case $ac_val in
1938 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1939 esac
1940 $as_echo "$ac_var='\''$ac_val'\''"
1941 done | sort
1942 echo
1943
1944 if test -n "$ac_subst_files"; then
1945 $as_echo "## ------------------- ##
1946 ## File substitutions. ##
1947 ## ------------------- ##"
1948 echo
1949 for ac_var in $ac_subst_files
1950 do
1951 eval ac_val=\$$ac_var
1952 case $ac_val in
1953 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1954 esac
1955 $as_echo "$ac_var='\''$ac_val'\''"
1956 done | sort
1957 echo
1958 fi
1959
1960 if test -s confdefs.h; then
1961 $as_echo "## ----------- ##
1962 ## confdefs.h. ##
1963 ## ----------- ##"
1964 echo
1965 cat confdefs.h
1966 echo
1967 fi
1968 test "$ac_signal" != 0 &&
1969 $as_echo "$as_me: caught signal $ac_signal"
1970 $as_echo "$as_me: exit $exit_status"
1971 } >&5
1972 rm -f core *.core core.conftest.* &&
1973 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1974 exit $exit_status
1975 ' 0
1976 for ac_signal in 1 2 13 15; do
1977 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1978 done
1979 ac_signal=0
1980
1981 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1982 rm -f -r conftest* confdefs.h
1983
1984 $as_echo "/* confdefs.h */" > confdefs.h
1985
1986 # Predefined preprocessor variables.
1987
1988 cat >>confdefs.h <<_ACEOF
1989 #define PACKAGE_NAME "$PACKAGE_NAME"
1990 _ACEOF
1991
1992 cat >>confdefs.h <<_ACEOF
1993 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1994 _ACEOF
1995
1996 cat >>confdefs.h <<_ACEOF
1997 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1998 _ACEOF
1999
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE_STRING "$PACKAGE_STRING"
2002 _ACEOF
2003
2004 cat >>confdefs.h <<_ACEOF
2005 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2006 _ACEOF
2007
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_URL "$PACKAGE_URL"
2010 _ACEOF
2011
2012
2013 # Let the site file select an alternate cache file if it wants to.
2014 # Prefer an explicitly selected file to automatically selected ones.
2015 ac_site_file1=NONE
2016 ac_site_file2=NONE
2017 if test -n "$CONFIG_SITE"; then
2018 # We do not want a PATH search for config.site.
2019 case $CONFIG_SITE in #((
2020 -*) ac_site_file1=./$CONFIG_SITE;;
2021 */*) ac_site_file1=$CONFIG_SITE;;
2022 *) ac_site_file1=./$CONFIG_SITE;;
2023 esac
2024 elif test "x$prefix" != xNONE; then
2025 ac_site_file1=$prefix/share/config.site
2026 ac_site_file2=$prefix/etc/config.site
2027 else
2028 ac_site_file1=$ac_default_prefix/share/config.site
2029 ac_site_file2=$ac_default_prefix/etc/config.site
2030 fi
2031 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2032 do
2033 test "x$ac_site_file" = xNONE && continue
2034 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2036 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2037 sed 's/^/| /' "$ac_site_file" >&5
2038 . "$ac_site_file" \
2039 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2041 as_fn_error $? "failed to load site script $ac_site_file
2042 See \`config.log' for more details" "$LINENO" 5; }
2043 fi
2044 done
2045
2046 if test -r "$cache_file"; then
2047 # Some versions of bash will fail to source /dev/null (special files
2048 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2049 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2051 $as_echo "$as_me: loading cache $cache_file" >&6;}
2052 case $cache_file in
2053 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2054 *) . "./$cache_file";;
2055 esac
2056 fi
2057 else
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2059 $as_echo "$as_me: creating cache $cache_file" >&6;}
2060 >$cache_file
2061 fi
2062
2063 # Check that the precious variables saved in the cache have kept the same
2064 # value.
2065 ac_cache_corrupted=false
2066 for ac_var in $ac_precious_vars; do
2067 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2068 eval ac_new_set=\$ac_env_${ac_var}_set
2069 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2070 eval ac_new_val=\$ac_env_${ac_var}_value
2071 case $ac_old_set,$ac_new_set in
2072 set,)
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2074 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2075 ac_cache_corrupted=: ;;
2076 ,set)
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2078 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2079 ac_cache_corrupted=: ;;
2080 ,);;
2081 *)
2082 if test "x$ac_old_val" != "x$ac_new_val"; then
2083 # differences in whitespace do not lead to failure.
2084 ac_old_val_w=`echo x $ac_old_val`
2085 ac_new_val_w=`echo x $ac_new_val`
2086 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2088 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2089 ac_cache_corrupted=:
2090 else
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2092 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2093 eval $ac_var=\$ac_old_val
2094 fi
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2096 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2098 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2099 fi;;
2100 esac
2101 # Pass precious variables to config.status.
2102 if test "$ac_new_set" = set; then
2103 case $ac_new_val in
2104 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2105 *) ac_arg=$ac_var=$ac_new_val ;;
2106 esac
2107 case " $ac_configure_args " in
2108 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2109 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2110 esac
2111 fi
2112 done
2113 if $ac_cache_corrupted; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2117 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2118 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2119 fi
2120 ## -------------------- ##
2121 ## Main body of script. ##
2122 ## -------------------- ##
2123
2124 ac_ext=c
2125 ac_cpp='$CPP $CPPFLAGS'
2126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2129
2130
2131
2132 # Check whether --enable-x11 was given.
2133 if test "${enable_x11+set}" = set; then :
2134 enableval=$enable_x11; enable_x11=$enableval
2135 else
2136 enable_x11=yes
2137 fi
2138
2139
2140
2141 if test "$enable_x11" = no; then
2142 X11_BUILD_PACKAGE=no
2143 BUILD_PACKAGE_BOOL=False
2144 else
2145 # Safety check: Ensure that we are in the correct source directory.
2146
2147
2148 ac_config_headers="$ac_config_headers include/HsX11Config.h include/X11_extras_config.h"
2149
2150
2151 # Check for X11 include paths and libraries
2152 ac_ext=c
2153 ac_cpp='$CPP $CPPFLAGS'
2154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2157 if test -n "$ac_tool_prefix"; then
2158 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2159 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2161 $as_echo_n "checking for $ac_word... " >&6; }
2162 if ${ac_cv_prog_CC+:} false; then :
2163 $as_echo_n "(cached) " >&6
2164 else
2165 if test -n "$CC"; then
2166 ac_cv_prog_CC="$CC" # Let the user override the test.
2167 else
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2170 do
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 for ac_exec_ext in '' $ac_executable_extensions; do
2174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 break 2
2178 fi
2179 done
2180 done
2181 IFS=$as_save_IFS
2182
2183 fi
2184 fi
2185 CC=$ac_cv_prog_CC
2186 if test -n "$CC"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2188 $as_echo "$CC" >&6; }
2189 else
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2191 $as_echo "no" >&6; }
2192 fi
2193
2194
2195 fi
2196 if test -z "$ac_cv_prog_CC"; then
2197 ac_ct_CC=$CC
2198 # Extract the first word of "gcc", so it can be a program name with args.
2199 set dummy gcc; ac_word=$2
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2201 $as_echo_n "checking for $ac_word... " >&6; }
2202 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2203 $as_echo_n "(cached) " >&6
2204 else
2205 if test -n "$ac_ct_CC"; then
2206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215 ac_cv_prog_ac_ct_CC="gcc"
2216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 break 2
2218 fi
2219 done
2220 done
2221 IFS=$as_save_IFS
2222
2223 fi
2224 fi
2225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2226 if test -n "$ac_ct_CC"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2228 $as_echo "$ac_ct_CC" >&6; }
2229 else
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2231 $as_echo "no" >&6; }
2232 fi
2233
2234 if test "x$ac_ct_CC" = x; then
2235 CC=""
2236 else
2237 case $cross_compiling:$ac_tool_warned in
2238 yes:)
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2241 ac_tool_warned=yes ;;
2242 esac
2243 CC=$ac_ct_CC
2244 fi
2245 else
2246 CC="$ac_cv_prog_CC"
2247 fi
2248
2249 if test -z "$CC"; then
2250 if test -n "$ac_tool_prefix"; then
2251 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2252 set dummy ${ac_tool_prefix}cc; ac_word=$2
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2254 $as_echo_n "checking for $ac_word... " >&6; }
2255 if ${ac_cv_prog_CC+:} false; then :
2256 $as_echo_n "(cached) " >&6
2257 else
2258 if test -n "$CC"; then
2259 ac_cv_prog_CC="$CC" # Let the user override the test.
2260 else
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2263 do
2264 IFS=$as_save_IFS
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2268 ac_cv_prog_CC="${ac_tool_prefix}cc"
2269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2270 break 2
2271 fi
2272 done
2273 done
2274 IFS=$as_save_IFS
2275
2276 fi
2277 fi
2278 CC=$ac_cv_prog_CC
2279 if test -n "$CC"; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2281 $as_echo "$CC" >&6; }
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2284 $as_echo "no" >&6; }
2285 fi
2286
2287
2288 fi
2289 fi
2290 if test -z "$CC"; then
2291 # Extract the first word of "cc", so it can be a program name with args.
2292 set dummy cc; ac_word=$2
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2294 $as_echo_n "checking for $ac_word... " >&6; }
2295 if ${ac_cv_prog_CC+:} false; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 if test -n "$CC"; then
2299 ac_cv_prog_CC="$CC" # Let the user override the test.
2300 else
2301 ac_prog_rejected=no
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2310 ac_prog_rejected=yes
2311 continue
2312 fi
2313 ac_cv_prog_CC="cc"
2314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 break 2
2316 fi
2317 done
2318 done
2319 IFS=$as_save_IFS
2320
2321 if test $ac_prog_rejected = yes; then
2322 # We found a bogon in the path, so make sure we never use it.
2323 set dummy $ac_cv_prog_CC
2324 shift
2325 if test $# != 0; then
2326 # We chose a different compiler from the bogus one.
2327 # However, it has the same basename, so the bogon will be chosen
2328 # first if we set CC to just the basename; use the full file name.
2329 shift
2330 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2331 fi
2332 fi
2333 fi
2334 fi
2335 CC=$ac_cv_prog_CC
2336 if test -n "$CC"; then
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2338 $as_echo "$CC" >&6; }
2339 else
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2341 $as_echo "no" >&6; }
2342 fi
2343
2344
2345 fi
2346 if test -z "$CC"; then
2347 if test -n "$ac_tool_prefix"; then
2348 for ac_prog in cl.exe
2349 do
2350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2353 $as_echo_n "checking for $ac_word... " >&6; }
2354 if ${ac_cv_prog_CC+:} false; then :
2355 $as_echo_n "(cached) " >&6
2356 else
2357 if test -n "$CC"; then
2358 ac_cv_prog_CC="$CC" # Let the user override the test.
2359 else
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2362 do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 break 2
2370 fi
2371 done
2372 done
2373 IFS=$as_save_IFS
2374
2375 fi
2376 fi
2377 CC=$ac_cv_prog_CC
2378 if test -n "$CC"; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2380 $as_echo "$CC" >&6; }
2381 else
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2383 $as_echo "no" >&6; }
2384 fi
2385
2386
2387 test -n "$CC" && break
2388 done
2389 fi
2390 if test -z "$CC"; then
2391 ac_ct_CC=$CC
2392 for ac_prog in cl.exe
2393 do
2394 # Extract the first word of "$ac_prog", so it can be a program name with args.
2395 set dummy $ac_prog; ac_word=$2
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2397 $as_echo_n "checking for $ac_word... " >&6; }
2398 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2399 $as_echo_n "(cached) " >&6
2400 else
2401 if test -n "$ac_ct_CC"; then
2402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411 ac_cv_prog_ac_ct_CC="$ac_prog"
2412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415 done
2416 done
2417 IFS=$as_save_IFS
2418
2419 fi
2420 fi
2421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2422 if test -n "$ac_ct_CC"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2424 $as_echo "$ac_ct_CC" >&6; }
2425 else
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2427 $as_echo "no" >&6; }
2428 fi
2429
2430
2431 test -n "$ac_ct_CC" && break
2432 done
2433
2434 if test "x$ac_ct_CC" = x; then
2435 CC=""
2436 else
2437 case $cross_compiling:$ac_tool_warned in
2438 yes:)
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2441 ac_tool_warned=yes ;;
2442 esac
2443 CC=$ac_ct_CC
2444 fi
2445 fi
2446
2447 fi
2448
2449
2450 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2452 as_fn_error $? "no acceptable C compiler found in \$PATH
2453 See \`config.log' for more details" "$LINENO" 5; }
2454
2455 # Provide some information about the compiler.
2456 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2457 set X $ac_compile
2458 ac_compiler=$2
2459 for ac_option in --version -v -V -qversion; do
2460 { { ac_try="$ac_compiler $ac_option >&5"
2461 case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464 esac
2465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2466 $as_echo "$ac_try_echo"; } >&5
2467 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2468 ac_status=$?
2469 if test -s conftest.err; then
2470 sed '10a\
2471 ... rest of stderr output deleted ...
2472 10q' conftest.err >conftest.er1
2473 cat conftest.er1 >&5
2474 fi
2475 rm -f conftest.er1 conftest.err
2476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2477 test $ac_status = 0; }
2478 done
2479
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2482
2483 int
2484 main ()
2485 {
2486
2487 ;
2488 return 0;
2489 }
2490 _ACEOF
2491 ac_clean_files_save=$ac_clean_files
2492 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2493 # Try to create an executable without -o first, disregard a.out.
2494 # It will help us diagnose broken compilers, and finding out an intuition
2495 # of exeext.
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2497 $as_echo_n "checking whether the C compiler works... " >&6; }
2498 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2499
2500 # The possible output files:
2501 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2502
2503 ac_rmfiles=
2504 for ac_file in $ac_files
2505 do
2506 case $ac_file in
2507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2508 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2509 esac
2510 done
2511 rm -f $ac_rmfiles
2512
2513 if { { ac_try="$ac_link_default"
2514 case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2517 esac
2518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2519 $as_echo "$ac_try_echo"; } >&5
2520 (eval "$ac_link_default") 2>&5
2521 ac_status=$?
2522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2523 test $ac_status = 0; }; then :
2524 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2525 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2526 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2527 # so that the user can short-circuit this test for compilers unknown to
2528 # Autoconf.
2529 for ac_file in $ac_files ''
2530 do
2531 test -f "$ac_file" || continue
2532 case $ac_file in
2533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2534 ;;
2535 [ab].out )
2536 # We found the default executable, but exeext='' is most
2537 # certainly right.
2538 break;;
2539 *.* )
2540 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2541 then :; else
2542 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2543 fi
2544 # We set ac_cv_exeext here because the later test for it is not
2545 # safe: cross compilers may not add the suffix if given an `-o'
2546 # argument, so we may need to know it at that point already.
2547 # Even if this section looks crufty: it has the advantage of
2548 # actually working.
2549 break;;
2550 * )
2551 break;;
2552 esac
2553 done
2554 test "$ac_cv_exeext" = no && ac_cv_exeext=
2555
2556 else
2557 ac_file=''
2558 fi
2559 if test -z "$ac_file"; then :
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561 $as_echo "no" >&6; }
2562 $as_echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2564
2565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 as_fn_error 77 "C compiler cannot create executables
2568 See \`config.log' for more details" "$LINENO" 5; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2571 $as_echo "yes" >&6; }
2572 fi
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2574 $as_echo_n "checking for C compiler default output file name... " >&6; }
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2576 $as_echo "$ac_file" >&6; }
2577 ac_exeext=$ac_cv_exeext
2578
2579 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2580 ac_clean_files=$ac_clean_files_save
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2582 $as_echo_n "checking for suffix of executables... " >&6; }
2583 if { { ac_try="$ac_link"
2584 case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587 esac
2588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2589 $as_echo "$ac_try_echo"; } >&5
2590 (eval "$ac_link") 2>&5
2591 ac_status=$?
2592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2593 test $ac_status = 0; }; then :
2594 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2595 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2596 # work properly (i.e., refer to `conftest.exe'), while it won't with
2597 # `rm'.
2598 for ac_file in conftest.exe conftest conftest.*; do
2599 test -f "$ac_file" || continue
2600 case $ac_file in
2601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2603 break;;
2604 * ) break;;
2605 esac
2606 done
2607 else
2608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2611 See \`config.log' for more details" "$LINENO" 5; }
2612 fi
2613 rm -f conftest conftest$ac_cv_exeext
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2615 $as_echo "$ac_cv_exeext" >&6; }
2616
2617 rm -f conftest.$ac_ext
2618 EXEEXT=$ac_cv_exeext
2619 ac_exeext=$EXEEXT
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h. */
2622 #include <stdio.h>
2623 int
2624 main ()
2625 {
2626 FILE *f = fopen ("conftest.out", "w");
2627 return ferror (f) || fclose (f) != 0;
2628
2629 ;
2630 return 0;
2631 }
2632 _ACEOF
2633 ac_clean_files="$ac_clean_files conftest.out"
2634 # Check that the compiler produces executables we can run. If not, either
2635 # the compiler is broken, or we cross compile.
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2637 $as_echo_n "checking whether we are cross compiling... " >&6; }
2638 if test "$cross_compiling" != yes; then
2639 { { ac_try="$ac_link"
2640 case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643 esac
2644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2645 $as_echo "$ac_try_echo"; } >&5
2646 (eval "$ac_link") 2>&5
2647 ac_status=$?
2648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2649 test $ac_status = 0; }
2650 if { ac_try='./conftest$ac_cv_exeext'
2651 { { case "(($ac_try" in
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2654 esac
2655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2656 $as_echo "$ac_try_echo"; } >&5
2657 (eval "$ac_try") 2>&5
2658 ac_status=$?
2659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2660 test $ac_status = 0; }; }; then
2661 cross_compiling=no
2662 else
2663 if test "$cross_compiling" = maybe; then
2664 cross_compiling=yes
2665 else
2666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2668 as_fn_error $? "cannot run C compiled programs.
2669 If you meant to cross compile, use \`--host'.
2670 See \`config.log' for more details" "$LINENO" 5; }
2671 fi
2672 fi
2673 fi
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2675 $as_echo "$cross_compiling" >&6; }
2676
2677 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2678 ac_clean_files=$ac_clean_files_save
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2680 $as_echo_n "checking for suffix of object files... " >&6; }
2681 if ${ac_cv_objext+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h. */
2686
2687 int
2688 main ()
2689 {
2690
2691 ;
2692 return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.o conftest.obj
2696 if { { ac_try="$ac_compile"
2697 case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2700 esac
2701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2702 $as_echo "$ac_try_echo"; } >&5
2703 (eval "$ac_compile") 2>&5
2704 ac_status=$?
2705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2706 test $ac_status = 0; }; then :
2707 for ac_file in conftest.o conftest.obj conftest.*; do
2708 test -f "$ac_file" || continue;
2709 case $ac_file in
2710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2711 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2712 break;;
2713 esac
2714 done
2715 else
2716 $as_echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2718
2719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721 as_fn_error $? "cannot compute suffix of object files: cannot compile
2722 See \`config.log' for more details" "$LINENO" 5; }
2723 fi
2724 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2725 fi
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2727 $as_echo "$ac_cv_objext" >&6; }
2728 OBJEXT=$ac_cv_objext
2729 ac_objext=$OBJEXT
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2731 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2732 if ${ac_cv_c_compiler_gnu+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734 else
2735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2736 /* end confdefs.h. */
2737
2738 int
2739 main ()
2740 {
2741 #ifndef __GNUC__
2742 choke me
2743 #endif
2744
2745 ;
2746 return 0;
2747 }
2748 _ACEOF
2749 if ac_fn_c_try_compile "$LINENO"; then :
2750 ac_compiler_gnu=yes
2751 else
2752 ac_compiler_gnu=no
2753 fi
2754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2755 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2756
2757 fi
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2759 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2760 if test $ac_compiler_gnu = yes; then
2761 GCC=yes
2762 else
2763 GCC=
2764 fi
2765 ac_test_CFLAGS=${CFLAGS+set}
2766 ac_save_CFLAGS=$CFLAGS
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2768 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2769 if ${ac_cv_prog_cc_g+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 ac_save_c_werror_flag=$ac_c_werror_flag
2773 ac_c_werror_flag=yes
2774 ac_cv_prog_cc_g=no
2775 CFLAGS="-g"
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2778
2779 int
2780 main ()
2781 {
2782
2783 ;
2784 return 0;
2785 }
2786 _ACEOF
2787 if ac_fn_c_try_compile "$LINENO"; then :
2788 ac_cv_prog_cc_g=yes
2789 else
2790 CFLAGS=""
2791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792 /* end confdefs.h. */
2793
2794 int
2795 main ()
2796 {
2797
2798 ;
2799 return 0;
2800 }
2801 _ACEOF
2802 if ac_fn_c_try_compile "$LINENO"; then :
2803
2804 else
2805 ac_c_werror_flag=$ac_save_c_werror_flag
2806 CFLAGS="-g"
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2809
2810 int
2811 main ()
2812 {
2813
2814 ;
2815 return 0;
2816 }
2817 _ACEOF
2818 if ac_fn_c_try_compile "$LINENO"; then :
2819 ac_cv_prog_cc_g=yes
2820 fi
2821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2822 fi
2823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824 fi
2825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826 ac_c_werror_flag=$ac_save_c_werror_flag
2827 fi
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2829 $as_echo "$ac_cv_prog_cc_g" >&6; }
2830 if test "$ac_test_CFLAGS" = set; then
2831 CFLAGS=$ac_save_CFLAGS
2832 elif test $ac_cv_prog_cc_g = yes; then
2833 if test "$GCC" = yes; then
2834 CFLAGS="-g -O2"
2835 else
2836 CFLAGS="-g"
2837 fi
2838 else
2839 if test "$GCC" = yes; then
2840 CFLAGS="-O2"
2841 else
2842 CFLAGS=
2843 fi
2844 fi
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2846 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2847 if ${ac_cv_prog_cc_c89+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 ac_cv_prog_cc_c89=no
2851 ac_save_CC=$CC
2852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2853 /* end confdefs.h. */
2854 #include <stdarg.h>
2855 #include <stdio.h>
2856 struct stat;
2857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2858 struct buf { int x; };
2859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2860 static char *e (p, i)
2861 char **p;
2862 int i;
2863 {
2864 return p[i];
2865 }
2866 static char *f (char * (*g) (char **, int), char **p, ...)
2867 {
2868 char *s;
2869 va_list v;
2870 va_start (v,p);
2871 s = g (p, va_arg (v,int));
2872 va_end (v);
2873 return s;
2874 }
2875
2876 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2877 function prototypes and stuff, but not '\xHH' hex character constants.
2878 These don't provoke an error unfortunately, instead are silently treated
2879 as 'x'. The following induces an error, until -std is added to get
2880 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2881 array size at least. It's necessary to write '\x00'==0 to get something
2882 that's true only with -std. */
2883 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2884
2885 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2886 inside strings and character constants. */
2887 #define FOO(x) 'x'
2888 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2889
2890 int test (int i, double x);
2891 struct s1 {int (*f) (int a);};
2892 struct s2 {int (*f) (double a);};
2893 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2894 int argc;
2895 char **argv;
2896 int
2897 main ()
2898 {
2899 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2900 ;
2901 return 0;
2902 }
2903 _ACEOF
2904 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2905 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2906 do
2907 CC="$ac_save_CC $ac_arg"
2908 if ac_fn_c_try_compile "$LINENO"; then :
2909 ac_cv_prog_cc_c89=$ac_arg
2910 fi
2911 rm -f core conftest.err conftest.$ac_objext
2912 test "x$ac_cv_prog_cc_c89" != "xno" && break
2913 done
2914 rm -f conftest.$ac_ext
2915 CC=$ac_save_CC
2916
2917 fi
2918 # AC_CACHE_VAL
2919 case "x$ac_cv_prog_cc_c89" in
2920 x)
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2922 $as_echo "none needed" >&6; } ;;
2923 xno)
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2925 $as_echo "unsupported" >&6; } ;;
2926 *)
2927 CC="$CC $ac_cv_prog_cc_c89"
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2929 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2930 esac
2931 if test "x$ac_cv_prog_cc_c89" != xno; then :
2932
2933 fi
2934
2935 ac_ext=c
2936 ac_cpp='$CPP $CPPFLAGS'
2937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940
2941
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2948 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2949 # On Suns, sometimes $CPP names a directory.
2950 if test -n "$CPP" && test -d "$CPP"; then
2951 CPP=
2952 fi
2953 if test -z "$CPP"; then
2954 if ${ac_cv_prog_CPP+:} false; then :
2955 $as_echo_n "(cached) " >&6
2956 else
2957 # Double quotes because CPP needs to be expanded
2958 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2959 do
2960 ac_preproc_ok=false
2961 for ac_c_preproc_warn_flag in '' yes
2962 do
2963 # Use a header file that comes with gcc, so configuring glibc
2964 # with a fresh cross-compiler works.
2965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2966 # <limits.h> exists even on freestanding compilers.
2967 # On the NeXT, cc -E runs the code through the compiler's parser,
2968 # not just through cpp. "Syntax error" is here to catch this case.
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h. */
2971 #ifdef __STDC__
2972 # include <limits.h>
2973 #else
2974 # include <assert.h>
2975 #endif
2976 Syntax error
2977 _ACEOF
2978 if ac_fn_c_try_cpp "$LINENO"; then :
2979
2980 else
2981 # Broken: fails on valid input.
2982 continue
2983 fi
2984 rm -f conftest.err conftest.i conftest.$ac_ext
2985
2986 # OK, works on sane cases. Now check whether nonexistent headers
2987 # can be detected and how.
2988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2989 /* end confdefs.h. */
2990 #include <ac_nonexistent.h>
2991 _ACEOF
2992 if ac_fn_c_try_cpp "$LINENO"; then :
2993 # Broken: success on invalid input.
2994 continue
2995 else
2996 # Passes both tests.
2997 ac_preproc_ok=:
2998 break
2999 fi
3000 rm -f conftest.err conftest.i conftest.$ac_ext
3001
3002 done
3003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3004 rm -f conftest.i conftest.err conftest.$ac_ext
3005 if $ac_preproc_ok; then :
3006 break
3007 fi
3008
3009 done
3010 ac_cv_prog_CPP=$CPP
3011
3012 fi
3013 CPP=$ac_cv_prog_CPP
3014 else
3015 ac_cv_prog_CPP=$CPP
3016 fi
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3018 $as_echo "$CPP" >&6; }
3019 ac_preproc_ok=false
3020 for ac_c_preproc_warn_flag in '' yes
3021 do
3022 # Use a header file that comes with gcc, so configuring glibc
3023 # with a fresh cross-compiler works.
3024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3025 # <limits.h> exists even on freestanding compilers.
3026 # On the NeXT, cc -E runs the code through the compiler's parser,
3027 # not just through cpp. "Syntax error" is here to catch this case.
3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029 /* end confdefs.h. */
3030 #ifdef __STDC__
3031 # include <limits.h>
3032 #else
3033 # include <assert.h>
3034 #endif
3035 Syntax error
3036 _ACEOF
3037 if ac_fn_c_try_cpp "$LINENO"; then :
3038
3039 else
3040 # Broken: fails on valid input.
3041 continue
3042 fi
3043 rm -f conftest.err conftest.i conftest.$ac_ext
3044
3045 # OK, works on sane cases. Now check whether nonexistent headers
3046 # can be detected and how.
3047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048 /* end confdefs.h. */
3049 #include <ac_nonexistent.h>
3050 _ACEOF
3051 if ac_fn_c_try_cpp "$LINENO"; then :
3052 # Broken: success on invalid input.
3053 continue
3054 else
3055 # Passes both tests.
3056 ac_preproc_ok=:
3057 break
3058 fi
3059 rm -f conftest.err conftest.i conftest.$ac_ext
3060
3061 done
3062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3063 rm -f conftest.i conftest.err conftest.$ac_ext
3064 if $ac_preproc_ok; then :
3065
3066 else
3067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3070 See \`config.log' for more details" "$LINENO" 5; }
3071 fi
3072
3073 ac_ext=c
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078
3079
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
3081 $as_echo_n "checking for X... " >&6; }
3082
3083
3084 # Check whether --with-x was given.
3085 if test "${with_x+set}" = set; then :
3086 withval=$with_x;
3087 fi
3088
3089 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3090 if test "x$with_x" = xno; then
3091 # The user explicitly disabled X.
3092 have_x=disabled
3093 else
3094 case $x_includes,$x_libraries in #(
3095 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
3096 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 # One or both of the vars are not set, and there is no cached value.
3100 ac_x_includes=no ac_x_libraries=no
3101 rm -f -r conftest.dir
3102 if mkdir conftest.dir; then
3103 cd conftest.dir
3104 cat >Imakefile <<'_ACEOF'
3105 incroot:
3106 @echo incroot='${INCROOT}'
3107 usrlibdir:
3108 @echo usrlibdir='${USRLIBDIR}'
3109 libdir:
3110 @echo libdir='${LIBDIR}'
3111 _ACEOF
3112 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3113 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3114 for ac_var in incroot usrlibdir libdir; do
3115 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3116 done
3117 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3118 for ac_extension in a so sl dylib la dll; do
3119 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3120 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3121 ac_im_usrlibdir=$ac_im_libdir; break
3122 fi
3123 done
3124 # Screen out bogus values from the imake configuration. They are
3125 # bogus both because they are the default anyway, and because
3126 # using them would break gcc on systems where it needs fixed includes.
3127 case $ac_im_incroot in
3128 /usr/include) ac_x_includes= ;;
3129 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3130 esac
3131 case $ac_im_usrlibdir in
3132 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
3133 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3134 esac
3135 fi
3136 cd ..
3137 rm -f -r conftest.dir
3138 fi
3139
3140 # Standard set of common directories for X headers.
3141 # Check X11 before X11Rn because it is often a symlink to the current release.
3142 ac_x_header_dirs='
3143 /usr/X11/include
3144 /usr/X11R7/include
3145 /usr/X11R6/include
3146 /usr/X11R5/include
3147 /usr/X11R4/include
3148
3149 /usr/include/X11
3150 /usr/include/X11R7
3151 /usr/include/X11R6
3152 /usr/include/X11R5
3153 /usr/include/X11R4
3154
3155 /usr/local/X11/include
3156 /usr/local/X11R7/include
3157 /usr/local/X11R6/include
3158 /usr/local/X11R5/include
3159 /usr/local/X11R4/include
3160
3161 /usr/local/include/X11
3162 /usr/local/include/X11R7
3163 /usr/local/include/X11R6
3164 /usr/local/include/X11R5
3165 /usr/local/include/X11R4
3166
3167 /usr/X386/include
3168 /usr/x386/include
3169 /usr/XFree86/include/X11
3170
3171 /usr/include
3172 /usr/local/include
3173 /usr/unsupported/include
3174 /usr/athena/include
3175 /usr/local/x11r5/include
3176 /usr/lpp/Xamples/include
3177
3178 /usr/openwin/include
3179 /usr/openwin/share/include'
3180
3181 if test "$ac_x_includes" = no; then
3182 # Guess where to find include files, by looking for Xlib.h.
3183 # First, try using that file with no special directory specified.
3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185 /* end confdefs.h. */
3186 #include <X11/Xlib.h>
3187 _ACEOF
3188 if ac_fn_c_try_cpp "$LINENO"; then :
3189 # We can compile using X headers with no special include directory.
3190 ac_x_includes=
3191 else
3192 for ac_dir in $ac_x_header_dirs; do
3193 if test -r "$ac_dir/X11/Xlib.h"; then
3194 ac_x_includes=$ac_dir
3195 break
3196 fi
3197 done
3198 fi
3199 rm -f conftest.err conftest.i conftest.$ac_ext
3200 fi # $ac_x_includes = no
3201
3202 if test "$ac_x_libraries" = no; then
3203 # Check for the libraries.
3204 # See if we find them without any special options.
3205 # Don't add to $LIBS permanently.
3206 ac_save_LIBS=$LIBS
3207 LIBS="-lX11 $LIBS"
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3210 #include <X11/Xlib.h>
3211 int
3212 main ()
3213 {
3214 XrmInitialize ()
3215 ;
3216 return 0;
3217 }
3218 _ACEOF
3219 if ac_fn_c_try_link "$LINENO"; then :
3220 LIBS=$ac_save_LIBS
3221 # We can link X programs with no special library path.
3222 ac_x_libraries=
3223 else
3224 LIBS=$ac_save_LIBS
3225 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3226 do
3227 # Don't even attempt the hair of trying to link an X program!
3228 for ac_extension in a so sl dylib la dll; do
3229 if test -r "$ac_dir/libX11.$ac_extension"; then
3230 ac_x_libraries=$ac_dir
3231 break 2
3232 fi
3233 done
3234 done
3235 fi
3236 rm -f core conftest.err conftest.$ac_objext \
3237 conftest$ac_exeext conftest.$ac_ext
3238 fi # $ac_x_libraries = no
3239
3240 case $ac_x_includes,$ac_x_libraries in #(
3241 no,* | *,no | *\'*)
3242 # Didn't find X, or a directory has "'" in its name.
3243 ac_cv_have_x="have_x=no";; #(
3244 *)
3245 # Record where we found X for the cache.
3246 ac_cv_have_x="have_x=yes\
3247 ac_x_includes='$ac_x_includes'\
3248 ac_x_libraries='$ac_x_libraries'"
3249 esac
3250 fi
3251 ;; #(
3252 *) have_x=yes;;
3253 esac
3254 eval "$ac_cv_have_x"
3255 fi # $with_x != no
3256
3257 if test "$have_x" != yes; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
3259 $as_echo "$have_x" >&6; }
3260 no_x=yes
3261 else
3262 # If each of the values was on the command line, it overrides each guess.
3263 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3264 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3265 # Update the cache value to reflect the command line values.
3266 ac_cv_have_x="have_x=yes\
3267 ac_x_includes='$x_includes'\
3268 ac_x_libraries='$x_libraries'"
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
3270 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
3271 fi
3272
3273 if test "$no_x" = yes; then
3274 # Not all programs may use this symbol, but it does not hurt to define it.
3275
3276 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
3277
3278 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3279 else
3280 if test -n "$x_includes"; then
3281 X_CFLAGS="$X_CFLAGS -I$x_includes"
3282 fi
3283
3284 # It would also be nice to do this for all -L options, not just this one.
3285 if test -n "$x_libraries"; then
3286 X_LIBS="$X_LIBS -L$x_libraries"
3287 # For Solaris; some versions of Sun CC require a space after -R and
3288 # others require no space. Words are not sufficient . . . .
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
3290 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
3291 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3292 ac_xsave_c_werror_flag=$ac_c_werror_flag
3293 ac_c_werror_flag=yes
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3296
3297 int
3298 main ()
3299 {
3300
3301 ;
3302 return 0;
3303 }
3304 _ACEOF
3305 if ac_fn_c_try_link "$LINENO"; then :
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 X_LIBS="$X_LIBS -R$x_libraries"
3309 else
3310 LIBS="$ac_xsave_LIBS -R $x_libraries"
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3313
3314 int
3315 main ()
3316 {
3317
3318 ;
3319 return 0;
3320 }
3321 _ACEOF
3322 if ac_fn_c_try_link "$LINENO"; then :
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3325 X_LIBS="$X_LIBS -R $x_libraries"
3326 else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
3328 $as_echo "neither works" >&6; }
3329 fi
3330 rm -f core conftest.err conftest.$ac_objext \
3331 conftest$ac_exeext conftest.$ac_ext
3332 fi
3333 rm -f core conftest.err conftest.$ac_objext \
3334 conftest$ac_exeext conftest.$ac_ext
3335 ac_c_werror_flag=$ac_xsave_c_werror_flag
3336 LIBS=$ac_xsave_LIBS
3337 fi
3338
3339 # Check for system-dependent libraries X programs must link with.
3340 # Do this before checking for the system-independent R6 libraries
3341 # (-lICE), since we may need -lsocket or whatever for X linking.
3342
3343 if test "$ISC" = yes; then
3344 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3345 else
3346 # Martyn Johnson says this is needed for Ultrix, if the X
3347 # libraries were built with DECnet support. And Karl Berry says
3348 # the Alpha needs dnet_stub (dnet does not exist).
3349 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3352
3353 /* Override any GCC internal prototype to avoid an error.
3354 Use char because int might match the return type of a GCC
3355 builtin and then its argument prototype would still apply. */
3356 #ifdef __cplusplus
3357 extern "C"
3358 #endif
3359 char XOpenDisplay ();
3360 int
3361 main ()
3362 {
3363 return XOpenDisplay ();
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 if ac_fn_c_try_link "$LINENO"; then :
3369
3370 else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
3372 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
3373 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 ac_check_lib_save_LIBS=$LIBS
3377 LIBS="-ldnet $LIBS"
3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h. */
3380
3381 /* Override any GCC internal prototype to avoid an error.
3382 Use char because int might match the return type of a GCC
3383 builtin and then its argument prototype would still apply. */
3384 #ifdef __cplusplus
3385 extern "C"
3386 #endif
3387 char dnet_ntoa ();
3388 int
3389 main ()
3390 {
3391 return dnet_ntoa ();
3392 ;
3393 return 0;
3394 }
3395 _ACEOF
3396 if ac_fn_c_try_link "$LINENO"; then :
3397 ac_cv_lib_dnet_dnet_ntoa=yes
3398 else
3399 ac_cv_lib_dnet_dnet_ntoa=no
3400 fi
3401 rm -f core conftest.err conftest.$ac_objext \
3402 conftest$ac_exeext conftest.$ac_ext
3403 LIBS=$ac_check_lib_save_LIBS
3404 fi
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3406 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
3407 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
3408 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3409 fi
3410
3411 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
3413 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
3414 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 ac_check_lib_save_LIBS=$LIBS
3418 LIBS="-ldnet_stub $LIBS"
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421
3422 /* Override any GCC internal prototype to avoid an error.
3423 Use char because int might match the return type of a GCC
3424 builtin and then its argument prototype would still apply. */
3425 #ifdef __cplusplus
3426 extern "C"
3427 #endif
3428 char dnet_ntoa ();
3429 int
3430 main ()
3431 {
3432 return dnet_ntoa ();
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 if ac_fn_c_try_link "$LINENO"; then :
3438 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3439 else
3440 ac_cv_lib_dnet_stub_dnet_ntoa=no
3441 fi
3442 rm -f core conftest.err conftest.$ac_objext \
3443 conftest$ac_exeext conftest.$ac_ext
3444 LIBS=$ac_check_lib_save_LIBS
3445 fi
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3447 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
3448 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
3449 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3450 fi
3451
3452 fi
3453 fi
3454 rm -f core conftest.err conftest.$ac_objext \
3455 conftest$ac_exeext conftest.$ac_ext
3456 LIBS="$ac_xsave_LIBS"
3457
3458 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
3459 # to get the SysV transport functions.
3460 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3461 # needs -lnsl.
3462 # The nsl library prevents programs from opening the X display
3463 # on Irix 5.2, according to T.E. Dickey.
3464 # The functions gethostbyname, getservbyname, and inet_addr are
3465 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3466 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
3467 if test "x$ac_cv_func_gethostbyname" = xyes; then :
3468
3469 fi
3470
3471 if test $ac_cv_func_gethostbyname = no; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
3473 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
3474 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 ac_check_lib_save_LIBS=$LIBS
3478 LIBS="-lnsl $LIBS"
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481
3482 /* Override any GCC internal prototype to avoid an error.
3483 Use char because int might match the return type of a GCC
3484 builtin and then its argument prototype would still apply. */
3485 #ifdef __cplusplus
3486 extern "C"
3487 #endif
3488 char gethostbyname ();
3489 int
3490 main ()
3491 {
3492 return gethostbyname ();
3493 ;
3494 return 0;
3495 }
3496 _ACEOF
3497 if ac_fn_c_try_link "$LINENO"; then :
3498 ac_cv_lib_nsl_gethostbyname=yes
3499 else
3500 ac_cv_lib_nsl_gethostbyname=no
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext \
3503 conftest$ac_exeext conftest.$ac_ext
3504 LIBS=$ac_check_lib_save_LIBS
3505 fi
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
3507 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
3508 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
3509 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3510 fi
3511
3512 if test $ac_cv_lib_nsl_gethostbyname = no; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
3514 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
3515 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 ac_check_lib_save_LIBS=$LIBS
3519 LIBS="-lbsd $LIBS"
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3522
3523 /* Override any GCC internal prototype to avoid an error.
3524 Use char because int might match the return type of a GCC
3525 builtin and then its argument prototype would still apply. */
3526 #ifdef __cplusplus
3527 extern "C"
3528 #endif
3529 char gethostbyname ();
3530 int
3531 main ()
3532 {
3533 return gethostbyname ();
3534 ;
3535 return 0;
3536 }
3537 _ACEOF
3538 if ac_fn_c_try_link "$LINENO"; then :
3539 ac_cv_lib_bsd_gethostbyname=yes
3540 else
3541 ac_cv_lib_bsd_gethostbyname=no
3542 fi
3543 rm -f core conftest.err conftest.$ac_objext \
3544 conftest$ac_exeext conftest.$ac_ext
3545 LIBS=$ac_check_lib_save_LIBS
3546 fi
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
3548 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
3549 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
3550 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3551 fi
3552
3553 fi
3554 fi
3555
3556 # [email protected] says without -lsocket,
3557 # socket/setsockopt and other routines are undefined under SCO ODT
3558 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3559 # on later versions), says Simon Leinen: it contains gethostby*
3560 # variants that don't use the name server (or something). -lsocket
3561 # must be given before -lnsl if both are needed. We assume that
3562 # if connect needs -lnsl, so does gethostbyname.
3563 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
3564 if test "x$ac_cv_func_connect" = xyes; then :
3565
3566 fi
3567
3568 if test $ac_cv_func_connect = no; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
3570 $as_echo_n "checking for connect in -lsocket... " >&6; }
3571 if ${ac_cv_lib_socket_connect+:} false; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 ac_check_lib_save_LIBS=$LIBS
3575 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578
3579 /* Override any GCC internal prototype to avoid an error.
3580 Use char because int might match the return type of a GCC
3581 builtin and then its argument prototype would still apply. */
3582 #ifdef __cplusplus
3583 extern "C"
3584 #endif
3585 char connect ();
3586 int
3587 main ()
3588 {
3589 return connect ();
3590 ;
3591 return 0;
3592 }
3593 _ACEOF
3594 if ac_fn_c_try_link "$LINENO"; then :
3595 ac_cv_lib_socket_connect=yes
3596 else
3597 ac_cv_lib_socket_connect=no
3598 fi
3599 rm -f core conftest.err conftest.$ac_objext \
3600 conftest$ac_exeext conftest.$ac_ext
3601 LIBS=$ac_check_lib_save_LIBS
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
3604 $as_echo "$ac_cv_lib_socket_connect" >&6; }
3605 if test "x$ac_cv_lib_socket_connect" = xyes; then :
3606 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3607 fi
3608
3609 fi
3610
3611 # Guillermo Gomez says -lposix is necessary on A/UX.
3612 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
3613 if test "x$ac_cv_func_remove" = xyes; then :
3614
3615 fi
3616
3617 if test $ac_cv_func_remove = no; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
3619 $as_echo_n "checking for remove in -lposix... " >&6; }
3620 if ${ac_cv_lib_posix_remove+:} false; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 ac_check_lib_save_LIBS=$LIBS
3624 LIBS="-lposix $LIBS"
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3627
3628 /* Override any GCC internal prototype to avoid an error.
3629 Use char because int might match the return type of a GCC
3630 builtin and then its argument prototype would still apply. */
3631 #ifdef __cplusplus
3632 extern "C"
3633 #endif
3634 char remove ();
3635 int
3636 main ()
3637 {
3638 return remove ();
3639 ;
3640 return 0;
3641 }
3642 _ACEOF
3643 if ac_fn_c_try_link "$LINENO"; then :
3644 ac_cv_lib_posix_remove=yes
3645 else
3646 ac_cv_lib_posix_remove=no
3647 fi
3648 rm -f core conftest.err conftest.$ac_objext \
3649 conftest$ac_exeext conftest.$ac_ext
3650 LIBS=$ac_check_lib_save_LIBS
3651 fi
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
3653 $as_echo "$ac_cv_lib_posix_remove" >&6; }
3654 if test "x$ac_cv_lib_posix_remove" = xyes; then :
3655 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3656 fi
3657
3658 fi
3659
3660 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3661 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
3662 if test "x$ac_cv_func_shmat" = xyes; then :
3663
3664 fi
3665
3666 if test $ac_cv_func_shmat = no; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
3668 $as_echo_n "checking for shmat in -lipc... " >&6; }
3669 if ${ac_cv_lib_ipc_shmat+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 ac_check_lib_save_LIBS=$LIBS
3673 LIBS="-lipc $LIBS"
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3676
3677 /* Override any GCC internal prototype to avoid an error.
3678 Use char because int might match the return type of a GCC
3679 builtin and then its argument prototype would still apply. */
3680 #ifdef __cplusplus
3681 extern "C"
3682 #endif
3683 char shmat ();
3684 int
3685 main ()
3686 {
3687 return shmat ();
3688 ;
3689 return 0;
3690 }
3691 _ACEOF
3692 if ac_fn_c_try_link "$LINENO"; then :
3693 ac_cv_lib_ipc_shmat=yes
3694 else
3695 ac_cv_lib_ipc_shmat=no
3696 fi
3697 rm -f core conftest.err conftest.$ac_objext \
3698 conftest$ac_exeext conftest.$ac_ext
3699 LIBS=$ac_check_lib_save_LIBS
3700 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
3702 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
3703 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
3704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3705 fi
3706
3707 fi
3708 fi
3709
3710 # Check for libraries that X11R6 Xt/Xaw programs need.
3711 ac_save_LDFLAGS=$LDFLAGS
3712 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3713 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3714 # check for ICE first), but we must link in the order -lSM -lICE or
3715 # we get undefined symbols. So assume we have SM if we have ICE.
3716 # These have to be linked with before -lX11, unlike the other
3717 # libraries we check for below, so use a different variable.
3718 # John Interrante, Karl Berry
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
3720 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
3721 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 ac_check_lib_save_LIBS=$LIBS
3725 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 /* Override any GCC internal prototype to avoid an error.
3730 Use char because int might match the return type of a GCC
3731 builtin and then its argument prototype would still apply. */
3732 #ifdef __cplusplus
3733 extern "C"
3734 #endif
3735 char IceConnectionNumber ();
3736 int
3737 main ()
3738 {
3739 return IceConnectionNumber ();
3740 ;
3741 return 0;
3742 }
3743 _ACEOF
3744 if ac_fn_c_try_link "$LINENO"; then :
3745 ac_cv_lib_ICE_IceConnectionNumber=yes
3746 else
3747 ac_cv_lib_ICE_IceConnectionNumber=no
3748 fi
3749 rm -f core conftest.err conftest.$ac_objext \
3750 conftest$ac_exeext conftest.$ac_ext
3751 LIBS=$ac_check_lib_save_LIBS
3752 fi
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3754 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
3755 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
3756 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3757 fi
3758
3759 LDFLAGS=$ac_save_LDFLAGS
3760
3761 fi
3762
3763
3764 # AC_PATH_XTRA doesn't actually check that the C compiler can
3765 # really include the X headers, so double-check here. In particular,
3766 # this will catch the case of using a mingw32 gcc on a Cygwin system:
3767 # Cygwin has the X headers & libs installed, but the mingw32 gcc can't
3768 # use them, and we want to disable the package in this case.
3769 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3772 #include <X11/Xlib.h>
3773 _ACEOF
3774 if ac_fn_c_try_cpp "$LINENO"; then :
3775
3776 else
3777 no_x=yes
3778 fi
3779 rm -f conftest.err conftest.i conftest.$ac_ext
3780
3781 # If there's some oddball X11 include path, we need it to check there for
3782 # Xinerama headers.
3783 if test -n "$x_includes"; then
3784 CPPFLAGS="$CPPFLAGS -I$x_includes"
3785 fi
3786
3787 # Build the package if we found X11 stuff
3788 if test "$no_x" = yes; then
3789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3791 as_fn_error $? "X11 libraries not found, so X11 package cannot be built
3792 See \`config.log' for more details" "$LINENO" 5; }
3793 else
3794 X11_BUILD_PACKAGE=yes
3795 BUILD_PACKAGE_BOOL=True
3796 fi
3797 fi
3798
3799
3800
3801
3802 # Define CPP variables used in package.conf.in
3803 if test "$X11_BUILD_PACKAGE" = yes; then
3804
3805
3806 cat >>confdefs.h <<_ACEOF
3807 #define X_CFLAGS `echo '' $X_CFLAGS | sed -e 's/-[^ ]*/,"&"/g' -e 's/^ *,//'`
3808 _ACEOF
3809
3810
3811
3812 cat >>confdefs.h <<_ACEOF
3813 #define X_LIBS `echo '' $X_LIBS | sed -e 's/-[^ ]*/,"&"/g' -e 's/^ *,//'`
3814 _ACEOF
3815
3816 fi
3817
3818
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xinerama" >&5
3820 $as_echo_n "checking whether to build Xinerama... " >&6; }
3821
3822 # Check whether --with-xinerama was given.
3823 if test "${with_xinerama+set}" = set; then :
3824 withval=$with_xinerama;
3825 else
3826 with_xinerama=yes
3827 fi
3828
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xinerama" >&5
3830 $as_echo "$with_xinerama" >&6; }
3831
3832 if test "$with_xinerama" = yes; then
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3834 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3835 if ${ac_cv_path_GREP+:} false; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 if test -z "$GREP"; then
3839 ac_path_GREP_found=false
3840 # Loop through the user's path and test for each of PROGNAME-LIST
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3843 do
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_prog in grep ggrep; do
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3849 as_fn_executable_p "$ac_path_GREP" || continue
3850 # Check for GNU ac_path_GREP and select it if it is found.
3851 # Check for GNU $ac_path_GREP
3852 case `"$ac_path_GREP" --version 2>&1` in
3853 *GNU*)
3854 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3855 *)
3856 ac_count=0
3857 $as_echo_n 0123456789 >"conftest.in"
3858 while :
3859 do
3860 cat "conftest.in" "conftest.in" >"conftest.tmp"
3861 mv "conftest.tmp" "conftest.in"
3862 cp "conftest.in" "conftest.nl"
3863 $as_echo 'GREP' >> "conftest.nl"
3864 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3866 as_fn_arith $ac_count + 1 && ac_count=$as_val
3867 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3868 # Best one so far, save it but keep looking for a better one
3869 ac_cv_path_GREP="$ac_path_GREP"
3870 ac_path_GREP_max=$ac_count
3871 fi
3872 # 10*(2^10) chars as input seems more than enough
3873 test $ac_count -gt 10 && break
3874 done
3875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3876 esac
3877
3878 $ac_path_GREP_found && break 3
3879 done
3880 done
3881 done
3882 IFS=$as_save_IFS
3883 if test -z "$ac_cv_path_GREP"; then
3884 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3885 fi
3886 else
3887 ac_cv_path_GREP=$GREP
3888 fi
3889
3890 fi
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3892 $as_echo "$ac_cv_path_GREP" >&6; }
3893 GREP="$ac_cv_path_GREP"
3894
3895
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3897 $as_echo_n "checking for egrep... " >&6; }
3898 if ${ac_cv_path_EGREP+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3902 then ac_cv_path_EGREP="$GREP -E"
3903 else
3904 if test -z "$EGREP"; then
3905 ac_path_EGREP_found=false
3906 # Loop through the user's path and test for each of PROGNAME-LIST
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3909 do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_prog in egrep; do
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3915 as_fn_executable_p "$ac_path_EGREP" || continue
3916 # Check for GNU ac_path_EGREP and select it if it is found.
3917 # Check for GNU $ac_path_EGREP
3918 case `"$ac_path_EGREP" --version 2>&1` in
3919 *GNU*)
3920 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3921 *)
3922 ac_count=0
3923 $as_echo_n 0123456789 >"conftest.in"
3924 while :
3925 do
3926 cat "conftest.in" "conftest.in" >"conftest.tmp"
3927 mv "conftest.tmp" "conftest.in"
3928 cp "conftest.in" "conftest.nl"
3929 $as_echo 'EGREP' >> "conftest.nl"
3930 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3932 as_fn_arith $ac_count + 1 && ac_count=$as_val
3933 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3934 # Best one so far, save it but keep looking for a better one
3935 ac_cv_path_EGREP="$ac_path_EGREP"
3936 ac_path_EGREP_max=$ac_count
3937 fi
3938 # 10*(2^10) chars as input seems more than enough
3939 test $ac_count -gt 10 && break
3940 done
3941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3942 esac
3943
3944 $ac_path_EGREP_found && break 3
3945 done
3946 done
3947 done
3948 IFS=$as_save_IFS
3949 if test -z "$ac_cv_path_EGREP"; then
3950 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3951 fi
3952 else
3953 ac_cv_path_EGREP=$EGREP
3954 fi
3955
3956 fi
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3959 $as_echo "$ac_cv_path_EGREP" >&6; }
3960 EGREP="$ac_cv_path_EGREP"
3961
3962
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3964 $as_echo_n "checking for ANSI C header files... " >&6; }
3965 if ${ac_cv_header_stdc+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970 #include <stdlib.h>
3971 #include <stdarg.h>
3972 #include <string.h>
3973 #include <float.h>
3974
3975 int
3976 main ()
3977 {
3978
3979 ;
3980 return 0;
3981 }
3982 _ACEOF
3983 if ac_fn_c_try_compile "$LINENO"; then :
3984 ac_cv_header_stdc=yes
3985 else
3986 ac_cv_header_stdc=no
3987 fi
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989
3990 if test $ac_cv_header_stdc = yes; then
3991 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994 #include <string.h>
3995
3996 _ACEOF
3997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3998 $EGREP "memchr" >/dev/null 2>&1; then :
3999
4000 else
4001 ac_cv_header_stdc=no
4002 fi
4003 rm -f conftest*
4004
4005 fi
4006
4007 if test $ac_cv_header_stdc = yes; then
4008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011 #include <stdlib.h>
4012
4013 _ACEOF
4014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4015 $EGREP "free" >/dev/null 2>&1; then :
4016
4017 else
4018 ac_cv_header_stdc=no
4019 fi
4020 rm -f conftest*
4021
4022 fi
4023
4024 if test $ac_cv_header_stdc = yes; then
4025 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4026 if test "$cross_compiling" = yes; then :
4027 :
4028 else
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4031 #include <ctype.h>
4032 #include <stdlib.h>
4033 #if ((' ' & 0x0FF) == 0x020)
4034 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4035 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4036 #else
4037 # define ISLOWER(c) \
4038 (('a' <= (c) && (c) <= 'i') \
4039 || ('j' <= (c) && (c) <= 'r') \
4040 || ('s' <= (c) && (c) <= 'z'))
4041 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4042 #endif
4043
4044 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4045 int
4046 main ()
4047 {
4048 int i;
4049 for (i = 0; i < 256; i++)
4050 if (XOR (islower (i), ISLOWER (i))
4051 || toupper (i) != TOUPPER (i))
4052 return 2;
4053 return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_c_try_run "$LINENO"; then :
4057
4058 else
4059 ac_cv_header_stdc=no
4060 fi
4061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4062 conftest.$ac_objext conftest.beam conftest.$ac_ext
4063 fi
4064
4065 fi
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4068 $as_echo "$ac_cv_header_stdc" >&6; }
4069 if test $ac_cv_header_stdc = yes; then
4070
4071 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4072
4073 fi
4074
4075 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4076 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4077 inttypes.h stdint.h unistd.h
4078 do :
4079 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4080 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4081 "
4082 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4083 cat >>confdefs.h <<_ACEOF
4084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4085 _ACEOF
4086
4087 fi
4088
4089 done
4090
4091
4092 for ac_header in X11/extensions/Xinerama.h
4093 do :
4094 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
4095 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
4096 cat >>confdefs.h <<_ACEOF
4097 #define HAVE_X11_EXTENSIONS_XINERAMA_H 1
4098 _ACEOF
4099 have_xinerama=yes
4100 fi
4101
4102 done
4103
4104 if test "$have_xinerama" = yes; then
4105 EXTRA_LIBRARIES="Xinerama Xext"
4106 else
4107 echo "WARNING: Xinerama headers not found. Building without Xinerama support"
4108 fi
4109 else
4110 echo "WARNING: Building without Xinerama support per user request"
4111 fi
4112
4113 for ac_header in X11/extensions/Xrandr.h
4114 do :
4115 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
4116 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
4117 cat >>confdefs.h <<_ACEOF
4118 #define HAVE_X11_EXTENSIONS_XRANDR_H 1
4119 _ACEOF
4120 have_xrandr=yes
4121 fi
4122
4123 done
4124
4125 if ! test "$have_xrandr" = yes; then
4126 as_fn_error $? "X11/extensions/Xrandr.h (from libXrandr) is required" "$LINENO" 5
4127 fi
4128
4129 for ac_header in X11/extensions/scrnsaver.h
4130 do :
4131 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "$ac_includes_default"
4132 if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
4133 cat >>confdefs.h <<_ACEOF
4134 #define HAVE_X11_EXTENSIONS_SCRNSAVER_H 1
4135 _ACEOF
4136 have_xscreensaver=yes
4137 fi
4138
4139 done
4140
4141 if ! test "$have_xscreensaver" = yes; then
4142 as_fn_error $? "X11/extensions/scrnsaver.h (from libXss) is required" "$LINENO" 5
4143 fi
4144 EXTRA_LIBRARIES="Xss $EXTRA_LIBRARIES"
4145
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include X.org keysyms" >&5
4147 $as_echo_n "checking whether to include X.org keysyms... " >&6; }
4148
4149 # Check whether --with-xorg-keysym was given.
4150 if test "${with_xorg_keysym+set}" = set; then :
4151 withval=$with_xorg_keysym;
4152 else
4153 with_xorg_keysym=yes
4154 fi
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xorg_keysym" >&5
4157 $as_echo "$with_xorg_keysym" >&6; }
4158
4159 if test "$with_xorg_keysym" = yes; then
4160 for ac_header in X11/keysym.h
4161 do :
4162 ac_fn_c_check_header_mongrel "$LINENO" "X11/keysym.h" "ac_cv_header_X11_keysym_h" "$ac_includes_default"
4163 if test "x$ac_cv_header_X11_keysym_h" = xyes; then :
4164 cat >>confdefs.h <<_ACEOF
4165 #define HAVE_X11_KEYSYM_H 1
4166 _ACEOF
4167 have_keysym=yes
4168 fi
4169
4170 done
4171
4172 if ! test "$have_keysym" = yes; then
4173 echo "WARNING: Couldn't find <X11/keysym.h> for X.org keysyms"
4174 fi
4175
4176 for ac_header in X11/DECkeysym.h
4177 do :
4178 ac_fn_c_check_header_mongrel "$LINENO" "X11/DECkeysym.h" "ac_cv_header_X11_DECkeysym_h" "$ac_includes_default"
4179 if test "x$ac_cv_header_X11_DECkeysym_h" = xyes; then :
4180 cat >>confdefs.h <<_ACEOF
4181 #define HAVE_X11_DECKEYSYM_H 1
4182 _ACEOF
4183 have_dec_keysym=yes
4184 fi
4185
4186 done
4187
4188 if ! test "$have_dec_keysym" = yes; then
4189 echo "WARNING: Couldn't find <X11/DECkeysym.h> for X.org keysyms"
4190 fi
4191
4192 for ac_header in X11/Sunkeysym.h
4193 do :
4194 ac_fn_c_check_header_mongrel "$LINENO" "X11/Sunkeysym.h" "ac_cv_header_X11_Sunkeysym_h" "$ac_includes_default"
4195 if test "x$ac_cv_header_X11_Sunkeysym_h" = xyes; then :
4196 cat >>confdefs.h <<_ACEOF
4197 #define HAVE_X11_SUNKEYSYM_H 1
4198 _ACEOF
4199 have_sun_keysym=yes
4200 fi
4201
4202 done
4203
4204 if ! test "$have_sun_keysym" = yes; then
4205 echo "WARNING: Couldn't find <X11/Sunkeysym.h> for X.org keysyms"
4206 fi
4207
4208 for ac_header in X11/ap_keysym.h
4209 do :
4210 ac_fn_c_check_header_mongrel "$LINENO" "X11/ap_keysym.h" "ac_cv_header_X11_ap_keysym_h" "$ac_includes_default"
4211 if test "x$ac_cv_header_X11_ap_keysym_h" = xyes; then :
4212 cat >>confdefs.h <<_ACEOF
4213 #define HAVE_X11_AP_KEYSYM_H 1
4214 _ACEOF
4215 have_ap_keysym=yes
4216 fi
4217
4218 done
4219
4220 if ! test "$have_ap_keysym" = yes; then
4221 echo "WARNING: Couldn't find <X11/ap_keysym.h> for X.org keysyms"
4222 fi
4223
4224 for ac_header in X11/HPkeysym.h
4225 do :
4226 ac_fn_c_check_header_mongrel "$LINENO" "X11/HPkeysym.h" "ac_cv_header_X11_HPkeysym_h" "$ac_includes_default"
4227 if test "x$ac_cv_header_X11_HPkeysym_h" = xyes; then :
4228 cat >>confdefs.h <<_ACEOF
4229 #define HAVE_X11_HPKEYSYM_H 1
4230 _ACEOF
4231 have_hp_keysym=yes
4232 fi
4233
4234 done
4235
4236 if ! test "$have_hp_keysym" = yes; then
4237 echo "WARNING: Couldn't find <X11/HPkeysym.h> for X.org keysyms"
4238 fi
4239
4240 for ac_header in X11/XF86keysym.h
4241 do :
4242 ac_fn_c_check_header_mongrel "$LINENO" "X11/XF86keysym.h" "ac_cv_header_X11_XF86keysym_h" "$ac_includes_default"
4243 if test "x$ac_cv_header_X11_XF86keysym_h" = xyes; then :
4244 cat >>confdefs.h <<_ACEOF
4245 #define HAVE_X11_XF86KEYSYM_H 1
4246 _ACEOF
4247 have_xf86_keysym=yes
4248 fi
4249
4250 done
4251
4252 if ! test "$have_xf86_keysym" = yes; then
4253 echo "WARNING: Couldn't find <X11/XF86keysym.h> for X.org keysyms"
4254 fi
4255
4256 for ac_header in X11/keysymdef.h
4257 do :
4258 ac_fn_c_check_header_mongrel "$LINENO" "X11/keysymdef.h" "ac_cv_header_X11_keysymdef_h" "$ac_includes_default"
4259 if test "x$ac_cv_header_X11_keysymdef_h" = xyes; then :
4260 cat >>confdefs.h <<_ACEOF
4261 #define HAVE_X11_KEYSYMDEF_H 1
4262 _ACEOF
4263 have_keysymdef=yes
4264 fi
4265
4266 done
4267
4268 if ! test "$have_keysymdef" = yes; then
4269 echo "WARNING: Couldn't find <X11/keysymdef.h> for X.org keysyms"
4270 fi
4271
4272 for ac_header in X11/cursorfont.h
4273 do :
4274 ac_fn_c_check_header_mongrel "$LINENO" "X11/cursorfont.h" "ac_cv_header_X11_cursorfont_h" "$ac_includes_default"
4275 if test "x$ac_cv_header_X11_cursorfont_h" = xyes; then :
4276 cat >>confdefs.h <<_ACEOF
4277 #define HAVE_X11_CURSORFONT_H 1
4278 _ACEOF
4279 have_cursorfont=yes
4280 fi
4281
4282 done
4283
4284 if ! test "$have_cursorfont" = yes; then
4285 as_fn_error $? "X11/cursorfont.h (from libx11) is required" "$LINENO" 5
4286 fi
4287 fi
4288
4289
4290
4291
4292
4293 X_LIBRARIES="$x_libraries"
4294
4295
4296 ac_config_files="$ac_config_files config.mk X11.buildinfo"
4297
4298 cat >confcache <<\_ACEOF
4299 # This file is a shell script that caches the results of configure
4300 # tests run on this system so they can be shared between configure
4301 # scripts and configure runs, see configure's option --config-cache.
4302 # It is not useful on other systems. If it contains results you don't
4303 # want to keep, you may remove or edit it.
4304 #
4305 # config.status only pays attention to the cache file if you give it
4306 # the --recheck option to rerun configure.
4307 #
4308 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4309 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4310 # following values.
4311
4312 _ACEOF
4313
4314 # The following way of writing the cache mishandles newlines in values,
4315 # but we know of no workaround that is simple, portable, and efficient.
4316 # So, we kill variables containing newlines.
4317 # Ultrix sh set writes to stderr and can't be redirected directly,
4318 # and sets the high bit in the cache file unless we assign to the vars.
4319 (
4320 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4321 eval ac_val=\$$ac_var
4322 case $ac_val in #(
4323 *${as_nl}*)
4324 case $ac_var in #(
4325 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4327 esac
4328 case $ac_var in #(
4329 _ | IFS | as_nl) ;; #(
4330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4331 *) { eval $ac_var=; unset $ac_var;} ;;
4332 esac ;;
4333 esac
4334 done
4335
4336 (set) 2>&1 |
4337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4338 *${as_nl}ac_space=\ *)
4339 # `set' does not quote correctly, so add quotes: double-quote
4340 # substitution turns \\\\ into \\, and sed turns \\ into \.
4341 sed -n \
4342 "s/'/'\\\\''/g;
4343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4344 ;; #(
4345 *)
4346 # `set' quotes correctly as required by POSIX, so do not add quotes.
4347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4348 ;;
4349 esac |
4350 sort
4351 ) |
4352 sed '
4353 /^ac_cv_env_/b end
4354 t clear
4355 :clear
4356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4357 t end
4358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4359 :end' >>confcache
4360 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4361 if test -w "$cache_file"; then
4362 if test "x$cache_file" != "x/dev/null"; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4364 $as_echo "$as_me: updating cache $cache_file" >&6;}
4365 if test ! -f "$cache_file" || test -h "$cache_file"; then
4366 cat confcache >"$cache_file"
4367 else
4368 case $cache_file in #(
4369 */* | ?:*)
4370 mv -f confcache "$cache_file"$$ &&
4371 mv -f "$cache_file"$$ "$cache_file" ;; #(
4372 *)
4373 mv -f confcache "$cache_file" ;;
4374 esac
4375 fi
4376 fi
4377 else
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4379 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4380 fi
4381 fi
4382 rm -f confcache
4383
4384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4385 # Let make expand exec_prefix.
4386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4387
4388 DEFS=-DHAVE_CONFIG_H
4389
4390 ac_libobjs=
4391 ac_ltlibobjs=
4392 U=
4393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4394 # 1. Remove the extension, and $U if already installed.
4395 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4396 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4397 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4398 # will be set to the directory where LIBOBJS objects are built.
4399 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4400 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4401 done
4402 LIBOBJS=$ac_libobjs
4403
4404 LTLIBOBJS=$ac_ltlibobjs
4405
4406
4407
4408 : "${CONFIG_STATUS=./config.status}"
4409 ac_write_fail=0
4410 ac_clean_files_save=$ac_clean_files
4411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4413 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4414 as_write_fail=0
4415 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4416 #! $SHELL
4417 # Generated by $as_me.
4418 # Run this file to recreate the current configuration.
4419 # Compiler output produced by configure, useful for debugging
4420 # configure, is in config.log if it exists.
4421
4422 debug=false
4423 ac_cs_recheck=false
4424 ac_cs_silent=false
4425
4426 SHELL=\${CONFIG_SHELL-$SHELL}
4427 export SHELL
4428 _ASEOF
4429 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4430 ## -------------------- ##
4431 ## M4sh Initialization. ##
4432 ## -------------------- ##
4433
4434 # Be more Bourne compatible
4435 DUALCASE=1; export DUALCASE # for MKS sh
4436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4437 emulate sh
4438 NULLCMD=:
4439 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4440 # is contrary to our usage. Disable this feature.
4441 alias -g '${1+"$@"}'='"$@"'
4442 setopt NO_GLOB_SUBST
4443 else
4444 case `(set -o) 2>/dev/null` in #(
4445 *posix*) :
4446 set -o posix ;; #(
4447 *) :
4448 ;;
4449 esac
4450 fi
4451
4452
4453 as_nl='
4454 '
4455 export as_nl
4456 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4457 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4460 # Prefer a ksh shell builtin over an external printf program on Solaris,
4461 # but without wasting forks for bash or zsh.
4462 if test -z "$BASH_VERSION$ZSH_VERSION" \
4463 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4464 as_echo='print -r --'
4465 as_echo_n='print -rn --'
4466 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4467 as_echo='printf %s\n'
4468 as_echo_n='printf %s'
4469 else
4470 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4471 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4472 as_echo_n='/usr/ucb/echo -n'
4473 else
4474 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4475 as_echo_n_body='eval
4476 arg=$1;
4477 case $arg in #(
4478 *"$as_nl"*)
4479 expr "X$arg" : "X\\(.*\\)$as_nl";
4480 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4481 esac;
4482 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4483 '
4484 export as_echo_n_body
4485 as_echo_n='sh -c $as_echo_n_body as_echo'
4486 fi
4487 export as_echo_body
4488 as_echo='sh -c $as_echo_body as_echo'
4489 fi
4490
4491 # The user is always right.
4492 if test "${PATH_SEPARATOR+set}" != set; then
4493 PATH_SEPARATOR=:
4494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4495 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4496 PATH_SEPARATOR=';'
4497 }
4498 fi
4499
4500
4501 # IFS
4502 # We need space, tab and new line, in precisely that order. Quoting is
4503 # there to prevent editors from complaining about space-tab.
4504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4505 # splitting by setting IFS to empty value.)
4506 IFS=" "" $as_nl"
4507
4508 # Find who we are. Look in the path if we contain no directory separator.
4509 as_myself=
4510 case $0 in #((
4511 *[\\/]* ) as_myself=$0 ;;
4512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4518 done
4519 IFS=$as_save_IFS
4520
4521 ;;
4522 esac
4523 # We did not find ourselves, most probably we were run as `sh COMMAND'
4524 # in which case we are not to be found in the path.
4525 if test "x$as_myself" = x; then
4526 as_myself=$0
4527 fi
4528 if test ! -f "$as_myself"; then
4529 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4530 exit 1
4531 fi
4532
4533 # Unset variables that we do not need and which cause bugs (e.g. in
4534 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4535 # suppresses any "Segmentation fault" message there. '((' could
4536 # trigger a bug in pdksh 5.2.14.
4537 for as_var in BASH_ENV ENV MAIL MAILPATH
4538 do eval test x\${$as_var+set} = xset \
4539 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4540 done
4541 PS1='$ '
4542 PS2='> '
4543 PS4='+ '
4544
4545 # NLS nuisances.
4546 LC_ALL=C
4547 export LC_ALL
4548 LANGUAGE=C
4549 export LANGUAGE
4550
4551 # CDPATH.
4552 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4553
4554
4555 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4556 # ----------------------------------------
4557 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4558 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4559 # script with STATUS, using 1 if that was 0.
4560 as_fn_error ()
4561 {
4562 as_status=$1; test $as_status -eq 0 && as_status=1
4563 if test "$4"; then
4564 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4565 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4566 fi
4567 $as_echo "$as_me: error: $2" >&2
4568 as_fn_exit $as_status
4569 } # as_fn_error
4570
4571
4572 # as_fn_set_status STATUS
4573 # -----------------------
4574 # Set $? to STATUS, without forking.
4575 as_fn_set_status ()
4576 {
4577 return $1
4578 } # as_fn_set_status
4579
4580 # as_fn_exit STATUS
4581 # -----------------
4582 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4583 as_fn_exit ()
4584 {
4585 set +e
4586 as_fn_set_status $1
4587 exit $1
4588 } # as_fn_exit
4589
4590 # as_fn_unset VAR
4591 # ---------------
4592 # Portably unset VAR.
4593 as_fn_unset ()
4594 {
4595 { eval $1=; unset $1;}
4596 }
4597 as_unset=as_fn_unset
4598 # as_fn_append VAR VALUE
4599 # ----------------------
4600 # Append the text in VALUE to the end of the definition contained in VAR. Take
4601 # advantage of any shell optimizations that allow amortized linear growth over
4602 # repeated appends, instead of the typical quadratic growth present in naive
4603 # implementations.
4604 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4605 eval 'as_fn_append ()
4606 {
4607 eval $1+=\$2
4608 }'
4609 else
4610 as_fn_append ()
4611 {
4612 eval $1=\$$1\$2
4613 }
4614 fi # as_fn_append
4615
4616 # as_fn_arith ARG...
4617 # ------------------
4618 # Perform arithmetic evaluation on the ARGs, and store the result in the
4619 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4620 # must be portable across $(()) and expr.
4621 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4622 eval 'as_fn_arith ()
4623 {
4624 as_val=$(( $* ))
4625 }'
4626 else
4627 as_fn_arith ()
4628 {
4629 as_val=`expr "$@" || test $? -eq 1`
4630 }
4631 fi # as_fn_arith
4632
4633
4634 if expr a : '\(a\)' >/dev/null 2>&1 &&
4635 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4636 as_expr=expr
4637 else
4638 as_expr=false
4639 fi
4640
4641 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4642 as_basename=basename
4643 else
4644 as_basename=false
4645 fi
4646
4647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4648 as_dirname=dirname
4649 else
4650 as_dirname=false
4651 fi
4652
4653 as_me=`$as_basename -- "$0" ||
4654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4655 X"$0" : 'X\(//\)$' \| \
4656 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4657 $as_echo X/"$0" |
4658 sed '/^.*\/\([^/][^/]*\)\/*$/{
4659 s//\1/
4660 q
4661 }
4662 /^X\/\(\/\/\)$/{
4663 s//\1/
4664 q
4665 }
4666 /^X\/\(\/\).*/{
4667 s//\1/
4668 q
4669 }
4670 s/.*/./; q'`
4671
4672 # Avoid depending upon Character Ranges.
4673 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4674 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4675 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4676 as_cr_digits='0123456789'
4677 as_cr_alnum=$as_cr_Letters$as_cr_digits
4678
4679 ECHO_C= ECHO_N= ECHO_T=
4680 case `echo -n x` in #(((((
4681 -n*)
4682 case `echo 'xy\c'` in
4683 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4684 xy) ECHO_C='\c';;
4685 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4686 ECHO_T=' ';;
4687 esac;;
4688 *)
4689 ECHO_N='-n';;
4690 esac
4691
4692 rm -f conf$$ conf$$.exe conf$$.file
4693 if test -d conf$$.dir; then
4694 rm -f conf$$.dir/conf$$.file
4695 else
4696 rm -f conf$$.dir
4697 mkdir conf$$.dir 2>/dev/null
4698 fi
4699 if (echo >conf$$.file) 2>/dev/null; then
4700 if ln -s conf$$.file conf$$ 2>/dev/null; then
4701 as_ln_s='ln -s'
4702 # ... but there are two gotchas:
4703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4705 # In both cases, we have to default to `cp -pR'.
4706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4707 as_ln_s='cp -pR'
4708 elif ln conf$$.file conf$$ 2>/dev/null; then
4709 as_ln_s=ln
4710 else
4711 as_ln_s='cp -pR'
4712 fi
4713 else
4714 as_ln_s='cp -pR'
4715 fi
4716 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4717 rmdir conf$$.dir 2>/dev/null
4718
4719
4720 # as_fn_mkdir_p
4721 # -------------
4722 # Create "$as_dir" as a directory, including parents if necessary.
4723 as_fn_mkdir_p ()
4724 {
4725
4726 case $as_dir in #(
4727 -*) as_dir=./$as_dir;;
4728 esac
4729 test -d "$as_dir" || eval $as_mkdir_p || {
4730 as_dirs=
4731 while :; do
4732 case $as_dir in #(
4733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4734 *) as_qdir=$as_dir;;
4735 esac
4736 as_dirs="'$as_qdir' $as_dirs"
4737 as_dir=`$as_dirname -- "$as_dir" ||
4738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4739 X"$as_dir" : 'X\(//\)[^/]' \| \
4740 X"$as_dir" : 'X\(//\)$' \| \
4741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4742 $as_echo X"$as_dir" |
4743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4744 s//\1/
4745 q
4746 }
4747 /^X\(\/\/\)[^/].*/{
4748 s//\1/
4749 q
4750 }
4751 /^X\(\/\/\)$/{
4752 s//\1/
4753 q
4754 }
4755 /^X\(\/\).*/{
4756 s//\1/
4757 q
4758 }
4759 s/.*/./; q'`
4760 test -d "$as_dir" && break
4761 done
4762 test -z "$as_dirs" || eval "mkdir $as_dirs"
4763 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4764
4765
4766 } # as_fn_mkdir_p
4767 if mkdir -p . 2>/dev/null; then
4768 as_mkdir_p='mkdir -p "$as_dir"'
4769 else
4770 test -d ./-p && rmdir ./-p
4771 as_mkdir_p=false
4772 fi
4773
4774
4775 # as_fn_executable_p FILE
4776 # -----------------------
4777 # Test if FILE is an executable regular file.
4778 as_fn_executable_p ()
4779 {
4780 test -f "$1" && test -x "$1"
4781 } # as_fn_executable_p
4782 as_test_x='test -x'
4783 as_executable_p=as_fn_executable_p
4784
4785 # Sed expression to map a string onto a valid CPP name.
4786 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4787
4788 # Sed expression to map a string onto a valid variable name.
4789 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4790
4791
4792 exec 6>&1
4793 ## ----------------------------------- ##
4794 ## Main body of $CONFIG_STATUS script. ##
4795 ## ----------------------------------- ##
4796 _ASEOF
4797 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4798
4799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4800 # Save the log message, to keep $0 and so on meaningful, and to
4801 # report actual input values of CONFIG_FILES etc. instead of their
4802 # values after options handling.
4803 ac_log="
4804 This file was extended by Haskell X11 package $as_me 1.4.6, which was
4805 generated by GNU Autoconf 2.69. Invocation command line was
4806
4807 CONFIG_FILES = $CONFIG_FILES
4808 CONFIG_HEADERS = $CONFIG_HEADERS
4809 CONFIG_LINKS = $CONFIG_LINKS
4810 CONFIG_COMMANDS = $CONFIG_COMMANDS
4811 $ $0 $@
4812
4813 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4814 "
4815
4816 _ACEOF
4817
4818 case $ac_config_files in *"
4819 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4820 esac
4821
4822 case $ac_config_headers in *"
4823 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4824 esac
4825
4826
4827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4828 # Files that config.status was made for.
4829 config_files="$ac_config_files"
4830 config_headers="$ac_config_headers"
4831
4832 _ACEOF
4833
4834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4835 ac_cs_usage="\
4836 \`$as_me' instantiates files and other configuration actions
4837 from templates according to the current configuration. Unless the files
4838 and actions are specified as TAGs, all are instantiated by default.
4839
4840 Usage: $0 [OPTION]... [TAG]...
4841
4842 -h, --help print this help, then exit
4843 -V, --version print version number and configuration settings, then exit
4844 --config print configuration, then exit
4845 -q, --quiet, --silent
4846 do not print progress messages
4847 -d, --debug don't remove temporary files
4848 --recheck update $as_me by reconfiguring in the same conditions
4849 --file=FILE[:TEMPLATE]
4850 instantiate the configuration file FILE
4851 --header=FILE[:TEMPLATE]
4852 instantiate the configuration header FILE
4853
4854 Configuration files:
4855 $config_files
4856
4857 Configuration headers:
4858 $config_headers
4859
4860 Report bugs to <[email protected]>."
4861
4862 _ACEOF
4863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4864 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4865 ac_cs_version="\\
4866 Haskell X11 package config.status 1.4.6
4867 configured by $0, generated by GNU Autoconf 2.69,
4868 with options \\"\$ac_cs_config\\"
4869
4870 Copyright (C) 2012 Free Software Foundation, Inc.
4871 This config.status script is free software; the Free Software Foundation
4872 gives unlimited permission to copy, distribute and modify it."
4873
4874 ac_pwd='$ac_pwd'
4875 srcdir='$srcdir'
4876 test -n "\$AWK" || AWK=awk
4877 _ACEOF
4878
4879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4880 # The default lists apply if the user does not specify any file.
4881 ac_need_defaults=:
4882 while test $# != 0
4883 do
4884 case $1 in
4885 --*=?*)
4886 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4887 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4888 ac_shift=:
4889 ;;
4890 --*=)
4891 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4892 ac_optarg=
4893 ac_shift=:
4894 ;;
4895 *)
4896 ac_option=$1
4897 ac_optarg=$2
4898 ac_shift=shift
4899 ;;
4900 esac
4901
4902 case $ac_option in
4903 # Handling of the options.
4904 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4905 ac_cs_recheck=: ;;
4906 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4907 $as_echo "$ac_cs_version"; exit ;;
4908 --config | --confi | --conf | --con | --co | --c )
4909 $as_echo "$ac_cs_config"; exit ;;
4910 --debug | --debu | --deb | --de | --d | -d )
4911 debug=: ;;
4912 --file | --fil | --fi | --f )
4913 $ac_shift
4914 case $ac_optarg in
4915 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4916 '') as_fn_error $? "missing file argument" ;;
4917 esac
4918 as_fn_append CONFIG_FILES " '$ac_optarg'"
4919 ac_need_defaults=false;;
4920 --header | --heade | --head | --hea )
4921 $ac_shift
4922 case $ac_optarg in
4923 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4924 esac
4925 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4926 ac_need_defaults=false;;
4927 --he | --h)
4928 # Conflict between --help and --header
4929 as_fn_error $? "ambiguous option: \`$1'
4930 Try \`$0 --help' for more information.";;
4931 --help | --hel | -h )
4932 $as_echo "$ac_cs_usage"; exit ;;
4933 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4934 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4935 ac_cs_silent=: ;;
4936
4937 # This is an error.
4938 -*) as_fn_error $? "unrecognized option: \`$1'
4939 Try \`$0 --help' for more information." ;;
4940
4941 *) as_fn_append ac_config_targets " $1"
4942 ac_need_defaults=false ;;
4943
4944 esac
4945 shift
4946 done
4947
4948 ac_configure_extra_args=
4949
4950 if $ac_cs_silent; then
4951 exec 6>/dev/null
4952 ac_configure_extra_args="$ac_configure_extra_args --silent"
4953 fi
4954
4955 _ACEOF
4956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4957 if \$ac_cs_recheck; then
4958 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4959 shift
4960 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4961 CONFIG_SHELL='$SHELL'
4962 export CONFIG_SHELL
4963 exec "\$@"
4964 fi
4965
4966 _ACEOF
4967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4968 exec 5>>config.log
4969 {
4970 echo
4971 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4972 ## Running $as_me. ##
4973 _ASBOX
4974 $as_echo "$ac_log"
4975 } >&5
4976
4977 _ACEOF
4978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4979 _ACEOF
4980
4981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4982
4983 # Handling of arguments.
4984 for ac_config_target in $ac_config_targets
4985 do
4986 case $ac_config_target in
4987 "include/HsX11Config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/HsX11Config.h" ;;
4988 "include/X11_extras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11_extras_config.h" ;;
4989 "config.mk") CONFIG_FILES="$CONFIG_FILES config.mk" ;;
4990 "X11.buildinfo") CONFIG_FILES="$CONFIG_FILES X11.buildinfo" ;;
4991
4992 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4993 esac
4994 done
4995
4996
4997 # If the user did not use the arguments to specify the items to instantiate,
4998 # then the envvar interface is used. Set only those that are not.
4999 # We use the long form for the default assignment because of an extremely
5000 # bizarre bug on SunOS 4.1.3.
5001 if $ac_need_defaults; then
5002 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5003 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5004 fi
5005
5006 # Have a temporary directory for convenience. Make it in the build tree
5007 # simply because there is no reason against having it here, and in addition,
5008 # creating and moving files from /tmp can sometimes cause problems.
5009 # Hook for its removal unless debugging.
5010 # Note that there is a small window in which the directory will not be cleaned:
5011 # after its creation but before its name has been assigned to `$tmp'.
5012 $debug ||
5013 {
5014 tmp= ac_tmp=
5015 trap 'exit_status=$?
5016 : "${ac_tmp:=$tmp}"
5017 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5018 ' 0
5019 trap 'as_fn_exit 1' 1 2 13 15
5020 }
5021 # Create a (secure) tmp directory for tmp files.
5022
5023 {
5024 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5025 test -d "$tmp"
5026 } ||
5027 {
5028 tmp=./conf$$-$RANDOM
5029 (umask 077 && mkdir "$tmp")
5030 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5031 ac_tmp=$tmp
5032
5033 # Set up the scripts for CONFIG_FILES section.
5034 # No need to generate them if there are no CONFIG_FILES.
5035 # This happens for instance with `./config.status config.h'.
5036 if test -n "$CONFIG_FILES"; then
5037
5038
5039 ac_cr=`echo X | tr X '\015'`
5040 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5041 # But we know of no other shell where ac_cr would be empty at this
5042 # point, so we can use a bashism as a fallback.
5043 if test "x$ac_cr" = x; then
5044 eval ac_cr=\$\'\\r\'
5045 fi
5046 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5047 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5048 ac_cs_awk_cr='\\r'
5049 else
5050 ac_cs_awk_cr=$ac_cr
5051 fi
5052
5053 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5054 _ACEOF
5055
5056
5057 {
5058 echo "cat >conf$$subs.awk <<_ACEOF" &&
5059 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5060 echo "_ACEOF"
5061 } >conf$$subs.sh ||
5062 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5063 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5064 ac_delim='%!_!# '
5065 for ac_last_try in false false false false false :; do
5066 . ./conf$$subs.sh ||
5067 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5068
5069 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5070 if test $ac_delim_n = $ac_delim_num; then
5071 break
5072 elif $ac_last_try; then
5073 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5074 else
5075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5076 fi
5077 done
5078 rm -f conf$$subs.sh
5079
5080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5081 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5082 _ACEOF
5083 sed -n '
5084 h
5085 s/^/S["/; s/!.*/"]=/
5086 p
5087 g
5088 s/^[^!]*!//
5089 :repl
5090 t repl
5091 s/'"$ac_delim"'$//
5092 t delim
5093 :nl
5094 h
5095 s/\(.\{148\}\)..*/\1/
5096 t more1
5097 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5098 p
5099 n
5100 b repl
5101 :more1
5102 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5103 p
5104 g
5105 s/.\{148\}//
5106 t nl
5107 :delim
5108 h
5109 s/\(.\{148\}\)..*/\1/
5110 t more2
5111 s/["\\]/\\&/g; s/^/"/; s/$/"/
5112 p
5113 b
5114 :more2
5115 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5116 p
5117 g
5118 s/.\{148\}//
5119 t delim
5120 ' <conf$$subs.awk | sed '
5121 /^[^""]/{
5122 N
5123 s/\n//
5124 }
5125 ' >>$CONFIG_STATUS || ac_write_fail=1
5126 rm -f conf$$subs.awk
5127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5128 _ACAWK
5129 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5130 for (key in S) S_is_set[key] = 1
5131 FS = ""
5132
5133 }
5134 {
5135 line = $ 0
5136 nfields = split(line, field, "@")
5137 substed = 0
5138 len = length(field[1])
5139 for (i = 2; i < nfields; i++) {
5140 key = field[i]
5141 keylen = length(key)
5142 if (S_is_set[key]) {
5143 value = S[key]
5144 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5145 len += length(value) + length(field[++i])
5146 substed = 1
5147 } else
5148 len += 1 + keylen
5149 }
5150
5151 print line
5152 }
5153
5154 _ACAWK
5155 _ACEOF
5156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5157 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5158 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5159 else
5160 cat
5161 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5162 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5163 _ACEOF
5164
5165 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5166 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5167 # trailing colons and then remove the whole line if VPATH becomes empty
5168 # (actually we leave an empty line to preserve line numbers).
5169 if test "x$srcdir" = x.; then
5170 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5171 h
5172 s///
5173 s/^/:/
5174 s/[ ]*$/:/
5175 s/:\$(srcdir):/:/g
5176 s/:\${srcdir}:/:/g
5177 s/:@srcdir@:/:/g
5178 s/^:*//
5179 s/:*$//
5180 x
5181 s/\(=[ ]*\).*/\1/
5182 G
5183 s/\n//
5184 s/^[^=]*=[ ]*$//
5185 }'
5186 fi
5187
5188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5189 fi # test -n "$CONFIG_FILES"
5190
5191 # Set up the scripts for CONFIG_HEADERS section.
5192 # No need to generate them if there are no CONFIG_HEADERS.
5193 # This happens for instance with `./config.status Makefile'.
5194 if test -n "$CONFIG_HEADERS"; then
5195 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5196 BEGIN {
5197 _ACEOF
5198
5199 # Transform confdefs.h into an awk script `defines.awk', embedded as
5200 # here-document in config.status, that substitutes the proper values into
5201 # config.h.in to produce config.h.
5202
5203 # Create a delimiter string that does not exist in confdefs.h, to ease
5204 # handling of long lines.
5205 ac_delim='%!_!# '
5206 for ac_last_try in false false :; do
5207 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5208 if test -z "$ac_tt"; then
5209 break
5210 elif $ac_last_try; then
5211 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5212 else
5213 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5214 fi
5215 done
5216
5217 # For the awk script, D is an array of macro values keyed by name,
5218 # likewise P contains macro parameters if any. Preserve backslash
5219 # newline sequences.
5220
5221 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5222 sed -n '
5223 s/.\{148\}/&'"$ac_delim"'/g
5224 t rset
5225 :rset
5226 s/^[ ]*#[ ]*define[ ][ ]*/ /
5227 t def
5228 d
5229 :def
5230 s/\\$//
5231 t bsnl
5232 s/["\\]/\\&/g
5233 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5234 D["\1"]=" \3"/p
5235 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5236 d
5237 :bsnl
5238 s/["\\]/\\&/g
5239 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5240 D["\1"]=" \3\\\\\\n"\\/p
5241 t cont
5242 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5243 t cont
5244 d
5245 :cont
5246 n
5247 s/.\{148\}/&'"$ac_delim"'/g
5248 t clear
5249 :clear
5250 s/\\$//
5251 t bsnlc
5252 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5253 d
5254 :bsnlc
5255 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5256 b cont
5257 ' <confdefs.h | sed '
5258 s/'"$ac_delim"'/"\\\
5259 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5260
5261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5262 for (key in D) D_is_set[key] = 1
5263 FS = ""
5264 }
5265 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5266 line = \$ 0
5267 split(line, arg, " ")
5268 if (arg[1] == "#") {
5269 defundef = arg[2]
5270 mac1 = arg[3]
5271 } else {
5272 defundef = substr(arg[1], 2)
5273 mac1 = arg[2]
5274 }
5275 split(mac1, mac2, "(") #)
5276 macro = mac2[1]
5277 prefix = substr(line, 1, index(line, defundef) - 1)
5278 if (D_is_set[macro]) {
5279 # Preserve the white space surrounding the "#".
5280 print prefix "define", macro P[macro] D[macro]
5281 next
5282 } else {
5283 # Replace #undef with comments. This is necessary, for example,
5284 # in the case of _POSIX_SOURCE, which is predefined and required
5285 # on some systems where configure will not decide to define it.
5286 if (defundef == "undef") {
5287 print "/*", prefix defundef, macro, "*/"
5288 next
5289 }
5290 }
5291 }
5292 { print }
5293 _ACAWK
5294 _ACEOF
5295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5296 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5297 fi # test -n "$CONFIG_HEADERS"
5298
5299
5300 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5301 shift
5302 for ac_tag
5303 do
5304 case $ac_tag in
5305 :[FHLC]) ac_mode=$ac_tag; continue;;
5306 esac
5307 case $ac_mode$ac_tag in
5308 :[FHL]*:*);;
5309 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5310 :[FH]-) ac_tag=-:-;;
5311 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5312 esac
5313 ac_save_IFS=$IFS
5314 IFS=:
5315 set x $ac_tag
5316 IFS=$ac_save_IFS
5317 shift
5318 ac_file=$1
5319 shift
5320
5321 case $ac_mode in
5322 :L) ac_source=$1;;
5323 :[FH])
5324 ac_file_inputs=
5325 for ac_f
5326 do
5327 case $ac_f in
5328 -) ac_f="$ac_tmp/stdin";;
5329 *) # Look for the file first in the build tree, then in the source tree
5330 # (if the path is not absolute). The absolute path cannot be DOS-style,
5331 # because $ac_f cannot contain `:'.
5332 test -f "$ac_f" ||
5333 case $ac_f in
5334 [\\/$]*) false;;
5335 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5336 esac ||
5337 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5338 esac
5339 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5340 as_fn_append ac_file_inputs " '$ac_f'"
5341 done
5342
5343 # Let's still pretend it is `configure' which instantiates (i.e., don't
5344 # use $as_me), people would be surprised to read:
5345 # /* config.h. Generated by config.status. */
5346 configure_input='Generated from '`
5347 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5348 `' by configure.'
5349 if test x"$ac_file" != x-; then
5350 configure_input="$ac_file. $configure_input"
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5352 $as_echo "$as_me: creating $ac_file" >&6;}
5353 fi
5354 # Neutralize special characters interpreted by sed in replacement strings.
5355 case $configure_input in #(
5356 *\&* | *\|* | *\\* )
5357 ac_sed_conf_input=`$as_echo "$configure_input" |
5358 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5359 *) ac_sed_conf_input=$configure_input;;
5360 esac
5361
5362 case $ac_tag in
5363 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5365 esac
5366 ;;
5367 esac
5368
5369 ac_dir=`$as_dirname -- "$ac_file" ||
5370 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5371 X"$ac_file" : 'X\(//\)[^/]' \| \
5372 X"$ac_file" : 'X\(//\)$' \| \
5373 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5374 $as_echo X"$ac_file" |
5375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5376 s//\1/
5377 q
5378 }
5379 /^X\(\/\/\)[^/].*/{
5380 s//\1/
5381 q
5382 }
5383 /^X\(\/\/\)$/{
5384 s//\1/
5385 q
5386 }
5387 /^X\(\/\).*/{
5388 s//\1/
5389 q
5390 }
5391 s/.*/./; q'`
5392 as_dir="$ac_dir"; as_fn_mkdir_p
5393 ac_builddir=.
5394
5395 case "$ac_dir" in
5396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5397 *)
5398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5399 # A ".." for each directory in $ac_dir_suffix.
5400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5401 case $ac_top_builddir_sub in
5402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5404 esac ;;
5405 esac
5406 ac_abs_top_builddir=$ac_pwd
5407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5408 # for backward compatibility:
5409 ac_top_builddir=$ac_top_build_prefix
5410
5411 case $srcdir in
5412 .) # We are building in place.
5413 ac_srcdir=.
5414 ac_top_srcdir=$ac_top_builddir_sub
5415 ac_abs_top_srcdir=$ac_pwd ;;
5416 [\\/]* | ?:[\\/]* ) # Absolute name.
5417 ac_srcdir=$srcdir$ac_dir_suffix;
5418 ac_top_srcdir=$srcdir
5419 ac_abs_top_srcdir=$srcdir ;;
5420 *) # Relative name.
5421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5422 ac_top_srcdir=$ac_top_build_prefix$srcdir
5423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5424 esac
5425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5426
5427
5428 case $ac_mode in
5429 :F)
5430 #
5431 # CONFIG_FILE
5432 #
5433
5434 _ACEOF
5435
5436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5437 # If the template does not know about datarootdir, expand it.
5438 # FIXME: This hack should be removed a few years after 2.60.
5439 ac_datarootdir_hack=; ac_datarootdir_seen=
5440 ac_sed_dataroot='
5441 /datarootdir/ {
5442 p
5443 q
5444 }
5445 /@datadir@/p
5446 /@docdir@/p
5447 /@infodir@/p
5448 /@localedir@/p
5449 /@mandir@/p'
5450 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5451 *datarootdir*) ac_datarootdir_seen=yes;;
5452 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5454 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5455 _ACEOF
5456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5457 ac_datarootdir_hack='
5458 s&@datadir@&$datadir&g
5459 s&@docdir@&$docdir&g
5460 s&@infodir@&$infodir&g
5461 s&@localedir@&$localedir&g
5462 s&@mandir@&$mandir&g
5463 s&\\\${datarootdir}&$datarootdir&g' ;;
5464 esac
5465 _ACEOF
5466
5467 # Neutralize VPATH when `$srcdir' = `.'.
5468 # Shell code in configure.ac might set extrasub.
5469 # FIXME: do we really want to maintain this feature?
5470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5471 ac_sed_extra="$ac_vpsub
5472 $extrasub
5473 _ACEOF
5474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5475 :t
5476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5477 s|@configure_input@|$ac_sed_conf_input|;t t
5478 s&@top_builddir@&$ac_top_builddir_sub&;t t
5479 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5480 s&@srcdir@&$ac_srcdir&;t t
5481 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5482 s&@top_srcdir@&$ac_top_srcdir&;t t
5483 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5484 s&@builddir@&$ac_builddir&;t t
5485 s&@abs_builddir@&$ac_abs_builddir&;t t
5486 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5487 $ac_datarootdir_hack
5488 "
5489 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5490 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5491
5492 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5493 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5494 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5495 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5497 which seems to be undefined. Please make sure it is defined" >&5
5498 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5499 which seems to be undefined. Please make sure it is defined" >&2;}
5500
5501 rm -f "$ac_tmp/stdin"
5502 case $ac_file in
5503 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5504 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5505 esac \
5506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5507 ;;
5508 :H)
5509 #
5510 # CONFIG_HEADER
5511 #
5512 if test x"$ac_file" != x-; then
5513 {
5514 $as_echo "/* $configure_input */" \
5515 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5516 } >"$ac_tmp/config.h" \
5517 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5518 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5520 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5521 else
5522 rm -f "$ac_file"
5523 mv "$ac_tmp/config.h" "$ac_file" \
5524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5525 fi
5526 else
5527 $as_echo "/* $configure_input */" \
5528 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5529 || as_fn_error $? "could not create -" "$LINENO" 5
5530 fi
5531 ;;
5532
5533
5534 esac
5535
5536 done # for ac_tag
5537
5538
5539 as_fn_exit 0
5540 _ACEOF
5541 ac_clean_files=$ac_clean_files_save
5542
5543 test $ac_write_fail = 0 ||
5544 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5545
5546
5547 # configure is writing to config.log, and then calls config.status.
5548 # config.status does its own redirection, appending to config.log.
5549 # Unfortunately, on DOS this fails, as config.log is still kept open
5550 # by configure, so config.status won't be able to write to it; its
5551 # output is simply discarded. So we exec the FD to /dev/null,
5552 # effectively closing config.log, so it can be properly (re)opened and
5553 # appended to by config.status. When coming back to configure, we
5554 # need to make the FD available again.
5555 if test "$no_create" != yes; then
5556 ac_cs_success=:
5557 ac_config_status_args=
5558 test "$silent" = yes &&
5559 ac_config_status_args="$ac_config_status_args --quiet"
5560 exec 5>/dev/null
5561 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5562 exec 5>>config.log
5563 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5564 # would make configure fail if this is the last instruction.
5565 $ac_cs_success || as_fn_exit 1
5566 fi
5567 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5569 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5570 fi
5571