Browse code

autojunk'd

Kevin Lin authored on 2014/10/08 05:11:26
Showing 3 changed files
... ...
@@ -122,7 +122,6 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/check_gnu_make.m4 \
122 122
 	$(top_srcdir)/m4/cxx_flag_check.m4 $(top_srcdir)/m4/libtool.m4 \
123 123
 	$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
124 124
 	$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
125
-	$(top_srcdir)/../../m4/reorganization/libs/json.m4 \
126 125
 	$(top_srcdir)/configure.ac
127 126
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
128 127
 	$(ACLOCAL_M4)
... ...
@@ -955,9 +954,6 @@ INSTALL_DATA = @INSTALL_DATA@
955 955
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
956 956
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
957 957
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
958
-JSON_CPPFLAGS = @JSON_CPPFLAGS@
959
-JSON_LDFLAGS = @JSON_LDFLAGS@
960
-JSON_LIBS = @JSON_LIBS@
961 958
 LD = @LD@
962 959
 LDFLAGS = @LDFLAGS@
963 960
 LIBOBJS = @LIBOBJS@
... ...
@@ -1069,20 +1065,20 @@ ACLOCAL_AMFLAGS = -I m4
1069 1069
 libclamavcxx_la_SOURCES = bytecode2llvm.cpp ClamBCRTChecks.cpp \
1070 1070
 	ClamBCModule.h ClamBCDiagnostics.h detect.cpp llvm30_compat.h \
1071 1071
 	$(am__append_1)
1072
-@BUILD_EXTERNAL_LLVM_FALSE@libclamavcxx_la_CXXFLAGS = $(LLVM_CXXFLAGS) -DLLVM_VERSION=${LLVM_VERSION} @JSON_CPPFLAGS@
1072
+@BUILD_EXTERNAL_LLVM_FALSE@libclamavcxx_la_CXXFLAGS = $(LLVM_CXXFLAGS) -DLLVM_VERSION=${LLVM_VERSION}
1073 1073
 #$(LLVM_CONFIG): build-llvm
1074 1074
 # we know this will be built with GNU make, so its safe to use GNU make specific
1075 1075
 # $(shell ...)
1076 1076
 #LLVM_DEPS=$(shell $(LLVM_CONFIG) --libfiles jit nativecodegen)
1077
-@BUILD_EXTERNAL_LLVM_TRUE@libclamavcxx_la_CXXFLAGS = $(AM_CPPFLAGS) @LLVMCONFIG_CXXFLAGS@ -fexceptions -DLLVM_VERSION=${LLVM_VERSION} @JSON_CPPFLAGS@
1077
+@BUILD_EXTERNAL_LLVM_TRUE@libclamavcxx_la_CXXFLAGS = $(AM_CPPFLAGS) @LLVMCONFIG_CXXFLAGS@ -fexceptions -DLLVM_VERSION=${LLVM_VERSION}
1078 1078
 @BUILD_EXTERNAL_LLVM_FALSE@libclamavcxx_la_LDFLAGS = -no-undefined
1079
-@BUILD_EXTERNAL_LLVM_TRUE@libclamavcxx_la_LDFLAGS = @LLVMCONFIG_LDFLAGS@ @LLVMCONFIG_LIBS@ @LLVMCONFIG_LDFLAGS@ @JSON_LDFLAGS@
1079
+@BUILD_EXTERNAL_LLVM_TRUE@libclamavcxx_la_LDFLAGS = @LLVMCONFIG_LDFLAGS@ @LLVMCONFIG_LIBS@ @LLVMCONFIG_LDFLAGS@
1080 1080
 @BUILD_EXTERNAL_LLVM_FALSE@libclamavcxx_la_DEPENDENCIES =  \
1081 1081
 @BUILD_EXTERNAL_LLVM_FALSE@	libllvmjit.la libllvmcodegen.la \
1082 1082
 @BUILD_EXTERNAL_LLVM_FALSE@	libllvmsystem.la $(am__append_4) \
1083 1083
 @BUILD_EXTERNAL_LLVM_FALSE@	$(am__append_7)
