--- rpl/Attic/configure 2011/10/03 15:57:51 1.88 +++ rpl/Attic/configure 2011/10/05 13:14:17 1.90 @@ -639,6 +639,8 @@ SEMAPHORES_NOMMES NESTED_FUNCTIONS EXPORT_DYNAMIC C_STANDARD +WHOLE_LIB2 +WHOLE_LIB1 OS HOST GNUPLOT_COMPILATION @@ -673,6 +675,7 @@ LN_S RUNPATH PROFILAGE subdirs +SHARED_MEMORY LIBRPLCAS RPLCAS ABI @@ -793,6 +796,7 @@ with_32bits_abi with_64bits_abi with_rpltools enable_rplcas +enable_shared_memory enable_optimization enable_sysv_ipcs enable_full_static @@ -1467,6 +1471,7 @@ Optional Features: --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-rplcas compile rplcas (default=no) + --enable-shared-memory enable shared memory [default=yes] --enable-optimization set compiler flags [default=environment variables -O3] --enable-sysv-ipcs use SystemV IPC functions [default=guessed] --enable-full-static build static RPL/2 engine [default=shared] @@ -5991,6 +5996,22 @@ fi +# Check whether --enable-shared-memory was given. +if test "${enable_shared_memory+set}" = set; then : + enableval=$enable_shared_memory; +if test "$enableval" = "no"; then + SHARED_MEMORY="-USHARED_MEMORY" +else + SHARED_MEMORY="-DSHARED_MEMORY" +fi +else + + SHARED_MEMORY="-USHARED_MEMORY" +fi + + + + # Check whether --enable-optimization was given. if test "${enable_optimization+set}" = set; then : enableval=$enable_optimization; @@ -9348,7 +9369,6 @@ DATE=$(env LC_ALL=C date +'%A %x, %X %Z' MALLOC= case $OS in - Darwin) EXPORT_DYNAMIC=-Wl,-flat_namespace NESTED_FUNCTIONS=-fnested-functions @@ -9471,11 +9491,25 @@ case $OS in C_STANDARD=-std=gnu99 ELF= break ;; +esac + +case $OS in + OS2) + WHOLE_LIB1="" + WHOLE_LIB2="" + break ;; + *) + WHOLE_LIB1="-Wl,-whole-archive" + WHOLE_LIB2="-Wl,-no-whole-archive" + break ;; esac + + +