"Fossies" - the Fresh Open Source Software Archive

Member "rufus-3.13/configure.ac" (20 Nov 2020, 3227 Bytes) of package /linux/misc/rufus-3.13.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure.ac": 3.12_vs_3.13.

    1 AC_INIT([rufus], [3.13], [https://github.com/pbatard/rufus/issues], [rufus], [https://rufus.ie])
    2 AM_INIT_AUTOMAKE([-Wno-portability foreign no-dist no-dependencies])
    3 AC_CONFIG_SRCDIR([src/rufus.c])
    4 AC_CONFIG_MACRO_DIR([m4])
    5 AM_SILENT_RULES([yes])
    6 
    7 AC_PREREQ([2.50])
    8 AC_PROG_CC
    9 # autoconf 2.61 doesn't have AC_PROG_AR, but 2.63 has it
   10 AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)])
   11 AC_PROG_AR
   12 AC_PROG_RANLIB
   13 AC_PROG_SED
   14 AC_PATH_PROG(RM, rm, rm)
   15 AC_CHECK_TOOL(STRIP, strip, strip)
   16 AC_CHECK_TOOL(WINDRES, windres, windres)
   17 AC_C_INLINE
   18 AC_DEFINE([_GNU_SOURCE], [], [Use GNU extensions])
   19 
   20 AM_CFLAGS="${AM_CFLAGS} -DWINVER=0x601 -D_WIN32_WINNT=0x601 -D_WIN32_IE=0x800"
   21 # "-Wl,--nxcompat" to enable DEP (Data Execution Prevention)
   22 # "-Wl,--dynamicbase" to enable ASLR (Address Space Layout Randomization)
   23 AM_LDFLAGS="${AM_LDFLAGS} -Wl,-no-undefined -Wl,--nxcompat -Wl,--no-insert-timestamp -Wl,--dynamicbase"
   24 
   25 # Debug symbols
   26 AC_ARG_ENABLE([debug],
   27 	[AS_HELP_STRING([--enable-debug],
   28 		[keep debug symbols for gdb (default=yes)])],
   29 	[debug_enabled=$enableval],
   30 	[debug_enabled='yes'])
   31 if test "x$debug_enabled" != "xno" ; then
   32   CFLAGS="-g -O0"
   33 else
   34   CFLAGS="-Os"
   35   LDFLAGS="-s"
   36 fi
   37 
   38 # Alpha/Beta/Test
   39 AC_ARG_ENABLE([alpha],[AS_HELP_STRING([--enable-alpha], [build an ALPHA release (default=no)])], [alpha_enabled=$enableval], [alpha_enabled='no'])
   40 if test "x$alpha_enabled" != "xno" ; then
   41   CFLAGS+=" -DALPHA"
   42   SUFFIX=_ALPHA
   43 fi
   44 AC_ARG_ENABLE([beta],[AS_HELP_STRING([--enable-beta], [build a BETA release (default=no)])], [beta_enabled=$enableval], [beta_enabled='no'])
   45 if test "x$beta_enabled" != "xno" ; then
   46   CFLAGS+=" -DBETA"
   47   SUFFIX=_BETA
   48 fi
   49 AC_ARG_ENABLE([test],[AS_HELP_STRING([--enable-test=#], [build a TEST release (default=no)])], [test_enabled=$enableval], [test_enabled='no'])
   50 if test "x$test_enabled" != "xno" ; then
   51   if test "x$test_enabled" == "xyes" ; then $enableval="" ; fi
   52   CFLAGS+=" -DTEST=$enableval"
   53   SUFFIX=_TEST$enableval
   54 fi
   55 
   56 AC_MSG_RESULT([enabling Large File Support (ISO support)])
   57 AM_CFLAGS="$AM_CFLAGS -D_FILE_OFFSET_BITS=64 -D_OFF_T_ -D_off_t=off64_t -Doff_t=off64_t -Doff32_t=long"
   58 
   59 # check for -Wno-pointer-sign compiler support (GCC >= 4)
   60 saved_CFLAGS="${CFLAGS}"
   61 CFLAGS="$CFLAGS -Wno-pointer-sign"
   62 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
   63 	[nopointersign_cflags="-Wno-pointer-sign"], [nopointersign_cflags=""])
   64 CFLAGS="${saved_CFLAGS}"
   65 
   66 AM_CFLAGS="$AM_CFLAGS -DUNICODE -D_UNICODE -UNDEBUG -DCOBJMACROS -D__USE_MINGW_ANSI_STDIO=0 -std=gnu99 -Wshadow -Wall -Wformat-security -Wundef -Wunused -Wstrict-prototypes -Wno-restrict -Werror-implicit-function-declaration $nopointersign_cflags"
   67 
   68 AC_SUBST([VISIBILITY_CFLAGS])
   69 AC_SUBST([AM_CFLAGS])
   70 AC_SUBST([AM_LDFLAGS])
   71 AC_SUBST([SUFFIX])
   72 
   73 AC_CONFIG_FILES([Makefile])
   74 AC_CONFIG_FILES([src/Makefile])
   75 AC_CONFIG_FILES([src/bled/Makefile])
   76 AC_CONFIG_FILES([src/ext2fs/Makefile])
   77 AC_CONFIG_FILES([src/libcdio/iso9660/Makefile])
   78 AC_CONFIG_FILES([src/libcdio/udf/Makefile])
   79 AC_CONFIG_FILES([src/libcdio/driver/Makefile])
   80 AC_CONFIG_FILES([res/loc/Makefile])
   81 AC_CONFIG_FILES([src/ms-sys/Makefile])
   82 AC_CONFIG_FILES([src/syslinux/libfat/Makefile])
   83 AC_CONFIG_FILES([src/syslinux/libinstaller/Makefile])
   84 AC_CONFIG_FILES([src/syslinux/win/Makefile])
   85 AC_OUTPUT