1084 1084
 @BUILD_EXTERNAL_LLVM_TRUE@libclamavcxx_la_DEPENDENCIES =  \
1085
-@BUILD_EXTERNAL_LLVM_TRUE@	@LLVMCONFIG_LIBFILES@ @JSON_LIBS@ \
1085
+@BUILD_EXTERNAL_LLVM_TRUE@	@LLVMCONFIG_LIBFILES@ \
1086 1086
 @BUILD_EXTERNAL_LLVM_TRUE@	$(am__append_4) $(am__append_7)
1087 1087
 @BUILD_EXTERNAL_LLVM_FALSE@noinst_LTLIBRARIES = libclamavcxx.la \
1088 1088
 @BUILD_EXTERNAL_LLVM_FALSE@	libllvmsystem.la libllvmcodegen.la \
... ...
@@ -5750,8 +5746,8 @@ maintainer-clean-generic:
5750 5750
 	@echo "This command is intended for maintainers to use"
5751 5751
 	@echo "it deletes files that may require special tools to rebuild."
5752 5752
 	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
5753
-@BUILD_EXTERNAL_LLVM_TRUE@clean-local:
5754 5753
 @BUILD_EXTERNAL_LLVM_TRUE@distclean-local:
5754
+@BUILD_EXTERNAL_LLVM_TRUE@clean-local:
5755 5755
 clean: clean-am
5756 5756
 
5757 5757
 clean-am: clean-generic clean-libtool clean-local \
... ...
@@ -3,19 +3,12 @@
3 3
 /* Define if building universal (internal helper macro) */
4 4
 #undef AC_APPLE_UNIVERSAL_BUILD
5 5
 
6
-/* Define to 1 if you have a deprecated version of the 'libjson' library
7
-   (-ljson). */
8
-#undef HAVE_DEPRECATED_JSON
9
-
10 6
 /* Define to 1 if you have the <dlfcn.h> header file. */
11 7
 #undef HAVE_DLFCN_H
12 8
 
13 9
 /* Define to 1 if you have the <inttypes.h> header file. */
14 10
 #undef HAVE_INTTYPES_H
15 11
 
16
-/* Define to 1 if you have the 'libjson' library (-ljson). */
17
-#undef HAVE_JSON
18
-
19 12
 /* Define to 1 if you have the <memory.h> header file. */
20 13
 #undef HAVE_MEMORY_H
21 14
 
... ...
@@ -637,9 +637,6 @@ ac_subst_vars='am__EXEEXT_FALSE
637 637
 am__EXEEXT_TRUE
638 638
 LTLIBOBJS
639 639
 LIBOBJS
640
-JSON_CPPFLAGS
641
-JSON_LDFLAGS
642
-JSON_LIBS
643 640
 BUILD_EXTERNAL_LLVM_FALSE
644 641
 BUILD_EXTERNAL_LLVM_TRUE
645 642
 NO_MISSING_FIELD_INITIALIZERS
... ...
@@ -802,7 +799,6 @@ with_system_llvm
802 802
 enable_llvm
803 803
 enable_optimized
804 804
 enable_all_jit_targets
805
-with_libjson
806 805
 '
807 806
       ac_precious_vars='build_alias
808 807
 host_alias
... ...
@@ -1466,8 +1462,6 @@ Optional Packages:
1466 1466
   --with-system-llvm      Use system llvm instead of built-in, uses full path
1467 1467
                           to llvm-config (default= search /usr/local or /usr
1468 1468
                           if not found in /usr/local)
1469
-  --with-libjson=DIR   path to directory containing libjson (default=
1470
-    /usr/local or /usr if not found in /usr/local)
1471 1469
 
1472 1470
 Some influential environment variables:
1473 1471
   CXX         C++ compiler command
... ...
@@ -15918,220 +15912,6 @@ else
15918 15918
 fi
15919 15919
 
15920 15920
 
