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