[PATCH] [configure.ac]: stabs

Eric Pouech eric.pouech at wanadoo.fr
Wed Jun 21 14:26:19 CDT 2006


- added an option not to force stabs debug format

A+
---

 configure.ac |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 743ac69..85e6415 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,6 +14,7 @@ dnl **** Command-line arguments ****
 
 AC_ARG_ENABLE(win16, AC_HELP_STRING([--disable-win16],[do not include Win16 support]))
 AC_ARG_ENABLE(win64, AC_HELP_STRING([--enable-win64], [build a Win64 emulator on AMD64 (won't run Win32 binaries)]))
+AC_ARG_ENABLE(stabs, AC_HELP_STRING([--disable-stabs],[do not force stabs debugging format (use compiler's default)]))
 
 AC_ARG_WITH(opengl,    AC_HELP_STRING([--without-opengl],[do not use OpenGL]))
 AC_ARG_WITH(curses,    AC_HELP_STRING([--without-curses],[do not use curses]))
@@ -921,11 +922,14 @@ int main(void) {
   fi
 
   dnl Check for -gstabs+ option
-  AC_CACHE_CHECK([for gcc -gstabs+ support], ac_cv_c_gcc_gstabs,
-      [WINE_TRY_CFLAGS([-gstabs+],ac_cv_c_gcc_gstabs="yes", ac_cv_c_gcc_gstabs="no")])
-  if test "$ac_cv_c_gcc_gstabs" = "yes"
+  if test "x$enable_stabs" != "xno"
   then
-    EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
+    AC_CACHE_CHECK([for gcc -gstabs+ support], ac_cv_c_gcc_gstabs,
+        [WINE_TRY_CFLAGS([-gstabs+],ac_cv_c_gcc_gstabs="yes", ac_cv_c_gcc_gstabs="no")])
+    if test "$ac_cv_c_gcc_gstabs" = "yes"
+    then
+      EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
+    fi
   fi
 
   dnl Check for -Wdeclaration-after-statement option



More information about the wine-patches mailing list