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