* [PATCH] configure: add AC_LANG_SOURCE call within AC_COMPILE_IFELSE
@ 2013-09-19 16:21 Emil Velikov
2013-09-23 19:00 ` Daniel Kurtz
2013-09-24 15:56 ` Eric Anholt
0 siblings, 2 replies; 3+ messages in thread
From: Emil Velikov @ 2013-09-19 16:21 UTC (permalink / raw)
To: dri-devel; +Cc: emil.l.velikov
Documentation states that AC_*_IFELSE has to use AC_LANG_SOURCE or
friends in order to generate the source code to compile.
AC_LINK_IFELSE already handles this, thus convert AC_COMPILE_IFELSE
to silence the final autoconf warnings.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
---
While this patch is not strictly speaking necessary for the full/correct
build of libdrm, it cuts down the configure'n'compile warnings to five.
With the remaining being caused due to type conversion within exynos(4)
and freedreno/kgsl(1). I planning to leave those to someone more aware
of the respective codebase :)
Cheers,
Emil
P.S. Keep me CC'd as I'm not subscribed to the list
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index d2e232b..43e6954 100644
--- a/configure.ac
+++ b/configure.ac
@@ -111,7 +111,7 @@ AC_DEFUN([LIBDRM_CC_TRY_FLAG], [
libdrm_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $1"
- AC_COMPILE_IFELSE([ ], [libdrm_cc_flag=yes], [libdrm_cc_flag=no])
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([ ])], [libdrm_cc_flag=yes], [libdrm_cc_flag=no])
CFLAGS="$libdrm_save_CFLAGS"
if test "x$libdrm_cc_flag" = "xyes"; then
--
1.8.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] configure: add AC_LANG_SOURCE call within AC_COMPILE_IFELSE
2013-09-19 16:21 [PATCH] configure: add AC_LANG_SOURCE call within AC_COMPILE_IFELSE Emil Velikov
@ 2013-09-23 19:00 ` Daniel Kurtz
2013-09-24 15:56 ` Eric Anholt
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Kurtz @ 2013-09-23 19:00 UTC (permalink / raw)
To: dri-devel; +Cc: Emil Velikov
On Thu, Sep 19, 2013 at 9:21 AM, Emil Velikov <emil.l.velikov@gmail.com> wrote:
> Documentation states that AC_*_IFELSE has to use AC_LANG_SOURCE or
> friends in order to generate the source code to compile.
> AC_LINK_IFELSE already handles this, thus convert AC_COMPILE_IFELSE
> to silence the final autoconf warnings.
>
> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
I've been carrying the same patch locally for a while.
> ---
>
> While this patch is not strictly speaking necessary for the full/correct
> build of libdrm, it cuts down the configure'n'compile warnings to five.
> With the remaining being caused due to type conversion within exynos(4)
> and freedreno/kgsl(1). I planning to leave those to someone more aware
> of the respective codebase :)
>
>
> Cheers,
> Emil
>
> P.S. Keep me CC'd as I'm not subscribed to the list
> ---
> configure.ac | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index d2e232b..43e6954 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -111,7 +111,7 @@ AC_DEFUN([LIBDRM_CC_TRY_FLAG], [
> libdrm_save_CFLAGS="$CFLAGS"
> CFLAGS="$CFLAGS $1"
>
> - AC_COMPILE_IFELSE([ ], [libdrm_cc_flag=yes], [libdrm_cc_flag=no])
> + AC_COMPILE_IFELSE([AC_LANG_SOURCE([ ])], [libdrm_cc_flag=yes], [libdrm_cc_flag=no])
> CFLAGS="$libdrm_save_CFLAGS"
>
> if test "x$libdrm_cc_flag" = "xyes"; then
> --
> 1.8.4
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] configure: add AC_LANG_SOURCE call within AC_COMPILE_IFELSE
2013-09-19 16:21 [PATCH] configure: add AC_LANG_SOURCE call within AC_COMPILE_IFELSE Emil Velikov
2013-09-23 19:00 ` Daniel Kurtz
@ 2013-09-24 15:56 ` Eric Anholt
1 sibling, 0 replies; 3+ messages in thread
From: Eric Anholt @ 2013-09-24 15:56 UTC (permalink / raw)
To: dri-devel; +Cc: emil.l.velikov
[-- Attachment #1.1: Type: text/plain, Size: 366 bytes --]
Emil Velikov <emil.l.velikov@gmail.com> writes:
> Documentation states that AC_*_IFELSE has to use AC_LANG_SOURCE or
> friends in order to generate the source code to compile.
> AC_LINK_IFELSE already handles this, thus convert AC_COMPILE_IFELSE
> to silence the final autoconf warnings.
>
> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Pushed. Thanks!
[-- Attachment #1.2: Type: application/pgp-signature, Size: 835 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-24 15:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-19 16:21 [PATCH] configure: add AC_LANG_SOURCE call within AC_COMPILE_IFELSE Emil Velikov
2013-09-23 19:00 ` Daniel Kurtz
2013-09-24 15:56 ` Eric Anholt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).