summaryrefslogtreecommitdiff
blob: 307083542b3b7f8a14a63854125bf44641a9d782 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- h5utils-1.10/configure.ac.orig	2005-09-03 04:36:33.000000000 +0700
+++ h5utils-1.10/configure.ac	2005-10-20 13:56:02.000000000 +0700
@@ -131,8 +131,9 @@
 else
 	# try to find installation directory
 	AC_CHECK_PROGS(OCTAVE, octave, echo)
+	AC_CHECK_PROGS(OCTAVE_CONFIG, octave-config, echo)
 	AC_MSG_CHECKING(where octave plugins go)
-	OCT_INSTALL_DIR=`echo "DEFAULT_LOADPATH" | $OCTAVE -q | tr ':' '\n' | grep "site/oct" | head -1`
+	OCT_INSTALL_DIR=`${OCTAVE_CONFIG} --oct-site-dir | sed -e "s:${prefix}:\\\${prefix}:"`
 	if test -n "$OCT_INSTALL_DIR"; then
 		AC_MSG_RESULT($OCT_INSTALL_DIR)
 		H5READ=h5read.oct