set $prefix to default if no prefix was given
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@137 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
85f663e0b9
commit
d5f4bc8130
@ -80,7 +80,7 @@ AC_CHECK_FILE([/dev/urandom], AC_DEFINE([HAVE_DEVURANDOM], [1], [Define that you
|
||||
AC_CHECK_FILE([/dev/random], AC_DEFINE([HAVE_DEVRANDOM], [1], [Define that you found /dev/random]))
|
||||
|
||||
|
||||
GTK_VERSION=`$PKG_CONFIG gtk+-2.0 --modversion`
|
||||
GTK_VERSION=`$PKG_CONFIG --modversion gtk+-2.0`
|
||||
|
||||
GETTEXT_PACKAGE=geany
|
||||
AC_SUBST(GETTEXT_PACKAGE)
|
||||
@ -90,6 +90,13 @@ dnl Add the languages which your application supports here.
|
||||
ALL_LINGUAS="de"
|
||||
AM_GLIB_GNU_GETTEXT
|
||||
|
||||
# Set ${datadir}
|
||||
if test "x${datadir}" = 'x${prefix}/share'; then
|
||||
if test "x${prefix}" = "xNONE"; then
|
||||
prefix=${ac_default_prefix}
|
||||
fi
|
||||
fi
|
||||
|
||||
GEANY_PIXMAPS_DIR=`eval echo ${datadir}/pixmaps`
|
||||
AC_SUBST(GEANY_PIXMAPS_DIR)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user