Allow for noarch packages. --- configure.in | 3 +++ gap.shi | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) Index: gap4r6/configure.in =================================================================== --- gap4r6.orig/configure.in +++ gap4r6/configure.in @@ -160,6 +160,9 @@ AC_SUBST(MAKE_GMP) AC_SUBST(USE_GMP) AC_SUBST(GMP_VER) +pkgdatadir="$datadir/$PACKAGE_NAME" +AC_SUBST([pkgdatadir]) + mkdir -p bin AC_OUTPUT(Makefile-${CONFIGNAME}:Makefile.in sysinfo.gap-${CONFIGNAME}:sysinfo.in bin/gap-${CONFIGNAME}.sh:gap.shi) ln -sf gap-${CONFIGNAME}.sh bin/gap.sh Index: gap4r6/gap.shi =================================================================== --- gap4r6.orig/gap.shi +++ gap4r6/gap.shi @@ -61,4 +61,4 @@ fi ## ## You probably should not change this line, which finally starts GAP. ## -exec "$GAP_DIR/bin/$GAP_PRG" $GAP_MEM -l "$GAP_DIR" "$@" +exec "$GAP_DIR/bin/$GAP_PRG" $GAP_MEM -l "$GAP_DIR;@datadir@/gap" "$@"