From e223b0999fa47191da707f73819ec927c9b40981 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 17 Aug 2003 14:53:27 +0000 Subject: [PATCH] Added some special code to make generated configure script OS/2 compatible no matter what platform it is generated on. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure.in | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/configure.in b/configure.in index 47ed6316fe..f25ad00574 100644 --- a/configure.in +++ b/configure.in @@ -294,6 +294,28 @@ case "${host}" in CXX=gcc dnl Explicitly link -lstdcpp, since we are using "gcc" not "g++"/"c++". LIBS="$LIBS -lstdcpp" + dnl + dnl Some special code that's automatically added by autoconf-2.57 for OS/2 + dnl and hopefully also by autoconf-2.58 and newer on all other platforms. + dnl For now however, we still need it to make sure the configure script + dnl works on OS/2 no matter what platform it is generated on. + ac_executable_extensions=".exe" + export ac_executable_extensions + dnl This strange code is necessary to deal with handling of + dnl backslashes by ksh and pdksh's sh variant. + ac_save_IFS="$IFS" + IFS="\\" + ac_TEMP_PATH= + for ac_dir in $PATH; do + IFS=$ac_save_IFS + if test -z "$ac_TEMP_PATH"; then + ac_TEMP_PATH="$ac_dir" + else + ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" + fi + done + export PATH="$ac_TEMP_PATH" + unset ac_TEMP_PATH ;; powerpc-*-darwin* ) -- 2.45.2