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