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