[PD-cvs] SF.net SVN: pure-data: [9698] trunk/externals/zexy/src/configure.ac

zmoelnig at users.sourceforge.net zmoelnig at users.sourceforge.net
Mon Apr 14 13:43:03 CEST 2008


Revision: 9698
          http://pure-data.svn.sourceforge.net/pure-data/?rev=9698&view=rev
Author:   zmoelnig
Date:     2008-04-14 04:43:01 -0700 (Mon, 14 Apr 2008)

Log Message:
-----------
added option for disabling "-export_dynamic" and 
disabled it by default on w32.
let's see what happens...

Modified Paths:
--------------
    trunk/externals/zexy/src/configure.ac

Modified: trunk/externals/zexy/src/configure.ac
===================================================================
--- trunk/externals/zexy/src/configure.ac	2008-04-13 19:57:30 UTC (rev 9697)
+++ trunk/externals/zexy/src/configure.ac	2008-04-14 11:43:01 UTC (rev 9698)
@@ -37,8 +37,9 @@
 AC_ARG_WITH(extension,[  --with-extension=<ext>  enforce a certain extension for the dynamic library (e.g. dll)])
 AC_ARG_WITH(pdpath,   [  --with-pd=</path/to/pd> where to look for pd-headers and and -libs])
 AC_ARG_ENABLE(PIC,    [  --disable-PIC           disable compilation with PIC-flag])
+AC_ARG_ENABLE(PIC,    [  --disable-exportdynamic disable linkage with the export_dynamic-flag])
+AC_ARG_ENABLE(icc,    [  --enable-icc            enable ICC-support])
 AC_ARG_ENABLE(lpt,    [  --enable-lpt            enable parallelport-support])
-AC_ARG_ENABLE(icc,    [  --enable-icc            enable ICC-support])
 AC_ARG_ENABLE(library,[  --disable-library       split the library into single externals])
 
 if test "x" = "x${enable_PIC}" ; then
@@ -58,7 +59,18 @@
  BUILDLIBRARY="-DZEXY_LIBRARY"
 fi
 
+if test `uname | sed -e 's/^MINGW.*/NT/'` = NT ; 
+then
+  LD=${CC}
+#  LDFLAGS="-shared pd.dll"
+  EXT=dll
+  if test "x" = "x${enable_exportdynamic}" ; then
+    enable_exportdynamic="no"
+  fi
+fi
 
+
+
 if test "x$with_pd" != "x"; then
  if test -d "${with_pd}/src"; then
   AC_MSG_RESULT([adding ${with_pd}/src to INCLUDES])
@@ -275,8 +287,14 @@
 dnl  OK, checks which machines are here now
 dnl this needs some rethinking when cross-compiling (?)
 dnl
-AC_CHECK_LDFLAGS([-export_dynamic -shared])
+dnl AC_CHECK_LDFLAGS([-export_dynamic -shared])
 
+if test "x$enable_exportdynamic" != "xno"; then
+ AC_CHECK_LDFLAGS([-export_dynamic])
+fi
+
+AC_CHECK_LDFLAGS([-shared])
+
 if test `uname -s` = Linux; 
 then
   EXT=pd_linux	
@@ -316,13 +334,6 @@
 	          AC_CHECK_LDFLAGS([-bundle -undefined suppress -flat_namespace])
 #                 )
 
-if test `uname | sed -e 's/^MINGW.*/NT/'` = NT ; 
-then
-  LD=${CC}
-#  LDFLAGS="-shared pd.dll"
-  EXT=dll
-fi
-
 AC_CHECK_LDFLAGS([-shared pd.dll])
 
 if test `uname -s` = IRIX64; 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list