Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote:

> which displays ThisIsLaTeX2e if \documentclass is defined. What
> happens when you run this under miktex? Where does the output go?
> Maybe is it standard error instead of stdout?

I think the problem is somewhere else.  At least the patch below
make lib/configure usable on OS/2.  (Sorry, I have tested this
only with Web2c 7.2 for OS/2.  emTeX has not yet been tested.)
Similar hack should be applied to RELYX_SEARCH_PROG routine in
lib/reLyX/ac*.m4 as well.

Regards,
                SMiyata

--- configure.m4.orig   Fri Nov 26 23:31:32 1999
+++ configure.m4        Fri Dec  3 09:05:44 1999
@@ -36,11 +36,14 @@
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog ; ac_word=$[2]
 if test -n "$ac_word"; then
+  for exe_ext in $EXE_EXTS
+  do
   MSG_CHECKING([for \"$ac_word\"],[+])
-  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}$PATH_IFS"
   for ac_dir in $PATH; do
     test -z "$ac_dir" && ac_dir=.
-    if test -x [$ac_dir/$ac_word]; then
+    if test -x [$ac_dir/$ac_word] -o \
+    -x [$ac_dir/$ac_word$exe_ext]; then
       $2="$ac_prog"
       break
     fi
@@ -55,6 +58,7 @@
   ifelse($4,,,[$4])
   MSG_RESULT($ac_result)
   test -n "[$]$2" && break
+  done
 fi
 done
 
@@ -77,6 +81,28 @@
 $2
 EOF
 fi])
+dnl set PATH_IFS, EXE_EXTS
+define(PATHINIT,[dnl
+# Filter path to get backslahes into forwardslashes
+case "`uname -s 2> /dev/null`" in
+DOS)
+  SHELL=${CONFIG_SHELL}
+  PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
+  PATH_IFS=';'
+  EXE_EXTS=".exe .com .bat"
+  ;;
+OS/2)
+  SHELL=${CONFIG_SHELL}
+  PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
+  PATH_IFS=';'
+  EXE_EXTS=".exe .cmd"
+  ;;
+*)
+  PATH_IFS=':'
+  EXE_EXTS=""
+  ;;
+esac
+])dnl
 changequote(,)dnl
 dnl ######### End M4 macros #############################################
 
@@ -85,6 +111,7 @@
 lyx_check_config=yes
 lyx_keep_temps=no
 srcdir=
+PATHINIT()
 
 #### Parse the command line
 for ac_option do

Reply via email to