19bd392adSmrgAC_INIT 29bd392adSmrgAC_PROG_CC 39bd392adSmrgAC_PATH_X 49bd392adSmrgif test "x$no_x" != "xyes"; then 59bd392adSmrg savecpp="$CPPFLAGS" 69bd392adSmrg CPPFLAGS="$CPPFLAGS -I$x_includes" 79bd392adSmrg AC_CHECK_HEADER($x_includes/X11/Xlib.h,,\ 89bd392adSmrg [AC_MSG_ERROR(Could not find X installation.)]) 99bd392adSmrg CPPFLAGS="$savecpp" 109bd392adSmrg MDRIINC="-I$x_includes" 119bd392adSmrg LIBS="-L$x_libraries $LIBS" 129bd392adSmrgelse 139bd392adSmrg AC_MSG_ERROR(Could not find X installation. Aborting.) 149bd392adSmrgfi 159bd392adSmrgAC_ARG_WITH(libdrm, 169bd392adSmrg AC_HELP_STRING([--with-libdrm=DIR], 179bd392adSmrg [Installation prefix of libdrm [[default=/usr]]]), 189bd392adSmrg [libdrmpref="$withval"], 199bd392adSmrg [libdrmpref="/usr"]) 209bd392adSmrgsavecpp="$CPPFLAGS" 219bd392adSmrgMDRIINC="-I$libdrmpref/include -I$libdrmpref/include/drm -I$x_includes" 229bd392adSmrgCPPFLAGS="$CPPFLAGS $MDRIINC" 239bd392adSmrgAC_CHECK_HEADER(xf86drm.h,,\ 249bd392adSmrg [AC_MSG_ERROR(Could not find libdrm installation. Use --with-libdrm=<libdrm_installation_prefix>)]) 259bd392adSmrgAC_CHECK_HEADER(drm.h,,\ 269bd392adSmrg [AC_MSG_ERROR(Could not find libdrm installation. Use --with-libdrm=<libdrm_installation_prefix>)]) 279bd392adSmrgCPPFLAGS="$savecpp" 289bd392adSmrgLIBS="-L$libdrmpref/lib64 -L$libdrmpref/lib $LIBS" 299bd392adSmrgAC_SUBST(MDRIINC) 309bd392adSmrgAC_SYS_LARGEFILE 319bd392adSmrgAM_INIT_AUTOMAKE(minidri,0.1.0) 329bd392adSmrgAM_CONFIG_HEADER(config.h) 339bd392adSmrgAC_OUTPUT([Makefile src/Makefile]) 34