[SDK] One step further towards ReactOS source code tree restructure: the sdk folder...
[reactos.git] / reactos / lib / 3rdparty / stlport / configure
diff --git a/reactos/lib/3rdparty/stlport/configure b/reactos/lib/3rdparty/stlport/configure
deleted file mode 100644 (file)
index 18caa2f..0000000
+++ /dev/null
@@ -1,333 +0,0 @@
-#!/bin/sh\r
-\r
-# Time-stamp: <08/06/07 15:22:19 yeti>\r
-\r
-base=`cd \`dirname $0\`; echo $PWD`\r
-\r
-configmak=$base/build/Makefiles/gmake/config.mak\r
-\r
-write_option() {\r
-  target=`echo $1 | sed -e 's/^[^=]*=//'`\r
-  echo $2 := $3$target >> ${configmak}\r
-}\r
-\r
-write_over_option() {\r
-  target=`echo $1 | sed -e 's/^[^=]*=//'`\r
-  echo $2 ?= $target >> ${configmak}\r
-}\r
-\r
-print_help() {\r
-  cat <<EOF\r
-Configuration utility.\r
-\r
-Usage:\r
-\r
-  configure [options]\r
-\r
-Available options:\r
-\r
-  --prefix=<dir>        base install path (/usr/local/)\r
-  --bindir=<dir>        install path for executables (PREFIX/bin)\r
-  --libdir=<dir>        install path for libraries (PREFIX/lib)\r
-  --includedir=<dir>    install path for headers (PREFIX/include)\r
-\r
-  --target=<target>     target platform (cross-compiling)\r
-\r
-  --help                print this help message and exit\r
-\r
-  --with-stlport=<dir>  use STLport in catalog <dir>\r
-  --without-stlport     compile without STLport\r
-  --with-boost=<dir>    use boost headers in catalog <dir>\r
-  --with-system-boost   use boost installed on this system\r
-  --with-msvc=<dir>     use MS VC from this catalog\r
-  --with-mssdk=<dir>    use MS SDK from this catalog\r
-  --with-extra-cxxflags=<options>\r
-                        pass extra options to C++ compiler\r
-  --with-extra-cflags=<options>\r
-                        pass extra options to C compiler\r
-  --with-extra-ldflags=<options>\r
-                        pass extra options to linker (via C/C++)\r
-  --use-static-gcc      use static gcc libs instead of shared libgcc_s (useful for gcc compiler,\r
-                        that was builded with --enable-shared [default]; if compiler was builded\r
-                        with --disable-shared, static libraries will be used in any case)\r
-  --clean               remove custom settings (file ${configmak})\r
-                        and use default values\r
-  --with-cxx=<name>     use <name> as C++ compiler (use --target= for cross-compilation)\r
-  --with-cc=<name>      use <name> as C compiler (use --target= for cross-compilation)\r
-  --use-compiler-family=<name> use compiler family; one of:\r
-                        gcc      GNU compilers (default)\r
-                        icc      Intel compilers\r
-                        aCC      HP's aCC compilers\r
-                        CC       SunPro's CC compilers\r
-                        bcc      Borland's compilers\r
-  --without-debug       don't build debug variant\r
-  --without-stldebug    don't build STLport's STLP_DEBUG mode\r
-  --enable-static       build static\r
-  --disable-shared      don't build shared \r
-  --with-lib-motif=<motif>\r
-                        Use this option to customize the generated library name.\r
-                        The motif will be used in the last place before version information,\r
-                        separated by an underscore, ex:\r
-                        stlportd_MOTIF.5.0.lib\r
-                        stlportstld_static_MOTIF.5.1.lib\r
-  --without-thread      Per default STLport libraries are built in order to be usable\r
-                        in a multithreaded context. If you don't need this you can ask\r
-                        for a not thread safe version with this option.\r
-  --without-rtti        Disable RTTI when building libraries.\r
-  --with-static-rtl\r
-  --with-dynamic-rtl\r
-                        Enables usage of static (libc.lib family) or dynamic (msvcrt.lib family)\r
-                        C/C++ runtime library when linking with STLport. If you want your appli/dll\r
-                        to link statically with STLport but using the dynamic C runtime use\r
-                        --with-dynamic-rtl; if you want to link dynamicaly with STLport but using the\r
-                        static C runtime use --with-static-rtl. See README.options for details.\r
-                        Don't forget to signal the link method when building your appli or dll, in\r
-                        stlport/stl/config/host.h set the following macro depending on the configure\r
-                        option:\r
-                        --with-static-rtl  -> _STLP_USE_DYNAMIC_LIB"\r
-                        --with-dynamic-rtl -> _STLP_USE_STATIC_LIB"\r
-  --windows-platform=<name>\r
-                        Targetted OS when building for Windows; one of:\r
-                        win95   Windows 95\r
-                        win98   Windows 98\r
-                        winxp   Windows XP and later (default)\r
-\r
-Environment variables:\r
-\r
-  \$CXX                 C++ compiler name (use --target= for cross-compilation)\r
-  \$CC                  C compiler name (use --target= for cross-compilation)\r
-  \$CXXFLAGS            pass extra options to C++ compiler\r
-  \$CFLAGS              pass extra options to C compiler\r
-  \$LDFLAGS             pass extra options to linker (via C/C++)\r
-\r
-  Options has preference over environment variables.\r
-\r
-EOF\r
-}\r
-\r
-default_settings () {\r
-  # if [ "$boost_set" = "" ]; then\r
-  #   write_option "${PWD}/external/boost" BOOST_DIR\r
-  # fi\r
-\r
-  # if [ -z "${stlport_set}" ]; then\r
-  #   write_over_option "$base" STLPORT_DIR\r
-  # fi\r
-\r
-  # Set in Makefiles/gmake/top.mak\r
-  if [ -z "${compiler_family_set}" ]; then\r
-  #  write_option gcc COMPILER_NAME\r
-    echo include gcc.mak > ${base}/build/lib/Makefile\r
-    echo include gcc.mak > ${base}/build/test/unit/Makefile\r
-    echo include gcc.mak > ${base}/build/test/eh/Makefile\r
-  fi\r
-\r
-  # Set in Makefiles/gmake/targetdirs.mak\r
-  # if [ -z "${prefix_set}" ]; then\r
-  #   write_option "/usr/local" BASE_INSTALL_DIR '${DESTDIR}'\r
-  # fi\r
-}\r
-\r
-[ $# -eq 0 ] && { >${configmak}; default_settings; exit 0; }\r
-\r
-for a in $@ ; do\r
-  case $a in\r
-    --help)\r
-      print_help\r
-      exit 0\r
-      ;;\r
-    --clean)\r
-      rm -f ${configmak}\r
-      exit 0\r
-      ;;\r
-  esac\r
-done\r
-\r
->${configmak}\r
-\r
-while :\r
-do\r
-  case $# in\r
-    0)\r
-      break\r
-      ;;\r
-  esac\r
-  option="$1"\r
-  shift\r
-  case $option in\r
-    --target=*)\r
-      write_option "$option" TARGET_OS\r
-      target_set=y\r
-      ;;\r
-    --with-stlport=*)\r
-      write_option "$option" STLPORT_DIR\r
-      stlport_set=y\r
-      ;;\r
-    --without-stlport)\r
-      write_option 1 WITHOUT_STLPORT\r
-      stlport_set=y\r
-      ;;\r
-    --with-boost=*)\r
-      write_option "$option" BOOST_DIR\r
-      ;;\r
-    --with-system-boost)\r
-      write_option 1 USE_SYSTEM_BOOST\r
-      ;;\r
-    --with-msvc=*)\r
-      write_option "$option" MSVC_DIR\r
-      ;;\r
-    --with-mssdk=*)\r
-      write_option "$option" MSSDK_DIR\r
-      ;;\r
-    --with-extra-cxxflags=*)\r
-      write_option "$option" EXTRA_CXXFLAGS\r
-      cxxflags_set=y\r
-      ;;\r
-    --with-extra-cflags=*)\r
-      write_option "$option" EXTRA_CFLAGS\r
-      cflags_set=y\r
-      ;;\r
-    --with-extra-ldflags=*)\r
-      write_option "$option" EXTRA_LDFLAGS\r
-      ldflags_set=y\r
-      ;;\r
-    --with-lib-motif=*)\r
-      echo "Using $option in generated library names"\r
-      write_option "$option" LIB_MOTIF\r
-      ;;\r
-    --without-thread)\r
-      write_option 1 WITHOUT_THREAD\r
-      ;;\r
-    --without-rtti)\r
-      write_option 1 WITHOUT_RTTI\r
-      ;;\r
-    --with-dynamic-rtl)\r
-      write_option 1 WITH_DYNAMIC_RTL\r
-      ;;\r
-    --with-static-rtl)\r
-      write_option 1 WITH_STATIC_RTL\r
-      ;;\r
-    --use-static-gcc)\r
-      write_option 1 USE_STATIC_LIBGCC\r
-      ;;\r
-    --without-debug)\r
-      write_option 1 _NO_DBG_BUILD\r
-      ;;\r
-    --without-stldebug)\r
-      write_option 1 _NO_STLDBG_BUILD\r
-      ;;\r
-    --enable-static)\r
-      write_option 1 _STATIC_BUILD\r
-      ;;\r
-    --disable-shared)\r
-      write_option 1 _NO_SHARED_BUILD\r
-      ;;\r
-    --with-cxx=*)\r
-      write_option "$option" _FORCE_CXX\r
-      cxx_set=y\r
-      ;;\r
-    --with-cc=*)\r
-      write_option "$option" _FORCE_CC\r
-      cc_set=y\r
-      ;;\r
-    --use-compiler-family=*)\r
-      case `echo $option | sed -e 's/^[^=]*=//'` in\r
-        gcc|icc|aCC|CC|bcc|dmc)\r
-          target=`echo $option | sed -e 's/^[^=]*=//'`\r
-          echo COMPILER_NAME := $target >> ${configmak}\r
-          echo include $target.mak > ${base}/build/lib/Makefile\r
-          echo include $target.mak > ${base}/build/test/unit/Makefile\r
-          echo include $target.mak > ${base}/build/test/eh/Makefile\r
-          ;;\r
-        *)\r
-          echo "Not supported compilers family"\r
-          exit -1\r
-          ;;\r
-      esac\r
-      compiler_family_set=y\r
-      ;;\r
-    --prefix=*)\r
-      write_option "$option" BASE_INSTALL_DIR '${DESTDIR}'\r
-      prefix_set=y\r
-      ;;\r
-    --bindir=*)\r
-      write_option "$option" INSTALL_BIN_DIR '${DESTDIR}'\r
-      ;;\r
-    --libdir=*)\r
-      write_option "$option" INSTALL_LIB_DIR '${DESTDIR}'\r
-      ;;\r
-    --includedir=*)\r
-      write_option "$option" INSTALL_HDR_DIR '${DESTDIR}'\r
-      ;;\r
-    --windows-platform=*)\r
-      case `echo $option | sed -e 's/^[^=]*=//'` in\r
-        win95)\r
-          write_option 0x0400 WINVER\r
-          ;;\r
-        win98)\r
-          write_option 0x0410 WINVER\r
-          ;;\r
-        winxp)\r
-          write_option 0x0501 WINVER\r
-          ;;\r
-        *)\r
-          echo "Not supported windows platform"\r
-          exit -1\r
-          ;;\r
-      esac\r
-      ;;\r
-    *)\r
-      echo "Unknown configuration option '$option'"\r
-      exit -1\r
-      ;;\r
-  esac\r
-done\r
-\r
-if [ -n "${CXX}" ]; then\r
-  if [ -n "${cxx_set}" ]; then\r
-    echo "Both --with-cxx and \$CXX set, using the first"\r
-  elif [ -z "${target_set}" ]; then\r
-    write_option "${CXX}" _FORCE_CXX\r
-  else\r
-    echo "For cross-compilation with gcc use --target option only"\r
-  fi\r
-  if [ -z "${CC}" -a -z "${cc_set}" ]; then\r
-    echo "\$CXX set, but I don't see \$CC!"\r
-  fi\r
-fi\r
-\r
-if [ -n "${CC}" ]; then\r
-  if [ -n "${cxx_set}" ]; then\r
-    echo "Both --with-cc and \$CC set, using the first"\r
-  else\r
-    write_option "${CC}" _FORCE_CC\r
-  fi\r
-fi\r
-\r
-if [ -n "${CXXFLAGS}" ]; then\r
-  if [ -z "${cxxflags_set}" ]; then\r
-    write_option "${CXXFLAGS}" EXTRA_CXXFLAGS\r
-  else\r
-    echo "Both --with-extra-cxxflags and \$CXXFLAGS set, using the first"\r
-  fi\r
-fi\r
-\r
-if [ -n "${CFLAGS}" ]; then\r
-  if [ -z "${cflags_set}" ]; then\r
-    write_option "${CFLAGS}" EXTRA_CFLAGS\r
-  else\r
-    echo "Both --with-extra-cflags and \$CFLAGS set, using the first"\r
-  fi\r
-fi\r
-\r
-if [ -n "${LDFLAGS}" ]; then\r
-  if [ -z "${ldflags_set}" ]; then\r
-    write_option "${LDFLAGS}" EXTRA_LDFLAGS\r
-  else\r
-    echo "Both --with-extra-ldflags and \$LDFLAGS set, using the first"\r
-  fi\r
-fi\r
-\r
-# default settings\r
-\r
-default_settings
\ No newline at end of file