configure

changeset 550
04c942cded91
parent 549
ee1bcad035f0
child 551
3721f9c08843
--- a/configure	Sat Jul 21 20:40:02 2018 +0200
+++ b/configure	Mon Jul 23 14:41:21 2018 +0200
@@ -2035,7 +2035,7 @@
 
 
 PACKAGE="mbsePi-apps"
-VERSION="0.8.2"
+VERSION="0.8.3"
 COPYRIGHT="Copyright (C) 2014-2018 Michiel Broek, All Rights Reserved"
 CYEARS="2014-2018"
 
@@ -3570,6 +3570,66 @@
 
 fi
 
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_object_iter_init_default in -ljson-c" >&5
+$as_echo_n "checking for json_object_iter_init_default in -ljson-c... " >&6; }
+if ${ac_cv_lib_json_c_json_object_iter_init_default+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ljson-c  $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char json_object_iter_init_default ();
+int
+main ()
+{
+return json_object_iter_init_default ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_json_c_json_object_iter_init_default=yes
+else
+  ac_cv_lib_json_c_json_object_iter_init_default=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_json_c_json_object_iter_init_default" >&5
+$as_echo "$ac_cv_lib_json_c_json_object_iter_init_default" >&6; }
+if test "x$ac_cv_lib_json_c_json_object_iter_init_default" = xyes; then :
+  result=yes
+else
+  result=no
+fi
+
+if test "$result" = "yes"; then
+  LIBS="$LIBS -ljson-c"
+  for ac_header in json-c/json.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "json-c/json.h" "ac_cv_header_json_c_json_h" "$ac_includes_default"
+if test "x$ac_cv_header_json_c_json_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_JSON_C_JSON_H 1
+_ACEOF
+
+fi
+
+done
+
+else
+  as_fn_error $? "json-c not found" "$LINENO" 5
+fi
+
 #
 # Additional commandline switches
 #

mercurial