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="src/Fl.cxx"
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
624BINARY_DIR
625MAKEDEPEND
626CAT6EXT
627CAT3EXT
628CAT1EXT
629USEMMFILES
630UNINSTALL_DESKTOP
631INSTALL_DESKTOP
632THREADS
633OSX_ONLY
634HLINKS
635GLLIBS
636XPROP
637FTCONFIG
638PKGCONFIG
639X_EXTRA_LIBS
640X_LIBS
641X_PRE_LIBS
642X_CFLAGS
643XMKMF
644PTHREAD_FLAGS
645ZLIBINC
646ZLIB
647PNGINC
648PNG
649JPEGINC
650JPEG
651STATICIMAGELIBS
652IMAGELIBS
653AUDIOLIBS
654LARGEFILE
655EGREP
656GREP
657CPP
658RC
659LIBCOMMAND
660AR
661RANLIB
662DOXYDOC
663GROFF
664NROFF
665INSTALL_DATA
666INSTALL_SCRIPT
667INSTALL_PROGRAM
668FLUID_BUILD
669FLUID
670LINKSHARED
671SHAREDSUFFIX
672CAIRODSONAME
673IMGDSONAME
674GLDSONAME
675FLDSONAME
676DSONAME
677DSOLINK
678DSOFLAGS
679DSOCOMMAND
680CAIROLIBBASENAME
681IMGLIBBASENAME
682GLLIBBASENAME
683FLLIBBASENAME
684LIBBASENAME
685LINKFLTKIMG
686LINKFLTKGL
687LINKFLTKFORMS
688LINKFLTK
689LIBNAME
690LIBEXT
691CAIROLIBNAME
692IMGLIBNAME
693GLLIBNAME
694GLDEMOS
695FLLIBNAME
696FLTKCAIROOPTION
697LINKFLTKCAIRO
698CAIROLIBS
699CAIROFLAGS
700CAIRODIR
701OPTIM
702ARCHFLAGS
703FLTK_VERSION
704FL_ABI_VERSION
705FL_DSO_VERSION
706FLTK_VERSION_PATCH
707FLTK_VERSION_MINOR
708FLTK_VERSION_MAJOR
709ac_ct_CXX
710CXXFLAGS
711CXX
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
719host_os
720host_vendor
721host_cpu
722host
723build_os
724build_vendor
725build_cpu
726build
727target_alias
728host_alias
729build_alias
730LIBS
731ECHO_T
732ECHO_N
733ECHO_C
734DEFS
735mandir
736localedir
737libdir
738psdir
739pdfdir
740dvidir
741htmldir
742infodir
743docdir
744oldincludedir
745includedir
746runstatedir
747localstatedir
748sharedstatedir
749sysconfdir
750datadir
751datarootdir
752libexecdir
753sbindir
754bindir
755program_transform_name
756prefix
757exec_prefix
758PACKAGE_URL
759PACKAGE_BUGREPORT
760PACKAGE_STRING
761PACKAGE_VERSION
762PACKAGE_TARNAME
763PACKAGE_NAME
764PATH_SEPARATOR
765SHELL'
766ac_subst_files=''
767ac_user_opts='
768enable_option_checking
769enable_cygwin
770enable_x11
771enable_cairoext
772enable_cairo
773with_abiversion
774enable_debug
775enable_cp936
776enable_gl
777enable_shared
778enable_threads
779with_optim
780with_archflags
781enable_largefile
782enable_localjpeg
783enable_localzlib
784enable_localpng
785with_links
786with_x
787enable_xinerama
788enable_xft
789enable_xdbe
790enable_xfixes
791enable_xcursor
792enable_xrender
793'
794      ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800LIBS
801CPPFLAGS
802CXX
803CXXFLAGS
804CCC
805CPP
806XMKMF'
807
808
809# Initialize some variables set by options.
810ac_init_help=
811ac_init_version=false
812ac_unrecognized_opts=
813ac_unrecognized_sep=
814# The variables have the same names as the options, with
815# dashes changed to underlines.
816cache_file=/dev/null
817exec_prefix=NONE
818no_create=
819no_recursion=
820prefix=NONE
821program_prefix=NONE
822program_suffix=NONE
823program_transform_name=s,x,x,
824silent=
825site=
826srcdir=
827verbose=
828x_includes=NONE
829x_libraries=NONE
830
831# Installation directory options.
832# These are left unexpanded so users can "make install exec_prefix=/foo"
833# and all the variables that are supposed to be based on exec_prefix
834# by default will actually change.
835# Use braces instead of parens because sh, perl, etc. also accept them.
836# (The list follows the same order as the GNU Coding Standards.)
837bindir='${exec_prefix}/bin'
838sbindir='${exec_prefix}/sbin'
839libexecdir='${exec_prefix}/libexec'
840datarootdir='${prefix}/share'
841datadir='${datarootdir}'
842sysconfdir='${prefix}/etc'
843sharedstatedir='${prefix}/com'
844localstatedir='${prefix}/var'
845runstatedir='${localstatedir}/run'
846includedir='${prefix}/include'
847oldincludedir='/usr/include'
848docdir='${datarootdir}/doc/${PACKAGE}'
849infodir='${datarootdir}/info'
850htmldir='${docdir}'
851dvidir='${docdir}'
852pdfdir='${docdir}'
853psdir='${docdir}'
854libdir='${exec_prefix}/lib'
855localedir='${datarootdir}/locale'
856mandir='${datarootdir}/man'
857
858ac_prev=
859ac_dashdash=
860for ac_option
861do
862  # If the previous option needs an argument, assign it.
863  if test -n "$ac_prev"; then
864    eval $ac_prev=\$ac_option
865    ac_prev=
866    continue
867  fi
868
869  case $ac_option in
870  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871  *=)   ac_optarg= ;;
872  *)    ac_optarg=yes ;;
873  esac
874
875  # Accept the important Cygnus configure options, so we can diagnose typos.
876
877  case $ac_dashdash$ac_option in
878  --)
879    ac_dashdash=yes ;;
880
881  -bindir | --bindir | --bindi | --bind | --bin | --bi)
882    ac_prev=bindir ;;
883  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884    bindir=$ac_optarg ;;
885
886  -build | --build | --buil | --bui | --bu)
887    ac_prev=build_alias ;;
888  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889    build_alias=$ac_optarg ;;
890
891  -cache-file | --cache-file | --cache-fil | --cache-fi \
892  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893    ac_prev=cache_file ;;
894  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896    cache_file=$ac_optarg ;;
897
898  --config-cache | -C)
899    cache_file=config.cache ;;
900
901  -datadir | --datadir | --datadi | --datad)
902    ac_prev=datadir ;;
903  -datadir=* | --datadir=* | --datadi=* | --datad=*)
904    datadir=$ac_optarg ;;
905
906  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907  | --dataroo | --dataro | --datar)
908    ac_prev=datarootdir ;;
909  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911    datarootdir=$ac_optarg ;;
912
913  -disable-* | --disable-*)
914    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915    # Reject names that are not valid shell variable names.
916    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917      as_fn_error $? "invalid feature name: $ac_useropt"
918    ac_useropt_orig=$ac_useropt
919    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920    case $ac_user_opts in
921      *"
922"enable_$ac_useropt"
923"*) ;;
924      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925	 ac_unrecognized_sep=', ';;
926    esac
927    eval enable_$ac_useropt=no ;;
928
929  -docdir | --docdir | --docdi | --doc | --do)
930    ac_prev=docdir ;;
931  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932    docdir=$ac_optarg ;;
933
934  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935    ac_prev=dvidir ;;
936  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937    dvidir=$ac_optarg ;;
938
939  -enable-* | --enable-*)
940    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941    # Reject names that are not valid shell variable names.
942    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943      as_fn_error $? "invalid feature name: $ac_useropt"
944    ac_useropt_orig=$ac_useropt
945    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946    case $ac_user_opts in
947      *"
948"enable_$ac_useropt"
949"*) ;;
950      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951	 ac_unrecognized_sep=', ';;
952    esac
953    eval enable_$ac_useropt=\$ac_optarg ;;
954
955  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957  | --exec | --exe | --ex)
958    ac_prev=exec_prefix ;;
959  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961  | --exec=* | --exe=* | --ex=*)
962    exec_prefix=$ac_optarg ;;
963
964  -gas | --gas | --ga | --g)
965    # Obsolete; use --with-gas.
966    with_gas=yes ;;
967
968  -help | --help | --hel | --he | -h)
969    ac_init_help=long ;;
970  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971    ac_init_help=recursive ;;
972  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973    ac_init_help=short ;;
974
975  -host | --host | --hos | --ho)
976    ac_prev=host_alias ;;
977  -host=* | --host=* | --hos=* | --ho=*)
978    host_alias=$ac_optarg ;;
979
980  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981    ac_prev=htmldir ;;
982  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983  | --ht=*)
984    htmldir=$ac_optarg ;;
985
986  -includedir | --includedir | --includedi | --included | --include \
987  | --includ | --inclu | --incl | --inc)
988    ac_prev=includedir ;;
989  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990  | --includ=* | --inclu=* | --incl=* | --inc=*)
991    includedir=$ac_optarg ;;
992
993  -infodir | --infodir | --infodi | --infod | --info | --inf)
994    ac_prev=infodir ;;
995  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996    infodir=$ac_optarg ;;
997
998  -libdir | --libdir | --libdi | --libd)
999    ac_prev=libdir ;;
1000  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001    libdir=$ac_optarg ;;
1002
1003  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004  | --libexe | --libex | --libe)
1005    ac_prev=libexecdir ;;
1006  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007  | --libexe=* | --libex=* | --libe=*)
1008    libexecdir=$ac_optarg ;;
1009
1010  -localedir | --localedir | --localedi | --localed | --locale)
1011    ac_prev=localedir ;;
1012  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013    localedir=$ac_optarg ;;
1014
1015  -localstatedir | --localstatedir | --localstatedi | --localstated \
1016  | --localstate | --localstat | --localsta | --localst | --locals)
1017    ac_prev=localstatedir ;;
1018  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020    localstatedir=$ac_optarg ;;
1021
1022  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023    ac_prev=mandir ;;
1024  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025    mandir=$ac_optarg ;;
1026
1027  -nfp | --nfp | --nf)
1028    # Obsolete; use --without-fp.
1029    with_fp=no ;;
1030
1031  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032  | --no-cr | --no-c | -n)
1033    no_create=yes ;;
1034
1035  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037    no_recursion=yes ;;
1038
1039  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041  | --oldin | --oldi | --old | --ol | --o)
1042    ac_prev=oldincludedir ;;
1043  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046    oldincludedir=$ac_optarg ;;
1047
1048  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049    ac_prev=prefix ;;
1050  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051    prefix=$ac_optarg ;;
1052
1053  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054  | --program-pre | --program-pr | --program-p)
1055    ac_prev=program_prefix ;;
1056  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058    program_prefix=$ac_optarg ;;
1059
1060  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061  | --program-suf | --program-su | --program-s)
1062    ac_prev=program_suffix ;;
1063  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065    program_suffix=$ac_optarg ;;
1066
1067  -program-transform-name | --program-transform-name \
1068  | --program-transform-nam | --program-transform-na \
1069  | --program-transform-n | --program-transform- \
1070  | --program-transform | --program-transfor \
1071  | --program-transfo | --program-transf \
1072  | --program-trans | --program-tran \
1073  | --progr-tra | --program-tr | --program-t)
1074    ac_prev=program_transform_name ;;
1075  -program-transform-name=* | --program-transform-name=* \
1076  | --program-transform-nam=* | --program-transform-na=* \
1077  | --program-transform-n=* | --program-transform-=* \
1078  | --program-transform=* | --program-transfor=* \
1079  | --program-transfo=* | --program-transf=* \
1080  | --program-trans=* | --program-tran=* \
1081  | --progr-tra=* | --program-tr=* | --program-t=*)
1082    program_transform_name=$ac_optarg ;;
1083
1084  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085    ac_prev=pdfdir ;;
1086  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087    pdfdir=$ac_optarg ;;
1088
1089  -psdir | --psdir | --psdi | --psd | --ps)
1090    ac_prev=psdir ;;
1091  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092    psdir=$ac_optarg ;;
1093
1094  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095  | -silent | --silent | --silen | --sile | --sil)
1096    silent=yes ;;
1097
1098  -runstatedir | --runstatedir | --runstatedi | --runstated \
1099  | --runstate | --runstat | --runsta | --runst | --runs \
1100  | --run | --ru | --r)
1101    ac_prev=runstatedir ;;
1102  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1103  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1104  | --run=* | --ru=* | --r=*)
1105    runstatedir=$ac_optarg ;;
1106
1107  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108    ac_prev=sbindir ;;
1109  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110  | --sbi=* | --sb=*)
1111    sbindir=$ac_optarg ;;
1112
1113  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115  | --sharedst | --shareds | --shared | --share | --shar \
1116  | --sha | --sh)
1117    ac_prev=sharedstatedir ;;
1118  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121  | --sha=* | --sh=*)
1122    sharedstatedir=$ac_optarg ;;
1123
1124  -site | --site | --sit)
1125    ac_prev=site ;;
1126  -site=* | --site=* | --sit=*)
1127    site=$ac_optarg ;;
1128
1129  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130    ac_prev=srcdir ;;
1131  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132    srcdir=$ac_optarg ;;
1133
1134  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135  | --syscon | --sysco | --sysc | --sys | --sy)
1136    ac_prev=sysconfdir ;;
1137  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139    sysconfdir=$ac_optarg ;;
1140
1141  -target | --target | --targe | --targ | --tar | --ta | --t)
1142    ac_prev=target_alias ;;
1143  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144    target_alias=$ac_optarg ;;
1145
1146  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147    verbose=yes ;;
1148
1149  -version | --version | --versio | --versi | --vers | -V)
1150    ac_init_version=: ;;
1151
1152  -with-* | --with-*)
1153    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156      as_fn_error $? "invalid package name: $ac_useropt"
1157    ac_useropt_orig=$ac_useropt
1158    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159    case $ac_user_opts in
1160      *"
1161"with_$ac_useropt"
1162"*) ;;
1163      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164	 ac_unrecognized_sep=', ';;
1165    esac
1166    eval with_$ac_useropt=\$ac_optarg ;;
1167
1168  -without-* | --without-*)
1169    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170    # Reject names that are not valid shell variable names.
1171    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172      as_fn_error $? "invalid package name: $ac_useropt"
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"with_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval with_$ac_useropt=no ;;
1183
1184  --x)
1185    # Obsolete; use --with-x.
1186    with_x=yes ;;
1187
1188  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189  | --x-incl | --x-inc | --x-in | --x-i)
1190    ac_prev=x_includes ;;
1191  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193    x_includes=$ac_optarg ;;
1194
1195  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197    ac_prev=x_libraries ;;
1198  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200    x_libraries=$ac_optarg ;;
1201
1202  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203Try \`$0 --help' for more information"
1204    ;;
1205
1206  *=*)
1207    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208    # Reject names that are not valid shell variable names.
1209    case $ac_envvar in #(
1210      '' | [0-9]* | *[!_$as_cr_alnum]* )
1211      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212    esac
1213    eval $ac_envvar=\$ac_optarg
1214    export $ac_envvar ;;
1215
1216  *)
1217    # FIXME: should be removed in autoconf 3.0.
1218    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222    ;;
1223
1224  esac
1225done
1226
1227if test -n "$ac_prev"; then
1228  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229  as_fn_error $? "missing argument to $ac_option"
1230fi
1231
1232if test -n "$ac_unrecognized_opts"; then
1233  case $enable_option_checking in
1234    no) ;;
1235    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237  esac
1238fi
1239
1240# Check all directory arguments for consistency.
1241for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242		datadir sysconfdir sharedstatedir localstatedir includedir \
1243		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244		libdir localedir mandir runstatedir
1245do
1246  eval ac_val=\$$ac_var
1247  # Remove trailing slashes.
1248  case $ac_val in
1249    */ )
1250      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251      eval $ac_var=\$ac_val;;
1252  esac
1253  # Be sure to have absolute directory names.
1254  case $ac_val in
1255    [\\/$]* | ?:[\\/]* )  continue;;
1256    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257  esac
1258  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259done
1260
1261# There might be people who depend on the old broken behavior: `$host'
1262# used to hold the argument of --host etc.
1263# FIXME: To remove some day.
1264build=$build_alias
1265host=$host_alias
1266target=$target_alias
1267
1268# FIXME: To remove some day.
1269if test "x$host_alias" != x; then
1270  if test "x$build_alias" = x; then
1271    cross_compiling=maybe
1272  elif test "x$build_alias" != "x$host_alias"; then
1273    cross_compiling=yes
1274  fi
1275fi
1276
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
1281
1282
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286  as_fn_error $? "working directory cannot be determined"
1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288  as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293  ac_srcdir_defaulted=yes
1294  # Try the directory containing this script, then the parent directory.
1295  ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297	 X"$as_myself" : 'X\(//\)[^/]' \| \
1298	 X"$as_myself" : 'X\(//\)$' \| \
1299	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300$as_echo X"$as_myself" |
1301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)[^/].*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\).*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  s/.*/./; q'`
1318  srcdir=$ac_confdir
1319  if test ! -r "$srcdir/$ac_unique_file"; then
1320    srcdir=..
1321  fi
1322else
1323  ac_srcdir_defaulted=no
1324fi
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328fi
1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330ac_abs_confdir=`(
1331	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332	pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335  srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
1343for ac_var in $ac_precious_vars; do
1344  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_env_${ac_var}_value=\$${ac_var}
1346  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348done
1349
1350#
1351# Report the --help message.
1352#
1353if test "$ac_init_help" = "long"; then
1354  # Omit some internal or obsolete options to make the list less imposing.
1355  # This message is too long to be a string in the A/UX 3.1 sh.
1356  cat <<_ACEOF
1357\`configure' configures this package to adapt to many kinds of systems.
1358
1359Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
1364Defaults for the options are specified in brackets.
1365
1366Configuration:
1367  -h, --help              display this help and exit
1368      --help=short        display options specific to this package
1369      --help=recursive    display the short help of all the included packages
1370  -V, --version           display version information and exit
1371  -q, --quiet, --silent   do not print \`checking ...' messages
1372      --cache-file=FILE   cache test results in FILE [disabled]
1373  -C, --config-cache      alias for \`--cache-file=config.cache'
1374  -n, --no-create         do not create output files
1375      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1376
1377Installation directories:
1378  --prefix=PREFIX         install architecture-independent files in PREFIX
1379                          [$ac_default_prefix]
1380  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381                          [PREFIX]
1382
1383By default, \`make install' will install all the files in
1384\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1385an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386for instance \`--prefix=\$HOME'.
1387
1388For better control, use the options below.
1389
1390Fine tuning of the installation directories:
1391  --bindir=DIR            user executables [EPREFIX/bin]
1392  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1393  --libexecdir=DIR        program executables [EPREFIX/libexec]
1394  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1395  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1396  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1397  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1398  --libdir=DIR            object code libraries [EPREFIX/lib]
1399  --includedir=DIR        C header files [PREFIX/include]
1400  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1401  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1402  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1403  --infodir=DIR           info documentation [DATAROOTDIR/info]
1404  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1405  --mandir=DIR            man documentation [DATAROOTDIR/man]
1406  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1407  --htmldir=DIR           html documentation [DOCDIR]
1408  --dvidir=DIR            dvi documentation [DOCDIR]
1409  --pdfdir=DIR            pdf documentation [DOCDIR]
1410  --psdir=DIR             ps documentation [DOCDIR]
1411_ACEOF
1412
1413  cat <<\_ACEOF
1414
1415X features:
1416  --x-includes=DIR    X include files are in DIR
1417  --x-libraries=DIR   X library files are in DIR
1418
1419System types:
1420  --build=BUILD     configure for building on BUILD [guessed]
1421  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1422_ACEOF
1423fi
1424
1425if test -n "$ac_init_help"; then
1426
1427  cat <<\_ACEOF
1428
1429Optional Features:
1430  --disable-option-checking  ignore unrecognized --enable/--with options
1431  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1432  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1433  --enable-cygwin         use the Cygwin libraries [default=no]
1434  --enable-x11            with Cygwin or Mac OS, use X11 [default=no]
1435  --enable-cairoext       use fltk code instrumentation for cairo extended use [default=no]
1436  --enable-cairo          use lib Cairo [default=no]
1437  --enable-debug          turn on debugging [default=no]
1438  --enable-cp936          turn on CP936 [default=no]
1439  --enable-gl             turn on OpenGL support [default=yes]
1440  --enable-shared         turn on shared libraries [default=no]
1441  --enable-threads        enable multi-threading support [default=yes]
1442  --disable-largefile     omit support for large files
1443  --enable-localjpeg      use local JPEG library [default=auto]
1444  --enable-localzlib      use local ZLIB library [default=auto]
1445  --enable-localpng       use local PNG library  [default=auto]
1446  --enable-xinerama       turn on Xinerama support [default=yes]
1447  --enable-xft            turn on Xft support [default=yes]
1448  --enable-xdbe           turn on Xdbe support [default=yes]
1449  --enable-xfixes         turn on Xfixes support [default=yes]
1450  --enable-xcursor        turn on Xcursor support [default=yes]
1451  --enable-xrender        turn on Xrender support [default=yes]
1452
1453Optional Packages:
1454  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1455  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1456  --with-abiversion       Build with FL_ABI_VERSION, e.g. 10304 for FLTK 1.3.4
1457  --with-optim="flags"    use custom optimization flags
1458  --with-archflags="flags"
1459			  use custom architecture flags
1460			  (possible Mac OS X values include -arch i386, -arch x86_64, -arch ppc)
1461  --with-links            make header links for common misspellings [default=no]
1462  --with-x                use the X Window System
1463
1464Some influential environment variables:
1465  CC          C compiler command
1466  CFLAGS      C compiler flags
1467  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1468              nonstandard directory <lib dir>
1469  LIBS        libraries to pass to the linker, e.g. -l<library>
1470  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471              you have headers in a nonstandard directory <include dir>
1472  CXX         C++ compiler command
1473  CXXFLAGS    C++ compiler flags
1474  CPP         C preprocessor
1475  XMKMF       Path to xmkmf, Makefile generator for X Window System
1476
1477Use these variables to override the choices made by `configure' or to help
1478it to find libraries and programs with nonstandard names/locations.
1479
1480Report bugs to the package provider.
1481_ACEOF
1482ac_status=$?
1483fi
1484
1485if test "$ac_init_help" = "recursive"; then
1486  # If there are subdirs, report their specific --help.
1487  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488    test -d "$ac_dir" ||
1489      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490      continue
1491    ac_builddir=.
1492
1493case "$ac_dir" in
1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495*)
1496  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497  # A ".." for each directory in $ac_dir_suffix.
1498  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499  case $ac_top_builddir_sub in
1500  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502  esac ;;
1503esac
1504ac_abs_top_builddir=$ac_pwd
1505ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506# for backward compatibility:
1507ac_top_builddir=$ac_top_build_prefix
1508
1509case $srcdir in
1510  .)  # We are building in place.
1511    ac_srcdir=.
1512    ac_top_srcdir=$ac_top_builddir_sub
1513    ac_abs_top_srcdir=$ac_pwd ;;
1514  [\\/]* | ?:[\\/]* )  # Absolute name.
1515    ac_srcdir=$srcdir$ac_dir_suffix;
1516    ac_top_srcdir=$srcdir
1517    ac_abs_top_srcdir=$srcdir ;;
1518  *) # Relative name.
1519    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520    ac_top_srcdir=$ac_top_build_prefix$srcdir
1521    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522esac
1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525    cd "$ac_dir" || { ac_status=$?; continue; }
1526    # Check for guested configure.
1527    if test -f "$ac_srcdir/configure.gnu"; then
1528      echo &&
1529      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530    elif test -f "$ac_srcdir/configure"; then
1531      echo &&
1532      $SHELL "$ac_srcdir/configure" --help=recursive
1533    else
1534      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535    fi || ac_status=$?
1536    cd "$ac_pwd" || { ac_status=$?; break; }
1537  done
1538fi
1539
1540test -n "$ac_init_help" && exit $ac_status
1541if $ac_init_version; then
1542  cat <<\_ACEOF
1543configure
1544generated by GNU Autoconf 2.69
1545
1546Copyright (C) 2012 Free Software Foundation, Inc.
1547This configure script is free software; the Free Software Foundation
1548gives unlimited permission to copy, distribute and modify it.
1549_ACEOF
1550  exit
1551fi
1552
1553## ------------------------ ##
1554## Autoconf initialization. ##
1555## ------------------------ ##
1556
1557# ac_fn_c_try_compile LINENO
1558# --------------------------
1559# Try to compile conftest.$ac_ext, and return whether this succeeded.
1560ac_fn_c_try_compile ()
1561{
1562  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563  rm -f conftest.$ac_objext
1564  if { { ac_try="$ac_compile"
1565case "(($ac_try" in
1566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567  *) ac_try_echo=$ac_try;;
1568esac
1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570$as_echo "$ac_try_echo"; } >&5
1571  (eval "$ac_compile") 2>conftest.err
1572  ac_status=$?
1573  if test -s conftest.err; then
1574    grep -v '^ *+' conftest.err >conftest.er1
1575    cat conftest.er1 >&5
1576    mv -f conftest.er1 conftest.err
1577  fi
1578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579  test $ac_status = 0; } && {
1580	 test -z "$ac_c_werror_flag" ||
1581	 test ! -s conftest.err
1582       } && test -s conftest.$ac_objext; then :
1583  ac_retval=0
1584else
1585  $as_echo "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
1587
1588	ac_retval=1
1589fi
1590  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591  as_fn_set_status $ac_retval
1592
1593} # ac_fn_c_try_compile
1594
1595# ac_fn_cxx_try_compile LINENO
1596# ----------------------------
1597# Try to compile conftest.$ac_ext, and return whether this succeeded.
1598ac_fn_cxx_try_compile ()
1599{
1600  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601  rm -f conftest.$ac_objext
1602  if { { ac_try="$ac_compile"
1603case "(($ac_try" in
1604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605  *) ac_try_echo=$ac_try;;
1606esac
1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608$as_echo "$ac_try_echo"; } >&5
1609  (eval "$ac_compile") 2>conftest.err
1610  ac_status=$?
1611  if test -s conftest.err; then
1612    grep -v '^ *+' conftest.err >conftest.er1
1613    cat conftest.er1 >&5
1614    mv -f conftest.er1 conftest.err
1615  fi
1616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617  test $ac_status = 0; } && {
1618	 test -z "$ac_cxx_werror_flag" ||
1619	 test ! -s conftest.err
1620       } && test -s conftest.$ac_objext; then :
1621  ac_retval=0
1622else
1623  $as_echo "$as_me: failed program was:" >&5
1624sed 's/^/| /' conftest.$ac_ext >&5
1625
1626	ac_retval=1
1627fi
1628  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629  as_fn_set_status $ac_retval
1630
1631} # ac_fn_cxx_try_compile
1632
1633# ac_fn_c_try_run LINENO
1634# ----------------------
1635# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1636# that executables *can* be run.
1637ac_fn_c_try_run ()
1638{
1639  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640  if { { ac_try="$ac_link"
1641case "(($ac_try" in
1642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643  *) ac_try_echo=$ac_try;;
1644esac
1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646$as_echo "$ac_try_echo"; } >&5
1647  (eval "$ac_link") 2>&5
1648  ac_status=$?
1649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1651  { { case "(($ac_try" in
1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653  *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657  (eval "$ac_try") 2>&5
1658  ac_status=$?
1659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660  test $ac_status = 0; }; }; then :
1661  ac_retval=0
1662else
1663  $as_echo "$as_me: program exited with status $ac_status" >&5
1664       $as_echo "$as_me: failed program was:" >&5
1665sed 's/^/| /' conftest.$ac_ext >&5
1666
1667       ac_retval=$ac_status
1668fi
1669  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671  as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_run
1674
1675# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1676# --------------------------------------------
1677# Tries to find the compile-time value of EXPR in a program that includes
1678# INCLUDES, setting VAR accordingly. Returns whether the value could be
1679# computed
1680ac_fn_c_compute_int ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  if test "$cross_compiling" = yes; then
1684    # Depending upon the size, compute the lo and hi bounds.
1685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686/* end confdefs.h.  */
1687$4
1688int
1689main ()
1690{
1691static int test_array [1 - 2 * !(($2) >= 0)];
1692test_array [0] = 0;
1693return test_array [0];
1694
1695  ;
1696  return 0;
1697}
1698_ACEOF
1699if ac_fn_c_try_compile "$LINENO"; then :
1700  ac_lo=0 ac_mid=0
1701  while :; do
1702    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703/* end confdefs.h.  */
1704$4
1705int
1706main ()
1707{
1708static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1709test_array [0] = 0;
1710return test_array [0];
1711
1712  ;
1713  return 0;
1714}
1715_ACEOF
1716if ac_fn_c_try_compile "$LINENO"; then :
1717  ac_hi=$ac_mid; break
1718else
1719  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1720			if test $ac_lo -le $ac_mid; then
1721			  ac_lo= ac_hi=
1722			  break
1723			fi
1724			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1725fi
1726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727  done
1728else
1729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h.  */
1731$4
1732int
1733main ()
1734{
1735static int test_array [1 - 2 * !(($2) < 0)];
1736test_array [0] = 0;
1737return test_array [0];
1738
1739  ;
1740  return 0;
1741}
1742_ACEOF
1743if ac_fn_c_try_compile "$LINENO"; then :
1744  ac_hi=-1 ac_mid=-1
1745  while :; do
1746    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748$4
1749int
1750main ()
1751{
1752static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1753test_array [0] = 0;
1754return test_array [0];
1755
1756  ;
1757  return 0;
1758}
1759_ACEOF
1760if ac_fn_c_try_compile "$LINENO"; then :
1761  ac_lo=$ac_mid; break
1762else
1763  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1764			if test $ac_mid -le $ac_hi; then
1765			  ac_lo= ac_hi=
1766			  break
1767			fi
1768			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1769fi
1770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771  done
1772else
1773  ac_lo= ac_hi=
1774fi
1775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776fi
1777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778# Binary search between lo and hi bounds.
1779while test "x$ac_lo" != "x$ac_hi"; do
1780  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h.  */
1783$4
1784int
1785main ()
1786{
1787static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1788test_array [0] = 0;
1789return test_array [0];
1790
1791  ;
1792  return 0;
1793}
1794_ACEOF
1795if ac_fn_c_try_compile "$LINENO"; then :
1796  ac_hi=$ac_mid
1797else
1798  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1799fi
1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801done
1802case $ac_lo in #((
1803?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1804'') ac_retval=1 ;;
1805esac
1806  else
1807    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808/* end confdefs.h.  */
1809$4
1810static long int longval () { return $2; }
1811static unsigned long int ulongval () { return $2; }
1812#include <stdio.h>
1813#include <stdlib.h>
1814int
1815main ()
1816{
1817
1818  FILE *f = fopen ("conftest.val", "w");
1819  if (! f)
1820    return 1;
1821  if (($2) < 0)
1822    {
1823      long int i = longval ();
1824      if (i != ($2))
1825	return 1;
1826      fprintf (f, "%ld", i);
1827    }
1828  else
1829    {
1830      unsigned long int i = ulongval ();
1831      if (i != ($2))
1832	return 1;
1833      fprintf (f, "%lu", i);
1834    }
1835  /* Do not output a trailing newline, as this causes \r\n confusion
1836     on some platforms.  */
1837  return ferror (f) || fclose (f) != 0;
1838
1839  ;
1840  return 0;
1841}
1842_ACEOF
1843if ac_fn_c_try_run "$LINENO"; then :
1844  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1845else
1846  ac_retval=1
1847fi
1848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1849  conftest.$ac_objext conftest.beam conftest.$ac_ext
1850rm -f conftest.val
1851
1852  fi
1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854  as_fn_set_status $ac_retval
1855
1856} # ac_fn_c_compute_int
1857
1858# ac_fn_c_try_cpp LINENO
1859# ----------------------
1860# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1861ac_fn_c_try_cpp ()
1862{
1863  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864  if { { ac_try="$ac_cpp conftest.$ac_ext"
1865case "(($ac_try" in
1866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867  *) ac_try_echo=$ac_try;;
1868esac
1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870$as_echo "$ac_try_echo"; } >&5
1871  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1872  ac_status=$?
1873  if test -s conftest.err; then
1874    grep -v '^ *+' conftest.err >conftest.er1
1875    cat conftest.er1 >&5
1876    mv -f conftest.er1 conftest.err
1877  fi
1878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879  test $ac_status = 0; } > conftest.i && {
1880	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1881	 test ! -s conftest.err
1882       }; then :
1883  ac_retval=0
1884else
1885  $as_echo "$as_me: failed program was:" >&5
1886sed 's/^/| /' conftest.$ac_ext >&5
1887
1888    ac_retval=1
1889fi
1890  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891  as_fn_set_status $ac_retval
1892
1893} # ac_fn_c_try_cpp
1894
1895# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1896# -------------------------------------------------------
1897# Tests whether HEADER exists and can be compiled using the include files in
1898# INCLUDES, setting the cache variable VAR accordingly.
1899ac_fn_c_check_header_compile ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903$as_echo_n "checking for $2... " >&6; }
1904if eval \${$3+:} false; then :
1905  $as_echo_n "(cached) " >&6
1906else
1907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h.  */
1909$4
1910#include <$2>
1911_ACEOF
1912if ac_fn_c_try_compile "$LINENO"; then :
1913  eval "$3=yes"
1914else
1915  eval "$3=no"
1916fi
1917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918fi
1919eval ac_res=\$$3
1920	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921$as_echo "$ac_res" >&6; }
1922  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923
1924} # ac_fn_c_check_header_compile
1925
1926# ac_fn_c_try_link LINENO
1927# -----------------------
1928# Try to link conftest.$ac_ext, and return whether this succeeded.
1929ac_fn_c_try_link ()
1930{
1931  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932  rm -f conftest.$ac_objext conftest$ac_exeext
1933  if { { ac_try="$ac_link"
1934case "(($ac_try" in
1935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936  *) ac_try_echo=$ac_try;;
1937esac
1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939$as_echo "$ac_try_echo"; } >&5
1940  (eval "$ac_link") 2>conftest.err
1941  ac_status=$?
1942  if test -s conftest.err; then
1943    grep -v '^ *+' conftest.err >conftest.er1
1944    cat conftest.er1 >&5
1945    mv -f conftest.er1 conftest.err
1946  fi
1947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948  test $ac_status = 0; } && {
1949	 test -z "$ac_c_werror_flag" ||
1950	 test ! -s conftest.err
1951       } && test -s conftest$ac_exeext && {
1952	 test "$cross_compiling" = yes ||
1953	 test -x conftest$ac_exeext
1954       }; then :
1955  ac_retval=0
1956else
1957  $as_echo "$as_me: failed program was:" >&5
1958sed 's/^/| /' conftest.$ac_ext >&5
1959
1960	ac_retval=1
1961fi
1962  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1963  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1964  # interfere with the next link command; also delete a directory that is
1965  # left behind by Apple's compiler.  We do this before executing the actions.
1966  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968  as_fn_set_status $ac_retval
1969
1970} # ac_fn_c_try_link
1971
1972# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1973# -------------------------------------------------------
1974# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1975# the include files in INCLUDES and setting the cache variable VAR
1976# accordingly.
1977ac_fn_c_check_header_mongrel ()
1978{
1979  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980  if eval \${$3+:} false; then :
1981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982$as_echo_n "checking for $2... " >&6; }
1983if eval \${$3+:} false; then :
1984  $as_echo_n "(cached) " >&6
1985fi
1986eval ac_res=\$$3
1987	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988$as_echo "$ac_res" >&6; }
1989else
1990  # Is the header compilable?
1991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1992$as_echo_n "checking $2 usability... " >&6; }
1993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h.  */
1995$4
1996#include <$2>
1997_ACEOF
1998if ac_fn_c_try_compile "$LINENO"; then :
1999  ac_header_compiler=yes
2000else
2001  ac_header_compiler=no
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2005$as_echo "$ac_header_compiler" >&6; }
2006
2007# Is the header present?
2008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2009$as_echo_n "checking $2 presence... " >&6; }
2010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h.  */
2012#include <$2>
2013_ACEOF
2014if ac_fn_c_try_cpp "$LINENO"; then :
2015  ac_header_preproc=yes
2016else
2017  ac_header_preproc=no
2018fi
2019rm -f conftest.err conftest.i conftest.$ac_ext
2020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2021$as_echo "$ac_header_preproc" >&6; }
2022
2023# So?  What about this header?
2024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2025  yes:no: )
2026    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2027$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2028    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2029$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2030    ;;
2031  no:yes:* )
2032    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2033$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2034    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2035$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2036    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2037$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2038    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2039$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2040    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042    ;;
2043esac
2044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045$as_echo_n "checking for $2... " >&6; }
2046if eval \${$3+:} false; then :
2047  $as_echo_n "(cached) " >&6
2048else
2049  eval "$3=\$ac_header_compiler"
2050fi
2051eval ac_res=\$$3
2052	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053$as_echo "$ac_res" >&6; }
2054fi
2055  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057} # ac_fn_c_check_header_mongrel
2058
2059# ac_fn_c_check_func LINENO FUNC VAR
2060# ----------------------------------
2061# Tests whether FUNC exists, setting the cache variable VAR accordingly
2062ac_fn_c_check_func ()
2063{
2064  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066$as_echo_n "checking for $2... " >&6; }
2067if eval \${$3+:} false; then :
2068  $as_echo_n "(cached) " >&6
2069else
2070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h.  */
2072/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2073   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2074#define $2 innocuous_$2
2075
2076/* System header to define __stub macros and hopefully few prototypes,
2077    which can conflict with char $2 (); below.
2078    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2079    <limits.h> exists even on freestanding compilers.  */
2080
2081#ifdef __STDC__
2082# include <limits.h>
2083#else
2084# include <assert.h>
2085#endif
2086
2087#undef $2
2088
2089/* Override any GCC internal prototype to avoid an error.
2090   Use char because int might match the return type of a GCC
2091   builtin and then its argument prototype would still apply.  */
2092#ifdef __cplusplus
2093extern "C"
2094#endif
2095char $2 ();
2096/* The GNU C library defines this for functions which it implements
2097    to always fail with ENOSYS.  Some functions are actually named
2098    something starting with __ and the normal name is an alias.  */
2099#if defined __stub_$2 || defined __stub___$2
2100choke me
2101#endif
2102
2103int
2104main ()
2105{
2106return $2 ();
2107  ;
2108  return 0;
2109}
2110_ACEOF
2111if ac_fn_c_try_link "$LINENO"; then :
2112  eval "$3=yes"
2113else
2114  eval "$3=no"
2115fi
2116rm -f core conftest.err conftest.$ac_objext \
2117    conftest$ac_exeext conftest.$ac_ext
2118fi
2119eval ac_res=\$$3
2120	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121$as_echo "$ac_res" >&6; }
2122  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123
2124} # ac_fn_c_check_func
2125cat >config.log <<_ACEOF
2126This file contains any messages produced by compilers while
2127running configure, to aid debugging if configure makes a mistake.
2128
2129It was created by $as_me, which was
2130generated by GNU Autoconf 2.69.  Invocation command line was
2131
2132  $ $0 $@
2133
2134_ACEOF
2135exec 5>>config.log
2136{
2137cat <<_ASUNAME
2138## --------- ##
2139## Platform. ##
2140## --------- ##
2141
2142hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2143uname -m = `(uname -m) 2>/dev/null || echo unknown`
2144uname -r = `(uname -r) 2>/dev/null || echo unknown`
2145uname -s = `(uname -s) 2>/dev/null || echo unknown`
2146uname -v = `(uname -v) 2>/dev/null || echo unknown`
2147
2148/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2149/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2150
2151/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2152/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2153/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2154/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2155/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2156/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2157/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2158
2159_ASUNAME
2160
2161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162for as_dir in $PATH
2163do
2164  IFS=$as_save_IFS
2165  test -z "$as_dir" && as_dir=.
2166    $as_echo "PATH: $as_dir"
2167  done
2168IFS=$as_save_IFS
2169
2170} >&5
2171
2172cat >&5 <<_ACEOF
2173
2174
2175## ----------- ##
2176## Core tests. ##
2177## ----------- ##
2178
2179_ACEOF
2180
2181
2182# Keep a trace of the command line.
2183# Strip out --no-create and --no-recursion so they do not pile up.
2184# Strip out --silent because we don't want to record it for future runs.
2185# Also quote any args containing shell meta-characters.
2186# Make two passes to allow for proper duplicate-argument suppression.
2187ac_configure_args=
2188ac_configure_args0=
2189ac_configure_args1=
2190ac_must_keep_next=false
2191for ac_pass in 1 2
2192do
2193  for ac_arg
2194  do
2195    case $ac_arg in
2196    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2197    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2198    | -silent | --silent | --silen | --sile | --sil)
2199      continue ;;
2200    *\'*)
2201      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2202    esac
2203    case $ac_pass in
2204    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2205    2)
2206      as_fn_append ac_configure_args1 " '$ac_arg'"
2207      if test $ac_must_keep_next = true; then
2208	ac_must_keep_next=false # Got value, back to normal.
2209      else
2210	case $ac_arg in
2211	  *=* | --config-cache | -C | -disable-* | --disable-* \
2212	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2213	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2214	  | -with-* | --with-* | -without-* | --without-* | --x)
2215	    case "$ac_configure_args0 " in
2216	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2217	    esac
2218	    ;;
2219	  -* ) ac_must_keep_next=true ;;
2220	esac
2221      fi
2222      as_fn_append ac_configure_args " '$ac_arg'"
2223      ;;
2224    esac
2225  done
2226done
2227{ ac_configure_args0=; unset ac_configure_args0;}
2228{ ac_configure_args1=; unset ac_configure_args1;}
2229
2230# When interrupted or exit'd, cleanup temporary files, and complete
2231# config.log.  We remove comments because anyway the quotes in there
2232# would cause problems or look ugly.
2233# WARNING: Use '\'' to represent an apostrophe within the trap.
2234# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2235trap 'exit_status=$?
2236  # Save into config.log some information that might help in debugging.
2237  {
2238    echo
2239
2240    $as_echo "## ---------------- ##
2241## Cache variables. ##
2242## ---------------- ##"
2243    echo
2244    # The following way of writing the cache mishandles newlines in values,
2245(
2246  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2247    eval ac_val=\$$ac_var
2248    case $ac_val in #(
2249    *${as_nl}*)
2250      case $ac_var in #(
2251      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2252$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2253      esac
2254      case $ac_var in #(
2255      _ | IFS | as_nl) ;; #(
2256      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2257      *) { eval $ac_var=; unset $ac_var;} ;;
2258      esac ;;
2259    esac
2260  done
2261  (set) 2>&1 |
2262    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2263    *${as_nl}ac_space=\ *)
2264      sed -n \
2265	"s/'\''/'\''\\\\'\'''\''/g;
2266	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2267      ;; #(
2268    *)
2269      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2270      ;;
2271    esac |
2272    sort
2273)
2274    echo
2275
2276    $as_echo "## ----------------- ##
2277## Output variables. ##
2278## ----------------- ##"
2279    echo
2280    for ac_var in $ac_subst_vars
2281    do
2282      eval ac_val=\$$ac_var
2283      case $ac_val in
2284      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2285      esac
2286      $as_echo "$ac_var='\''$ac_val'\''"
2287    done | sort
2288    echo
2289
2290    if test -n "$ac_subst_files"; then
2291      $as_echo "## ------------------- ##
2292## File substitutions. ##
2293## ------------------- ##"
2294      echo
2295      for ac_var in $ac_subst_files
2296      do
2297	eval ac_val=\$$ac_var
2298	case $ac_val in
2299	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2300	esac
2301	$as_echo "$ac_var='\''$ac_val'\''"
2302      done | sort
2303      echo
2304    fi
2305
2306    if test -s confdefs.h; then
2307      $as_echo "## ----------- ##
2308## confdefs.h. ##
2309## ----------- ##"
2310      echo
2311      cat confdefs.h
2312      echo
2313    fi
2314    test "$ac_signal" != 0 &&
2315      $as_echo "$as_me: caught signal $ac_signal"
2316    $as_echo "$as_me: exit $exit_status"
2317  } >&5
2318  rm -f core *.core core.conftest.* &&
2319    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2320    exit $exit_status
2321' 0
2322for ac_signal in 1 2 13 15; do
2323  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2324done
2325ac_signal=0
2326
2327# confdefs.h avoids OS command line length limits that DEFS can exceed.
2328rm -f -r conftest* confdefs.h
2329
2330$as_echo "/* confdefs.h */" > confdefs.h
2331
2332# Predefined preprocessor variables.
2333
2334cat >>confdefs.h <<_ACEOF
2335#define PACKAGE_NAME "$PACKAGE_NAME"
2336_ACEOF
2337
2338cat >>confdefs.h <<_ACEOF
2339#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2340_ACEOF
2341
2342cat >>confdefs.h <<_ACEOF
2343#define PACKAGE_VERSION "$PACKAGE_VERSION"
2344_ACEOF
2345
2346cat >>confdefs.h <<_ACEOF
2347#define PACKAGE_STRING "$PACKAGE_STRING"
2348_ACEOF
2349
2350cat >>confdefs.h <<_ACEOF
2351#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2352_ACEOF
2353
2354cat >>confdefs.h <<_ACEOF
2355#define PACKAGE_URL "$PACKAGE_URL"
2356_ACEOF
2357
2358
2359# Let the site file select an alternate cache file if it wants to.
2360# Prefer an explicitly selected file to automatically selected ones.
2361ac_site_file1=NONE
2362ac_site_file2=NONE
2363if test -n "$CONFIG_SITE"; then
2364  # We do not want a PATH search for config.site.
2365  case $CONFIG_SITE in #((
2366    -*)  ac_site_file1=./$CONFIG_SITE;;
2367    */*) ac_site_file1=$CONFIG_SITE;;
2368    *)   ac_site_file1=./$CONFIG_SITE;;
2369  esac
2370elif test "x$prefix" != xNONE; then
2371  ac_site_file1=$prefix/share/config.site
2372  ac_site_file2=$prefix/etc/config.site
2373else
2374  ac_site_file1=$ac_default_prefix/share/config.site
2375  ac_site_file2=$ac_default_prefix/etc/config.site
2376fi
2377for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2378do
2379  test "x$ac_site_file" = xNONE && continue
2380  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2381    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2382$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2383    sed 's/^/| /' "$ac_site_file" >&5
2384    . "$ac_site_file" \
2385      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2387as_fn_error $? "failed to load site script $ac_site_file
2388See \`config.log' for more details" "$LINENO" 5; }
2389  fi
2390done
2391
2392if test -r "$cache_file"; then
2393  # Some versions of bash will fail to source /dev/null (special files
2394  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2395  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2396    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2397$as_echo "$as_me: loading cache $cache_file" >&6;}
2398    case $cache_file in
2399      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2400      *)                      . "./$cache_file";;
2401    esac
2402  fi
2403else
2404  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2405$as_echo "$as_me: creating cache $cache_file" >&6;}
2406  >$cache_file
2407fi
2408
2409# Check that the precious variables saved in the cache have kept the same
2410# value.
2411ac_cache_corrupted=false
2412for ac_var in $ac_precious_vars; do
2413  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2414  eval ac_new_set=\$ac_env_${ac_var}_set
2415  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2416  eval ac_new_val=\$ac_env_${ac_var}_value
2417  case $ac_old_set,$ac_new_set in
2418    set,)
2419      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2420$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2421      ac_cache_corrupted=: ;;
2422    ,set)
2423      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2424$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2425      ac_cache_corrupted=: ;;
2426    ,);;
2427    *)
2428      if test "x$ac_old_val" != "x$ac_new_val"; then
2429	# differences in whitespace do not lead to failure.
2430	ac_old_val_w=`echo x $ac_old_val`
2431	ac_new_val_w=`echo x $ac_new_val`
2432	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2433	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2434$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2435	  ac_cache_corrupted=:
2436	else
2437	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2438$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2439	  eval $ac_var=\$ac_old_val
2440	fi
2441	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2442$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2443	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2444$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2445      fi;;
2446  esac
2447  # Pass precious variables to config.status.
2448  if test "$ac_new_set" = set; then
2449    case $ac_new_val in
2450    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2451    *) ac_arg=$ac_var=$ac_new_val ;;
2452    esac
2453    case " $ac_configure_args " in
2454      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2455      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2456    esac
2457  fi
2458done
2459if $ac_cache_corrupted; then
2460  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2462  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2463$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2464  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2465fi
2466## -------------------- ##
2467## Main body of script. ##
2468## -------------------- ##
2469
2470ac_ext=c
2471ac_cpp='$CPP $CPPFLAGS'
2472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475
2476
2477
2478
2479ac_aux_dir=
2480for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2481  if test -f "$ac_dir/install-sh"; then
2482    ac_aux_dir=$ac_dir
2483    ac_install_sh="$ac_aux_dir/install-sh -c"
2484    break
2485  elif test -f "$ac_dir/install.sh"; then
2486    ac_aux_dir=$ac_dir
2487    ac_install_sh="$ac_aux_dir/install.sh -c"
2488    break
2489  elif test -f "$ac_dir/shtool"; then
2490    ac_aux_dir=$ac_dir
2491    ac_install_sh="$ac_aux_dir/shtool install -c"
2492    break
2493  fi
2494done
2495if test -z "$ac_aux_dir"; then
2496  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2497fi
2498
2499# These three variables are undocumented and unsupported,
2500# and are intended to be withdrawn in a future Autoconf release.
2501# They can cause serious problems if a builder's source tree is in a directory
2502# whose full name contains unusual characters.
2503ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2504ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2505ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2506
2507
2508# Make sure we can run config.sub.
2509$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2510  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2511
2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2513$as_echo_n "checking build system type... " >&6; }
2514if ${ac_cv_build+:} false; then :
2515  $as_echo_n "(cached) " >&6
2516else
2517  ac_build_alias=$build_alias
2518test "x$ac_build_alias" = x &&
2519  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2520test "x$ac_build_alias" = x &&
2521  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2522ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2523  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2524
2525fi
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2527$as_echo "$ac_cv_build" >&6; }
2528case $ac_cv_build in
2529*-*-*) ;;
2530*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2531esac
2532build=$ac_cv_build
2533ac_save_IFS=$IFS; IFS='-'
2534set x $ac_cv_build
2535shift
2536build_cpu=$1
2537build_vendor=$2
2538shift; shift
2539# Remember, the first character of IFS is used to create $*,
2540# except with old shells:
2541build_os=$*
2542IFS=$ac_save_IFS
2543case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2544
2545
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2547$as_echo_n "checking host system type... " >&6; }
2548if ${ac_cv_host+:} false; then :
2549  $as_echo_n "(cached) " >&6
2550else
2551  if test "x$host_alias" = x; then
2552  ac_cv_host=$ac_cv_build
2553else
2554  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2555    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2556fi
2557
2558fi
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2560$as_echo "$ac_cv_host" >&6; }
2561case $ac_cv_host in
2562*-*-*) ;;
2563*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2564esac
2565host=$ac_cv_host
2566ac_save_IFS=$IFS; IFS='-'
2567set x $ac_cv_host
2568shift
2569host_cpu=$1
2570host_vendor=$2
2571shift; shift
2572# Remember, the first character of IFS is used to create $*,
2573# except with old shells:
2574host_os=$*
2575IFS=$ac_save_IFS
2576case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2577
2578
2579
2580ARCHFLAGS="${ARCHFLAGS:=}"
2581CFLAGS="${CFLAGS:=}"
2582CPPFLAGS="${CPPFLAGS:=}"
2583CXXFLAGS="${CXXFLAGS:=}"
2584DSOFLAGS="${DSOFLAGS:=}"
2585LDFLAGS="${LDFLAGS:=}"
2586OPTIM="${OPTIM:=}"
2587
2588ac_ext=c
2589ac_cpp='$CPP $CPPFLAGS'
2590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593if test -n "$ac_tool_prefix"; then
2594  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2595set dummy ${ac_tool_prefix}gcc; ac_word=$2
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597$as_echo_n "checking for $ac_word... " >&6; }
2598if ${ac_cv_prog_CC+:} false; then :
2599  $as_echo_n "(cached) " >&6
2600else
2601  if test -n "$CC"; then
2602  ac_cv_prog_CC="$CC" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609    for ac_exec_ext in '' $ac_executable_extensions; do
2610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616  done
2617IFS=$as_save_IFS
2618
2619fi
2620fi
2621CC=$ac_cv_prog_CC
2622if test -n "$CC"; then
2623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2624$as_echo "$CC" >&6; }
2625else
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627$as_echo "no" >&6; }
2628fi
2629
2630
2631fi
2632if test -z "$ac_cv_prog_CC"; then
2633  ac_ct_CC=$CC
2634  # Extract the first word of "gcc", so it can be a program name with args.
2635set dummy gcc; ac_word=$2
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637$as_echo_n "checking for $ac_word... " >&6; }
2638if ${ac_cv_prog_ac_ct_CC+:} false; then :
2639  $as_echo_n "(cached) " >&6
2640else
2641  if test -n "$ac_ct_CC"; then
2642  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2643else
2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH
2646do
2647  IFS=$as_save_IFS
2648  test -z "$as_dir" && as_dir=.
2649    for ac_exec_ext in '' $ac_executable_extensions; do
2650  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651    ac_cv_prog_ac_ct_CC="gcc"
2652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653    break 2
2654  fi
2655done
2656  done
2657IFS=$as_save_IFS
2658
2659fi
2660fi
2661ac_ct_CC=$ac_cv_prog_ac_ct_CC
2662if test -n "$ac_ct_CC"; then
2663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2664$as_echo "$ac_ct_CC" >&6; }
2665else
2666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667$as_echo "no" >&6; }
2668fi
2669
2670  if test "x$ac_ct_CC" = x; then
2671    CC=""
2672  else
2673    case $cross_compiling:$ac_tool_warned in
2674yes:)
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2677ac_tool_warned=yes ;;
2678esac
2679    CC=$ac_ct_CC
2680  fi
2681else
2682  CC="$ac_cv_prog_CC"
2683fi
2684
2685if test -z "$CC"; then
2686          if test -n "$ac_tool_prefix"; then
2687    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2688set dummy ${ac_tool_prefix}cc; ac_word=$2
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690$as_echo_n "checking for $ac_word... " >&6; }
2691if ${ac_cv_prog_CC+:} false; then :
2692  $as_echo_n "(cached) " >&6
2693else
2694  if test -n "$CC"; then
2695  ac_cv_prog_CC="$CC" # Let the user override the test.
2696else
2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700  IFS=$as_save_IFS
2701  test -z "$as_dir" && as_dir=.
2702    for ac_exec_ext in '' $ac_executable_extensions; do
2703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704    ac_cv_prog_CC="${ac_tool_prefix}cc"
2705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706    break 2
2707  fi
2708done
2709  done
2710IFS=$as_save_IFS
2711
2712fi
2713fi
2714CC=$ac_cv_prog_CC
2715if test -n "$CC"; then
2716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717$as_echo "$CC" >&6; }
2718else
2719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720$as_echo "no" >&6; }
2721fi
2722
2723
2724  fi
2725fi
2726if test -z "$CC"; then
2727  # Extract the first word of "cc", so it can be a program name with args.
2728set dummy cc; ac_word=$2
2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730$as_echo_n "checking for $ac_word... " >&6; }
2731if ${ac_cv_prog_CC+:} false; then :
2732  $as_echo_n "(cached) " >&6
2733else
2734  if test -n "$CC"; then
2735  ac_cv_prog_CC="$CC" # Let the user override the test.
2736else
2737  ac_prog_rejected=no
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741  IFS=$as_save_IFS
2742  test -z "$as_dir" && as_dir=.
2743    for ac_exec_ext in '' $ac_executable_extensions; do
2744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2746       ac_prog_rejected=yes
2747       continue
2748     fi
2749    ac_cv_prog_CC="cc"
2750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751    break 2
2752  fi
2753done
2754  done
2755IFS=$as_save_IFS
2756
2757if test $ac_prog_rejected = yes; then
2758  # We found a bogon in the path, so make sure we never use it.
2759  set dummy $ac_cv_prog_CC
2760  shift
2761  if test $# != 0; then
2762    # We chose a different compiler from the bogus one.
2763    # However, it has the same basename, so the bogon will be chosen
2764    # first if we set CC to just the basename; use the full file name.
2765    shift
2766    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2767  fi
2768fi
2769fi
2770fi
2771CC=$ac_cv_prog_CC
2772if test -n "$CC"; then
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774$as_echo "$CC" >&6; }
2775else
2776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777$as_echo "no" >&6; }
2778fi
2779
2780
2781fi
2782if test -z "$CC"; then
2783  if test -n "$ac_tool_prefix"; then
2784  for ac_prog in cl.exe
2785  do
2786    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789$as_echo_n "checking for $ac_word... " >&6; }
2790if ${ac_cv_prog_CC+:} false; then :
2791  $as_echo_n "(cached) " >&6
2792else
2793  if test -n "$CC"; then
2794  ac_cv_prog_CC="$CC" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799  IFS=$as_save_IFS
2800  test -z "$as_dir" && as_dir=.
2801    for ac_exec_ext in '' $ac_executable_extensions; do
2802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805    break 2
2806  fi
2807done
2808  done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813CC=$ac_cv_prog_CC
2814if test -n "$CC"; then
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816$as_echo "$CC" >&6; }
2817else
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819$as_echo "no" >&6; }
2820fi
2821
2822
2823    test -n "$CC" && break
2824  done
2825fi
2826if test -z "$CC"; then
2827  ac_ct_CC=$CC
2828  for ac_prog in cl.exe
2829do
2830  # Extract the first word of "$ac_prog", so it can be a program name with args.
2831set dummy $ac_prog; ac_word=$2
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833$as_echo_n "checking for $ac_word... " >&6; }
2834if ${ac_cv_prog_ac_ct_CC+:} false; then :
2835  $as_echo_n "(cached) " >&6
2836else
2837  if test -n "$ac_ct_CC"; then
2838  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843  IFS=$as_save_IFS
2844  test -z "$as_dir" && as_dir=.
2845    for ac_exec_ext in '' $ac_executable_extensions; do
2846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847    ac_cv_prog_ac_ct_CC="$ac_prog"
2848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849    break 2
2850  fi
2851done
2852  done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857ac_ct_CC=$ac_cv_prog_ac_ct_CC
2858if test -n "$ac_ct_CC"; then
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2860$as_echo "$ac_ct_CC" >&6; }
2861else
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863$as_echo "no" >&6; }
2864fi
2865
2866
2867  test -n "$ac_ct_CC" && break
2868done
2869
2870  if test "x$ac_ct_CC" = x; then
2871    CC=""
2872  else
2873    case $cross_compiling:$ac_tool_warned in
2874yes:)
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877ac_tool_warned=yes ;;
2878esac
2879    CC=$ac_ct_CC
2880  fi
2881fi
2882
2883fi
2884
2885
2886test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2888as_fn_error $? "no acceptable C compiler found in \$PATH
2889See \`config.log' for more details" "$LINENO" 5; }
2890
2891# Provide some information about the compiler.
2892$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2893set X $ac_compile
2894ac_compiler=$2
2895for ac_option in --version -v -V -qversion; do
2896  { { ac_try="$ac_compiler $ac_option >&5"
2897case "(($ac_try" in
2898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899  *) ac_try_echo=$ac_try;;
2900esac
2901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902$as_echo "$ac_try_echo"; } >&5
2903  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2904  ac_status=$?
2905  if test -s conftest.err; then
2906    sed '10a\
2907... rest of stderr output deleted ...
2908         10q' conftest.err >conftest.er1
2909    cat conftest.er1 >&5
2910  fi
2911  rm -f conftest.er1 conftest.err
2912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2913  test $ac_status = 0; }
2914done
2915
2916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917/* end confdefs.h.  */
2918
2919int
2920main ()
2921{
2922
2923  ;
2924  return 0;
2925}
2926_ACEOF
2927ac_clean_files_save=$ac_clean_files
2928ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2929# Try to create an executable without -o first, disregard a.out.
2930# It will help us diagnose broken compilers, and finding out an intuition
2931# of exeext.
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2933$as_echo_n "checking whether the C compiler works... " >&6; }
2934ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2935
2936# The possible output files:
2937ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2938
2939ac_rmfiles=
2940for ac_file in $ac_files
2941do
2942  case $ac_file in
2943    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2944    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2945  esac
2946done
2947rm -f $ac_rmfiles
2948
2949if { { ac_try="$ac_link_default"
2950case "(($ac_try" in
2951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952  *) ac_try_echo=$ac_try;;
2953esac
2954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2955$as_echo "$ac_try_echo"; } >&5
2956  (eval "$ac_link_default") 2>&5
2957  ac_status=$?
2958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2959  test $ac_status = 0; }; then :
2960  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2961# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2962# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2963# so that the user can short-circuit this test for compilers unknown to
2964# Autoconf.
2965for ac_file in $ac_files ''
2966do
2967  test -f "$ac_file" || continue
2968  case $ac_file in
2969    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2970	;;
2971    [ab].out )
2972	# We found the default executable, but exeext='' is most
2973	# certainly right.
2974	break;;
2975    *.* )
2976	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2977	then :; else
2978	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979	fi
2980	# We set ac_cv_exeext here because the later test for it is not
2981	# safe: cross compilers may not add the suffix if given an `-o'
2982	# argument, so we may need to know it at that point already.
2983	# Even if this section looks crufty: it has the advantage of
2984	# actually working.
2985	break;;
2986    * )
2987	break;;
2988  esac
2989done
2990test "$ac_cv_exeext" = no && ac_cv_exeext=
2991
2992else
2993  ac_file=''
2994fi
2995if test -z "$ac_file"; then :
2996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997$as_echo "no" >&6; }
2998$as_echo "$as_me: failed program was:" >&5
2999sed 's/^/| /' conftest.$ac_ext >&5
3000
3001{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3003as_fn_error 77 "C compiler cannot create executables
3004See \`config.log' for more details" "$LINENO" 5; }
3005else
3006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3007$as_echo "yes" >&6; }
3008fi
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3010$as_echo_n "checking for C compiler default output file name... " >&6; }
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3012$as_echo "$ac_file" >&6; }
3013ac_exeext=$ac_cv_exeext
3014
3015rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3016ac_clean_files=$ac_clean_files_save
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3018$as_echo_n "checking for suffix of executables... " >&6; }
3019if { { ac_try="$ac_link"
3020case "(($ac_try" in
3021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022  *) ac_try_echo=$ac_try;;
3023esac
3024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025$as_echo "$ac_try_echo"; } >&5
3026  (eval "$ac_link") 2>&5
3027  ac_status=$?
3028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029  test $ac_status = 0; }; then :
3030  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3031# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3032# work properly (i.e., refer to `conftest.exe'), while it won't with
3033# `rm'.
3034for ac_file in conftest.exe conftest conftest.*; do
3035  test -f "$ac_file" || continue
3036  case $ac_file in
3037    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3038    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3039	  break;;
3040    * ) break;;
3041  esac
3042done
3043else
3044  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3047See \`config.log' for more details" "$LINENO" 5; }
3048fi
3049rm -f conftest conftest$ac_cv_exeext
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3051$as_echo "$ac_cv_exeext" >&6; }
3052
3053rm -f conftest.$ac_ext
3054EXEEXT=$ac_cv_exeext
3055ac_exeext=$EXEEXT
3056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057/* end confdefs.h.  */
3058#include <stdio.h>
3059int
3060main ()
3061{
3062FILE *f = fopen ("conftest.out", "w");
3063 return ferror (f) || fclose (f) != 0;
3064
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069ac_clean_files="$ac_clean_files conftest.out"
3070# Check that the compiler produces executables we can run.  If not, either
3071# the compiler is broken, or we cross compile.
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3073$as_echo_n "checking whether we are cross compiling... " >&6; }
3074if test "$cross_compiling" != yes; then
3075  { { ac_try="$ac_link"
3076case "(($ac_try" in
3077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078  *) ac_try_echo=$ac_try;;
3079esac
3080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3081$as_echo "$ac_try_echo"; } >&5
3082  (eval "$ac_link") 2>&5
3083  ac_status=$?
3084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085  test $ac_status = 0; }
3086  if { ac_try='./conftest$ac_cv_exeext'
3087  { { case "(($ac_try" in
3088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089  *) ac_try_echo=$ac_try;;
3090esac
3091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092$as_echo "$ac_try_echo"; } >&5
3093  (eval "$ac_try") 2>&5
3094  ac_status=$?
3095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096  test $ac_status = 0; }; }; then
3097    cross_compiling=no
3098  else
3099    if test "$cross_compiling" = maybe; then
3100	cross_compiling=yes
3101    else
3102	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104as_fn_error $? "cannot run C compiled programs.
3105If you meant to cross compile, use \`--host'.
3106See \`config.log' for more details" "$LINENO" 5; }
3107    fi
3108  fi
3109fi
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3111$as_echo "$cross_compiling" >&6; }
3112
3113rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3114ac_clean_files=$ac_clean_files_save
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3116$as_echo_n "checking for suffix of object files... " >&6; }
3117if ${ac_cv_objext+:} false; then :
3118  $as_echo_n "(cached) " >&6
3119else
3120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121/* end confdefs.h.  */
3122
3123int
3124main ()
3125{
3126
3127  ;
3128  return 0;
3129}
3130_ACEOF
3131rm -f conftest.o conftest.obj
3132if { { ac_try="$ac_compile"
3133case "(($ac_try" in
3134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135  *) ac_try_echo=$ac_try;;
3136esac
3137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138$as_echo "$ac_try_echo"; } >&5
3139  (eval "$ac_compile") 2>&5
3140  ac_status=$?
3141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142  test $ac_status = 0; }; then :
3143  for ac_file in conftest.o conftest.obj conftest.*; do
3144  test -f "$ac_file" || continue;
3145  case $ac_file in
3146    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3147    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3148       break;;
3149  esac
3150done
3151else
3152  $as_echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157as_fn_error $? "cannot compute suffix of object files: cannot compile
3158See \`config.log' for more details" "$LINENO" 5; }
3159fi
3160rm -f conftest.$ac_cv_objext conftest.$ac_ext
3161fi
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3163$as_echo "$ac_cv_objext" >&6; }
3164OBJEXT=$ac_cv_objext
3165ac_objext=$OBJEXT
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3167$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3168if ${ac_cv_c_compiler_gnu+:} false; then :
3169  $as_echo_n "(cached) " >&6
3170else
3171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172/* end confdefs.h.  */
3173
3174int
3175main ()
3176{
3177#ifndef __GNUC__
3178       choke me
3179#endif
3180
3181  ;
3182  return 0;
3183}
3184_ACEOF
3185if ac_fn_c_try_compile "$LINENO"; then :
3186  ac_compiler_gnu=yes
3187else
3188  ac_compiler_gnu=no
3189fi
3190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191ac_cv_c_compiler_gnu=$ac_compiler_gnu
3192
3193fi
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3195$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3196if test $ac_compiler_gnu = yes; then
3197  GCC=yes
3198else
3199  GCC=
3200fi
3201ac_test_CFLAGS=${CFLAGS+set}
3202ac_save_CFLAGS=$CFLAGS
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3204$as_echo_n "checking whether $CC accepts -g... " >&6; }
3205if ${ac_cv_prog_cc_g+:} false; then :
3206  $as_echo_n "(cached) " >&6
3207else
3208  ac_save_c_werror_flag=$ac_c_werror_flag
3209   ac_c_werror_flag=yes
3210   ac_cv_prog_cc_g=no
3211   CFLAGS="-g"
3212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213/* end confdefs.h.  */
3214
3215int
3216main ()
3217{
3218
3219  ;
3220  return 0;
3221}
3222_ACEOF
3223if ac_fn_c_try_compile "$LINENO"; then :
3224  ac_cv_prog_cc_g=yes
3225else
3226  CFLAGS=""
3227      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228/* end confdefs.h.  */
3229
3230int
3231main ()
3232{
3233
3234  ;
3235  return 0;
3236}
3237_ACEOF
3238if ac_fn_c_try_compile "$LINENO"; then :
3239
3240else
3241  ac_c_werror_flag=$ac_save_c_werror_flag
3242	 CFLAGS="-g"
3243	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244/* end confdefs.h.  */
3245
3246int
3247main ()
3248{
3249
3250  ;
3251  return 0;
3252}
3253_ACEOF
3254if ac_fn_c_try_compile "$LINENO"; then :
3255  ac_cv_prog_cc_g=yes
3256fi
3257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258fi
3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260fi
3261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262   ac_c_werror_flag=$ac_save_c_werror_flag
3263fi
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3265$as_echo "$ac_cv_prog_cc_g" >&6; }
3266if test "$ac_test_CFLAGS" = set; then
3267  CFLAGS=$ac_save_CFLAGS
3268elif test $ac_cv_prog_cc_g = yes; then
3269  if test "$GCC" = yes; then
3270    CFLAGS="-g -O2"
3271  else
3272    CFLAGS="-g"
3273  fi
3274else
3275  if test "$GCC" = yes; then
3276    CFLAGS="-O2"
3277  else
3278    CFLAGS=
3279  fi
3280fi
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3282$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3283if ${ac_cv_prog_cc_c89+:} false; then :
3284  $as_echo_n "(cached) " >&6
3285else
3286  ac_cv_prog_cc_c89=no
3287ac_save_CC=$CC
3288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289/* end confdefs.h.  */
3290#include <stdarg.h>
3291#include <stdio.h>
3292struct stat;
3293/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3294struct buf { int x; };
3295FILE * (*rcsopen) (struct buf *, struct stat *, int);
3296static char *e (p, i)
3297     char **p;
3298     int i;
3299{
3300  return p[i];
3301}
3302static char *f (char * (*g) (char **, int), char **p, ...)
3303{
3304  char *s;
3305  va_list v;
3306  va_start (v,p);
3307  s = g (p, va_arg (v,int));
3308  va_end (v);
3309  return s;
3310}
3311
3312/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3313   function prototypes and stuff, but not '\xHH' hex character constants.
3314   These don't provoke an error unfortunately, instead are silently treated
3315   as 'x'.  The following induces an error, until -std is added to get
3316   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3317   array size at least.  It's necessary to write '\x00'==0 to get something
3318   that's true only with -std.  */
3319int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3320
3321/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3322   inside strings and character constants.  */
3323#define FOO(x) 'x'
3324int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3325
3326int test (int i, double x);
3327struct s1 {int (*f) (int a);};
3328struct s2 {int (*f) (double a);};
3329int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3330int argc;
3331char **argv;
3332int
3333main ()
3334{
3335return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3336  ;
3337  return 0;
3338}
3339_ACEOF
3340for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3341	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3342do
3343  CC="$ac_save_CC $ac_arg"
3344  if ac_fn_c_try_compile "$LINENO"; then :
3345  ac_cv_prog_cc_c89=$ac_arg
3346fi
3347rm -f core conftest.err conftest.$ac_objext
3348  test "x$ac_cv_prog_cc_c89" != "xno" && break
3349done
3350rm -f conftest.$ac_ext
3351CC=$ac_save_CC
3352
3353fi
3354# AC_CACHE_VAL
3355case "x$ac_cv_prog_cc_c89" in
3356  x)
3357    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3358$as_echo "none needed" >&6; } ;;
3359  xno)
3360    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3361$as_echo "unsupported" >&6; } ;;
3362  *)
3363    CC="$CC $ac_cv_prog_cc_c89"
3364    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3365$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3366esac
3367if test "x$ac_cv_prog_cc_c89" != xno; then :
3368
3369fi
3370
3371ac_ext=c
3372ac_cpp='$CPP $CPPFLAGS'
3373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376
3377ac_ext=cpp
3378ac_cpp='$CXXCPP $CPPFLAGS'
3379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3382if test -z "$CXX"; then
3383  if test -n "$CCC"; then
3384    CXX=$CCC
3385  else
3386    if test -n "$ac_tool_prefix"; then
3387  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3388  do
3389    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3390set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392$as_echo_n "checking for $ac_word... " >&6; }
3393if ${ac_cv_prog_CXX+:} false; then :
3394  $as_echo_n "(cached) " >&6
3395else
3396  if test -n "$CXX"; then
3397  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3398else
3399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400for as_dir in $PATH
3401do
3402  IFS=$as_save_IFS
3403  test -z "$as_dir" && as_dir=.
3404    for ac_exec_ext in '' $ac_executable_extensions; do
3405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408    break 2
3409  fi
3410done
3411  done
3412IFS=$as_save_IFS
3413
3414fi
3415fi
3416CXX=$ac_cv_prog_CXX
3417if test -n "$CXX"; then
3418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3419$as_echo "$CXX" >&6; }
3420else
3421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422$as_echo "no" >&6; }
3423fi
3424
3425
3426    test -n "$CXX" && break
3427  done
3428fi
3429if test -z "$CXX"; then
3430  ac_ct_CXX=$CXX
3431  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3432do
3433  # Extract the first word of "$ac_prog", so it can be a program name with args.
3434set dummy $ac_prog; ac_word=$2
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436$as_echo_n "checking for $ac_word... " >&6; }
3437if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3438  $as_echo_n "(cached) " >&6
3439else
3440  if test -n "$ac_ct_CXX"; then
3441  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3442else
3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH
3445do
3446  IFS=$as_save_IFS
3447  test -z "$as_dir" && as_dir=.
3448    for ac_exec_ext in '' $ac_executable_extensions; do
3449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450    ac_cv_prog_ac_ct_CXX="$ac_prog"
3451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452    break 2
3453  fi
3454done
3455  done
3456IFS=$as_save_IFS
3457
3458fi
3459fi
3460ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3461if test -n "$ac_ct_CXX"; then
3462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3463$as_echo "$ac_ct_CXX" >&6; }
3464else
3465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466$as_echo "no" >&6; }
3467fi
3468
3469
3470  test -n "$ac_ct_CXX" && break
3471done
3472
3473  if test "x$ac_ct_CXX" = x; then
3474    CXX="g++"
3475  else
3476    case $cross_compiling:$ac_tool_warned in
3477yes:)
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3480ac_tool_warned=yes ;;
3481esac
3482    CXX=$ac_ct_CXX
3483  fi
3484fi
3485
3486  fi
3487fi
3488# Provide some information about the compiler.
3489$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3490set X $ac_compile
3491ac_compiler=$2
3492for ac_option in --version -v -V -qversion; do
3493  { { ac_try="$ac_compiler $ac_option >&5"
3494case "(($ac_try" in
3495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496  *) ac_try_echo=$ac_try;;
3497esac
3498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499$as_echo "$ac_try_echo"; } >&5
3500  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3501  ac_status=$?
3502  if test -s conftest.err; then
3503    sed '10a\
3504... rest of stderr output deleted ...
3505         10q' conftest.err >conftest.er1
3506    cat conftest.er1 >&5
3507  fi
3508  rm -f conftest.er1 conftest.err
3509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510  test $ac_status = 0; }
3511done
3512
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3514$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3515if ${ac_cv_cxx_compiler_gnu+:} false; then :
3516  $as_echo_n "(cached) " >&6
3517else
3518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h.  */
3520
3521int
3522main ()
3523{
3524#ifndef __GNUC__
3525       choke me
3526#endif
3527
3528  ;
3529  return 0;
3530}
3531_ACEOF
3532if ac_fn_cxx_try_compile "$LINENO"; then :
3533  ac_compiler_gnu=yes
3534else
3535  ac_compiler_gnu=no
3536fi
3537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3539
3540fi
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3542$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3543if test $ac_compiler_gnu = yes; then
3544  GXX=yes
3545else
3546  GXX=
3547fi
3548ac_test_CXXFLAGS=${CXXFLAGS+set}
3549ac_save_CXXFLAGS=$CXXFLAGS
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3551$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3552if ${ac_cv_prog_cxx_g+:} false; then :
3553  $as_echo_n "(cached) " >&6
3554else
3555  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3556   ac_cxx_werror_flag=yes
3557   ac_cv_prog_cxx_g=no
3558   CXXFLAGS="-g"
3559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560/* end confdefs.h.  */
3561
3562int
3563main ()
3564{
3565
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570if ac_fn_cxx_try_compile "$LINENO"; then :
3571  ac_cv_prog_cxx_g=yes
3572else
3573  CXXFLAGS=""
3574      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h.  */
3576
3577int
3578main ()
3579{
3580
3581  ;
3582  return 0;
3583}
3584_ACEOF
3585if ac_fn_cxx_try_compile "$LINENO"; then :
3586
3587else
3588  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3589	 CXXFLAGS="-g"
3590	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592
3593int
3594main ()
3595{
3596
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601if ac_fn_cxx_try_compile "$LINENO"; then :
3602  ac_cv_prog_cxx_g=yes
3603fi
3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605fi
3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607fi
3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3610fi
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3612$as_echo "$ac_cv_prog_cxx_g" >&6; }
3613if test "$ac_test_CXXFLAGS" = set; then
3614  CXXFLAGS=$ac_save_CXXFLAGS
3615elif test $ac_cv_prog_cxx_g = yes; then
3616  if test "$GXX" = yes; then
3617    CXXFLAGS="-g -O2"
3618  else
3619    CXXFLAGS="-g"
3620  fi
3621else
3622  if test "$GXX" = yes; then
3623    CXXFLAGS="-O2"
3624  else
3625    CXXFLAGS=
3626  fi
3627fi
3628ac_ext=c
3629ac_cpp='$CPP $CPPFLAGS'
3630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633
3634
3635case $host_os in
3636    darwin*)
3637	if test "x$with_archflags" != x ; then
3638	    CFLAGS="$CFLAGS $with_archflags"
3639	fi
3640	;;
3641esac
3642
3643FLTK_VERSION_MAJOR=1
3644FLTK_VERSION_MINOR=3
3645FLTK_VERSION_PATCH=8
3646FL_DSO_VERSION=${FLTK_VERSION_MAJOR}.${FLTK_VERSION_MINOR}
3647FL_ABI_VERSION=${FLTK_VERSION_MAJOR}.${FLTK_VERSION_MINOR}.0
3648FLTK_VERSION=${FLTK_VERSION_MAJOR}.${FLTK_VERSION_MINOR}.${FLTK_VERSION_PATCH}
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660USEMMFILES="No"
3661
3662host_os_gui=$host_os
3663case $host_os in
3664    cygwin*)
3665	# Handle Cygwin option *first*, before all other tests.
3666	# Check whether --enable-cygwin was given.
3667if test "${enable_cygwin+set}" = set; then :
3668  enableval=$enable_cygwin;
3669fi
3670
3671	# Check whether --enable-x11 was given.
3672if test "${enable_x11+set}" = set; then :
3673  enableval=$enable_x11;
3674fi
3675
3676	if test x$enable_cygwin = xyes; then
3677	    # we target Cygwin in combination with X11
3678	    if test x$enable_x11 = xyes; then
3679		host_os_gui="X11$host_os"
3680	    fi
3681	fi
3682	;;
3683    darwin*)
3684	if test x$enable_x11 = xyes; then
3685		host_os_gui="X11"
3686		OPTIM="-U__APPLE__ -mmacosx-version-min=10.9 -D_LIBCPP_HAS_THREAD_API_PTHREAD $OPTIM"
3687	fi
3688	;;
3689   *)
3690   ;;
3691esac
3692
3693LINKFLTK="../lib/libfltk.a"
3694LINKFLTKFORMS="../lib/libfltk_forms.a"
3695LINKFLTKGL="../lib/libfltk_gl.a"
3696LINKFLTKIMG="../lib/libfltk_images.a"
3697GLDEMOS="gldemos"
3698
3699LIBEXT=".a"
3700LIBNAME="../lib/libfltk.a"
3701FLLIBNAME="../lib/libfltk_forms.a"
3702GLLIBNAME="../lib/libfltk_gl.a"
3703IMGLIBNAME="../lib/libfltk_images.a"
3704CAIROLIBNAME="../lib/libfltk_cairo.a"
3705
3706LIBBASENAME="libfltk.a"
3707FLLIBBASENAME="libfltk_forms.a"
3708GLLIBBASENAME="libfltk_gl.a"
3709IMGLIBBASENAME="libfltk_images.a"
3710CAIROLIBBASENAME="libfltk_cairo.a"
3711
3712CAIRODIR=""
3713CAIROFLAGS=""
3714LINKFLTKCAIRO=""
3715FLTKCAIROOPTION=""
3716CAIROLIBS=""
3717
3718# Check whether --enable-cairoext was given.
3719if test "${enable_cairoext+set}" = set; then :
3720  enableval=$enable_cairoext;
3721fi
3722
3723# Check whether --enable-cairo was given.
3724if test "${enable_cairo+set}" = set; then :
3725  enableval=$enable_cairo;
3726fi
3727
3728
3729if test x$enable_cairoext = xyes; then
3730	  $as_echo "#define FLTK_USE_CAIRO 1" >>confdefs.h
3731
3732	  $as_echo "#define FLTK_HAVE_CAIRO 1" >>confdefs.h
3733
3734	  	  	  CAIRODIR="cairo"
3735	  CAIROFLAGS="`pkg-config --cflags cairo`"
3736	  CAIROLIBS="-lcairo -lpixman-1"
3737	  CXXFLAGS="$CAIROFLAGS $CXXFLAGS"
3738	  LINKFLTKCAIRO="../lib/libfltk_cairo.a"
3739	  FLTKCAIROOPTION="-L ../cairo -lfltk_cairo$SHAREDSUFFIX"
3740	  LIBS="$CAIROLIBS $LIBS"
3741	  	  LINKFLTK+=" $LINKFLTKCAIRO"
3742else
3743    if test x$enable_cairo = xyes; then
3744	  $as_echo "#define FLTK_HAVE_CAIRO 1" >>confdefs.h
3745
3746	  	  	  CAIRODIR="cairo"
3747	  CAIROFLAGS="`pkg-config --cflags cairo`"
3748	  CAIROLIBS="-lcairo -lpixman-1"
3749	  CXXFLAGS="$CAIROFLAGS $CXXFLAGS"
3750	  LINKFLTKCAIRO="../lib/libfltk_cairo.a"
3751	  FLTKCAIROOPTION="-L ../cairo -lfltk_cairo$SHAREDSUFFIX"
3752    fi
3753fi
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779has_abiversion=""
3780
3781# Check whether --with-abiversion was given.
3782if test "${with_abiversion+set}" = set; then :
3783  withval=$with_abiversion;
3784fi
3785
3786has_abiversion="$with_abiversion"
3787if test "$has_abiversion" = "yes" ; then
3788 has_abiversion=""
3789else
3790 if test "$has_abiversion" = "no" ; then
3791  has_abiversion=""
3792 fi
3793fi
3794if test ! "$has_abiversion" = "" ; then
3795
3796cat >>confdefs.h <<_ACEOF
3797#define FL_ABI_VERSION $has_abiversion
3798_ACEOF
3799
3800fi
3801
3802# Check whether --enable-debug was given.
3803if test "${enable_debug+set}" = set; then :
3804  enableval=$enable_debug;
3805fi
3806
3807if test x$enable_debug = xyes; then
3808    DEBUGFLAG="-g "
3809else
3810    DEBUGFLAG=""
3811fi
3812
3813# Check whether --enable-cp936 was given.
3814if test "${enable_cp936+set}" = set; then :
3815  enableval=$enable_cp936;
3816fi
3817
3818if test x$enable_cp936 = xyes; then
3819    CFLAGS="$CFLAGS -DCP936"
3820fi
3821
3822# Check whether --enable-gl was given.
3823if test "${enable_gl+set}" = set; then :
3824  enableval=$enable_gl;
3825fi
3826
3827
3828# Check whether --enable-shared was given.
3829if test "${enable_shared+set}" = set; then :
3830  enableval=$enable_shared;
3831fi
3832
3833if test x$enable_shared = xyes; then
3834    PICFLAG=1
3835    SHAREDSUFFIX=""
3836    FLUID="fluid-shared"
3837
3838    case $host_os in
3839	darwin*)
3840	    DSONAME="libfltk.$FL_DSO_VERSION.dylib"
3841	    FLDSONAME="libfltk_forms.$FL_DSO_VERSION.dylib"
3842	    GLDSONAME="libfltk_gl.$FL_DSO_VERSION.dylib"
3843	    IMGDSONAME="libfltk_images.$FL_DSO_VERSION.dylib"
3844	    CAIRODSONAME="libfltk_cairo.$FL_DSO_VERSION.dylib"
3845	    DSOCOMMAND="\$(CXX) \$(ARCHFLAGS) \$(DSOFLAGS) -dynamiclib -lc -o"
3846	    ;;
3847
3848	solaris*)
3849	    DSONAME="libfltk.so.$FL_DSO_VERSION"
3850	    FLDSONAME="libfltk_forms.so.$FL_DSO_VERSION"
3851	    GLDSONAME="libfltk_gl.so.$FL_DSO_VERSION"
3852	    IMGDSONAME="libfltk_images.so.$FL_DSO_VERSION"
3853	    CAIRODSONAME="libfltk_cairo.so.$FL_DSO_VERSION"
3854	    DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -h \$@ \$(LDLIBS) -G $DEBUGFLAG -o"
3855	    if test "x$libdir" != "x/usr/lib"; then
3856		    DSOLINK="-R$libdir"
3857	    fi
3858	    ;;
3859	hpux*)
3860	    DSONAME="libfltk.sl.$FL_DSO_VERSION"
3861	    FLDSONAME="libfltk_forms.sl.$FL_DSO_VERSION"
3862	    GLDSONAME="libfltk_gl.sl.$FL_DSO_VERSION"
3863	    IMGDSONAME="libfltk_images.sl.$FL_DSO_VERSION"
3864	    CAIRODSONAME="libfltk_cairo.sl.$FL_DSO_VERSION"
3865	    DSOCOMMAND="ld \$(DSOFLAGS) -b -z +h \$@ $DEBUGFLAG -o"
3866	    if test "x$libdir" != "x/usr/lib"; then
3867		    DSOLINK="-Wl,-rpath,$libdir"
3868	    fi
3869	    ;;
3870	irix*)
3871	    DSONAME="libfltk.so.$FL_DSO_VERSION"
3872	    FLDSONAME="libfltk_forms.so.$FL_DSO_VERSION"
3873	    GLDSONAME="libfltk_gl.so.$FL_DSO_VERSION"
3874	    IMGDSONAME="libfltk_images.so.$FL_DSO_VERSION"
3875	    CAIRODSONAME="libfltk_cairo.so.$FL_DSO_VERSION"
3876	    DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@,-set_version,sgi1.1 \$(LDLIBS) -shared $DEBUGFLAG -o"
3877	    if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib32" -a "x$libdir" != "x/usr/lib64"; then
3878		    DSOLINK="-Wl,-rpath,$libdir"
3879	    fi
3880	    ;;
3881	osf*)
3882	    DSONAME="libfltk.so.$FL_DSO_VERSION"
3883	    FLDSONAME="libfltk_forms.so.$FL_DSO_VERSION"
3884	    GLDSONAME="libfltk_gl.so.$FL_DSO_VERSION"
3885	    IMGDSONAME="libfltk_images.so.$FL_DSO_VERSION"
3886	    CAIRODSONAME="libfltk_cairo.so.$FL_DSO_VERSION"
3887	    DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@ \$(LDLIBS) -shared $DEBUGFLAG -o"
3888	    if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib32"; then
3889		    DSOLINK="-Wl,-rpath,$libdir"
3890	    fi
3891	    ;;
3892	linux* | *bsd*)
3893	    DSONAME="libfltk.so.$FL_DSO_VERSION"
3894	    FLDSONAME="libfltk_forms.so.$FL_DSO_VERSION"
3895	    GLDSONAME="libfltk_gl.so.$FL_DSO_VERSION"
3896	    IMGDSONAME="libfltk_images.so.$FL_DSO_VERSION"
3897	    CAIRODSONAME="libfltk_cairo.so.$FL_DSO_VERSION"
3898	    DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@ \$(LDLIBS) -shared -fPIC $DEBUGFLAG -o"
3899
3900	    # See if the compiler supports -fvisibility...
3901
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -fvisibility" >&5
3903$as_echo_n "checking if the compiler supports -fvisibility... " >&6; }
3904if ${ac_cv_cxx_fvisibility+:} false; then :
3905  $as_echo_n "(cached) " >&6
3906else
3907
3908		    OLDCXXFLAGS="$CXXFLAGS"
3909		    CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
3910		    ac_ext=cpp
3911ac_cpp='$CXXCPP $CPPFLAGS'
3912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3915
3916		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917/* end confdefs.h.  */
3918
3919int
3920main ()
3921{
3922
3923  ;
3924  return 0;
3925}
3926_ACEOF
3927if ac_fn_cxx_try_compile "$LINENO"; then :
3928  ac_cv_cxx_fvisibility=yes
3929else
3930  ac_cv_cxx_fvisibility=no
3931fi
3932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933		    CXXFLAGS="$OLDCXXFLAGS"
3934		    ac_ext=c
3935ac_cpp='$CPP $CPPFLAGS'
3936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939
3940
3941fi
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_fvisibility" >&5
3943$as_echo "$ac_cv_cxx_fvisibility" >&6; }
3944	    if test x"$ac_cv_cxx_fvisibility" = xyes; then
3945		OPTIM="$OPTIM -fvisibility=hidden"
3946	    fi
3947
3948	    # See if the compiler supports -fvisibility-inlines-hidden...
3949	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -fvisibility-inlines-hidden" >&5
3950$as_echo_n "checking if the compiler supports -fvisibility-inlines-hidden... " >&6; }
3951if ${ac_cv_cxx_fvisibility_inlines+:} false; then :
3952  $as_echo_n "(cached) " >&6
3953else
3954
3955		    OLDCXXFLAGS="$CXXFLAGS"
3956		    CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
3957		    ac_ext=cpp
3958ac_cpp='$CXXCPP $CPPFLAGS'
3959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3962
3963		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h.  */
3965
3966int
3967main ()
3968{
3969
3970  ;
3971  return 0;
3972}
3973_ACEOF
3974if ac_fn_cxx_try_compile "$LINENO"; then :
3975  ac_cv_cxx_fvisibility_inlines=yes
3976else
3977  ac_cv_cxx_fvisibility_inlines=no
3978fi
3979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980		    CXXFLAGS="$OLDCXXFLAGS"
3981		    ac_ext=c
3982ac_cpp='$CPP $CPPFLAGS'
3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986
3987
3988fi
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_fvisibility_inlines" >&5
3990$as_echo "$ac_cv_cxx_fvisibility_inlines" >&6; }
3991	    if test x"$ac_cv_cxx_fvisibility_inlines" = xyes; then
3992		CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
3993	    fi
3994
3995	    if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib64"; then
3996		    DSOLINK="-Wl,-rpath,$libdir"
3997	    fi
3998	    ;;
3999	aix*)
4000	    DSONAME="libfltk_s.a"
4001	    FLDSONAME="libfltk_forms_s.a"
4002	    GLDSONAME="libfltk_gl_s.a"
4003	    IMGDSONAME="libfltk_images_s.a"
4004	    CAIRODSONAME="libfltk_cairo_s.a"
4005	    DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-bexpall,-bM:SRE,-bnoentry -o"
4006	    SHAREDSUFFIX="_s"
4007	    ;;
4008	cygwin* | mingw*)
4009	    PICFLAG=0
4010	    if test x$enable_cygwin != xyes; then
4011		DSONAME="mgwfltknox-$FL_DSO_VERSION.dll"
4012		FLDSONAME="mgwfltknox_forms-$FL_DSO_VERSION.dll"
4013		GLDSONAME="mgwfltknox_gl-$FL_DSO_VERSION.dll"
4014		IMGDSONAME="mgwfltknox_images-$FL_DSO_VERSION.dll"
4015		CAIRODSONAME="mgwfltknox_cairo-$FL_DSO_VERSION.dll"
4016	    else
4017		if test x$enable_x11 = xyes; then
4018		    DSONAME="cygfltk-$FL_DSO_VERSION.dll"
4019		    FLDSONAME="cygfltk_forms-$FL_DSO_VERSION.dll"
4020		    GLDSONAME="cygfltk_gl-$FL_DSO_VERSION.dll"
4021		    IMGDSONAME="cygfltk_images-$FL_DSO_VERSION.dll"
4022		    CAIRODSONAME="cygfltk_cairo-$FL_DSO_VERSION.dll"
4023		else
4024		    DSONAME="cygfltknox-$FL_DSO_VERSION.dll"
4025		    FLDSONAME="cygfltknox_forms-$FL_DSO_VERSION.dll"
4026		    GLDSONAME="cygfltknox_gl-$FL_DSO_VERSION.dll"
4027		    IMGDSONAME="cygfltknox_images-$FL_DSO_VERSION.dll"
4028		    CAIRODSONAME="cygfltknox_cairo-$FL_DSO_VERSION.dll"
4029		fi
4030	    fi
4031	    #-----------------------------------------------------------
4032	    # -Wl,--enable-runtime-pseudo-reloc: See str 1585
4033	    # appears to be necessary for older binutils versions < 2.16
4034	    #-----------------------------------------------------------
4035	    LDFLAGS="$LDFLAGS -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc"
4036	    DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -shared \
4037		-Wl,--whole-archive -Wl,--export-all-symbols \
4038		-Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-import \
4039		-Wl,--enable-auto-image-base -o \$@"
4040	    ;;
4041	*)
4042	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Shared libraries may not be supported. Trying -shared option with compiler." >&5
4043$as_echo "$as_me: WARNING: Shared libraries may not be supported. Trying -shared option with compiler." >&2;}
4044	    DSONAME="libfltk.so.$FL_DSO_VERSION"
4045	    FLDSONAME="libfltk_forms.so.$FL_DSO_VERSION"
4046	    GLDSONAME="libfltk_gl.so.$FL_DSO_VERSION"
4047	    IMGDSONAME="libfltk_images.so.$FL_DSO_VERSION"
4048	    CAIRODSONAME="libfltk_cairo.so.$FL_DSO_VERSION"
4049	    DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@ \$(LDLIBS) -shared $DEBUGFLAG -o"
4050	    ;;
4051    esac
4052
4053    LINKSHARED="-L../src $FLTKCAIROOPTION -lfltk_images$SHAREDSUFFIX -lfltk_forms$SHAREDSUFFIX -lfltk$SHAREDSUFFIX"
4054else
4055    DSOCOMMAND="echo"
4056    DSOLINK=""
4057    DSONAME=""
4058    FLDSONAME=""
4059    GLDSONAME=""
4060    IMGDSONAME=""
4061    CAIRODSONAME=""
4062    PICFLAG=0
4063    SHAREDSUFFIX=""
4064    FLUID="fluid"
4065    LINKSHARED="$LINKFLTKCAIRO ../lib/libfltk_images.a ../lib/libfltk_forms.a ../lib/libfltk.a"
4066fi
4067
4068if test "$fltk_cross_compiling" = "yes"; then
4069  FLUID_BUILD="fluid"
4070else
4071  FLUID_BUILD="../fluid/fluid$EXEEXT"
4072fi
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087# Check whether --enable-threads was given.
4088if test "${enable_threads+set}" = set; then :
4089  enableval=$enable_threads;
4090fi
4091
4092
4093
4094# Check whether --with-optim was given.
4095if test "${with_optim+set}" = set; then :
4096  withval=$with_optim;
4097fi
4098
4099
4100
4101# Check whether --with-archflags was given.
4102if test "${with_archflags+set}" = set; then :
4103  withval=$with_archflags; ARCHFLAGS="$withval"
4104fi
4105
4106
4107# Find a good install program.  We prefer a C program (faster),
4108# so one script is as good as another.  But avoid the broken or
4109# incompatible versions:
4110# SysV /etc/install, /usr/sbin/install
4111# SunOS /usr/etc/install
4112# IRIX /sbin/install
4113# AIX /bin/install
4114# AmigaOS /C/install, which installs bootblocks on floppy discs
4115# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4116# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4117# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4118# OS/2's system install, which has a completely different semantic
4119# ./install, which can be erroneously created by make from ./install.sh.
4120# Reject install programs that cannot install multiple files.
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4122$as_echo_n "checking for a BSD-compatible install... " >&6; }
4123if test -z "$INSTALL"; then
4124if ${ac_cv_path_install+:} false; then :
4125  $as_echo_n "(cached) " >&6
4126else
4127  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130  IFS=$as_save_IFS
4131  test -z "$as_dir" && as_dir=.
4132    # Account for people who put trailing slashes in PATH elements.
4133case $as_dir/ in #((
4134  ./ | .// | /[cC]/* | \
4135  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4136  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4137  /usr/ucb/* ) ;;
4138  *)
4139    # OSF1 and SCO ODT 3.0 have their own names for install.
4140    # Don't use installbsd from OSF since it installs stuff as root
4141    # by default.
4142    for ac_prog in ginstall scoinst install; do
4143      for ac_exec_ext in '' $ac_executable_extensions; do
4144	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4145	  if test $ac_prog = install &&
4146	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4147	    # AIX install.  It has an incompatible calling convention.
4148	    :
4149	  elif test $ac_prog = install &&
4150	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4151	    # program-specific install script used by HP pwplus--don't use.
4152	    :
4153	  else
4154	    rm -rf conftest.one conftest.two conftest.dir
4155	    echo one > conftest.one
4156	    echo two > conftest.two
4157	    mkdir conftest.dir
4158	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4159	      test -s conftest.one && test -s conftest.two &&
4160	      test -s conftest.dir/conftest.one &&
4161	      test -s conftest.dir/conftest.two
4162	    then
4163	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4164	      break 3
4165	    fi
4166	  fi
4167	fi
4168      done
4169    done
4170    ;;
4171esac
4172
4173  done
4174IFS=$as_save_IFS
4175
4176rm -rf conftest.one conftest.two conftest.dir
4177
4178fi
4179  if test "${ac_cv_path_install+set}" = set; then
4180    INSTALL=$ac_cv_path_install
4181  else
4182    # As a last resort, use the slow shell script.  Don't cache a
4183    # value for INSTALL within a source directory, because that will
4184    # break other packages using the cache if that directory is
4185    # removed, or if the value is a relative name.
4186    INSTALL=$ac_install_sh
4187  fi
4188fi
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4190$as_echo "$INSTALL" >&6; }
4191
4192# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4193# It thinks the first close brace ends the variable substitution.
4194test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4195
4196test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4197
4198test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4199
4200case $host_os in
4201    osf*)
4202	INSTALL="`pwd`/install-sh -c"
4203	;;
4204esac
4205if test "$INSTALL" = "$ac_install_sh"; then
4206    # Use full path to install-sh script...
4207    INSTALL="`pwd`/install-sh -c"
4208fi
4209# Extract the first word of "nroff", so it can be a program name with args.
4210set dummy nroff; ac_word=$2
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212$as_echo_n "checking for $ac_word... " >&6; }
4213if ${ac_cv_path_NROFF+:} false; then :
4214  $as_echo_n "(cached) " >&6
4215else
4216  case $NROFF in
4217  [\\/]* | ?:[\\/]* | echo)
4218  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4219  ;;
4220  *)
4221  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222for as_dir in $PATH
4223do
4224  IFS=$as_save_IFS
4225  test -z "$as_dir" && as_dir=.
4226    for ac_exec_ext in '' $ac_executable_extensions; do
4227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230    break 2
4231  fi
4232done
4233  done
4234IFS=$as_save_IFS
4235
4236  ;;
4237esac
4238fi
4239NROFF=$ac_cv_path_NROFF
4240if test -n "$NROFF"; then
4241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
4242$as_echo "$NROFF" >&6; }
4243else
4244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245$as_echo "no" >&6; }
4246fi
4247
4248
4249if test "x$NROFF" = "x:"; then
4250    # Try groff instead of nroff...
4251    # Extract the first word of "groff", so it can be a program name with args.
4252set dummy groff; ac_word=$2
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254$as_echo_n "checking for $ac_word... " >&6; }
4255if ${ac_cv_path_GROFF+:} false; then :
4256  $as_echo_n "(cached) " >&6
4257else
4258  case $GROFF in
4259  [\\/]* | ?:[\\/]*)
4260  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4261  ;;
4262  *)
4263  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264for as_dir in $PATH
4265do
4266  IFS=$as_save_IFS
4267  test -z "$as_dir" && as_dir=.
4268    for ac_exec_ext in '' $ac_executable_extensions; do
4269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4270    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272    break 2
4273  fi
4274done
4275  done
4276IFS=$as_save_IFS
4277
4278  ;;
4279esac
4280fi
4281GROFF=$ac_cv_path_GROFF
4282if test -n "$GROFF"; then
4283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4284$as_echo "$GROFF" >&6; }
4285else
4286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287$as_echo "no" >&6; }
4288fi
4289
4290
4291    if test "x$GROFF" = "x:"; then
4292	NROFF="echo"
4293    else
4294	NROFF="$GROFF -T ascii"
4295    fi
4296fi
4297# Extract the first word of "doxygen", so it can be a program name with args.
4298set dummy doxygen; ac_word=$2
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4300$as_echo_n "checking for $ac_word... " >&6; }
4301if ${ac_cv_path_DOXYDOC+:} false; then :
4302  $as_echo_n "(cached) " >&6
4303else
4304  case $DOXYDOC in
4305  [\\/]* | ?:[\\/]*)
4306  ac_cv_path_DOXYDOC="$DOXYDOC" # Let the user override the test with a path.
4307  ;;
4308  *)
4309  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH
4311do
4312  IFS=$as_save_IFS
4313  test -z "$as_dir" && as_dir=.
4314    for ac_exec_ext in '' $ac_executable_extensions; do
4315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316    ac_cv_path_DOXYDOC="$as_dir/$ac_word$ac_exec_ext"
4317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318    break 2
4319  fi
4320done
4321  done
4322IFS=$as_save_IFS
4323
4324  ;;
4325esac
4326fi
4327DOXYDOC=$ac_cv_path_DOXYDOC
4328if test -n "$DOXYDOC"; then
4329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYDOC" >&5
4330$as_echo "$DOXYDOC" >&6; }
4331else
4332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333$as_echo "no" >&6; }
4334fi
4335
4336
4337
4338if test -n "$ac_tool_prefix"; then
4339  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4340set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342$as_echo_n "checking for $ac_word... " >&6; }
4343if ${ac_cv_prog_RANLIB+:} false; then :
4344  $as_echo_n "(cached) " >&6
4345else
4346  if test -n "$RANLIB"; then
4347  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4348else
4349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350for as_dir in $PATH
4351do
4352  IFS=$as_save_IFS
4353  test -z "$as_dir" && as_dir=.
4354    for ac_exec_ext in '' $ac_executable_extensions; do
4355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358    break 2
4359  fi
4360done
4361  done
4362IFS=$as_save_IFS
4363
4364fi
4365fi
4366RANLIB=$ac_cv_prog_RANLIB
4367if test -n "$RANLIB"; then
4368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4369$as_echo "$RANLIB" >&6; }
4370else
4371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372$as_echo "no" >&6; }
4373fi
4374
4375
4376fi
4377if test -z "$ac_cv_prog_RANLIB"; then
4378  ac_ct_RANLIB=$RANLIB
4379  # Extract the first word of "ranlib", so it can be a program name with args.
4380set dummy ranlib; ac_word=$2
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382$as_echo_n "checking for $ac_word... " >&6; }
4383if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4384  $as_echo_n "(cached) " >&6
4385else
4386  if test -n "$ac_ct_RANLIB"; then
4387  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4388else
4389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392  IFS=$as_save_IFS
4393  test -z "$as_dir" && as_dir=.
4394    for ac_exec_ext in '' $ac_executable_extensions; do
4395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396    ac_cv_prog_ac_ct_RANLIB="ranlib"
4397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398    break 2
4399  fi
4400done
4401  done
4402IFS=$as_save_IFS
4403
4404fi
4405fi
4406ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4407if test -n "$ac_ct_RANLIB"; then
4408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4409$as_echo "$ac_ct_RANLIB" >&6; }
4410else
4411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412$as_echo "no" >&6; }
4413fi
4414
4415  if test "x$ac_ct_RANLIB" = x; then
4416    RANLIB=":"
4417  else
4418    case $cross_compiling:$ac_tool_warned in
4419yes:)
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4422ac_tool_warned=yes ;;
4423esac
4424    RANLIB=$ac_ct_RANLIB
4425  fi
4426else
4427  RANLIB="$ac_cv_prog_RANLIB"
4428fi
4429
4430if test -n "$ac_tool_prefix"; then
4431  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4432set dummy ${ac_tool_prefix}ar; ac_word=$2
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434$as_echo_n "checking for $ac_word... " >&6; }
4435if ${ac_cv_path_AR+:} false; then :
4436  $as_echo_n "(cached) " >&6
4437else
4438  case $AR in
4439  [\\/]* | ?:[\\/]*)
4440  ac_cv_path_AR="$AR" # Let the user override the test with a path.
4441  ;;
4442  *)
4443  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444for as_dir in $PATH
4445do
4446  IFS=$as_save_IFS
4447  test -z "$as_dir" && as_dir=.
4448    for ac_exec_ext in '' $ac_executable_extensions; do
4449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452    break 2
4453  fi
4454done
4455  done
4456IFS=$as_save_IFS
4457
4458  ;;
4459esac
4460fi
4461AR=$ac_cv_path_AR
4462if test -n "$AR"; then
4463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4464$as_echo "$AR" >&6; }
4465else
4466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467$as_echo "no" >&6; }
4468fi
4469
4470
4471fi
4472if test -z "$ac_cv_path_AR"; then
4473  ac_pt_AR=$AR
4474  # Extract the first word of "ar", so it can be a program name with args.
4475set dummy ar; ac_word=$2
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477$as_echo_n "checking for $ac_word... " >&6; }
4478if ${ac_cv_path_ac_pt_AR+:} false; then :
4479  $as_echo_n "(cached) " >&6
4480else
4481  case $ac_pt_AR in
4482  [\\/]* | ?:[\\/]*)
4483  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4484  ;;
4485  *)
4486  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487for as_dir in $PATH
4488do
4489  IFS=$as_save_IFS
4490  test -z "$as_dir" && as_dir=.
4491    for ac_exec_ext in '' $ac_executable_extensions; do
4492  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
4494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495    break 2
4496  fi
4497done
4498  done
4499IFS=$as_save_IFS
4500
4501  ;;
4502esac
4503fi
4504ac_pt_AR=$ac_cv_path_ac_pt_AR
4505if test -n "$ac_pt_AR"; then
4506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4507$as_echo "$ac_pt_AR" >&6; }
4508else
4509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510$as_echo "no" >&6; }
4511fi
4512
4513  if test "x$ac_pt_AR" = x; then
4514    AR=""
4515  else
4516    case $cross_compiling:$ac_tool_warned in
4517yes:)
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4520ac_tool_warned=yes ;;
4521esac
4522    AR=$ac_pt_AR
4523  fi
4524else
4525  AR="$ac_cv_path_AR"
4526fi
4527
4528
4529if test "x$AR" = "x:"; then
4530    as_fn_error $? "Configure could not find the library archiver, aborting." "$LINENO" 5
4531fi
4532
4533if test "x$RANLIB" != "x:"; then
4534    LIBCOMMAND="$AR cr"
4535else
4536    LIBCOMMAND="$AR crs"
4537fi
4538
4539
4540
4541if test -n "$ac_tool_prefix"; then
4542  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4543set dummy ${ac_tool_prefix}windres; ac_word=$2
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545$as_echo_n "checking for $ac_word... " >&6; }
4546if ${ac_cv_path_RC+:} false; then :
4547  $as_echo_n "(cached) " >&6
4548else
4549  case $RC in
4550  [\\/]* | ?:[\\/]*)
4551  ac_cv_path_RC="$RC" # Let the user override the test with a path.
4552  ;;
4553  *)
4554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557  IFS=$as_save_IFS
4558  test -z "$as_dir" && as_dir=.
4559    for ac_exec_ext in '' $ac_executable_extensions; do
4560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561    ac_cv_path_RC="$as_dir/$ac_word$ac_exec_ext"
4562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563    break 2
4564  fi
4565done
4566  done
4567IFS=$as_save_IFS
4568
4569  ;;
4570esac
4571fi
4572RC=$ac_cv_path_RC
4573if test -n "$RC"; then
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
4575$as_echo "$RC" >&6; }
4576else
4577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578$as_echo "no" >&6; }
4579fi
4580
4581
4582fi
4583if test -z "$ac_cv_path_RC"; then
4584  ac_pt_RC=$RC
4585  # Extract the first word of "windres", so it can be a program name with args.
4586set dummy windres; ac_word=$2
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588$as_echo_n "checking for $ac_word... " >&6; }
4589if ${ac_cv_path_ac_pt_RC+:} false; then :
4590  $as_echo_n "(cached) " >&6
4591else
4592  case $ac_pt_RC in
4593  [\\/]* | ?:[\\/]*)
4594  ac_cv_path_ac_pt_RC="$ac_pt_RC" # Let the user override the test with a path.
4595  ;;
4596  *)
4597  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH
4599do
4600  IFS=$as_save_IFS
4601  test -z "$as_dir" && as_dir=.
4602    for ac_exec_ext in '' $ac_executable_extensions; do
4603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604    ac_cv_path_ac_pt_RC="$as_dir/$ac_word$ac_exec_ext"
4605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606    break 2
4607  fi
4608done
4609  done
4610IFS=$as_save_IFS
4611
4612  ;;
4613esac
4614fi
4615ac_pt_RC=$ac_cv_path_ac_pt_RC
4616if test -n "$ac_pt_RC"; then
4617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RC" >&5
4618$as_echo "$ac_pt_RC" >&6; }
4619else
4620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621$as_echo "no" >&6; }
4622fi
4623
4624  if test "x$ac_pt_RC" = x; then
4625    RC=""
4626  else
4627    case $cross_compiling:$ac_tool_warned in
4628yes:)
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4631ac_tool_warned=yes ;;
4632esac
4633    RC=$ac_pt_RC
4634  fi
4635else
4636  RC="$ac_cv_path_RC"
4637fi
4638
4639
4640
4641ac_ext=c
4642ac_cpp='$CPP $CPPFLAGS'
4643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4647$as_echo_n "checking how to run the C preprocessor... " >&6; }
4648# On Suns, sometimes $CPP names a directory.
4649if test -n "$CPP" && test -d "$CPP"; then
4650  CPP=
4651fi
4652if test -z "$CPP"; then
4653  if ${ac_cv_prog_CPP+:} false; then :
4654  $as_echo_n "(cached) " >&6
4655else
4656      # Double quotes because CPP needs to be expanded
4657    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4658    do
4659      ac_preproc_ok=false
4660for ac_c_preproc_warn_flag in '' yes
4661do
4662  # Use a header file that comes with gcc, so configuring glibc
4663  # with a fresh cross-compiler works.
4664  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665  # <limits.h> exists even on freestanding compilers.
4666  # On the NeXT, cc -E runs the code through the compiler's parser,
4667  # not just through cpp. "Syntax error" is here to catch this case.
4668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h.  */
4670#ifdef __STDC__
4671# include <limits.h>
4672#else
4673# include <assert.h>
4674#endif
4675		     Syntax error
4676_ACEOF
4677if ac_fn_c_try_cpp "$LINENO"; then :
4678
4679else
4680  # Broken: fails on valid input.
4681continue
4682fi
4683rm -f conftest.err conftest.i conftest.$ac_ext
4684
4685  # OK, works on sane cases.  Now check whether nonexistent headers
4686  # can be detected and how.
4687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688/* end confdefs.h.  */
4689#include <ac_nonexistent.h>
4690_ACEOF
4691if ac_fn_c_try_cpp "$LINENO"; then :
4692  # Broken: success on invalid input.
4693continue
4694else
4695  # Passes both tests.
4696ac_preproc_ok=:
4697break
4698fi
4699rm -f conftest.err conftest.i conftest.$ac_ext
4700
4701done
4702# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4703rm -f conftest.i conftest.err conftest.$ac_ext
4704if $ac_preproc_ok; then :
4705  break
4706fi
4707
4708    done
4709    ac_cv_prog_CPP=$CPP
4710
4711fi
4712  CPP=$ac_cv_prog_CPP
4713else
4714  ac_cv_prog_CPP=$CPP
4715fi
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4717$as_echo "$CPP" >&6; }
4718ac_preproc_ok=false
4719for ac_c_preproc_warn_flag in '' yes
4720do
4721  # Use a header file that comes with gcc, so configuring glibc
4722  # with a fresh cross-compiler works.
4723  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4724  # <limits.h> exists even on freestanding compilers.
4725  # On the NeXT, cc -E runs the code through the compiler's parser,
4726  # not just through cpp. "Syntax error" is here to catch this case.
4727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728/* end confdefs.h.  */
4729#ifdef __STDC__
4730# include <limits.h>
4731#else
4732# include <assert.h>
4733#endif
4734		     Syntax error
4735_ACEOF
4736if ac_fn_c_try_cpp "$LINENO"; then :
4737
4738else
4739  # Broken: fails on valid input.
4740continue
4741fi
4742rm -f conftest.err conftest.i conftest.$ac_ext
4743
4744  # OK, works on sane cases.  Now check whether nonexistent headers
4745  # can be detected and how.
4746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747/* end confdefs.h.  */
4748#include <ac_nonexistent.h>
4749_ACEOF
4750if ac_fn_c_try_cpp "$LINENO"; then :
4751  # Broken: success on invalid input.
4752continue
4753else
4754  # Passes both tests.
4755ac_preproc_ok=:
4756break
4757fi
4758rm -f conftest.err conftest.i conftest.$ac_ext
4759
4760done
4761# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4762rm -f conftest.i conftest.err conftest.$ac_ext
4763if $ac_preproc_ok; then :
4764
4765else
4766  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4768as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4769See \`config.log' for more details" "$LINENO" 5; }
4770fi
4771
4772ac_ext=c
4773ac_cpp='$CPP $CPPFLAGS'
4774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777
4778
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4780$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4781if ${ac_cv_path_GREP+:} false; then :
4782  $as_echo_n "(cached) " >&6
4783else
4784  if test -z "$GREP"; then
4785  ac_path_GREP_found=false
4786  # Loop through the user's path and test for each of PROGNAME-LIST
4787  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4789do
4790  IFS=$as_save_IFS
4791  test -z "$as_dir" && as_dir=.
4792    for ac_prog in grep ggrep; do
4793    for ac_exec_ext in '' $ac_executable_extensions; do
4794      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4795      as_fn_executable_p "$ac_path_GREP" || continue
4796# Check for GNU ac_path_GREP and select it if it is found.
4797  # Check for GNU $ac_path_GREP
4798case `"$ac_path_GREP" --version 2>&1` in
4799*GNU*)
4800  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4801*)
4802  ac_count=0
4803  $as_echo_n 0123456789 >"conftest.in"
4804  while :
4805  do
4806    cat "conftest.in" "conftest.in" >"conftest.tmp"
4807    mv "conftest.tmp" "conftest.in"
4808    cp "conftest.in" "conftest.nl"
4809    $as_echo 'GREP' >> "conftest.nl"
4810    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4811    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4812    as_fn_arith $ac_count + 1 && ac_count=$as_val
4813    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4814      # Best one so far, save it but keep looking for a better one
4815      ac_cv_path_GREP="$ac_path_GREP"
4816      ac_path_GREP_max=$ac_count
4817    fi
4818    # 10*(2^10) chars as input seems more than enough
4819    test $ac_count -gt 10 && break
4820  done
4821  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4822esac
4823
4824      $ac_path_GREP_found && break 3
4825    done
4826  done
4827  done
4828IFS=$as_save_IFS
4829  if test -z "$ac_cv_path_GREP"; then
4830    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4831  fi
4832else
4833  ac_cv_path_GREP=$GREP
4834fi
4835
4836fi
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4838$as_echo "$ac_cv_path_GREP" >&6; }
4839 GREP="$ac_cv_path_GREP"
4840
4841
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4843$as_echo_n "checking for egrep... " >&6; }
4844if ${ac_cv_path_EGREP+:} false; then :
4845  $as_echo_n "(cached) " >&6
4846else
4847  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4848   then ac_cv_path_EGREP="$GREP -E"
4849   else
4850     if test -z "$EGREP"; then
4851  ac_path_EGREP_found=false
4852  # Loop through the user's path and test for each of PROGNAME-LIST
4853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4855do
4856  IFS=$as_save_IFS
4857  test -z "$as_dir" && as_dir=.
4858    for ac_prog in egrep; do
4859    for ac_exec_ext in '' $ac_executable_extensions; do
4860      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4861      as_fn_executable_p "$ac_path_EGREP" || continue
4862# Check for GNU ac_path_EGREP and select it if it is found.
4863  # Check for GNU $ac_path_EGREP
4864case `"$ac_path_EGREP" --version 2>&1` in
4865*GNU*)
4866  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4867*)
4868  ac_count=0
4869  $as_echo_n 0123456789 >"conftest.in"
4870  while :
4871  do
4872    cat "conftest.in" "conftest.in" >"conftest.tmp"
4873    mv "conftest.tmp" "conftest.in"
4874    cp "conftest.in" "conftest.nl"
4875    $as_echo 'EGREP' >> "conftest.nl"
4876    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4877    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4878    as_fn_arith $ac_count + 1 && ac_count=$as_val
4879    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4880      # Best one so far, save it but keep looking for a better one
4881      ac_cv_path_EGREP="$ac_path_EGREP"
4882      ac_path_EGREP_max=$ac_count
4883    fi
4884    # 10*(2^10) chars as input seems more than enough
4885    test $ac_count -gt 10 && break
4886  done
4887  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4888esac
4889
4890      $ac_path_EGREP_found && break 3
4891    done
4892  done
4893  done
4894IFS=$as_save_IFS
4895  if test -z "$ac_cv_path_EGREP"; then
4896    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4897  fi
4898else
4899  ac_cv_path_EGREP=$EGREP
4900fi
4901
4902   fi
4903fi
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4905$as_echo "$ac_cv_path_EGREP" >&6; }
4906 EGREP="$ac_cv_path_EGREP"
4907
4908
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4910$as_echo_n "checking for ANSI C header files... " >&6; }
4911if ${ac_cv_header_stdc+:} false; then :
4912  $as_echo_n "(cached) " >&6
4913else
4914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915/* end confdefs.h.  */
4916#include <stdlib.h>
4917#include <stdarg.h>
4918#include <string.h>
4919#include <float.h>
4920
4921int
4922main ()
4923{
4924
4925  ;
4926  return 0;
4927}
4928_ACEOF
4929if ac_fn_c_try_compile "$LINENO"; then :
4930  ac_cv_header_stdc=yes
4931else
4932  ac_cv_header_stdc=no
4933fi
4934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935
4936if test $ac_cv_header_stdc = yes; then
4937  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939/* end confdefs.h.  */
4940#include <string.h>
4941
4942_ACEOF
4943if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944  $EGREP "memchr" >/dev/null 2>&1; then :
4945
4946else
4947  ac_cv_header_stdc=no
4948fi
4949rm -f conftest*
4950
4951fi
4952
4953if test $ac_cv_header_stdc = yes; then
4954  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956/* end confdefs.h.  */
4957#include <stdlib.h>
4958
4959_ACEOF
4960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4961  $EGREP "free" >/dev/null 2>&1; then :
4962
4963else
4964  ac_cv_header_stdc=no
4965fi
4966rm -f conftest*
4967
4968fi
4969
4970if test $ac_cv_header_stdc = yes; then
4971  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4972  if test "$cross_compiling" = yes; then :
4973  :
4974else
4975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976/* end confdefs.h.  */
4977#include <ctype.h>
4978#include <stdlib.h>
4979#if ((' ' & 0x0FF) == 0x020)
4980# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4981# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4982#else
4983# define ISLOWER(c) \
4984		   (('a' <= (c) && (c) <= 'i') \
4985		     || ('j' <= (c) && (c) <= 'r') \
4986		     || ('s' <= (c) && (c) <= 'z'))
4987# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4988#endif
4989
4990#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4991int
4992main ()
4993{
4994  int i;
4995  for (i = 0; i < 256; i++)
4996    if (XOR (islower (i), ISLOWER (i))
4997	|| toupper (i) != TOUPPER (i))
4998      return 2;
4999  return 0;
5000}
5001_ACEOF
5002if ac_fn_c_try_run "$LINENO"; then :
5003
5004else
5005  ac_cv_header_stdc=no
5006fi
5007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5008  conftest.$ac_objext conftest.beam conftest.$ac_ext
5009fi
5010
5011fi
5012fi
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5014$as_echo "$ac_cv_header_stdc" >&6; }
5015if test $ac_cv_header_stdc = yes; then
5016
5017$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5018
5019fi
5020
5021# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5022for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5023		  inttypes.h stdint.h unistd.h
5024do :
5025  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5026ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5027"
5028if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5029  cat >>confdefs.h <<_ACEOF
5030#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5031_ACEOF
5032
5033fi
5034
5035done
5036
5037
5038# The cast to long int works around a bug in the HP C Compiler
5039# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5040# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5041# This bug is HP SR number 8606223364.
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5043$as_echo_n "checking size of short... " >&6; }
5044if ${ac_cv_sizeof_short+:} false; then :
5045  $as_echo_n "(cached) " >&6
5046else
5047  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5048
5049else
5050  if test "$ac_cv_type_short" = yes; then
5051     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5053as_fn_error 77 "cannot compute sizeof (short)
5054See \`config.log' for more details" "$LINENO" 5; }
5055   else
5056     ac_cv_sizeof_short=0
5057   fi
5058fi
5059
5060fi
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5062$as_echo "$ac_cv_sizeof_short" >&6; }
5063
5064
5065
5066cat >>confdefs.h <<_ACEOF
5067#define SIZEOF_SHORT $ac_cv_sizeof_short
5068_ACEOF
5069
5070
5071# The cast to long int works around a bug in the HP C Compiler
5072# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5073# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5074# This bug is HP SR number 8606223364.
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5076$as_echo_n "checking size of int... " >&6; }
5077if ${ac_cv_sizeof_int+:} false; then :
5078  $as_echo_n "(cached) " >&6
5079else
5080  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5081
5082else
5083  if test "$ac_cv_type_int" = yes; then
5084     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5086as_fn_error 77 "cannot compute sizeof (int)
5087See \`config.log' for more details" "$LINENO" 5; }
5088   else
5089     ac_cv_sizeof_int=0
5090   fi
5091fi
5092
5093fi
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5095$as_echo "$ac_cv_sizeof_int" >&6; }
5096
5097
5098
5099cat >>confdefs.h <<_ACEOF
5100#define SIZEOF_INT $ac_cv_sizeof_int
5101_ACEOF
5102
5103
5104# The cast to long int works around a bug in the HP C Compiler
5105# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5106# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5107# This bug is HP SR number 8606223364.
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5109$as_echo_n "checking size of long... " >&6; }
5110if ${ac_cv_sizeof_long+:} false; then :
5111  $as_echo_n "(cached) " >&6
5112else
5113  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5114
5115else
5116  if test "$ac_cv_type_long" = yes; then
5117     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5119as_fn_error 77 "cannot compute sizeof (long)
5120See \`config.log' for more details" "$LINENO" 5; }
5121   else
5122     ac_cv_sizeof_long=0
5123   fi
5124fi
5125
5126fi
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5128$as_echo "$ac_cv_sizeof_long" >&6; }
5129
5130
5131
5132cat >>confdefs.h <<_ACEOF
5133#define SIZEOF_LONG $ac_cv_sizeof_long
5134_ACEOF
5135
5136
5137if test $ac_cv_sizeof_short -eq 2; then
5138    $as_echo "#define U16 unsigned short" >>confdefs.h
5139
5140fi
5141if test $ac_cv_sizeof_int -eq 4; then
5142    $as_echo "#define U32 unsigned" >>confdefs.h
5143
5144else
5145    if test $ac_cv_sizeof_long -eq 4; then
5146	$as_echo "#define U32 unsigned long" >>confdefs.h
5147
5148    fi
5149fi
5150case $host_os in
5151    darwin*)
5152	;;
5153    *)
5154	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5155$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5156if ${ac_cv_c_bigendian+:} false; then :
5157  $as_echo_n "(cached) " >&6
5158else
5159  ac_cv_c_bigendian=unknown
5160    # See if we're dealing with a universal compiler.
5161    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h.  */
5163#ifndef __APPLE_CC__
5164	       not a universal capable compiler
5165	     #endif
5166	     typedef int dummy;
5167
5168_ACEOF
5169if ac_fn_c_try_compile "$LINENO"; then :
5170
5171	# Check for potential -arch flags.  It is not universal unless
5172	# there are at least two -arch flags with different values.
5173	ac_arch=
5174	ac_prev=
5175	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5176	 if test -n "$ac_prev"; then
5177	   case $ac_word in
5178	     i?86 | x86_64 | ppc | ppc64)
5179	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5180		 ac_arch=$ac_word
5181	       else
5182		 ac_cv_c_bigendian=universal
5183		 break
5184	       fi
5185	       ;;
5186	   esac
5187	   ac_prev=
5188	 elif test "x$ac_word" = "x-arch"; then
5189	   ac_prev=arch
5190	 fi
5191       done
5192fi
5193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194    if test $ac_cv_c_bigendian = unknown; then
5195      # See if sys/param.h defines the BYTE_ORDER macro.
5196      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197/* end confdefs.h.  */
5198#include <sys/types.h>
5199	     #include <sys/param.h>
5200
5201int
5202main ()
5203{
5204#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5205		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5206		     && LITTLE_ENDIAN)
5207	      bogus endian macros
5208	     #endif
5209
5210  ;
5211  return 0;
5212}
5213_ACEOF
5214if ac_fn_c_try_compile "$LINENO"; then :
5215  # It does; now see whether it defined to BIG_ENDIAN or not.
5216	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217/* end confdefs.h.  */
5218#include <sys/types.h>
5219		#include <sys/param.h>
5220
5221int
5222main ()
5223{
5224#if BYTE_ORDER != BIG_ENDIAN
5225		 not big endian
5226		#endif
5227
5228  ;
5229  return 0;
5230}
5231_ACEOF
5232if ac_fn_c_try_compile "$LINENO"; then :
5233  ac_cv_c_bigendian=yes
5234else
5235  ac_cv_c_bigendian=no
5236fi
5237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238fi
5239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240    fi
5241    if test $ac_cv_c_bigendian = unknown; then
5242      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5243      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244/* end confdefs.h.  */
5245#include <limits.h>
5246
5247int
5248main ()
5249{
5250#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5251	      bogus endian macros
5252	     #endif
5253
5254  ;
5255  return 0;
5256}
5257_ACEOF
5258if ac_fn_c_try_compile "$LINENO"; then :
5259  # It does; now see whether it defined to _BIG_ENDIAN or not.
5260	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261/* end confdefs.h.  */
5262#include <limits.h>
5263
5264int
5265main ()
5266{
5267#ifndef _BIG_ENDIAN
5268		 not big endian
5269		#endif
5270
5271  ;
5272  return 0;
5273}
5274_ACEOF
5275if ac_fn_c_try_compile "$LINENO"; then :
5276  ac_cv_c_bigendian=yes
5277else
5278  ac_cv_c_bigendian=no
5279fi
5280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281fi
5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283    fi
5284    if test $ac_cv_c_bigendian = unknown; then
5285      # Compile a test program.
5286      if test "$cross_compiling" = yes; then :
5287  # Try to guess by grepping values from an object file.
5288	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289/* end confdefs.h.  */
5290short int ascii_mm[] =
5291		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5292		short int ascii_ii[] =
5293		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5294		int use_ascii (int i) {
5295		  return ascii_mm[i] + ascii_ii[i];
5296		}
5297		short int ebcdic_ii[] =
5298		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5299		short int ebcdic_mm[] =
5300		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5301		int use_ebcdic (int i) {
5302		  return ebcdic_mm[i] + ebcdic_ii[i];
5303		}
5304		extern int foo;
5305
5306int
5307main ()
5308{
5309return use_ascii (foo) == use_ebcdic (foo);
5310  ;
5311  return 0;
5312}
5313_ACEOF
5314if ac_fn_c_try_compile "$LINENO"; then :
5315  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5316	      ac_cv_c_bigendian=yes
5317	    fi
5318	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5319	      if test "$ac_cv_c_bigendian" = unknown; then
5320		ac_cv_c_bigendian=no
5321	      else
5322		# finding both strings is unlikely to happen, but who knows?
5323		ac_cv_c_bigendian=unknown
5324	      fi
5325	    fi
5326fi
5327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328else
5329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h.  */
5331$ac_includes_default
5332int
5333main ()
5334{
5335
5336	     /* Are we little or big endian?  From Harbison&Steele.  */
5337	     union
5338	     {
5339	       long int l;
5340	       char c[sizeof (long int)];
5341	     } u;
5342	     u.l = 1;
5343	     return u.c[sizeof (long int) - 1] == 1;
5344
5345  ;
5346  return 0;
5347}
5348_ACEOF
5349if ac_fn_c_try_run "$LINENO"; then :
5350  ac_cv_c_bigendian=no
5351else
5352  ac_cv_c_bigendian=yes
5353fi
5354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5355  conftest.$ac_objext conftest.beam conftest.$ac_ext
5356fi
5357
5358    fi
5359fi
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5361$as_echo "$ac_cv_c_bigendian" >&6; }
5362 case $ac_cv_c_bigendian in #(
5363   yes)
5364     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5365;; #(
5366   no)
5367      ;; #(
5368   universal)
5369
5370$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5371
5372     ;; #(
5373   *)
5374     as_fn_error $? "unknown endianness
5375 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5376 esac
5377
5378
5379	if test $ac_cv_sizeof_int -eq 8; then
5380		$as_echo "#define U64 unsigned" >>confdefs.h
5381
5382	else
5383		if test $ac_cv_sizeof_long -eq 8; then
5384			$as_echo "#define U64 unsigned long" >>confdefs.h
5385
5386		fi
5387	fi
5388	;;
5389esac
5390
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
5392$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
5393if ${ac_cv_cxx_bool+:} false; then :
5394  $as_echo_n "(cached) " >&6
5395else
5396
5397	ac_ext=cpp
5398ac_cpp='$CXXCPP $CPPFLAGS'
5399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5402
5403	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404/* end confdefs.h.  */
5405
5406		int f(int  x){return 1;}
5407		int f(char x){return 1;}
5408		int f(bool x){return 1;}
5409
5410int
5411main ()
5412{
5413
5414		bool b = true;
5415		return f(b);
5416
5417  ;
5418  return 0;
5419}
5420_ACEOF
5421if ac_fn_cxx_try_compile "$LINENO"; then :
5422  ac_cv_cxx_bool=yes
5423else
5424  ac_cv_cxx_bool=no
5425fi
5426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427	ac_ext=c
5428ac_cpp='$CPP $CPPFLAGS'
5429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432
5433
5434fi
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_bool" >&5
5436$as_echo "$ac_cv_cxx_bool" >&6; }
5437
5438if test "$ac_cv_cxx_bool" != yes; then
5439    CXXFLAGS="-Dbool=char -Dfalse=0 -Dtrue=1 $CXXFLAGS"
5440fi
5441
5442ac_header_dirent=no
5443for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5444  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5446$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5447if eval \${$as_ac_Header+:} false; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452#include <sys/types.h>
5453#include <$ac_hdr>
5454
5455int
5456main ()
5457{
5458if ((DIR *) 0)
5459return 0;
5460  ;
5461  return 0;
5462}
5463_ACEOF
5464if ac_fn_c_try_compile "$LINENO"; then :
5465  eval "$as_ac_Header=yes"
5466else
5467  eval "$as_ac_Header=no"
5468fi
5469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470fi
5471eval ac_res=\$$as_ac_Header
5472	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5473$as_echo "$ac_res" >&6; }
5474if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5475  cat >>confdefs.h <<_ACEOF
5476#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5477_ACEOF
5478
5479ac_header_dirent=$ac_hdr; break
5480fi
5481
5482done
5483# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5484if test $ac_header_dirent = dirent.h; then
5485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5486$as_echo_n "checking for library containing opendir... " >&6; }
5487if ${ac_cv_search_opendir+:} false; then :
5488  $as_echo_n "(cached) " >&6
5489else
5490  ac_func_search_save_LIBS=$LIBS
5491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492/* end confdefs.h.  */
5493
5494/* Override any GCC internal prototype to avoid an error.
5495   Use char because int might match the return type of a GCC
5496   builtin and then its argument prototype would still apply.  */
5497#ifdef __cplusplus
5498extern "C"
5499#endif
5500char opendir ();
5501int
5502main ()
5503{
5504return opendir ();
5505  ;
5506  return 0;
5507}
5508_ACEOF
5509for ac_lib in '' dir; do
5510  if test -z "$ac_lib"; then
5511    ac_res="none required"
5512  else
5513    ac_res=-l$ac_lib
5514    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5515  fi
5516  if ac_fn_c_try_link "$LINENO"; then :
5517  ac_cv_search_opendir=$ac_res
5518fi
5519rm -f core conftest.err conftest.$ac_objext \
5520    conftest$ac_exeext
5521  if ${ac_cv_search_opendir+:} false; then :
5522  break
5523fi
5524done
5525if ${ac_cv_search_opendir+:} false; then :
5526
5527else
5528  ac_cv_search_opendir=no
5529fi
5530rm conftest.$ac_ext
5531LIBS=$ac_func_search_save_LIBS
5532fi
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5534$as_echo "$ac_cv_search_opendir" >&6; }
5535ac_res=$ac_cv_search_opendir
5536if test "$ac_res" != no; then :
5537  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5538
5539fi
5540
5541else
5542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5543$as_echo_n "checking for library containing opendir... " >&6; }
5544if ${ac_cv_search_opendir+:} false; then :
5545  $as_echo_n "(cached) " >&6
5546else
5547  ac_func_search_save_LIBS=$LIBS
5548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h.  */
5550
5551/* Override any GCC internal prototype to avoid an error.
5552   Use char because int might match the return type of a GCC
5553   builtin and then its argument prototype would still apply.  */
5554#ifdef __cplusplus
5555extern "C"
5556#endif
5557char opendir ();
5558int
5559main ()
5560{
5561return opendir ();
5562  ;
5563  return 0;
5564}
5565_ACEOF
5566for ac_lib in '' x; do
5567  if test -z "$ac_lib"; then
5568    ac_res="none required"
5569  else
5570    ac_res=-l$ac_lib
5571    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5572  fi
5573  if ac_fn_c_try_link "$LINENO"; then :
5574  ac_cv_search_opendir=$ac_res
5575fi
5576rm -f core conftest.err conftest.$ac_objext \
5577    conftest$ac_exeext
5578  if ${ac_cv_search_opendir+:} false; then :
5579  break
5580fi
5581done
5582if ${ac_cv_search_opendir+:} false; then :
5583
5584else
5585  ac_cv_search_opendir=no
5586fi
5587rm conftest.$ac_ext
5588LIBS=$ac_func_search_save_LIBS
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5591$as_echo "$ac_cv_search_opendir" >&6; }
5592ac_res=$ac_cv_search_opendir
5593if test "$ac_res" != no; then :
5594  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5595
5596fi
5597
5598fi
5599
5600for ac_header in sys/select.h sys/stdtypes.h
5601do :
5602  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5603ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5604if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5605  cat >>confdefs.h <<_ACEOF
5606#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5607_ACEOF
5608
5609fi
5610
5611done
5612
5613
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have the POSIX compatible scandir() prototype" >&5
5615$as_echo_n "checking whether we have the POSIX compatible scandir() prototype... " >&6; }
5616if ${ac_cv_cxx_scandir_posix+:} false; then :
5617  $as_echo_n "(cached) " >&6
5618else
5619
5620	ac_ext=cpp
5621ac_cpp='$CXXCPP $CPPFLAGS'
5622ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5623ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5624ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5625
5626	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627/* end confdefs.h.  */
5628#include <dirent.h>
5629		  int func (const char *d, dirent ***list, void *sort) {
5630		    int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
5631		    return n;
5632		  }
5633
5634int
5635main ()
5636{
5637
5638
5639  ;
5640  return 0;
5641}
5642_ACEOF
5643if ac_fn_cxx_try_compile "$LINENO"; then :
5644  ac_cv_cxx_scandir_posix=yes
5645else
5646  ac_cv_cxx_scandir_posix=no
5647fi
5648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649	ac_ext=c
5650ac_cpp='$CPP $CPPFLAGS'
5651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654
5655
5656fi
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_scandir_posix" >&5
5658$as_echo "$ac_cv_cxx_scandir_posix" >&6; }
5659
5660if test "$ac_cv_cxx_scandir_posix" = yes; then
5661    $as_echo "#define HAVE_SCANDIR 1" >>confdefs.h
5662
5663    $as_echo "#define HAVE_SCANDIR_POSIX 1" >>confdefs.h
5664
5665else
5666    ac_fn_c_check_func "$LINENO" "scandir" "ac_cv_func_scandir"
5667if test "x$ac_cv_func_scandir" = xyes; then :
5668
5669	case $host_os in
5670	    solaris* | *qnx*)
5671		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using $host_os scandir emulation function." >&5
5672$as_echo "$as_me: WARNING: Not using $host_os scandir emulation function." >&2;}
5673		;;
5674	    *)
5675		$as_echo "#define HAVE_SCANDIR 1" >>confdefs.h
5676
5677		;;
5678	esac
5679fi
5680
5681fi
5682
5683ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
5684if test "x$ac_cv_func_vsnprintf" = xyes; then :
5685
5686    case $host_os in
5687	hpux1020)
5688	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using built-in vsnprintf function because you are running HP-UX 10.20." >&5
5689$as_echo "$as_me: WARNING: Not using built-in vsnprintf function because you are running HP-UX 10.20." >&2;}
5690	    ;;
5691	osf4)
5692	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using built-in vsnprintf function because you are running Tru64 4.0." >&5
5693$as_echo "$as_me: WARNING: Not using built-in vsnprintf function because you are running Tru64 4.0." >&2;}
5694	    ;;
5695	*)
5696	    $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
5697
5698	    ;;
5699    esac
5700fi
5701
5702ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
5703if test "x$ac_cv_func_snprintf" = xyes; then :
5704
5705    case $host_os in
5706	hpux1020)
5707	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using built-in snprintf function because you are running HP-UX 10.20." >&5
5708$as_echo "$as_me: WARNING: Not using built-in snprintf function because you are running HP-UX 10.20." >&2;}
5709	    ;;
5710	osf4)
5711	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using built-in snprintf function because you are running Tru64 4.0." >&5
5712$as_echo "$as_me: WARNING: Not using built-in snprintf function because you are running Tru64 4.0." >&2;}
5713	    ;;
5714	*)
5715	    $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
5716
5717	    ;;
5718    esac
5719fi
5720
5721for ac_header in strings.h
5722do :
5723  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5724if test "x$ac_cv_header_strings_h" = xyes; then :
5725  cat >>confdefs.h <<_ACEOF
5726#define HAVE_STRINGS_H 1
5727_ACEOF
5728
5729fi
5730
5731done
5732
5733for ac_func in strcasecmp strlcat strlcpy
5734do :
5735  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5736ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5737if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5738  cat >>confdefs.h <<_ACEOF
5739#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5740_ACEOF
5741
5742fi
5743done
5744
5745
5746for ac_header in locale.h
5747do :
5748  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5749if test "x$ac_cv_header_locale_h" = xyes; then :
5750  cat >>confdefs.h <<_ACEOF
5751#define HAVE_LOCALE_H 1
5752_ACEOF
5753
5754fi
5755
5756done
5757
5758for ac_func in localeconv
5759do :
5760  ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
5761if test "x$ac_cv_func_localeconv" = xyes; then :
5762  cat >>confdefs.h <<_ACEOF
5763#define HAVE_LOCALECONV 1
5764_ACEOF
5765
5766fi
5767done
5768
5769
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
5771$as_echo_n "checking for library containing pow... " >&6; }
5772if ${ac_cv_search_pow+:} false; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775  ac_func_search_save_LIBS=$LIBS
5776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777/* end confdefs.h.  */
5778
5779/* Override any GCC internal prototype to avoid an error.
5780   Use char because int might match the return type of a GCC
5781   builtin and then its argument prototype would still apply.  */
5782#ifdef __cplusplus
5783extern "C"
5784#endif
5785char pow ();
5786int
5787main ()
5788{
5789return pow ();
5790  ;
5791  return 0;
5792}
5793_ACEOF
5794for ac_lib in '' m; do
5795  if test -z "$ac_lib"; then
5796    ac_res="none required"
5797  else
5798    ac_res=-l$ac_lib
5799    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5800  fi
5801  if ac_fn_c_try_link "$LINENO"; then :
5802  ac_cv_search_pow=$ac_res
5803fi
5804rm -f core conftest.err conftest.$ac_objext \
5805    conftest$ac_exeext
5806  if ${ac_cv_search_pow+:} false; then :
5807  break
5808fi
5809done
5810if ${ac_cv_search_pow+:} false; then :
5811
5812else
5813  ac_cv_search_pow=no
5814fi
5815rm conftest.$ac_ext
5816LIBS=$ac_func_search_save_LIBS
5817fi
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
5819$as_echo "$ac_cv_search_pow" >&6; }
5820ac_res=$ac_cv_search_pow
5821if test "$ac_res" != no; then :
5822  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5823
5824fi
5825
5826
5827# Check whether --enable-largefile was given.
5828if test "${enable_largefile+set}" = set; then :
5829  enableval=$enable_largefile;
5830fi
5831
5832if test "$enable_largefile" != no; then
5833
5834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5835$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5836if ${ac_cv_sys_largefile_CC+:} false; then :
5837  $as_echo_n "(cached) " >&6
5838else
5839  ac_cv_sys_largefile_CC=no
5840     if test "$GCC" != yes; then
5841       ac_save_CC=$CC
5842       while :; do
5843	 # IRIX 6.2 and later do not support large files by default,
5844	 # so use the C compiler's -n32 option if that helps.
5845	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846/* end confdefs.h.  */
5847#include <sys/types.h>
5848 /* Check that off_t can represent 2**63 - 1 correctly.
5849    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5850    since some C++ compilers masquerading as C compilers
5851    incorrectly reject 9223372036854775807.  */
5852#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5853  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5854		       && LARGE_OFF_T % 2147483647 == 1)
5855		      ? 1 : -1];
5856int
5857main ()
5858{
5859
5860  ;
5861  return 0;
5862}
5863_ACEOF
5864	 if ac_fn_c_try_compile "$LINENO"; then :
5865  break
5866fi
5867rm -f core conftest.err conftest.$ac_objext
5868	 CC="$CC -n32"
5869	 if ac_fn_c_try_compile "$LINENO"; then :
5870  ac_cv_sys_largefile_CC=' -n32'; break
5871fi
5872rm -f core conftest.err conftest.$ac_objext
5873	 break
5874       done
5875       CC=$ac_save_CC
5876       rm -f conftest.$ac_ext
5877    fi
5878fi
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5880$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5881  if test "$ac_cv_sys_largefile_CC" != no; then
5882    CC=$CC$ac_cv_sys_largefile_CC
5883  fi
5884
5885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5886$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5887if ${ac_cv_sys_file_offset_bits+:} false; then :
5888  $as_echo_n "(cached) " >&6
5889else
5890  while :; do
5891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892/* end confdefs.h.  */
5893#include <sys/types.h>
5894 /* Check that off_t can represent 2**63 - 1 correctly.
5895    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5896    since some C++ compilers masquerading as C compilers
5897    incorrectly reject 9223372036854775807.  */
5898#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5899  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5900		       && LARGE_OFF_T % 2147483647 == 1)
5901		      ? 1 : -1];
5902int
5903main ()
5904{
5905
5906  ;
5907  return 0;
5908}
5909_ACEOF
5910if ac_fn_c_try_compile "$LINENO"; then :
5911  ac_cv_sys_file_offset_bits=no; break
5912fi
5913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915/* end confdefs.h.  */
5916#define _FILE_OFFSET_BITS 64
5917#include <sys/types.h>
5918 /* Check that off_t can represent 2**63 - 1 correctly.
5919    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5920    since some C++ compilers masquerading as C compilers
5921    incorrectly reject 9223372036854775807.  */
5922#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5923  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5924		       && LARGE_OFF_T % 2147483647 == 1)
5925		      ? 1 : -1];
5926int
5927main ()
5928{
5929
5930  ;
5931  return 0;
5932}
5933_ACEOF
5934if ac_fn_c_try_compile "$LINENO"; then :
5935  ac_cv_sys_file_offset_bits=64; break
5936fi
5937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938  ac_cv_sys_file_offset_bits=unknown
5939  break
5940done
5941fi
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5943$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5944case $ac_cv_sys_file_offset_bits in #(
5945  no | unknown) ;;
5946  *)
5947cat >>confdefs.h <<_ACEOF
5948#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5949_ACEOF
5950;;
5951esac
5952rm -rf conftest*
5953  if test $ac_cv_sys_file_offset_bits = unknown; then
5954    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5955$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5956if ${ac_cv_sys_large_files+:} false; then :
5957  $as_echo_n "(cached) " >&6
5958else
5959  while :; do
5960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961/* end confdefs.h.  */
5962#include <sys/types.h>
5963 /* Check that off_t can represent 2**63 - 1 correctly.
5964    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5965    since some C++ compilers masquerading as C compilers
5966    incorrectly reject 9223372036854775807.  */
5967#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5968  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5969		       && LARGE_OFF_T % 2147483647 == 1)
5970		      ? 1 : -1];
5971int
5972main ()
5973{
5974
5975  ;
5976  return 0;
5977}
5978_ACEOF
5979if ac_fn_c_try_compile "$LINENO"; then :
5980  ac_cv_sys_large_files=no; break
5981fi
5982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984/* end confdefs.h.  */
5985#define _LARGE_FILES 1
5986#include <sys/types.h>
5987 /* Check that off_t can represent 2**63 - 1 correctly.
5988    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5989    since some C++ compilers masquerading as C compilers
5990    incorrectly reject 9223372036854775807.  */
5991#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5992  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5993		       && LARGE_OFF_T % 2147483647 == 1)
5994		      ? 1 : -1];
5995int
5996main ()
5997{
5998
5999  ;
6000  return 0;
6001}
6002_ACEOF
6003if ac_fn_c_try_compile "$LINENO"; then :
6004  ac_cv_sys_large_files=1; break
6005fi
6006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007  ac_cv_sys_large_files=unknown
6008  break
6009done
6010fi
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6012$as_echo "$ac_cv_sys_large_files" >&6; }
6013case $ac_cv_sys_large_files in #(
6014  no | unknown) ;;
6015  *)
6016cat >>confdefs.h <<_ACEOF
6017#define _LARGE_FILES $ac_cv_sys_large_files
6018_ACEOF
6019;;
6020esac
6021rm -rf conftest*
6022  fi
6023
6024
6025fi
6026
6027
6028LARGEFILE=""
6029if test x$enable_largefile != xno; then
6030	LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
6031
6032	if test x$ac_cv_sys_large_files = x1; then
6033		LARGEFILE="$LARGEFILE -D_LARGE_FILES"
6034	fi
6035
6036	if test x$ac_cv_sys_file_offset_bits = x64; then
6037		LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
6038	fi
6039fi
6040
6041
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6043$as_echo_n "checking for long long int... " >&6; }
6044if ${ac_cv_c_long_long+:} false; then :
6045  $as_echo_n "(cached) " >&6
6046else
6047  if test "$GCC" = yes; then
6048		ac_cv_c_long_long=yes
6049	else
6050		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051/* end confdefs.h.  */
6052
6053int
6054main ()
6055{
6056long long int i;
6057  ;
6058  return 0;
6059}
6060_ACEOF
6061if ac_fn_c_try_compile "$LINENO"; then :
6062  ac_cv_c_long_long=yes
6063else
6064  ac_cv_c_long_long=no
6065fi
6066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067	fi
6068fi
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
6070$as_echo "$ac_cv_c_long_long" >&6; }
6071
6072if test $ac_cv_c_long_long = yes; then
6073	$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6074
6075fi
6076
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6078$as_echo_n "checking for library containing dlsym... " >&6; }
6079if ${ac_cv_search_dlsym+:} false; then :
6080  $as_echo_n "(cached) " >&6
6081else
6082  ac_func_search_save_LIBS=$LIBS
6083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084/* end confdefs.h.  */
6085
6086/* Override any GCC internal prototype to avoid an error.
6087   Use char because int might match the return type of a GCC
6088   builtin and then its argument prototype would still apply.  */
6089#ifdef __cplusplus
6090extern "C"
6091#endif
6092char dlsym ();
6093int
6094main ()
6095{
6096return dlsym ();
6097  ;
6098  return 0;
6099}
6100_ACEOF
6101for ac_lib in '' dl; do
6102  if test -z "$ac_lib"; then
6103    ac_res="none required"
6104  else
6105    ac_res=-l$ac_lib
6106    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6107  fi
6108  if ac_fn_c_try_link "$LINENO"; then :
6109  ac_cv_search_dlsym=$ac_res
6110fi
6111rm -f core conftest.err conftest.$ac_objext \
6112    conftest$ac_exeext
6113  if ${ac_cv_search_dlsym+:} false; then :
6114  break
6115fi
6116done
6117if ${ac_cv_search_dlsym+:} false; then :
6118
6119else
6120  ac_cv_search_dlsym=no
6121fi
6122rm conftest.$ac_ext
6123LIBS=$ac_func_search_save_LIBS
6124fi
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6126$as_echo "$ac_cv_search_dlsym" >&6; }
6127ac_res=$ac_cv_search_dlsym
6128if test "$ac_res" != no; then :
6129  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6130  $as_echo "#define HAVE_DLSYM 1" >>confdefs.h
6131
6132fi
6133
6134ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6135if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6136  $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
6137
6138fi
6139
6140
6141
6142AUDIOLIBS=""
6143
6144case $host_os in
6145    cygwin* | mingw*)
6146		AUDIOLIBS="-lwinmm"
6147	;;
6148
6149    darwin*)
6150	AUDIOLIBS="-framework CoreAudio"
6151	;;
6152
6153    *)
6154	ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
6155if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
6156  $as_echo "#define HAVE_ALSA_ASOUNDLIB_H 1" >>confdefs.h
6157
6158	    AUDIOLIBS="-lasound"
6159fi
6160
6161
6162	;;
6163esac
6164
6165
6166
6167SAVELIBS="$LIBS"
6168IMAGELIBS=""
6169STATICIMAGELIBS=""
6170
6171
6172
6173
6174# Handle the JPEG lib linking mode (use fltk local or system lib)
6175# If --enable-(resp. --disable-)localjpeg parameter is not set by user
6176# Then we check the JPEG lib usability, with result in sysjpeglib_ok variable
6177# Check whether --enable-localjpeg was given.
6178if test "${enable_localjpeg+set}" = set; then :
6179  enableval=$enable_localjpeg;
6180fi
6181
6182# Check for System lib use if automatic mode or --disable-localjpeg is requested
6183sysjpeglib_ok=no
6184sysjpeginc_ok=no
6185if test x$enable_localjpeg != xyes; then
6186    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateCompress in -ljpeg" >&5
6187$as_echo_n "checking for jpeg_CreateCompress in -ljpeg... " >&6; }
6188if ${ac_cv_lib_jpeg_jpeg_CreateCompress+:} false; then :
6189  $as_echo_n "(cached) " >&6
6190else
6191  ac_check_lib_save_LIBS=$LIBS
6192LIBS="-ljpeg  $LIBS"
6193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194/* end confdefs.h.  */
6195
6196/* Override any GCC internal prototype to avoid an error.
6197   Use char because int might match the return type of a GCC
6198   builtin and then its argument prototype would still apply.  */
6199#ifdef __cplusplus
6200extern "C"
6201#endif
6202char jpeg_CreateCompress ();
6203int
6204main ()
6205{
6206return jpeg_CreateCompress ();
6207  ;
6208  return 0;
6209}
6210_ACEOF
6211if ac_fn_c_try_link "$LINENO"; then :
6212  ac_cv_lib_jpeg_jpeg_CreateCompress=yes
6213else
6214  ac_cv_lib_jpeg_jpeg_CreateCompress=no
6215fi
6216rm -f core conftest.err conftest.$ac_objext \
6217    conftest$ac_exeext conftest.$ac_ext
6218LIBS=$ac_check_lib_save_LIBS
6219fi
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateCompress" >&5
6221$as_echo "$ac_cv_lib_jpeg_jpeg_CreateCompress" >&6; }
6222if test "x$ac_cv_lib_jpeg_jpeg_CreateCompress" = xyes; then :
6223  ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
6224if test "x$ac_cv_header_jpeglib_h" = xyes; then :
6225  sysjpeginc_ok=yes
6226fi
6227
6228
6229	    if test x$sysjpeginc_ok = xyes; then
6230		sysjpeglib_ok=yes
6231	    fi
6232fi
6233
6234fi
6235# Now set the jpeg lib and include flags according to the requested mode and availability
6236if test x$enable_localjpeg = xyes -o x$sysjpeglib_ok = xno; then
6237    JPEGINC="-I../jpeg"
6238    JPEG="jpeg"
6239    IMAGELIBS="-lfltk_jpeg $IMAGELIBS"
6240    STATICIMAGELIBS="\$libdir/libfltk_jpeg.a $STATICIMAGELIBS"
6241    $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
6242
6243    #ac_cv_lib_jpeg_jpeg_CreateCompress=no # from ima: should not be necessary
6244    # Finally, warn user if system lib was requested but not found
6245    if test x$enable_localjpeg = xno; then
6246	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find system jpeg lib or header: choosing the local lib mode." >&5
6247$as_echo "$as_me: WARNING: Cannot find system jpeg lib or header: choosing the local lib mode." >&2;}
6248    fi
6249else
6250    JPEGINC=""
6251    JPEG=""
6252    IMAGELIBS="-ljpeg $IMAGELIBS"
6253    STATICIMAGELIBS="-ljpeg $STATICIMAGELIBS"
6254    $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
6255
6256fi
6257
6258# Handle the ZLIB lib linking mode (use fltk local or system lib)
6259# If --enable-(resp. --disable-)localzlib parameter is not set by user
6260# Then we check the ZLIB lib usability, with result in syszlib_ok variable
6261# Check whether --enable-localzlib was given.
6262if test "${enable_localzlib+set}" = set; then :
6263  enableval=$enable_localzlib;
6264fi
6265
6266# Check for System lib use if automatic mode or --disable-localzlib is requested
6267syszlib_ok=no
6268syszinc_ok=no
6269if test x$enable_localzlib != xyes; then
6270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
6271$as_echo_n "checking for gzgets in -lz... " >&6; }
6272if ${ac_cv_lib_z_gzgets+:} false; then :
6273  $as_echo_n "(cached) " >&6
6274else
6275  ac_check_lib_save_LIBS=$LIBS
6276LIBS="-lz  $LIBS"
6277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278/* end confdefs.h.  */
6279
6280/* Override any GCC internal prototype to avoid an error.
6281   Use char because int might match the return type of a GCC
6282   builtin and then its argument prototype would still apply.  */
6283#ifdef __cplusplus
6284extern "C"
6285#endif
6286char gzgets ();
6287int
6288main ()
6289{
6290return gzgets ();
6291  ;
6292  return 0;
6293}
6294_ACEOF
6295if ac_fn_c_try_link "$LINENO"; then :
6296  ac_cv_lib_z_gzgets=yes
6297else
6298  ac_cv_lib_z_gzgets=no
6299fi
6300rm -f core conftest.err conftest.$ac_objext \
6301    conftest$ac_exeext conftest.$ac_ext
6302LIBS=$ac_check_lib_save_LIBS
6303fi
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
6305$as_echo "$ac_cv_lib_z_gzgets" >&6; }
6306if test "x$ac_cv_lib_z_gzgets" = xyes; then :
6307  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6308if test "x$ac_cv_header_zlib_h" = xyes; then :
6309  syszinc_ok=yes
6310fi
6311
6312
6313	if test x$syszinc_ok = xyes; then
6314	    syszlib_ok=yes
6315	fi
6316fi
6317
6318fi
6319# Now set the Z lib and include flags according to the requested mode and availability
6320if test x$enable_localzlib = xyes -o x$syszlib_ok = xno ; then
6321    ZLIBINC="-I../zlib"
6322    ZLIB="zlib"
6323    LIBS="-lfltk_z $LIBS"
6324    IMAGELIBS="-lfltk_z $IMAGELIBS"
6325    STATICIMAGELIBS="\$libdir/libfltk_z.a $STATICIMAGELIBS"
6326    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
6327
6328    ac_cv_lib_z_gzgets=no # fc: is still necessary ?
6329    # Finally, warn user if system lib was requested but not found
6330    if test x$enable_localzlib = xno; then
6331	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find system z lib or header: choosing the local lib mode." >&5
6332$as_echo "$as_me: WARNING: Cannot find system z lib or header: choosing the local lib mode." >&2;}
6333    fi
6334else
6335    ZLIBINC=""
6336    ZLIB=""
6337    LIBS="-lz $LIBS"
6338    IMAGELIBS="-lz $IMAGELIBS"
6339    STATICIMAGELIBS="-lz $STATICIMAGELIBS"
6340    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
6341
6342fi
6343
6344# Handle the PNG lib linking mode (use fltk local or system lib)
6345# If --enable-(resp. --disable-)localpng parameter is not set by user
6346# Then we check the png lib usability with result in syspng_lib variable
6347# Check whether --enable-localpng was given.
6348if test "${enable_localpng+set}" = set; then :
6349  enableval=$enable_localpng;
6350fi
6351
6352
6353# Now check if system lib is usable, we check Lib AND include availability with inc variant,
6354# but only, if the builtin lib is not requested
6355syspnglib_ok=no
6356syspnginc_ok=no
6357if test x$enable_localpng != xyes; then
6358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_info in -lpng" >&5
6359$as_echo_n "checking for png_read_info in -lpng... " >&6; }
6360if ${ac_cv_lib_png_png_read_info+:} false; then :
6361  $as_echo_n "(cached) " >&6
6362else
6363  ac_check_lib_save_LIBS=$LIBS
6364LIBS="-lpng  $LIBS"
6365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366/* end confdefs.h.  */
6367
6368/* Override any GCC internal prototype to avoid an error.
6369   Use char because int might match the return type of a GCC
6370   builtin and then its argument prototype would still apply.  */
6371#ifdef __cplusplus
6372extern "C"
6373#endif
6374char png_read_info ();
6375int
6376main ()
6377{
6378return png_read_info ();
6379  ;
6380  return 0;
6381}
6382_ACEOF
6383if ac_fn_c_try_link "$LINENO"; then :
6384  ac_cv_lib_png_png_read_info=yes
6385else
6386  ac_cv_lib_png_png_read_info=no
6387fi
6388rm -f core conftest.err conftest.$ac_objext \
6389    conftest$ac_exeext conftest.$ac_ext
6390LIBS=$ac_check_lib_save_LIBS
6391fi
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_info" >&5
6393$as_echo "$ac_cv_lib_png_png_read_info" >&6; }
6394if test "x$ac_cv_lib_png_png_read_info" = xyes; then :
6395  ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
6396if test "x$ac_cv_header_png_h" = xyes; then :
6397  $as_echo "#define HAVE_PNG_H 1" >>confdefs.h
6398
6399	syspnginc_ok=yes
6400fi
6401
6402
6403    ac_fn_c_check_header_mongrel "$LINENO" "libpng/png.h" "ac_cv_header_libpng_png_h" "$ac_includes_default"
6404if test "x$ac_cv_header_libpng_png_h" = xyes; then :
6405  $as_echo "#define HAVE_LIBPNG_PNG_H 1" >>confdefs.h
6406
6407	syspnginc_ok=yes
6408fi
6409
6410
6411    if test x$syspnginc_ok = xyes; then
6412	syspnglib_ok=yes
6413    fi
6414fi
6415
6416fi
6417
6418# The following is executed if the lib was not found usable or if local lib is required explicitly
6419if test x$enable_localpng = xyes -o x$syspnglib_ok = xno ; then
6420    PNGINC="-I../png"
6421    PNG="png"
6422    IMAGELIBS="-lfltk_png $IMAGELIBS"
6423    STATICIMAGELIBS="\$libdir/libfltk_png.a $STATICIMAGELIBS"
6424    $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
6425
6426    $as_echo "#define HAVE_PNG_H 1" >>confdefs.h
6427
6428    $as_echo "#define HAVE_PNG_GET_VALID 1" >>confdefs.h
6429
6430    $as_echo "#define HAVE_PNG_SET_TRNS_TO_ALPHA 1" >>confdefs.h
6431
6432    # Finally, warn user if system lib was requested but not found
6433    if test x$enable_localpng = xno; then
6434	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find system png lib or header: choosing the local lib mode." >&5
6435$as_echo "$as_me: WARNING: Cannot find system png lib or header: choosing the local lib mode." >&2;}
6436    fi
6437else
6438    PNGINC=""
6439    PNG=""
6440    IMAGELIBS="-lpng $IMAGELIBS"
6441    STATICIMAGELIBS="-lpng $STATICIMAGELIBS"
6442    $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
6443
6444    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_valid in -lpng" >&5
6445$as_echo_n "checking for png_get_valid in -lpng... " >&6; }
6446if ${ac_cv_lib_png_png_get_valid+:} false; then :
6447  $as_echo_n "(cached) " >&6
6448else
6449  ac_check_lib_save_LIBS=$LIBS
6450LIBS="-lpng  $LIBS"
6451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452/* end confdefs.h.  */
6453
6454/* Override any GCC internal prototype to avoid an error.
6455   Use char because int might match the return type of a GCC
6456   builtin and then its argument prototype would still apply.  */
6457#ifdef __cplusplus
6458extern "C"
6459#endif
6460char png_get_valid ();
6461int
6462main ()
6463{
6464return png_get_valid ();
6465  ;
6466  return 0;
6467}
6468_ACEOF
6469if ac_fn_c_try_link "$LINENO"; then :
6470  ac_cv_lib_png_png_get_valid=yes
6471else
6472  ac_cv_lib_png_png_get_valid=no
6473fi
6474rm -f core conftest.err conftest.$ac_objext \
6475    conftest$ac_exeext conftest.$ac_ext
6476LIBS=$ac_check_lib_save_LIBS
6477fi
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_valid" >&5
6479$as_echo "$ac_cv_lib_png_png_get_valid" >&6; }
6480if test "x$ac_cv_lib_png_png_get_valid" = xyes; then :
6481  $as_echo "#define HAVE_PNG_GET_VALID 1" >>confdefs.h
6482
6483fi
6484
6485    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_tRNS_to_alpha in -lpng" >&5
6486$as_echo_n "checking for png_set_tRNS_to_alpha in -lpng... " >&6; }
6487if ${ac_cv_lib_png_png_set_tRNS_to_alpha+:} false; then :
6488  $as_echo_n "(cached) " >&6
6489else
6490  ac_check_lib_save_LIBS=$LIBS
6491LIBS="-lpng  $LIBS"
6492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493/* end confdefs.h.  */
6494
6495/* Override any GCC internal prototype to avoid an error.
6496   Use char because int might match the return type of a GCC
6497   builtin and then its argument prototype would still apply.  */
6498#ifdef __cplusplus
6499extern "C"
6500#endif
6501char png_set_tRNS_to_alpha ();
6502int
6503main ()
6504{
6505return png_set_tRNS_to_alpha ();
6506  ;
6507  return 0;
6508}
6509_ACEOF
6510if ac_fn_c_try_link "$LINENO"; then :
6511  ac_cv_lib_png_png_set_tRNS_to_alpha=yes
6512else
6513  ac_cv_lib_png_png_set_tRNS_to_alpha=no
6514fi
6515rm -f core conftest.err conftest.$ac_objext \
6516    conftest$ac_exeext conftest.$ac_ext
6517LIBS=$ac_check_lib_save_LIBS
6518fi
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_tRNS_to_alpha" >&5
6520$as_echo "$ac_cv_lib_png_png_set_tRNS_to_alpha" >&6; }
6521if test "x$ac_cv_lib_png_png_set_tRNS_to_alpha" = xyes; then :
6522  $as_echo "#define HAVE_PNG_SET_TRNS_TO_ALPHA 1" >>confdefs.h
6523
6524fi
6525
6526fi
6527
6528
6529
6530
6531
6532
6533
6534
6535LIBS="$SAVELIBS"
6536
6537
6538
6539have_pthread=no
6540PTHREAD_FLAGS=""
6541
6542check_pthread=yes
6543case $host_os in
6544    mingw*)
6545	check_pthread=no
6546	;;
6547    cygwin*)
6548	if test "x$enable_cygwin" != xyes; then
6549	    check_pthread=no
6550	fi
6551	;;
6552    *)
6553	;;
6554esac
6555
6556if test "x$enable_threads" != xno -a x$check_pthread = xyes; then
6557    for ac_header in pthread.h
6558do :
6559  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6560if test "x$ac_cv_header_pthread_h" = xyes; then :
6561  cat >>confdefs.h <<_ACEOF
6562#define HAVE_PTHREAD_H 1
6563_ACEOF
6564
6565fi
6566
6567done
6568
6569
6570    if test x$ac_cv_header_pthread_h = xyes; then
6571		for flag in -lpthreads -lpthread -pthread; do
6572	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
6573$as_echo_n "checking for pthread_create using $flag... " >&6; }
6574	    SAVELIBS="$LIBS"
6575	    LIBS="$flag $LIBS"
6576	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577/* end confdefs.h.  */
6578#include <pthread.h>
6579int
6580main ()
6581{
6582pthread_create(0, 0, 0, 0);
6583  ;
6584  return 0;
6585}
6586_ACEOF
6587if ac_fn_c_try_link "$LINENO"; then :
6588  have_pthread=yes
6589else
6590  LIBS="$SAVELIBS"
6591fi
6592rm -f core conftest.err conftest.$ac_objext \
6593    conftest$ac_exeext conftest.$ac_ext
6594	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
6595$as_echo "$have_pthread" >&6; }
6596
6597	    if test $have_pthread = yes; then
6598		$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6599
6600		PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
6601
6602		# Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
6603		# be POSIX-compliant... :(
6604		case $host_os in
6605		    solaris*)
6606			PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
6607			;;
6608		esac
6609		break
6610	    fi
6611	done
6612    fi
6613fi
6614
6615
6616
6617HLINKS=
6618OSX_ONLY=:
6619THREADS=
6620
6621
6622# Check whether --with-links was given.
6623if test "${with_links+set}" = set; then :
6624  withval=$with_links;
6625fi
6626
6627
6628INSTALL_DESKTOP=""
6629UNINSTALL_DESKTOP=""
6630
6631case $host_os_gui in
6632    cygwin* | mingw*)
6633		# Recent versions of Cygwin are seriously broken and the size
6634	# checks don't work because the shell puts out \r\n instead of
6635	# \n.  Here we just force U32 to be defined to "unsigned"...
6636	$as_echo "#define U32 unsigned" >>confdefs.h
6637
6638	CFLAGS="-mwindows -DWIN32 -DUSE_OPENGL32 $CFLAGS"
6639	CXXFLAGS="-mwindows -DWIN32 -DUSE_OPENGL32 $CXXFLAGS"
6640	LDFLAGS="-mwindows $LDFLAGS"
6641	DSOFLAGS="-mwindows $DSOFLAGS"
6642	LIBS="$LIBS -lole32 -luuid -lcomctl32"
6643	if test "x$with_optim" = x; then
6644	    	    with_optim="-O3"
6645	fi
6646
6647	if test x$enable_gl != xno; then
6648	    ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
6649if test "x$ac_cv_header_GL_gl_h" = xyes; then :
6650  $as_echo "#define HAVE_GL 1" >>confdefs.h
6651
6652		GLLIBS="-lopengl32"
6653fi
6654
6655
6656	    ac_fn_c_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
6657if test "x$ac_cv_header_GL_glu_h" = xyes; then :
6658  $as_echo "#define HAVE_GL_GLU_H 1" >>confdefs.h
6659
6660		GLLIBS="-lglu32 $GLLIBS"
6661fi
6662
6663
6664	else
6665	    LINKFLTKGL=""
6666	    GLLIBNAME=""
6667	    GLDSONAME=""
6668	    GLDEMOS=""
6669	fi
6670
6671	if test "x$enable_threads" != xno; then
6672	    if test x$have_pthread = xyes; then
6673		$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6674
6675	    fi
6676	fi
6677
6678	THREADS="threads$EXEEXT"
6679
6680	# Don't make symlinks since Windows is not case sensitive.
6681	if test "x$with_links" != xyes; then
6682		HLINKS="#"
6683	fi
6684	;;
6685
6686    darwin*)
6687	$as_echo "#define __APPLE_QUARTZ__ 1" >>confdefs.h
6688
6689
6690	USEMMFILES="Yes"
6691
6692	# MacOS X uses Cocoa for graphics.
6693	LIBS="$LIBS -framework Cocoa"
6694
6695	if test x$have_pthread = xyes; then
6696	    $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6697
6698	    THREADS="threads$EXEEXT"
6699	fi
6700
6701	if test x$enable_gl != xno; then
6702	    $as_echo "#define HAVE_GL 1" >>confdefs.h
6703
6704	    $as_echo "#define HAVE_GL_GLU_H 1" >>confdefs.h
6705
6706	    GLLIBS="-framework OpenGL"
6707	else
6708	    LINKFLTKGL=""
6709	    GLLIBNAME=""
6710	    GLDSONAME=""
6711	    GLDEMOS=""
6712	fi
6713
6714	# Don't make symlinks because HFS+ is not case sensitive...
6715	if test "x$with_links" != xyes; then
6716		HLINKS="#"
6717	fi
6718
6719	# Some steps are only done for OS X package management
6720	OSX_ONLY=
6721
6722	# Install/Uninstall FLUID application
6723	INSTALL_DESKTOP="install-osx"
6724	UNINSTALL_DESKTOP="uninstall-osx"
6725	;;
6726
6727    *)
6728	# All others are UNIX/X11...
6729	# This includes Cygwin target combined with X11
6730	if test x$have_pthread = xyes; then
6731	    $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6732
6733	    THREADS="threads$EXEEXT"
6734	fi
6735
6736		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6737$as_echo_n "checking for X... " >&6; }
6738
6739
6740# Check whether --with-x was given.
6741if test "${with_x+set}" = set; then :
6742  withval=$with_x;
6743fi
6744
6745# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6746if test "x$with_x" = xno; then
6747  # The user explicitly disabled X.
6748  have_x=disabled
6749else
6750  case $x_includes,$x_libraries in #(
6751    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
6752    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
6753  $as_echo_n "(cached) " >&6
6754else
6755  # One or both of the vars are not set, and there is no cached value.
6756ac_x_includes=no ac_x_libraries=no
6757rm -f -r conftest.dir
6758if mkdir conftest.dir; then
6759  cd conftest.dir
6760  cat >Imakefile <<'_ACEOF'
6761incroot:
6762	@echo incroot='${INCROOT}'
6763usrlibdir:
6764	@echo usrlibdir='${USRLIBDIR}'
6765libdir:
6766	@echo libdir='${LIBDIR}'
6767_ACEOF
6768  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6769    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6770    for ac_var in incroot usrlibdir libdir; do
6771      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6772    done
6773    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6774    for ac_extension in a so sl dylib la dll; do
6775      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6776	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6777	ac_im_usrlibdir=$ac_im_libdir; break
6778      fi
6779    done
6780    # Screen out bogus values from the imake configuration.  They are
6781    # bogus both because they are the default anyway, and because
6782    # using them would break gcc on systems where it needs fixed includes.
6783    case $ac_im_incroot in
6784	/usr/include) ac_x_includes= ;;
6785	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6786    esac
6787    case $ac_im_usrlibdir in
6788	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
6789	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6790    esac
6791  fi
6792  cd ..
6793  rm -f -r conftest.dir
6794fi
6795
6796# Standard set of common directories for X headers.
6797# Check X11 before X11Rn because it is often a symlink to the current release.
6798ac_x_header_dirs='
6799/usr/X11/include
6800/usr/X11R7/include
6801/usr/X11R6/include
6802/usr/X11R5/include
6803/usr/X11R4/include
6804
6805/usr/include/X11
6806/usr/include/X11R7
6807/usr/include/X11R6
6808/usr/include/X11R5
6809/usr/include/X11R4
6810
6811/usr/local/X11/include
6812/usr/local/X11R7/include
6813/usr/local/X11R6/include
6814/usr/local/X11R5/include
6815/usr/local/X11R4/include
6816
6817/usr/local/include/X11
6818/usr/local/include/X11R7
6819/usr/local/include/X11R6
6820/usr/local/include/X11R5
6821/usr/local/include/X11R4
6822
6823/usr/X386/include
6824/usr/x386/include
6825/usr/XFree86/include/X11
6826
6827/usr/include
6828/usr/local/include
6829/usr/unsupported/include
6830/usr/athena/include
6831/usr/local/x11r5/include
6832/usr/lpp/Xamples/include
6833
6834/usr/openwin/include
6835/usr/openwin/share/include'
6836
6837if test "$ac_x_includes" = no; then
6838  # Guess where to find include files, by looking for Xlib.h.
6839  # First, try using that file with no special directory specified.
6840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841/* end confdefs.h.  */
6842#include <X11/Xlib.h>
6843_ACEOF
6844if ac_fn_c_try_cpp "$LINENO"; then :
6845  # We can compile using X headers with no special include directory.
6846ac_x_includes=
6847else
6848  for ac_dir in $ac_x_header_dirs; do
6849  if test -r "$ac_dir/X11/Xlib.h"; then
6850    ac_x_includes=$ac_dir
6851    break
6852  fi
6853done
6854fi
6855rm -f conftest.err conftest.i conftest.$ac_ext
6856fi # $ac_x_includes = no
6857
6858if test "$ac_x_libraries" = no; then
6859  # Check for the libraries.
6860  # See if we find them without any special options.
6861  # Don't add to $LIBS permanently.
6862  ac_save_LIBS=$LIBS
6863  LIBS="-lX11 $LIBS"
6864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865/* end confdefs.h.  */
6866#include <X11/Xlib.h>
6867int
6868main ()
6869{
6870XrmInitialize ()
6871  ;
6872  return 0;
6873}
6874_ACEOF
6875if ac_fn_c_try_link "$LINENO"; then :
6876  LIBS=$ac_save_LIBS
6877# We can link X programs with no special library path.
6878ac_x_libraries=
6879else
6880  LIBS=$ac_save_LIBS
6881for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6882do
6883  # Don't even attempt the hair of trying to link an X program!
6884  for ac_extension in a so sl dylib la dll; do
6885    if test -r "$ac_dir/libX11.$ac_extension"; then
6886      ac_x_libraries=$ac_dir
6887      break 2
6888    fi
6889  done
6890done
6891fi
6892rm -f core conftest.err conftest.$ac_objext \
6893    conftest$ac_exeext conftest.$ac_ext
6894fi # $ac_x_libraries = no
6895
6896case $ac_x_includes,$ac_x_libraries in #(
6897  no,* | *,no | *\'*)
6898    # Didn't find X, or a directory has "'" in its name.
6899    ac_cv_have_x="have_x=no";; #(
6900  *)
6901    # Record where we found X for the cache.
6902    ac_cv_have_x="have_x=yes\
6903	ac_x_includes='$ac_x_includes'\
6904	ac_x_libraries='$ac_x_libraries'"
6905esac
6906fi
6907;; #(
6908    *) have_x=yes;;
6909  esac
6910  eval "$ac_cv_have_x"
6911fi # $with_x != no
6912
6913if test "$have_x" != yes; then
6914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6915$as_echo "$have_x" >&6; }
6916  no_x=yes
6917else
6918  # If each of the values was on the command line, it overrides each guess.
6919  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6920  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6921  # Update the cache value to reflect the command line values.
6922  ac_cv_have_x="have_x=yes\
6923	ac_x_includes='$x_includes'\
6924	ac_x_libraries='$x_libraries'"
6925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6926$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6927fi
6928
6929if test "$no_x" = yes; then
6930  # Not all programs may use this symbol, but it does not hurt to define it.
6931
6932$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6933
6934  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6935else
6936  if test -n "$x_includes"; then
6937    X_CFLAGS="$X_CFLAGS -I$x_includes"
6938  fi
6939
6940  # It would also be nice to do this for all -L options, not just this one.
6941  if test -n "$x_libraries"; then
6942    X_LIBS="$X_LIBS -L$x_libraries"
6943    # For Solaris; some versions of Sun CC require a space after -R and
6944    # others require no space.  Words are not sufficient . . . .
6945    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6946$as_echo_n "checking whether -R must be followed by a space... " >&6; }
6947    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6948    ac_xsave_c_werror_flag=$ac_c_werror_flag
6949    ac_c_werror_flag=yes
6950    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951/* end confdefs.h.  */
6952
6953int
6954main ()
6955{
6956
6957  ;
6958  return 0;
6959}
6960_ACEOF
6961if ac_fn_c_try_link "$LINENO"; then :
6962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963$as_echo "no" >&6; }
6964       X_LIBS="$X_LIBS -R$x_libraries"
6965else
6966  LIBS="$ac_xsave_LIBS -R $x_libraries"
6967       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968/* end confdefs.h.  */
6969
6970int
6971main ()
6972{
6973
6974  ;
6975  return 0;
6976}
6977_ACEOF
6978if ac_fn_c_try_link "$LINENO"; then :
6979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6980$as_echo "yes" >&6; }
6981	  X_LIBS="$X_LIBS -R $x_libraries"
6982else
6983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6984$as_echo "neither works" >&6; }
6985fi
6986rm -f core conftest.err conftest.$ac_objext \
6987    conftest$ac_exeext conftest.$ac_ext
6988fi
6989rm -f core conftest.err conftest.$ac_objext \
6990    conftest$ac_exeext conftest.$ac_ext
6991    ac_c_werror_flag=$ac_xsave_c_werror_flag
6992    LIBS=$ac_xsave_LIBS
6993  fi
6994
6995  # Check for system-dependent libraries X programs must link with.
6996  # Do this before checking for the system-independent R6 libraries
6997  # (-lICE), since we may need -lsocket or whatever for X linking.
6998
6999  if test "$ISC" = yes; then
7000    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7001  else
7002    # Martyn Johnson says this is needed for Ultrix, if the X
7003    # libraries were built with DECnet support.  And Karl Berry says
7004    # the Alpha needs dnet_stub (dnet does not exist).
7005    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7006    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h.  */
7008
7009/* Override any GCC internal prototype to avoid an error.
7010   Use char because int might match the return type of a GCC
7011   builtin and then its argument prototype would still apply.  */
7012#ifdef __cplusplus
7013extern "C"
7014#endif
7015char XOpenDisplay ();
7016int
7017main ()
7018{
7019return XOpenDisplay ();
7020  ;
7021  return 0;
7022}
7023_ACEOF
7024if ac_fn_c_try_link "$LINENO"; then :
7025
7026else
7027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7028$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7029if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7030  $as_echo_n "(cached) " >&6
7031else
7032  ac_check_lib_save_LIBS=$LIBS
7033LIBS="-ldnet  $LIBS"
7034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035/* end confdefs.h.  */
7036
7037/* Override any GCC internal prototype to avoid an error.
7038   Use char because int might match the return type of a GCC
7039   builtin and then its argument prototype would still apply.  */
7040#ifdef __cplusplus
7041extern "C"
7042#endif
7043char dnet_ntoa ();
7044int
7045main ()
7046{
7047return dnet_ntoa ();
7048  ;
7049  return 0;
7050}
7051_ACEOF
7052if ac_fn_c_try_link "$LINENO"; then :
7053  ac_cv_lib_dnet_dnet_ntoa=yes
7054else
7055  ac_cv_lib_dnet_dnet_ntoa=no
7056fi
7057rm -f core conftest.err conftest.$ac_objext \
7058    conftest$ac_exeext conftest.$ac_ext
7059LIBS=$ac_check_lib_save_LIBS
7060fi
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7062$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7063if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7064  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7065fi
7066
7067    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7068      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7069$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7070if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7071  $as_echo_n "(cached) " >&6
7072else
7073  ac_check_lib_save_LIBS=$LIBS
7074LIBS="-ldnet_stub  $LIBS"
7075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076/* end confdefs.h.  */
7077
7078/* Override any GCC internal prototype to avoid an error.
7079   Use char because int might match the return type of a GCC
7080   builtin and then its argument prototype would still apply.  */
7081#ifdef __cplusplus
7082extern "C"
7083#endif
7084char dnet_ntoa ();
7085int
7086main ()
7087{
7088return dnet_ntoa ();
7089  ;
7090  return 0;
7091}
7092_ACEOF
7093if ac_fn_c_try_link "$LINENO"; then :
7094  ac_cv_lib_dnet_stub_dnet_ntoa=yes
7095else
7096  ac_cv_lib_dnet_stub_dnet_ntoa=no
7097fi
7098rm -f core conftest.err conftest.$ac_objext \
7099    conftest$ac_exeext conftest.$ac_ext
7100LIBS=$ac_check_lib_save_LIBS
7101fi
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7103$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7104if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7105  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7106fi
7107
7108    fi
7109fi
7110rm -f core conftest.err conftest.$ac_objext \
7111    conftest$ac_exeext conftest.$ac_ext
7112    LIBS="$ac_xsave_LIBS"
7113
7114    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7115    # to get the SysV transport functions.
7116    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7117    # needs -lnsl.
7118    # The nsl library prevents programs from opening the X display
7119    # on Irix 5.2, according to T.E. Dickey.
7120    # The functions gethostbyname, getservbyname, and inet_addr are
7121    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7122    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7123if test "x$ac_cv_func_gethostbyname" = xyes; then :
7124
7125fi
7126
7127    if test $ac_cv_func_gethostbyname = no; then
7128      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7129$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7130if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7131  $as_echo_n "(cached) " >&6
7132else
7133  ac_check_lib_save_LIBS=$LIBS
7134LIBS="-lnsl  $LIBS"
7135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136/* end confdefs.h.  */
7137
7138/* Override any GCC internal prototype to avoid an error.
7139   Use char because int might match the return type of a GCC
7140   builtin and then its argument prototype would still apply.  */
7141#ifdef __cplusplus
7142extern "C"
7143#endif
7144char gethostbyname ();
7145int
7146main ()
7147{
7148return gethostbyname ();
7149  ;
7150  return 0;
7151}
7152_ACEOF
7153if ac_fn_c_try_link "$LINENO"; then :
7154  ac_cv_lib_nsl_gethostbyname=yes
7155else
7156  ac_cv_lib_nsl_gethostbyname=no
7157fi
7158rm -f core conftest.err conftest.$ac_objext \
7159    conftest$ac_exeext conftest.$ac_ext
7160LIBS=$ac_check_lib_save_LIBS
7161fi
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7163$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7164if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7165  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7166fi
7167
7168      if test $ac_cv_lib_nsl_gethostbyname = no; then
7169	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7170$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7171if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7172  $as_echo_n "(cached) " >&6
7173else
7174  ac_check_lib_save_LIBS=$LIBS
7175LIBS="-lbsd  $LIBS"
7176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177/* end confdefs.h.  */
7178
7179/* Override any GCC internal prototype to avoid an error.
7180   Use char because int might match the return type of a GCC
7181   builtin and then its argument prototype would still apply.  */
7182#ifdef __cplusplus
7183extern "C"
7184#endif
7185char gethostbyname ();
7186int
7187main ()
7188{
7189return gethostbyname ();
7190  ;
7191  return 0;
7192}
7193_ACEOF
7194if ac_fn_c_try_link "$LINENO"; then :
7195  ac_cv_lib_bsd_gethostbyname=yes
7196else
7197  ac_cv_lib_bsd_gethostbyname=no
7198fi
7199rm -f core conftest.err conftest.$ac_objext \
7200    conftest$ac_exeext conftest.$ac_ext
7201LIBS=$ac_check_lib_save_LIBS
7202fi
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7204$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7205if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7206  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7207fi
7208
7209      fi
7210    fi
7211
7212    # lieder@skyler.mavd.honeywell.com says without -lsocket,
7213    # socket/setsockopt and other routines are undefined under SCO ODT
7214    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7215    # on later versions), says Simon Leinen: it contains gethostby*
7216    # variants that don't use the name server (or something).  -lsocket
7217    # must be given before -lnsl if both are needed.  We assume that
7218    # if connect needs -lnsl, so does gethostbyname.
7219    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7220if test "x$ac_cv_func_connect" = xyes; then :
7221
7222fi
7223
7224    if test $ac_cv_func_connect = no; then
7225      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7226$as_echo_n "checking for connect in -lsocket... " >&6; }
7227if ${ac_cv_lib_socket_connect+:} false; then :
7228  $as_echo_n "(cached) " >&6
7229else
7230  ac_check_lib_save_LIBS=$LIBS
7231LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233/* end confdefs.h.  */
7234
7235/* Override any GCC internal prototype to avoid an error.
7236   Use char because int might match the return type of a GCC
7237   builtin and then its argument prototype would still apply.  */
7238#ifdef __cplusplus
7239extern "C"
7240#endif
7241char connect ();
7242int
7243main ()
7244{
7245return connect ();
7246  ;
7247  return 0;
7248}
7249_ACEOF
7250if ac_fn_c_try_link "$LINENO"; then :
7251  ac_cv_lib_socket_connect=yes
7252else
7253  ac_cv_lib_socket_connect=no
7254fi
7255rm -f core conftest.err conftest.$ac_objext \
7256    conftest$ac_exeext conftest.$ac_ext
7257LIBS=$ac_check_lib_save_LIBS
7258fi
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7260$as_echo "$ac_cv_lib_socket_connect" >&6; }
7261if test "x$ac_cv_lib_socket_connect" = xyes; then :
7262  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7263fi
7264
7265    fi
7266
7267    # Guillermo Gomez says -lposix is necessary on A/UX.
7268    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7269if test "x$ac_cv_func_remove" = xyes; then :
7270
7271fi
7272
7273    if test $ac_cv_func_remove = no; then
7274      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7275$as_echo_n "checking for remove in -lposix... " >&6; }
7276if ${ac_cv_lib_posix_remove+:} false; then :
7277  $as_echo_n "(cached) " >&6
7278else
7279  ac_check_lib_save_LIBS=$LIBS
7280LIBS="-lposix  $LIBS"
7281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282/* end confdefs.h.  */
7283
7284/* Override any GCC internal prototype to avoid an error.
7285   Use char because int might match the return type of a GCC
7286   builtin and then its argument prototype would still apply.  */
7287#ifdef __cplusplus
7288extern "C"
7289#endif
7290char remove ();
7291int
7292main ()
7293{
7294return remove ();
7295  ;
7296  return 0;
7297}
7298_ACEOF
7299if ac_fn_c_try_link "$LINENO"; then :
7300  ac_cv_lib_posix_remove=yes
7301else
7302  ac_cv_lib_posix_remove=no
7303fi
7304rm -f core conftest.err conftest.$ac_objext \
7305    conftest$ac_exeext conftest.$ac_ext
7306LIBS=$ac_check_lib_save_LIBS
7307fi
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7309$as_echo "$ac_cv_lib_posix_remove" >&6; }
7310if test "x$ac_cv_lib_posix_remove" = xyes; then :
7311  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7312fi
7313
7314    fi
7315
7316    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7317    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7318if test "x$ac_cv_func_shmat" = xyes; then :
7319
7320fi
7321
7322    if test $ac_cv_func_shmat = no; then
7323      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7324$as_echo_n "checking for shmat in -lipc... " >&6; }
7325if ${ac_cv_lib_ipc_shmat+:} false; then :
7326  $as_echo_n "(cached) " >&6
7327else
7328  ac_check_lib_save_LIBS=$LIBS
7329LIBS="-lipc  $LIBS"
7330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331/* end confdefs.h.  */
7332
7333/* Override any GCC internal prototype to avoid an error.
7334   Use char because int might match the return type of a GCC
7335   builtin and then its argument prototype would still apply.  */
7336#ifdef __cplusplus
7337extern "C"
7338#endif
7339char shmat ();
7340int
7341main ()
7342{
7343return shmat ();
7344  ;
7345  return 0;
7346}
7347_ACEOF
7348if ac_fn_c_try_link "$LINENO"; then :
7349  ac_cv_lib_ipc_shmat=yes
7350else
7351  ac_cv_lib_ipc_shmat=no
7352fi
7353rm -f core conftest.err conftest.$ac_objext \
7354    conftest$ac_exeext conftest.$ac_ext
7355LIBS=$ac_check_lib_save_LIBS
7356fi
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7358$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7359if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7360  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7361fi
7362
7363    fi
7364  fi
7365
7366  # Check for libraries that X11R6 Xt/Xaw programs need.
7367  ac_save_LDFLAGS=$LDFLAGS
7368  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7369  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7370  # check for ICE first), but we must link in the order -lSM -lICE or
7371  # we get undefined symbols.  So assume we have SM if we have ICE.
7372  # These have to be linked with before -lX11, unlike the other
7373  # libraries we check for below, so use a different variable.
7374  # John Interrante, Karl Berry
7375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7376$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7377if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7378  $as_echo_n "(cached) " >&6
7379else
7380  ac_check_lib_save_LIBS=$LIBS
7381LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383/* end confdefs.h.  */
7384
7385/* Override any GCC internal prototype to avoid an error.
7386   Use char because int might match the return type of a GCC
7387   builtin and then its argument prototype would still apply.  */
7388#ifdef __cplusplus
7389extern "C"
7390#endif
7391char IceConnectionNumber ();
7392int
7393main ()
7394{
7395return IceConnectionNumber ();
7396  ;
7397  return 0;
7398}
7399_ACEOF
7400if ac_fn_c_try_link "$LINENO"; then :
7401  ac_cv_lib_ICE_IceConnectionNumber=yes
7402else
7403  ac_cv_lib_ICE_IceConnectionNumber=no
7404fi
7405rm -f core conftest.err conftest.$ac_objext \
7406    conftest$ac_exeext conftest.$ac_ext
7407LIBS=$ac_check_lib_save_LIBS
7408fi
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7410$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7411if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7412  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7413fi
7414
7415  LDFLAGS=$ac_save_LDFLAGS
7416
7417fi
7418
7419
7420	if test x$no_x = xyes; then
7421	    as_fn_error $? "Configure could not find required X11 libraries, aborting." "$LINENO" 5
7422	fi
7423
7424	if test "x$X_PRE_LIBS" != x; then
7425	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring libraries \"$X_PRE_LIBS\" requested by configure." >&5
7426$as_echo "$as_me: WARNING: Ignoring libraries \"$X_PRE_LIBS\" requested by configure." >&2;}
7427	fi
7428
7429	LIBS="$LIBS -lX11 $X_EXTRA_LIBS"
7430	CFLAGS="$CFLAGS $X_CFLAGS"
7431	CXXFLAGS="$CXXFLAGS $X_CFLAGS"
7432	LDFLAGS="$LDFLAGS $X_LIBS"
7433	DSOFLAGS="$X_LIBS $DSOFLAGS"
7434	$as_echo "#define USE_X11 1" >>confdefs.h
7435
7436	if test "x$x_includes" != x; then
7437	    ac_cpp="$ac_cpp -I$x_includes"
7438	fi
7439
7440		GLLIBS=
7441
7442	if test x$enable_gl != xno; then
7443	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7444$as_echo_n "checking for library containing dlopen... " >&6; }
7445if ${ac_cv_search_dlopen+:} false; then :
7446  $as_echo_n "(cached) " >&6
7447else
7448  ac_func_search_save_LIBS=$LIBS
7449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450/* end confdefs.h.  */
7451
7452/* Override any GCC internal prototype to avoid an error.
7453   Use char because int might match the return type of a GCC
7454   builtin and then its argument prototype would still apply.  */
7455#ifdef __cplusplus
7456extern "C"
7457#endif
7458char dlopen ();
7459int
7460main ()
7461{
7462return dlopen ();
7463  ;
7464  return 0;
7465}
7466_ACEOF
7467for ac_lib in '' dl; do
7468  if test -z "$ac_lib"; then
7469    ac_res="none required"
7470  else
7471    ac_res=-l$ac_lib
7472    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7473  fi
7474  if ac_fn_c_try_link "$LINENO"; then :
7475  ac_cv_search_dlopen=$ac_res
7476fi
7477rm -f core conftest.err conftest.$ac_objext \
7478    conftest$ac_exeext
7479  if ${ac_cv_search_dlopen+:} false; then :
7480  break
7481fi
7482done
7483if ${ac_cv_search_dlopen+:} false; then :
7484
7485else
7486  ac_cv_search_dlopen=no
7487fi
7488rm conftest.$ac_ext
7489LIBS=$ac_func_search_save_LIBS
7490fi
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7492$as_echo "$ac_cv_search_dlopen" >&6; }
7493ac_res=$ac_cv_search_dlopen
7494if test "$ac_res" != no; then :
7495  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7496
7497fi
7498
7499	    ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
7500if test "x$ac_cv_header_GL_gl_h" = xyes; then :
7501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXMakeCurrent in -lGL" >&5
7502$as_echo_n "checking for glXMakeCurrent in -lGL... " >&6; }
7503if ${ac_cv_lib_GL_glXMakeCurrent+:} false; then :
7504  $as_echo_n "(cached) " >&6
7505else
7506  ac_check_lib_save_LIBS=$LIBS
7507LIBS="-lGL -lm $LIBS"
7508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509/* end confdefs.h.  */
7510
7511/* Override any GCC internal prototype to avoid an error.
7512   Use char because int might match the return type of a GCC
7513   builtin and then its argument prototype would still apply.  */
7514#ifdef __cplusplus
7515extern "C"
7516#endif
7517char glXMakeCurrent ();
7518int
7519main ()
7520{
7521return glXMakeCurrent ();
7522  ;
7523  return 0;
7524}
7525_ACEOF
7526if ac_fn_c_try_link "$LINENO"; then :
7527  ac_cv_lib_GL_glXMakeCurrent=yes
7528else
7529  ac_cv_lib_GL_glXMakeCurrent=no
7530fi
7531rm -f core conftest.err conftest.$ac_objext \
7532    conftest$ac_exeext conftest.$ac_ext
7533LIBS=$ac_check_lib_save_LIBS
7534fi
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXMakeCurrent" >&5
7536$as_echo "$ac_cv_lib_GL_glXMakeCurrent" >&6; }
7537if test "x$ac_cv_lib_GL_glXMakeCurrent" = xyes; then :
7538  $as_echo "#define HAVE_GL 1" >>confdefs.h
7539
7540		     GLLIBS="-lGL"
7541else
7542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXMakeCurrent in -lMesaGL" >&5
7543$as_echo_n "checking for glXMakeCurrent in -lMesaGL... " >&6; }
7544if ${ac_cv_lib_MesaGL_glXMakeCurrent+:} false; then :
7545  $as_echo_n "(cached) " >&6
7546else
7547  ac_check_lib_save_LIBS=$LIBS
7548LIBS="-lMesaGL -lm $LIBS"
7549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550/* end confdefs.h.  */
7551
7552/* Override any GCC internal prototype to avoid an error.
7553   Use char because int might match the return type of a GCC
7554   builtin and then its argument prototype would still apply.  */
7555#ifdef __cplusplus
7556extern "C"
7557#endif
7558char glXMakeCurrent ();
7559int
7560main ()
7561{
7562return glXMakeCurrent ();
7563  ;
7564  return 0;
7565}
7566_ACEOF
7567if ac_fn_c_try_link "$LINENO"; then :
7568  ac_cv_lib_MesaGL_glXMakeCurrent=yes
7569else
7570  ac_cv_lib_MesaGL_glXMakeCurrent=no
7571fi
7572rm -f core conftest.err conftest.$ac_objext \
7573    conftest$ac_exeext conftest.$ac_ext
7574LIBS=$ac_check_lib_save_LIBS
7575fi
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGL_glXMakeCurrent" >&5
7577$as_echo "$ac_cv_lib_MesaGL_glXMakeCurrent" >&6; }
7578if test "x$ac_cv_lib_MesaGL_glXMakeCurrent" = xyes; then :
7579  $as_echo "#define HAVE_GL 1" >>confdefs.h
7580
7581			 GLLIBS="-lMesaGL"
7582fi
7583
7584fi
7585
7586		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXGetProcAddressARB in -lGL" >&5
7587$as_echo_n "checking for glXGetProcAddressARB in -lGL... " >&6; }
7588if ${ac_cv_lib_GL_glXGetProcAddressARB+:} false; then :
7589  $as_echo_n "(cached) " >&6
7590else
7591  ac_check_lib_save_LIBS=$LIBS
7592LIBS="-lGL -lm $LIBS"
7593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h.  */
7595
7596/* Override any GCC internal prototype to avoid an error.
7597   Use char because int might match the return type of a GCC
7598   builtin and then its argument prototype would still apply.  */
7599#ifdef __cplusplus
7600extern "C"
7601#endif
7602char glXGetProcAddressARB ();
7603int
7604main ()
7605{
7606return glXGetProcAddressARB ();
7607  ;
7608  return 0;
7609}
7610_ACEOF
7611if ac_fn_c_try_link "$LINENO"; then :
7612  ac_cv_lib_GL_glXGetProcAddressARB=yes
7613else
7614  ac_cv_lib_GL_glXGetProcAddressARB=no
7615fi
7616rm -f core conftest.err conftest.$ac_objext \
7617    conftest$ac_exeext conftest.$ac_ext
7618LIBS=$ac_check_lib_save_LIBS
7619fi
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7621$as_echo "$ac_cv_lib_GL_glXGetProcAddressARB" >&6; }
7622if test "x$ac_cv_lib_GL_glXGetProcAddressARB" = xyes; then :
7623  $as_echo "#define HAVE_GLXGETPROCADDRESSARB 1" >>confdefs.h
7624
7625fi
7626
7627
7628fi
7629
7630
7631	    ac_fn_c_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
7632if test "x$ac_cv_header_GL_glu_h" = xyes; then :
7633  $as_echo "#define HAVE_GL_GLU_H 1" >>confdefs.h
7634
7635		if test x$ac_cv_lib_GL_glXMakeCurrent = xyes; then
7636		    GLLIBS="-lGLU $GLLIBS"
7637		fi
7638		if test x$ac_cv_lib_MesaGL_glXMakeCurrent = xyes; then
7639		    GLLIBS="-lMesaGLU $GLLIBS"
7640		fi
7641
7642fi
7643
7644
7645
7646	    if test x$ac_cv_lib_GL_glXMakeCurrent != xyes -a x$ac_cv_lib_MesaGL_glXMakeCurrent != xyes; then
7647		LINKFLTKGL=""
7648		GLLIBNAME=""
7649		GLDSONAME=""
7650		GLDEMOS=""
7651	    fi
7652	else
7653	    LINKFLTKGL=""
7654	    GLLIBNAME=""
7655	    GLDSONAME=""
7656	    GLDEMOS=""
7657	fi
7658
7659		# Check whether --enable-xinerama was given.
7660if test "${enable_xinerama+set}" = set; then :
7661  enableval=$enable_xinerama;
7662fi
7663
7664
7665	xinerama_found=no
7666	if test x$enable_xinerama != xno; then
7667	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaIsActive in -lXinerama" >&5
7668$as_echo_n "checking for XineramaIsActive in -lXinerama... " >&6; }
7669if ${ac_cv_lib_Xinerama_XineramaIsActive+:} false; then :
7670  $as_echo_n "(cached) " >&6
7671else
7672  ac_check_lib_save_LIBS=$LIBS
7673LIBS="-lXinerama  $LIBS"
7674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675/* end confdefs.h.  */
7676
7677/* Override any GCC internal prototype to avoid an error.
7678   Use char because int might match the return type of a GCC
7679   builtin and then its argument prototype would still apply.  */
7680#ifdef __cplusplus
7681extern "C"
7682#endif
7683char XineramaIsActive ();
7684int
7685main ()
7686{
7687return XineramaIsActive ();
7688  ;
7689  return 0;
7690}
7691_ACEOF
7692if ac_fn_c_try_link "$LINENO"; then :
7693  ac_cv_lib_Xinerama_XineramaIsActive=yes
7694else
7695  ac_cv_lib_Xinerama_XineramaIsActive=no
7696fi
7697rm -f core conftest.err conftest.$ac_objext \
7698    conftest$ac_exeext conftest.$ac_ext
7699LIBS=$ac_check_lib_save_LIBS
7700fi
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaIsActive" >&5
7702$as_echo "$ac_cv_lib_Xinerama_XineramaIsActive" >&6; }
7703if test "x$ac_cv_lib_Xinerama_XineramaIsActive" = xyes; then :
7704  $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
7705
7706		 LIBS="-lXinerama $LIBS"
7707		 xinerama_found=yes
7708fi
7709
7710	fi
7711
7712		# Check whether --enable-xft was given.
7713if test "${enable_xft+set}" = set; then :
7714  enableval=$enable_xft;
7715fi
7716
7717
7718	xft_found=no
7719	if test x$enable_xft != xno; then
7720            # Try pkg-config first (freetype2 deprecated freetype-config from some version on)
7721            # Extract the first word of "pkg-config", so it can be a program name with args.
7722set dummy pkg-config; ac_word=$2
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724$as_echo_n "checking for $ac_word... " >&6; }
7725if ${ac_cv_path_PKGCONFIG+:} false; then :
7726  $as_echo_n "(cached) " >&6
7727else
7728  case $PKGCONFIG in
7729  [\\/]* | ?:[\\/]*)
7730  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
7731  ;;
7732  *)
7733  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736  IFS=$as_save_IFS
7737  test -z "$as_dir" && as_dir=.
7738    for ac_exec_ext in '' $ac_executable_extensions; do
7739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
7741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742    break 2
7743  fi
7744done
7745  done
7746IFS=$as_save_IFS
7747
7748  ;;
7749esac
7750fi
7751PKGCONFIG=$ac_cv_path_PKGCONFIG
7752if test -n "$PKGCONFIG"; then
7753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
7754$as_echo "$PKGCONFIG" >&6; }
7755else
7756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757$as_echo "no" >&6; }
7758fi
7759
7760
7761            FT_FLAGS=""
7762            if test "x$PKGCONFIG" != x; then
7763                FT_FLAGS="`$PKGCONFIG --cflags xft`"
7764                if test "x$FT_FLAGS" = x; then
7765                    FT_FLAGS="`$PKGCONFIG --cflags freetype2`"
7766                fi
7767            fi
7768            # if that failed, try freetype-config
7769            if test "x$FT_FLAGS" = x; then
7770                # Extract the first word of "freetype-config", so it can be a program name with args.
7771set dummy freetype-config; ac_word=$2
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773$as_echo_n "checking for $ac_word... " >&6; }
7774if ${ac_cv_path_FTCONFIG+:} false; then :
7775  $as_echo_n "(cached) " >&6
7776else
7777  case $FTCONFIG in
7778  [\\/]* | ?:[\\/]*)
7779  ac_cv_path_FTCONFIG="$FTCONFIG" # Let the user override the test with a path.
7780  ;;
7781  *)
7782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785  IFS=$as_save_IFS
7786  test -z "$as_dir" && as_dir=.
7787    for ac_exec_ext in '' $ac_executable_extensions; do
7788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789    ac_cv_path_FTCONFIG="$as_dir/$ac_word$ac_exec_ext"
7790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791    break 2
7792  fi
7793done
7794  done
7795IFS=$as_save_IFS
7796
7797  ;;
7798esac
7799fi
7800FTCONFIG=$ac_cv_path_FTCONFIG
7801if test -n "$FTCONFIG"; then
7802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FTCONFIG" >&5
7803$as_echo "$FTCONFIG" >&6; }
7804else
7805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806$as_echo "no" >&6; }
7807fi
7808
7809
7810                if test "x$FTCONFIG" != x; then
7811                    FT_FLAGS="`$FTCONFIG --cflags`"
7812                else
7813                    # abort if both methods failed
7814                    { $as_echo "$as_me:${as_lineno-$LINENO}: please install pkg-config or use 'configure --disable-xft'." >&5
7815$as_echo "$as_me: please install pkg-config or use 'configure --disable-xft'." >&6;}
7816                    as_fn_error $? "Aborting." "$LINENO" 5
7817                fi
7818            fi
7819            CPPFLAGS="$FT_FLAGS $CPPFLAGS"
7820            CXXFLAGS="$FT_FLAGS $CXXFLAGS"
7821            CFLAGS="$FT_FLAGS $CFLAGS"
7822
7823            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternCreate in -lfontconfig" >&5
7824$as_echo_n "checking for FcPatternCreate in -lfontconfig... " >&6; }
7825if ${ac_cv_lib_fontconfig_FcPatternCreate+:} false; then :
7826  $as_echo_n "(cached) " >&6
7827else
7828  ac_check_lib_save_LIBS=$LIBS
7829LIBS="-lfontconfig  $LIBS"
7830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831/* end confdefs.h.  */
7832
7833/* Override any GCC internal prototype to avoid an error.
7834   Use char because int might match the return type of a GCC
7835   builtin and then its argument prototype would still apply.  */
7836#ifdef __cplusplus
7837extern "C"
7838#endif
7839char FcPatternCreate ();
7840int
7841main ()
7842{
7843return FcPatternCreate ();
7844  ;
7845  return 0;
7846}
7847_ACEOF
7848if ac_fn_c_try_link "$LINENO"; then :
7849  ac_cv_lib_fontconfig_FcPatternCreate=yes
7850else
7851  ac_cv_lib_fontconfig_FcPatternCreate=no
7852fi
7853rm -f core conftest.err conftest.$ac_objext \
7854    conftest$ac_exeext conftest.$ac_ext
7855LIBS=$ac_check_lib_save_LIBS
7856fi
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternCreate" >&5
7858$as_echo "$ac_cv_lib_fontconfig_FcPatternCreate" >&6; }
7859if test "x$ac_cv_lib_fontconfig_FcPatternCreate" = xyes; then :
7860  cat >>confdefs.h <<_ACEOF
7861#define HAVE_LIBFONTCONFIG 1
7862_ACEOF
7863
7864  LIBS="-lfontconfig $LIBS"
7865
7866fi
7867
7868            ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
7869if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
7870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawCreate in -lXft" >&5
7871$as_echo_n "checking for XftDrawCreate in -lXft... " >&6; }
7872if ${ac_cv_lib_Xft_XftDrawCreate+:} false; then :
7873  $as_echo_n "(cached) " >&6
7874else
7875  ac_check_lib_save_LIBS=$LIBS
7876LIBS="-lXft  $LIBS"
7877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878/* end confdefs.h.  */
7879
7880/* Override any GCC internal prototype to avoid an error.
7881   Use char because int might match the return type of a GCC
7882   builtin and then its argument prototype would still apply.  */
7883#ifdef __cplusplus
7884extern "C"
7885#endif
7886char XftDrawCreate ();
7887int
7888main ()
7889{
7890return XftDrawCreate ();
7891  ;
7892  return 0;
7893}
7894_ACEOF
7895if ac_fn_c_try_link "$LINENO"; then :
7896  ac_cv_lib_Xft_XftDrawCreate=yes
7897else
7898  ac_cv_lib_Xft_XftDrawCreate=no
7899fi
7900rm -f core conftest.err conftest.$ac_objext \
7901    conftest$ac_exeext conftest.$ac_ext
7902LIBS=$ac_check_lib_save_LIBS
7903fi
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawCreate" >&5
7905$as_echo "$ac_cv_lib_Xft_XftDrawCreate" >&6; }
7906if test "x$ac_cv_lib_Xft_XftDrawCreate" = xyes; then :
7907  $as_echo "#define USE_XFT 1" >>confdefs.h
7908
7909			 LIBS="-lXft $LIBS"
7910			 xft_found=yes
7911fi
7912
7913fi
7914
7915
7916	fi
7917
7918			if test x$enable_xft != xno -a x$xft_found != xyes; then
7919	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the required Xft headers and/or libraries." >&5
7920$as_echo "$as_me: WARNING: could not find the required Xft headers and/or libraries." >&2;}
7921	    { $as_echo "$as_me:${as_lineno-$LINENO}: please install Xft headers and libraries or use 'configure --disable-xft'." >&5
7922$as_echo "$as_me: please install Xft headers and libraries or use 'configure --disable-xft'." >&6;}
7923	    if test x$enable_xft = xyes; then
7924		as_fn_error $? "Aborting." "$LINENO" 5
7925	    fi
7926	fi
7927
7928		# Check whether --enable-xdbe was given.
7929if test "${enable_xdbe+set}" = set; then :
7930  enableval=$enable_xdbe;
7931fi
7932
7933
7934	xdbe_found=no
7935	if test x$enable_xdbe != xno; then
7936	    ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
7937"
7938if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
7939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdbeQueryExtension in -lXext" >&5
7940$as_echo_n "checking for XdbeQueryExtension in -lXext... " >&6; }
7941if ${ac_cv_lib_Xext_XdbeQueryExtension+:} false; then :
7942  $as_echo_n "(cached) " >&6
7943else
7944  ac_check_lib_save_LIBS=$LIBS
7945LIBS="-lXext  $LIBS"
7946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h.  */
7948
7949/* Override any GCC internal prototype to avoid an error.
7950   Use char because int might match the return type of a GCC
7951   builtin and then its argument prototype would still apply.  */
7952#ifdef __cplusplus
7953extern "C"
7954#endif
7955char XdbeQueryExtension ();
7956int
7957main ()
7958{
7959return XdbeQueryExtension ();
7960  ;
7961  return 0;
7962}
7963_ACEOF
7964if ac_fn_c_try_link "$LINENO"; then :
7965  ac_cv_lib_Xext_XdbeQueryExtension=yes
7966else
7967  ac_cv_lib_Xext_XdbeQueryExtension=no
7968fi
7969rm -f core conftest.err conftest.$ac_objext \
7970    conftest$ac_exeext conftest.$ac_ext
7971LIBS=$ac_check_lib_save_LIBS
7972fi
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
7974$as_echo "$ac_cv_lib_Xext_XdbeQueryExtension" >&6; }
7975if test "x$ac_cv_lib_Xext_XdbeQueryExtension" = xyes; then :
7976  $as_echo "#define HAVE_XDBE 1" >>confdefs.h
7977
7978		     LIBS="-lXext $LIBS"
7979		     xdbe_found=yes
7980fi
7981
7982fi
7983
7984
7985	fi
7986
7987		# Check whether --enable-xfixes was given.
7988if test "${enable_xfixes+set}" = set; then :
7989  enableval=$enable_xfixes;
7990fi
7991
7992
7993	xfixes_found=no
7994	if test x$enable_xfixes != xno; then
7995	    ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xfixes.h" "ac_cv_header_X11_extensions_Xfixes_h" "#include <X11/Xlib.h>
7996"
7997if test "x$ac_cv_header_X11_extensions_Xfixes_h" = xyes; then :
7998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesQueryExtension in -lXfixes" >&5
7999$as_echo_n "checking for XFixesQueryExtension in -lXfixes... " >&6; }
8000if ${ac_cv_lib_Xfixes_XFixesQueryExtension+:} false; then :
8001  $as_echo_n "(cached) " >&6
8002else
8003  ac_check_lib_save_LIBS=$LIBS
8004LIBS="-lXfixes  $LIBS"
8005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006/* end confdefs.h.  */
8007
8008/* Override any GCC internal prototype to avoid an error.
8009   Use char because int might match the return type of a GCC
8010   builtin and then its argument prototype would still apply.  */
8011#ifdef __cplusplus
8012extern "C"
8013#endif
8014char XFixesQueryExtension ();
8015int
8016main ()
8017{
8018return XFixesQueryExtension ();
8019  ;
8020  return 0;
8021}
8022_ACEOF
8023if ac_fn_c_try_link "$LINENO"; then :
8024  ac_cv_lib_Xfixes_XFixesQueryExtension=yes
8025else
8026  ac_cv_lib_Xfixes_XFixesQueryExtension=no
8027fi
8028rm -f core conftest.err conftest.$ac_objext \
8029    conftest$ac_exeext conftest.$ac_ext
8030LIBS=$ac_check_lib_save_LIBS
8031fi
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesQueryExtension" >&5
8033$as_echo "$ac_cv_lib_Xfixes_XFixesQueryExtension" >&6; }
8034if test "x$ac_cv_lib_Xfixes_XFixesQueryExtension" = xyes; then :
8035  $as_echo "#define HAVE_XFIXES 1" >>confdefs.h
8036
8037		     LIBS="-lXfixes $LIBS"
8038		     xfixes_found=yes
8039fi
8040
8041fi
8042
8043
8044	fi
8045
8046		# Check whether --enable-xcursor was given.
8047if test "${enable_xcursor+set}" = set; then :
8048  enableval=$enable_xcursor;
8049fi
8050
8051
8052	xcursor_found=no
8053	if test x$enable_xcursor != xno; then
8054	    ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
8055"
8056if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
8057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
8058$as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
8059if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
8060  $as_echo_n "(cached) " >&6
8061else
8062  ac_check_lib_save_LIBS=$LIBS
8063LIBS="-lXcursor  $LIBS"
8064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065/* end confdefs.h.  */
8066
8067/* Override any GCC internal prototype to avoid an error.
8068   Use char because int might match the return type of a GCC
8069   builtin and then its argument prototype would still apply.  */
8070#ifdef __cplusplus
8071extern "C"
8072#endif
8073char XcursorImageCreate ();
8074int
8075main ()
8076{
8077return XcursorImageCreate ();
8078  ;
8079  return 0;
8080}
8081_ACEOF
8082if ac_fn_c_try_link "$LINENO"; then :
8083  ac_cv_lib_Xcursor_XcursorImageCreate=yes
8084else
8085  ac_cv_lib_Xcursor_XcursorImageCreate=no
8086fi
8087rm -f core conftest.err conftest.$ac_objext \
8088    conftest$ac_exeext conftest.$ac_ext
8089LIBS=$ac_check_lib_save_LIBS
8090fi
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
8092$as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
8093if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
8094  $as_echo "#define HAVE_XCURSOR 1" >>confdefs.h
8095
8096		     LIBS="-lXcursor $LIBS"
8097		     xcursor_found=yes
8098fi
8099
8100fi
8101
8102
8103	fi
8104
8105		# Check whether --enable-xrender was given.
8106if test "${enable_xrender+set}" = set; then :
8107  enableval=$enable_xrender;
8108fi
8109
8110
8111	xrender_found=no
8112	if test x$enable_xrender != xno; then
8113	    ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "#include <X11/Xlib.h>
8114"
8115if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
8116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryVersion in -lXrender" >&5
8117$as_echo_n "checking for XRenderQueryVersion in -lXrender... " >&6; }
8118if ${ac_cv_lib_Xrender_XRenderQueryVersion+:} false; then :
8119  $as_echo_n "(cached) " >&6
8120else
8121  ac_check_lib_save_LIBS=$LIBS
8122LIBS="-lXrender  $LIBS"
8123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124/* end confdefs.h.  */
8125
8126/* Override any GCC internal prototype to avoid an error.
8127   Use char because int might match the return type of a GCC
8128   builtin and then its argument prototype would still apply.  */
8129#ifdef __cplusplus
8130extern "C"
8131#endif
8132char XRenderQueryVersion ();
8133int
8134main ()
8135{
8136return XRenderQueryVersion ();
8137  ;
8138  return 0;
8139}
8140_ACEOF
8141if ac_fn_c_try_link "$LINENO"; then :
8142  ac_cv_lib_Xrender_XRenderQueryVersion=yes
8143else
8144  ac_cv_lib_Xrender_XRenderQueryVersion=no
8145fi
8146rm -f core conftest.err conftest.$ac_objext \
8147    conftest$ac_exeext conftest.$ac_ext
8148LIBS=$ac_check_lib_save_LIBS
8149fi
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryVersion" >&5
8151$as_echo "$ac_cv_lib_Xrender_XRenderQueryVersion" >&6; }
8152if test "x$ac_cv_lib_Xrender_XRenderQueryVersion" = xyes; then :
8153  $as_echo "#define HAVE_XRENDER 1" >>confdefs.h
8154
8155		     LIBS="-lXrender $LIBS"
8156		     xrender_found=yes
8157fi
8158
8159fi
8160
8161
8162	fi
8163
8164		ac_fn_c_check_header_compile "$LINENO" "X11/Xregion.h" "ac_cv_header_X11_Xregion_h" "#include <X11/Xlib.h>
8165"
8166if test "x$ac_cv_header_X11_Xregion_h" = xyes; then :
8167  $as_echo "#define HAVE_X11_XREGION_H 1" >>confdefs.h
8168
8169fi
8170
8171
8172
8173		# Extract the first word of "xprop", so it can be a program name with args.
8174set dummy xprop; ac_word=$2
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176$as_echo_n "checking for $ac_word... " >&6; }
8177if ${ac_cv_path_XPROP+:} false; then :
8178  $as_echo_n "(cached) " >&6
8179else
8180  case $XPROP in
8181  [\\/]* | ?:[\\/]*)
8182  ac_cv_path_XPROP="$XPROP" # Let the user override the test with a path.
8183  ;;
8184  *)
8185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186for as_dir in $PATH
8187do
8188  IFS=$as_save_IFS
8189  test -z "$as_dir" && as_dir=.
8190    for ac_exec_ext in '' $ac_executable_extensions; do
8191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8192    ac_cv_path_XPROP="$as_dir/$ac_word$ac_exec_ext"
8193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194    break 2
8195  fi
8196done
8197  done
8198IFS=$as_save_IFS
8199
8200  ;;
8201esac
8202fi
8203XPROP=$ac_cv_path_XPROP
8204if test -n "$XPROP"; then
8205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPROP" >&5
8206$as_echo "$XPROP" >&6; }
8207else
8208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209$as_echo "no" >&6; }
8210fi
8211
8212
8213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X overlay visuals" >&5
8214$as_echo_n "checking for X overlay visuals... " >&6; }
8215if ${ac_cv_have_overlay+:} false; then :
8216  $as_echo_n "(cached) " >&6
8217else
8218  if test "x$XPROP" != x; then
8219		if $XPROP -root 2>/dev/null | grep -c "SERVER_OVERLAY_VISUALS" >/dev/null; then
8220		    ac_cv_have_overlay=yes
8221		else
8222		    ac_cv_have_overlay=no
8223		fi
8224	    else
8225		ac_cv_have_overlay=no
8226	    fi
8227fi
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_overlay" >&5
8229$as_echo "$ac_cv_have_overlay" >&6; }
8230
8231	if test x$ac_cv_have_overlay = xyes; then
8232	    $as_echo "#define HAVE_OVERLAY 1" >>confdefs.h
8233
8234	fi
8235
8236	# Make symlinks since UNIX/Linux is case sensitive,
8237	# but Cygwin in general not.
8238	case $host_os in
8239	    cygwin*)
8240		HLINKS="#"
8241	    ;;
8242	    *)
8243	    ;;
8244	esac
8245	# Make symlinks since UNIX/Linux is case sensitive,
8246	# but only if explicitly configured (default=no)
8247	if test "x$with_links" != xyes; then
8248		HLINKS="#"
8249	fi
8250
8251	# Install/Uninstall FLUID application support files
8252	INSTALL_DESKTOP="install-linux"
8253	UNINSTALL_DESKTOP="uninstall-linux"
8254	;;
8255esac
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268case "$host_os" in
8269    *bsd* | darwin*)
8270	# *BSD
8271	CAT1EXT=0
8272	CAT3EXT=0
8273	CAT6EXT=0
8274	;;
8275    irix*)
8276	# SGI IRIX
8277	CAT1EXT=z
8278	CAT3EXT=z
8279	CAT6EXT=z
8280	;;
8281    *)
8282	# All others
8283	CAT1EXT=1
8284	CAT3EXT=3
8285	CAT6EXT=6
8286	;;
8287esac
8288
8289
8290
8291
8292
8293if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/usr"; then
8294    case "$host_os" in
8295	*bsd* | darwin* | linux*)
8296	    # *BSD, Darwin, and Linux
8297	    mandir="\${prefix}/share/man"
8298	    ;;
8299	irix*)
8300	    # SGI IRIX
8301	    mandir="\${prefix}/share/catman"
8302	    ;;
8303    esac
8304fi
8305
8306if test "$prefix" = NONE; then
8307    prefix=/usr/local
8308fi
8309
8310if test "$exec_prefix" = NONE; then
8311    exec_prefix="\${prefix}"
8312fi
8313
8314case $host_os in
8315    irix1-5*)
8316	;;
8317    irix*)
8318	if test "$libdir" = "\${exec_prefix}/lib" -a "$exec_prefix" = "\${prefix}" -a "$prefix" = "/usr"; then
8319	    libdir="/usr/lib32"
8320	fi
8321	;;
8322esac
8323
8324MAKEDEPEND="\$(CXX) -M"
8325
8326
8327
8328if test -n "$GCC"; then
8329    # Show all standard warnings + unused variables, conversion errors,
8330    # and inlining problems when compiling...
8331    OPTIM="-Wall -Wunused -Wno-format-y2k $OPTIM"
8332
8333    # The following additional warnings are useful for tracking down problems...
8334    #OPTIM="-Wshadow -Wconversion $OPTIM"
8335
8336    # We know that Carbon is deprecated on OS X 10.4. To avoid hundreds of warnings
8337    # we will temporarily disable 'deprecated' warnings on OS X.
8338    case $host_os in
8339	darwin1-7)
8340	    ;;
8341	darwin*)
8342	    OPTIM="-Wno-deprecated-declarations $OPTIM"
8343	    ;;
8344    esac
8345
8346    # Set the default compiler optimizations...
8347    if test -z "$DEBUGFLAG"; then
8348	#
8349	# Note: Can't use -fomit-frame-pointer - prevents tools like
8350	#       libsafe from working!
8351	#
8352	#       Don't use -fforce-mem, -fforce-addr, or -fcaller-saves.
8353	#       They all seem to make either no difference or enlarge
8354	#       the code by a few hundred bytes.
8355	#
8356
8357	if test "x$with_optim" != x; then
8358	    OPTIM="$with_optim $OPTIM"
8359	fi
8360    fi
8361
8362    # Generate position-independent code when needed...
8363    if test $PICFLAG = 1; then
8364	OPTIM="$OPTIM -fPIC"
8365    fi
8366
8367    # See if GCC supports -fno-exceptions...
8368    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fno-exceptions" >&5
8369$as_echo_n "checking if GCC supports -fno-exceptions... " >&6; }
8370    OLDCFLAGS="$CFLAGS"
8371    CFLAGS="$CFLAGS -fno-exceptions"
8372    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373/* end confdefs.h.  */
8374
8375int
8376main ()
8377{
8378
8379  ;
8380  return 0;
8381}
8382_ACEOF
8383if ac_fn_c_try_compile "$LINENO"; then :
8384  OPTIM="$OPTIM -fno-exceptions"
8385	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8386$as_echo "yes" >&6; }
8387else
8388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389$as_echo "no" >&6; }
8390fi
8391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392    CFLAGS="$OLDCFLAGS"
8393
8394    # See if GCC supports -fno-strict-aliasing...
8395    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fno-strict-aliasing" >&5
8396$as_echo_n "checking if GCC supports -fno-strict-aliasing... " >&6; }
8397    OLDCFLAGS="$CFLAGS"
8398    CFLAGS="$CFLAGS -fno-strict-aliasing"
8399    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400/* end confdefs.h.  */
8401
8402int
8403main ()
8404{
8405
8406  ;
8407  return 0;
8408}
8409_ACEOF
8410if ac_fn_c_try_compile "$LINENO"; then :
8411  OPTIM="$OPTIM -fno-strict-aliasing"
8412	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8413$as_echo "yes" >&6; }
8414else
8415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416$as_echo "no" >&6; }
8417fi
8418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419    CFLAGS="$OLDCFLAGS"
8420
8421    # See if ld supports -no-undefined...
8422    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld supports -no-undefined" >&5
8423$as_echo_n "checking if ld supports -no-undefined... " >&6; }
8424    OLDLDFLAGS="$LDFLAGS"
8425    LDFLAGS="$LDFLAGS -Wl,-no-undefined"
8426    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427/* end confdefs.h.  */
8428
8429int
8430main ()
8431{
8432
8433  ;
8434  return 0;
8435}
8436_ACEOF
8437if ac_fn_c_try_link "$LINENO"; then :
8438  DSOFLAGS="$DSOFLAGS -Wl,-no-undefined"
8439	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8440$as_echo "yes" >&6; }
8441else
8442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443$as_echo "no" >&6; }
8444fi
8445rm -f core conftest.err conftest.$ac_objext \
8446    conftest$ac_exeext conftest.$ac_ext
8447    LDFLAGS="$OLDLDFLAGS"
8448
8449    # See if ld supports -Bsymbolic-functions...
8450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld supports -Bsymbolic-functions" >&5
8451$as_echo_n "checking if ld supports -Bsymbolic-functions... " >&6; }
8452    OLDLDFLAGS="$LDFLAGS"
8453    LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions"
8454    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455/* end confdefs.h.  */
8456
8457int
8458main ()
8459{
8460
8461  ;
8462  return 0;
8463}
8464_ACEOF
8465if ac_fn_c_try_link "$LINENO"; then :
8466  DSOFLAGS="$DSOFLAGS -Wl,-Bsymbolic-functions"
8467	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8468$as_echo "yes" >&6; }
8469else
8470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471$as_echo "no" >&6; }
8472fi
8473rm -f core conftest.err conftest.$ac_objext \
8474    conftest$ac_exeext conftest.$ac_ext
8475    LDFLAGS="$OLDLDFLAGS"
8476
8477    # See if toolchain supports a sectioned build...
8478    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if toolchain supports sections" >&5
8479$as_echo_n "checking if toolchain supports sections... " >&6; }
8480    OLDLDFLAGS="$LDFLAGS"
8481    OLDCFLAGS="$CFLAGS"
8482    LDFLAGS="$LDFLAGS -Wl,-gc-sections"
8483    CFLAGS="$CFLAGS -ffunction-sections -fdata-sections"
8484    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485/* end confdefs.h.  */
8486
8487int
8488main ()
8489{
8490
8491  ;
8492  return 0;
8493}
8494_ACEOF
8495if ac_fn_c_try_link "$LINENO"; then :
8496  DSOFLAGS="$DSOFLAGS -Wl,-gc-sections"
8497	 OPTIM="$OPTIM -ffunction-sections -fdata-sections"
8498	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8499$as_echo "yes" >&6; }
8500else
8501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502$as_echo "no" >&6; }
8503fi
8504rm -f core conftest.err conftest.$ac_objext \
8505    conftest$ac_exeext conftest.$ac_ext
8506    LDFLAGS="$OLDLDFLAGS"
8507    CFLAGS="$OLDCFLAGS"
8508
8509    # See if we are running Solaris; if so, try the -fpermissive option...
8510    # This option is required on some versions of Solaris to work around
8511    # bugs in the X headers up through Solaris 7.
8512    #
8513    # Unlike the other compiler/optimization settings, this one is placed
8514    # in CFLAGS and CXXFLAGS so that fltk-config will provide the option
8515    # to clients - otherwise client apps will not compile properly...
8516    case $host_os in
8517	solaris*)
8518	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fpermissive" >&5
8519$as_echo_n "checking if GCC supports -fpermissive... " >&6; }
8520
8521	    OLDCFLAGS="$CFLAGS"
8522	    CFLAGS="$CFLAGS -fpermissive"
8523	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524/* end confdefs.h.  */
8525
8526int
8527main ()
8528{
8529
8530  ;
8531  return 0;
8532}
8533_ACEOF
8534if ac_fn_c_try_compile "$LINENO"; then :
8535  CXXFLAGS="$CXXFLAGS -fpermissive"
8536		 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8537$as_echo "yes" >&6; }
8538else
8539  CFLAGS="$OLDCFLAGS"
8540		 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541$as_echo "no" >&6; }
8542fi
8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544	    ;;
8545    esac
8546else
8547    case "$host_os" in
8548	irix*)
8549	    # Running some flavor of IRIX; see which version and
8550	    # set things up according...
8551	    if test "$uversion" -ge 62; then
8552		# We are running IRIX 6.2 or higher; uncomment the following
8553		# lines if you don't have IDO 7.2 or higher:
8554		#
8555		#     CXX="CC -n32 -mips3"
8556		#     CC="cc -n32 -mips3"
8557		#     LD="ld -n32 -mips3"
8558		#     MAKEDEPEND="CC -M"
8559
8560		if test "x`grep abi=n32 /etc/compiler.defaults`" = x; then
8561			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FOR BEST RESULTS BEFORE COMPILING: setenv SGI_ABI \"-n32 -mips3\"" >&5
8562$as_echo "$as_me: WARNING: FOR BEST RESULTS BEFORE COMPILING: setenv SGI_ABI \"-n32 -mips3\"" >&2;}
8563		fi
8564
8565		OPTIM="-fullwarn $OPTIM"
8566	    fi
8567	    if test -z "$DEBUGFLAG"; then
8568		if test "x$with_optim" != x; then
8569		    OPTIM="$with_optim $OPTIM"
8570		else
8571		    OPTIM="-O2 $OPTIM"
8572		    if test $uversion -gt 62; then
8573			OPTIM="-OPT:Olimit=4000 $OPTIM"
8574		    fi
8575		fi
8576	    fi
8577	    ;;
8578	hpux*)
8579	    # Running HP-UX; these options should work for the HP compilers.
8580	    if test -z "$DEBUGFLAG"; then
8581		if test "x$with_optim" != x; then
8582		    OPTIM="$with_optim $OPTIM"
8583		else
8584		    OPTIM="+O2 $OPTIM"
8585		fi
8586	    fi
8587
8588	    if test $PICFLAG = 1; then
8589		OPTIM="+z $OPTIM"
8590	    fi
8591
8592	    CXXFLAGS="$CXXFLAGS +W336,501,736,740,749,829"
8593	    ;;
8594	OSF1*)
8595	    # Running Digital/Tru64 UNIX; these options should work for the
8596	    # Digital/Compaq/NewHP compilers.
8597	    if test -z "$DEBUGFLAG"; then
8598		if test "x$with_optim" != x; then
8599		    OPTIM="$with_optim $OPTIM"
8600		else
8601		    OPTIM="-O2 $OPTIM"
8602		fi
8603	    fi
8604	    ;;
8605	solaris*)
8606	    # Solaris
8607	    if test -z "$DEBUGFLAG"; then
8608		if test "x$with_optim" != x; then
8609		    OPTIM="$with_optim $OPTIM"
8610		else
8611		    OPTIM="-xO3 $OPTIM"
8612		fi
8613	    fi
8614
8615	    if test $PICFLAG = 1; then
8616		OPTIM="-KPIC $OPTIM"
8617	    fi
8618	    ;;
8619	aix*)
8620	    if test -z "$DEBUGFLAG"; then
8621		if test "x$with_optim" != x; then
8622		    OPTIM="$with_optim $OPTIM"
8623		else
8624		    OPTIM="-O2 $OPTIM"
8625		fi
8626	    fi
8627
8628	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The AIX C and C++ compilers are known not to correctly compile the FLTK library." >&5
8629$as_echo "$as_me: WARNING: The AIX C and C++ compilers are known not to correctly compile the FLTK library." >&2;}
8630	    ;;
8631	*)
8632	    # Running some other operating system; inform the user they
8633	    # should contribute the necessary options via the STR form..
8634	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building FLTK with default compiler optimizations" >&5
8635$as_echo "$as_me: WARNING: Building FLTK with default compiler optimizations" >&2;}
8636	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Send the FLTK developers your uname and compiler options via http://www.fltk.org/str.php" >&5
8637$as_echo "$as_me: WARNING: Send the FLTK developers your uname and compiler options via http://www.fltk.org/str.php" >&2;}
8638	    ;;
8639    esac
8640fi
8641
8642OPTIM="$DEBUGFLAG $OPTIM"
8643
8644case $host_os in
8645    darwin*)
8646	if test "x$with_archflags" != x ; then
8647	    CFLAGS="`echo $CFLAGS | sed -e "s/$with_archflags//g"`"
8648	fi
8649	;;
8650esac
8651
8652case $host_os in
8653  mingw*)
8654     # Determine the path where MSys has /usr installed
8655	msyspath=`mount | grep '\/usr ' | cut -d ' ' -f -1 | sed -e 's/\\\/\// g'`
8656     # Then substitute that in the WIN32 path instead of /usr
8657	cat >>confdefs.h <<_ACEOF
8658#define FLTK_DOCDIR "$msyspath/local/share/doc/fltk"
8659_ACEOF
8660
8661    ;;
8662  *)
8663    if test x$prefix = xNONE; then
8664	cat >>confdefs.h <<_ACEOF
8665#define FLTK_DOCDIR "/usr/local/share/doc/fltk"
8666_ACEOF
8667
8668    else
8669	cat >>confdefs.h <<_ACEOF
8670#define FLTK_DOCDIR "$prefix/share/doc/fltk"
8671_ACEOF
8672
8673    fi
8674    ;;
8675esac
8676
8677if test x$prefix = xNONE; then
8678    cat >>confdefs.h <<_ACEOF
8679#define FLTK_DATADIR "/usr/local/share/fltk"
8680_ACEOF
8681
8682else
8683    cat >>confdefs.h <<_ACEOF
8684#define FLTK_DATADIR "$prefix/share/fltk"
8685_ACEOF
8686
8687fi
8688
8689echo ""
8690echo "Configuration Summary"
8691echo "-------------------------------------------------------------------------"
8692
8693case $host_os_gui in
8694    cygwin* | mingw*)
8695	graphics="GDI"
8696	;;
8697    darwin*)
8698	graphics="Quartz"
8699	;;
8700    *)
8701	graphics="X11"
8702	if test x$xft_found = xyes; then
8703	    graphics="$graphics + Xft"
8704	fi
8705	if test x$xdbe_found = xyes; then
8706	    graphics="$graphics + Xdbe"
8707	fi
8708	if test x$xfixes_found = xyes; then
8709	    graphics="$graphics + Xfixes"
8710	fi
8711	if test x$xinerama_found = xyes; then
8712	    graphics="$graphics + Xinerama"
8713	fi
8714	if test x$xcursor_found = xyes; then
8715	    graphics="$graphics + Xcursor"
8716	fi
8717	if test x$xrender_found = xyes; then
8718	    graphics="$graphics + Xrender"
8719	fi
8720	;;
8721esac
8722
8723echo "    Directories: prefix=$prefix"
8724echo "                 bindir=$bindir"
8725echo "                 datadir=$datadir"
8726echo "                 datarootdir=$datarootdir"
8727echo "                 exec_prefix=$exec_prefix"
8728echo "                 includedir=$includedir"
8729echo "                 libdir=$libdir"
8730echo "                 mandir=$mandir"
8731case $host_os in
8732  mingw*)
8733    echo "                 MSys docpath=$msyspath/local/share/doc/fltk"
8734  ;;
8735esac
8736echo "       Graphics: $graphics"
8737
8738if test x$JPEG = x; then
8739    echo "Image Libraries: JPEG=System"
8740else
8741    echo "Image Libraries: JPEG=Builtin"
8742fi
8743if test x$PNG = x; then
8744    echo "                 PNG=System"
8745else
8746    echo "                 PNG=Builtin"
8747fi
8748if test x$ZLIB = x; then
8749    echo "                 ZLIB=System"
8750else
8751    echo "                 ZLIB=Builtin"
8752fi
8753if test x$enable_cairo = xyes; then
8754    echo "                 CAIRO=lib"
8755fi
8756if test x$enable_cairoext = xyes; then
8757    echo "                 CAIRO=internal_use"
8758fi
8759
8760if test x$enable_largefile != xno; then
8761    echo "    Large Files: YES"
8762else
8763    echo "    Large Files: NO"
8764fi
8765
8766if test x$GLDEMOS = x; then
8767    echo "         OpenGL: NO"
8768else
8769    echo "         OpenGL: YES"
8770fi
8771
8772if test x$THREADS = x; then
8773    echo "        Threads: NO"
8774else
8775    echo "        Threads: YES"
8776fi
8777
8778BINARY_DIR=
8779
8780
8781ac_config_headers="$ac_config_headers config.h:configh.in"
8782
8783ac_config_headers="$ac_config_headers FL/abi-version.h:abi-version.in"
8784
8785ac_config_files="$ac_config_files makeinclude fltk.list fltk-config fltk.spec FL/Makefile"
8786
8787cat >confcache <<\_ACEOF
8788# This file is a shell script that caches the results of configure
8789# tests run on this system so they can be shared between configure
8790# scripts and configure runs, see configure's option --config-cache.
8791# It is not useful on other systems.  If it contains results you don't
8792# want to keep, you may remove or edit it.
8793#
8794# config.status only pays attention to the cache file if you give it
8795# the --recheck option to rerun configure.
8796#
8797# `ac_cv_env_foo' variables (set or unset) will be overridden when
8798# loading this file, other *unset* `ac_cv_foo' will be assigned the
8799# following values.
8800
8801_ACEOF
8802
8803# The following way of writing the cache mishandles newlines in values,
8804# but we know of no workaround that is simple, portable, and efficient.
8805# So, we kill variables containing newlines.
8806# Ultrix sh set writes to stderr and can't be redirected directly,
8807# and sets the high bit in the cache file unless we assign to the vars.
8808(
8809  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8810    eval ac_val=\$$ac_var
8811    case $ac_val in #(
8812    *${as_nl}*)
8813      case $ac_var in #(
8814      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8815$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8816      esac
8817      case $ac_var in #(
8818      _ | IFS | as_nl) ;; #(
8819      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8820      *) { eval $ac_var=; unset $ac_var;} ;;
8821      esac ;;
8822    esac
8823  done
8824
8825  (set) 2>&1 |
8826    case $as_nl`(ac_space=' '; set) 2>&1` in #(
8827    *${as_nl}ac_space=\ *)
8828      # `set' does not quote correctly, so add quotes: double-quote
8829      # substitution turns \\\\ into \\, and sed turns \\ into \.
8830      sed -n \
8831	"s/'/'\\\\''/g;
8832	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8833      ;; #(
8834    *)
8835      # `set' quotes correctly as required by POSIX, so do not add quotes.
8836      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8837      ;;
8838    esac |
8839    sort
8840) |
8841  sed '
8842     /^ac_cv_env_/b end
8843     t clear
8844     :clear
8845     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8846     t end
8847     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8848     :end' >>confcache
8849if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8850  if test -w "$cache_file"; then
8851    if test "x$cache_file" != "x/dev/null"; then
8852      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8853$as_echo "$as_me: updating cache $cache_file" >&6;}
8854      if test ! -f "$cache_file" || test -h "$cache_file"; then
8855	cat confcache >"$cache_file"
8856      else
8857        case $cache_file in #(
8858        */* | ?:*)
8859	  mv -f confcache "$cache_file"$$ &&
8860	  mv -f "$cache_file"$$ "$cache_file" ;; #(
8861        *)
8862	  mv -f confcache "$cache_file" ;;
8863	esac
8864      fi
8865    fi
8866  else
8867    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8868$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8869  fi
8870fi
8871rm -f confcache
8872
8873test "x$prefix" = xNONE && prefix=$ac_default_prefix
8874# Let make expand exec_prefix.
8875test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8876
8877DEFS=-DHAVE_CONFIG_H
8878
8879ac_libobjs=
8880ac_ltlibobjs=
8881U=
8882for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8883  # 1. Remove the extension, and $U if already installed.
8884  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8885  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8886  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8887  #    will be set to the directory where LIBOBJS objects are built.
8888  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8889  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8890done
8891LIBOBJS=$ac_libobjs
8892
8893LTLIBOBJS=$ac_ltlibobjs
8894
8895
8896
8897
8898: "${CONFIG_STATUS=./config.status}"
8899ac_write_fail=0
8900ac_clean_files_save=$ac_clean_files
8901ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8903$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8904as_write_fail=0
8905cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8906#! $SHELL
8907# Generated by $as_me.
8908# Run this file to recreate the current configuration.
8909# Compiler output produced by configure, useful for debugging
8910# configure, is in config.log if it exists.
8911
8912debug=false
8913ac_cs_recheck=false
8914ac_cs_silent=false
8915
8916SHELL=\${CONFIG_SHELL-$SHELL}
8917export SHELL
8918_ASEOF
8919cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8920## -------------------- ##
8921## M4sh Initialization. ##
8922## -------------------- ##
8923
8924# Be more Bourne compatible
8925DUALCASE=1; export DUALCASE # for MKS sh
8926if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8927  emulate sh
8928  NULLCMD=:
8929  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8930  # is contrary to our usage.  Disable this feature.
8931  alias -g '${1+"$@"}'='"$@"'
8932  setopt NO_GLOB_SUBST
8933else
8934  case `(set -o) 2>/dev/null` in #(
8935  *posix*) :
8936    set -o posix ;; #(
8937  *) :
8938     ;;
8939esac
8940fi
8941
8942
8943as_nl='
8944'
8945export as_nl
8946# Printing a long string crashes Solaris 7 /usr/bin/printf.
8947as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8948as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8949as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8950# Prefer a ksh shell builtin over an external printf program on Solaris,
8951# but without wasting forks for bash or zsh.
8952if test -z "$BASH_VERSION$ZSH_VERSION" \
8953    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8954  as_echo='print -r --'
8955  as_echo_n='print -rn --'
8956elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8957  as_echo='printf %s\n'
8958  as_echo_n='printf %s'
8959else
8960  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8961    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8962    as_echo_n='/usr/ucb/echo -n'
8963  else
8964    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8965    as_echo_n_body='eval
8966      arg=$1;
8967      case $arg in #(
8968      *"$as_nl"*)
8969	expr "X$arg" : "X\\(.*\\)$as_nl";
8970	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8971      esac;
8972      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8973    '
8974    export as_echo_n_body
8975    as_echo_n='sh -c $as_echo_n_body as_echo'
8976  fi
8977  export as_echo_body
8978  as_echo='sh -c $as_echo_body as_echo'
8979fi
8980
8981# The user is always right.
8982if test "${PATH_SEPARATOR+set}" != set; then
8983  PATH_SEPARATOR=:
8984  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8985    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8986      PATH_SEPARATOR=';'
8987  }
8988fi
8989
8990
8991# IFS
8992# We need space, tab and new line, in precisely that order.  Quoting is
8993# there to prevent editors from complaining about space-tab.
8994# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8995# splitting by setting IFS to empty value.)
8996IFS=" ""	$as_nl"
8997
8998# Find who we are.  Look in the path if we contain no directory separator.
8999as_myself=
9000case $0 in #((
9001  *[\\/]* ) as_myself=$0 ;;
9002  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003for as_dir in $PATH
9004do
9005  IFS=$as_save_IFS
9006  test -z "$as_dir" && as_dir=.
9007    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9008  done
9009IFS=$as_save_IFS
9010
9011     ;;
9012esac
9013# We did not find ourselves, most probably we were run as `sh COMMAND'
9014# in which case we are not to be found in the path.
9015if test "x$as_myself" = x; then
9016  as_myself=$0
9017fi
9018if test ! -f "$as_myself"; then
9019  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9020  exit 1
9021fi
9022
9023# Unset variables that we do not need and which cause bugs (e.g. in
9024# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9025# suppresses any "Segmentation fault" message there.  '((' could
9026# trigger a bug in pdksh 5.2.14.
9027for as_var in BASH_ENV ENV MAIL MAILPATH
9028do eval test x\${$as_var+set} = xset \
9029  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9030done
9031PS1='$ '
9032PS2='> '
9033PS4='+ '
9034
9035# NLS nuisances.
9036LC_ALL=C
9037export LC_ALL
9038LANGUAGE=C
9039export LANGUAGE
9040
9041# CDPATH.
9042(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9043
9044
9045# as_fn_error STATUS ERROR [LINENO LOG_FD]
9046# ----------------------------------------
9047# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9048# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9049# script with STATUS, using 1 if that was 0.
9050as_fn_error ()
9051{
9052  as_status=$1; test $as_status -eq 0 && as_status=1
9053  if test "$4"; then
9054    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9055    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9056  fi
9057  $as_echo "$as_me: error: $2" >&2
9058  as_fn_exit $as_status
9059} # as_fn_error
9060
9061
9062# as_fn_set_status STATUS
9063# -----------------------
9064# Set $? to STATUS, without forking.
9065as_fn_set_status ()
9066{
9067  return $1
9068} # as_fn_set_status
9069
9070# as_fn_exit STATUS
9071# -----------------
9072# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9073as_fn_exit ()
9074{
9075  set +e
9076  as_fn_set_status $1
9077  exit $1
9078} # as_fn_exit
9079
9080# as_fn_unset VAR
9081# ---------------
9082# Portably unset VAR.
9083as_fn_unset ()
9084{
9085  { eval $1=; unset $1;}
9086}
9087as_unset=as_fn_unset
9088# as_fn_append VAR VALUE
9089# ----------------------
9090# Append the text in VALUE to the end of the definition contained in VAR. Take
9091# advantage of any shell optimizations that allow amortized linear growth over
9092# repeated appends, instead of the typical quadratic growth present in naive
9093# implementations.
9094if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9095  eval 'as_fn_append ()
9096  {
9097    eval $1+=\$2
9098  }'
9099else
9100  as_fn_append ()
9101  {
9102    eval $1=\$$1\$2
9103  }
9104fi # as_fn_append
9105
9106# as_fn_arith ARG...
9107# ------------------
9108# Perform arithmetic evaluation on the ARGs, and store the result in the
9109# global $as_val. Take advantage of shells that can avoid forks. The arguments
9110# must be portable across $(()) and expr.
9111if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9112  eval 'as_fn_arith ()
9113  {
9114    as_val=$(( $* ))
9115  }'
9116else
9117  as_fn_arith ()
9118  {
9119    as_val=`expr "$@" || test $? -eq 1`
9120  }
9121fi # as_fn_arith
9122
9123
9124if expr a : '\(a\)' >/dev/null 2>&1 &&
9125   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9126  as_expr=expr
9127else
9128  as_expr=false
9129fi
9130
9131if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9132  as_basename=basename
9133else
9134  as_basename=false
9135fi
9136
9137if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9138  as_dirname=dirname
9139else
9140  as_dirname=false
9141fi
9142
9143as_me=`$as_basename -- "$0" ||
9144$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9145	 X"$0" : 'X\(//\)$' \| \
9146	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9147$as_echo X/"$0" |
9148    sed '/^.*\/\([^/][^/]*\)\/*$/{
9149	    s//\1/
9150	    q
9151	  }
9152	  /^X\/\(\/\/\)$/{
9153	    s//\1/
9154	    q
9155	  }
9156	  /^X\/\(\/\).*/{
9157	    s//\1/
9158	    q
9159	  }
9160	  s/.*/./; q'`
9161
9162# Avoid depending upon Character Ranges.
9163as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9164as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9165as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9166as_cr_digits='0123456789'
9167as_cr_alnum=$as_cr_Letters$as_cr_digits
9168
9169ECHO_C= ECHO_N= ECHO_T=
9170case `echo -n x` in #(((((
9171-n*)
9172  case `echo 'xy\c'` in
9173  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
9174  xy)  ECHO_C='\c';;
9175  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9176       ECHO_T='	';;
9177  esac;;
9178*)
9179  ECHO_N='-n';;
9180esac
9181
9182rm -f conf$$ conf$$.exe conf$$.file
9183if test -d conf$$.dir; then
9184  rm -f conf$$.dir/conf$$.file
9185else
9186  rm -f conf$$.dir
9187  mkdir conf$$.dir 2>/dev/null
9188fi
9189if (echo >conf$$.file) 2>/dev/null; then
9190  if ln -s conf$$.file conf$$ 2>/dev/null; then
9191    as_ln_s='ln -s'
9192    # ... but there are two gotchas:
9193    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9194    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9195    # In both cases, we have to default to `cp -pR'.
9196    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9197      as_ln_s='cp -pR'
9198  elif ln conf$$.file conf$$ 2>/dev/null; then
9199    as_ln_s=ln
9200  else
9201    as_ln_s='cp -pR'
9202  fi
9203else
9204  as_ln_s='cp -pR'
9205fi
9206rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9207rmdir conf$$.dir 2>/dev/null
9208
9209
9210# as_fn_mkdir_p
9211# -------------
9212# Create "$as_dir" as a directory, including parents if necessary.
9213as_fn_mkdir_p ()
9214{
9215
9216  case $as_dir in #(
9217  -*) as_dir=./$as_dir;;
9218  esac
9219  test -d "$as_dir" || eval $as_mkdir_p || {
9220    as_dirs=
9221    while :; do
9222      case $as_dir in #(
9223      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9224      *) as_qdir=$as_dir;;
9225      esac
9226      as_dirs="'$as_qdir' $as_dirs"
9227      as_dir=`$as_dirname -- "$as_dir" ||
9228$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9229	 X"$as_dir" : 'X\(//\)[^/]' \| \
9230	 X"$as_dir" : 'X\(//\)$' \| \
9231	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9232$as_echo X"$as_dir" |
9233    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9234	    s//\1/
9235	    q
9236	  }
9237	  /^X\(\/\/\)[^/].*/{
9238	    s//\1/
9239	    q
9240	  }
9241	  /^X\(\/\/\)$/{
9242	    s//\1/
9243	    q
9244	  }
9245	  /^X\(\/\).*/{
9246	    s//\1/
9247	    q
9248	  }
9249	  s/.*/./; q'`
9250      test -d "$as_dir" && break
9251    done
9252    test -z "$as_dirs" || eval "mkdir $as_dirs"
9253  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9254
9255
9256} # as_fn_mkdir_p
9257if mkdir -p . 2>/dev/null; then
9258  as_mkdir_p='mkdir -p "$as_dir"'
9259else
9260  test -d ./-p && rmdir ./-p
9261  as_mkdir_p=false
9262fi
9263
9264
9265# as_fn_executable_p FILE
9266# -----------------------
9267# Test if FILE is an executable regular file.
9268as_fn_executable_p ()
9269{
9270  test -f "$1" && test -x "$1"
9271} # as_fn_executable_p
9272as_test_x='test -x'
9273as_executable_p=as_fn_executable_p
9274
9275# Sed expression to map a string onto a valid CPP name.
9276as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9277
9278# Sed expression to map a string onto a valid variable name.
9279as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9280
9281
9282exec 6>&1
9283## ----------------------------------- ##
9284## Main body of $CONFIG_STATUS script. ##
9285## ----------------------------------- ##
9286_ASEOF
9287test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9288
9289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9290# Save the log message, to keep $0 and so on meaningful, and to
9291# report actual input values of CONFIG_FILES etc. instead of their
9292# values after options handling.
9293ac_log="
9294This file was extended by $as_me, which was
9295generated by GNU Autoconf 2.69.  Invocation command line was
9296
9297  CONFIG_FILES    = $CONFIG_FILES
9298  CONFIG_HEADERS  = $CONFIG_HEADERS
9299  CONFIG_LINKS    = $CONFIG_LINKS
9300  CONFIG_COMMANDS = $CONFIG_COMMANDS
9301  $ $0 $@
9302
9303on `(hostname || uname -n) 2>/dev/null | sed 1q`
9304"
9305
9306_ACEOF
9307
9308case $ac_config_files in *"
9309"*) set x $ac_config_files; shift; ac_config_files=$*;;
9310esac
9311
9312case $ac_config_headers in *"
9313"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9314esac
9315
9316
9317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9318# Files that config.status was made for.
9319config_files="$ac_config_files"
9320config_headers="$ac_config_headers"
9321
9322_ACEOF
9323
9324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9325ac_cs_usage="\
9326\`$as_me' instantiates files and other configuration actions
9327from templates according to the current configuration.  Unless the files
9328and actions are specified as TAGs, all are instantiated by default.
9329
9330Usage: $0 [OPTION]... [TAG]...
9331
9332  -h, --help       print this help, then exit
9333  -V, --version    print version number and configuration settings, then exit
9334      --config     print configuration, then exit
9335  -q, --quiet, --silent
9336                   do not print progress messages
9337  -d, --debug      don't remove temporary files
9338      --recheck    update $as_me by reconfiguring in the same conditions
9339      --file=FILE[:TEMPLATE]
9340                   instantiate the configuration file FILE
9341      --header=FILE[:TEMPLATE]
9342                   instantiate the configuration header FILE
9343
9344Configuration files:
9345$config_files
9346
9347Configuration headers:
9348$config_headers
9349
9350Report bugs to the package provider."
9351
9352_ACEOF
9353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9354ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9355ac_cs_version="\\
9356config.status
9357configured by $0, generated by GNU Autoconf 2.69,
9358  with options \\"\$ac_cs_config\\"
9359
9360Copyright (C) 2012 Free Software Foundation, Inc.
9361This config.status script is free software; the Free Software Foundation
9362gives unlimited permission to copy, distribute and modify it."
9363
9364ac_pwd='$ac_pwd'
9365srcdir='$srcdir'
9366INSTALL='$INSTALL'
9367test -n "\$AWK" || AWK=awk
9368_ACEOF
9369
9370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9371# The default lists apply if the user does not specify any file.
9372ac_need_defaults=:
9373while test $# != 0
9374do
9375  case $1 in
9376  --*=?*)
9377    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9378    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9379    ac_shift=:
9380    ;;
9381  --*=)
9382    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9383    ac_optarg=
9384    ac_shift=:
9385    ;;
9386  *)
9387    ac_option=$1
9388    ac_optarg=$2
9389    ac_shift=shift
9390    ;;
9391  esac
9392
9393  case $ac_option in
9394  # Handling of the options.
9395  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9396    ac_cs_recheck=: ;;
9397  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9398    $as_echo "$ac_cs_version"; exit ;;
9399  --config | --confi | --conf | --con | --co | --c )
9400    $as_echo "$ac_cs_config"; exit ;;
9401  --debug | --debu | --deb | --de | --d | -d )
9402    debug=: ;;
9403  --file | --fil | --fi | --f )
9404    $ac_shift
9405    case $ac_optarg in
9406    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9407    '') as_fn_error $? "missing file argument" ;;
9408    esac
9409    as_fn_append CONFIG_FILES " '$ac_optarg'"
9410    ac_need_defaults=false;;
9411  --header | --heade | --head | --hea )
9412    $ac_shift
9413    case $ac_optarg in
9414    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9415    esac
9416    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9417    ac_need_defaults=false;;
9418  --he | --h)
9419    # Conflict between --help and --header
9420    as_fn_error $? "ambiguous option: \`$1'
9421Try \`$0 --help' for more information.";;
9422  --help | --hel | -h )
9423    $as_echo "$ac_cs_usage"; exit ;;
9424  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9425  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9426    ac_cs_silent=: ;;
9427
9428  # This is an error.
9429  -*) as_fn_error $? "unrecognized option: \`$1'
9430Try \`$0 --help' for more information." ;;
9431
9432  *) as_fn_append ac_config_targets " $1"
9433     ac_need_defaults=false ;;
9434
9435  esac
9436  shift
9437done
9438
9439ac_configure_extra_args=
9440
9441if $ac_cs_silent; then
9442  exec 6>/dev/null
9443  ac_configure_extra_args="$ac_configure_extra_args --silent"
9444fi
9445
9446_ACEOF
9447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9448if \$ac_cs_recheck; then
9449  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9450  shift
9451  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9452  CONFIG_SHELL='$SHELL'
9453  export CONFIG_SHELL
9454  exec "\$@"
9455fi
9456
9457_ACEOF
9458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9459exec 5>>config.log
9460{
9461  echo
9462  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9463## Running $as_me. ##
9464_ASBOX
9465  $as_echo "$ac_log"
9466} >&5
9467
9468_ACEOF
9469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9470_ACEOF
9471
9472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9473
9474# Handling of arguments.
9475for ac_config_target in $ac_config_targets
9476do
9477  case $ac_config_target in
9478    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:configh.in" ;;
9479    "FL/abi-version.h") CONFIG_HEADERS="$CONFIG_HEADERS FL/abi-version.h:abi-version.in" ;;
9480    "makeinclude") CONFIG_FILES="$CONFIG_FILES makeinclude" ;;
9481    "fltk.list") CONFIG_FILES="$CONFIG_FILES fltk.list" ;;
9482    "fltk-config") CONFIG_FILES="$CONFIG_FILES fltk-config" ;;
9483    "fltk.spec") CONFIG_FILES="$CONFIG_FILES fltk.spec" ;;
9484    "FL/Makefile") CONFIG_FILES="$CONFIG_FILES FL/Makefile" ;;
9485
9486  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9487  esac
9488done
9489
9490
9491# If the user did not use the arguments to specify the items to instantiate,
9492# then the envvar interface is used.  Set only those that are not.
9493# We use the long form for the default assignment because of an extremely
9494# bizarre bug on SunOS 4.1.3.
9495if $ac_need_defaults; then
9496  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9497  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9498fi
9499
9500# Have a temporary directory for convenience.  Make it in the build tree
9501# simply because there is no reason against having it here, and in addition,
9502# creating and moving files from /tmp can sometimes cause problems.
9503# Hook for its removal unless debugging.
9504# Note that there is a small window in which the directory will not be cleaned:
9505# after its creation but before its name has been assigned to `$tmp'.
9506$debug ||
9507{
9508  tmp= ac_tmp=
9509  trap 'exit_status=$?
9510  : "${ac_tmp:=$tmp}"
9511  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9512' 0
9513  trap 'as_fn_exit 1' 1 2 13 15
9514}
9515# Create a (secure) tmp directory for tmp files.
9516
9517{
9518  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9519  test -d "$tmp"
9520}  ||
9521{
9522  tmp=./conf$$-$RANDOM
9523  (umask 077 && mkdir "$tmp")
9524} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9525ac_tmp=$tmp
9526
9527# Set up the scripts for CONFIG_FILES section.
9528# No need to generate them if there are no CONFIG_FILES.
9529# This happens for instance with `./config.status config.h'.
9530if test -n "$CONFIG_FILES"; then
9531
9532
9533ac_cr=`echo X | tr X '\015'`
9534# On cygwin, bash can eat \r inside `` if the user requested igncr.
9535# But we know of no other shell where ac_cr would be empty at this
9536# point, so we can use a bashism as a fallback.
9537if test "x$ac_cr" = x; then
9538  eval ac_cr=\$\'\\r\'
9539fi
9540ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9541if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9542  ac_cs_awk_cr='\\r'
9543else
9544  ac_cs_awk_cr=$ac_cr
9545fi
9546
9547echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9548_ACEOF
9549
9550
9551{
9552  echo "cat >conf$$subs.awk <<_ACEOF" &&
9553  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9554  echo "_ACEOF"
9555} >conf$$subs.sh ||
9556  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9557ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9558ac_delim='%!_!# '
9559for ac_last_try in false false false false false :; do
9560  . ./conf$$subs.sh ||
9561    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9562
9563  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9564  if test $ac_delim_n = $ac_delim_num; then
9565    break
9566  elif $ac_last_try; then
9567    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9568  else
9569    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9570  fi
9571done
9572rm -f conf$$subs.sh
9573
9574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9575cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9576_ACEOF
9577sed -n '
9578h
9579s/^/S["/; s/!.*/"]=/
9580p
9581g
9582s/^[^!]*!//
9583:repl
9584t repl
9585s/'"$ac_delim"'$//
9586t delim
9587:nl
9588h
9589s/\(.\{148\}\)..*/\1/
9590t more1
9591s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9592p
9593n
9594b repl
9595:more1
9596s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9597p
9598g
9599s/.\{148\}//
9600t nl
9601:delim
9602h
9603s/\(.\{148\}\)..*/\1/
9604t more2
9605s/["\\]/\\&/g; s/^/"/; s/$/"/
9606p
9607b
9608:more2
9609s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9610p
9611g
9612s/.\{148\}//
9613t delim
9614' <conf$$subs.awk | sed '
9615/^[^""]/{
9616  N
9617  s/\n//
9618}
9619' >>$CONFIG_STATUS || ac_write_fail=1
9620rm -f conf$$subs.awk
9621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9622_ACAWK
9623cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9624  for (key in S) S_is_set[key] = 1
9625  FS = ""
9626
9627}
9628{
9629  line = $ 0
9630  nfields = split(line, field, "@")
9631  substed = 0
9632  len = length(field[1])
9633  for (i = 2; i < nfields; i++) {
9634    key = field[i]
9635    keylen = length(key)
9636    if (S_is_set[key]) {
9637      value = S[key]
9638      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9639      len += length(value) + length(field[++i])
9640      substed = 1
9641    } else
9642      len += 1 + keylen
9643  }
9644
9645  print line
9646}
9647
9648_ACAWK
9649_ACEOF
9650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9651if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9652  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9653else
9654  cat
9655fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9656  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9657_ACEOF
9658
9659# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9660# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9661# trailing colons and then remove the whole line if VPATH becomes empty
9662# (actually we leave an empty line to preserve line numbers).
9663if test "x$srcdir" = x.; then
9664  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
9665h
9666s///
9667s/^/:/
9668s/[	 ]*$/:/
9669s/:\$(srcdir):/:/g
9670s/:\${srcdir}:/:/g
9671s/:@srcdir@:/:/g
9672s/^:*//
9673s/:*$//
9674x
9675s/\(=[	 ]*\).*/\1/
9676G
9677s/\n//
9678s/^[^=]*=[	 ]*$//
9679}'
9680fi
9681
9682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9683fi # test -n "$CONFIG_FILES"
9684
9685# Set up the scripts for CONFIG_HEADERS section.
9686# No need to generate them if there are no CONFIG_HEADERS.
9687# This happens for instance with `./config.status Makefile'.
9688if test -n "$CONFIG_HEADERS"; then
9689cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9690BEGIN {
9691_ACEOF
9692
9693# Transform confdefs.h into an awk script `defines.awk', embedded as
9694# here-document in config.status, that substitutes the proper values into
9695# config.h.in to produce config.h.
9696
9697# Create a delimiter string that does not exist in confdefs.h, to ease
9698# handling of long lines.
9699ac_delim='%!_!# '
9700for ac_last_try in false false :; do
9701  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9702  if test -z "$ac_tt"; then
9703    break
9704  elif $ac_last_try; then
9705    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9706  else
9707    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9708  fi
9709done
9710
9711# For the awk script, D is an array of macro values keyed by name,
9712# likewise P contains macro parameters if any.  Preserve backslash
9713# newline sequences.
9714
9715ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9716sed -n '
9717s/.\{148\}/&'"$ac_delim"'/g
9718t rset
9719:rset
9720s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
9721t def
9722d
9723:def
9724s/\\$//
9725t bsnl
9726s/["\\]/\\&/g
9727s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9728D["\1"]=" \3"/p
9729s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
9730d
9731:bsnl
9732s/["\\]/\\&/g
9733s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9734D["\1"]=" \3\\\\\\n"\\/p
9735t cont
9736s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9737t cont
9738d
9739:cont
9740n
9741s/.\{148\}/&'"$ac_delim"'/g
9742t clear
9743:clear
9744s/\\$//
9745t bsnlc
9746s/["\\]/\\&/g; s/^/"/; s/$/"/p
9747d
9748:bsnlc
9749s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9750b cont
9751' <confdefs.h | sed '
9752s/'"$ac_delim"'/"\\\
9753"/g' >>$CONFIG_STATUS || ac_write_fail=1
9754
9755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9756  for (key in D) D_is_set[key] = 1
9757  FS = ""
9758}
9759/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9760  line = \$ 0
9761  split(line, arg, " ")
9762  if (arg[1] == "#") {
9763    defundef = arg[2]
9764    mac1 = arg[3]
9765  } else {
9766    defundef = substr(arg[1], 2)
9767    mac1 = arg[2]
9768  }
9769  split(mac1, mac2, "(") #)
9770  macro = mac2[1]
9771  prefix = substr(line, 1, index(line, defundef) - 1)
9772  if (D_is_set[macro]) {
9773    # Preserve the white space surrounding the "#".
9774    print prefix "define", macro P[macro] D[macro]
9775    next
9776  } else {
9777    # Replace #undef with comments.  This is necessary, for example,
9778    # in the case of _POSIX_SOURCE, which is predefined and required
9779    # on some systems where configure will not decide to define it.
9780    if (defundef == "undef") {
9781      print "/*", prefix defundef, macro, "*/"
9782      next
9783    }
9784  }
9785}
9786{ print }
9787_ACAWK
9788_ACEOF
9789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9790  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9791fi # test -n "$CONFIG_HEADERS"
9792
9793
9794eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
9795shift
9796for ac_tag
9797do
9798  case $ac_tag in
9799  :[FHLC]) ac_mode=$ac_tag; continue;;
9800  esac
9801  case $ac_mode$ac_tag in
9802  :[FHL]*:*);;
9803  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9804  :[FH]-) ac_tag=-:-;;
9805  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9806  esac
9807  ac_save_IFS=$IFS
9808  IFS=:
9809  set x $ac_tag
9810  IFS=$ac_save_IFS
9811  shift
9812  ac_file=$1
9813  shift
9814
9815  case $ac_mode in
9816  :L) ac_source=$1;;
9817  :[FH])
9818    ac_file_inputs=
9819    for ac_f
9820    do
9821      case $ac_f in
9822      -) ac_f="$ac_tmp/stdin";;
9823      *) # Look for the file first in the build tree, then in the source tree
9824	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
9825	 # because $ac_f cannot contain `:'.
9826	 test -f "$ac_f" ||
9827	   case $ac_f in
9828	   [\\/$]*) false;;
9829	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9830	   esac ||
9831	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9832      esac
9833      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9834      as_fn_append ac_file_inputs " '$ac_f'"
9835    done
9836
9837    # Let's still pretend it is `configure' which instantiates (i.e., don't
9838    # use $as_me), people would be surprised to read:
9839    #    /* config.h.  Generated by config.status.  */
9840    configure_input='Generated from '`
9841	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9842	`' by configure.'
9843    if test x"$ac_file" != x-; then
9844      configure_input="$ac_file.  $configure_input"
9845      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9846$as_echo "$as_me: creating $ac_file" >&6;}
9847    fi
9848    # Neutralize special characters interpreted by sed in replacement strings.
9849    case $configure_input in #(
9850    *\&* | *\|* | *\\* )
9851       ac_sed_conf_input=`$as_echo "$configure_input" |
9852       sed 's/[\\\\&|]/\\\\&/g'`;; #(
9853    *) ac_sed_conf_input=$configure_input;;
9854    esac
9855
9856    case $ac_tag in
9857    *:-:* | *:-) cat >"$ac_tmp/stdin" \
9858      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9859    esac
9860    ;;
9861  esac
9862
9863  ac_dir=`$as_dirname -- "$ac_file" ||
9864$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9865	 X"$ac_file" : 'X\(//\)[^/]' \| \
9866	 X"$ac_file" : 'X\(//\)$' \| \
9867	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9868$as_echo X"$ac_file" |
9869    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9870	    s//\1/
9871	    q
9872	  }
9873	  /^X\(\/\/\)[^/].*/{
9874	    s//\1/
9875	    q
9876	  }
9877	  /^X\(\/\/\)$/{
9878	    s//\1/
9879	    q
9880	  }
9881	  /^X\(\/\).*/{
9882	    s//\1/
9883	    q
9884	  }
9885	  s/.*/./; q'`
9886  as_dir="$ac_dir"; as_fn_mkdir_p
9887  ac_builddir=.
9888
9889case "$ac_dir" in
9890.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9891*)
9892  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9893  # A ".." for each directory in $ac_dir_suffix.
9894  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9895  case $ac_top_builddir_sub in
9896  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9897  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9898  esac ;;
9899esac
9900ac_abs_top_builddir=$ac_pwd
9901ac_abs_builddir=$ac_pwd$ac_dir_suffix
9902# for backward compatibility:
9903ac_top_builddir=$ac_top_build_prefix
9904
9905case $srcdir in
9906  .)  # We are building in place.
9907    ac_srcdir=.
9908    ac_top_srcdir=$ac_top_builddir_sub
9909    ac_abs_top_srcdir=$ac_pwd ;;
9910  [\\/]* | ?:[\\/]* )  # Absolute name.
9911    ac_srcdir=$srcdir$ac_dir_suffix;
9912    ac_top_srcdir=$srcdir
9913    ac_abs_top_srcdir=$srcdir ;;
9914  *) # Relative name.
9915    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9916    ac_top_srcdir=$ac_top_build_prefix$srcdir
9917    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9918esac
9919ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9920
9921
9922  case $ac_mode in
9923  :F)
9924  #
9925  # CONFIG_FILE
9926  #
9927
9928  case $INSTALL in
9929  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9930  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9931  esac
9932_ACEOF
9933
9934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9935# If the template does not know about datarootdir, expand it.
9936# FIXME: This hack should be removed a few years after 2.60.
9937ac_datarootdir_hack=; ac_datarootdir_seen=
9938ac_sed_dataroot='
9939/datarootdir/ {
9940  p
9941  q
9942}
9943/@datadir@/p
9944/@docdir@/p
9945/@infodir@/p
9946/@localedir@/p
9947/@mandir@/p'
9948case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9949*datarootdir*) ac_datarootdir_seen=yes;;
9950*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9951  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9952$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9953_ACEOF
9954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9955  ac_datarootdir_hack='
9956  s&@datadir@&$datadir&g
9957  s&@docdir@&$docdir&g
9958  s&@infodir@&$infodir&g
9959  s&@localedir@&$localedir&g
9960  s&@mandir@&$mandir&g
9961  s&\\\${datarootdir}&$datarootdir&g' ;;
9962esac
9963_ACEOF
9964
9965# Neutralize VPATH when `$srcdir' = `.'.
9966# Shell code in configure.ac might set extrasub.
9967# FIXME: do we really want to maintain this feature?
9968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9969ac_sed_extra="$ac_vpsub
9970$extrasub
9971_ACEOF
9972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9973:t
9974/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9975s|@configure_input@|$ac_sed_conf_input|;t t
9976s&@top_builddir@&$ac_top_builddir_sub&;t t
9977s&@top_build_prefix@&$ac_top_build_prefix&;t t
9978s&@srcdir@&$ac_srcdir&;t t
9979s&@abs_srcdir@&$ac_abs_srcdir&;t t
9980s&@top_srcdir@&$ac_top_srcdir&;t t
9981s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9982s&@builddir@&$ac_builddir&;t t
9983s&@abs_builddir@&$ac_abs_builddir&;t t
9984s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9985s&@INSTALL@&$ac_INSTALL&;t t
9986$ac_datarootdir_hack
9987"
9988eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9989  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9990
9991test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9992  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9993  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
9994      "$ac_tmp/out"`; test -z "$ac_out"; } &&
9995  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9996which seems to be undefined.  Please make sure it is defined" >&5
9997$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9998which seems to be undefined.  Please make sure it is defined" >&2;}
9999
10000  rm -f "$ac_tmp/stdin"
10001  case $ac_file in
10002  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10003  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10004  esac \
10005  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10006 ;;
10007  :H)
10008  #
10009  # CONFIG_HEADER
10010  #
10011  if test x"$ac_file" != x-; then
10012    {
10013      $as_echo "/* $configure_input  */" \
10014      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10015    } >"$ac_tmp/config.h" \
10016      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10017    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10018      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10019$as_echo "$as_me: $ac_file is unchanged" >&6;}
10020    else
10021      rm -f "$ac_file"
10022      mv "$ac_tmp/config.h" "$ac_file" \
10023	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
10024    fi
10025  else
10026    $as_echo "/* $configure_input  */" \
10027      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10028      || as_fn_error $? "could not create -" "$LINENO" 5
10029  fi
10030 ;;
10031
10032
10033  esac
10034
10035done # for ac_tag
10036
10037
10038as_fn_exit 0
10039_ACEOF
10040ac_clean_files=$ac_clean_files_save
10041
10042test $ac_write_fail = 0 ||
10043  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10044
10045
10046# configure is writing to config.log, and then calls config.status.
10047# config.status does its own redirection, appending to config.log.
10048# Unfortunately, on DOS this fails, as config.log is still kept open
10049# by configure, so config.status won't be able to write to it; its
10050# output is simply discarded.  So we exec the FD to /dev/null,
10051# effectively closing config.log, so it can be properly (re)opened and
10052# appended to by config.status.  When coming back to configure, we
10053# need to make the FD available again.
10054if test "$no_create" != yes; then
10055  ac_cs_success=:
10056  ac_config_status_args=
10057  test "$silent" = yes &&
10058    ac_config_status_args="$ac_config_status_args --quiet"
10059  exec 5>/dev/null
10060  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10061  exec 5>>config.log
10062  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10063  # would make configure fail if this is the last instruction.
10064  $ac_cs_success || as_fn_exit 1
10065fi
10066if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10067  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10068$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10069fi
10070
10071
10072chmod +x fltk-config
10073
10074