diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 18b878d..f672553 100644 --- a/configure.ac +++ b/configure.ac @@ -36,15 +36,6 @@ AC_SUBST(SCINTILLA_CXXFLAGS) # Necessary so we can change their default values here AC_SUBST(AM_CPPFLAGS) -# SciTECO library macro directory -scitecolibdir=$datadir/$PACKAGE/lib -AC_SUBST(scitecolibdir) - -# These paths can be changed at install-time and -# should not be written into config.h: -AM_CPPFLAGS="$AM_CPPFLAGS -D'SCITECODATADIR=\"\$(pkgdatadir)\"' \ - -D'SCITECOLIBDIR=\"\$(scitecolibdir)\"'" - # Auxiliary functions # expand $1 and print its absolute path @@ -180,6 +171,20 @@ esac # Config options # +AC_ARG_WITH(scitecodatadir, + AS_HELP_STRING([--with-scitecodatadir=PATH], + [Installation directory of data [default=DATADIR/sciteco]]), + [scitecodatadir=$withval], [scitecodatadir=$datadir/$PACKAGE]) +AC_SUBST(scitecodatadir) +# SciTECO library macro directory +scitecolibdir=$scitecodatadir/lib +AC_SUBST(scitecolibdir) + +# These paths can be changed at install-time and +# should not be written into config.h: +AM_CPPFLAGS="$AM_CPPFLAGS -D'SCITECODATADIR=\"\$(scitecodatadir)\"' \ + -D'SCITECOLIBDIR=\"\$(scitecolibdir)\"'" + # FIXME: It does not really make sense to have this configurable. # It would make more sense to allow linking against an externally-provided # Scintilla (some platforms ship with it). |