dnl Bitmap to EPS/PDF converion program AC_INIT(b2main.c) AC_CONFIG_HEADER(config.h) AC_PROG_CC AC_PROG_CPP AC_CHECK_PROG(RANLIB,ranlib,ranlib,[echo Skipping ranlib]) LIBZ="" LIBBZ2="" BIFDEFS="" BIFLIBS="" BIFCONF="echo bifconf not available:" AC_CHECK_PROG(BIFCONF,bifconf,bifconf,[echo bifconf not available:]) BIFDEFS=`bifconf | grep CPPFLAGS | cut -f 2 -d :` BIFLIBS=`bifconf | grep LIBRARIES | cut -f 2 -d :` AC_HEADER_CHECK(zlib.h, [LIBZ="-lz";AC_DEFINE(HAVE_ZLIB_H)]) AC_HEADER_CHECK(bzlib.h, [LIBBZ2="-lbz2";AC_DEFINE(HAVE_BZLIB_H)]) AC_SUBST(RANLIB) AC_SUBST(LIBZ) AC_SUBST(LIBBZ2) AC_SUBST(BIFDEFS) AC_SUBST(BIFLIBS) AC_OUTPUT(Makefile) AC_OUTPUT(Makefile-shared-solaris-workshop) AC_OUTPUT(Makefile-shared-linux) AC_OUTPUT(bmeps-gui) AC_OUTPUT(Java/compile-archive) chmod 755 Java/compile-archive echo " " echo For a normal build use the file \"Makefile\" and proceed with echo " make" echo " make install" echo to install the software. This is what I recommend to the majority echo of users. echo " " echo To build shared libraries on Linux systems echo use \"Makefile-shared-linux\", run echo " make -f Makefile-shared-linux" echo " make -f Makefile-shared-linux install" echo " ldconfig" echo to build and install the software. This is only recommended for echo experienced users, developers and people creating Linux and echo LaTeX distributions or binary installation packages. echo Make sure the /usr/local/lib directory is searched for '*.so' files echo before you run ldconfig. echo On Fedora Core or CentOS check the files in /etc/ld.so.conf.d echo whether or not at least one file lists /usr/local/lib. echo If the directory is not listed create a file echo /etc/ld.so.conf.d/usr-local.conf containing one line echo "/usr/local/lib" '(without the quotes).' echo Normally you should have done this when installing the dklibs echo library set as shared libraries. echo " " echo To build shared libraries on Solaris systems using the echo Workshop C/C++ compilers use \"Makefile-shared-solaris-workshop\", run echo " make -f Makefile-shared-solaris-workshop" echo " make -f Makefile-shared-solaris-workshop install" echo to build and install the software. echo Before you run the commands make sure the /usr/local/lib directory echo is listed in the LD_LIBRARY_PATH environment variable. echo Optionally you can replace echo ' LD=$(CC)' echo by echo ' LD=$(CC) -R$(LD_LIBRARY_PATH)' echo in Makefile-shared-solaris-workshop before you run the commands. echo " "