summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <dscho>2003-02-09 18:14:11 +0000
committerdscho <dscho>2003-02-09 18:14:11 +0000
commit722577d8bac9562bec5a0e632e7d7ccab2470a05 (patch)
treeadb4faf16a438ae6eafec0cb71cd33ea6e1a63e1
parent23f45bc7641dbe9b87ba281cf54ba844fe7edcee (diff)
downloadlibtdevnc-722577d8bac9562bec5a0e632e7d7ccab2470a05.tar.gz
libtdevnc-722577d8bac9562bec5a0e632e7d7ccab2470a05.zip
trying again to support OS X
-rw-r--r--configure.ac4
-rw-r--r--examples/Makefile.am6
2 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index afac118..b34506d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -90,6 +90,10 @@ AC_CHECK_FUNCS([ftime gethostbyname gethostname gettimeofday inet_ntoa memmove m
# Check if /dev/vcsa1 exists, if so, define LINUX
AM_CONDITIONAL(LINUX, test -c /dev/vcsa1)
+# Check for OS X specific header
+AC_CHECK_HEADER(ApplicationServices/ApplicationServices.h, HAVE_OSX="true")
+AM_CONDITIONAL(OSX, test "$HAVE_OSX" = "true")
+
# Check for rpm SOURCES path
echo -n "checking for rpm sources path... "
RPMSOURCEDIR="NOT-FOUND"
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 4dc1498..5a76ecf 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -2,10 +2,14 @@ if HAVE_LIBPTHREAD
BACKGROUND_TEST=blooptest
endif
+if OSX
+MAC=mac
+endif
+
noinst_HEADERS=radon.h
noinst_PROGRAMS=example pnmshow regiontest pnmshow24 fontsel \
- vncev storepasswd $(BACKGROUND_TEST)
+ vncev storepasswd $(BACKGROUND_TEST) $(MAC)
LDADD = -L.. -lvncserver