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