Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from barak/master
autotools, icon, desktop, warnings
- Loading branch information
Showing
24 changed files
with
256 additions
and
513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
*.o | ||
*.swp | ||
*.gz | ||
acconfig.h | ||
aclocal.m4 | ||
autom4te.cache/ | ||
*.o | ||
.deps/ | ||
config.h | ||
config.log | ||
config.status | ||
stamp-h1 | ||
configure | ||
depcomp | ||
install-sh | ||
/aclocal.m4 | ||
/autom4te.cache/ | ||
/compile | ||
/config.h | ||
/config.h.in | ||
/config.log | ||
/config.status | ||
/configure | ||
/depcomp | ||
/hicolor/ | ||
/install-sh | ||
/missing | ||
/stamp-h1 | ||
/usbview | ||
/usbview_icon.xpm | ||
Makefile | ||
Makefile.in | ||
missing | ||
mkinstalldirs | ||
usbview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
dnl Process this file with autoconf to produce a configure script. | ||
|
||
# Prologue. | ||
|
||
AC_PREREQ([2.69]) | ||
AC_INIT([USBView],[2.0],[Greg Kroah-Hartman <greg@kroah.com>],[usbview],[http://www.kroah.com/linux-usb/]) | ||
AC_CONFIG_SRCDIR([usbtree.c]) | ||
AC_CONFIG_HEADERS([config.h]) | ||
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall]) | ||
|
||
# Process options. | ||
|
||
AC_MSG_CHECKING([whether to try to install icons]) | ||
AC_ARG_ENABLE(icons, | ||
[AS_HELP_STRING([--enable-icons],[try to install icons (default=yes)])], | ||
[icons=$enableval], | ||
[icons=yes]) | ||
AC_MSG_RESULT([$icons]) | ||
|
||
AC_MSG_CHECKING([whether to try to install desktop file]) | ||
AC_ARG_ENABLE(desktop, | ||
[AS_HELP_STRING([--enable-desktop],[try to install desktop file (default=yes)])], | ||
[desktop=$enableval], | ||
[desktop=yes]) | ||
AC_MSG_RESULT([$desktop]) | ||
|
||
# Checks for programs. | ||
|
||
AC_PROG_CC | ||
AC_CHECK_PROG([have_inkscape],[inkscape],[yes],[no]) | ||
AC_CHECK_PROG([have_convert],[convert],[yes],[no]) | ||
|
||
# Set automake conditionals. | ||
|
||
AC_SUBST(INKSCAPE,[inkscape]) | ||
AC_SUBST(CONVERT,[convert]) | ||
AM_CONDITIONAL(USE_INKSCAPE,[test "$have_inkscape" = "yes"]) | ||
AM_CONDITIONAL(USE_CONVERT, [test "$have_inkscape" = "no" && test "$have_convert" = "yes"]) | ||
AM_CONDITIONAL(HAVE_INKSCAPE,[test "$have_inkscape" = "yes"]) | ||
AM_CONDITIONAL(HAVE_CONVERT, [test "$have_convert" = "yes"]) | ||
|
||
AS_IF([test "$have_inkscape" = "no" && test "$have_convert" = "no"], | ||
[AC_MSG_WARN([no bitmap conversion utility, disabling icon installation]) | ||
icons=no]) | ||
|
||
AM_CONDITIONAL(DESKTOP,[test x${desktop} = xyes]) | ||
AM_CONDITIONAL(ICONS,[test x${icons} = xyes]) | ||
|
||
# Checks for libraries. | ||
|
||
AC_SEARCH_LIBS([strerror],[cposix]) | ||
PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.0]) | ||
AC_SUBST([GTK_FLAGS]) | ||
AC_SUBST([GTK_LIBS]) | ||
|
||
# Checks for header files. | ||
|
||
AC_CHECK_HEADERS([ctype.h errno.h stdio.h],, | ||
AC_MSG_ERROR(required system header file unavailable)) | ||
|
||
# Checks for typedefs, structures, and compiler characteristics. | ||
|
||
AX_CFLAGS_WARN_ALL | ||
|
||
# Checks for library functions. | ||
|
||
AC_CHECK_FUNCS([memset strstr strtol],, | ||
AC_MSG_ERROR(required library function unavailable)) | ||
|
||
# Epilogue. | ||
|
||
AC_CONFIG_FILES([Makefile]) | ||
AC_OUTPUT |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.