@@ -1435,6 +1435,52 @@ fi
14351435
14361436} # ac_fn_c_try_compile
14371437
1438+# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1439+# ---------------------------------------------
1440+# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1441+# accordingly.
1442+ac_fn_c_check_decl ()
1443+{
1444+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445+ as_decl_name=`echo $2|sed 's/ *(.*//'`
1446+ as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1447+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1448+$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1449+if eval \${$3+:} false; then :
1450+ $as_echo_n "(cached) " >&6
1451+else
1452+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1453+/* end confdefs.h. */
1454+$4
1455+int
1456+main ()
1457+{
1458+#ifndef $as_decl_name
1459+#ifdef __cplusplus
1460+ (void) $as_decl_use;
1461+#else
1462+ (void) $as_decl_name;
1463+#endif
1464+#endif
1465+
1466+ ;
1467+ return 0;
1468+}
1469+_ACEOF
1470+if ac_fn_c_try_compile "$LINENO"; then :
1471+ eval "$3=yes"
1472+else
1473+ eval "$3=no"
1474+fi
1475+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1476+fi
1477+eval ac_res=\$$3
1478+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1479+$as_echo "$ac_res" >&6; }
1480+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1481+
1482+} # ac_fn_c_check_decl
1483+
14381484# ac_fn_c_try_cpp LINENO
14391485# ----------------------
14401486# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
@@ -2109,7 +2155,7 @@ if test "${with_compiler+set}" = set; then :
21092155fi
21102156
21112157
2112−# Check headers and functions required
2158+# XXX Do this only for linux
21132159ac_ext=c
21142160ac_cpp='$CPP $CPPFLAGS'
21152161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -2900,6 +2946,32 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
29002946ac_compiler_gnu=$ac_cv_c_compiler_gnu
29012947
29022948
2949+ac_fn_c_check_decl "$LINENO" "IN_MASK_CREATE" "ac_cv_have_decl_IN_MASK_CREATE" "#include <sys/inotify.h>
2950+"
2951+if test "x$ac_cv_have_decl_IN_MASK_CREATE" = xyes; then :
2952+ ac_have_decl=1
2953+else
2954+ ac_have_decl=0
2955+fi
2956+
2957+cat >>confdefs.h <<_ACEOF
2958+#define HAVE_DECL_IN_MASK_CREATE $ac_have_decl
2959+_ACEOF
2960+
2961+ac_fn_c_check_decl "$LINENO" "IN_EXCL_UNLINK" "ac_cv_have_decl_IN_EXCL_UNLINK" "#include <sys/inotify.h>
2962+"
2963+if test "x$ac_cv_have_decl_IN_EXCL_UNLINK" = xyes; then :
2964+ ac_have_decl=1
2965+else
2966+ ac_have_decl=0
2967+fi
2968+
2969+cat >>confdefs.h <<_ACEOF
2970+#define HAVE_DECL_IN_EXCL_UNLINK $ac_have_decl
2971+_ACEOF
2972+
2973+
2974+# Check headers and functions required
29032975ac_ext=c
29042976ac_cpp='$CPP $CPPFLAGS'
29052977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3322,7 +3394,7 @@ done
33223394
33233395
33243396# Output
3325−ac_config_headers="$ac_config_headers src/Streamly/Internal/Data/Time/config.h"
3397+ac_config_headers="$ac_config_headers src/config.h"
33263398
33273399cat >confcache <<\_ACEOF
33283400# This file is a shell script that caches the results of configure
@@ -3996,7 +4068,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39964068for ac_config_target in $ac_config_targets
39974069do
39984070 case $ac_config_target in
3999− "src/Streamly/Internal/Data/Time/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/Streamly/Internal/Data/Time/config.h" ;;
4071+ "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
40004072
40014073 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
40024074 esac