Mercurial > hg > octave-lyh
diff Makeconf.in @ 2993:91589ab98e37
[project @ 1997-05-21 21:44:54 by jwe]
author | jwe |
---|---|
date | Wed, 21 May 1997 21:51:38 +0000 |
parents | 1b219fa3c56a |
children | 5a9dd0a68b1d |
line wrap: on
line diff
--- a/Makeconf.in +++ b/Makeconf.in @@ -169,10 +169,6 @@ # ${prefix}/include includedir = @includedir@ -# Where to install Octave's include files. The default is -# ${includedir}/octave-${version} -octincludedir = @octincludedir@ - # Where to install Octave's man pages, and what extension they should # have. The default is ${prefix}/man/man1 mandir = @mandir@ @@ -187,9 +183,17 @@ # ==================== Octave-specific directories ==================== -# These variables hold the values Octave will actually use. They are +# These variables hold the values specific to Octave. They are # based on the values of the standard Make variables above. +# Where to install Octave's library files. The default is +# ${libdir}/octave-${version} +octlibdir = @octlibdir@ + +# Where to install Octave's include files. The default is +# ${includedir}/octave-${version} +octincludedir = @octincludedir@ + # Where to install the function file distributed with # Octave. This includes the Octave version, so that the # function files for different versions of Octave will install @@ -320,11 +324,11 @@ -e "s;%FPICFLAG%;\"${FPICFLAG}\";" \ -e "s;%GCC_IEEE_FP_FLAG%;\"${GCC_IEEE_FP_FLAG}\";" \ -e "s;%HOST_CXXFLAGS%;\"${HOST_CXXFLAGS}\";" \ - -e "s;%INCFLAGS%;\"-I${includedir} -I${octincludedir}\";" \ + -e "s;%INCFLAGS%;\"-I${octincludedir} -I${includedir}\";" \ -e "s;%LDFLAGS%;\"${LDFLAGS}\";" \ -e "s;%LEXLIB%;\"${LEXLIB}\";" \ -e "s;%LIBDLFCN%;\"${LIBDLFCN}\";" \ - -e "s;%LIBFLAGS%;\"-L${libdir}\";" \ + -e "s;%LIBFLAGS%;\"-L${octlibdir} -L${libdir}\";" \ -e "s;%LIBPLPLOT%;\"${LIBPLPLOT}\";" \ -e "s;%LIBS%;\"${LIBS}\";" \ -e "s;%NO_IMPLICIT_TEMPLATES%;\"${NO_IMPLICIT_TEMPLATES}\";" \ @@ -362,3 +366,38 @@ -e "s;%TARGET_HOST_TYPE%;\"${target_host_type}\";" $(top_srcdir)/move-if-change $@.tmp $@ endef + +# Make a relative symbolic link from $includedir/octave to $octincludedir. + +# XXX FIXME XXX -- this assumes that $octincludedir is a subdirectory +# of $includedir. + +define mk-includedir-link +src=`echo $(octincludedir) | sed 's|^$(includedir)/*||'` ; \ +if [ "$$src" = "octave" ] ; then \ + true ; \ +else \ + if [ -d $(includedir)/octave ] ; then \ + true ; \ + else \ + cd $(includedir) ; rm -f octave && $(LN_S) $$src octave ; \ + fi ; \ +fi +endef + +# Make a relative symbolic link from $libdir/octave to $octlibdir. + +# XXX FIXME XXX -- this assumes that $octlibdir is a subdirectory of $libdir. + +define mk-libdir-link +src=`echo $(octlibdir) | sed 's|^$(libdir)/*||'` ; \ +if [ "$$src" = "octave" ] ; then \ + true ; \ +else \ + if [ -d $(libdir)/octave ] ; then \ + true ; \ + else \ + cd $(libdir) ; rm -f octave && $(LN_S) $$src octave ; \ + fi ; \ +fi +endef