ac/aspell.m4 behaves better and says no when test program cannot be run
authorMelvin Hadasht <melvin.hadasht@free.fr>
Wed, 2 Oct 2002 16:48:47 +0000 (16:48 +0000)
committerMelvin Hadasht <melvin.hadasht@free.fr>
Wed, 2 Oct 2002 16:48:47 +0000 (16:48 +0000)
ChangeLog.claws
ac/aspell.m4
configure.in

index 6238ed6..cc0b343 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-02 [melvin]    0.8.3claws42
+
+       * ac/aspell.m4
+               Behave better and say "no" when test program cannot be run.
+
 2002-10-02 [paul]      0.8.3claws41
 
        * sync with 0.8.4cvs1
index 1d9ae0b..dcc36a0 100644 (file)
@@ -74,12 +74,12 @@ main ()
 {
  system ("touch conf.aspelltest");
  if(strcmp("$aspell_version","$min_aspell_version")<0){
-   printf("no\n");
    return 1;
    }
  return 0;
 }
         ],, no_aspell=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
+       rm -f conftest.c
        if test "x$no_aspell" = x ; then
            AC_MSG_RESULT(yes)
            AC_MSG_CHECKING(for GNU/aspell dictionaries location)
@@ -102,10 +102,10 @@ int
 main()
 {
  AspellConfig * aspellconfig = new_aspell_config();
- system("touch conf.aspelltest");
  return 0;
 }
            ],, aspell_failure=yes,)
+          rm -f conftest.c
           CFLAGS="$ac_save_CFLAGS"
            LIBS="$ac_save_LIBS"
            if test "x$aspell_failure" = x ; then     
@@ -126,6 +126,7 @@ main()
              ifelse([$3], , :, [$3])
           fi
        else
+           AC_MSG_RESULT(no)
            ASPELL_CFLAGS=""
            ASPELL_LIBS=""
            ASPELL_PATH=""
@@ -136,6 +137,5 @@ main()
   AC_SUBST(ASPELL_CFLAGS)
   AC_SUBST(ASPELL_LIBS)
   AC_SUBST(ASPELL_PATH)
-  rm -f conf.aspelltest
 ])
 
index a4f7e19..ab8fa8f 100644 (file)
@@ -10,7 +10,7 @@ MINOR_VERSION=8
 MICRO_VERSION=3
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws41
+EXTRA_VERSION=claws42
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target