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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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  }
79fi
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.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102     ;;
103esac
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.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export 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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if 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
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -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
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
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
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
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
234fi; }
235IFS=$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.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $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
257exit 255
258fi
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
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_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.
305as_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.
315as_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.
363as_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.
373if (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  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # 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.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # 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.
408as_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
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_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.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_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
500ECHO_C= ECHO_N= ECHO_T=
501case `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';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (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
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_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.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 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.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="INSTALL"
586# Factoring default headers for most tests.
587ac_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
622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624GDK_IMLIB_LIBS
625GDK_IMLIB_CFLAGS
626IMLIB_CONFIG
627GTK_CONFIG
628GDK_PIXBUF_LIBS
629GDK_PIXBUF_CFLAGS
630GTK_LIBS
631GTK_CFLAGS
632PKG_CONFIG
633GTKVERSION
634DCLNWS
635DCLLANG
636DCLVERNUM
637DCLVERSION
638CLK_RSL_TCK
639CLK_PER_SEC
640INTMAX
641REPSL
642REALMAX
643REALMIN
644EGREP
645GREP
646DCLDIR
647PWD
648CSGI_OPT
649OSQARN_OPT
650OSGARG_OPT
651OLDSRC
652EXTSHLIB
653LINKOPT
654TODO_SHARED_LIBRARY
655X_EXTRA_LIBS
656X_LIBS
657X_PRE_LIBS
658X_CFLAGS
659XMKMF
660X_LIBRARIES
661X_INCLUDES
662FLIBS
663FFLAGS
664FC
665RANLIB
666SED
667AWK
668CPP
669OBJEXT
670EXEEXT
671ac_ct_CC
672CPPFLAGS
673LDFLAGS
674CFLAGS
675CC
676target_alias
677host_alias
678build_alias
679LIBS
680ECHO_T
681ECHO_N
682ECHO_C
683DEFS
684mandir
685localedir
686libdir
687psdir
688pdfdir
689dvidir
690htmldir
691infodir
692docdir
693oldincludedir
694includedir
695localstatedir
696sharedstatedir
697sysconfdir
698datadir
699datarootdir
700libexecdir
701sbindir
702bindir
703program_transform_name
704prefix
705exec_prefix
706PACKAGE_URL
707PACKAGE_BUGREPORT
708PACKAGE_STRING
709PACKAGE_VERSION
710PACKAGE_TARNAME
711PACKAGE_NAME
712PATH_SEPARATOR
713SHELL'
714ac_subst_files=''
715ac_user_opts='
716enable_option_checking
717with_x
718enable_shared
719with_oldsrc
720enable_gtk2
721enable_gtktest
722enable_gtk
723with_gtk_prefix
724with_gtk_exec_prefix
725with_imlib_prefix
726with_imlib_exec_prefix
727enable_imlibtest
728'
729      ac_precious_vars='build_alias
730host_alias
731target_alias
732CC
733CFLAGS
734LDFLAGS
735LIBS
736CPPFLAGS
737CPP
738XMKMF'
739
740
741# Initialize some variables set by options.
742ac_init_help=
743ac_init_version=false
744ac_unrecognized_opts=
745ac_unrecognized_sep=
746# The variables have the same names as the options, with
747# dashes changed to underlines.
748cache_file=/dev/null
749exec_prefix=NONE
750no_create=
751no_recursion=
752prefix=NONE
753program_prefix=NONE
754program_suffix=NONE
755program_transform_name=s,x,x,
756silent=
757site=
758srcdir=
759verbose=
760x_includes=NONE
761x_libraries=NONE
762
763# Installation directory options.
764# These are left unexpanded so users can "make install exec_prefix=/foo"
765# and all the variables that are supposed to be based on exec_prefix
766# by default will actually change.
767# Use braces instead of parens because sh, perl, etc. also accept them.
768# (The list follows the same order as the GNU Coding Standards.)
769bindir='${exec_prefix}/bin'
770sbindir='${exec_prefix}/sbin'
771libexecdir='${exec_prefix}/libexec'
772datarootdir='${prefix}/share'
773datadir='${datarootdir}'
774sysconfdir='${prefix}/etc'
775sharedstatedir='${prefix}/com'
776localstatedir='${prefix}/var'
777includedir='${prefix}/include'
778oldincludedir='/usr/include'
779docdir='${datarootdir}/doc/${PACKAGE}'
780infodir='${datarootdir}/info'
781htmldir='${docdir}'
782dvidir='${docdir}'
783pdfdir='${docdir}'
784psdir='${docdir}'
785libdir='${exec_prefix}/lib'
786localedir='${datarootdir}/locale'
787mandir='${datarootdir}/man'
788
789ac_prev=
790ac_dashdash=
791for ac_option
792do
793  # If the previous option needs an argument, assign it.
794  if test -n "$ac_prev"; then
795    eval $ac_prev=\$ac_option
796    ac_prev=
797    continue
798  fi
799
800  case $ac_option in
801  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802  *=)   ac_optarg= ;;
803  *)    ac_optarg=yes ;;
804  esac
805
806  # Accept the important Cygnus configure options, so we can diagnose typos.
807
808  case $ac_dashdash$ac_option in
809  --)
810    ac_dashdash=yes ;;
811
812  -bindir | --bindir | --bindi | --bind | --bin | --bi)
813    ac_prev=bindir ;;
814  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815    bindir=$ac_optarg ;;
816
817  -build | --build | --buil | --bui | --bu)
818    ac_prev=build_alias ;;
819  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
820    build_alias=$ac_optarg ;;
821
822  -cache-file | --cache-file | --cache-fil | --cache-fi \
823  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
824    ac_prev=cache_file ;;
825  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
826  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
827    cache_file=$ac_optarg ;;
828
829  --config-cache | -C)
830    cache_file=config.cache ;;
831
832  -datadir | --datadir | --datadi | --datad)
833    ac_prev=datadir ;;
834  -datadir=* | --datadir=* | --datadi=* | --datad=*)
835    datadir=$ac_optarg ;;
836
837  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
838  | --dataroo | --dataro | --datar)
839    ac_prev=datarootdir ;;
840  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
841  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
842    datarootdir=$ac_optarg ;;
843
844  -disable-* | --disable-*)
845    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846    # Reject names that are not valid shell variable names.
847    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
848      as_fn_error $? "invalid feature name: $ac_useropt"
849    ac_useropt_orig=$ac_useropt
850    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
851    case $ac_user_opts in
852      *"
853"enable_$ac_useropt"
854"*) ;;
855      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
856	 ac_unrecognized_sep=', ';;
857    esac
858    eval enable_$ac_useropt=no ;;
859
860  -docdir | --docdir | --docdi | --doc | --do)
861    ac_prev=docdir ;;
862  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863    docdir=$ac_optarg ;;
864
865  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866    ac_prev=dvidir ;;
867  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868    dvidir=$ac_optarg ;;
869
870  -enable-* | --enable-*)
871    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872    # Reject names that are not valid shell variable names.
873    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874      as_fn_error $? "invalid feature name: $ac_useropt"
875    ac_useropt_orig=$ac_useropt
876    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877    case $ac_user_opts in
878      *"
879"enable_$ac_useropt"
880"*) ;;
881      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
882	 ac_unrecognized_sep=', ';;
883    esac
884    eval enable_$ac_useropt=\$ac_optarg ;;
885
886  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
887  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
888  | --exec | --exe | --ex)
889    ac_prev=exec_prefix ;;
890  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
891  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
892  | --exec=* | --exe=* | --ex=*)
893    exec_prefix=$ac_optarg ;;
894
895  -gas | --gas | --ga | --g)
896    # Obsolete; use --with-gas.
897    with_gas=yes ;;
898
899  -help | --help | --hel | --he | -h)
900    ac_init_help=long ;;
901  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
902    ac_init_help=recursive ;;
903  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
904    ac_init_help=short ;;
905
906  -host | --host | --hos | --ho)
907    ac_prev=host_alias ;;
908  -host=* | --host=* | --hos=* | --ho=*)
909    host_alias=$ac_optarg ;;
910
911  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
912    ac_prev=htmldir ;;
913  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
914  | --ht=*)
915    htmldir=$ac_optarg ;;
916
917  -includedir | --includedir | --includedi | --included | --include \
918  | --includ | --inclu | --incl | --inc)
919    ac_prev=includedir ;;
920  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
921  | --includ=* | --inclu=* | --incl=* | --inc=*)
922    includedir=$ac_optarg ;;
923
924  -infodir | --infodir | --infodi | --infod | --info | --inf)
925    ac_prev=infodir ;;
926  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
927    infodir=$ac_optarg ;;
928
929  -libdir | --libdir | --libdi | --libd)
930    ac_prev=libdir ;;
931  -libdir=* | --libdir=* | --libdi=* | --libd=*)
932    libdir=$ac_optarg ;;
933
934  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
935  | --libexe | --libex | --libe)
936    ac_prev=libexecdir ;;
937  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
938  | --libexe=* | --libex=* | --libe=*)
939    libexecdir=$ac_optarg ;;
940
941  -localedir | --localedir | --localedi | --localed | --locale)
942    ac_prev=localedir ;;
943  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
944    localedir=$ac_optarg ;;
945
946  -localstatedir | --localstatedir | --localstatedi | --localstated \
947  | --localstate | --localstat | --localsta | --localst | --locals)
948    ac_prev=localstatedir ;;
949  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
950  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
951    localstatedir=$ac_optarg ;;
952
953  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
954    ac_prev=mandir ;;
955  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
956    mandir=$ac_optarg ;;
957
958  -nfp | --nfp | --nf)
959    # Obsolete; use --without-fp.
960    with_fp=no ;;
961
962  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
963  | --no-cr | --no-c | -n)
964    no_create=yes ;;
965
966  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
967  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
968    no_recursion=yes ;;
969
970  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
971  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
972  | --oldin | --oldi | --old | --ol | --o)
973    ac_prev=oldincludedir ;;
974  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
975  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
976  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
977    oldincludedir=$ac_optarg ;;
978
979  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
980    ac_prev=prefix ;;
981  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
982    prefix=$ac_optarg ;;
983
984  -program-prefix | --program-prefix | --program-prefi | --program-pref \
985  | --program-pre | --program-pr | --program-p)
986    ac_prev=program_prefix ;;
987  -program-prefix=* | --program-prefix=* | --program-prefi=* \
988  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
989    program_prefix=$ac_optarg ;;
990
991  -program-suffix | --program-suffix | --program-suffi | --program-suff \
992  | --program-suf | --program-su | --program-s)
993    ac_prev=program_suffix ;;
994  -program-suffix=* | --program-suffix=* | --program-suffi=* \
995  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
996    program_suffix=$ac_optarg ;;
997
998  -program-transform-name | --program-transform-name \
999  | --program-transform-nam | --program-transform-na \
1000  | --program-transform-n | --program-transform- \
1001  | --program-transform | --program-transfor \
1002  | --program-transfo | --program-transf \
1003  | --program-trans | --program-tran \
1004  | --progr-tra | --program-tr | --program-t)
1005    ac_prev=program_transform_name ;;
1006  -program-transform-name=* | --program-transform-name=* \
1007  | --program-transform-nam=* | --program-transform-na=* \
1008  | --program-transform-n=* | --program-transform-=* \
1009  | --program-transform=* | --program-transfor=* \
1010  | --program-transfo=* | --program-transf=* \
1011  | --program-trans=* | --program-tran=* \
1012  | --progr-tra=* | --program-tr=* | --program-t=*)
1013    program_transform_name=$ac_optarg ;;
1014
1015  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1016    ac_prev=pdfdir ;;
1017  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1018    pdfdir=$ac_optarg ;;
1019
1020  -psdir | --psdir | --psdi | --psd | --ps)
1021    ac_prev=psdir ;;
1022  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1023    psdir=$ac_optarg ;;
1024
1025  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1026  | -silent | --silent | --silen | --sile | --sil)
1027    silent=yes ;;
1028
1029  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1030    ac_prev=sbindir ;;
1031  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1032  | --sbi=* | --sb=*)
1033    sbindir=$ac_optarg ;;
1034
1035  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1036  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1037  | --sharedst | --shareds | --shared | --share | --shar \
1038  | --sha | --sh)
1039    ac_prev=sharedstatedir ;;
1040  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1041  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1042  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1043  | --sha=* | --sh=*)
1044    sharedstatedir=$ac_optarg ;;
1045
1046  -site | --site | --sit)
1047    ac_prev=site ;;
1048  -site=* | --site=* | --sit=*)
1049    site=$ac_optarg ;;
1050
1051  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1052    ac_prev=srcdir ;;
1053  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1054    srcdir=$ac_optarg ;;
1055
1056  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1057  | --syscon | --sysco | --sysc | --sys | --sy)
1058    ac_prev=sysconfdir ;;
1059  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1060  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1061    sysconfdir=$ac_optarg ;;
1062
1063  -target | --target | --targe | --targ | --tar | --ta | --t)
1064    ac_prev=target_alias ;;
1065  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1066    target_alias=$ac_optarg ;;
1067
1068  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1069    verbose=yes ;;
1070
1071  -version | --version | --versio | --versi | --vers | -V)
1072    ac_init_version=: ;;
1073
1074  -with-* | --with-*)
1075    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1076    # Reject names that are not valid shell variable names.
1077    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078      as_fn_error $? "invalid package name: $ac_useropt"
1079    ac_useropt_orig=$ac_useropt
1080    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081    case $ac_user_opts in
1082      *"
1083"with_$ac_useropt"
1084"*) ;;
1085      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1086	 ac_unrecognized_sep=', ';;
1087    esac
1088    eval with_$ac_useropt=\$ac_optarg ;;
1089
1090  -without-* | --without-*)
1091    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092    # Reject names that are not valid shell variable names.
1093    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094      as_fn_error $? "invalid package name: $ac_useropt"
1095    ac_useropt_orig=$ac_useropt
1096    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097    case $ac_user_opts in
1098      *"
1099"with_$ac_useropt"
1100"*) ;;
1101      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1102	 ac_unrecognized_sep=', ';;
1103    esac
1104    eval with_$ac_useropt=no ;;
1105
1106  --x)
1107    # Obsolete; use --with-x.
1108    with_x=yes ;;
1109
1110  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1111  | --x-incl | --x-inc | --x-in | --x-i)
1112    ac_prev=x_includes ;;
1113  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1114  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1115    x_includes=$ac_optarg ;;
1116
1117  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1118  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1119    ac_prev=x_libraries ;;
1120  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1121  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1122    x_libraries=$ac_optarg ;;
1123
1124  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1125Try \`$0 --help' for more information"
1126    ;;
1127
1128  *=*)
1129    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1130    # Reject names that are not valid shell variable names.
1131    case $ac_envvar in #(
1132      '' | [0-9]* | *[!_$as_cr_alnum]* )
1133      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1134    esac
1135    eval $ac_envvar=\$ac_optarg
1136    export $ac_envvar ;;
1137
1138  *)
1139    # FIXME: should be removed in autoconf 3.0.
1140    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1141    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1142      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1143    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1144    ;;
1145
1146  esac
1147done
1148
1149if test -n "$ac_prev"; then
1150  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1151  as_fn_error $? "missing argument to $ac_option"
1152fi
1153
1154if test -n "$ac_unrecognized_opts"; then
1155  case $enable_option_checking in
1156    no) ;;
1157    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1158    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1159  esac
1160fi
1161
1162# Check all directory arguments for consistency.
1163for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1164		datadir sysconfdir sharedstatedir localstatedir includedir \
1165		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1166		libdir localedir mandir
1167do
1168  eval ac_val=\$$ac_var
1169  # Remove trailing slashes.
1170  case $ac_val in
1171    */ )
1172      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1173      eval $ac_var=\$ac_val;;
1174  esac
1175  # Be sure to have absolute directory names.
1176  case $ac_val in
1177    [\\/$]* | ?:[\\/]* )  continue;;
1178    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1179  esac
1180  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1181done
1182
1183# There might be people who depend on the old broken behavior: `$host'
1184# used to hold the argument of --host etc.
1185# FIXME: To remove some day.
1186build=$build_alias
1187host=$host_alias
1188target=$target_alias
1189
1190# FIXME: To remove some day.
1191if test "x$host_alias" != x; then
1192  if test "x$build_alias" = x; then
1193    cross_compiling=maybe
1194  elif test "x$build_alias" != "x$host_alias"; then
1195    cross_compiling=yes
1196  fi
1197fi
1198
1199ac_tool_prefix=
1200test -n "$host_alias" && ac_tool_prefix=$host_alias-
1201
1202test "$silent" = yes && exec 6>/dev/null
1203
1204
1205ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206ac_ls_di=`ls -di .` &&
1207ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208  as_fn_error $? "working directory cannot be determined"
1209test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210  as_fn_error $? "pwd does not report name of working directory"
1211
1212
1213# Find the source files, if location was not specified.
1214if test -z "$srcdir"; then
1215  ac_srcdir_defaulted=yes
1216  # Try the directory containing this script, then the parent directory.
1217  ac_confdir=`$as_dirname -- "$as_myself" ||
1218$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219	 X"$as_myself" : 'X\(//\)[^/]' \| \
1220	 X"$as_myself" : 'X\(//\)$' \| \
1221	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222$as_echo X"$as_myself" |
1223    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224	    s//\1/
1225	    q
1226	  }
1227	  /^X\(\/\/\)[^/].*/{
1228	    s//\1/
1229	    q
1230	  }
1231	  /^X\(\/\/\)$/{
1232	    s//\1/
1233	    q
1234	  }
1235	  /^X\(\/\).*/{
1236	    s//\1/
1237	    q
1238	  }
1239	  s/.*/./; q'`
1240  srcdir=$ac_confdir
1241  if test ! -r "$srcdir/$ac_unique_file"; then
1242    srcdir=..
1243  fi
1244else
1245  ac_srcdir_defaulted=no
1246fi
1247if test ! -r "$srcdir/$ac_unique_file"; then
1248  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1250fi
1251ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252ac_abs_confdir=`(
1253	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1254	pwd)`
1255# When building in place, set srcdir=.
1256if test "$ac_abs_confdir" = "$ac_pwd"; then
1257  srcdir=.
1258fi
1259# Remove unnecessary trailing slashes from srcdir.
1260# Double slashes in file names in object file debugging info
1261# mess up M-x gdb in Emacs.
1262case $srcdir in
1263*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264esac
1265for ac_var in $ac_precious_vars; do
1266  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267  eval ac_env_${ac_var}_value=\$${ac_var}
1268  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270done
1271
1272#
1273# Report the --help message.
1274#
1275if test "$ac_init_help" = "long"; then
1276  # Omit some internal or obsolete options to make the list less imposing.
1277  # This message is too long to be a string in the A/UX 3.1 sh.
1278  cat <<_ACEOF
1279\`configure' configures this package to adapt to many kinds of systems.
1280
1281Usage: $0 [OPTION]... [VAR=VALUE]...
1282
1283To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284VAR=VALUE.  See below for descriptions of some of the useful variables.
1285
1286Defaults for the options are specified in brackets.
1287
1288Configuration:
1289  -h, --help              display this help and exit
1290      --help=short        display options specific to this package
1291      --help=recursive    display the short help of all the included packages
1292  -V, --version           display version information and exit
1293  -q, --quiet, --silent   do not print \`checking ...' messages
1294      --cache-file=FILE   cache test results in FILE [disabled]
1295  -C, --config-cache      alias for \`--cache-file=config.cache'
1296  -n, --no-create         do not create output files
1297      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1298
1299Installation directories:
1300  --prefix=PREFIX         install architecture-independent files in PREFIX
1301                          [$ac_default_prefix]
1302  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1303                          [PREFIX]
1304
1305By default, \`make install' will install all the files in
1306\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1307an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308for instance \`--prefix=\$HOME'.
1309
1310For better control, use the options below.
1311
1312Fine tuning of the installation directories:
1313  --bindir=DIR            user executables [EPREFIX/bin]
1314  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1315  --libexecdir=DIR        program executables [EPREFIX/libexec]
1316  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1317  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1318  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1319  --libdir=DIR            object code libraries [EPREFIX/lib]
1320  --includedir=DIR        C header files [PREFIX/include]
1321  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1322  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1323  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1324  --infodir=DIR           info documentation [DATAROOTDIR/info]
1325  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1326  --mandir=DIR            man documentation [DATAROOTDIR/man]
1327  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1328  --htmldir=DIR           html documentation [DOCDIR]
1329  --dvidir=DIR            dvi documentation [DOCDIR]
1330  --pdfdir=DIR            pdf documentation [DOCDIR]
1331  --psdir=DIR             ps documentation [DOCDIR]
1332_ACEOF
1333
1334  cat <<\_ACEOF
1335
1336X features:
1337  --x-includes=DIR    X include files are in DIR
1338  --x-libraries=DIR   X library files are in DIR
1339_ACEOF
1340fi
1341
1342if test -n "$ac_init_help"; then
1343
1344  cat <<\_ACEOF
1345
1346Optional Features:
1347  --disable-option-checking  ignore unrecognized --enable/--with options
1348  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1349  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1350  --enable-shared   create shared library (optional)
1351  --disable-gtk2   Do not try to compile with GTK2
1352  --disable-gtktest       do not try to compile and run a test GTK+ program
1353  --disable-gtk   Do not try to compile with GTK
1354  --disable-gtktest       Do not try to compile and run a test GTK program
1355  --disable-imlibtest       Do not try to compile and run a test IMLIB program
1356
1357Optional Packages:
1358  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1359  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1360  --with-x                use the X Window System
1361  --with-oldsrc           compile dcl source codes older than ver.5
1362  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1363  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1364  --with-imlib-prefix=PFX   Prefix where IMLIB is installed (optional)
1365  --with-imlib-exec-prefix=PFX Exec prefix where IMLIB is installed (optional)
1366
1367Some influential environment variables:
1368  CC          C compiler command
1369  CFLAGS      C compiler flags
1370  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1371              nonstandard directory <lib dir>
1372  LIBS        libraries to pass to the linker, e.g. -l<library>
1373  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1374              you have headers in a nonstandard directory <include dir>
1375  CPP         C preprocessor
1376  XMKMF       Path to xmkmf, Makefile generator for X Window System
1377
1378Use these variables to override the choices made by `configure' or to help
1379it to find libraries and programs with nonstandard names/locations.
1380
1381Report bugs to the package provider.
1382_ACEOF
1383ac_status=$?
1384fi
1385
1386if test "$ac_init_help" = "recursive"; then
1387  # If there are subdirs, report their specific --help.
1388  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1389    test -d "$ac_dir" ||
1390      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1391      continue
1392    ac_builddir=.
1393
1394case "$ac_dir" in
1395.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396*)
1397  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1398  # A ".." for each directory in $ac_dir_suffix.
1399  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1400  case $ac_top_builddir_sub in
1401  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403  esac ;;
1404esac
1405ac_abs_top_builddir=$ac_pwd
1406ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407# for backward compatibility:
1408ac_top_builddir=$ac_top_build_prefix
1409
1410case $srcdir in
1411  .)  # We are building in place.
1412    ac_srcdir=.
1413    ac_top_srcdir=$ac_top_builddir_sub
1414    ac_abs_top_srcdir=$ac_pwd ;;
1415  [\\/]* | ?:[\\/]* )  # Absolute name.
1416    ac_srcdir=$srcdir$ac_dir_suffix;
1417    ac_top_srcdir=$srcdir
1418    ac_abs_top_srcdir=$srcdir ;;
1419  *) # Relative name.
1420    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421    ac_top_srcdir=$ac_top_build_prefix$srcdir
1422    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423esac
1424ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425
1426    cd "$ac_dir" || { ac_status=$?; continue; }
1427    # Check for guested configure.
1428    if test -f "$ac_srcdir/configure.gnu"; then
1429      echo &&
1430      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431    elif test -f "$ac_srcdir/configure"; then
1432      echo &&
1433      $SHELL "$ac_srcdir/configure" --help=recursive
1434    else
1435      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436    fi || ac_status=$?
1437    cd "$ac_pwd" || { ac_status=$?; break; }
1438  done
1439fi
1440
1441test -n "$ac_init_help" && exit $ac_status
1442if $ac_init_version; then
1443  cat <<\_ACEOF
1444configure
1445generated by GNU Autoconf 2.69
1446
1447Copyright (C) 2012 Free Software Foundation, Inc.
1448This configure script is free software; the Free Software Foundation
1449gives unlimited permission to copy, distribute and modify it.
1450_ACEOF
1451  exit
1452fi
1453
1454## ------------------------ ##
1455## Autoconf initialization. ##
1456## ------------------------ ##
1457
1458# ac_fn_c_try_compile LINENO
1459# --------------------------
1460# Try to compile conftest.$ac_ext, and return whether this succeeded.
1461ac_fn_c_try_compile ()
1462{
1463  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1464  rm -f conftest.$ac_objext
1465  if { { ac_try="$ac_compile"
1466case "(($ac_try" in
1467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1468  *) ac_try_echo=$ac_try;;
1469esac
1470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1471$as_echo "$ac_try_echo"; } >&5
1472  (eval "$ac_compile") 2>conftest.err
1473  ac_status=$?
1474  if test -s conftest.err; then
1475    grep -v '^ *+' conftest.err >conftest.er1
1476    cat conftest.er1 >&5
1477    mv -f conftest.er1 conftest.err
1478  fi
1479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1480  test $ac_status = 0; } && {
1481	 test -z "$ac_c_werror_flag" ||
1482	 test ! -s conftest.err
1483       } && test -s conftest.$ac_objext; then :
1484  ac_retval=0
1485else
1486  $as_echo "$as_me: failed program was:" >&5
1487sed 's/^/| /' conftest.$ac_ext >&5
1488
1489	ac_retval=1
1490fi
1491  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1492  as_fn_set_status $ac_retval
1493
1494} # ac_fn_c_try_compile
1495
1496# ac_fn_c_try_cpp LINENO
1497# ----------------------
1498# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1499ac_fn_c_try_cpp ()
1500{
1501  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502  if { { ac_try="$ac_cpp conftest.$ac_ext"
1503case "(($ac_try" in
1504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505  *) ac_try_echo=$ac_try;;
1506esac
1507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508$as_echo "$ac_try_echo"; } >&5
1509  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1510  ac_status=$?
1511  if test -s conftest.err; then
1512    grep -v '^ *+' conftest.err >conftest.er1
1513    cat conftest.er1 >&5
1514    mv -f conftest.er1 conftest.err
1515  fi
1516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517  test $ac_status = 0; } > conftest.i && {
1518	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1519	 test ! -s conftest.err
1520       }; then :
1521  ac_retval=0
1522else
1523  $as_echo "$as_me: failed program was:" >&5
1524sed 's/^/| /' conftest.$ac_ext >&5
1525
1526    ac_retval=1
1527fi
1528  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529  as_fn_set_status $ac_retval
1530
1531} # ac_fn_c_try_cpp
1532
1533# ac_fn_c_try_link LINENO
1534# -----------------------
1535# Try to link conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_link ()
1537{
1538  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539  rm -f conftest.$ac_objext conftest$ac_exeext
1540  if { { ac_try="$ac_link"
1541case "(($ac_try" in
1542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543  *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547  (eval "$ac_link") 2>conftest.err
1548  ac_status=$?
1549  if test -s conftest.err; then
1550    grep -v '^ *+' conftest.err >conftest.er1
1551    cat conftest.er1 >&5
1552    mv -f conftest.er1 conftest.err
1553  fi
1554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555  test $ac_status = 0; } && {
1556	 test -z "$ac_c_werror_flag" ||
1557	 test ! -s conftest.err
1558       } && test -s conftest$ac_exeext && {
1559	 test "$cross_compiling" = yes ||
1560	 test -x conftest$ac_exeext
1561       }; then :
1562  ac_retval=0
1563else
1564  $as_echo "$as_me: failed program was:" >&5
1565sed 's/^/| /' conftest.$ac_ext >&5
1566
1567	ac_retval=1
1568fi
1569  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1570  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1571  # interfere with the next link command; also delete a directory that is
1572  # left behind by Apple's compiler.  We do this before executing the actions.
1573  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1574  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575  as_fn_set_status $ac_retval
1576
1577} # ac_fn_c_try_link
1578
1579# ac_fn_c_check_func LINENO FUNC VAR
1580# ----------------------------------
1581# Tests whether FUNC exists, setting the cache variable VAR accordingly
1582ac_fn_c_check_func ()
1583{
1584  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586$as_echo_n "checking for $2... " >&6; }
1587if eval \${$3+:} false; then :
1588  $as_echo_n "(cached) " >&6
1589else
1590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591/* end confdefs.h.  */
1592/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1593   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1594#define $2 innocuous_$2
1595
1596/* System header to define __stub macros and hopefully few prototypes,
1597    which can conflict with char $2 (); below.
1598    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1599    <limits.h> exists even on freestanding compilers.  */
1600
1601#ifdef __STDC__
1602# include <limits.h>
1603#else
1604# include <assert.h>
1605#endif
1606
1607#undef $2
1608
1609/* Override any GCC internal prototype to avoid an error.
1610   Use char because int might match the return type of a GCC
1611   builtin and then its argument prototype would still apply.  */
1612#ifdef __cplusplus
1613extern "C"
1614#endif
1615char $2 ();
1616/* The GNU C library defines this for functions which it implements
1617    to always fail with ENOSYS.  Some functions are actually named
1618    something starting with __ and the normal name is an alias.  */
1619#if defined __stub_$2 || defined __stub___$2
1620choke me
1621#endif
1622
1623int
1624main ()
1625{
1626return $2 ();
1627  ;
1628  return 0;
1629}
1630_ACEOF
1631if ac_fn_c_try_link "$LINENO"; then :
1632  eval "$3=yes"
1633else
1634  eval "$3=no"
1635fi
1636rm -f core conftest.err conftest.$ac_objext \
1637    conftest$ac_exeext conftest.$ac_ext
1638fi
1639eval ac_res=\$$3
1640	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641$as_echo "$ac_res" >&6; }
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
1644} # ac_fn_c_check_func
1645
1646# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1647# -------------------------------------------------------
1648# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1649# the include files in INCLUDES and setting the cache variable VAR
1650# accordingly.
1651ac_fn_c_check_header_mongrel ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  if eval \${$3+:} false; then :
1655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656$as_echo_n "checking for $2... " >&6; }
1657if eval \${$3+:} false; then :
1658  $as_echo_n "(cached) " >&6
1659fi
1660eval ac_res=\$$3
1661	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662$as_echo "$ac_res" >&6; }
1663else
1664  # Is the header compilable?
1665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1666$as_echo_n "checking $2 usability... " >&6; }
1667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h.  */
1669$4
1670#include <$2>
1671_ACEOF
1672if ac_fn_c_try_compile "$LINENO"; then :
1673  ac_header_compiler=yes
1674else
1675  ac_header_compiler=no
1676fi
1677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1679$as_echo "$ac_header_compiler" >&6; }
1680
1681# Is the header present?
1682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1683$as_echo_n "checking $2 presence... " >&6; }
1684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685/* end confdefs.h.  */
1686#include <$2>
1687_ACEOF
1688if ac_fn_c_try_cpp "$LINENO"; then :
1689  ac_header_preproc=yes
1690else
1691  ac_header_preproc=no
1692fi
1693rm -f conftest.err conftest.i conftest.$ac_ext
1694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1695$as_echo "$ac_header_preproc" >&6; }
1696
1697# So?  What about this header?
1698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1699  yes:no: )
1700    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1701$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1702    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704    ;;
1705  no:yes:* )
1706    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1707$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1708    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1709$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1710    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1711$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1712    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1713$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1714    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1716    ;;
1717esac
1718  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719$as_echo_n "checking for $2... " >&6; }
1720if eval \${$3+:} false; then :
1721  $as_echo_n "(cached) " >&6
1722else
1723  eval "$3=\$ac_header_compiler"
1724fi
1725eval ac_res=\$$3
1726	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727$as_echo "$ac_res" >&6; }
1728fi
1729  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730
1731} # ac_fn_c_check_header_mongrel
1732
1733# ac_fn_c_try_run LINENO
1734# ----------------------
1735# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1736# that executables *can* be run.
1737ac_fn_c_try_run ()
1738{
1739  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740  if { { ac_try="$ac_link"
1741case "(($ac_try" in
1742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743  *) ac_try_echo=$ac_try;;
1744esac
1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746$as_echo "$ac_try_echo"; } >&5
1747  (eval "$ac_link") 2>&5
1748  ac_status=$?
1749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1751  { { case "(($ac_try" in
1752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753  *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756$as_echo "$ac_try_echo"; } >&5
1757  (eval "$ac_try") 2>&5
1758  ac_status=$?
1759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760  test $ac_status = 0; }; }; then :
1761  ac_retval=0
1762else
1763  $as_echo "$as_me: program exited with status $ac_status" >&5
1764       $as_echo "$as_me: failed program was:" >&5
1765sed 's/^/| /' conftest.$ac_ext >&5
1766
1767       ac_retval=$ac_status
1768fi
1769  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771  as_fn_set_status $ac_retval
1772
1773} # ac_fn_c_try_run
1774
1775# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1776# -------------------------------------------------------
1777# Tests whether HEADER exists and can be compiled using the include files in
1778# INCLUDES, setting the cache variable VAR accordingly.
1779ac_fn_c_check_header_compile ()
1780{
1781  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
1784if eval \${$3+:} false; then :
1785  $as_echo_n "(cached) " >&6
1786else
1787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788/* end confdefs.h.  */
1789$4
1790#include <$2>
1791_ACEOF
1792if ac_fn_c_try_compile "$LINENO"; then :
1793  eval "$3=yes"
1794else
1795  eval "$3=no"
1796fi
1797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798fi
1799eval ac_res=\$$3
1800	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801$as_echo "$ac_res" >&6; }
1802  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803
1804} # ac_fn_c_check_header_compile
1805cat >config.log <<_ACEOF
1806This file contains any messages produced by compilers while
1807running configure, to aid debugging if configure makes a mistake.
1808
1809It was created by $as_me, which was
1810generated by GNU Autoconf 2.69.  Invocation command line was
1811
1812  $ $0 $@
1813
1814_ACEOF
1815exec 5>>config.log
1816{
1817cat <<_ASUNAME
1818## --------- ##
1819## Platform. ##
1820## --------- ##
1821
1822hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1823uname -m = `(uname -m) 2>/dev/null || echo unknown`
1824uname -r = `(uname -r) 2>/dev/null || echo unknown`
1825uname -s = `(uname -s) 2>/dev/null || echo unknown`
1826uname -v = `(uname -v) 2>/dev/null || echo unknown`
1827
1828/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1829/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1830
1831/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1832/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1833/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1834/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1835/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1836/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1837/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1838
1839_ASUNAME
1840
1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842for as_dir in $PATH
1843do
1844  IFS=$as_save_IFS
1845  test -z "$as_dir" && as_dir=.
1846    $as_echo "PATH: $as_dir"
1847  done
1848IFS=$as_save_IFS
1849
1850} >&5
1851
1852cat >&5 <<_ACEOF
1853
1854
1855## ----------- ##
1856## Core tests. ##
1857## ----------- ##
1858
1859_ACEOF
1860
1861
1862# Keep a trace of the command line.
1863# Strip out --no-create and --no-recursion so they do not pile up.
1864# Strip out --silent because we don't want to record it for future runs.
1865# Also quote any args containing shell meta-characters.
1866# Make two passes to allow for proper duplicate-argument suppression.
1867ac_configure_args=
1868ac_configure_args0=
1869ac_configure_args1=
1870ac_must_keep_next=false
1871for ac_pass in 1 2
1872do
1873  for ac_arg
1874  do
1875    case $ac_arg in
1876    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1877    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1878    | -silent | --silent | --silen | --sile | --sil)
1879      continue ;;
1880    *\'*)
1881      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1882    esac
1883    case $ac_pass in
1884    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1885    2)
1886      as_fn_append ac_configure_args1 " '$ac_arg'"
1887      if test $ac_must_keep_next = true; then
1888	ac_must_keep_next=false # Got value, back to normal.
1889      else
1890	case $ac_arg in
1891	  *=* | --config-cache | -C | -disable-* | --disable-* \
1892	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1893	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1894	  | -with-* | --with-* | -without-* | --without-* | --x)
1895	    case "$ac_configure_args0 " in
1896	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1897	    esac
1898	    ;;
1899	  -* ) ac_must_keep_next=true ;;
1900	esac
1901      fi
1902      as_fn_append ac_configure_args " '$ac_arg'"
1903      ;;
1904    esac
1905  done
1906done
1907{ ac_configure_args0=; unset ac_configure_args0;}
1908{ ac_configure_args1=; unset ac_configure_args1;}
1909
1910# When interrupted or exit'd, cleanup temporary files, and complete
1911# config.log.  We remove comments because anyway the quotes in there
1912# would cause problems or look ugly.
1913# WARNING: Use '\'' to represent an apostrophe within the trap.
1914# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1915trap 'exit_status=$?
1916  # Save into config.log some information that might help in debugging.
1917  {
1918    echo
1919
1920    $as_echo "## ---------------- ##
1921## Cache variables. ##
1922## ---------------- ##"
1923    echo
1924    # The following way of writing the cache mishandles newlines in values,
1925(
1926  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1927    eval ac_val=\$$ac_var
1928    case $ac_val in #(
1929    *${as_nl}*)
1930      case $ac_var in #(
1931      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1932$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1933      esac
1934      case $ac_var in #(
1935      _ | IFS | as_nl) ;; #(
1936      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1937      *) { eval $ac_var=; unset $ac_var;} ;;
1938      esac ;;
1939    esac
1940  done
1941  (set) 2>&1 |
1942    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1943    *${as_nl}ac_space=\ *)
1944      sed -n \
1945	"s/'\''/'\''\\\\'\'''\''/g;
1946	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1947      ;; #(
1948    *)
1949      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1950      ;;
1951    esac |
1952    sort
1953)
1954    echo
1955
1956    $as_echo "## ----------------- ##
1957## Output variables. ##
1958## ----------------- ##"
1959    echo
1960    for ac_var in $ac_subst_vars
1961    do
1962      eval ac_val=\$$ac_var
1963      case $ac_val in
1964      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1965      esac
1966      $as_echo "$ac_var='\''$ac_val'\''"
1967    done | sort
1968    echo
1969
1970    if test -n "$ac_subst_files"; then
1971      $as_echo "## ------------------- ##
1972## File substitutions. ##
1973## ------------------- ##"
1974      echo
1975      for ac_var in $ac_subst_files
1976      do
1977	eval ac_val=\$$ac_var
1978	case $ac_val in
1979	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980	esac
1981	$as_echo "$ac_var='\''$ac_val'\''"
1982      done | sort
1983      echo
1984    fi
1985
1986    if test -s confdefs.h; then
1987      $as_echo "## ----------- ##
1988## confdefs.h. ##
1989## ----------- ##"
1990      echo
1991      cat confdefs.h
1992      echo
1993    fi
1994    test "$ac_signal" != 0 &&
1995      $as_echo "$as_me: caught signal $ac_signal"
1996    $as_echo "$as_me: exit $exit_status"
1997  } >&5
1998  rm -f core *.core core.conftest.* &&
1999    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2000    exit $exit_status
2001' 0
2002for ac_signal in 1 2 13 15; do
2003  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2004done
2005ac_signal=0
2006
2007# confdefs.h avoids OS command line length limits that DEFS can exceed.
2008rm -f -r conftest* confdefs.h
2009
2010$as_echo "/* confdefs.h */" > confdefs.h
2011
2012# Predefined preprocessor variables.
2013
2014cat >>confdefs.h <<_ACEOF
2015#define PACKAGE_NAME "$PACKAGE_NAME"
2016_ACEOF
2017
2018cat >>confdefs.h <<_ACEOF
2019#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2020_ACEOF
2021
2022cat >>confdefs.h <<_ACEOF
2023#define PACKAGE_VERSION "$PACKAGE_VERSION"
2024_ACEOF
2025
2026cat >>confdefs.h <<_ACEOF
2027#define PACKAGE_STRING "$PACKAGE_STRING"
2028_ACEOF
2029
2030cat >>confdefs.h <<_ACEOF
2031#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2032_ACEOF
2033
2034cat >>confdefs.h <<_ACEOF
2035#define PACKAGE_URL "$PACKAGE_URL"
2036_ACEOF
2037
2038
2039# Let the site file select an alternate cache file if it wants to.
2040# Prefer an explicitly selected file to automatically selected ones.
2041ac_site_file1=NONE
2042ac_site_file2=NONE
2043if test -n "$CONFIG_SITE"; then
2044  # We do not want a PATH search for config.site.
2045  case $CONFIG_SITE in #((
2046    -*)  ac_site_file1=./$CONFIG_SITE;;
2047    */*) ac_site_file1=$CONFIG_SITE;;
2048    *)   ac_site_file1=./$CONFIG_SITE;;
2049  esac
2050elif test "x$prefix" != xNONE; then
2051  ac_site_file1=$prefix/share/config.site
2052  ac_site_file2=$prefix/etc/config.site
2053else
2054  ac_site_file1=$ac_default_prefix/share/config.site
2055  ac_site_file2=$ac_default_prefix/etc/config.site
2056fi
2057for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2058do
2059  test "x$ac_site_file" = xNONE && continue
2060  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2061    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2062$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2063    sed 's/^/| /' "$ac_site_file" >&5
2064    . "$ac_site_file" \
2065      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067as_fn_error $? "failed to load site script $ac_site_file
2068See \`config.log' for more details" "$LINENO" 5; }
2069  fi
2070done
2071
2072if test -r "$cache_file"; then
2073  # Some versions of bash will fail to source /dev/null (special files
2074  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2075  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2076    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2077$as_echo "$as_me: loading cache $cache_file" >&6;}
2078    case $cache_file in
2079      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2080      *)                      . "./$cache_file";;
2081    esac
2082  fi
2083else
2084  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2085$as_echo "$as_me: creating cache $cache_file" >&6;}
2086  >$cache_file
2087fi
2088
2089# Check that the precious variables saved in the cache have kept the same
2090# value.
2091ac_cache_corrupted=false
2092for ac_var in $ac_precious_vars; do
2093  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2094  eval ac_new_set=\$ac_env_${ac_var}_set
2095  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2096  eval ac_new_val=\$ac_env_${ac_var}_value
2097  case $ac_old_set,$ac_new_set in
2098    set,)
2099      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2100$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2101      ac_cache_corrupted=: ;;
2102    ,set)
2103      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2104$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2105      ac_cache_corrupted=: ;;
2106    ,);;
2107    *)
2108      if test "x$ac_old_val" != "x$ac_new_val"; then
2109	# differences in whitespace do not lead to failure.
2110	ac_old_val_w=`echo x $ac_old_val`
2111	ac_new_val_w=`echo x $ac_new_val`
2112	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2113	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2114$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2115	  ac_cache_corrupted=:
2116	else
2117	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2118$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2119	  eval $ac_var=\$ac_old_val
2120	fi
2121	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2122$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2123	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2124$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2125      fi;;
2126  esac
2127  # Pass precious variables to config.status.
2128  if test "$ac_new_set" = set; then
2129    case $ac_new_val in
2130    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2131    *) ac_arg=$ac_var=$ac_new_val ;;
2132    esac
2133    case " $ac_configure_args " in
2134      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2135      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2136    esac
2137  fi
2138done
2139if $ac_cache_corrupted; then
2140  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2143$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2144  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2145fi
2146## -------------------- ##
2147## Main body of script. ##
2148## -------------------- ##
2149
2150ac_ext=c
2151ac_cpp='$CPP $CPPFLAGS'
2152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2154ac_compiler_gnu=$ac_cv_c_compiler_gnu
2155
2156
2157
2158ac_config_headers="$ac_config_headers config.h"
2159
2160
2161DCLVERSION=5.4.8
2162DCLVERNUM=548
2163DCLLANG=c
2164
2165DCLNWS=3
2166
2167CFLAGS=${CFLAGS--O}
2168FFLAGS=${FFLAGS--O}
2169
2170
2171    case "${CC-}" in
2172        '')
2173            case `uname` in
2174                ULTRIX)
2175                    ccs='gcc cc'
2176                    ;;
2177                *)
2178                    ccs='xlc acc cc gcc'
2179                    ;;
2180            esac
2181            for cc in $ccs; do
2182                # Extract the first word of "$cc", so it can be a program name with args.
2183set dummy $cc; ac_word=$2
2184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2185$as_echo_n "checking for $ac_word... " >&6; }
2186if ${ac_cv_prog_CC+:} false; then :
2187  $as_echo_n "(cached) " >&6
2188else
2189  if test -n "$CC"; then
2190  ac_cv_prog_CC="$CC" # Let the user override the test.
2191else
2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195  IFS=$as_save_IFS
2196  test -z "$as_dir" && as_dir=.
2197    for ac_exec_ext in '' $ac_executable_extensions; do
2198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199    ac_cv_prog_CC="$cc"
2200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2201    break 2
2202  fi
2203done
2204  done
2205IFS=$as_save_IFS
2206
2207fi
2208fi
2209CC=$ac_cv_prog_CC
2210if test -n "$CC"; then
2211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2212$as_echo "$CC" >&6; }
2213else
2214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2215$as_echo "no" >&6; }
2216fi
2217
2218
2219                case "$CC" in
2220                    '') ;;
2221                    *)  break;;
2222                esac
2223            done
2224            case "${CC-}" in
2225                '')
2226                    as_fn_error $? "\"Could not find C compiler\"" "$LINENO" 5
2227                    ;;
2228            esac
2229            ;;
2230        *)
2231            { $as_echo "$as_me:${as_lineno-$LINENO}: checking user-defined C compiler \"$CC\"..." >&5
2232$as_echo "$as_me: checking user-defined C compiler \"$CC\"..." >&6;}
2233            ;;
2234    esac
2235    { $as_echo "$as_me:${as_lineno-$LINENO}: checking C compiler" >&5
2236$as_echo_n "checking C compiler... " >&6; }
2237    cat << EOF > conftest.c
2238int main () {
2239  ;
2240  return 0;
2241}
2242EOF
2243    doit='$CC -c ${CFLAGS-} conftest.c'
2244    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5
2245  (eval $doit) 2>&5
2246  ac_status=$?
2247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248  test $ac_status = 0; }; then
2249        { $as_echo "$as_me:${as_lineno-$LINENO}: result: works" >&5
2250$as_echo "works" >&6; }
2251    else
2252        as_fn_error $? "$CC failed to compile test program" "$LINENO" 5
2253        CC=
2254    fi
2255    rm -f conftest.*
2256
2257    case "$CC" in
2258        *gcc*)
2259            GCC=yes             # Expected by autoconf(1) macros
2260            ;;
2261    esac
2262    case `uname -s` in
2263        HP-UX*)
2264            CFLAGS="${CFLAGS-} -D_INCLUDE_POSIX_SOURCE"
2265            ;;
2266        SunOS)
2267            case `uname -r` in
2268                4*)
2269                    CFLAGS="${CFLAGS-} -Dsun4"
2270                    ;;
2271                5*)
2272                    ;;
2273            esac
2274            ;;
2275    esac
2276
2277ac_ext=c
2278ac_cpp='$CPP $CPPFLAGS'
2279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282if test -n "$ac_tool_prefix"; then
2283  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2284set dummy ${ac_tool_prefix}gcc; ac_word=$2
2285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2286$as_echo_n "checking for $ac_word... " >&6; }
2287if ${ac_cv_prog_CC+:} false; then :
2288  $as_echo_n "(cached) " >&6
2289else
2290  if test -n "$CC"; then
2291  ac_cv_prog_CC="$CC" # Let the user override the test.
2292else
2293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294for as_dir in $PATH
2295do
2296  IFS=$as_save_IFS
2297  test -z "$as_dir" && as_dir=.
2298    for ac_exec_ext in '' $ac_executable_extensions; do
2299  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2302    break 2
2303  fi
2304done
2305  done
2306IFS=$as_save_IFS
2307
2308fi
2309fi
2310CC=$ac_cv_prog_CC
2311if test -n "$CC"; then
2312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2313$as_echo "$CC" >&6; }
2314else
2315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2316$as_echo "no" >&6; }
2317fi
2318
2319
2320fi
2321if test -z "$ac_cv_prog_CC"; then
2322  ac_ct_CC=$CC
2323  # Extract the first word of "gcc", so it can be a program name with args.
2324set dummy gcc; ac_word=$2
2325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2326$as_echo_n "checking for $ac_word... " >&6; }
2327if ${ac_cv_prog_ac_ct_CC+:} false; then :
2328  $as_echo_n "(cached) " >&6
2329else
2330  if test -n "$ac_ct_CC"; then
2331  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2332else
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
2336  IFS=$as_save_IFS
2337  test -z "$as_dir" && as_dir=.
2338    for ac_exec_ext in '' $ac_executable_extensions; do
2339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340    ac_cv_prog_ac_ct_CC="gcc"
2341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2342    break 2
2343  fi
2344done
2345  done
2346IFS=$as_save_IFS
2347
2348fi
2349fi
2350ac_ct_CC=$ac_cv_prog_ac_ct_CC
2351if test -n "$ac_ct_CC"; then
2352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2353$as_echo "$ac_ct_CC" >&6; }
2354else
2355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2356$as_echo "no" >&6; }
2357fi
2358
2359  if test "x$ac_ct_CC" = x; then
2360    CC=""
2361  else
2362    case $cross_compiling:$ac_tool_warned in
2363yes:)
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2366ac_tool_warned=yes ;;
2367esac
2368    CC=$ac_ct_CC
2369  fi
2370else
2371  CC="$ac_cv_prog_CC"
2372fi
2373
2374if test -z "$CC"; then
2375          if test -n "$ac_tool_prefix"; then
2376    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2377set dummy ${ac_tool_prefix}cc; ac_word=$2
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379$as_echo_n "checking for $ac_word... " >&6; }
2380if ${ac_cv_prog_CC+:} false; then :
2381  $as_echo_n "(cached) " >&6
2382else
2383  if test -n "$CC"; then
2384  ac_cv_prog_CC="$CC" # Let the user override the test.
2385else
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389  IFS=$as_save_IFS
2390  test -z "$as_dir" && as_dir=.
2391    for ac_exec_ext in '' $ac_executable_extensions; do
2392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393    ac_cv_prog_CC="${ac_tool_prefix}cc"
2394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2395    break 2
2396  fi
2397done
2398  done
2399IFS=$as_save_IFS
2400
2401fi
2402fi
2403CC=$ac_cv_prog_CC
2404if test -n "$CC"; then
2405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2406$as_echo "$CC" >&6; }
2407else
2408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409$as_echo "no" >&6; }
2410fi
2411
2412
2413  fi
2414fi
2415if test -z "$CC"; then
2416  # Extract the first word of "cc", so it can be a program name with args.
2417set dummy cc; ac_word=$2
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419$as_echo_n "checking for $ac_word... " >&6; }
2420if ${ac_cv_prog_CC+:} false; then :
2421  $as_echo_n "(cached) " >&6
2422else
2423  if test -n "$CC"; then
2424  ac_cv_prog_CC="$CC" # Let the user override the test.
2425else
2426  ac_prog_rejected=no
2427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428for as_dir in $PATH
2429do
2430  IFS=$as_save_IFS
2431  test -z "$as_dir" && as_dir=.
2432    for ac_exec_ext in '' $ac_executable_extensions; do
2433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2434    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2435       ac_prog_rejected=yes
2436       continue
2437     fi
2438    ac_cv_prog_CC="cc"
2439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2440    break 2
2441  fi
2442done
2443  done
2444IFS=$as_save_IFS
2445
2446if test $ac_prog_rejected = yes; then
2447  # We found a bogon in the path, so make sure we never use it.
2448  set dummy $ac_cv_prog_CC
2449  shift
2450  if test $# != 0; then
2451    # We chose a different compiler from the bogus one.
2452    # However, it has the same basename, so the bogon will be chosen
2453    # first if we set CC to just the basename; use the full file name.
2454    shift
2455    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2456  fi
2457fi
2458fi
2459fi
2460CC=$ac_cv_prog_CC
2461if test -n "$CC"; then
2462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2463$as_echo "$CC" >&6; }
2464else
2465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466$as_echo "no" >&6; }
2467fi
2468
2469
2470fi
2471if test -z "$CC"; then
2472  if test -n "$ac_tool_prefix"; then
2473  for ac_prog in cl.exe
2474  do
2475    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2476set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478$as_echo_n "checking for $ac_word... " >&6; }
2479if ${ac_cv_prog_CC+:} false; then :
2480  $as_echo_n "(cached) " >&6
2481else
2482  if test -n "$CC"; then
2483  ac_cv_prog_CC="$CC" # Let the user override the test.
2484else
2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486for as_dir in $PATH
2487do
2488  IFS=$as_save_IFS
2489  test -z "$as_dir" && as_dir=.
2490    for ac_exec_ext in '' $ac_executable_extensions; do
2491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494    break 2
2495  fi
2496done
2497  done
2498IFS=$as_save_IFS
2499
2500fi
2501fi
2502CC=$ac_cv_prog_CC
2503if test -n "$CC"; then
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2505$as_echo "$CC" >&6; }
2506else
2507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508$as_echo "no" >&6; }
2509fi
2510
2511
2512    test -n "$CC" && break
2513  done
2514fi
2515if test -z "$CC"; then
2516  ac_ct_CC=$CC
2517  for ac_prog in cl.exe
2518do
2519  # Extract the first word of "$ac_prog", so it can be a program name with args.
2520set dummy $ac_prog; ac_word=$2
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2522$as_echo_n "checking for $ac_word... " >&6; }
2523if ${ac_cv_prog_ac_ct_CC+:} false; then :
2524  $as_echo_n "(cached) " >&6
2525else
2526  if test -n "$ac_ct_CC"; then
2527  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2528else
2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH
2531do
2532  IFS=$as_save_IFS
2533  test -z "$as_dir" && as_dir=.
2534    for ac_exec_ext in '' $ac_executable_extensions; do
2535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536    ac_cv_prog_ac_ct_CC="$ac_prog"
2537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2538    break 2
2539  fi
2540done
2541  done
2542IFS=$as_save_IFS
2543
2544fi
2545fi
2546ac_ct_CC=$ac_cv_prog_ac_ct_CC
2547if test -n "$ac_ct_CC"; then
2548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2549$as_echo "$ac_ct_CC" >&6; }
2550else
2551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2552$as_echo "no" >&6; }
2553fi
2554
2555
2556  test -n "$ac_ct_CC" && break
2557done
2558
2559  if test "x$ac_ct_CC" = x; then
2560    CC=""
2561  else
2562    case $cross_compiling:$ac_tool_warned in
2563yes:)
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2566ac_tool_warned=yes ;;
2567esac
2568    CC=$ac_ct_CC
2569  fi
2570fi
2571
2572fi
2573
2574
2575test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577as_fn_error $? "no acceptable C compiler found in \$PATH
2578See \`config.log' for more details" "$LINENO" 5; }
2579
2580# Provide some information about the compiler.
2581$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2582set X $ac_compile
2583ac_compiler=$2
2584for ac_option in --version -v -V -qversion; do
2585  { { ac_try="$ac_compiler $ac_option >&5"
2586case "(($ac_try" in
2587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588  *) ac_try_echo=$ac_try;;
2589esac
2590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2591$as_echo "$ac_try_echo"; } >&5
2592  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2593  ac_status=$?
2594  if test -s conftest.err; then
2595    sed '10a\
2596... rest of stderr output deleted ...
2597         10q' conftest.err >conftest.er1
2598    cat conftest.er1 >&5
2599  fi
2600  rm -f conftest.er1 conftest.err
2601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2602  test $ac_status = 0; }
2603done
2604
2605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2606/* end confdefs.h.  */
2607
2608int
2609main ()
2610{
2611
2612  ;
2613  return 0;
2614}
2615_ACEOF
2616ac_clean_files_save=$ac_clean_files
2617ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2618# Try to create an executable without -o first, disregard a.out.
2619# It will help us diagnose broken compilers, and finding out an intuition
2620# of exeext.
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2622$as_echo_n "checking whether the C compiler works... " >&6; }
2623ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2624
2625# The possible output files:
2626ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2627
2628ac_rmfiles=
2629for ac_file in $ac_files
2630do
2631  case $ac_file in
2632    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2633    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2634  esac
2635done
2636rm -f $ac_rmfiles
2637
2638if { { ac_try="$ac_link_default"
2639case "(($ac_try" in
2640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641  *) ac_try_echo=$ac_try;;
2642esac
2643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644$as_echo "$ac_try_echo"; } >&5
2645  (eval "$ac_link_default") 2>&5
2646  ac_status=$?
2647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648  test $ac_status = 0; }; then :
2649  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2650# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2651# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2652# so that the user can short-circuit this test for compilers unknown to
2653# Autoconf.
2654for ac_file in $ac_files ''
2655do
2656  test -f "$ac_file" || continue
2657  case $ac_file in
2658    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2659	;;
2660    [ab].out )
2661	# We found the default executable, but exeext='' is most
2662	# certainly right.
2663	break;;
2664    *.* )
2665	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2666	then :; else
2667	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2668	fi
2669	# We set ac_cv_exeext here because the later test for it is not
2670	# safe: cross compilers may not add the suffix if given an `-o'
2671	# argument, so we may need to know it at that point already.
2672	# Even if this section looks crufty: it has the advantage of
2673	# actually working.
2674	break;;
2675    * )
2676	break;;
2677  esac
2678done
2679test "$ac_cv_exeext" = no && ac_cv_exeext=
2680
2681else
2682  ac_file=''
2683fi
2684if test -z "$ac_file"; then :
2685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686$as_echo "no" >&6; }
2687$as_echo "$as_me: failed program was:" >&5
2688sed 's/^/| /' conftest.$ac_ext >&5
2689
2690{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692as_fn_error 77 "C compiler cannot create executables
2693See \`config.log' for more details" "$LINENO" 5; }
2694else
2695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2696$as_echo "yes" >&6; }
2697fi
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2699$as_echo_n "checking for C compiler default output file name... " >&6; }
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2701$as_echo "$ac_file" >&6; }
2702ac_exeext=$ac_cv_exeext
2703
2704rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2705ac_clean_files=$ac_clean_files_save
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2707$as_echo_n "checking for suffix of executables... " >&6; }
2708if { { ac_try="$ac_link"
2709case "(($ac_try" in
2710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711  *) ac_try_echo=$ac_try;;
2712esac
2713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2714$as_echo "$ac_try_echo"; } >&5
2715  (eval "$ac_link") 2>&5
2716  ac_status=$?
2717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718  test $ac_status = 0; }; then :
2719  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2720# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2721# work properly (i.e., refer to `conftest.exe'), while it won't with
2722# `rm'.
2723for ac_file in conftest.exe conftest conftest.*; do
2724  test -f "$ac_file" || continue
2725  case $ac_file in
2726    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2727    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2728	  break;;
2729    * ) break;;
2730  esac
2731done
2732else
2733  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2736See \`config.log' for more details" "$LINENO" 5; }
2737fi
2738rm -f conftest conftest$ac_cv_exeext
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2740$as_echo "$ac_cv_exeext" >&6; }
2741
2742rm -f conftest.$ac_ext
2743EXEEXT=$ac_cv_exeext
2744ac_exeext=$EXEEXT
2745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746/* end confdefs.h.  */
2747#include <stdio.h>
2748int
2749main ()
2750{
2751FILE *f = fopen ("conftest.out", "w");
2752 return ferror (f) || fclose (f) != 0;
2753
2754  ;
2755  return 0;
2756}
2757_ACEOF
2758ac_clean_files="$ac_clean_files conftest.out"
2759# Check that the compiler produces executables we can run.  If not, either
2760# the compiler is broken, or we cross compile.
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2762$as_echo_n "checking whether we are cross compiling... " >&6; }
2763if test "$cross_compiling" != yes; then
2764  { { ac_try="$ac_link"
2765case "(($ac_try" in
2766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767  *) ac_try_echo=$ac_try;;
2768esac
2769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2770$as_echo "$ac_try_echo"; } >&5
2771  (eval "$ac_link") 2>&5
2772  ac_status=$?
2773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2774  test $ac_status = 0; }
2775  if { ac_try='./conftest$ac_cv_exeext'
2776  { { case "(($ac_try" in
2777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778  *) ac_try_echo=$ac_try;;
2779esac
2780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781$as_echo "$ac_try_echo"; } >&5
2782  (eval "$ac_try") 2>&5
2783  ac_status=$?
2784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785  test $ac_status = 0; }; }; then
2786    cross_compiling=no
2787  else
2788    if test "$cross_compiling" = maybe; then
2789	cross_compiling=yes
2790    else
2791	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2793as_fn_error $? "cannot run C compiled programs.
2794If you meant to cross compile, use \`--host'.
2795See \`config.log' for more details" "$LINENO" 5; }
2796    fi
2797  fi
2798fi
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2800$as_echo "$cross_compiling" >&6; }
2801
2802rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2803ac_clean_files=$ac_clean_files_save
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2805$as_echo_n "checking for suffix of object files... " >&6; }
2806if ${ac_cv_objext+:} false; then :
2807  $as_echo_n "(cached) " >&6
2808else
2809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810/* end confdefs.h.  */
2811
2812int
2813main ()
2814{
2815
2816  ;
2817  return 0;
2818}
2819_ACEOF
2820rm -f conftest.o conftest.obj
2821if { { ac_try="$ac_compile"
2822case "(($ac_try" in
2823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824  *) ac_try_echo=$ac_try;;
2825esac
2826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2827$as_echo "$ac_try_echo"; } >&5
2828  (eval "$ac_compile") 2>&5
2829  ac_status=$?
2830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2831  test $ac_status = 0; }; then :
2832  for ac_file in conftest.o conftest.obj conftest.*; do
2833  test -f "$ac_file" || continue;
2834  case $ac_file in
2835    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2836    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2837       break;;
2838  esac
2839done
2840else
2841  $as_echo "$as_me: failed program was:" >&5
2842sed 's/^/| /' conftest.$ac_ext >&5
2843
2844{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2846as_fn_error $? "cannot compute suffix of object files: cannot compile
2847See \`config.log' for more details" "$LINENO" 5; }
2848fi
2849rm -f conftest.$ac_cv_objext conftest.$ac_ext
2850fi
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2852$as_echo "$ac_cv_objext" >&6; }
2853OBJEXT=$ac_cv_objext
2854ac_objext=$OBJEXT
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2856$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2857if ${ac_cv_c_compiler_gnu+:} false; then :
2858  $as_echo_n "(cached) " >&6
2859else
2860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861/* end confdefs.h.  */
2862
2863int
2864main ()
2865{
2866#ifndef __GNUC__
2867       choke me
2868#endif
2869
2870  ;
2871  return 0;
2872}
2873_ACEOF
2874if ac_fn_c_try_compile "$LINENO"; then :
2875  ac_compiler_gnu=yes
2876else
2877  ac_compiler_gnu=no
2878fi
2879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880ac_cv_c_compiler_gnu=$ac_compiler_gnu
2881
2882fi
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2884$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2885if test $ac_compiler_gnu = yes; then
2886  GCC=yes
2887else
2888  GCC=
2889fi
2890ac_test_CFLAGS=${CFLAGS+set}
2891ac_save_CFLAGS=$CFLAGS
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2893$as_echo_n "checking whether $CC accepts -g... " >&6; }
2894if ${ac_cv_prog_cc_g+:} false; then :
2895  $as_echo_n "(cached) " >&6
2896else
2897  ac_save_c_werror_flag=$ac_c_werror_flag
2898   ac_c_werror_flag=yes
2899   ac_cv_prog_cc_g=no
2900   CFLAGS="-g"
2901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902/* end confdefs.h.  */
2903
2904int
2905main ()
2906{
2907
2908  ;
2909  return 0;
2910}
2911_ACEOF
2912if ac_fn_c_try_compile "$LINENO"; then :
2913  ac_cv_prog_cc_g=yes
2914else
2915  CFLAGS=""
2916      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917/* end confdefs.h.  */
2918
2919int
2920main ()
2921{
2922
2923  ;
2924  return 0;
2925}
2926_ACEOF
2927if ac_fn_c_try_compile "$LINENO"; then :
2928
2929else
2930  ac_c_werror_flag=$ac_save_c_werror_flag
2931	 CFLAGS="-g"
2932	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933/* end confdefs.h.  */
2934
2935int
2936main ()
2937{
2938
2939  ;
2940  return 0;
2941}
2942_ACEOF
2943if ac_fn_c_try_compile "$LINENO"; then :
2944  ac_cv_prog_cc_g=yes
2945fi
2946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2947fi
2948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2949fi
2950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2951   ac_c_werror_flag=$ac_save_c_werror_flag
2952fi
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2954$as_echo "$ac_cv_prog_cc_g" >&6; }
2955if test "$ac_test_CFLAGS" = set; then
2956  CFLAGS=$ac_save_CFLAGS
2957elif test $ac_cv_prog_cc_g = yes; then
2958  if test "$GCC" = yes; then
2959    CFLAGS="-g -O2"
2960  else
2961    CFLAGS="-g"
2962  fi
2963else
2964  if test "$GCC" = yes; then
2965    CFLAGS="-O2"
2966  else
2967    CFLAGS=
2968  fi
2969fi
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2971$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2972if ${ac_cv_prog_cc_c89+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975  ac_cv_prog_cc_c89=no
2976ac_save_CC=$CC
2977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978/* end confdefs.h.  */
2979#include <stdarg.h>
2980#include <stdio.h>
2981struct stat;
2982/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2983struct buf { int x; };
2984FILE * (*rcsopen) (struct buf *, struct stat *, int);
2985static char *e (p, i)
2986     char **p;
2987     int i;
2988{
2989  return p[i];
2990}
2991static char *f (char * (*g) (char **, int), char **p, ...)
2992{
2993  char *s;
2994  va_list v;
2995  va_start (v,p);
2996  s = g (p, va_arg (v,int));
2997  va_end (v);
2998  return s;
2999}
3000
3001/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3002   function prototypes and stuff, but not '\xHH' hex character constants.
3003   These don't provoke an error unfortunately, instead are silently treated
3004   as 'x'.  The following induces an error, until -std is added to get
3005   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3006   array size at least.  It's necessary to write '\x00'==0 to get something
3007   that's true only with -std.  */
3008int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3009
3010/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3011   inside strings and character constants.  */
3012#define FOO(x) 'x'
3013int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3014
3015int test (int i, double x);
3016struct s1 {int (*f) (int a);};
3017struct s2 {int (*f) (double a);};
3018int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3019int argc;
3020char **argv;
3021int
3022main ()
3023{
3024return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3025  ;
3026  return 0;
3027}
3028_ACEOF
3029for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3030	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3031do
3032  CC="$ac_save_CC $ac_arg"
3033  if ac_fn_c_try_compile "$LINENO"; then :
3034  ac_cv_prog_cc_c89=$ac_arg
3035fi
3036rm -f core conftest.err conftest.$ac_objext
3037  test "x$ac_cv_prog_cc_c89" != "xno" && break
3038done
3039rm -f conftest.$ac_ext
3040CC=$ac_save_CC
3041
3042fi
3043# AC_CACHE_VAL
3044case "x$ac_cv_prog_cc_c89" in
3045  x)
3046    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3047$as_echo "none needed" >&6; } ;;
3048  xno)
3049    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3050$as_echo "unsupported" >&6; } ;;
3051  *)
3052    CC="$CC $ac_cv_prog_cc_c89"
3053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3054$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3055esac
3056if test "x$ac_cv_prog_cc_c89" != xno; then :
3057
3058fi
3059
3060ac_ext=c
3061ac_cpp='$CPP $CPPFLAGS'
3062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065
3066ac_ext=c
3067ac_cpp='$CPP $CPPFLAGS'
3068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3070ac_compiler_gnu=$ac_cv_c_compiler_gnu
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3072$as_echo_n "checking how to run the C preprocessor... " >&6; }
3073# On Suns, sometimes $CPP names a directory.
3074if test -n "$CPP" && test -d "$CPP"; then
3075  CPP=
3076fi
3077if test -z "$CPP"; then
3078  if ${ac_cv_prog_CPP+:} false; then :
3079  $as_echo_n "(cached) " >&6
3080else
3081      # Double quotes because CPP needs to be expanded
3082    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3083    do
3084      ac_preproc_ok=false
3085for ac_c_preproc_warn_flag in '' yes
3086do
3087  # Use a header file that comes with gcc, so configuring glibc
3088  # with a fresh cross-compiler works.
3089  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3090  # <limits.h> exists even on freestanding compilers.
3091  # On the NeXT, cc -E runs the code through the compiler's parser,
3092  # not just through cpp. "Syntax error" is here to catch this case.
3093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094/* end confdefs.h.  */
3095#ifdef __STDC__
3096# include <limits.h>
3097#else
3098# include <assert.h>
3099#endif
3100		     Syntax error
3101_ACEOF
3102if ac_fn_c_try_cpp "$LINENO"; then :
3103
3104else
3105  # Broken: fails on valid input.
3106continue
3107fi
3108rm -f conftest.err conftest.i conftest.$ac_ext
3109
3110  # OK, works on sane cases.  Now check whether nonexistent headers
3111  # can be detected and how.
3112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113/* end confdefs.h.  */
3114#include <ac_nonexistent.h>
3115_ACEOF
3116if ac_fn_c_try_cpp "$LINENO"; then :
3117  # Broken: success on invalid input.
3118continue
3119else
3120  # Passes both tests.
3121ac_preproc_ok=:
3122break
3123fi
3124rm -f conftest.err conftest.i conftest.$ac_ext
3125
3126done
3127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3128rm -f conftest.i conftest.err conftest.$ac_ext
3129if $ac_preproc_ok; then :
3130  break
3131fi
3132
3133    done
3134    ac_cv_prog_CPP=$CPP
3135
3136fi
3137  CPP=$ac_cv_prog_CPP
3138else
3139  ac_cv_prog_CPP=$CPP
3140fi
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3142$as_echo "$CPP" >&6; }
3143ac_preproc_ok=false
3144for ac_c_preproc_warn_flag in '' yes
3145do
3146  # Use a header file that comes with gcc, so configuring glibc
3147  # with a fresh cross-compiler works.
3148  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3149  # <limits.h> exists even on freestanding compilers.
3150  # On the NeXT, cc -E runs the code through the compiler's parser,
3151  # not just through cpp. "Syntax error" is here to catch this case.
3152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153/* end confdefs.h.  */
3154#ifdef __STDC__
3155# include <limits.h>
3156#else
3157# include <assert.h>
3158#endif
3159		     Syntax error
3160_ACEOF
3161if ac_fn_c_try_cpp "$LINENO"; then :
3162
3163else
3164  # Broken: fails on valid input.
3165continue
3166fi
3167rm -f conftest.err conftest.i conftest.$ac_ext
3168
3169  # OK, works on sane cases.  Now check whether nonexistent headers
3170  # can be detected and how.
3171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172/* end confdefs.h.  */
3173#include <ac_nonexistent.h>
3174_ACEOF
3175if ac_fn_c_try_cpp "$LINENO"; then :
3176  # Broken: success on invalid input.
3177continue
3178else
3179  # Passes both tests.
3180ac_preproc_ok=:
3181break
3182fi
3183rm -f conftest.err conftest.i conftest.$ac_ext
3184
3185done
3186# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3187rm -f conftest.i conftest.err conftest.$ac_ext
3188if $ac_preproc_ok; then :
3189
3190else
3191  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3194See \`config.log' for more details" "$LINENO" 5; }
3195fi
3196
3197ac_ext=c
3198ac_cpp='$CPP $CPPFLAGS'
3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202
3203
3204    awk="mawk gawk jgawk nawk awk"
3205    for prog in $awk
3206    do
3207        # Extract the first word of "$prog", so it can be a program name with args.
3208set dummy $prog; ac_word=$2
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210$as_echo_n "checking for $ac_word... " >&6; }
3211if ${ac_cv_path_AWK+:} false; then :
3212  $as_echo_n "(cached) " >&6
3213else
3214  case $AWK in
3215  [\\/]* | ?:[\\/]*)
3216  ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3217  ;;
3218  *)
3219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220for as_dir in $PATH
3221do
3222  IFS=$as_save_IFS
3223  test -z "$as_dir" && as_dir=.
3224    for ac_exec_ext in '' $ac_executable_extensions; do
3225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226    ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228    break 2
3229  fi
3230done
3231  done
3232IFS=$as_save_IFS
3233
3234  ;;
3235esac
3236fi
3237AWK=$ac_cv_path_AWK
3238if test -n "$AWK"; then
3239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3240$as_echo "$AWK" >&6; }
3241else
3242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243$as_echo "no" >&6; }
3244fi
3245
3246
3247        case "${AWK-}" in
3248            '')
3249                ;;
3250            *)
3251                break;;
3252        esac
3253    done
3254    case "${AWK-}" in
3255        '')
3256            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find awk program" >&5
3257$as_echo "$as_me: WARNING: Could not find awk program" >&2;}
3258            AWK=
3259            ;;
3260    esac
3261
3262
3263
3264    sed="gsed sed"
3265    for prog in $sed
3266    do
3267        # Extract the first word of "$prog", so it can be a program name with args.
3268set dummy $prog; ac_word=$2
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270$as_echo_n "checking for $ac_word... " >&6; }
3271if ${ac_cv_prog_SED+:} false; then :
3272  $as_echo_n "(cached) " >&6
3273else
3274  if test -n "$SED"; then
3275  ac_cv_prog_SED="$SED" # Let the user override the test.
3276else
3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278for as_dir in $PATH
3279do
3280  IFS=$as_save_IFS
3281  test -z "$as_dir" && as_dir=.
3282    for ac_exec_ext in '' $ac_executable_extensions; do
3283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284    ac_cv_prog_SED="$prog"
3285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286    break 2
3287  fi
3288done
3289  done
3290IFS=$as_save_IFS
3291
3292fi
3293fi
3294SED=$ac_cv_prog_SED
3295if test -n "$SED"; then
3296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3297$as_echo "$SED" >&6; }
3298else
3299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300$as_echo "no" >&6; }
3301fi
3302
3303
3304        case "${SED-}" in
3305            '')
3306                ;;
3307            *)
3308                break;;
3309        esac
3310    done
3311    case "${SED-}" in
3312        '')
3313            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find sed program" >&5
3314$as_echo "$as_me: WARNING: Could not find sed program" >&2;}
3315            SED=
3316            ;;
3317    esac
3318
3319
3320if test -n "$ac_tool_prefix"; then
3321  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3322set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324$as_echo_n "checking for $ac_word... " >&6; }
3325if ${ac_cv_prog_RANLIB+:} false; then :
3326  $as_echo_n "(cached) " >&6
3327else
3328  if test -n "$RANLIB"; then
3329  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3330else
3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334  IFS=$as_save_IFS
3335  test -z "$as_dir" && as_dir=.
3336    for ac_exec_ext in '' $ac_executable_extensions; do
3337  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340    break 2
3341  fi
3342done
3343  done
3344IFS=$as_save_IFS
3345
3346fi
3347fi
3348RANLIB=$ac_cv_prog_RANLIB
3349if test -n "$RANLIB"; then
3350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3351$as_echo "$RANLIB" >&6; }
3352else
3353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354$as_echo "no" >&6; }
3355fi
3356
3357
3358fi
3359if test -z "$ac_cv_prog_RANLIB"; then
3360  ac_ct_RANLIB=$RANLIB
3361  # Extract the first word of "ranlib", so it can be a program name with args.
3362set dummy ranlib; ac_word=$2
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364$as_echo_n "checking for $ac_word... " >&6; }
3365if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  if test -n "$ac_ct_RANLIB"; then
3369  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3370else
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374  IFS=$as_save_IFS
3375  test -z "$as_dir" && as_dir=.
3376    for ac_exec_ext in '' $ac_executable_extensions; do
3377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378    ac_cv_prog_ac_ct_RANLIB="ranlib"
3379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380    break 2
3381  fi
3382done
3383  done
3384IFS=$as_save_IFS
3385
3386fi
3387fi
3388ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3389if test -n "$ac_ct_RANLIB"; then
3390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3391$as_echo "$ac_ct_RANLIB" >&6; }
3392else
3393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394$as_echo "no" >&6; }
3395fi
3396
3397  if test "x$ac_ct_RANLIB" = x; then
3398    RANLIB=":"
3399  else
3400    case $cross_compiling:$ac_tool_warned in
3401yes:)
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3404ac_tool_warned=yes ;;
3405esac
3406    RANLIB=$ac_ct_RANLIB
3407  fi
3408else
3409  RANLIB="$ac_cv_prog_RANLIB"
3410fi
3411
3412
3413
3414    FC=
3415    FFLAGS=
3416    FLIBS=
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
3428$as_echo_n "checking for X... " >&6; }
3429
3430
3431# Check whether --with-x was given.
3432if test "${with_x+set}" = set; then :
3433  withval=$with_x;
3434fi
3435
3436# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3437if test "x$with_x" = xno; then
3438  # The user explicitly disabled X.
3439  have_x=disabled
3440else
3441  case $x_includes,$x_libraries in #(
3442    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
3443    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
3444  $as_echo_n "(cached) " >&6
3445else
3446  # One or both of the vars are not set, and there is no cached value.
3447ac_x_includes=no ac_x_libraries=no
3448rm -f -r conftest.dir
3449if mkdir conftest.dir; then
3450  cd conftest.dir
3451  cat >Imakefile <<'_ACEOF'
3452incroot:
3453	@echo incroot='${INCROOT}'
3454usrlibdir:
3455	@echo usrlibdir='${USRLIBDIR}'
3456libdir:
3457	@echo libdir='${LIBDIR}'
3458_ACEOF
3459  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3460    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3461    for ac_var in incroot usrlibdir libdir; do
3462      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3463    done
3464    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3465    for ac_extension in a so sl dylib la dll; do
3466      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3467	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3468	ac_im_usrlibdir=$ac_im_libdir; break
3469      fi
3470    done
3471    # Screen out bogus values from the imake configuration.  They are
3472    # bogus both because they are the default anyway, and because
3473    # using them would break gcc on systems where it needs fixed includes.
3474    case $ac_im_incroot in
3475	/usr/include) ac_x_includes= ;;
3476	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3477    esac
3478    case $ac_im_usrlibdir in
3479	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
3480	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3481    esac
3482  fi
3483  cd ..
3484  rm -f -r conftest.dir
3485fi
3486
3487# Standard set of common directories for X headers.
3488# Check X11 before X11Rn because it is often a symlink to the current release.
3489ac_x_header_dirs='
3490/usr/X11/include
3491/usr/X11R7/include
3492/usr/X11R6/include
3493/usr/X11R5/include
3494/usr/X11R4/include
3495
3496/usr/include/X11
3497/usr/include/X11R7
3498/usr/include/X11R6
3499/usr/include/X11R5
3500/usr/include/X11R4
3501
3502/usr/local/X11/include
3503/usr/local/X11R7/include
3504/usr/local/X11R6/include
3505/usr/local/X11R5/include
3506/usr/local/X11R4/include
3507
3508/usr/local/include/X11
3509/usr/local/include/X11R7
3510/usr/local/include/X11R6
3511/usr/local/include/X11R5
3512/usr/local/include/X11R4
3513
3514/usr/X386/include
3515/usr/x386/include
3516/usr/XFree86/include/X11
3517
3518/usr/include
3519/usr/local/include
3520/usr/unsupported/include
3521/usr/athena/include
3522/usr/local/x11r5/include
3523/usr/lpp/Xamples/include
3524
3525/usr/openwin/include
3526/usr/openwin/share/include'
3527
3528if test "$ac_x_includes" = no; then
3529  # Guess where to find include files, by looking for Xlib.h.
3530  # First, try using that file with no special directory specified.
3531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532/* end confdefs.h.  */
3533#include <X11/Xlib.h>
3534_ACEOF
3535if ac_fn_c_try_cpp "$LINENO"; then :
3536  # We can compile using X headers with no special include directory.
3537ac_x_includes=
3538else
3539  for ac_dir in $ac_x_header_dirs; do
3540  if test -r "$ac_dir/X11/Xlib.h"; then
3541    ac_x_includes=$ac_dir
3542    break
3543  fi
3544done
3545fi
3546rm -f conftest.err conftest.i conftest.$ac_ext
3547fi # $ac_x_includes = no
3548
3549if test "$ac_x_libraries" = no; then
3550  # Check for the libraries.
3551  # See if we find them without any special options.
3552  # Don't add to $LIBS permanently.
3553  ac_save_LIBS=$LIBS
3554  LIBS="-lX11 $LIBS"
3555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556/* end confdefs.h.  */
3557#include <X11/Xlib.h>
3558int
3559main ()
3560{
3561XrmInitialize ()
3562  ;
3563  return 0;
3564}
3565_ACEOF
3566if ac_fn_c_try_link "$LINENO"; then :
3567  LIBS=$ac_save_LIBS
3568# We can link X programs with no special library path.
3569ac_x_libraries=
3570else
3571  LIBS=$ac_save_LIBS
3572for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3573do
3574  # Don't even attempt the hair of trying to link an X program!
3575  for ac_extension in a so sl dylib la dll; do
3576    if test -r "$ac_dir/libX11.$ac_extension"; then
3577      ac_x_libraries=$ac_dir
3578      break 2
3579    fi
3580  done
3581done
3582fi
3583rm -f core conftest.err conftest.$ac_objext \
3584    conftest$ac_exeext conftest.$ac_ext
3585fi # $ac_x_libraries = no
3586
3587case $ac_x_includes,$ac_x_libraries in #(
3588  no,* | *,no | *\'*)
3589    # Didn't find X, or a directory has "'" in its name.
3590    ac_cv_have_x="have_x=no";; #(
3591  *)
3592    # Record where we found X for the cache.
3593    ac_cv_have_x="have_x=yes\
3594	ac_x_includes='$ac_x_includes'\
3595	ac_x_libraries='$ac_x_libraries'"
3596esac
3597fi
3598;; #(
3599    *) have_x=yes;;
3600  esac
3601  eval "$ac_cv_have_x"
3602fi # $with_x != no
3603
3604if test "$have_x" != yes; then
3605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
3606$as_echo "$have_x" >&6; }
3607  no_x=yes
3608else
3609  # If each of the values was on the command line, it overrides each guess.
3610  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3611  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3612  # Update the cache value to reflect the command line values.
3613  ac_cv_have_x="have_x=yes\
3614	ac_x_includes='$x_includes'\
3615	ac_x_libraries='$x_libraries'"
3616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
3617$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
3618fi
3619
3620if test "$no_x" = yes; then
3621  X_INCLUDES= X_LIBRARIES=
3622else
3623  if test -n "$x_includes"; then
3624    X_INCLUDES="-I$x_includes"
3625  fi
3626  X_LIBRARIES="-lX11"
3627  $as_echo "#define X11 1" >>confdefs.h
3628
3629fi
3630if test "$no_x" = yes; then
3631  # Not all programs may use this symbol, but it does not hurt to define it.
3632
3633$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
3634
3635  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3636else
3637  if test -n "$x_includes"; then
3638    X_CFLAGS="$X_CFLAGS -I$x_includes"
3639  fi
3640
3641  # It would also be nice to do this for all -L options, not just this one.
3642  if test -n "$x_libraries"; then
3643    X_LIBS="$X_LIBS -L$x_libraries"
3644    # For Solaris; some versions of Sun CC require a space after -R and
3645    # others require no space.  Words are not sufficient . . . .
3646    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
3647$as_echo_n "checking whether -R must be followed by a space... " >&6; }
3648    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3649    ac_xsave_c_werror_flag=$ac_c_werror_flag
3650    ac_c_werror_flag=yes
3651    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652/* end confdefs.h.  */
3653
3654int
3655main ()
3656{
3657
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662if ac_fn_c_try_link "$LINENO"; then :
3663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664$as_echo "no" >&6; }
3665       X_LIBS="$X_LIBS -R$x_libraries"
3666else
3667  LIBS="$ac_xsave_LIBS -R $x_libraries"
3668       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669/* end confdefs.h.  */
3670
3671int
3672main ()
3673{
3674
3675  ;
3676  return 0;
3677}
3678_ACEOF
3679if ac_fn_c_try_link "$LINENO"; then :
3680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3681$as_echo "yes" >&6; }
3682	  X_LIBS="$X_LIBS -R $x_libraries"
3683else
3684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
3685$as_echo "neither works" >&6; }
3686fi
3687rm -f core conftest.err conftest.$ac_objext \
3688    conftest$ac_exeext conftest.$ac_ext
3689fi
3690rm -f core conftest.err conftest.$ac_objext \
3691    conftest$ac_exeext conftest.$ac_ext
3692    ac_c_werror_flag=$ac_xsave_c_werror_flag
3693    LIBS=$ac_xsave_LIBS
3694  fi
3695
3696  # Check for system-dependent libraries X programs must link with.
3697  # Do this before checking for the system-independent R6 libraries
3698  # (-lICE), since we may need -lsocket or whatever for X linking.
3699
3700  if test "$ISC" = yes; then
3701    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3702  else
3703    # Martyn Johnson says this is needed for Ultrix, if the X
3704    # libraries were built with DECnet support.  And Karl Berry says
3705    # the Alpha needs dnet_stub (dnet does not exist).
3706    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3707    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h.  */
3709
3710/* Override any GCC internal prototype to avoid an error.
3711   Use char because int might match the return type of a GCC
3712   builtin and then its argument prototype would still apply.  */
3713#ifdef __cplusplus
3714extern "C"
3715#endif
3716char XOpenDisplay ();
3717int
3718main ()
3719{
3720return XOpenDisplay ();
3721  ;
3722  return 0;
3723}
3724_ACEOF
3725if ac_fn_c_try_link "$LINENO"; then :
3726
3727else
3728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
3729$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
3730if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
3731  $as_echo_n "(cached) " >&6
3732else
3733  ac_check_lib_save_LIBS=$LIBS
3734LIBS="-ldnet  $LIBS"
3735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736/* end confdefs.h.  */
3737
3738/* Override any GCC internal prototype to avoid an error.
3739   Use char because int might match the return type of a GCC
3740   builtin and then its argument prototype would still apply.  */
3741#ifdef __cplusplus
3742extern "C"
3743#endif
3744char dnet_ntoa ();
3745int
3746main ()
3747{
3748return dnet_ntoa ();
3749  ;
3750  return 0;
3751}
3752_ACEOF
3753if ac_fn_c_try_link "$LINENO"; then :
3754  ac_cv_lib_dnet_dnet_ntoa=yes
3755else
3756  ac_cv_lib_dnet_dnet_ntoa=no
3757fi
3758rm -f core conftest.err conftest.$ac_objext \
3759    conftest$ac_exeext conftest.$ac_ext
3760LIBS=$ac_check_lib_save_LIBS
3761fi
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3763$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
3764if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
3765  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3766fi
3767
3768    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3769      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
3770$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
3771if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
3772  $as_echo_n "(cached) " >&6
3773else
3774  ac_check_lib_save_LIBS=$LIBS
3775LIBS="-ldnet_stub  $LIBS"
3776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777/* end confdefs.h.  */
3778
3779/* Override any GCC internal prototype to avoid an error.
3780   Use char because int might match the return type of a GCC
3781   builtin and then its argument prototype would still apply.  */
3782#ifdef __cplusplus
3783extern "C"
3784#endif
3785char dnet_ntoa ();
3786int
3787main ()
3788{
3789return dnet_ntoa ();
3790  ;
3791  return 0;
3792}
3793_ACEOF
3794if ac_fn_c_try_link "$LINENO"; then :
3795  ac_cv_lib_dnet_stub_dnet_ntoa=yes
3796else
3797  ac_cv_lib_dnet_stub_dnet_ntoa=no
3798fi
3799rm -f core conftest.err conftest.$ac_objext \
3800    conftest$ac_exeext conftest.$ac_ext
3801LIBS=$ac_check_lib_save_LIBS
3802fi
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3804$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
3805if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
3806  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3807fi
3808
3809    fi
3810fi
3811rm -f core conftest.err conftest.$ac_objext \
3812    conftest$ac_exeext conftest.$ac_ext
3813    LIBS="$ac_xsave_LIBS"
3814
3815    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3816    # to get the SysV transport functions.
3817    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3818    # needs -lnsl.
3819    # The nsl library prevents programs from opening the X display
3820    # on Irix 5.2, according to T.E. Dickey.
3821    # The functions gethostbyname, getservbyname, and inet_addr are
3822    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3823    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
3824if test "x$ac_cv_func_gethostbyname" = xyes; then :
3825
3826fi
3827
3828    if test $ac_cv_func_gethostbyname = no; then
3829      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
3830$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
3831if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
3832  $as_echo_n "(cached) " >&6
3833else
3834  ac_check_lib_save_LIBS=$LIBS
3835LIBS="-lnsl  $LIBS"
3836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h.  */
3838
3839/* Override any GCC internal prototype to avoid an error.
3840   Use char because int might match the return type of a GCC
3841   builtin and then its argument prototype would still apply.  */
3842#ifdef __cplusplus
3843extern "C"
3844#endif
3845char gethostbyname ();
3846int
3847main ()
3848{
3849return gethostbyname ();
3850  ;
3851  return 0;
3852}
3853_ACEOF
3854if ac_fn_c_try_link "$LINENO"; then :
3855  ac_cv_lib_nsl_gethostbyname=yes
3856else
3857  ac_cv_lib_nsl_gethostbyname=no
3858fi
3859rm -f core conftest.err conftest.$ac_objext \
3860    conftest$ac_exeext conftest.$ac_ext
3861LIBS=$ac_check_lib_save_LIBS
3862fi
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
3864$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
3865if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
3866  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3867fi
3868
3869      if test $ac_cv_lib_nsl_gethostbyname = no; then
3870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
3871$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
3872if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
3873  $as_echo_n "(cached) " >&6
3874else
3875  ac_check_lib_save_LIBS=$LIBS
3876LIBS="-lbsd  $LIBS"
3877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878/* end confdefs.h.  */
3879
3880/* Override any GCC internal prototype to avoid an error.
3881   Use char because int might match the return type of a GCC
3882   builtin and then its argument prototype would still apply.  */
3883#ifdef __cplusplus
3884extern "C"
3885#endif
3886char gethostbyname ();
3887int
3888main ()
3889{
3890return gethostbyname ();
3891  ;
3892  return 0;
3893}
3894_ACEOF
3895if ac_fn_c_try_link "$LINENO"; then :
3896  ac_cv_lib_bsd_gethostbyname=yes
3897else
3898  ac_cv_lib_bsd_gethostbyname=no
3899fi
3900rm -f core conftest.err conftest.$ac_objext \
3901    conftest$ac_exeext conftest.$ac_ext
3902LIBS=$ac_check_lib_save_LIBS
3903fi
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
3905$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
3906if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
3907  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3908fi
3909
3910      fi
3911    fi
3912
3913    # lieder@skyler.mavd.honeywell.com says without -lsocket,
3914    # socket/setsockopt and other routines are undefined under SCO ODT
3915    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3916    # on later versions), says Simon Leinen: it contains gethostby*
3917    # variants that don't use the name server (or something).  -lsocket
3918    # must be given before -lnsl if both are needed.  We assume that
3919    # if connect needs -lnsl, so does gethostbyname.
3920    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
3921if test "x$ac_cv_func_connect" = xyes; then :
3922
3923fi
3924
3925    if test $ac_cv_func_connect = no; then
3926      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
3927$as_echo_n "checking for connect in -lsocket... " >&6; }
3928if ${ac_cv_lib_socket_connect+:} false; then :
3929  $as_echo_n "(cached) " >&6
3930else
3931  ac_check_lib_save_LIBS=$LIBS
3932LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934/* end confdefs.h.  */
3935
3936/* Override any GCC internal prototype to avoid an error.
3937   Use char because int might match the return type of a GCC
3938   builtin and then its argument prototype would still apply.  */
3939#ifdef __cplusplus
3940extern "C"
3941#endif
3942char connect ();
3943int
3944main ()
3945{
3946return connect ();
3947  ;
3948  return 0;
3949}
3950_ACEOF
3951if ac_fn_c_try_link "$LINENO"; then :
3952  ac_cv_lib_socket_connect=yes
3953else
3954  ac_cv_lib_socket_connect=no
3955fi
3956rm -f core conftest.err conftest.$ac_objext \
3957    conftest$ac_exeext conftest.$ac_ext
3958LIBS=$ac_check_lib_save_LIBS
3959fi
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
3961$as_echo "$ac_cv_lib_socket_connect" >&6; }
3962if test "x$ac_cv_lib_socket_connect" = xyes; then :
3963  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3964fi
3965
3966    fi
3967
3968    # Guillermo Gomez says -lposix is necessary on A/UX.
3969    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
3970if test "x$ac_cv_func_remove" = xyes; then :
3971
3972fi
3973
3974    if test $ac_cv_func_remove = no; then
3975      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
3976$as_echo_n "checking for remove in -lposix... " >&6; }
3977if ${ac_cv_lib_posix_remove+:} false; then :
3978  $as_echo_n "(cached) " >&6
3979else
3980  ac_check_lib_save_LIBS=$LIBS
3981LIBS="-lposix  $LIBS"
3982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983/* end confdefs.h.  */
3984
3985/* Override any GCC internal prototype to avoid an error.
3986   Use char because int might match the return type of a GCC
3987   builtin and then its argument prototype would still apply.  */
3988#ifdef __cplusplus
3989extern "C"
3990#endif
3991char remove ();
3992int
3993main ()
3994{
3995return remove ();
3996  ;
3997  return 0;
3998}
3999_ACEOF
4000if ac_fn_c_try_link "$LINENO"; then :
4001  ac_cv_lib_posix_remove=yes
4002else
4003  ac_cv_lib_posix_remove=no
4004fi
4005rm -f core conftest.err conftest.$ac_objext \
4006    conftest$ac_exeext conftest.$ac_ext
4007LIBS=$ac_check_lib_save_LIBS
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4010$as_echo "$ac_cv_lib_posix_remove" >&6; }
4011if test "x$ac_cv_lib_posix_remove" = xyes; then :
4012  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4013fi
4014
4015    fi
4016
4017    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4018    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
4019if test "x$ac_cv_func_shmat" = xyes; then :
4020
4021fi
4022
4023    if test $ac_cv_func_shmat = no; then
4024      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4025$as_echo_n "checking for shmat in -lipc... " >&6; }
4026if ${ac_cv_lib_ipc_shmat+:} false; then :
4027  $as_echo_n "(cached) " >&6
4028else
4029  ac_check_lib_save_LIBS=$LIBS
4030LIBS="-lipc  $LIBS"
4031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032/* end confdefs.h.  */
4033
4034/* Override any GCC internal prototype to avoid an error.
4035   Use char because int might match the return type of a GCC
4036   builtin and then its argument prototype would still apply.  */
4037#ifdef __cplusplus
4038extern "C"
4039#endif
4040char shmat ();
4041int
4042main ()
4043{
4044return shmat ();
4045  ;
4046  return 0;
4047}
4048_ACEOF
4049if ac_fn_c_try_link "$LINENO"; then :
4050  ac_cv_lib_ipc_shmat=yes
4051else
4052  ac_cv_lib_ipc_shmat=no
4053fi
4054rm -f core conftest.err conftest.$ac_objext \
4055    conftest$ac_exeext conftest.$ac_ext
4056LIBS=$ac_check_lib_save_LIBS
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
4059$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
4060if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
4061  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4062fi
4063
4064    fi
4065  fi
4066
4067  # Check for libraries that X11R6 Xt/Xaw programs need.
4068  ac_save_LDFLAGS=$LDFLAGS
4069  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4070  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4071  # check for ICE first), but we must link in the order -lSM -lICE or
4072  # we get undefined symbols.  So assume we have SM if we have ICE.
4073  # These have to be linked with before -lX11, unlike the other
4074  # libraries we check for below, so use a different variable.
4075  # John Interrante, Karl Berry
4076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
4077$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
4078if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
4079  $as_echo_n "(cached) " >&6
4080else
4081  ac_check_lib_save_LIBS=$LIBS
4082LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084/* end confdefs.h.  */
4085
4086/* Override any GCC internal prototype to avoid an error.
4087   Use char because int might match the return type of a GCC
4088   builtin and then its argument prototype would still apply.  */
4089#ifdef __cplusplus
4090extern "C"
4091#endif
4092char IceConnectionNumber ();
4093int
4094main ()
4095{
4096return IceConnectionNumber ();
4097  ;
4098  return 0;
4099}
4100_ACEOF
4101if ac_fn_c_try_link "$LINENO"; then :
4102  ac_cv_lib_ICE_IceConnectionNumber=yes
4103else
4104  ac_cv_lib_ICE_IceConnectionNumber=no
4105fi
4106rm -f core conftest.err conftest.$ac_objext \
4107    conftest$ac_exeext conftest.$ac_ext
4108LIBS=$ac_check_lib_save_LIBS
4109fi
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4111$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4112if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
4113  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4114fi
4115
4116  LDFLAGS=$ac_save_LDFLAGS
4117
4118fi
4119
4120
4121
4122    # Check whether --enable-shared was given.
4123if test "${enable_shared+set}" = set; then :
4124  enableval=$enable_shared; enable_shared="yes"
4125fi
4126
4127    TODO_SHARED_LIBRARY=
4128    LINKOPT=
4129    EXTSHLIB=so
4130    if test "x$enable_shared" = "xyes" ; then
4131        case `uname -s` in
4132            Linux|DragonFly|*BSD)
4133                TODO_SHARED_LIBRARY="\$(LD) -o \$(LDCLSHLIBFILE) -shared --whole-archive \$(LDCLLIBFILE) -lm -lc"
4134                ;;
4135            HP-UX*)
4136                EXTSHLIB=sl
4137                TODO_SHARED_LIBRARY="nm \$(LDCLLIBFILE) | grep extern | grep entry | awk '-F|' '{print \$\$1}' | sed 's/^/-u /' >symbols.log; \$(LD) -o \$(LDCLSHLIBFILE) -b -c symbols.log \$(LDCLLIBFILE); rm symbols.log"
4138                ;;
4139            IRIX*)
4140                TODO_SHARED_LIBRARY="\$(LD) -o \$(LDCLSHLIBFILE) -shared -no_archive -all \$(LDCLLIBFILE) -none -lc -lC \$(LDLIBS)"
4141                ;;
4142            OSF1)
4143                TODO_SHARED_LIBRARY="\$(LD) -o \$(LDCLSHLIBFILE) -shared \$(LDCLLIBFILE)"
4144                ;;
4145            SunOS)
4146                case `uname -r` in
4147                    4*)
4148                        TODO_SHARED_LIBRARY="undefopts=\`/bin/nm \$(LDCLLIBFILE) | awk '\$\$2~/^T\$\$/{print \$\$3}' | sed 's/^/-u /'\` && \$(LD) -o \$(LDCLSHLIBFILE) \$\$undefopts \$(LDCLLIBFILE)"
4149                        ;;
4150                    5*)
4151                        TODO_SHARED_LIBRARY="undefopts=\`/usr/ccs/bin/nm \$(LDCLLIBFILE) | grep GLOB | grep FUNC | awk '-F|' '{print \$\$8}' | sed 's/^/-u /'\` && \$(LD) -o \$(LDCLSHLIBFILE) -G \$\$undefopts \$(LDCLLIBFILE)"
4152                        ;;
4153                esac
4154                ;;
4155            *)
4156                echo "Don't know how to make a shared library on this system."
4157                exit 1
4158                ;;
4159        esac
4160        case $CC in
4161            *gcc*)
4162		CFLAGS="${CFLAGS-} -fPIC"
4163                LINKOPT="-Xlinker -rpath -Xlinker \$(LIBDIR)"
4164                ;;
4165            fcc)
4166                LINKOPT="-rpath \$(LIBDIR)"
4167                ;;
4168            cc)
4169                case `uname -s` in
4170                    Linux|DragonFly|*BSD)
4171			CFLAGS="${CFLAGS-} -fPIC"
4172                        LINKOPT="-Xlinker -rpath -Xlinker \$(LIBDIR)"
4173                        ;;
4174                    SunOS*)
4175                        LINKOPT="-R\$(LIBDIR)"
4176		        case `uname -r` in
4177				4*)
4178					CFLAGS="${CFLAGS-} -PIC"
4179					;;
4180				5*)
4181					CFLAGS="${CFLAGS-} -KPIC"
4182					;;
4183			esac
4184                        ;;
4185                    HP-UX*)
4186			CFLAGS="${CFLAGS-} +Z"
4187                        LINKOPT="-rpath \$(LIBDIR)"
4188                        ;;
4189                    IRIX*|OSF1)
4190			CFLAGS="${CFLAGS-} -KPIC"
4191                        LINKOPT="-Wl,-rpath,\$(LIBDIR)"
4192                        ;;
4193                esac
4194                ;;
4195            *)
4196                echo "Don't know link options for linking shared library..."
4197                echo "*** executable file might not be executed...***"
4198                ;;
4199        esac
4200    fi
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210# Check whether --with-oldsrc was given.
4211if test "${with_oldsrc+set}" = set; then :
4212  withval=$with_oldsrc; if test "$withval" = yes; then OLDSRC=oldsrc; \
4213else OLDSRC=; fi
4214else
4215  OLDSRC=
4216
4217fi
4218
4219OSGARG_OPT=getarg
4220OSQARN_OPT=iargc
4221
4222
4223
4224
4225    cat << EOF > conftest.c
4226#include <stdio.h>
4227
4228int main () {
4229    int rval;
4230
4231    rval = *(unsigned char *)"a";
4232    printf("%d\n", rval);
4233    return(0);
4234}
4235EOF
4236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Character code set csgi()/isgc()" >&5
4237$as_echo_n "checking Character code set csgi()/isgc()... " >&6; }
4238    ${CC-} -o conftest conftest.c > /dev/null 2>&1
4239    ia=`./conftest`
4240    if test $ia -gt 0; then
4241        CSGI_OPT=general
4242        { $as_echo "$as_me:${as_lineno-$LINENO}: result: general" >&5
4243$as_echo "general" >&6; }
4244    else
4245        CSGI_OPT=other
4246        { $as_echo "$as_me:${as_lineno-$LINENO}: result: other" >&5
4247$as_echo "other" >&6; }
4248    fi
4249    rm -f conftest conftest.?
4250
4251
4252
4253
4254    # Extract the first word of "pwd", so it can be a program name with args.
4255set dummy pwd; ac_word=$2
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257$as_echo_n "checking for $ac_word... " >&6; }
4258if ${ac_cv_path_PWD+:} false; then :
4259  $as_echo_n "(cached) " >&6
4260else
4261  case $PWD in
4262  [\\/]* | ?:[\\/]*)
4263  ac_cv_path_PWD="$PWD" # Let the user override the test with a path.
4264  ;;
4265  *)
4266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269  IFS=$as_save_IFS
4270  test -z "$as_dir" && as_dir=.
4271    for ac_exec_ext in '' $ac_executable_extensions; do
4272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273    ac_cv_path_PWD="$as_dir/$ac_word$ac_exec_ext"
4274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275    break 2
4276  fi
4277done
4278  done
4279IFS=$as_save_IFS
4280
4281  ;;
4282esac
4283fi
4284PWD=$ac_cv_path_PWD
4285if test -n "$PWD"; then
4286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWD" >&5
4287$as_echo "$PWD" >&6; }
4288else
4289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290$as_echo "no" >&6; }
4291fi
4292
4293
4294    case "${PWD-}" in
4295        '')
4296            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** WARN *** Please set environment variable DCLDIR by yourself" >&5
4297$as_echo "$as_me: WARNING: *** WARN *** Please set environment variable DCLDIR by yourself" >&2;}
4298            DCLDIR=
4299            ;;
4300        *)
4301            DCLDIR=${PWD-}
4302    esac
4303
4304
4305
4306
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4308$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4309if ${ac_cv_path_GREP+:} false; then :
4310  $as_echo_n "(cached) " >&6
4311else
4312  if test -z "$GREP"; then
4313  ac_path_GREP_found=false
4314  # Loop through the user's path and test for each of PROGNAME-LIST
4315  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4317do
4318  IFS=$as_save_IFS
4319  test -z "$as_dir" && as_dir=.
4320    for ac_prog in grep ggrep; do
4321    for ac_exec_ext in '' $ac_executable_extensions; do
4322      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4323      as_fn_executable_p "$ac_path_GREP" || continue
4324# Check for GNU ac_path_GREP and select it if it is found.
4325  # Check for GNU $ac_path_GREP
4326case `"$ac_path_GREP" --version 2>&1` in
4327*GNU*)
4328  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4329*)
4330  ac_count=0
4331  $as_echo_n 0123456789 >"conftest.in"
4332  while :
4333  do
4334    cat "conftest.in" "conftest.in" >"conftest.tmp"
4335    mv "conftest.tmp" "conftest.in"
4336    cp "conftest.in" "conftest.nl"
4337    $as_echo 'GREP' >> "conftest.nl"
4338    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4339    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4340    as_fn_arith $ac_count + 1 && ac_count=$as_val
4341    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4342      # Best one so far, save it but keep looking for a better one
4343      ac_cv_path_GREP="$ac_path_GREP"
4344      ac_path_GREP_max=$ac_count
4345    fi
4346    # 10*(2^10) chars as input seems more than enough
4347    test $ac_count -gt 10 && break
4348  done
4349  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4350esac
4351
4352      $ac_path_GREP_found && break 3
4353    done
4354  done
4355  done
4356IFS=$as_save_IFS
4357  if test -z "$ac_cv_path_GREP"; then
4358    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4359  fi
4360else
4361  ac_cv_path_GREP=$GREP
4362fi
4363
4364fi
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4366$as_echo "$ac_cv_path_GREP" >&6; }
4367 GREP="$ac_cv_path_GREP"
4368
4369
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4371$as_echo_n "checking for egrep... " >&6; }
4372if ${ac_cv_path_EGREP+:} false; then :
4373  $as_echo_n "(cached) " >&6
4374else
4375  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4376   then ac_cv_path_EGREP="$GREP -E"
4377   else
4378     if test -z "$EGREP"; then
4379  ac_path_EGREP_found=false
4380  # Loop through the user's path and test for each of PROGNAME-LIST
4381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4383do
4384  IFS=$as_save_IFS
4385  test -z "$as_dir" && as_dir=.
4386    for ac_prog in egrep; do
4387    for ac_exec_ext in '' $ac_executable_extensions; do
4388      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4389      as_fn_executable_p "$ac_path_EGREP" || continue
4390# Check for GNU ac_path_EGREP and select it if it is found.
4391  # Check for GNU $ac_path_EGREP
4392case `"$ac_path_EGREP" --version 2>&1` in
4393*GNU*)
4394  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4395*)
4396  ac_count=0
4397  $as_echo_n 0123456789 >"conftest.in"
4398  while :
4399  do
4400    cat "conftest.in" "conftest.in" >"conftest.tmp"
4401    mv "conftest.tmp" "conftest.in"
4402    cp "conftest.in" "conftest.nl"
4403    $as_echo 'EGREP' >> "conftest.nl"
4404    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4405    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4406    as_fn_arith $ac_count + 1 && ac_count=$as_val
4407    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4408      # Best one so far, save it but keep looking for a better one
4409      ac_cv_path_EGREP="$ac_path_EGREP"
4410      ac_path_EGREP_max=$ac_count
4411    fi
4412    # 10*(2^10) chars as input seems more than enough
4413    test $ac_count -gt 10 && break
4414  done
4415  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4416esac
4417
4418      $ac_path_EGREP_found && break 3
4419    done
4420  done
4421  done
4422IFS=$as_save_IFS
4423  if test -z "$ac_cv_path_EGREP"; then
4424    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4425  fi
4426else
4427  ac_cv_path_EGREP=$EGREP
4428fi
4429
4430   fi
4431fi
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4433$as_echo "$ac_cv_path_EGREP" >&6; }
4434 EGREP="$ac_cv_path_EGREP"
4435
4436
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4438$as_echo_n "checking for ANSI C header files... " >&6; }
4439if ${ac_cv_header_stdc+:} false; then :
4440  $as_echo_n "(cached) " >&6
4441else
4442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443/* end confdefs.h.  */
4444#include <stdlib.h>
4445#include <stdarg.h>
4446#include <string.h>
4447#include <float.h>
4448
4449int
4450main ()
4451{
4452
4453  ;
4454  return 0;
4455}
4456_ACEOF
4457if ac_fn_c_try_compile "$LINENO"; then :
4458  ac_cv_header_stdc=yes
4459else
4460  ac_cv_header_stdc=no
4461fi
4462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463
4464if test $ac_cv_header_stdc = yes; then
4465  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467/* end confdefs.h.  */
4468#include <string.h>
4469
4470_ACEOF
4471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4472  $EGREP "memchr" >/dev/null 2>&1; then :
4473
4474else
4475  ac_cv_header_stdc=no
4476fi
4477rm -f conftest*
4478
4479fi
4480
4481if test $ac_cv_header_stdc = yes; then
4482  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484/* end confdefs.h.  */
4485#include <stdlib.h>
4486
4487_ACEOF
4488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4489  $EGREP "free" >/dev/null 2>&1; then :
4490
4491else
4492  ac_cv_header_stdc=no
4493fi
4494rm -f conftest*
4495
4496fi
4497
4498if test $ac_cv_header_stdc = yes; then
4499  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4500  if test "$cross_compiling" = yes; then :
4501  :
4502else
4503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504/* end confdefs.h.  */
4505#include <ctype.h>
4506#include <stdlib.h>
4507#if ((' ' & 0x0FF) == 0x020)
4508# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4509# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4510#else
4511# define ISLOWER(c) \
4512		   (('a' <= (c) && (c) <= 'i') \
4513		     || ('j' <= (c) && (c) <= 'r') \
4514		     || ('s' <= (c) && (c) <= 'z'))
4515# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4516#endif
4517
4518#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4519int
4520main ()
4521{
4522  int i;
4523  for (i = 0; i < 256; i++)
4524    if (XOR (islower (i), ISLOWER (i))
4525	|| toupper (i) != TOUPPER (i))
4526      return 2;
4527  return 0;
4528}
4529_ACEOF
4530if ac_fn_c_try_run "$LINENO"; then :
4531
4532else
4533  ac_cv_header_stdc=no
4534fi
4535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4536  conftest.$ac_objext conftest.beam conftest.$ac_ext
4537fi
4538
4539fi
4540fi
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4542$as_echo "$ac_cv_header_stdc" >&6; }
4543if test $ac_cv_header_stdc = yes; then
4544
4545$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4546
4547fi
4548
4549# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4550for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4551		  inttypes.h stdint.h unistd.h
4552do :
4553  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4554ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4555"
4556if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4557  cat >>confdefs.h <<_ACEOF
4558#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4559_ACEOF
4560
4561fi
4562
4563done
4564
4565
4566
4567    ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
4568if test "x$ac_cv_header_float_h" = xyes; then :
4569  EXTRA_CFLAGS=-DHAVE_FLOAT_H
4570fi
4571
4572
4573
4574cat << EOF > conftest.c
4575#include <stdio.h>
4576#ifdef HAVE_FLOAT_H
4577#  include <float.h>
4578#endif
4579#include <limits.h>
4580
4581#ifdef FLT_MIN
4582#  define float_min FLT_MIN
4583#else
4584#  define float_min 1.175494351E-38
4585#endif
4586#ifdef FLT_MAX
4587#  define float_max FLT_MAX
4588#else
4589#  define float_max 3.402823466E+38
4590#endif
4591#ifdef FLT_EPSILON
4592#  define float_epsilon FLT_EPSILON
4593#else
4594#  define float_epsilon 1.192092896E-07
4595#endif
4596#ifdef INT_MAX
4597#  define int_max INT_MAX
4598#else
4599#  define int_max 2147483647
4600#endif
4601
4602typedef union {
4603    int          si;
4604    unsigned int ui;
4605} INT;
4606typedef union {
4607    float        fl;
4608    unsigned int ui;
4609} FLT;
4610
4611main ()
4612{
4613    FILE *fd1, *fd2, *fd3, *fd4;
4614    FLT fmin, fmax;
4615    float feps;
4616    INT imax;
4617
4618    fmin.fl = float_min, fmax.fl = float_max;
4619    feps = float_epsilon * 10.001;
4620    imax.si = int_max;
4621
4622    if ((fd1 = fopen("fminval", "w")) == NULL) {
4623        fprintf(stderr, "conftest: cannot open file fminval\n");
4624        exit(1);
4625    }
4626    if ((fd2 = fopen("fmaxval", "w")) == NULL) {
4627        fprintf(stderr, "conftest: cannot open file fmaxval\n");
4628        exit(1);
4629    }
4630    if ((fd3 = fopen("fepsval", "w")) == NULL) {
4631        fprintf(stderr, "conftest: cannot open file fepsval\n");
4632        exit(1);
4633    }
4634    if ((fd4 = fopen("imaxval", "w")) == NULL) {
4635        fprintf(stderr, "conftest: cannot open file imaxval\n");
4636        exit(1);
4637    }
4638    fprintf(fd1, "0x%08X\n", fmin.ui);
4639    fprintf(fd2, "0x%08X\n", fmax.ui);
4640    fprintf(fd4, "0x%08X\n", imax.ui);
4641    fprintf(fd3, "%12.5E\n", feps);
4642    fclose(fd1);
4643    fclose(fd2);
4644    fclose(fd3);
4645    fclose(fd4);
4646    exit(0);
4647}
4648EOF
4649
4650    REALMIN=
4651    REALMAX=
4652    REPSL=
4653    INTMAX=
4654    doit='$CC -o conftest ${CFLAGS-} ${EXTRA_CFLAGS-} $QFLAG conftest.c'
4655    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5
4656  (eval $doit) 2>&5
4657  ac_status=$?
4658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4659  test $ac_status = 0; }; then
4660        doit=`./conftest`
4661        REALMIN=`cat fminval`
4662        REALMAX=`cat fmaxval`
4663        REPSL=`cat fepsval`
4664        INTMAX=`cat imaxval`
4665        { $as_echo "$as_me:${as_lineno-$LINENO}: result: REALMAX is ${REALMAX}" >&5
4666$as_echo "REALMAX is ${REALMAX}" >&6; }
4667        { $as_echo "$as_me:${as_lineno-$LINENO}: result: REALMIN is ${REALMIN}" >&5
4668$as_echo "REALMIN is ${REALMIN}" >&6; }
4669        { $as_echo "$as_me:${as_lineno-$LINENO}: result: EPSILON is ${REPSL}" >&5
4670$as_echo "EPSILON is ${REPSL}" >&6; }
4671        { $as_echo "$as_me:${as_lineno-$LINENO}: result: INTMAX is ${INTMAX}" >&5
4672$as_echo "INTMAX is ${INTMAX}" >&6; }
4673    fi
4674
4675
4676
4677
4678
4679    rm -f conftest conftest.? fminval fmaxval fepsval imaxval
4680
4681
4682    cat << EOF > conftest.c
4683#include <stdio.h>
4684#include <time.h>
4685
4686#ifndef CLOCKS_PER_SEC
4687#  define CLK_PER_SEC 1000000
4688#else
4689#  define CLK_PER_SEC 0
4690#endif
4691#ifndef CLK_TCK
4692#  define CLK_RSL_TCK 60
4693#else
4694#  define CLK_RSL_TCK 0
4695#endif
4696
4697main ()
4698{
4699    FILE *fd1, *fd2;
4700
4701    if ((fd1 = fopen("confval1", "w")) == NULL) {
4702        fprintf(stderr, "conftest: cannot open file confval1\n");
4703        exit(1);
4704    }
4705    if ((fd2 = fopen("confval2", "w")) == NULL) {
4706        fprintf(stderr, "conftest: cannot open file confval2\n");
4707        exit(1);
4708    }
4709
4710    fprintf(fd1, "%d", CLK_PER_SEC);
4711    fprintf(fd2, "%d", CLK_RSL_TCK);
4712
4713    fclose(fd1);
4714    fclose(fd2);
4715}
4716EOF
4717
4718    doit='$CC -o conftest ${CFLAGS-} conftest.c'
4719    CLK_PER_SEC=
4720    CLK_RSL_TCK=
4721    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5
4722  (eval $doit) 2>&5
4723  ac_status=$?
4724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4725  test $ac_status = 0; }; then
4726        doit=`./conftest`
4727        cpsval=`cat confval1`
4728        crtval=`cat confval2`
4729        if test ${cpsval} != 0; then
4730            CLK_PER_SEC=${cpsval}
4731            { $as_echo "$as_me:${as_lineno-$LINENO}: result: CLOCKS_PER_SEC is ${CLK_PER_SEC}" >&5
4732$as_echo "CLOCKS_PER_SEC is ${CLK_PER_SEC}" >&6; }
4733        else
4734            { $as_echo "$as_me:${as_lineno-$LINENO}: result: CLOCKS_PER_SEC is provided by the system" >&5
4735$as_echo "CLOCKS_PER_SEC is provided by the system" >&6; }
4736        fi
4737        if test ${crtval} != 0; then
4738            CLK_RSL_TCK=${crtval}
4739            { $as_echo "$as_me:${as_lineno-$LINENO}: result: CLK_TCK is ${CLK_RSL_TCK}" >&5
4740$as_echo "CLK_TCK is ${CLK_RSL_TCK}" >&6; }
4741        else
4742            { $as_echo "$as_me:${as_lineno-$LINENO}: result: CLK_TCK is provided by the system" >&5
4743$as_echo "CLK_TCK is provided by the system" >&6; }
4744        fi
4745    fi
4746
4747
4748
4749    rm -f conftest conftest.? confval?
4750
4751
4752
4753
4754
4755
4756
4757
4758GTKVERSION="no"
4759
4760# Check whether --enable-gtk2 was given.
4761if test "${enable_gtk2+set}" = set; then :
4762  enableval=$enable_gtk2;
4763else
4764  enable_gtk2=yes
4765fi
4766
4767
4768expunge () {
4769  list=$1
4770
4771  list=`reverse_list ${list}`
4772
4773  newlist=""
4774  for arg in ${list}
4775  do
4776    return=`echo ${newlist} | grep -- ${arg}`
4777    if test -z "${return}" ; then
4778      newlist="${arg} ${newlist}"
4779    fi
4780  done
4781
4782  echo ${newlist}
4783}
4784
4785reverse_list () {
4786  newlist=""
4787  for arg in $*
4788  do
4789    newlist="${arg} ${newlist}"
4790  done
4791  echo ${newlist}
4792}
4793
4794if test "$enable_gtk2" = "yes" ; then
4795   # Check whether --enable-gtktest was given.
4796if test "${enable_gtktest+set}" = set; then :
4797  enableval=$enable_gtktest;
4798else
4799  enable_gtktest=yes
4800fi
4801
4802
4803  pkg_config_args=gtk+-2.0
4804  for module in .
4805  do
4806      case "$module" in
4807         gthread)
4808             pkg_config_args="$pkg_config_args gthread-2.0"
4809         ;;
4810      esac
4811  done
4812
4813  no_gtk=""
4814
4815  # Extract the first word of "pkg-config", so it can be a program name with args.
4816set dummy pkg-config; ac_word=$2
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818$as_echo_n "checking for $ac_word... " >&6; }
4819if ${ac_cv_path_PKG_CONFIG+:} false; then :
4820  $as_echo_n "(cached) " >&6
4821else
4822  case $PKG_CONFIG in
4823  [\\/]* | ?:[\\/]*)
4824  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4825  ;;
4826  *)
4827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830  IFS=$as_save_IFS
4831  test -z "$as_dir" && as_dir=.
4832    for ac_exec_ext in '' $ac_executable_extensions; do
4833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4834    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836    break 2
4837  fi
4838done
4839  done
4840IFS=$as_save_IFS
4841
4842  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4843  ;;
4844esac
4845fi
4846PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4847if test -n "$PKG_CONFIG"; then
4848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4849$as_echo "$PKG_CONFIG" >&6; }
4850else
4851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
4853fi
4854
4855
4856
4857  if test x$PKG_CONFIG != xno ; then
4858    if pkg-config --atleast-pkgconfig-version 0.7 ; then
4859      :
4860    else
4861      echo *** pkg-config too old; version 0.7 or better required.
4862      no_gtk=yes
4863      PKG_CONFIG=no
4864    fi
4865  else
4866    no_gtk=yes
4867  fi
4868
4869  min_gtk_version=2.0.0
4870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
4871$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
4872
4873  if test x$PKG_CONFIG != xno ; then
4874    ## don't try to run the test against uninstalled libtool libs
4875    if $PKG_CONFIG --uninstalled $pkg_config_args; then
4876	  echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
4877	  enable_gtktest=no
4878    fi
4879
4880    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
4881	  :
4882    else
4883	  no_gtk=yes
4884    fi
4885  fi
4886
4887  if test x"$no_gtk" = x ; then
4888    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
4889    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
4890    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4891           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4892    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4893           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4894    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
4895           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4896    if test "x$enable_gtktest" = "xyes" ; then
4897      ac_save_CFLAGS="$CFLAGS"
4898      ac_save_LIBS="$LIBS"
4899      CFLAGS="$CFLAGS $GTK_CFLAGS"
4900      LIBS="$GTK_LIBS $LIBS"
4901      rm -f conf.gtktest
4902      if test "$cross_compiling" = yes; then :
4903  echo $ac_n "cross compiling; assumed OK... $ac_c"
4904else
4905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h.  */
4907
4908#include <gtk/gtk.h>
4909#include <stdio.h>
4910#include <stdlib.h>
4911
4912int
4913main ()
4914{
4915  int major, minor, micro;
4916  char *tmp_version;
4917
4918  system ("touch conf.gtktest");
4919
4920  /* HP/UX 9 (%@#!) writes to sscanf strings */
4921  tmp_version = g_strdup("$min_gtk_version");
4922  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
4923     printf("%s, bad version string\n", "$min_gtk_version");
4924     exit(1);
4925   }
4926
4927  if ((gtk_major_version != $gtk_config_major_version) ||
4928      (gtk_minor_version != $gtk_config_minor_version) ||
4929      (gtk_micro_version != $gtk_config_micro_version))
4930    {
4931      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
4932             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
4933             gtk_major_version, gtk_minor_version, gtk_micro_version);
4934      printf ("*** was found! If pkg-config was correct, then it is best\n");
4935      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
4936      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4937      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4938      printf("*** required on your system.\n");
4939      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
4940      printf("*** to point to the correct configuration files\n");
4941    }
4942  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
4943	   (gtk_minor_version != GTK_MINOR_VERSION) ||
4944           (gtk_micro_version != GTK_MICRO_VERSION))
4945    {
4946      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
4947	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
4948      printf("*** library (version %d.%d.%d)\n",
4949	     gtk_major_version, gtk_minor_version, gtk_micro_version);
4950    }
4951  else
4952    {
4953      if ((gtk_major_version > major) ||
4954        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
4955        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
4956      {
4957        return 0;
4958       }
4959     else
4960      {
4961        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
4962               gtk_major_version, gtk_minor_version, gtk_micro_version);
4963        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
4964	       major, minor, micro);
4965        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
4966        printf("***\n");
4967        printf("*** If you have already installed a sufficiently new version, this error\n");
4968        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
4969        printf("*** being found. The easiest way to fix this is to remove the old version\n");
4970        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
4971        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
4972        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4973        printf("*** so that the correct libraries are found at run-time))\n");
4974      }
4975    }
4976  return 1;
4977}
4978
4979_ACEOF
4980if ac_fn_c_try_run "$LINENO"; then :
4981
4982else
4983  no_gtk=yes
4984fi
4985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4986  conftest.$ac_objext conftest.beam conftest.$ac_ext
4987fi
4988
4989       CFLAGS="$ac_save_CFLAGS"
4990       LIBS="$ac_save_LIBS"
4991     fi
4992  fi
4993  if test "x$no_gtk" = x ; then
4994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
4995$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
4996     :
4997  else
4998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
5000     if test "$PKG_CONFIG" = "no" ; then
5001       echo "*** A new enough version of pkg-config was not found."
5002       echo "*** See http://pkgconfig.sourceforge.net"
5003     else
5004       if test -f conf.gtktest ; then
5005        :
5006       else
5007          echo "*** Could not run GTK+ test program, checking why..."
5008	  ac_save_CFLAGS="$CFLAGS"
5009	  ac_save_LIBS="$LIBS"
5010          CFLAGS="$CFLAGS $GTK_CFLAGS"
5011          LIBS="$LIBS $GTK_LIBS"
5012          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013/* end confdefs.h.  */
5014
5015#include <gtk/gtk.h>
5016#include <stdio.h>
5017
5018int
5019main ()
5020{
5021 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
5022  ;
5023  return 0;
5024}
5025_ACEOF
5026if ac_fn_c_try_link "$LINENO"; then :
5027   echo "*** The test program compiled, but did not run. This usually means"
5028          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
5029          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
5030          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5031          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
5032          echo "*** is required on your system"
5033	  echo "***"
5034          echo "*** If you have an old version installed, it is best to remove it, although"
5035          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5036else
5037   echo "*** The test program failed to compile or link. See the file config.log for the"
5038          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
5039fi
5040rm -f core conftest.err conftest.$ac_objext \
5041    conftest$ac_exeext conftest.$ac_ext
5042          CFLAGS="$ac_save_CFLAGS"
5043          LIBS="$ac_save_LIBS"
5044       fi
5045     fi
5046     GTK_CFLAGS=""
5047     GTK_LIBS=""
5048     :
5049  fi
5050
5051
5052  rm -f conf.gtktest
5053
5054   if test x"$no_gtk" = x ; then
5055      ac_save_CPPFLAGS="$CPPFLAGS"
5056      CPPFLAGS="$GTK_CFLAGS"
5057      ac_fn_c_check_header_mongrel "$LINENO" "gtk/gtk.h" "ac_cv_header_gtk_gtk_h" "$ac_includes_default"
5058if test "x$ac_cv_header_gtk_gtk_h" = xyes; then :
5059  $as_echo "#define HAVE_GTK_H 1" >>confdefs.h
5060
5061else
5062  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gtk/gtk.h is not found." >&5
5063$as_echo "$as_me: WARNING: gtk/gtk.h is not found." >&2;}
5064fi
5065
5066
5067      CPPFLAGS="$ac_save_CPPFLAGS"
5068      GTKVERSION="2"
5069      DCLNWS="4"
5070
5071              pkg_config_args=gdk-pixbuf-2.0
5072
5073  no_gdk_pixbuf=""
5074
5075  # Extract the first word of "pkg-config", so it can be a program name with args.
5076set dummy pkg-config; ac_word=$2
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078$as_echo_n "checking for $ac_word... " >&6; }
5079if ${ac_cv_path_PKG_CONFIG+:} false; then :
5080  $as_echo_n "(cached) " >&6
5081else
5082  case $PKG_CONFIG in
5083  [\\/]* | ?:[\\/]*)
5084  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5085  ;;
5086  *)
5087  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088for as_dir in $PATH
5089do
5090  IFS=$as_save_IFS
5091  test -z "$as_dir" && as_dir=.
5092    for ac_exec_ext in '' $ac_executable_extensions; do
5093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096    break 2
5097  fi
5098done
5099  done
5100IFS=$as_save_IFS
5101
5102  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5103  ;;
5104esac
5105fi
5106PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5107if test -n "$PKG_CONFIG"; then
5108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5109$as_echo "$PKG_CONFIG" >&6; }
5110else
5111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112$as_echo "no" >&6; }
5113fi
5114
5115
5116
5117  if test x$PKG_CONFIG != xno ; then
5118    if pkg-config --atleast-pkgconfig-version 0.7 ; then
5119      :
5120    else
5121      echo *** pkg-config too old; version 0.7 or better required.
5122      no_gdk_pixbuf=yes
5123      PKG_CONFIG=no
5124    fi
5125  else
5126    no_gdk_pixbuf=yes
5127  fi
5128
5129  min_gdk_pixbuf_version=2.0.0
5130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK_PIXBUF" >&5
5131$as_echo_n "checking for GDK_PIXBUF... " >&6; }
5132
5133  if test x$PKG_CONFIG != xno ; then
5134    ## don't try to run the test against uninstalled libtool libs
5135    if $PKG_CONFIG --uninstalled $pkg_config_args; then
5136	  echo "Will use uninstalled version of GDK_PIXBUF found in PKG_CONFIG_PATH"
5137    fi
5138
5139    if $PKG_CONFIG --atleast-version $min_gdk_pixbuf_version $pkg_config_args; then
5140	  :
5141    else
5142	  no_gdk_pixbuf=yes
5143    fi
5144  fi
5145
5146  if test x"$no_gdk_pixbuf" = x ; then
5147    gdk_pixbuf_config_major_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0 | \
5148           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5149    gdk_pixbuf_config_minor_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0 | \
5150           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5151    gdk_pixbuf_config_micro_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0 | \
5152           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5153  fi
5154
5155  if test x"$no_gdk_pixbuf" = x ; then
5156    GDK_PIXBUF_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
5157    GDK_PIXBUF_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
5158    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gdk_pixbuf_config_major_version.$gdk_pixbuf_config_minor_version.$gdk_pixbuf_config_micro_version)" >&5
5159$as_echo "yes (version $gdk_pixbuf_config_major_version.$gdk_pixbuf_config_minor_version.$gdk_pixbuf_config_micro_version)" >&6; }
5160  else
5161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162$as_echo "no" >&6; }
5163  fi
5164
5165
5166
5167      if test x"$no_gdk_pixbuf" = x ; then
5168	 ac_save_CPPFLAGS="$CPPFLAGS"
5169	 CPPFLAGS="$GDK_PIXBUF_CFLAGS"
5170	 ac_fn_c_check_header_mongrel "$LINENO" "gdk-pixbuf/gdk-pixbuf.h" "ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" "$ac_includes_default"
5171if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" = xyes; then :
5172  $as_echo "#define HAVE_GDK_PIXBUF_H 1" >>confdefs.h
5173
5174else
5175  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdk-pixbuf/gdk-pixbuf.h is not found." >&5
5176$as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h is not found." >&2;}
5177fi
5178
5179
5180	 CPPFLAGS="$ac_save_CPPFLAGS"
5181	 GTK_CFLAGS="$GTK_CFLAGS $GDK_PIXBUF_CFLAGS"
5182	 GTK_LIBS="$GTK_LIBS $GDK_PIXBUF_LIBS"
5183       fi
5184   fi
5185fi
5186
5187if test "$GTKVERSION" = "no"; then
5188   # Check whether --enable-gtk was given.
5189if test "${enable_gtk+set}" = set; then :
5190  enableval=$enable_gtk;
5191else
5192  enable_gtk=yes
5193fi
5194
5195   if test "$enable_gtk" = "yes" ; then
5196
5197# Check whether --with-gtk-prefix was given.
5198if test "${with_gtk_prefix+set}" = set; then :
5199  withval=$with_gtk_prefix; gtk_config_prefix="$withval"
5200else
5201  gtk_config_prefix=""
5202fi
5203
5204
5205# Check whether --with-gtk-exec-prefix was given.
5206if test "${with_gtk_exec_prefix+set}" = set; then :
5207  withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
5208else
5209  gtk_config_exec_prefix=""
5210fi
5211
5212# Check whether --enable-gtktest was given.
5213if test "${enable_gtktest+set}" = set; then :
5214  enableval=$enable_gtktest;
5215else
5216  enable_gtktest=yes
5217fi
5218
5219
5220  for module in .
5221  do
5222      case "$module" in
5223         gthread)
5224             gtk_config_args="$gtk_config_args gthread"
5225         ;;
5226      esac
5227  done
5228
5229  if test x$gtk_config_exec_prefix != x ; then
5230     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
5231     if test x${GTK_CONFIG+set} != xset ; then
5232        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
5233     fi
5234  fi
5235  if test x$gtk_config_prefix != x ; then
5236     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
5237     if test x${GTK_CONFIG+set} != xset ; then
5238        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
5239     fi
5240  fi
5241
5242  # Extract the first word of "gtk-config", so it can be a program name with args.
5243set dummy gtk-config; ac_word=$2
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245$as_echo_n "checking for $ac_word... " >&6; }
5246if ${ac_cv_path_GTK_CONFIG+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  case $GTK_CONFIG in
5250  [\\/]* | ?:[\\/]*)
5251  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5252  ;;
5253  *)
5254  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257  IFS=$as_save_IFS
5258  test -z "$as_dir" && as_dir=.
5259    for ac_exec_ext in '' $ac_executable_extensions; do
5260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263    break 2
5264  fi
5265done
5266  done
5267IFS=$as_save_IFS
5268
5269  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5270  ;;
5271esac
5272fi
5273GTK_CONFIG=$ac_cv_path_GTK_CONFIG
5274if test -n "$GTK_CONFIG"; then
5275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CONFIG" >&5
5276$as_echo "$GTK_CONFIG" >&6; }
5277else
5278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279$as_echo "no" >&6; }
5280fi
5281
5282
5283  min_gtk_version=0.99.7
5284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
5285$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
5286  no_gtk=""
5287  if test "$GTK_CONFIG" = "no" ; then
5288    no_gtk=yes
5289  else
5290    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
5291    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
5292    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
5293           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5294    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
5295           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5296    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
5297           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5298    if test "x$enable_gtktest" = "xyes" ; then
5299      ac_save_CFLAGS="$CFLAGS"
5300      ac_save_LIBS="$LIBS"
5301      CFLAGS="$CFLAGS $GTK_CFLAGS"
5302      LIBS="$GTK_LIBS $LIBS"
5303      rm -f conf.gtktest
5304      if test "$cross_compiling" = yes; then :
5305  echo $ac_n "cross compiling; assumed OK... $ac_c"
5306else
5307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308/* end confdefs.h.  */
5309
5310#include <gtk/gtk.h>
5311#include <stdio.h>
5312#include <stdlib.h>
5313
5314int
5315main ()
5316{
5317  int major, minor, micro;
5318  char *tmp_version;
5319
5320  system ("touch conf.gtktest");
5321
5322  /* HP/UX 9 (%@#!) writes to sscanf strings */
5323  tmp_version = g_strdup("$min_gtk_version");
5324  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
5325     printf("%s, bad version string\n", "$min_gtk_version");
5326     exit(1);
5327   }
5328
5329  if ((gtk_major_version != $gtk_config_major_version) ||
5330      (gtk_minor_version != $gtk_config_minor_version) ||
5331      (gtk_micro_version != $gtk_config_micro_version))
5332    {
5333      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
5334             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
5335             gtk_major_version, gtk_minor_version, gtk_micro_version);
5336      printf ("*** was found! If gtk-config was correct, then it is best\n");
5337      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
5338      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
5339      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
5340      printf("*** required on your system.\n");
5341      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
5342      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
5343      printf("*** before re-running configure\n");
5344    }
5345#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
5346  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
5347	   (gtk_minor_version != GTK_MINOR_VERSION) ||
5348           (gtk_micro_version != GTK_MICRO_VERSION))
5349    {
5350      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
5351	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
5352      printf("*** library (version %d.%d.%d)\n",
5353	     gtk_major_version, gtk_minor_version, gtk_micro_version);
5354    }
5355#endif /* defined (GTK_MAJOR_VERSION) ... */
5356  else
5357    {
5358      if ((gtk_major_version > major) ||
5359        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5360        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
5361      {
5362        return 0;
5363       }
5364     else
5365      {
5366        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
5367               gtk_major_version, gtk_minor_version, gtk_micro_version);
5368        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
5369	       major, minor, micro);
5370        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
5371        printf("***\n");
5372        printf("*** If you have already installed a sufficiently new version, this error\n");
5373        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
5374        printf("*** being found. The easiest way to fix this is to remove the old version\n");
5375        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
5376        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
5377        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
5378        printf("*** so that the correct libraries are found at run-time))\n");
5379      }
5380    }
5381  return 1;
5382}
5383
5384_ACEOF
5385if ac_fn_c_try_run "$LINENO"; then :
5386
5387else
5388  no_gtk=yes
5389fi
5390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5391  conftest.$ac_objext conftest.beam conftest.$ac_ext
5392fi
5393
5394       CFLAGS="$ac_save_CFLAGS"
5395       LIBS="$ac_save_LIBS"
5396     fi
5397  fi
5398  if test "x$no_gtk" = x ; then
5399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5400$as_echo "yes" >&6; }
5401     :
5402  else
5403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404$as_echo "no" >&6; }
5405     if test "$GTK_CONFIG" = "no" ; then
5406       echo "*** The gtk-config script installed by GTK could not be found"
5407       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
5408       echo "*** your path, or set the GTK_CONFIG environment variable to the"
5409       echo "*** full path to gtk-config."
5410     else
5411       if test -f conf.gtktest ; then
5412        :
5413       else
5414          echo "*** Could not run GTK test program, checking why..."
5415          CFLAGS="$CFLAGS $GTK_CFLAGS"
5416          LIBS="$LIBS $GTK_LIBS"
5417          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418/* end confdefs.h.  */
5419
5420#include <gtk/gtk.h>
5421#include <stdio.h>
5422
5423int
5424main ()
5425{
5426 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
5427  ;
5428  return 0;
5429}
5430_ACEOF
5431if ac_fn_c_try_link "$LINENO"; then :
5432   echo "*** The test program compiled, but did not run. This usually means"
5433          echo "*** that the run-time linker is not finding GTK or finding the wrong"
5434          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
5435          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5436          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
5437          echo "*** is required on your system"
5438	  echo "***"
5439          echo "*** If you have an old version installed, it is best to remove it, although"
5440          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5441          echo "***"
5442          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
5443          echo "*** came with the system with the command"
5444          echo "***"
5445          echo "***    rpm --erase --nodeps gtk gtk-devel"
5446else
5447   echo "*** The test program failed to compile or link. See the file config.log for the"
5448          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
5449          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
5450          echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
5451fi
5452rm -f core conftest.err conftest.$ac_objext \
5453    conftest$ac_exeext conftest.$ac_ext
5454          CFLAGS="$ac_save_CFLAGS"
5455          LIBS="$ac_save_LIBS"
5456       fi
5457     fi
5458     GTK_CFLAGS=""
5459     GTK_LIBS=""
5460     :
5461  fi
5462
5463
5464  rm -f conf.gtktest
5465
5466      if test x"$no_gtk" = x ; then
5467	 ac_save_CPPFLAGS="$CPPFLAGS"
5468	 CPPFLAGS="$GTK_CFLAGS"
5469	 ac_fn_c_check_header_mongrel "$LINENO" "gtk/gtk.h" "ac_cv_header_gtk_gtk_h" "$ac_includes_default"
5470if test "x$ac_cv_header_gtk_gtk_h" = xyes; then :
5471  $as_echo "#define HAVE_GTK_H 1" >>confdefs.h
5472
5473else
5474  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gtk/gtk.h is not found." >&5
5475$as_echo "$as_me: WARNING: gtk/gtk.h is not found." >&2;}
5476fi
5477
5478
5479	 CPPFLAGS="$ac_save_CPPFLAGS"
5480	 GTKVERSION="1"
5481         DCLNWS="4"
5482
5483
5484# Check whether --with-imlib-prefix was given.
5485if test "${with_imlib_prefix+set}" = set; then :
5486  withval=$with_imlib_prefix; imlib_prefix="$withval"
5487else
5488  imlib_prefix=""
5489fi
5490
5491
5492# Check whether --with-imlib-exec-prefix was given.
5493if test "${with_imlib_exec_prefix+set}" = set; then :
5494  withval=$with_imlib_exec_prefix; imlib_exec_prefix="$withval"
5495else
5496  imlib_exec_prefix=""
5497fi
5498
5499# Check whether --enable-imlibtest was given.
5500if test "${enable_imlibtest+set}" = set; then :
5501  enableval=$enable_imlibtest;
5502else
5503  enable_imlibtest=yes
5504fi
5505
5506
5507  if test x$imlib_exec_prefix != x ; then
5508     imlib_args="$imlib_args --exec-prefix=$imlib_exec_prefix"
5509     if test x${IMLIB_CONFIG+set} != xset ; then
5510        IMLIB_CONFIG=$imlib_exec_prefix/bin/imlib-config
5511     fi
5512  fi
5513  if test x$imlib_prefix != x ; then
5514     imlib_args="$imlib_args --prefix=$imlib_prefix"
5515     if test x${IMLIB_CONFIG+set} != xset ; then
5516        IMLIB_CONFIG=$imlib_prefix/bin/imlib-config
5517     fi
5518  fi
5519
5520  # Extract the first word of "imlib-config", so it can be a program name with args.
5521set dummy imlib-config; ac_word=$2
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523$as_echo_n "checking for $ac_word... " >&6; }
5524if ${ac_cv_path_IMLIB_CONFIG+:} false; then :
5525  $as_echo_n "(cached) " >&6
5526else
5527  case $IMLIB_CONFIG in
5528  [\\/]* | ?:[\\/]*)
5529  ac_cv_path_IMLIB_CONFIG="$IMLIB_CONFIG" # Let the user override the test with a path.
5530  ;;
5531  *)
5532  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533for as_dir in $PATH
5534do
5535  IFS=$as_save_IFS
5536  test -z "$as_dir" && as_dir=.
5537    for ac_exec_ext in '' $ac_executable_extensions; do
5538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539    ac_cv_path_IMLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541    break 2
5542  fi
5543done
5544  done
5545IFS=$as_save_IFS
5546
5547  test -z "$ac_cv_path_IMLIB_CONFIG" && ac_cv_path_IMLIB_CONFIG="no"
5548  ;;
5549esac
5550fi
5551IMLIB_CONFIG=$ac_cv_path_IMLIB_CONFIG
5552if test -n "$IMLIB_CONFIG"; then
5553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMLIB_CONFIG" >&5
5554$as_echo "$IMLIB_CONFIG" >&6; }
5555else
5556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557$as_echo "no" >&6; }
5558fi
5559
5560
5561  min_imlib_version=1.8.2
5562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMLIB - version >= $min_imlib_version" >&5
5563$as_echo_n "checking for IMLIB - version >= $min_imlib_version... " >&6; }
5564  no_imlib=""
5565  if test "$IMLIB_CONFIG" = "no" ; then
5566    no_imlib=yes
5567  else
5568    GDK_IMLIB_CFLAGS=`$IMLIB_CONFIG $imlibconf_args --cflags-gdk`
5569    GDK_IMLIB_LIBS=`$IMLIB_CONFIG $imlibconf_args --libs-gdk`
5570
5571    imlib_major_version=`$IMLIB_CONFIG $imlib_args --version | \
5572           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5573    imlib_minor_version=`$IMLIB_CONFIG $imlib_args --version | \
5574           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5575    if test "x$enable_imlibtest" = "xyes" ; then
5576      ac_save_CFLAGS="$CFLAGS"
5577      ac_save_LIBS="$LIBS"
5578      CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS"
5579      LIBS="$LIBS $GDK_IMLIB_LIBS"
5580      rm -f conf.imlibtest
5581      if test "$cross_compiling" = yes; then :
5582  echo $ac_n "cross compiling; assumed OK... $ac_c"
5583else
5584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585/* end confdefs.h.  */
5586
5587#include <stdio.h>
5588#include <stdlib.h>
5589#include <gdk_imlib.h>
5590
5591int main ()
5592{
5593  int major, minor;
5594  char *tmp_version;
5595
5596  system ("touch conf.gdkimlibtest");
5597
5598  /* HP/UX 9 (%@#!) writes to sscanf strings */
5599  tmp_version = g_strdup("$min_imlib_version");
5600  if (sscanf(tmp_version, "%d.%d", &major, &minor) != 2) {
5601     printf("%s, bad version string\n", "$min_imlib_version");
5602     exit(1);
5603   }
5604
5605    if (($imlib_major_version > major) ||
5606        (($imlib_major_version == major) && ($imlib_minor_version >= minor)))
5607    {
5608      return 0;
5609    }
5610  else
5611    {
5612      printf("\n*** 'imlib-config --version' returned %d.%d, but the minimum version\n", $imlib_major_version, $imlib_minor_version);
5613      printf("*** of IMLIB required is %d.%d. If imlib-config is correct, then it is\n", major, minor);
5614      printf("*** best to upgrade to the required version.\n");
5615      printf("*** If imlib-config was wrong, set the environment variable IMLIB_CONFIG\n");
5616      printf("*** to point to the correct copy of imlib-config, and remove the file\n");
5617      printf("*** config.cache before re-running configure\n");
5618      return 1;
5619    }
5620}
5621
5622
5623_ACEOF
5624if ac_fn_c_try_run "$LINENO"; then :
5625
5626else
5627  no_imlib=yes
5628fi
5629rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5630  conftest.$ac_objext conftest.beam conftest.$ac_ext
5631fi
5632
5633       CFLAGS="$ac_save_CFLAGS"
5634       LIBS="$ac_save_LIBS"
5635     fi
5636  fi
5637  if test "x$no_imlib" = x ; then
5638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5639$as_echo "yes" >&6; }
5640     :
5641  else
5642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643$as_echo "no" >&6; }
5644     if test "$IMLIB_CONFIG" = "no" ; then
5645       echo "*** The imlib-config script installed by IMLIB could not be found"
5646       echo "*** If IMLIB was installed in PREFIX, make sure PREFIX/bin is in"
5647       echo "*** your path, or set the IMLIB_CONFIG environment variable to the"
5648       echo "*** full path to imlib-config."
5649     else
5650       if test -f conf.gdkimlibtest ; then
5651        :
5652       else
5653          echo "*** Could not run IMLIB test program, checking why..."
5654          CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS"
5655          LIBS="$LIBS $GDK_IMLIB_LIBS"
5656          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657/* end confdefs.h.  */
5658
5659#include <stdio.h>
5660#include <gdk_imlib.h>
5661
5662int
5663main ()
5664{
5665 return 0;
5666  ;
5667  return 0;
5668}
5669_ACEOF
5670if ac_fn_c_try_link "$LINENO"; then :
5671   echo "*** The test program compiled, but did not run. This usually means"
5672          echo "*** that the run-time linker is not finding IMLIB or finding the wrong"
5673          echo "*** version of IMLIB. If it is not finding IMLIB, you'll need to set your"
5674          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5675          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
5676          echo "*** is required on your system"
5677	  echo "***"
5678          echo "*** If you have an old version installed, it is best to remove it, although"
5679          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5680else
5681   echo "*** The test program failed to compile or link. See the file config.log for the"
5682          echo "*** exact error that occured. This usually means IMLIB was incorrectly installed"
5683          echo "*** or that you have moved IMLIB since it was installed. In the latter case, you"
5684          echo "*** may want to edit the imlib-config script: $IMLIB_CONFIG"
5685fi
5686rm -f core conftest.err conftest.$ac_objext \
5687    conftest$ac_exeext conftest.$ac_ext
5688          CFLAGS="$ac_save_CFLAGS"
5689          LIBS="$ac_save_LIBS"
5690       fi
5691     fi
5692     IMLIB_CFLAGS=""
5693     IMLIB_LIBS=""
5694     :
5695  fi
5696
5697
5698  rm -f conf.gdkimlibtest
5699
5700	 if test x"$no_imlib" = x ; then
5701	    GTK_CFLAGS="$GTK_CFLAGS $GDK_IMLIB_CFLAGS"
5702	    GTK_LIBS="$GTK_LIBS $GDK_IMLIB_LIBS"
5703	    ac_save_CPPFLAGS="$CPPFLAGS"
5704	    CPPFLAGS="$GDK_IMLIB_CFLAGS"
5705	    ac_fn_c_check_header_mongrel "$LINENO" "gdk_imlib.h" "ac_cv_header_gdk_imlib_h" "$ac_includes_default"
5706if test "x$ac_cv_header_gdk_imlib_h" = xyes; then :
5707  $as_echo "#define HAVE_GDK_IMLIB_H 1" >>confdefs.h
5708
5709else
5710  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdk_imlib.h is not found." >&5
5711$as_echo "$as_me: WARNING: gdk_imlib.h is not found." >&2;}
5712fi
5713
5714
5715	    CPPFLAGS="$ac_save_CPPFLAGS"
5716         fi
5717      fi
5718   fi
5719fi
5720
5721GTK_CFLAGS=`expunge "${GTK_CFLAGS}"`
5722GTK_LIBS=`expunge "${GTK_LIBS}"`
5723
5724if test "$GTKVERSION" = "no"; then
5725   GTK_CFLAGS=""
5726   GTK_LIBS=""
5727fi
5728
5729
5730ac_config_files="$ac_config_files Mkinclude Makefile"
5731
5732cat >confcache <<\_ACEOF
5733# This file is a shell script that caches the results of configure
5734# tests run on this system so they can be shared between configure
5735# scripts and configure runs, see configure's option --config-cache.
5736# It is not useful on other systems.  If it contains results you don't
5737# want to keep, you may remove or edit it.
5738#
5739# config.status only pays attention to the cache file if you give it
5740# the --recheck option to rerun configure.
5741#
5742# `ac_cv_env_foo' variables (set or unset) will be overridden when
5743# loading this file, other *unset* `ac_cv_foo' will be assigned the
5744# following values.
5745
5746_ACEOF
5747
5748# The following way of writing the cache mishandles newlines in values,
5749# but we know of no workaround that is simple, portable, and efficient.
5750# So, we kill variables containing newlines.
5751# Ultrix sh set writes to stderr and can't be redirected directly,
5752# and sets the high bit in the cache file unless we assign to the vars.
5753(
5754  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5755    eval ac_val=\$$ac_var
5756    case $ac_val in #(
5757    *${as_nl}*)
5758      case $ac_var in #(
5759      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5760$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5761      esac
5762      case $ac_var in #(
5763      _ | IFS | as_nl) ;; #(
5764      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5765      *) { eval $ac_var=; unset $ac_var;} ;;
5766      esac ;;
5767    esac
5768  done
5769
5770  (set) 2>&1 |
5771    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5772    *${as_nl}ac_space=\ *)
5773      # `set' does not quote correctly, so add quotes: double-quote
5774      # substitution turns \\\\ into \\, and sed turns \\ into \.
5775      sed -n \
5776	"s/'/'\\\\''/g;
5777	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5778      ;; #(
5779    *)
5780      # `set' quotes correctly as required by POSIX, so do not add quotes.
5781      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5782      ;;
5783    esac |
5784    sort
5785) |
5786  sed '
5787     /^ac_cv_env_/b end
5788     t clear
5789     :clear
5790     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5791     t end
5792     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5793     :end' >>confcache
5794if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5795  if test -w "$cache_file"; then
5796    if test "x$cache_file" != "x/dev/null"; then
5797      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5798$as_echo "$as_me: updating cache $cache_file" >&6;}
5799      if test ! -f "$cache_file" || test -h "$cache_file"; then
5800	cat confcache >"$cache_file"
5801      else
5802        case $cache_file in #(
5803        */* | ?:*)
5804	  mv -f confcache "$cache_file"$$ &&
5805	  mv -f "$cache_file"$$ "$cache_file" ;; #(
5806        *)
5807	  mv -f confcache "$cache_file" ;;
5808	esac
5809      fi
5810    fi
5811  else
5812    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5813$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5814  fi
5815fi
5816rm -f confcache
5817
5818test "x$prefix" = xNONE && prefix=$ac_default_prefix
5819# Let make expand exec_prefix.
5820test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5821
5822DEFS=-DHAVE_CONFIG_H
5823
5824ac_libobjs=
5825ac_ltlibobjs=
5826U=
5827for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5828  # 1. Remove the extension, and $U if already installed.
5829  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5830  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5831  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5832  #    will be set to the directory where LIBOBJS objects are built.
5833  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5834  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5835done
5836LIBOBJS=$ac_libobjs
5837
5838LTLIBOBJS=$ac_ltlibobjs
5839
5840
5841
5842: "${CONFIG_STATUS=./config.status}"
5843ac_write_fail=0
5844ac_clean_files_save=$ac_clean_files
5845ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5847$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5848as_write_fail=0
5849cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5850#! $SHELL
5851# Generated by $as_me.
5852# Run this file to recreate the current configuration.
5853# Compiler output produced by configure, useful for debugging
5854# configure, is in config.log if it exists.
5855
5856debug=false
5857ac_cs_recheck=false
5858ac_cs_silent=false
5859
5860SHELL=\${CONFIG_SHELL-$SHELL}
5861export SHELL
5862_ASEOF
5863cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5864## -------------------- ##
5865## M4sh Initialization. ##
5866## -------------------- ##
5867
5868# Be more Bourne compatible
5869DUALCASE=1; export DUALCASE # for MKS sh
5870if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5871  emulate sh
5872  NULLCMD=:
5873  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5874  # is contrary to our usage.  Disable this feature.
5875  alias -g '${1+"$@"}'='"$@"'
5876  setopt NO_GLOB_SUBST
5877else
5878  case `(set -o) 2>/dev/null` in #(
5879  *posix*) :
5880    set -o posix ;; #(
5881  *) :
5882     ;;
5883esac
5884fi
5885
5886
5887as_nl='
5888'
5889export as_nl
5890# Printing a long string crashes Solaris 7 /usr/bin/printf.
5891as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5892as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5893as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5894# Prefer a ksh shell builtin over an external printf program on Solaris,
5895# but without wasting forks for bash or zsh.
5896if test -z "$BASH_VERSION$ZSH_VERSION" \
5897    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5898  as_echo='print -r --'
5899  as_echo_n='print -rn --'
5900elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5901  as_echo='printf %s\n'
5902  as_echo_n='printf %s'
5903else
5904  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5905    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5906    as_echo_n='/usr/ucb/echo -n'
5907  else
5908    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5909    as_echo_n_body='eval
5910      arg=$1;
5911      case $arg in #(
5912      *"$as_nl"*)
5913	expr "X$arg" : "X\\(.*\\)$as_nl";
5914	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5915      esac;
5916      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5917    '
5918    export as_echo_n_body
5919    as_echo_n='sh -c $as_echo_n_body as_echo'
5920  fi
5921  export as_echo_body
5922  as_echo='sh -c $as_echo_body as_echo'
5923fi
5924
5925# The user is always right.
5926if test "${PATH_SEPARATOR+set}" != set; then
5927  PATH_SEPARATOR=:
5928  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5929    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5930      PATH_SEPARATOR=';'
5931  }
5932fi
5933
5934
5935# IFS
5936# We need space, tab and new line, in precisely that order.  Quoting is
5937# there to prevent editors from complaining about space-tab.
5938# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5939# splitting by setting IFS to empty value.)
5940IFS=" ""	$as_nl"
5941
5942# Find who we are.  Look in the path if we contain no directory separator.
5943as_myself=
5944case $0 in #((
5945  *[\\/]* ) as_myself=$0 ;;
5946  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949  IFS=$as_save_IFS
5950  test -z "$as_dir" && as_dir=.
5951    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5952  done
5953IFS=$as_save_IFS
5954
5955     ;;
5956esac
5957# We did not find ourselves, most probably we were run as `sh COMMAND'
5958# in which case we are not to be found in the path.
5959if test "x$as_myself" = x; then
5960  as_myself=$0
5961fi
5962if test ! -f "$as_myself"; then
5963  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5964  exit 1
5965fi
5966
5967# Unset variables that we do not need and which cause bugs (e.g. in
5968# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5969# suppresses any "Segmentation fault" message there.  '((' could
5970# trigger a bug in pdksh 5.2.14.
5971for as_var in BASH_ENV ENV MAIL MAILPATH
5972do eval test x\${$as_var+set} = xset \
5973  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5974done
5975PS1='$ '
5976PS2='> '
5977PS4='+ '
5978
5979# NLS nuisances.
5980LC_ALL=C
5981export LC_ALL
5982LANGUAGE=C
5983export LANGUAGE
5984
5985# CDPATH.
5986(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5987
5988
5989# as_fn_error STATUS ERROR [LINENO LOG_FD]
5990# ----------------------------------------
5991# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5992# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5993# script with STATUS, using 1 if that was 0.
5994as_fn_error ()
5995{
5996  as_status=$1; test $as_status -eq 0 && as_status=1
5997  if test "$4"; then
5998    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5999    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6000  fi
6001  $as_echo "$as_me: error: $2" >&2
6002  as_fn_exit $as_status
6003} # as_fn_error
6004
6005
6006# as_fn_set_status STATUS
6007# -----------------------
6008# Set $? to STATUS, without forking.
6009as_fn_set_status ()
6010{
6011  return $1
6012} # as_fn_set_status
6013
6014# as_fn_exit STATUS
6015# -----------------
6016# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6017as_fn_exit ()
6018{
6019  set +e
6020  as_fn_set_status $1
6021  exit $1
6022} # as_fn_exit
6023
6024# as_fn_unset VAR
6025# ---------------
6026# Portably unset VAR.
6027as_fn_unset ()
6028{
6029  { eval $1=; unset $1;}
6030}
6031as_unset=as_fn_unset
6032# as_fn_append VAR VALUE
6033# ----------------------
6034# Append the text in VALUE to the end of the definition contained in VAR. Take
6035# advantage of any shell optimizations that allow amortized linear growth over
6036# repeated appends, instead of the typical quadratic growth present in naive
6037# implementations.
6038if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6039  eval 'as_fn_append ()
6040  {
6041    eval $1+=\$2
6042  }'
6043else
6044  as_fn_append ()
6045  {
6046    eval $1=\$$1\$2
6047  }
6048fi # as_fn_append
6049
6050# as_fn_arith ARG...
6051# ------------------
6052# Perform arithmetic evaluation on the ARGs, and store the result in the
6053# global $as_val. Take advantage of shells that can avoid forks. The arguments
6054# must be portable across $(()) and expr.
6055if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6056  eval 'as_fn_arith ()
6057  {
6058    as_val=$(( $* ))
6059  }'
6060else
6061  as_fn_arith ()
6062  {
6063    as_val=`expr "$@" || test $? -eq 1`
6064  }
6065fi # as_fn_arith
6066
6067
6068if expr a : '\(a\)' >/dev/null 2>&1 &&
6069   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6070  as_expr=expr
6071else
6072  as_expr=false
6073fi
6074
6075if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6076  as_basename=basename
6077else
6078  as_basename=false
6079fi
6080
6081if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6082  as_dirname=dirname
6083else
6084  as_dirname=false
6085fi
6086
6087as_me=`$as_basename -- "$0" ||
6088$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6089	 X"$0" : 'X\(//\)$' \| \
6090	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6091$as_echo X/"$0" |
6092    sed '/^.*\/\([^/][^/]*\)\/*$/{
6093	    s//\1/
6094	    q
6095	  }
6096	  /^X\/\(\/\/\)$/{
6097	    s//\1/
6098	    q
6099	  }
6100	  /^X\/\(\/\).*/{
6101	    s//\1/
6102	    q
6103	  }
6104	  s/.*/./; q'`
6105
6106# Avoid depending upon Character Ranges.
6107as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6108as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6109as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6110as_cr_digits='0123456789'
6111as_cr_alnum=$as_cr_Letters$as_cr_digits
6112
6113ECHO_C= ECHO_N= ECHO_T=
6114case `echo -n x` in #(((((
6115-n*)
6116  case `echo 'xy\c'` in
6117  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6118  xy)  ECHO_C='\c';;
6119  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6120       ECHO_T='	';;
6121  esac;;
6122*)
6123  ECHO_N='-n';;
6124esac
6125
6126rm -f conf$$ conf$$.exe conf$$.file
6127if test -d conf$$.dir; then
6128  rm -f conf$$.dir/conf$$.file
6129else
6130  rm -f conf$$.dir
6131  mkdir conf$$.dir 2>/dev/null
6132fi
6133if (echo >conf$$.file) 2>/dev/null; then
6134  if ln -s conf$$.file conf$$ 2>/dev/null; then
6135    as_ln_s='ln -s'
6136    # ... but there are two gotchas:
6137    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6138    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6139    # In both cases, we have to default to `cp -pR'.
6140    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6141      as_ln_s='cp -pR'
6142  elif ln conf$$.file conf$$ 2>/dev/null; then
6143    as_ln_s=ln
6144  else
6145    as_ln_s='cp -pR'
6146  fi
6147else
6148  as_ln_s='cp -pR'
6149fi
6150rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6151rmdir conf$$.dir 2>/dev/null
6152
6153
6154# as_fn_mkdir_p
6155# -------------
6156# Create "$as_dir" as a directory, including parents if necessary.
6157as_fn_mkdir_p ()
6158{
6159
6160  case $as_dir in #(
6161  -*) as_dir=./$as_dir;;
6162  esac
6163  test -d "$as_dir" || eval $as_mkdir_p || {
6164    as_dirs=
6165    while :; do
6166      case $as_dir in #(
6167      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6168      *) as_qdir=$as_dir;;
6169      esac
6170      as_dirs="'$as_qdir' $as_dirs"
6171      as_dir=`$as_dirname -- "$as_dir" ||
6172$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6173	 X"$as_dir" : 'X\(//\)[^/]' \| \
6174	 X"$as_dir" : 'X\(//\)$' \| \
6175	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6176$as_echo X"$as_dir" |
6177    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6178	    s//\1/
6179	    q
6180	  }
6181	  /^X\(\/\/\)[^/].*/{
6182	    s//\1/
6183	    q
6184	  }
6185	  /^X\(\/\/\)$/{
6186	    s//\1/
6187	    q
6188	  }
6189	  /^X\(\/\).*/{
6190	    s//\1/
6191	    q
6192	  }
6193	  s/.*/./; q'`
6194      test -d "$as_dir" && break
6195    done
6196    test -z "$as_dirs" || eval "mkdir $as_dirs"
6197  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6198
6199
6200} # as_fn_mkdir_p
6201if mkdir -p . 2>/dev/null; then
6202  as_mkdir_p='mkdir -p "$as_dir"'
6203else
6204  test -d ./-p && rmdir ./-p
6205  as_mkdir_p=false
6206fi
6207
6208
6209# as_fn_executable_p FILE
6210# -----------------------
6211# Test if FILE is an executable regular file.
6212as_fn_executable_p ()
6213{
6214  test -f "$1" && test -x "$1"
6215} # as_fn_executable_p
6216as_test_x='test -x'
6217as_executable_p=as_fn_executable_p
6218
6219# Sed expression to map a string onto a valid CPP name.
6220as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6221
6222# Sed expression to map a string onto a valid variable name.
6223as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6224
6225
6226exec 6>&1
6227## ----------------------------------- ##
6228## Main body of $CONFIG_STATUS script. ##
6229## ----------------------------------- ##
6230_ASEOF
6231test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6232
6233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6234# Save the log message, to keep $0 and so on meaningful, and to
6235# report actual input values of CONFIG_FILES etc. instead of their
6236# values after options handling.
6237ac_log="
6238This file was extended by $as_me, which was
6239generated by GNU Autoconf 2.69.  Invocation command line was
6240
6241  CONFIG_FILES    = $CONFIG_FILES
6242  CONFIG_HEADERS  = $CONFIG_HEADERS
6243  CONFIG_LINKS    = $CONFIG_LINKS
6244  CONFIG_COMMANDS = $CONFIG_COMMANDS
6245  $ $0 $@
6246
6247on `(hostname || uname -n) 2>/dev/null | sed 1q`
6248"
6249
6250_ACEOF
6251
6252case $ac_config_files in *"
6253"*) set x $ac_config_files; shift; ac_config_files=$*;;
6254esac
6255
6256case $ac_config_headers in *"
6257"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6258esac
6259
6260
6261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6262# Files that config.status was made for.
6263config_files="$ac_config_files"
6264config_headers="$ac_config_headers"
6265
6266_ACEOF
6267
6268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6269ac_cs_usage="\
6270\`$as_me' instantiates files and other configuration actions
6271from templates according to the current configuration.  Unless the files
6272and actions are specified as TAGs, all are instantiated by default.
6273
6274Usage: $0 [OPTION]... [TAG]...
6275
6276  -h, --help       print this help, then exit
6277  -V, --version    print version number and configuration settings, then exit
6278      --config     print configuration, then exit
6279  -q, --quiet, --silent
6280                   do not print progress messages
6281  -d, --debug      don't remove temporary files
6282      --recheck    update $as_me by reconfiguring in the same conditions
6283      --file=FILE[:TEMPLATE]
6284                   instantiate the configuration file FILE
6285      --header=FILE[:TEMPLATE]
6286                   instantiate the configuration header FILE
6287
6288Configuration files:
6289$config_files
6290
6291Configuration headers:
6292$config_headers
6293
6294Report bugs to the package provider."
6295
6296_ACEOF
6297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6298ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6299ac_cs_version="\\
6300config.status
6301configured by $0, generated by GNU Autoconf 2.69,
6302  with options \\"\$ac_cs_config\\"
6303
6304Copyright (C) 2012 Free Software Foundation, Inc.
6305This config.status script is free software; the Free Software Foundation
6306gives unlimited permission to copy, distribute and modify it."
6307
6308ac_pwd='$ac_pwd'
6309srcdir='$srcdir'
6310test -n "\$AWK" || AWK=awk
6311_ACEOF
6312
6313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6314# The default lists apply if the user does not specify any file.
6315ac_need_defaults=:
6316while test $# != 0
6317do
6318  case $1 in
6319  --*=?*)
6320    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6321    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6322    ac_shift=:
6323    ;;
6324  --*=)
6325    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6326    ac_optarg=
6327    ac_shift=:
6328    ;;
6329  *)
6330    ac_option=$1
6331    ac_optarg=$2
6332    ac_shift=shift
6333    ;;
6334  esac
6335
6336  case $ac_option in
6337  # Handling of the options.
6338  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6339    ac_cs_recheck=: ;;
6340  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6341    $as_echo "$ac_cs_version"; exit ;;
6342  --config | --confi | --conf | --con | --co | --c )
6343    $as_echo "$ac_cs_config"; exit ;;
6344  --debug | --debu | --deb | --de | --d | -d )
6345    debug=: ;;
6346  --file | --fil | --fi | --f )
6347    $ac_shift
6348    case $ac_optarg in
6349    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6350    '') as_fn_error $? "missing file argument" ;;
6351    esac
6352    as_fn_append CONFIG_FILES " '$ac_optarg'"
6353    ac_need_defaults=false;;
6354  --header | --heade | --head | --hea )
6355    $ac_shift
6356    case $ac_optarg in
6357    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6358    esac
6359    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6360    ac_need_defaults=false;;
6361  --he | --h)
6362    # Conflict between --help and --header
6363    as_fn_error $? "ambiguous option: \`$1'
6364Try \`$0 --help' for more information.";;
6365  --help | --hel | -h )
6366    $as_echo "$ac_cs_usage"; exit ;;
6367  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6368  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6369    ac_cs_silent=: ;;
6370
6371  # This is an error.
6372  -*) as_fn_error $? "unrecognized option: \`$1'
6373Try \`$0 --help' for more information." ;;
6374
6375  *) as_fn_append ac_config_targets " $1"
6376     ac_need_defaults=false ;;
6377
6378  esac
6379  shift
6380done
6381
6382ac_configure_extra_args=
6383
6384if $ac_cs_silent; then
6385  exec 6>/dev/null
6386  ac_configure_extra_args="$ac_configure_extra_args --silent"
6387fi
6388
6389_ACEOF
6390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6391if \$ac_cs_recheck; then
6392  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6393  shift
6394  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6395  CONFIG_SHELL='$SHELL'
6396  export CONFIG_SHELL
6397  exec "\$@"
6398fi
6399
6400_ACEOF
6401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6402exec 5>>config.log
6403{
6404  echo
6405  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6406## Running $as_me. ##
6407_ASBOX
6408  $as_echo "$ac_log"
6409} >&5
6410
6411_ACEOF
6412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6413_ACEOF
6414
6415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6416
6417# Handling of arguments.
6418for ac_config_target in $ac_config_targets
6419do
6420  case $ac_config_target in
6421    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6422    "Mkinclude") CONFIG_FILES="$CONFIG_FILES Mkinclude" ;;
6423    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6424
6425  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6426  esac
6427done
6428
6429
6430# If the user did not use the arguments to specify the items to instantiate,
6431# then the envvar interface is used.  Set only those that are not.
6432# We use the long form for the default assignment because of an extremely
6433# bizarre bug on SunOS 4.1.3.
6434if $ac_need_defaults; then
6435  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6436  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6437fi
6438
6439# Have a temporary directory for convenience.  Make it in the build tree
6440# simply because there is no reason against having it here, and in addition,
6441# creating and moving files from /tmp can sometimes cause problems.
6442# Hook for its removal unless debugging.
6443# Note that there is a small window in which the directory will not be cleaned:
6444# after its creation but before its name has been assigned to `$tmp'.
6445$debug ||
6446{
6447  tmp= ac_tmp=
6448  trap 'exit_status=$?
6449  : "${ac_tmp:=$tmp}"
6450  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6451' 0
6452  trap 'as_fn_exit 1' 1 2 13 15
6453}
6454# Create a (secure) tmp directory for tmp files.
6455
6456{
6457  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6458  test -d "$tmp"
6459}  ||
6460{
6461  tmp=./conf$$-$RANDOM
6462  (umask 077 && mkdir "$tmp")
6463} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6464ac_tmp=$tmp
6465
6466# Set up the scripts for CONFIG_FILES section.
6467# No need to generate them if there are no CONFIG_FILES.
6468# This happens for instance with `./config.status config.h'.
6469if test -n "$CONFIG_FILES"; then
6470
6471
6472ac_cr=`echo X | tr X '\015'`
6473# On cygwin, bash can eat \r inside `` if the user requested igncr.
6474# But we know of no other shell where ac_cr would be empty at this
6475# point, so we can use a bashism as a fallback.
6476if test "x$ac_cr" = x; then
6477  eval ac_cr=\$\'\\r\'
6478fi
6479ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6480if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6481  ac_cs_awk_cr='\\r'
6482else
6483  ac_cs_awk_cr=$ac_cr
6484fi
6485
6486echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6487_ACEOF
6488
6489
6490{
6491  echo "cat >conf$$subs.awk <<_ACEOF" &&
6492  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6493  echo "_ACEOF"
6494} >conf$$subs.sh ||
6495  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6496ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6497ac_delim='%!_!# '
6498for ac_last_try in false false false false false :; do
6499  . ./conf$$subs.sh ||
6500    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6501
6502  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6503  if test $ac_delim_n = $ac_delim_num; then
6504    break
6505  elif $ac_last_try; then
6506    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6507  else
6508    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6509  fi
6510done
6511rm -f conf$$subs.sh
6512
6513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6514cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6515_ACEOF
6516sed -n '
6517h
6518s/^/S["/; s/!.*/"]=/
6519p
6520g
6521s/^[^!]*!//
6522:repl
6523t repl
6524s/'"$ac_delim"'$//
6525t delim
6526:nl
6527h
6528s/\(.\{148\}\)..*/\1/
6529t more1
6530s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6531p
6532n
6533b repl
6534:more1
6535s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6536p
6537g
6538s/.\{148\}//
6539t nl
6540:delim
6541h
6542s/\(.\{148\}\)..*/\1/
6543t more2
6544s/["\\]/\\&/g; s/^/"/; s/$/"/
6545p
6546b
6547:more2
6548s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6549p
6550g
6551s/.\{148\}//
6552t delim
6553' <conf$$subs.awk | sed '
6554/^[^""]/{
6555  N
6556  s/\n//
6557}
6558' >>$CONFIG_STATUS || ac_write_fail=1
6559rm -f conf$$subs.awk
6560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6561_ACAWK
6562cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6563  for (key in S) S_is_set[key] = 1
6564  FS = ""
6565
6566}
6567{
6568  line = $ 0
6569  nfields = split(line, field, "@")
6570  substed = 0
6571  len = length(field[1])
6572  for (i = 2; i < nfields; i++) {
6573    key = field[i]
6574    keylen = length(key)
6575    if (S_is_set[key]) {
6576      value = S[key]
6577      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6578      len += length(value) + length(field[++i])
6579      substed = 1
6580    } else
6581      len += 1 + keylen
6582  }
6583
6584  print line
6585}
6586
6587_ACAWK
6588_ACEOF
6589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6590if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6591  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6592else
6593  cat
6594fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6595  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6596_ACEOF
6597
6598# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6599# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6600# trailing colons and then remove the whole line if VPATH becomes empty
6601# (actually we leave an empty line to preserve line numbers).
6602if test "x$srcdir" = x.; then
6603  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
6604h
6605s///
6606s/^/:/
6607s/[	 ]*$/:/
6608s/:\$(srcdir):/:/g
6609s/:\${srcdir}:/:/g
6610s/:@srcdir@:/:/g
6611s/^:*//
6612s/:*$//
6613x
6614s/\(=[	 ]*\).*/\1/
6615G
6616s/\n//
6617s/^[^=]*=[	 ]*$//
6618}'
6619fi
6620
6621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6622fi # test -n "$CONFIG_FILES"
6623
6624# Set up the scripts for CONFIG_HEADERS section.
6625# No need to generate them if there are no CONFIG_HEADERS.
6626# This happens for instance with `./config.status Makefile'.
6627if test -n "$CONFIG_HEADERS"; then
6628cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6629BEGIN {
6630_ACEOF
6631
6632# Transform confdefs.h into an awk script `defines.awk', embedded as
6633# here-document in config.status, that substitutes the proper values into
6634# config.h.in to produce config.h.
6635
6636# Create a delimiter string that does not exist in confdefs.h, to ease
6637# handling of long lines.
6638ac_delim='%!_!# '
6639for ac_last_try in false false :; do
6640  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6641  if test -z "$ac_tt"; then
6642    break
6643  elif $ac_last_try; then
6644    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6645  else
6646    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6647  fi
6648done
6649
6650# For the awk script, D is an array of macro values keyed by name,
6651# likewise P contains macro parameters if any.  Preserve backslash
6652# newline sequences.
6653
6654ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6655sed -n '
6656s/.\{148\}/&'"$ac_delim"'/g
6657t rset
6658:rset
6659s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6660t def
6661d
6662:def
6663s/\\$//
6664t bsnl
6665s/["\\]/\\&/g
6666s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6667D["\1"]=" \3"/p
6668s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6669d
6670:bsnl
6671s/["\\]/\\&/g
6672s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6673D["\1"]=" \3\\\\\\n"\\/p
6674t cont
6675s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6676t cont
6677d
6678:cont
6679n
6680s/.\{148\}/&'"$ac_delim"'/g
6681t clear
6682:clear
6683s/\\$//
6684t bsnlc
6685s/["\\]/\\&/g; s/^/"/; s/$/"/p
6686d
6687:bsnlc
6688s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6689b cont
6690' <confdefs.h | sed '
6691s/'"$ac_delim"'/"\\\
6692"/g' >>$CONFIG_STATUS || ac_write_fail=1
6693
6694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6695  for (key in D) D_is_set[key] = 1
6696  FS = ""
6697}
6698/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6699  line = \$ 0
6700  split(line, arg, " ")
6701  if (arg[1] == "#") {
6702    defundef = arg[2]
6703    mac1 = arg[3]
6704  } else {
6705    defundef = substr(arg[1], 2)
6706    mac1 = arg[2]
6707  }
6708  split(mac1, mac2, "(") #)
6709  macro = mac2[1]
6710  prefix = substr(line, 1, index(line, defundef) - 1)
6711  if (D_is_set[macro]) {
6712    # Preserve the white space surrounding the "#".
6713    print prefix "define", macro P[macro] D[macro]
6714    next
6715  } else {
6716    # Replace #undef with comments.  This is necessary, for example,
6717    # in the case of _POSIX_SOURCE, which is predefined and required
6718    # on some systems where configure will not decide to define it.
6719    if (defundef == "undef") {
6720      print "/*", prefix defundef, macro, "*/"
6721      next
6722    }
6723  }
6724}
6725{ print }
6726_ACAWK
6727_ACEOF
6728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6729  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6730fi # test -n "$CONFIG_HEADERS"
6731
6732
6733eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
6734shift
6735for ac_tag
6736do
6737  case $ac_tag in
6738  :[FHLC]) ac_mode=$ac_tag; continue;;
6739  esac
6740  case $ac_mode$ac_tag in
6741  :[FHL]*:*);;
6742  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6743  :[FH]-) ac_tag=-:-;;
6744  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6745  esac
6746  ac_save_IFS=$IFS
6747  IFS=:
6748  set x $ac_tag
6749  IFS=$ac_save_IFS
6750  shift
6751  ac_file=$1
6752  shift
6753
6754  case $ac_mode in
6755  :L) ac_source=$1;;
6756  :[FH])
6757    ac_file_inputs=
6758    for ac_f
6759    do
6760      case $ac_f in
6761      -) ac_f="$ac_tmp/stdin";;
6762      *) # Look for the file first in the build tree, then in the source tree
6763	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6764	 # because $ac_f cannot contain `:'.
6765	 test -f "$ac_f" ||
6766	   case $ac_f in
6767	   [\\/$]*) false;;
6768	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6769	   esac ||
6770	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6771      esac
6772      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6773      as_fn_append ac_file_inputs " '$ac_f'"
6774    done
6775
6776    # Let's still pretend it is `configure' which instantiates (i.e., don't
6777    # use $as_me), people would be surprised to read:
6778    #    /* config.h.  Generated by config.status.  */
6779    configure_input='Generated from '`
6780	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6781	`' by configure.'
6782    if test x"$ac_file" != x-; then
6783      configure_input="$ac_file.  $configure_input"
6784      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6785$as_echo "$as_me: creating $ac_file" >&6;}
6786    fi
6787    # Neutralize special characters interpreted by sed in replacement strings.
6788    case $configure_input in #(
6789    *\&* | *\|* | *\\* )
6790       ac_sed_conf_input=`$as_echo "$configure_input" |
6791       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6792    *) ac_sed_conf_input=$configure_input;;
6793    esac
6794
6795    case $ac_tag in
6796    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6797      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6798    esac
6799    ;;
6800  esac
6801
6802  ac_dir=`$as_dirname -- "$ac_file" ||
6803$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6804	 X"$ac_file" : 'X\(//\)[^/]' \| \
6805	 X"$ac_file" : 'X\(//\)$' \| \
6806	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6807$as_echo X"$ac_file" |
6808    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6809	    s//\1/
6810	    q
6811	  }
6812	  /^X\(\/\/\)[^/].*/{
6813	    s//\1/
6814	    q
6815	  }
6816	  /^X\(\/\/\)$/{
6817	    s//\1/
6818	    q
6819	  }
6820	  /^X\(\/\).*/{
6821	    s//\1/
6822	    q
6823	  }
6824	  s/.*/./; q'`
6825  as_dir="$ac_dir"; as_fn_mkdir_p
6826  ac_builddir=.
6827
6828case "$ac_dir" in
6829.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6830*)
6831  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6832  # A ".." for each directory in $ac_dir_suffix.
6833  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6834  case $ac_top_builddir_sub in
6835  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6836  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6837  esac ;;
6838esac
6839ac_abs_top_builddir=$ac_pwd
6840ac_abs_builddir=$ac_pwd$ac_dir_suffix
6841# for backward compatibility:
6842ac_top_builddir=$ac_top_build_prefix
6843
6844case $srcdir in
6845  .)  # We are building in place.
6846    ac_srcdir=.
6847    ac_top_srcdir=$ac_top_builddir_sub
6848    ac_abs_top_srcdir=$ac_pwd ;;
6849  [\\/]* | ?:[\\/]* )  # Absolute name.
6850    ac_srcdir=$srcdir$ac_dir_suffix;
6851    ac_top_srcdir=$srcdir
6852    ac_abs_top_srcdir=$srcdir ;;
6853  *) # Relative name.
6854    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6855    ac_top_srcdir=$ac_top_build_prefix$srcdir
6856    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6857esac
6858ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6859
6860
6861  case $ac_mode in
6862  :F)
6863  #
6864  # CONFIG_FILE
6865  #
6866
6867_ACEOF
6868
6869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6870# If the template does not know about datarootdir, expand it.
6871# FIXME: This hack should be removed a few years after 2.60.
6872ac_datarootdir_hack=; ac_datarootdir_seen=
6873ac_sed_dataroot='
6874/datarootdir/ {
6875  p
6876  q
6877}
6878/@datadir@/p
6879/@docdir@/p
6880/@infodir@/p
6881/@localedir@/p
6882/@mandir@/p'
6883case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6884*datarootdir*) ac_datarootdir_seen=yes;;
6885*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6886  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6887$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6888_ACEOF
6889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6890  ac_datarootdir_hack='
6891  s&@datadir@&$datadir&g
6892  s&@docdir@&$docdir&g
6893  s&@infodir@&$infodir&g
6894  s&@localedir@&$localedir&g
6895  s&@mandir@&$mandir&g
6896  s&\\\${datarootdir}&$datarootdir&g' ;;
6897esac
6898_ACEOF
6899
6900# Neutralize VPATH when `$srcdir' = `.'.
6901# Shell code in configure.ac might set extrasub.
6902# FIXME: do we really want to maintain this feature?
6903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6904ac_sed_extra="$ac_vpsub
6905$extrasub
6906_ACEOF
6907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6908:t
6909/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6910s|@configure_input@|$ac_sed_conf_input|;t t
6911s&@top_builddir@&$ac_top_builddir_sub&;t t
6912s&@top_build_prefix@&$ac_top_build_prefix&;t t
6913s&@srcdir@&$ac_srcdir&;t t
6914s&@abs_srcdir@&$ac_abs_srcdir&;t t
6915s&@top_srcdir@&$ac_top_srcdir&;t t
6916s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6917s&@builddir@&$ac_builddir&;t t
6918s&@abs_builddir@&$ac_abs_builddir&;t t
6919s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6920$ac_datarootdir_hack
6921"
6922eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6923  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6924
6925test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6926  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6927  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
6928      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6930which seems to be undefined.  Please make sure it is defined" >&5
6931$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6932which seems to be undefined.  Please make sure it is defined" >&2;}
6933
6934  rm -f "$ac_tmp/stdin"
6935  case $ac_file in
6936  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6937  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6938  esac \
6939  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6940 ;;
6941  :H)
6942  #
6943  # CONFIG_HEADER
6944  #
6945  if test x"$ac_file" != x-; then
6946    {
6947      $as_echo "/* $configure_input  */" \
6948      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6949    } >"$ac_tmp/config.h" \
6950      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6951    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6952      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6953$as_echo "$as_me: $ac_file is unchanged" >&6;}
6954    else
6955      rm -f "$ac_file"
6956      mv "$ac_tmp/config.h" "$ac_file" \
6957	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6958    fi
6959  else
6960    $as_echo "/* $configure_input  */" \
6961      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6962      || as_fn_error $? "could not create -" "$LINENO" 5
6963  fi
6964 ;;
6965
6966
6967  esac
6968
6969done # for ac_tag
6970
6971
6972as_fn_exit 0
6973_ACEOF
6974ac_clean_files=$ac_clean_files_save
6975
6976test $ac_write_fail = 0 ||
6977  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6978
6979
6980# configure is writing to config.log, and then calls config.status.
6981# config.status does its own redirection, appending to config.log.
6982# Unfortunately, on DOS this fails, as config.log is still kept open
6983# by configure, so config.status won't be able to write to it; its
6984# output is simply discarded.  So we exec the FD to /dev/null,
6985# effectively closing config.log, so it can be properly (re)opened and
6986# appended to by config.status.  When coming back to configure, we
6987# need to make the FD available again.
6988if test "$no_create" != yes; then
6989  ac_cs_success=:
6990  ac_config_status_args=
6991  test "$silent" = yes &&
6992    ac_config_status_args="$ac_config_status_args --quiet"
6993  exec 5>/dev/null
6994  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6995  exec 5>>config.log
6996  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6997  # would make configure fail if this is the last instruction.
6998  $ac_cs_success || as_fn_exit 1
6999fi
7000if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7001  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7002$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7003fi
7004
7005