15921
-
15922
-
15923
-# Check whether --with-libjson was given.
15924
-if test "${with_libjson+set}" = set; then :
15925
-  withval=$with_libjson;
15926
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjson installation" >&5
15927
-$as_echo_n "checking for libjson installation... " >&6; }
15928
-if test "X$withval" != "Xyes"
15929
-then
15930
-  LIBJSON_HOME="$withval"
15931
-  if test -f "$LIBJSON_HOME/include/json/json.h" -o -f "$LIBJSON_HOME/include/json-c/json.h"
15932
-  then
15933
-    have_json_header="yes"
15934
-  fi
15935
-else
15936
-  LIBJSON_HOME=/usr/local
15937
-  if test -f "$LIBJSON_HOME/include/json/json.h" -o -f "$LIBJSON_HOME/include/json-c/json.h"
15938
-  then
15939
-    have_json_header="yes"
15940
-  else
15941
-    LIBJSON_HOME=/usr
15942
-    if test -f "$LIBJSON_HOME/include/json/json.h" -o -f "$LIBJSON_HOME/include/json-c/json.h"
15943
-    then
15944
-      have_json_header="yes"
15945
-    else
15946
-      have_json_header="no"
15947
-      LIBJSON_HOME=""
15948
-    fi
15949
-  fi
15950
-fi
15951
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBJSON_HOME" >&5
15952
-$as_echo "$LIBJSON_HOME" >&6; }
15953
-
15954
-else
15955
-
15956
-have_json_header="no"
15957
-
15958
-fi
15959
-
15960
-
15961
-if test "X$have_json_header" = "Xyes"
15962
-then
15963
-  if test -f "$LIBJSON_HOME/include/json/json.h"
15964
-  then
15965
-    JSON_INCLUDE="include/json"
15966
-  fi
15967
-  if test -f "$LIBJSON_HOME/include/json-c/json.h"
15968
-  then
15969
-    JSON_INCLUDE="include/json-c"
15970
-  fi
15971
-  if test -z $JSON_INCLUDE
15972
-  then
15973
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: json header lost." >&5
15974
-$as_echo "$as_me: WARNING: json header lost." >&2;}
15975
-  fi
15976
-
15977
-  JSON_CPPFLAGS="-I$LIBJSON_HOME/$JSON_INCLUDE"
15978
-  save_LDFLAGS="$LDFLAGS"
15979
-  save_CFLAGS="$CFLAGS"
15980
-  save_LIBS="$LIBS"
15981
-  LIBS=""
15982
-  JSON_LIBS=""
15983
-  if test "$LIBJSON_HOME" != "/usr"
15984
-  then
15985
-    JSON_LDFLAGS="-L$LIBJSON_HOME/lib"
15986
-    LDFLAGS="$LDFLAGS $JSON_LDFLAGS"
15987
-    CFLAGS="$CFLAGS $JSON_CPPFLAGS"
15988
-  fi
15989
-
15990
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_object_get_ex" >&5
15991
-$as_echo_n "checking for library containing json_object_object_get_ex... " >&6; }
15992
-if ${ac_cv_search_json_object_object_get_ex+:} false; then :
15993
-  $as_echo_n "(cached) " >&6
15994
-else
15995
-  ac_func_search_save_LIBS=$LIBS
15996
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997
-/* end confdefs.h.  */
15998
-
15999
-/* Override any GCC internal prototype to avoid an error.
16000
-   Use char because int might match the return type of a GCC
16001
-   builtin and then its argument prototype would still apply.  */
16002
-#ifdef __cplusplus
16003
-extern "C"
16004
-#endif
16005
-char json_object_object_get_ex ();
16006
-int
16007
-main ()
16008
-{
16009
-return json_object_object_get_ex ();
16010
-  ;
16011
-  return 0;
16012
-}
16013
-_ACEOF
16014
-for ac_lib in '' json-c json; do
16015
-  if test -z "$ac_lib"; then
16016
-    ac_res="none required"
16017
-  else
16018
-    ac_res=-l$ac_lib
16019
-    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16020
-  fi
16021
-  if ac_fn_c_try_link "$LINENO"; then :
16022
-  ac_cv_search_json_object_object_get_ex=$ac_res
16023
-fi
16024
-rm -f core conftest.err conftest.$ac_objext \
16025
-    conftest$ac_exeext
16026
-  if ${ac_cv_search_json_object_object_get_ex+:} false; then :
16027
-  break
16028
-fi
16029
-done
16030
-if ${ac_cv_search_json_object_object_get_ex+:} false; then :
16031
-
16032
-else
16033
-  ac_cv_search_json_object_object_get_ex=no
16034
-fi
16035
-rm conftest.$ac_ext
16036
-LIBS=$ac_func_search_save_LIBS
16037
-fi
16038
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_object_get_ex" >&5
16039
-$as_echo "$ac_cv_search_json_object_object_get_ex" >&6; }
16040
-ac_res=$ac_cv_search_json_object_object_get_ex
16041
-if test "$ac_res" != no; then :
16042
-  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16043
-
16044
-have_json="yes"
16045
-have_deprecated_json="no"
16046
-else
16047
-
16048
-have_json="no"
16049
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_object_get" >&5
16050
-$as_echo_n "checking for library containing json_object_object_get... " >&6; }
16051
-if ${ac_cv_search_json_object_object_get+:} false; then :
16052
-  $as_echo_n "(cached) " >&6
16053
-else
16054
-  ac_func_search_save_LIBS=$LIBS
16055
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056
-/* end confdefs.h.  */
16057
-
16058
-/* Override any GCC internal prototype to avoid an error.
16059
-   Use char because int might match the return type of a GCC
16060
-   builtin and then its argument prototype would still apply.  */
16061
-#ifdef __cplusplus
16062
-extern "C"
16063
-#endif
16064
-char json_object_object_get ();
16065
-int
16066
-main ()
16067
-{
16068
-return json_object_object_get ();
16069
-  ;
16070
-  return 0;
16071
-}
16072
-_ACEOF
16073
-for ac_lib in '' json-c json; do
16074
-  if test -z "$ac_lib"; then
16075
-    ac_res="none required"
16076
-  else
16077
-    ac_res=-l$ac_lib
16078
-    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16079
-  fi
16080
-  if ac_fn_c_try_link "$LINENO"; then :
16081
-  ac_cv_search_json_object_object_get=$ac_res
16082
-fi
16083
-rm -f core conftest.err conftest.$ac_objext \
16084
-    conftest$ac_exeext
16085
-  if ${ac_cv_search_json_object_object_get+:} false; then :
16086
-  break
16087
-fi
16088
-done
16089
-if ${ac_cv_search_json_object_object_get+:} false; then :
16090
-
16091
-else
16092
-  ac_cv_search_json_object_object_get=no
16093
-fi
16094
-rm conftest.$ac_ext
16095
-LIBS=$ac_func_search_save_LIBS
16096
-fi
16097
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_object_get" >&5
16098
-$as_echo "$ac_cv_search_json_object_object_get" >&6; }
16099
-ac_res=$ac_cv_search_json_object_object_get
16100
-if test "$ac_res" != no; then :
16101
-  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16102
-
16103
-have_json="yes"
16104
-have_deprecated_json="yes"
16105
-
16106
-fi
16107
-
16108
-
16109
-fi
16110
-
16111
-
16112
-  CFLAGS="$save_CFLAGS"
16113
-  LDFLAGS="$save_LDFLAGS"
16114
-fi
16115
-
16116
-if test "X$have_json" = "Xyes"; then
16117
-
16118
-$as_echo "#define HAVE_JSON 1" >>confdefs.h
16119
-
16120
-  if test "X$have_deprecated_json" = "Xyes"; then
16121
-
16122
-$as_echo "#define HAVE_DEPRECATED_JSON 1" >>confdefs.h
16123
-
16124
-  fi
16125
-  JSON_LIBS="$LIBS"
16126
-fi
16127
-
16128
-LIBS="$save_LIBS"
16129
-
16130
-
16131
-
16132
-
16133
-
16134
-
16135 15921
 ac_config_files="$ac_config_files Makefile"
16136 15922
 
16137 15923
 cat >confcache <<\_ACEOF