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