#! /bin/sh
-# From configure.ac Revision: 304465 .
+# From configure.ac Revision: 309033 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.65 for asterisk 1.6.2.
#
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_BISON2" >&5
$as_echo "$ac_cv_path_BISON2" >&6; }
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex that does not ignore fwrite return value" >&5
-$as_echo_n "checking for flex that does not ignore fwrite return value... " >&6; }
-if test "${ac_cv_path_FLEX+set}" = set; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex that ignores fwrite return value" >&5
+$as_echo_n "checking for flex that ignores fwrite return value... " >&6; }
+if test "${ac_cv_FLEX_WORKAROUND+set}" = set; then :
$as_echo_n "(cached) " >&6
else
(umask 077 && mkdir "$tmp")
} || exit $?
cat >$tmp/test.fl <<__EOL__
+%{
#include <unistd.h>
#include <stdio.h>
+static void yyunput (int c,char *buf_ptr ) __attribute__((unused));
+static int input(void) __attribute__((unused));
+%}
+
%%
- username printf( "%s", getlogin() );
+username printf( "%s", getlogin() );
__EOL__
${FLEX} -o ${tmp}/test.c ${tmp}/test.fl
- ${CC} -o ${tmp}/test.o ${tmp}/test.c -Wall -Werror >/dev/null 2>&1
- if test -e "${tmp}/test.o"; then :; else
- need_flex_fwrite_workaround=1
+ ${CC} -o ${tmp}/test.o -c ${tmp}/test.c -Wall -Werror >/dev/null 2>&1
+ if test -e "${tmp}/test.o"; then
+ ac_cv_FLEX_WORKAROUND=no
+ else
+ ac_cv_FLEX_WORKAROUND=yes
fi
rm -rf ${tmp}
fi
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FLEX" >&5
-$as_echo "$ac_cv_path_FLEX" >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_FLEX_WORKAROUND" >&5
+$as_echo "$ac_cv_FLEX_WORKAROUND" >&6; }
-if test "x${need_flex_fwrite_workaround}" = "x1"; then
+if test "x${ac_cv_FLEX_WORKAROUND}" = "xyes"; then
$as_echo "#define NEED_FLEX_FWRITE_WORKAROUND 1" >>confdefs.h
rm -rf ${tmp}
fi
])
-AC_CACHE_CHECK([for flex that does not ignore fwrite return value], [ac_cv_path_FLEX], [
+AC_CACHE_CHECK([for flex that ignores fwrite return value], [ac_cv_FLEX_WORKAROUND], [
if test "x$FLEX" != "x:" ; then
# Create a temporary directory $tmp in $TMPDIR (default /tmp).
# Use mktemp if possible; otherwise fall back on mkdir,
(umask 077 && mkdir "$tmp")
} || exit $?
cat >$tmp/test.fl <<__EOL__
+%{
#include <unistd.h>
#include <stdio.h>
+static void yyunput (int c,char *buf_ptr ) __attribute__((unused));
+static int input(void) __attribute__((unused));
+%}
+
%%
- username printf( "%s", getlogin() );
+username printf( "%s", getlogin() );
__EOL__
${FLEX} -o ${tmp}/test.c ${tmp}/test.fl
- ${CC} -o ${tmp}/test.o ${tmp}/test.c -Wall -Werror >/dev/null 2>&1
- if test -e "${tmp}/test.o"; then :; else
- need_flex_fwrite_workaround=1
+ ${CC} -o ${tmp}/test.o -c ${tmp}/test.c -Wall -Werror >/dev/null 2>&1
+ if test -e "${tmp}/test.o"; then
+ ac_cv_FLEX_WORKAROUND=no
+ else
+ ac_cv_FLEX_WORKAROUND=yes
fi
rm -rf ${tmp}
fi
])
-if test "x${need_flex_fwrite_workaround}" = "x1"; then
+if test "x${ac_cv_FLEX_WORKAROUND}" = "xyes"; then
AC_DEFINE([NEED_FLEX_FWRITE_WORKAROUND], 1, [Define to 1 if your system has a version of flex that does not check the return value of fwrite.])
fi