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