소스 검색

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

Nathalie Furmento 13 년 전
부모
커밋
50a1667342
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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++'?