Browse Source

m4/gcc.m4: fix setting of include dir when --prefix is not specified when calling configure

Nathalie Furmento 12 years ago
parent
commit
50a1667342
1 changed files with 2 additions and 2 deletions
  1. 2 2
      m4/gcc.m4

+ 2 - 2
m4/gcc.m4

@@ -1,6 +1,6 @@
 dnl -*- Autoconf -*-
 dnl -*- Autoconf -*-
 dnl
 dnl
-dnl Copyright (C) 2011, 2012 Institut National de Recherche en Informatique et Automatique
+dnl Copyright (C) 2011, 2012, 2013 Inria
 dnl
 dnl
 dnl StarPU is free software; you can redistribute it and/or modify
 dnl StarPU is free software; you can redistribute it and/or modify
 dnl it under the terms of the GNU Lesser General Public License as published by
 dnl it under the terms of the GNU Lesser General Public License as published by
@@ -188,7 +188,7 @@ AC_DEFUN([STARPU_GCC_PLUGIN_SUPPORT], [
 
 
 
 
     AC_DEFINE_UNQUOTED([STARPU_INCLUDE_DIR],
     AC_DEFINE_UNQUOTED([STARPU_INCLUDE_DIR],
-      ["`eval "echo $includedir"`/starpu/$STARPU_EFFECTIVE_VERSION"],
+      ["`test "x$prefix" = xNONE && prefix=$ac_default_prefix ; eval "echo $includedir"`/starpu/$STARPU_EFFECTIVE_VERSION"],
       [Define to the directory where StarPU's headers are installed.])
       [Define to the directory where StarPU's headers are installed.])
 
 
     dnl Now, `gcc' or `g++'?
     dnl Now, `gcc' or `g++'?