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