Hallo Wolfgang....

Ich glaub wir muessen auf direkte kommunikation umsteigen...:(
CC an die ML, deswegen der rest auf eng

On Fri, Jan 30, 2004 at 09:37:06AM +0100, Jan Kiszka wrote:
> ...da wohl SF inzwischen auch den Mailing-List-Service verloren hat.

> I now found some time to test the latest release of RTnet with RTAI 3.0
> (kilauea) on MPC 8xx. I realized the following problems:

> o the RTnet configure is unable to detect RTAI if it has been installed
>   with "make DESTDIR=/opt/eldk/ppc_8xx install". The "prefix" then
>   points to a path valid on the target system e.g. "/usr/realtime".

Can you please send me the output of the failing configure run, starting
with the RTAI 24.1.x detection? Does your error msg looks like this?

checking for RTAI 24.1.x source tree... no
checking for RTAI 3 installation... /tmp/usr/realtime
checking for RTAI 3 version... 3.0
checking for RTAI 3 config file... /tmp/usr/realtime/share/rtai/config-rtai-3.0
checking for RTAI Semaphores... m
checking for RTAI malloc... y
checking for RTAI target arch... i386
checking for RTnet target arch... i386
checking for module installation directory... ${exec_prefix}/modules
checking for RTAI NEWLXRT enabled... yes
checking rtai_lxrt_user.h usability... no
checking rtai_lxrt_user.h presence... no
checking for rtai_lxrt_user.h... no
checking rtai_declare.h usability... no
checking rtai_declare.h presence... no
checking for rtai_declare.h... no
checking rtai_sem.h usability... no
checking rtai_sem.h presence... no
checking for rtai_sem.h... no
configure: error: *** header not found or working, please check RTAI installation

If you have the same problem this patch should fix it...Don't forget to
run ./autogen.sh to regenerate the buildsystem...


Marc

-- 
#!/bin/sh
set - `type $0` 'tr "[a-zA-Z]" "[n-za-mN-ZA-M]"';while [ "$2" != "" ];do \
shift;done; echo 'frq -a -rc '`echo "$0"| $1 `'>$UBZR/.`rpub signature|'`\
echo $1|$1`'`;rpub "Jr ner fvtangher bs obet. Erfvfgnapr vf shgvyr!"'|$1|sh
--- rtnet-0.6.0-orig/configure.ac       Fri Jan 16 15:05:38 2004
+++ rtnet-0.6.0/configure.ac    Fri Jan 30 14:01:19 2004
@@ -325,8 +325,8 @@
 if test x"$CONFIG_RTNET_RTAI_3" \!= x"n"; then
     AC_MSG_CHECKING([for RTAI 3 installation])
     RTAI_CONFIG="${with_rtai}/bin/rtai-config"
-    if test -f ${RTAI_CONFIG}; then
-        RTAI_DIR=$with_rtai
+    if test -x ${RTAI_CONFIG}; then
+        RTAI_DIR="${with_rtai}"
        AC_MSG_RESULT([${RTAI_DIR}])
     else
        CONFIG_RTNET_RTAI_3=n
@@ -334,12 +334,33 @@
     fi
 fi
 
+
 #
 # from now we think we've found RTAI-3, so if we got en error
 # it will be fatal, thus exit with AC_MSG_ERROR
 #
 
 if test x"$CONFIG_RTNET_RTAI_3" \!= x"n"; then
+#
+# check if rtai-3 is installed with DESTDIR
+# e.g.: 'make DESTDIR=/foo install'
+#
+    AC_MSG_CHECKING([for RTAI 3 DESTDIR])
+    RTNET_RTAI_PREFIX="`${RTAI_CONFIG} --prefix`"
+    if test "${RTNET_RTAI_PREFIX}" \!= "${RTAI_DIR}"; then
+       RTNET_RTAI_DESTDIR="`echo ${RTAI_DIR} | sed -e s,${RTNET_RTAI_PREFIX}$,,`"
+       export DESTDIR="${RTNET_RTAI_DESTDIR}"
+
+       RTNET_RTAI_PREFIX="`${RTAI_CONFIG} --prefix`"
+       if test "${RTNET_RTAI_PREFIX}" = "${RTAI_DIR}"; then
+           AC_MSG_RESULT([${DESTDIR}])
+       else
+           AC_MSG_ERROR([*** Cannot identify DESTDIR])
+       fi
+    else
+       AC_MSG_RESULT([/])
+    fi
+
     AC_MSG_CHECKING([for RTAI 3 version])
     CONFIG_RTNET_RTAI_3_VERSION="`${RTAI_CONFIG} --version`"
 

Reply via email to