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