On 09/04/2013 13:31, Sylvestre Ledru wrote:
> On 09/04/2013 01:11, Filipe Saraiva wrote:
>> Hello guys, I am a problem during Scilab compilation in Mageia. It is
>> pcre related.
>>
>> The bug report is https://bugs.mageia.org/show_bug.cgi?id=9052
>>
>> I sent the config.log to bug report.
>>
>> Excuse me for this question, but nobody in Mageia team help me with problem.
>>
>> If anyone have some idea about this, I will be grateful. =)
> Could you try with the attached patch ?
Actually, with this one, "git diff" was exporting the colors too.

Sylvestre

>From 673ce354bb5a715e1b113a981800757bcb513985 Mon Sep 17 00:00:00 2001
From: Sylvestre Ledru <[email protected]>
Date: Tue, 9 Apr 2013 13:39:56 +0200
Subject: [PATCH] disable the pcre posix check

Change-Id: I6e36578c9a733d3fb64a84551fa02cbb393a4f31
---
 scilab/configure  |   72 ++++++++---------------------------------------------
 scilab/m4/pcre.m4 |    8 +++---
 2 files changed, 14 insertions(+), 66 deletions(-)

diff --git a/scilab/configure b/scilab/configure
index c10c608..005bcb9 100755
--- a/scilab/configure
+++ b/scilab/configure
@@ -23953,62 +23953,10 @@ else
 fi
 
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lpcreposix" >&5
-$as_echo_n "checking for regexec in -lpcreposix... " >&6; }
-if ${ac_cv_lib_pcreposix_regexec+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpcreposix  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char regexec ();
-#ifdef F77_DUMMY_MAIN
-
-#  ifdef __cplusplus
-     extern "C"
-#  endif
-   int F77_DUMMY_MAIN() { return 1; }
-
-#endif
-int
-main ()
-{
-return regexec ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_pcreposix_regexec=yes
-else
-  ac_cv_lib_pcreposix_regexec=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_regexec" >&5
-$as_echo "$ac_cv_lib_pcreposix_regexec" >&6; }
-if test "x$ac_cv_lib_pcreposix_regexec" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBPCREPOSIX 1
-_ACEOF
-
-  LIBS="-lpcreposix $LIBS"
-
-else
-  as_fn_error $? "pcreposix : library missing. (Cannot find symbol regexec). Check if pcre is installed and if the version is correct" "$LINENO" 5
-
-fi
-
+# AC_CHECK_LIB([pcreposix], [regexec],
+#                [],
+#                [AC_MSG_ERROR([pcreposix : library missing. (Cannot find symbol regexec). Check if pcre is installed and if the version is correct])]
+#                )
 for ac_header in pcre.h
 do :
   ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
@@ -25240,7 +25188,7 @@ CPPFLAGS="$CPPFLAGS -I$CHK_TCL_INCLUDE_PATH"
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tcl is version $CHK_TCL_MAJOR.$CHK_TCL_MINOR or later" >&5
 $as_echo_n "checking if tcl is version $CHK_TCL_MAJOR.$CHK_TCL_MINOR or later... " >&6; }
 cat > conftest.$ac_ext <<EOF
-#line 25243 "configure"
+#line 25191 "configure"
 #include "confdefs.h"
 
 #include "$CHK_TCL_INCLUDE_PATH/$CHK_TCL_INC_NAME"
@@ -25550,7 +25498,7 @@ CPPFLAGS="$CPPFLAGS $TCL_INC_PATH -I$CHK_TK_INCLUDE_PATH $X_CFLAGS"
 $as_echo_n "checking if tk is version $CHK_TK_MAJOR.$CHK_TK_MINOR or later... " >&6; }
 
 cat > conftest.$ac_ext <<EOF
-#line 25553 "configure"
+#line 25501 "configure"
 #include "confdefs.h"
 
 #include "$CHK_TK_INCLUDE_PATH/$CHK_TK_INC_NAME"
@@ -26128,7 +26076,7 @@ $as_echo_n "checking saxon... " >&6; }
             export ac_java_classpath="$jar_resolved:$ac_java_classpath"
 
     cat << \EOF > conftest.java
-// #line 26131 "configure"
+// #line 26079 "configure"
 import java.util.regex.Pattern;
 
 import com.icl.saxon.Loader;
@@ -26245,7 +26193,7 @@ $as_echo_n "checking jlatexmath-fop... " >&6; }
             export ac_java_classpath="$jar_resolved:$ac_java_classpath"
 
     cat << \EOF > conftest.java
-// #line 26248 "configure"
+// #line 26196 "configure"
 import java.util.regex.Pattern;
 
 import org.scilab.forge.jlatexmath.fop.JLaTeXMathObj;
@@ -32673,7 +32621,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 32676 "configure"
+#line 32624 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -32779,7 +32727,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 32782 "configure"
+#line 32730 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
diff --git a/scilab/m4/pcre.m4 b/scilab/m4/pcre.m4
index 9989cdd..7723dea 100644
--- a/scilab/m4/pcre.m4
+++ b/scilab/m4/pcre.m4
@@ -72,10 +72,10 @@ AC_CHECK_LIB([pcre], [pcre_compile],
                [AC_MSG_ERROR([pcre : library missing. (Cannot find symbol pcre_compile). Check if pcre is installed and if the version is correct])]
                )
 
-AC_CHECK_LIB([pcreposix], [regexec],
-               [],
-               [AC_MSG_ERROR([pcreposix : library missing. (Cannot find symbol regexec). Check if pcre is installed and if the version is correct])]
-               )
+# AC_CHECK_LIB([pcreposix], [regexec],
+#                [],
+#                [AC_MSG_ERROR([pcreposix : library missing. (Cannot find symbol regexec). Check if pcre is installed and if the version is correct])]
+#                )
 AC_CHECK_HEADERS([pcre.h])
 
 LIBS="$saved_LIBS"
-- 
1.7.10.4

_______________________________________________
dev mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/dev

Reply via email to