| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
Use a common m4 macro GP_DRIVERDIR for defining iolibdir and IOLIBS
in libgphoto2_port and camlibdir and CAMLIBS in libgphoto2.
|
|
|
|
|
|
|
|
|
|
| |
Use AC_SEARCH_LIBS to find whether mmap(2) in the standard
library, or whether using mmap(2) requires linking against
libmman.
This avoids conditionally calling/expanding AM_CONDITIONAL
which autoreconf (rightly) complains about. This also uses
proper m4 quoting in all m4 macro arguments.
|
|
|
|
| |
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
|
|
|
|
|
|
|
| |
Avoid the po-directories error by putting AM_PO_SUBDIRS *before*
AM_GNU_GETTEXT:
configure.ac:NNN: error: `po-directories' is already registered with AC_CONFIG_COMMANDS.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The gphoto2 device database (gp2ddb) was originally intended to
replace the device lists in the camlib code by a device list
maintained in a text file outside of the camlib C code.
This device list file could then be changed without
recompiling camlibs, at the cost of adding a simple gp2ddb
to internal binary representation compiler to libgphoto2.
This would have allowed a user to very easily add a new camera
model to the list of camera models supported by a specific
camlib, as long as that new camera model uses the same
protocol as already supported camera models do.
As the gp2ddb idea has never been developed any further in the
15 yearns since my initial commit from 2006, this idea appears
to be obsolete and can thus be removed from the codebase.
|
|
|
| |
stdint.h has wide adoption at this point, so it should be safe to use.
|
| |
|
| |
|
| |
|
|
|
|
| |
complements https://github.com/gphoto/libgphoto2/pull/596
|
|
|
|
|
|
|
|
|
|
|
| |
statfs is a non-portable function available only on few OSes (Linux for
example). Because of this, the storage_info_func provides results only
on Linux. Switch it to statvfs instead: it is a POSIX function, so
portable and supposedly available on any POSIX platform.
Switch the build system bits from statfs to statvs, removing any statfs
leftover. The used APIs of statfs are available as the same when using
statvfs.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This prints a number of CC and CXX version messages, so we can see
better which C and C++ compilers are actually in use.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Check that programs including libgphoto2 headers compile
when compiled for a number of different language standards:
C: ansi c99 c11
C++: ansi c++98 c++11 c++14 c++17
For each of these language standards, if the compiler does not
compile an empty example program, we do not test whether compiling
with the gphoto2/*.h headers included works.
This will work with GCC as the compiler, and also should work with
CLANG as the compiler as CLANG is mostly compatible in these matters.
On other compilers, the test compile of the empty program should
fail, and thus no checks with the gphoto2/*.h headers included will
be performed.
C90/ANSI C apparently does not define __STDC_VERSION__, so the
C source code needed to be changed to become ANSI C compatible.
In C++ pedantic compilation source, we now use actual C++ code
instead of relying on C code working when compiled as C++ code.
In Travis CI, we now actually require both C and C++.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This uses proper set operations both for GP_CAMLIB and for handling
the --with-camlibs value. This allows all GP_CAMLIB definitions to
be present at autoreconf time (as m4 code) time while some camlib
definitions being conditional at the time of the configure run (in
the sh code).
The ./configure output is still a bit verbose, but we can reduce that
verbosity later when we have found out that this works well on people's
different systems.
Fixes: https://github.com/gphoto/libgphoto2/issues/467
|
|
|
|
|
|
|
| |
This should avoid some possible incompatibities in the case
of the multi line string argument to "echo", and cleans up
the code by replacing a number of "echo" commands with a
single AC_MSG_WARN.
|
|
|
|
| |
fixes https://github.com/gphoto/libgphoto2/issues/454
|
| |
|
| |
|
|\ |
|
| | |
|
| | |
|
|/
|
|
| |
https://github.com/gphoto/libgphoto2/issues/409
|
| |
|
|
|
|
| |
Tag a lot of camlibs as obsolete / outdated
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|