You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

287 lines
14 KiB
Plaintext

------------------------------------------------------------------------------
The MB-system: configure 12/7/2011
Copyright (c) 2011-2020 by
D. W. Caress (caress@lamont.ldgo.columbia.edu)
and D. N. Chayes (dale@lamont.ldgo.columbia.edu)
Lamont-Doherty Earth Observatory
Palisades, NY 10964
See README file for copying and redistribution conditions.
------------------------------------------------------------------------------
The initial version of the MB-System autoconf-based build system
was contributed by Bob Covill on 7 December 2011. Further
refinement of the build system involved contributions from
Bob Covill, Kurt Schwehr, Hamish Bowman, David Caress, and
Christian Ferreira.
------------------------------------------------------------------------------
To modify this build system...
------------------------------------------------------------------------------
Edit the file configure.ac in the top directory and the files
Makefile.am in each directory under src. Then run the following sequence
of commands:
# Build libtool files for LT_INIT[]
libtoolize --force --copy
aclocal
# Build custom header for configure[]
autoheader
automake --add-missing --include-deps
autoconf
# To update configure files use the following:[]
autoupdate
autoreconf --force --install --warnings=all
When you run ./configure, a number of configure options are saved to a
header file:
./src/mbio/mb_config.h
This file has a template:
./src/mbio/mb_config.h.in
This file is conditionally included by:
./src/mbio/mb_define.h
which is in turn included by almost every MB-System C source file.
------------------------------------------------------------------------------
To use the build system...
------------------------------------------------------------------------------
To generate the makefiles needed to build MB-System, run ./configure
with the options appropriate for your situation. These options are
listed here:
--prefix=install - location for mbsystem (/usr/local/mbsystem) (optional)
--with-netcdf-config - location of NetCDF config script nc-config (optional)
--with-gdal-config - location of GDAL config script gdal-config (optional)
--with-gmt-config - location of GMT config script gmt-config (optional)
--with-proj-lib - location of PROJ libs (optional)
--with-proj-include - location of PROJ headers (optional)
--with-fftw-lib - location of FFTW3 libs (optional)
--with-fftw-include - location of FFTW3 headers (optional)
--with-motif-lib - location of Motif libs (optional)
--with-motif-include - location of Motif headers (optional)
--with-opengl-lib - location of OpenGL libs (optional)
--with-opengl-include - location of OpenGL headers (optional)
--with-otps-dir - location of OTPS installation (optional)
--with-opencv-lib - location of OpenCV libs (optional)
--with-opencv-include - location of OpenCV headers (optional)
--enable-opencv - enable building tools using OpenCV (optional)
--enable-mbtrn - enable building terrain relative navigation (TRN) tools (optional)
--enable-mbtnav - enable building terrain relative navigation (TRN) tools (optional)
--disable-mbtools - disable building graphical tools (use with --enable-mbtrn and --enable-mbtnav)
--enable-hardening - Enable compiler and linker options to frustrate memory corruption exploits (e.g. -fPIE and -pie) (optional)
--enable-test - Enable building unit tests in test/ and third-party/
--enable-qt - Enable building graphical tools using the Qt5 framework
After configure you can run the make utility in the usual fashion
make
make install
Some other useful make commands include:
make clean (to clean up compiled code)
make distclean (to clean up compiled code and configure output)
make uninstall (to remove a previously installed version)
------------------------------------------------------------------------------
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
------------------------------------------------------------------------------
Configure will now attempt to construct the Makefiles required to build MB-System
MB-System Version 5.7.8
HOST System Type: aarch64-unknown-linux-gnu
Specified Installation Prefix: NONE
Default Installation Prefix: /usr/local
Used Installation Prefix: /usr/local
------------------------------------------------------------------------------
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ supports C++11 features with -std=gnu++11... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of g++ -std=gnu++11... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking for gcc option to accept ISO Standard C... (cached) none needed
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ -std=gnu++11 accepts -g... (cached) yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -std=gnu++11 -E
checking for ld used by g++ -std=gnu++11... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ -std=gnu++11 linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ -std=gnu++11 option to produce PIC... -fPIC -DPIC
checking if g++ -std=gnu++11 PIC flag -fPIC -DPIC works... yes
checking if g++ -std=gnu++11 static flag -static works... yes
checking if g++ -std=gnu++11 supports -c -o file.o... yes
checking if g++ -std=gnu++11 supports -c -o file.o... (cached) yes
checking whether the g++ -std=gnu++11 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for cos in -lm... yes
checking for a Python interpreter with version >= 3.6... python
checking for python... /usr/bin/python
checking for python version... 3.8
checking for python platform... linux
checking for python script directory... ${prefix}/lib/python3.8/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.8/site-packages
checking whether byte ordering is bigendian... no
checking for ANSI C header files... (cached) yes
checking for exp in -lm... yes
checking for pthread_create in -lpthread... yes
checking for gsincos... no
checking for sincos... yes
checking for int8_t... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
Build does not require -DSUN CFLAG
Not WIN32 system
checking rpc/rpc.h usability... yes
checking rpc/rpc.h presence... yes
checking for rpc/rpc.h... yes
checking rpc/types.h usability... yes
checking rpc/types.h presence... yes
checking for rpc/types.h... yes
checking for xdrmem_create... yes
Checking for hardening enabled.... no
Use OTPS (OSU Tidal Prediction Software) location if specified with --with-otps-dir, use default otherwise
Check for PROJ library libproj
Look for pkg-config PROJ package...
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for proj... yes
checking for proj_normalize_for_visualization in -lproj... yes
Found PROJ library libproj from version 6.1 or later
FOUND_PROJ_LIB:yes FOUND_PROJ4:no FOUND_PROJ6:yes
Check if proj header location specified on the command line
Looking for PROJ headers in the usual places...
checking proj.h usability... yes
checking proj.h presence... yes
checking for proj.h... yes
Found PROJ 5/6 header proj.h
checking proj_api.h usability... no
checking proj_api.h presence... no
checking for proj_api.h... no
checking for nc-config... /usr/local/bin/nc-config
checking for netCDF includes... -I/usr/local/include
checking for netCDF libs... -L/usr/local/lib -lnetcdf
checking for gdal-config... /usr/local/bin/gdal-config
checking for GDAL includes... -I/usr/local/include
checking for GDAL libs... -L/usr/local/lib -lgdal
checking for gmt-config... /usr/local/bin/gmt-config
checking for GMT version... 6.1.1
checking GMT version >= 6.1.0... yes
GMT version >= 6.1.0, mbgrdtiff calls the grdimage module
checking for GMT cflags... -I/usr/local/include/gmt
checking for GMT include directory... /usr/local/include/gmt
checking for GMT libs... -L/usr/local/lib -lgmt
checking for GMT library directory... /usr/local/lib
checking for GMT dependent libraries... /usr/local/lib/libnetcdf.so /usr/lib/aarch64-linux-gnu/libcurl.so /usr/local/lib/libgdal.so /usr/lib/aarch64-linux-gnu/libgeos_c.so /usr/lib/aarch64-linux-gnu/libpcre.so /usr/local/lib/libfftw3f.so /usr/local/lib/libfftw3f_threads.so /usr/lib/aarch64-linux-gnu/libopenblas.so /usr/lib/aarch64-linux-gnu/libopenblas.so /usr/lib/aarch64-linux-gnu/libz.so /usr/lib/aarch64-linux-gnu/libglib-2.0.so
checking for 32/64-bit GMT installation... found 64-bit
checking for GMT plugin location... /usr/local/lib/gmt/plugins
Check for FFTW library libfftw3
Look for pkg-config FFTW package...
checking for fftw3... yes
Check for FFTW headers
Looking for FFTW headers in the usual places...
checking fftw3.h usability... yes
checking fftw3.h presence... yes
checking for fftw3.h... yes
Using pre-installed FFTW headers...
Check if the graphical tools should be built
Not building graphical tools
Check if OpenCV4 based tools should be built
build_opencvtools: no
Not building OpenCV-based tools
Check if Qt5 based graphical tools should be built
build_qttools: no
Not building Qt5-based graphical tools
Check if the mbtrn tools should be built
Not building mbtrn tools
Check if the mbtnav tools should be built
Not building mbtnav tools
Check if programs using PCL should be built
Not building tools using PCL
Check if the unit tests should be built
Not building unit tests
Check if the GSF driver should be built
GSF driver will be built