summaryrefslogtreecommitdiff
path: root/libgphoto2_port
Commit message (Collapse)AuthorAgeFilesLines
* AC_CONFIG_FILES change to indented multi-line formHans Ulrich Niedermann2021-11-031-9/+9
|
* AM_INIT_AUTOMAKE change to indented multi-line formHans Ulrich Niedermann2021-11-031-1/+8
| | | | This makes it easier to see and merge changes.
* AC_INIT change to arguments on multiple linesHans Ulrich Niedermann2021-11-031-1/+6
| | | | This makes changes easier to read in diffs.
* Use m4_pattern_forbid to find unnoticed GP_ stringsHans Ulrich Niedermann2021-11-032-0/+6
| | | | | Use m4_pattern_forbid to find unnoticed GP_ strings in the configure and config.status scripts.
* Update libltdl checks (GP_LIBLTDL)Hans Ulrich Niedermann2021-11-032-42/+108
| | | | | | | | | | We still do not use LTDL_INIT() as LTDL_INIT insists on us shipping libltdl sources in our release tarballs and we still do not like shipping third party sources. This now checks locations other than the default include and linker paths, so that configure should find libltdl by itself now on e.g. FreeBSD or OSX/homebrew.
* gp-camlibs.m4: Fix GP_SLEEP invocation in in Gentoo hackHans Ulrich Niedermann2021-11-031-115/+434
| | | | | | | | Fix the GP_SLEEP invocation in the Gentoo hack warning which adds the ptp2 camlib if the only camlib requested is canon, as modern Canon cameras use the ptp2 camlib, not the canon camlib. Also syncs gphoto-m4/gp-camlibs.m4 to libgphoto2-port/gphoto-m4/.
* sync gp-gettext-hack.m4 files between gphoto-m4 dirsHans Ulrich Niedermann2021-10-261-6/+9
|
* POTFILES.in: Add remaining source files using i18n.hHans Ulrich Niedermann2021-10-251-0/+1
| | | | | | | Add remaining source files including libgphoto2/i18n.h or libgphoto2_port/i18n.h to the respective POTFILES.in, regardless of whether or not the source file actually contains translated strings.
* POTFILES.in: Add ptpip, vusb iolibsHans Ulrich Niedermann2021-10-251-2/+5
| | | | | | | All three added sourcefiles had the i18n headers, but strings actually marked for translations are only found in ptpip/ptpip.c, not in any of the vusb/vcamera.c or vusb/vusb.c files.
* Rename libgphoto2_port test directory testsHans Ulrich Niedermann2021-10-255-2/+2
| | | | | Rename the libgphoto2_port/test directory to libgphoto2_port/tests to make its name the same as libgphoto2/tests.
* library versioning comment without trailing spacesHans Ulrich Niedermann2021-10-251-4/+4
|
* Factor out i18n stuff into separate i18n.h filesHans Ulrich Niedermann2021-10-2517-237/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Factor out the i18n definitions into i18n.h include files: One include file each for libgphoto2 and for libgphoto2_port. This removes the complete #ifdef ENABLE_NLS # include <libintl.h> # undef _ # define _(String) dgettext (GETTEXT_PACKAGE, String) # ifdef gettext_noop # define N_(String) gettext_noop (String) # else # define N_(String) (String) # endif #else # define _(String) (String) # define N_(String) (String) #endif block (which in some occasions defines even more macros) and replaces it with a single line #include "libgphoto2/i18n.h" for camlibs and libgphoto2 itself and with #include "libgphoto2_port/i18n.h" for iolibs and libgphoto2_port itself. This gives us two central locations to change the defintions.
* sync gp-check-library.m4 between gphoto-m4 dirsHans Ulrich Niedermann2021-10-253-44/+8
| | | | | | | | | | | The gphoto-m4 gp-check-library.m4 has been using PKG_PROG_PKG_CONFIG since commit c1ab67b7288359066b4884d3058e712f6170da35 (2017-08-29), so this makes the libgphoto2_port/gphoto-m4 use the same code. As PKG_PROG_PKG_CONFIG provided by pkg-config's pkg.po, this means we now require that to be present - and we should better check at autoreconf time that the PKG_PROG_PKG_CONFIG macro is actually defined.
* Typo fix: It is _SOURCES, not _SOURCEHans Ulrich Niedermann2021-10-241-2/+2
|
* Update libphoto2_port/po/de.po to UTF-8 after allHans Ulrich Niedermann2021-10-211-69/+69
| | | | | | | | | | | As the German translation ("de") is configured as "external" at the Translation Project, there will be no updated `de.po` files from the Translation Project to overwrite what we have in our source tree. So the gphoto project needs to maintain the de.po file independent from the Translation Project, and updating the file from ISO-8859-1 to UTF-8 is a part of that.
* Remove rpm packagingHans Ulrich Niedermann2021-10-192-89/+0
| | | | | | | | | | While adding support for "make rpm" appeared to be a good idea in the early 2000s, it really is not and only clutters up the build system. At least the libgphoto2_port translation cannot have worked in the rpm package since at least 5255d802102c10f971dc98f10828451d9922340d from 2007-10-28, so it is a good guess that this has not really been in use.
* Use && and || instead of test arguments -a and -oHans Ulrich Niedermann2021-10-192-3/+3
| | | | | For portability, use && and || instead of the test arguments -a and -o.
* Sync gp-byteorder.m4, supporting 64bit valuesHans Ulrich Niedermann2021-10-191-0/+4
|
* Remove unused remnants of convenience libltdlHans Ulrich Niedermann2021-10-193-65/+0
| | | | | | Not that its presence hurt anything, but we could have removed the libltdlc.la stuff some time in the 2000s.
* Fix check output for DEFAULT_CAMLIBS and DEFAULT_IOLIBSHans Ulrich Niedermann2021-10-121-1/+2
| | | | | | | | Fix the output configure prints about DEFAULT_CAMLIBS and DEFAULT_IOLIBS. This only affects the output configure prints, no actual config changes are happening.
* Replace --with-foodir= argument by foodir= variableHans Ulrich Niedermann2021-10-111-6/+43
| | | | | | | | | | | | | | | | | | | | | | This improves the definition of the camlib and iolib compile time install location and the runtime lookup location to use the same mechanism of using variables. Example uses for Windows builds using the default install location: ./configure \ DEFAULT_CAMLIBS='./libgphoto2' \ DEFAULT_IOLIBS='./libgphoto2_port' Or example use for explicitly defining the install location as well: ./configure \ camlibdir='/path/to/camlibs' \ DEFAULT_CAMLIBS='./libgphoto2' \ iolibdir='/path/to/iolibs' \ DEFAULT_IOLIBS='./libgphoto2_port'
* Make CAMLIBS and IOLIBS fallbacks configurableHans Ulrich Niedermann2021-10-111-5/+15
| | | | | | | | | | | | | | | | | | | | | | | Make CAMLIBS and IOLIBS fallback locations (where libgphoto2 looks for camlibs at runtime if the CAMLIBS environment variable is not set, and where libgphoto2_port looks for iolibs at runtime if the IOLIBS environment variable is not set) configurable at configure time. The runtime lookup location DEFAULT_CAMLIBS and DEFAULT_IOLIBS can be set independently from the installation location camlibdir and iolibdir. This is to accommodate systems like Windows where it apparently makes sense to install files to a location at build time which is different to where the files will eventually end up being used from: ./configure \ --with-camlibdir='/path/to/camlibs' \ DEFAULT_CAMLIBS='./libgphoto2' \ --with-iolibdir='/path/to/camlibs' \ DEFAULT_IOLIBS='./libgphoto2_port' As this interface is a bit ugly mixing the variables with the --with-argument, we will improve that in the next commit.
* Use common code for defining iolibdir and camlibdirHans Ulrich Niedermann2021-10-113-15/+34
| | | | | Use a common m4 macro GP_DRIVERDIR for defining iolibdir and IOLIBS in libgphoto2_port and camlibdir and CAMLIBS in libgphoto2.
* Avoid accidental include file name collisionsHans Ulrich Niedermann2021-10-113-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are five libgphoto2 internal *.h include files inside the source tree's `libgphoto2/` folder. Internal means they are part of the libgphoto2 implementation, and are not part of the public libgphoto2 API or ABI. These files have names which are so generic that it is difficult to see from a `#include` statement that the included file is actually part of libgphoto2: bayer-types.h bayer.h exif.h gamma.h jpeg.h While building, an additional file is created inside the `libgphoto2/` folder with a name which does hint to its relationship with libgphoto2: gphoto2-endian.h To reduce the probability of accidental conflicts with include files which might also be called the same very generic name, this changes the use of these include files to a preprocessor directive like #include "libgphoto2/bayer.h> instead of #include "bayer.h" To enforce the need for the "libgphoto2/" part in the #include preprocessor directive, this also removes the respective `-I` arguments for the `libgphoto2` subdir (both in source tree and in build tree) from `*_CPPFLAGS`. This change was inspired by `libgphoto2/` and `camlibs/stv0680/` containing very different include files both called `bayer.h`.
* Group iolib list related definitionsHans Ulrich Niedermann2021-10-101-6/+11
| | | | | Group the definitions related to the iolib list definitions, as they are not related to the iolibdir related definitions.
* Use same autoconf requirement in libgphoto2_portHans Ulrich Niedermann2021-10-101-1/+1
| | | | | Use same autoconf requirement in libgphoto2_port configure.ac as in libgphoto2 configure.ac.
* utf-8: fix weird minus/hyphen characterHans Ulrich Niedermann2021-10-091-1/+1
| | | | | I have no idea how that non-ASCII hyphen character made its way into that m4 file, but this returns a simple ASCII character.
* utf-8: Convert ISO-8859 text to UTF-8Hans Ulrich Niedermann2021-10-093-110/+110
| | | | | | | Convert the easy ISO-8859 text to UTF-8. The difficult ISO-8859 text will will be eliminated by future commits.
* Use consistently named non-reserved CPP macros for header filesHans Ulrich Niedermann2021-10-059-27/+30
| | | | | | | | | | | | | | | | | | | | | | | C preprocessor macros beginning/ending with underscores are reserved for system use as well as macros containing a double underscore anywhere, so application software macros are supposed to be named differently. For a header file gphoto2-abilities-list.h, this consistently uses a macro name LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H for the usual #ifndef LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H #define LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H ... content of the header file ... #endif /* !defined(LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H) */ Found using "clang -Weverything". This should work, unless when run with an ancient C preprocessor which might only the first 8 or 10 characters to distinguish macro names and ignores the remainder of the name.
* fix broken check of CPP macro definition after #elifHans Ulrich Niedermann2021-10-031-2/+2
| | | | | | | Fix broken check of CPP macro definition after #elif. The fact that this has not been caught yet is indicative of this configuration probably being relatively rare.
* fixed uninitialized memory access / potential crashMarcus Meissner2021-10-021-2/+20
| | | | https://github.com/gphoto/libgphoto2/issues/721
* addred a missing gp_port_info_newMarcus Meissner2021-09-261-0/+1
|
* also register port vusb:Marcus Meissner2021-09-261-0/+5
|
* Remove remnants of OS/2 supportHans Ulrich Niedermann2021-09-085-420/+0
| | | | | | | | Remove remnants of OS/2 support, which has been broken at least since commit 9831fa553c from 2006-10, but more probably even since after gphoto2 2.1.0 which was some time in 2002. Closes: https://github.com/gphoto/libgphoto2/issues/710
* Leave comment in Makefile.am about subdir sequenceHans Ulrich Niedermann2021-08-301-0/+1
|
* Run libgphoto2_port tests only AFTER building iolibsHans Ulrich Niedermann2021-08-301-1/+1
| | | | | | The test-port-list test can only work with iolibs having been compiled before, and that requires "." *before* "test" in the SUBDIRS definition.
* use darwin_c_source ... isoc99 source does not seem to cut it for macos. ↵Marcus Meissner2021-03-101-1/+1
| | | | https://github.com/gphoto/libgphoto2/issues/633
* use isoc99 source https://github.com/gphoto/libgphoto2/issues/633Marcus Meissner2021-03-091-1/+1
|
* added #define _DARWIN_C_SOURCE as in other files to avoid implicitMarcus Meissner2021-03-091-0/+1
| | | | https://github.com/gphoto/libgphoto2/issues/633
* Fix typos found by codespell in *.m4Hans Ulrich Niedermann2021-02-282-2/+2
| | | | See https://github.com/gphoto/libgphoto2-python/issues/4
* Remove stdint.h shim (#625)Zeranoe2021-02-223-734/+1
| | | stdint.h has wide adoption at this point, so it should be safe to use.
* Add _DARWIN_C_SOURCE to most files that use string.h (#615)Rafał Hirsz2021-01-291-0/+1
| | | This change makes it possible to build libgphoto2 on macOS.
* define _DARWIN_C_SOURCE for strdup on MacOS. fixes ↵Marcus Meissner2020-10-181-0/+1
| | | | https://github.com/gphoto/libgphoto2/issues/552
* fixup for prev commit ... just make the internal id an int, remove cast againMarcus Meissner2020-08-272-3/+3
|
* Fix libgphoto2_port compilation warnings.Siim Meerits2020-08-272-5/+5
| | | | | | | | * gphoto2-port-info-list.c: * gp_port_info_list_append(...): Variables 'generic' and 'i' are changed to unsigned types as they are used in trivial 'for' loops already in unsigned comparison mode. * gp_port_info_list_get_info(...): Cast variable 'n' to unsigned in two places to avoid signed-unsigned compare warnings. This does not change behavior. * gphoto2-port-log.c: * gp_log_remove_func(...): Change variable 'i' to unsigned type as it is used in trivial 'for' loop in unsigned comparison mode. Also casts variable 'id' to unsigned to avoid signed-unsigned comparison. This does not change code behavior.
* usbscsi and usbdiskdirect are only working on Linux due to lowlevelMarcus Meissner2020-08-201-4/+11
| | | | | | ioctl used. fixes https://github.com/gphoto/libgphoto2/issues/553
* Fix typo in error messageRyan Schmidt2020-08-201-1/+1
|
* Fix libusb1 iolib compilation warnings.Siim Meerits2020-08-031-2/+2
| | | | Resolves signed-unsigned comparison issues.
* Remove trailing whitespace from all *.h and *.c files.Siim Meerits2020-07-2726-246/+246
|
* configure: fix symver support checksFerenc Wágner2020-07-181-5/+6
| | | | | | | | The versioned test symbols must be external, so move them into the prologue, otherwise GCC 9.3 (at least) reports "Error: invalid attempt to declare external version name as default in symbol `f@@VER2'". Also suppress warnings about missing prototypes and return statements for these test functions.