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