Changeset 1156


Ignore:
Timestamp:
14/01/09 16:43:38 (3 years ago)
Author:
Freddie Akeroyd
Message:

refs #115

Location:
branches/4.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/bindings/idl/Makefile.am

    r1140 r1156  
    3939libNeXusIDL_API_la_SOURCES = NeXusIDL-API.c handle.c handle.h 
    4040libNeXusIDL_API_la_LIBADD = $(top_builddir)/src/libNeXus.la 
    41 libNeXusIDL_API_la_LDFLAGS = @SHARED_LDFLAGS@ -Wl,--no-undefined -L$(IDLROOT)/bin/bin.linux.$(IDLARCH) -lidl $(LDFLAGS) 
     41libNeXusIDL_API_la_LDFLAGS = @SHARED_LDFLAGS@ -Wl,--no-undefined -L$(IDLROOT)/bin/$(IDL_HOST) -lidl $(LDFLAGS) 
    4242 
    4343AM_CPPFLAGS = -I$(IDLROOT)/external/include 
     44 
     45install-exec-hook : 
     46        ( cd $(DESTDIR)$(libdir); ln -s libNeXusIDL-API.so NeXusIDL-API.so ) 
     47 
     48NeXusIDL-API.so : libNeXusIDL-API.la 
     49        ln -sf .libs/libNeXusIDL-API.so $@ 
     50 
     51CLEANFILES = NeXusIDL-API.so 
    4452 
    4553EXTRA_DIST = \ 
  • branches/4.2/configure.ac

    r1144 r1156  
    6060AC_ARG_ENABLE([debug], AC_HELP_STRING([--enable-debug],[Turn off optimisation]), [enable_debug=$enableval],[enable_debug=no]) 
    6161 
     62AC_ARG_ENABLE([32bit], AC_HELP_STRING([--enable-32bit],[build 32bit binary on 64 bit computer]), [enable_32bit=$enableval],[enable_32bit=no]) 
     63 
    6264dnl Checks for programs. 
    6365AC_ARG_WITH([cc], AC_HELP_STRING([--with-cc=c compiler], [Specify name of C compiler]), 
     
    183185AM_CONDITIONAL(HAVE_IDL, [test "$IDLROOT" != ""]) 
    184186 
    185 dnl Work out the architecture for IDL 
    186 if test -n "IDLROOT" ; then 
    187     AS_CASE([$build_cpu], [x86|i386|i686], [IDLARCH=x86], [IDLARCH=$build_cpu]) 
    188     AC_SUBST(IDLARCH) 
    189 fi 
    190187 
    191188AC_ARG_WITH([doxygen], AC_HELP_STRING([--with-doxygen=/path/to/doxygen], [Specify path to doxygen]), [with_doxygen=$withval], [with_doxygen=no]) 
     
    290287AM_CONDITIONAL(HAVE_MS_LIB, [test ! -z "$MS_LIB"]) 
    291288 
     289# strict aliasing causes issues with casts from NXmalloc() 
     290CFLAGS="-fno-strict-aliasing" 
     291CXXFLAGS="-fno-strict-aliasing" 
     292 
    292293# check for debug 
    293294if test "$enable_debug" = "yes"; then 
    294     CFLAGS="-O0 -g" 
    295     CXXFLAGS="-O0 -g" 
     295    CFLAGS="$CFLAGS -O0 -g" 
     296    CXXFLAGS="$CXXFLAGS -O0 -g" 
     297fi 
     298 
     299if test "$enable_32bit" = "yes"; then 
     300    CFLAGS="$CFLAGS -m32" 
     301    CXXFLAGS="$CXXFLAGS -m32" 
    296302fi 
    297303 
     
    337343AC_SUBST(LIBXML2_CFLAGS) 
    338344LIBXML2_CFLAGS='`xml2-config --cflags`' 
     345 
     346# set up for linux here - mac is covered in the case $host statement 
     347if test $enable_32bit = yes; then 
     348    IDL_HOST="bin.linux.x86"    # force 32 bit on a 64 bit machine 
     349else 
     350    IDL_HOST="bin.linux.$build_cpu" 
     351fi 
     352AC_SUBST(IDL_HOST) 
    339353 
    340354case $host in 
     
    389403dnl           archive_cmds='$CC -dynamiclib -single_module' 
    390404dnl     fi 
     405        if test $enable_32bit = yes; then 
     406            IDL_HOST="bin.darwin.i386" # force 32bit build 
     407        else 
     408            IDL_HOST="bin.darwin.i386" 
     409        fi 
    391410        ;; 
    392411esac 
Note: See TracChangeset for help on using the changeset viewer.