Re: [PATCH libdrm 1/3] configure: request/set the compiler in C99 mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Will anyone have any objections against the series. I am planning to
have this merged by the end of the week.

Thanks
Emil

On 8 April 2015 at 17:52, Emil Velikov <emil.l.velikov@xxxxxxxxx> wrote:
> Required by intel and drmstat at least. Considering that every compiler
> used to build libdrm is C99 compatible, just enable it for the whole
> build.
>
> Signed-off-by: Emil Velikov <emil.l.velikov@xxxxxxxxx>
> ---
>  configure.ac      | 5 +++++
>  intel/Makefile.am | 2 --
>  2 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index e715262..320e482 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -36,6 +36,11 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
>
>  # Check for programs
>  AC_PROG_CC
> +AC_PROG_CC_C99
> +
> +if test "x$ac_cv_prog_cc_c99" = xno; then
> +       AC_MSG_ERROR([Building libdrm requires C99 enabled compiler])
> +fi
>
>  AC_USE_SYSTEM_EXTENSIONS
>  AC_SYS_LARGEFILE
> diff --git a/intel/Makefile.am b/intel/Makefile.am
> index de3baab..d004568 100644
> --- a/intel/Makefile.am
> +++ b/intel/Makefile.am
> @@ -42,8 +42,6 @@ libdrm_intel_la_LIBADD = ../libdrm.la \
>
>  libdrm_intel_la_SOURCES = $(LIBDRM_INTEL_FILES)
>
> -intel_bufmgr_gem_o_CFLAGS = $(AM_CFLAGS) -c99
> -
>  libdrm_intelincludedir = ${includedir}/libdrm
>  libdrm_intelinclude_HEADERS = $(LIBDRM_INTEL_H_FILES)
>
> --
> 2.3.1
>
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel





[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux