In the main loop of the router: if the select call fails for
[OpenSRF.git] / Makefile.am
index b2b1f35..fc5acc6 100644 (file)
@@ -30,82 +30,91 @@ export PID                  = @localstatedir@/run/opensrf
 export SOCK                    = @localstatedir@/lock/opensrf
 export LOG                     = @localstatedir@/log/opensrf
 export srcdir                  = @srcdir@
+opensrfincludedir              = @includedir@/opensrf
 
-AM_CFLAGS = $(DEF_CFLAGS)
-
-DOC_FILES = doc/Application-HOWTO.txt \
-           doc/dokuwiki-doc-stubber.pl \
-           doc/OpenSRF-Messaging-Protocol.html \
-           doc/Persist-API.html \
-           doc/Roadmap.txt
-
-EXAMPLES_FILES = examples/fieldmapper2cdbi.xsl \
-                examples/fieldmapper2javascript.xsl \
-                examples/fieldmapper2perl.xsl \
-                examples/gen-fieldmapper.xml \
-                examples/math_bench.pl \
-                examples/multisession-test.pl \
-                examples/register.pl \
-                examples/srfsh_config.xsd \
-                examples/math_xul_client/math \
-                examples/math_xul_client/install.js
-
-strn_compat_FILES = src/ports/strn_compat/strndup.c \
-                   src/ports/strn_compat/strndup.h \
-                   src/ports/strn_compat/strnlen.c \
-                   src/ports/strn_compat/strnlen.h
-
-python_FILES = src/python/opensrf.py \
-              src/python/setup.py \
-              src/python/srfsh.py \
-              src/python/osrf
-
-java_FILES = src/java/deps.inc \
-            src/java/deps.sh \
-            src/java/org
-
-libosrf_FILES = src/libopensrf/basic_client.c \
-               src/libopensrf/osrf_big_hash.c \
-               src/libopensrf/osrf_big_list.c \
-               src/libopensrf/osrfConfig.c
+ACLOCAL_AMFLAGS = -I m4
 
+AM_CFLAGS = $(DEF_CFLAGS)
 
-EXTRA_DIST = $(DOC_FILES) $(EXAMPLES_FILES) $(libosrf_FILES) $(strn_compat_FILES) $(python_FILES) $(java_FILES) autogen.sh src/extras src/gateway/fieldmapper-c-xml-out.pl DCO-1.1.txt LICENSE.txt src/perlmods src/javascript
-
-opensrfincludedir = @includedir@/opensrf
+DISTCLEANFILES = Makefile.in Makefile aclocal.m4 config.guess config.log config.sub config.status configure depcomp install-sh ltmain.sh missing
+
+DOC_FILES = @srcdir@/doc/Application-HOWTO.txt \
+           @srcdir@/doc/dokuwiki-doc-stubber.pl \
+           @srcdir@/doc/OpenSRF-Messaging-Protocol.html \
+           @srcdir@/doc/Persist-API.html \
+           @srcdir@/doc/Roadmap.txt \
+               @srcdir@/AUTHORS \
+               @srcdir@/ChangeLog \
+               @srcdir@/INSTALL \
+               @srcdir@/README
+
+EXAMPLES_FILES = @srcdir@/examples/fieldmapper2cdbi.xsl \
+                @srcdir@/examples/fieldmapper2javascript.xsl \
+                @srcdir@/examples/fieldmapper2perl.xsl \
+                @srcdir@/examples/gen-fieldmapper.xml \
+                @srcdir@/examples/math_bench.pl \
+                @srcdir@/examples/math_client.py \
+                @srcdir@/examples/multisession-test.pl \
+                @srcdir@/examples/register.pl \
+                @srcdir@/examples/srfsh_config.xsd \
+                @srcdir@/examples/math_xul_client/math \
+                @srcdir@/examples/math_xul_client/install.js
+
+strn_compat_FILES = @srcdir@/src/ports/strn_compat/strndup.c \
+                   @srcdir@/src/ports/strn_compat/strndup.h \
+                   @srcdir@/src/ports/strn_compat/strnlen.c \
+                   @srcdir@/src/ports/strn_compat/strnlen.h
+
+python_FILES = @srcdir@/src/python/opensrf.py \
+              @srcdir@/src/python/setup.py \
+              @srcdir@/src/python/srfsh.py \
+              @srcdir@/src/python/osrf
+
+java_FILES = @srcdir@/src/java/deps.inc \
+            @srcdir@/src/java/deps.sh \
+            @srcdir@/src/java/org
+
+libosrf_FILES = @srcdir@/src/libopensrf/basic_client.c \
+               @srcdir@/src/libopensrf/osrf_big_hash.c \
+               @srcdir@/src/libopensrf/osrf_big_list.c \
+               @srcdir@/src/libopensrf/osrfConfig.c
+
+
+EXTRA_DIST = $(DOC_FILES) $(EXAMPLES_FILES) $(libosrf_FILES) $(strn_compat_FILES) $(python_FILES) $(java_FILES) @srcdir@/autogen.sh @srcdir@/src/extras @srcdir@/COPYING @srcdir@/DCO-1.1.txt @srcdir@/LICENSE.txt @srcdir@/src/perl @srcdir@/src/javascript
 
 OSRFINC=@srcdir@/include/opensrf
 
