"Fossies" - the Fresh Open Source Software Archive

Member "fdupes-2.1.2/configure.ac" (12 Aug 2020, 1758 Bytes) of package /linux/privat/fdupes-2.1.2.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": 2.1.1_vs_2.1.2.

    1 AC_INIT([fdupes], [2.1.2])
    2 
    3 AM_INIT_AUTOMAKE([foreign subdir-objects])
    4 
    5 AC_CONFIG_HEADERS([config.h])
    6 
    7 AC_ARG_PROGRAM
    8 
    9 PKG_PROG_PKG_CONFIG
   10 
   11 AC_ARG_WITH([ncurses], AS_HELP_STRING([--without-ncurses], [Do not use ncurses interface]))
   12 
   13 AC_CHECK_HEADERS([getopt.h ncursesw/curses.h])
   14 
   15 AS_IF([test x"$with_ncurses" != x"no"],
   16 	[PKG_CHECK_MODULES([NCURSES], [ncursesw],
   17 		[LIBS="$LIBS $NCURSES_LIBS"],
   18 		[AC_SEARCH_LIBS([wget_wch], [ncursesw ncurses curses], [], [AC_ERROR([ncurses library not found (or lacks wide character support)])])]
   19 		[AC_SEARCH_LIBS([keypad], [ncursesw tinfow ncurses tinfo curses], [], [AC_ERROR([ncurses library not found (lacks keypad support)])])]
   20 	)]
   21 	[AC_DEFINE([_XOPEN_SOURCE], [], [enable certain functions in wchar.h])]
   22 	[AC_DEFINE([_XOPEN_SOURCE_EXTENDED], [], [enable certain functions in curses.h])]
   23 	[AC_DEFINE([_ISOC99_SOURCE], [], [enable strtoll])]
   24 	[AC_SEARCH_LIBS([pcre2_match_32], [pcre2-32], [], [AC_ERROR([pcre2 library not found])])]
   25 	[AC_DEFINE([PCRE2_CODE_UNIT_WIDTH], [32], [PCRE2 Code Unit Width])],
   26 
   27 	[AC_DEFINE([NO_NCURSES], [], [Do not compile against ncurses])]
   28 	)
   29 
   30 AM_CONDITIONAL([NO_NCURSES], [test x"$with_ncurses" = x"no"])
   31 
   32 unescaped_program_transform_name=`echo "${program_transform_name}"|sed -e "s&\\\\$\\\\$&\\\\$&g"`
   33 transformed_program_name=`echo "${PACKAGE_NAME}"|sed -e "${unescaped_program_transform_name}"|sed -e "s&\\\\\\\\&\\\\\\\\\\\\\\\\&g"`
   34 transformed_manpage_name=`echo "${PACKAGE_NAME}-help"|sed -e "${unescaped_program_transform_name}"`
   35 
   36 AC_DEFINE_UNQUOTED([HELP_COMMAND_STRING], "man 7 ${transformed_manpage_name}", [fdupes help file])
   37 
   38 AC_DEFINE([_FILE_OFFSET_BITS], [64], [allow fdupes to handle files greater than (2<<31)-1 bytes])
   39 
   40 AC_CONFIG_FILES([Makefile])
   41 AC_PROG_CC
   42 AC_OUTPUT