comparison configure.in @ 1333:c993df7ffdd8

Add -headerpad_max_install_names to compiler switches for MacOS X. This allows the shared library name to be changed later.
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 13 Nov 2011 04:51:14 +0000
parents ec33913d379b
children 751f127439f7
comparison
equal deleted inserted replaced
1332:c0f29ce1a879 1333:c993df7ffdd8
103 [with_gtkmozembed=no], 103 [with_gtkmozembed=no],
104 ) 104 )
105 105
106 dnl ---------------------- check for '--with-arch' switch ----------------- 106 dnl ---------------------- check for '--with-arch' switch -----------------
107 AC_ARG_WITH(arch, 107 AC_ARG_WITH(arch,
108 [ --with-arch specify architecture: one of all, 32bit, 64bit, ppc, ppc64, x86_64, i386], 108 [ --with-arch specify architecture: one of all, 32bit, 64bit, intel, ppc, ppc64, x86_64, i386],
109 [with_arch=$withval], 109 [with_arch=$withval],
110 [with_arch=no], 110 [with_arch=no],
111 ) 111 )
112 112
113 AC_HEADER_STDC 113 AC_HEADER_STDC
185 ARCH="-arch ppc -arch i386" 185 ARCH="-arch ppc -arch i386"
186 ;; 186 ;;
187 64bit) 187 64bit)
188 ARCH="-arch ppc64 -arch x86_64" 188 ARCH="-arch ppc64 -arch x86_64"
189 ;; 189 ;;
190 intel)
191 ARCH="-arch i386 -arch x86_64"
192 ;;
190 *) 193 *)
191 ARCH="-arch $with_arch" 194 ARCH="-arch $with_arch"
192 ;; 195 ;;
193 esac 196 esac
194 SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress" 197 SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress -headerpad_max_install_names"
195 SOSUFFIX=dylib 198 SOSUFFIX=dylib
196 if test $with_gtkframework = yes; then 199 if test $with_gtkframework = yes; then
197 DW_DIR=gtk 200 DW_DIR=gtk
198 LIBS="$LIBS -framework Gtk -framework Glib -framework Cairo" 201 LIBS="$LIBS -framework Gtk -framework Glib -framework Cairo"
199 GTK_CFLAGS="-I/Library/Frameworks/Gtk.framework/Headers -I/Library/Frameworks/Glib.framework/Headers -I/Library/Frameworks/Cairo.framework/Headers" 202 GTK_CFLAGS="-I/Library/Frameworks/Gtk.framework/Headers -I/Library/Frameworks/Glib.framework/Headers -I/Library/Frameworks/Cairo.framework/Headers"