+if BUILDCORE
 opensrfinclude_HEADERS = $(OSRFINC)/log.h \
-                               $(OSRFINC)/md5.h \
-                               $(OSRFINC)/osrf_application.h \
-                               $(OSRFINC)/osrf_app_session.h \
-                               $(OSRFINC)/osrf_big_hash.h \
-                               $(OSRFINC)/osrf_big_list.h \
-                               $(OSRFINC)/osrf_cache.h \
-                               $(OSRFINC)/osrfConfig.h \
-                               $(OSRFINC)/osrf_hash.h \
-                               $(OSRFINC)/osrf_json.h \
-                               $(OSRFINC)/osrf_json_utils.h \
-                               $(OSRFINC)/osrf_json_xml.h \
-                               $(OSRFINC)/osrf_legacy_json.h \
-                               $(OSRFINC)/osrf_list.h \
-                               $(OSRFINC)/osrf_message.h \
-                               $(OSRFINC)/osrf_prefork.h \
-                               $(OSRFINC)/osrf_settings.h \
-                               $(OSRFINC)/osrf_stack.h \
-                               $(OSRFINC)/osrf_system.h \
-                               $(OSRFINC)/osrf_transgroup.h \
-                               $(OSRFINC)/sha.h \
-                               $(OSRFINC)/socket_bundle.h \
-                               $(OSRFINC)/string_array.h \
-                               $(OSRFINC)/transport_client.h \
-                               $(OSRFINC)/transport_message.h \
-                               $(OSRFINC)/transport_session.h \
-                               $(OSRFINC)/utils.h \
-                               $(OSRFINC)/xml_utils.h
-
-
+       $(OSRFINC)/md5.h \
+       $(OSRFINC)/osrf_application.h \
+       $(OSRFINC)/osrf_app_session.h \
+       $(OSRFINC)/osrf_big_hash.h \
+       $(OSRFINC)/osrf_big_list.h \
+       $(OSRFINC)/osrf_cache.h \
+       $(OSRFINC)/osrfConfig.h \
+       $(OSRFINC)/osrf_hash.h \
+       $(OSRFINC)/osrf_json.h \
+       $(OSRFINC)/osrf_json_utils.h \
+       $(OSRFINC)/osrf_json_xml.h \
+       $(OSRFINC)/osrf_legacy_json.h \
+       $(OSRFINC)/osrf_list.h \
+       $(OSRFINC)/osrf_message.h \
+       $(OSRFINC)/osrf_prefork.h \
+       $(OSRFINC)/osrf_settings.h \
+       $(OSRFINC)/osrf_stack.h \
+       $(OSRFINC)/osrf_system.h \
+       $(OSRFINC)/osrf_transgroup.h \
+       $(OSRFINC)/sha.h \
+       $(OSRFINC)/socket_bundle.h \
+       $(OSRFINC)/string_array.h \
+       $(OSRFINC)/transport_client.h \
+       $(OSRFINC)/transport_message.h \
+       $(OSRFINC)/transport_session.h \
+       $(OSRFINC)/utils.h \
+       $(OSRFINC)/xml_utils.h \
+       src/gateway/apachetools.h
+endif
 
 SUBDIRS = src
 
@@ -115,9 +124,6 @@ jserver:
 jserver-install:
        make -s -C src jserver-install
 
-javascript-install:
-       make -s -C src javascript-install
-
-install-data-hook:
-       mv @srcdir@/src/gateway/apachetools.h @includedir@/opensrf/apachetools.h
-
+distclean-local:
+       rm -rf ./autom4te.cache
+       rm -rf ./m4