problem locating headers, I think

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I am working on installing a set of programs called h5utils that uses
the library hdf5. This Library I installed under /scratch/ in a
parallelised version which can't be used and under /scratch/opt/ in a
serial version which should be used. I do configure with the command
./configure --prefix=/scratch/opt LDFLAGS="-L/scratch/opt/lib"
CPPFLAGS="-I/scratch/opt/include"
Which results in
...
checking hdf.h usability... no
checking hdf.h presence... no
checking for hdf.h... no
checking hdf/hdf.h usability... no
checking hdf/hdf.h presence... no
checking for hdf/hdf.h... no
checking for H5Fopen in -lhdf5... yes
checking for mkoctfile... mkoctfile
checking for octave... octave
checking where octave plugins
go... /usr/libexec/octave/2.1.57/site/oct/i686-pc-linux-gnu//
checking for v5dCreate in -lv5d... no
checking vis5d/v5d.h usability... no
checking vis5d/v5d.h presence... no
checking for vis5d/v5d.h... no
checking vis5d+/v5d.h usability... no
checking vis5d+/v5d.h presence... no
checking for vis5d+/v5d.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for htons... yes
checking for unsigned long... yes
checking size of unsigned long... configure: error: cannot compute
sizeof (unsigned long), 77
See `config.log' for more details.

So the library is found but the headers are not and then there is a
check for the size of long that fails mysteriously. Can anyone clear
this up to me I would be very grateful! I attach config.log and
configure.ac

Regards,
Robert Rehammar


-- 
Robert Rehammar
Krokslättsg. 2
431 67 Mölndal

Cel +46 (0)738 328834
Web rehammar.se/robert
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by h5utils configure 1.11.1, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --prefix=/scratch/opt LDFLAGS=-L/scratch/opt/lib CPPFLAGS=-I/scratch/opt/include CFLAGS=-I/scratch/opt/include

## --------- ##
## Platform. ##
## --------- ##

hostname = keldysh.fy.chalmers.se
uname -m = i686
uname -r = 2.6.9-67.0.7.ELsmp
uname -s = Linux
uname -v = #1 SMP Wed Feb 27 04:48:20 EST 2008

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /scratch/bin
PATH: /local/usr/bin
PATH: /chalmers/users/e9ravn/.vcs4/select
PATH: /chalmers/sw/vcs/core/bin
PATH: /chalmers/sw/sup/phc/b/binh
PATH: /bin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/kerberos/bin
PATH: /usr/X11R6/bin
PATH: /usr/local/bin
PATH: /chalmers/sw/sup/phc/b/binl


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1362: checking for a BSD-compatible install
configure:1417: result: /usr/bin/install -c
configure:1428: checking whether build environment is sane
configure:1471: result: yes
configure:1536: checking for gawk
configure:1552: found /bin/gawk
configure:1562: result: gawk
configure:1572: checking whether make sets $(MAKE)
configure:1592: result: yes
configure:1763: checking whether to enable maintainer-specific portions of Makefiles
configure:1772: result: no
configure:1835: checking for gcc
configure:1851: found /usr/bin/gcc
configure:1861: result: gcc
configure:2105: checking for C compiler version
configure:2108: gcc --version </dev/null >&5
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-9)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2111: $? = 0
configure:2113: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)
configure:2116: $? = 0
configure:2118: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2121: $? = 1
configure:2144: checking for C compiler default output file name
configure:2147: gcc -I/scratch/opt/include -I/scratch/opt/include -L/scratch/opt/lib conftest.c  >&5
configure:2150: $? = 0
configure:2196: result: a.out
configure:2201: checking whether the C compiler works
configure:2207: ./a.out
configure:2210: $? = 0
configure:2227: result: yes
configure:2234: checking whether we are cross compiling
configure:2236: result: no
configure:2239: checking for suffix of executables
configure:2241: gcc -o conftest -I/scratch/opt/include -I/scratch/opt/include -L/scratch/opt/lib conftest.c  >&5
configure:2244: $? = 0
configure:2269: result: 
configure:2275: checking for suffix of object files
configure:2296: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:2299: $? = 0
configure:2321: result: o
configure:2325: checking whether we are using the GNU C compiler
configure:2349: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:2355: $? = 0
configure:2359: test -z 
			 || test ! -s conftest.err
configure:2362: $? = 0
configure:2365: test -s conftest.o
configure:2368: $? = 0
configure:2381: result: yes
configure:2387: checking whether gcc accepts -g
configure:2408: gcc -c -g -I/scratch/opt/include conftest.c >&5
configure:2414: $? = 0
configure:2418: test -z 
			 || test ! -s conftest.err
configure:2421: $? = 0
configure:2424: test -s conftest.o
configure:2427: $? = 0
configure:2438: result: yes
configure:2455: checking for gcc option to accept ANSI C
configure:2525: gcc  -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:2531: $? = 0
configure:2535: test -z 
			 || test ! -s conftest.err
configure:2538: $? = 0
configure:2541: test -s conftest.o
configure:2544: $? = 0
configure:2562: result: none needed
configure:2580: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
conftest.c:2: error: syntax error before "me"
configure:2586: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:2730: checking for style of include used by make
configure:2758: result: GNU
configure:2786: checking dependency style of gcc
configure:2876: result: gcc3
configure:2894: checking whether gcc and cc understand -c and -o together
configure:2924: gcc -c conftest.c -o conftest.o >&5
configure:2927: $? = 0
configure:2929: gcc -c conftest.c -o conftest.o >&5
configure:2932: $? = 0
configure:2939: cc -c conftest.c >&5
configure:2942: $? = 0
configure:2945: cc -c conftest.c -o conftest.o >&5
configure:2948: $? = 0
configure:2950: cc -c conftest.c -o conftest.o >&5
configure:2953: $? = 0
configure:2971: result: yes
configure:3004: checking how to run the C preprocessor
configure:3039: gcc -E -I/scratch/opt/include conftest.c
configure:3045: $? = 0
configure:3077: gcc -E -I/scratch/opt/include conftest.c
conftest.c:11:28: ac_nonexistent.h: No such file or directory
configure:3083: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "h5utils"
| #define PACKAGE_TARNAME "h5utils"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "h5utils 1.11.1"
| #define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
| #define PACKAGE "h5utils"
| #define VERSION "1.11.1"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3122: result: gcc -E
configure:3146: gcc -E -I/scratch/opt/include conftest.c
configure:3152: $? = 0
configure:3184: gcc -E -I/scratch/opt/include conftest.c
conftest.c:11:28: ac_nonexistent.h: No such file or directory
configure:3190: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "h5utils"
| #define PACKAGE_TARNAME "h5utils"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "h5utils 1.11.1"
| #define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
| #define PACKAGE "h5utils"
| #define VERSION "1.11.1"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3234: checking for egrep
configure:3244: result: grep -E
configure:3249: checking for ANSI C header files
configure:3274: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:3280: $? = 0
configure:3284: test -z 
			 || test ! -s conftest.err
configure:3287: $? = 0
configure:3290: test -s conftest.o
configure:3293: $? = 0
configure:3382: gcc -o conftest -I/scratch/opt/include -I/scratch/opt/include -L/scratch/opt/lib conftest.c  >&5
configure:3385: $? = 0
configure:3387: ./conftest
configure:3390: $? = 0
configure:3405: result: yes
configure:3417: checking for sin in -lm
configure:3447: gcc -o conftest -I/scratch/opt/include -I/scratch/opt/include -L/scratch/opt/lib conftest.c -lm   >&5
conftest.c:19: warning: conflicting types for built-in function 'sin'
configure:3453: $? = 0
configure:3457: test -z 
			 || test ! -s conftest.err
configure:3460: $? = 0
configure:3463: test -s conftest
configure:3466: $? = 0
configure:3479: result: yes
configure:3494: checking for snprintf
configure:3551: gcc -o conftest -I/scratch/opt/include -I/scratch/opt/include -L/scratch/opt/lib conftest.c -lm  >&5
conftest.c:37: warning: conflicting types for built-in function 'snprintf'
configure:3557: $? = 0
configure:3561: test -z 
			 || test ! -s conftest.err
configure:3564: $? = 0
configure:3567: test -s conftest
configure:3570: $? = 0
configure:3582: result: yes
configure:3613: checking for inflate in -lz
configure:3643: gcc -o conftest -I/scratch/opt/include -I/scratch/opt/include -L/scratch/opt/lib conftest.c -lz  -lm  >&5
configure:3649: $? = 0
configure:3653: test -z 
			 || test ! -s conftest.err
configure:3656: $? = 0
configure:3659: test -s conftest
configure:3662: $? = 0
configure:3675: result: yes
configure:3686: checking for png_create_write_struct in -lpng
configure:3716: gcc -o conftest -I/scratch/opt/include -I/scratch/opt/include -L/scratch/opt/lib conftest.c -lpng  -lz -lm  >&5
configure:3722: $? = 0
configure:3726: test -z 
			 || test ! -s conftest.err
configure:3729: $? = 0
configure:3732: test -s conftest
configure:3735: $? = 0
configure:3748: result: yes
configure:3779: checking for evaluator_get_variables in -lmatheval
configure:3809: gcc -o conftest -I/scratch/opt/include -I/scratch/opt/include -L/scratch/opt/lib conftest.c -lmatheval  -lz -lm  >&5
/usr/bin/ld: cannot find -lmatheval
collect2: ld returned 1 exit status
configure:3815: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "h5utils"
| #define PACKAGE_TARNAME "h5utils"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "h5utils 1.11.1"
| #define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
| #define PACKAGE "h5utils"
| #define VERSION "1.11.1"
| #define STDC_HEADERS 1
| #define HAVE_LIBM 1
| #define HAVE_SNPRINTF 1
| /* end confdefs.h.  */
| 
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char evaluator_get_variables ();
| int
| main ()
| {
| evaluator_get_variables ();
|   ;
|   return 0;
| }
configure:3841: result: no
configure:3854: WARNING: can't find libmatheval: won't be able to compile h5math
configure:3864: checking for h4toh5
configure:3893: result: no
configure:3899: checking for h5toh4
configure:3928: result: no
configure:3951: checking for jpeg_start_compress in -ljpeg
configure:3981: gcc -o conftest -I/scratch/opt/include -I/scratch/opt/include -L/scratch/opt/lib conftest.c -ljpeg  -lz -lm  >&5
configure:3987: $? = 0
configure:3991: test -z 
			 || test ! -s conftest.err
configure:3994: $? = 0
configure:3997: test -s conftest
configure:4000: $? = 0
configure:4013: result: yes
configure:4016: checking for DFSDgetdata in -ldf
configure:4046: gcc -o conftest -I/scratch/opt/include -I/scratch/opt/include -L/scratch/opt/lib conftest.c -ldf -ljpeg -lz -lm  >&5
/usr/bin/ld: cannot find -ldf
collect2: ld returned 1 exit status
configure:4052: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "h5utils"
| #define PACKAGE_TARNAME "h5utils"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "h5utils 1.11.1"
| #define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
| #define PACKAGE "h5utils"
| #define VERSION "1.11.1"
| #define STDC_HEADERS 1
| #define HAVE_LIBM 1
| #define HAVE_SNPRINTF 1
| /* end confdefs.h.  */
| 
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char DFSDgetdata ();
| int
| main ()
| {
| DFSDgetdata ();
|   ;
|   return 0;
| }
configure:4078: result: no
configure:4083: WARNING: can't find libdf (HDF4): won't be able to compile h5fromh4 or h4fromh5
configure:4118: checking for sys/types.h
configure:4134: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:4140: $? = 0
configure:4144: test -z 
			 || test ! -s conftest.err
configure:4147: $? = 0
configure:4150: test -s conftest.o
configure:4153: $? = 0
configure:4164: result: yes
configure:4118: checking for sys/stat.h
configure:4134: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:4140: $? = 0
configure:4144: test -z 
			 || test ! -s conftest.err
configure:4147: $? = 0
configure:4150: test -s conftest.o
configure:4153: $? = 0
configure:4164: result: yes
configure:4118: checking for stdlib.h
configure:4134: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:4140: $? = 0
configure:4144: test -z 
			 || test ! -s conftest.err
configure:4147: $? = 0
configure:4150: test -s conftest.o
configure:4153: $? = 0
configure:4164: result: yes
configure:4118: checking for string.h
configure:4134: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:4140: $? = 0
configure:4144: test -z 
			 || test ! -s conftest.err
configure:4147: $? = 0
configure:4150: test -s conftest.o
configure:4153: $? = 0
configure:4164: result: yes
configure:4118: checking for memory.h
configure:4134: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:4140: $? = 0
configure:4144: test -z 
			 || test ! -s conftest.err
configure:4147: $? = 0
configure:4150: test -s conftest.o
configure:4153: $? = 0
configure:4164: result: yes
configure:4118: checking for strings.h
configure:4134: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:4140: $? = 0
configure:4144: test -z 
			 || test ! -s conftest.err
configure:4147: $? = 0
configure:4150: test -s conftest.o
configure:4153: $? = 0
configure:4164: result: yes
configure:4118: checking for inttypes.h
configure:4134: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:4140: $? = 0
configure:4144: test -z 
			 || test ! -s conftest.err
configure:4147: $? = 0
configure:4150: test -s conftest.o
configure:4153: $? = 0
configure:4164: result: yes
configure:4118: checking for stdint.h
configure:4134: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:4140: $? = 0
configure:4144: test -z 
			 || test ! -s conftest.err
configure:4147: $? = 0
configure:4150: test -s conftest.o
configure:4153: $? = 0
configure:4164: result: yes
configure:4118: checking for unistd.h
configure:4134: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:4140: $? = 0
configure:4144: test -z 
			 || test ! -s conftest.err
configure:4147: $? = 0
configure:4150: test -s conftest.o
configure:4153: $? = 0
configure:4164: result: yes
configure:4191: checking hdf.h usability
configure:4203: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
conftest.c:57:17: hdf.h: No such file or directory
configure:4209: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "h5utils"
| #define PACKAGE_TARNAME "h5utils"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "h5utils 1.11.1"
| #define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
| #define PACKAGE "h5utils"
| #define VERSION "1.11.1"
| #define STDC_HEADERS 1
| #define HAVE_LIBM 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <hdf.h>
configure:4232: result: no
configure:4236: checking hdf.h presence
configure:4246: gcc -E -I/scratch/opt/include conftest.c
conftest.c:23:17: hdf.h: No such file or directory
configure:4252: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "h5utils"
| #define PACKAGE_TARNAME "h5utils"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "h5utils 1.11.1"
| #define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
| #define PACKAGE "h5utils"
| #define VERSION "1.11.1"
| #define STDC_HEADERS 1
| #define HAVE_LIBM 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <hdf.h>
configure:4272: result: no
configure:4307: checking for hdf.h
configure:4314: result: no
configure:4191: checking hdf/hdf.h usability
configure:4203: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
conftest.c:57:21: hdf/hdf.h: No such file or directory
configure:4209: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "h5utils"
| #define PACKAGE_TARNAME "h5utils"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "h5utils 1.11.1"
| #define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
| #define PACKAGE "h5utils"
| #define VERSION "1.11.1"
| #define STDC_HEADERS 1
| #define HAVE_LIBM 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <hdf/hdf.h>
configure:4232: result: no
configure:4236: checking hdf/hdf.h presence
configure:4246: gcc -E -I/scratch/opt/include conftest.c
conftest.c:23:21: hdf/hdf.h: No such file or directory
configure:4252: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "h5utils"
| #define PACKAGE_TARNAME "h5utils"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "h5utils 1.11.1"
| #define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
| #define PACKAGE "h5utils"
| #define VERSION "1.11.1"
| #define STDC_HEADERS 1
| #define HAVE_LIBM 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <hdf/hdf.h>
configure:4272: result: no
configure:4307: checking for hdf/hdf.h
configure:4314: result: no
configure:4332: checking for H5Fopen in -lhdf5
configure:4362: gcc -o conftest -I/scratch/opt/include -I/scratch/opt/include -L/scratch/opt/lib conftest.c -lhdf5  -lz -lm  >&5
configure:4368: $? = 0
configure:4372: test -z 
			 || test ! -s conftest.err
configure:4375: $? = 0
configure:4378: test -s conftest
configure:4381: $? = 0
configure:4394: result: yes
configure:4428: checking for mkoctfile
configure:4444: found /usr/bin/mkoctfile
configure:4454: result: mkoctfile
configure:4474: checking for octave
configure:4490: found /usr/bin/octave
configure:4500: result: octave
configure:4511: checking where octave plugins go
configure:4515: result: /usr/libexec/octave/2.1.57/site/oct/i686-pc-linux-gnu//
configure:4544: checking for v5dCreate in -lv5d
configure:4574: gcc -o conftest -I/scratch/opt/include -I/scratch/opt/include -L/scratch/opt/lib conftest.c -lv5d  -lhdf5 -lz -lm  >&5
/usr/bin/ld: cannot find -lv5d
collect2: ld returned 1 exit status
configure:4580: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "h5utils"
| #define PACKAGE_TARNAME "h5utils"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "h5utils 1.11.1"
| #define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
| #define PACKAGE "h5utils"
| #define VERSION "1.11.1"
| #define STDC_HEADERS 1
| #define HAVE_LIBM 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| 
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char v5dCreate ();
| int
| main ()
| {
| v5dCreate ();
|   ;
|   return 0;
| }
configure:4606: result: no
configure:4626: checking vis5d/v5d.h usability
configure:4638: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
conftest.c:57:23: vis5d/v5d.h: No such file or directory
configure:4644: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "h5utils"
| #define PACKAGE_TARNAME "h5utils"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "h5utils 1.11.1"
| #define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
| #define PACKAGE "h5utils"
| #define VERSION "1.11.1"
| #define STDC_HEADERS 1
| #define HAVE_LIBM 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <vis5d/v5d.h>
configure:4667: result: no
configure:4671: checking vis5d/v5d.h presence
configure:4681: gcc -E -I/scratch/opt/include conftest.c
conftest.c:23:23: vis5d/v5d.h: No such file or directory
configure:4687: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "h5utils"
| #define PACKAGE_TARNAME "h5utils"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "h5utils 1.11.1"
| #define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
| #define PACKAGE "h5utils"
| #define VERSION "1.11.1"
| #define STDC_HEADERS 1
| #define HAVE_LIBM 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <vis5d/v5d.h>
configure:4707: result: no
configure:4742: checking for vis5d/v5d.h
configure:4749: result: no
configure:4772: checking vis5d+/v5d.h usability
configure:4784: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
conftest.c:57:24: vis5d+/v5d.h: No such file or directory
configure:4790: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "h5utils"
| #define PACKAGE_TARNAME "h5utils"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "h5utils 1.11.1"
| #define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
| #define PACKAGE "h5utils"
| #define VERSION "1.11.1"
| #define STDC_HEADERS 1
| #define HAVE_LIBM 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <vis5d+/v5d.h>
configure:4813: result: no
configure:4817: checking vis5d+/v5d.h presence
configure:4827: gcc -E -I/scratch/opt/include conftest.c
conftest.c:23:24: vis5d+/v5d.h: No such file or directory
configure:4833: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "h5utils"
| #define PACKAGE_TARNAME "h5utils"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "h5utils 1.11.1"
| #define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
| #define PACKAGE "h5utils"
| #define VERSION "1.11.1"
| #define STDC_HEADERS 1
| #define HAVE_LIBM 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <vis5d+/v5d.h>
configure:4853: result: no
configure:4888: checking for vis5d+/v5d.h
configure:4895: result: no
configure:4953: checking netinet/in.h usability
configure:4965: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:4971: $? = 0
configure:4975: test -z 
			 || test ! -s conftest.err
configure:4978: $? = 0
configure:4981: test -s conftest.o
configure:4984: $? = 0
configure:4994: result: yes
configure:4998: checking netinet/in.h presence
configure:5008: gcc -E -I/scratch/opt/include conftest.c
configure:5014: $? = 0
configure:5034: result: yes
configure:5069: checking for netinet/in.h
configure:5076: result: yes
configure:5090: checking for htons
configure:5110: gcc -o conftest -I/scratch/opt/include -I/scratch/opt/include -L/scratch/opt/lib conftest.c -lhdf5 -lz -lm  >&5
configure:5116: $? = 0
configure:5120: test -z 
			 || test ! -s conftest.err
configure:5123: $? = 0
configure:5126: test -s conftest
configure:5129: $? = 0
configure:5145: result: yes
configure:5148: checking for unsigned long
configure:5172: gcc -c -I/scratch/opt/include -I/scratch/opt/include conftest.c >&5
configure:5178: $? = 0
configure:5182: test -z 
			 || test ! -s conftest.err
configure:5185: $? = 0
configure:5188: test -s conftest.o
configure:5191: $? = 0
configure:5202: result: yes
configure:5205: checking size of unsigned long
configure:5524: gcc -o conftest -I/scratch/opt/include -I/scratch/opt/include -L/scratch/opt/lib conftest.c -lhdf5 -lz -lm  >&5
configure:5527: $? = 0
configure:5529: ./conftest
./conftest: error while loading shared libraries: libhdf5.so.5: cannot open shared object file: No such file or directory
configure:5532: $? = 127
configure: program exited with status 127
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "h5utils"
| #define PACKAGE_TARNAME "h5utils"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "h5utils 1.11.1"
| #define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
| #define PACKAGE "h5utils"
| #define VERSION "1.11.1"
| #define STDC_HEADERS 1
| #define HAVE_LIBM 1
| #define HAVE_SNPRINTF 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_HTONS 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| long longval () { return (long) (sizeof (unsigned long)); }
| unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
| 
|   FILE *f = fopen ("conftest.val", "w");
|   if (! f)
|     exit (1);
|   if (((long) (sizeof (unsigned long))) < 0)
|     {
|       long i = longval ();
|       if (i != ((long) (sizeof (unsigned long))))
| 	exit (1);
|       fprintf (f, "%ld\n", i);
|     }
|   else
|     {
|       unsigned long i = ulongval ();
|       if (i != ((long) (sizeof (unsigned long))))
| 	exit (1);
|       fprintf (f, "%lu\n", i);
|     }
|   exit (ferror (f) || fclose (f) != 0);
| 
|   ;
|   return 0;
| }
configure:5542: error: cannot compute sizeof (unsigned long), 77
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-I/scratch/opt/include
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-I/scratch/opt/include
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-L/scratch/opt/lib
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_func_snprintf=yes
ac_cv_header_hdf_h=no
ac_cv_header_hdf_hdf_h=no
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_netinet_in_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_header_vis5d_v5d_h=no
ac_cv_header_vis5dp_v5d_h=no
ac_cv_lib_df_DFSDgetdata=no
ac_cv_lib_hdf5_H5Fopen=yes
ac_cv_lib_jpeg_jpeg_start_compress=yes
ac_cv_lib_m_sin=yes
ac_cv_lib_matheval_evaluator_get_variables=no
ac_cv_lib_png_png_create_write_struct=yes
ac_cv_lib_v5d_v5dCreate=no
ac_cv_lib_z_inflate=yes
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_MKOCTFILE=mkoctfile
ac_cv_prog_OCTAVE=octave
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_gcc_c_o=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_egrep='grep -E'
ac_cv_prog_make_make_set=yes
ac_cv_type_unsigned_long=yes
am_cv_CC_dependencies_compiler_type=gcc3

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /scratch/src/h5utils-1.11.1/missing --run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /scratch/src/h5utils-1.11.1/missing --run tar'
AUTOCONF='${SHELL} /scratch/src/h5utils-1.11.1/missing --run autoconf'
AUTOHEADER='${SHELL} /scratch/src/h5utils-1.11.1/missing --run autoheader'
AUTOMAKE='${SHELL} /scratch/src/h5utils-1.11.1/missing --run automake-1.9'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-I/scratch/opt/include'
CPP='gcc -E'
CPPFLAGS='-I/scratch/opt/include'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
H4TOH5=''
H4_LIBS=''
H5READ='h5read.oct'
H5TOH4=''
H5TOPNG_MAN='h5topng.1'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-L/scratch/opt/lib'
LIBOBJS=''
LIBS='-lhdf5 -lz -lm '
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /scratch/src/h5utils-1.11.1/missing --run makeinfo'
MKOCTFILE='mkoctfile'
MORE_H5UTILS='h5topng$(EXEEXT) '
MORE_H5UTILS_MANS=''
OBJEXT='o'
OCTAVE='octave'
OCT_INSTALL_DIR='/usr/libexec/octave/2.1.57/site/oct/i686-pc-linux-gnu//'
PACKAGE='h5utils'
PACKAGE_BUGREPORT='stevenj@xxxxxxxxxxxx'
PACKAGE_NAME='h5utils'
PACKAGE_STRING='h5utils 1.11.1'
PACKAGE_TARNAME='h5utils'
PACKAGE_VERSION='1.11.1'
PATH_SEPARATOR=':'
PNG_LIBS='-lpng'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
V5D_FILES=''
V5D_INCLUDES=''
VERSION='1.11.1'
ac_ct_CC='gcc'
ac_ct_STRIP=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
datadir_val=''
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/scratch/src/h5utils-1.11.1/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='/scratch/opt'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_HTONS 1
#define HAVE_INTTYPES_H 1
#define HAVE_LIBM 1
#define HAVE_MEMORY_H 1
#define HAVE_NETINET_IN_H 1
#define HAVE_SNPRINTF 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define PACKAGE "h5utils"
#define PACKAGE_BUGREPORT "stevenj@xxxxxxxxxxxx"
#define PACKAGE_NAME "h5utils"
#define PACKAGE_STRING "h5utils 1.11.1"
#define PACKAGE_TARNAME "h5utils"
#define PACKAGE_VERSION "1.11.1"
#define STDC_HEADERS 1
#define VERSION "1.11.1"

configure: exit 1
# Process this file with autoconf to produce a configure script.
AC_INIT(h5utils, 1.11.1, stevenj@xxxxxxxxxxxx)
AM_INIT_AUTOMAKE(1.6)
AC_CONFIG_SRCDIR([h5topng.c])
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE

# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O

# Checks for header files.
AC_HEADER_STDC

AC_CHECK_LIB(m, sin)
AC_CHECK_FUNCS(snprintf)

MORE_H5UTILS=""
MORE_H5UTILS_MANS=""

###########################################################################

dnl override CFLAGS selection when debugging
if test "${enable_debug}" = "yes"; then
	CFLAGS="-g"
fi

dnl add gcc warnings, in debug/maintainer mode only
if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then
	if test $ac_cv_prog_gcc = yes; then
		CFLAGS="$CFLAGS -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic -Wno-long-long -Wshadow -Wbad-function-cast -Wwrite-strings -Wstrict-prototypes -Wredundant-decls -Wnested-externs" # -Wundef -Wconversion -Wmissing-prototypes -Wmissing-declarations 
	fi
fi

###########################################################################

H5TOPNG=yes
PNG_LIBS=""

AC_CHECK_LIB(z, inflate, ok=yes, ok=no)
if test "$ok" = "yes"; then
	LIBS="-lz $LIBS"

	AC_CHECK_LIB(png, png_create_write_struct, ok=yes, ok=no)
	if test "$ok" = "yes"; then
		PNG_LIBS="-lpng"
	else
		AC_MSG_WARN([can't find libpng: won't be able to compile h5topng])
		H5TOPNG=no
	fi
else
	AC_MSG_WARN([can't find libz: won't be able to compile h5topng])
	H5TOPNG=no
fi

if test $H5TOPNG = yes; then
	MORE_H5UTILS="h5topng\$(EXEEXT) $MORE_H5UTILS"
	H5TOPNG_MAN=h5topng.1
fi

AC_SUBST(H5TOPNG_MAN)
AC_SUBST(PNG_LIBS)

###########################################################################

AC_CHECK_LIB(matheval, evaluator_get_variables, H5MATH=yes, H5MATH=no)

if test $H5MATH = yes; then
	MORE_H5UTILS="h5math\$(EXEEXT) $MORE_H5UTILS"
	MORE_H5UTILS_MANS="h5math.1 $MORE_H5UTILS_MANS"
else
	AC_MSG_WARN([can't find libmatheval: won't be able to compile h5math])
fi

###########################################################################

# Only build h5fromh4 if we are using a version of HDF5 prior to 1.4, and
# thus don't have the superior h4toh5 utility.  Similarly for h5toh4.
AC_CHECK_PROG(H4TOH5, h4toh5, h4toh5)
AC_CHECK_PROG(H5TOH4, h5toh4, h5toh4)

AC_ARG_WITH(hdf4,
	[AC_HELP_STRING([--with-hdf4], [build hdf4 utils even if h4toh5 and h5toh4 are present])],
	ok=$withval, ok=maybe)
if test "x$ok" = xyes; then
	H4TOH5=""
	H5TOH4=""
elif test "x$ok" = xno; then
	H4TOH5="h4toh5"
	H5TOH4="h5toh4"
fi

HDF4=no
if test "x$H4TOH5" != xh4toh5 -o "x$H5TOH4" != xh5toh4; then
	AC_CHECK_LIB(jpeg, jpeg_start_compress,
		[AC_CHECK_LIB(df, DFSDgetdata,
			[H4_LIBS="-ldf -ljpeg"; HDF4=yes],
			[AC_MSG_WARN([can't find libdf (HDF4): won't be able to compile h5fromh4 or h4fromh5])], -ljpeg)],
		[AC_MSG_WARN([can't find libjpeg: won't be able to compile h5fromh4 or h4fromh5])])

	if test $HDF4 = yes; then
		if test "x$H4TOH5" != xh4toh5; then
		   MORE_H5UTILS="h5fromh4\$(EXEEXT) $MORE_H5UTILS"
		   MORE_H5UTILS_MANS="h5fromh4.1 $MORE_H5UTILS_MANS"
		fi
		if test "x$H5TOH4" != xh5toh4; then
		   MORE_H5UTILS="h4fromh5\$(EXEEXT) $MORE_H5UTILS"
		   # MORE_H5UTILS_MANS="h4fromh5.1 $MORE_H5UTILS_MANS"
		fi
	fi
fi
AC_CHECK_HEADERS(hdf.h hdf/hdf.h)

AC_SUBST(H4_LIBS)

###########################################################################

AC_CHECK_LIB(hdf5, H5Fopen, [LIBS="-lhdf5 $LIBS"],
	     [AC_MSG_ERROR([hdf5 libraries are required for compilation])])

###########################################################################

AC_ARG_WITH(octave, [AC_HELP_STRING([--without-octave], [don't compile h5read Octave plugin])], ok=$withval, ok=yes)

H5READ=""
OCT_INSTALL_DIR=""

if test "x$ok" = xyes; then
AC_CHECK_PROGS(MKOCTFILE, mkoctfile, echo)
if test "$MKOCTFILE" = "echo"; then
	AC_MSG_WARN([can't find mkoctfile: won't be able to compile h5read.oct])
else
	# try to find installation directory
	AC_CHECK_PROGS(OCTAVE, octave, echo)
	AC_MSG_CHECKING(where octave plugins go)
	OCT_INSTALL_DIR=`echo "DEFAULT_LOADPATH" | $OCTAVE -q | tr ':' '\n' | grep "site/oct" | head -1`
	if test -n "$OCT_INSTALL_DIR"; then
		AC_MSG_RESULT($OCT_INSTALL_DIR)
		H5READ=h5read.oct
	else
		AC_MSG_RESULT(unknown)
		AC_MSG_WARN([can't find where to install octave plugins: won't be able to compile h5read.oct])
	fi
fi
fi

AC_SUBST(H5READ)
AC_SUBST(OCT_INSTALL_DIR)

###########################################################################

AC_ARG_WITH(v5d, [AC_HELP_STRING([--with-v5d=<dir>], [use Vis5d in <dir> for h5tov5d])], ok=$withval, ok=yes)
H5TOV5D=no
V5D_FILES=""
V5D_INCLUDES=""
if test "$ok" = "yes"; then
	AC_CHECK_LIB(v5d, v5dCreate, V5D_FILES="-lv5d"; H5TOV5D=yes)
	AC_CHECK_HEADERS(vis5d/v5d.h)
	AC_CHECK_HEADER(vis5d+/v5d.h, [AC_DEFINE([HAVE_VIS5Dp_V5D_H], 1, [[Define if you have the <vis5d+/v5d.h> header file.]])])
elif test "$ok" != "no"; then
	AC_MSG_CHECKING([for Vis5d object files and headers])
	if test -r "$ok/src/v5d.o" -a -r "$ok/src/binio.o" -a -r "$ok/src/v5d.h" -a -r "$ok/src/binio.h"; then
		V5D_FILES="$ok/src/v5d.o $ok/src/binio.o"
		V5D_INCLUDES="-I$ok/src"
	elif test -r "$ok/v5d.o" -a -r "$ok/binio.o" -a -r "$ok/v5d.h" -a -r "$ok/binio.h"; then
		V5D_FILES="$ok/v5d.o $ok/binio.o"
		V5D_INCLUDES="-I$ok"
	fi
	if test -z "$V5D_FILES"; then
		AC_MSG_RESULT([not found])
		AC_MSG_ERROR([couldn't read Vis5D object files in $ok])
	else
		AC_MSG_RESULT([found])
	fi
	H5TOV5D=yes
fi
if test $H5TOV5D = yes; then
	MORE_H5UTILS="h5tov5d\$(EXEEXT) $MORE_H5UTILS"
	MORE_H5UTILS_MANS="h5tov5d.1 $MORE_H5UTILS_MANS"
fi
AC_SUBST(V5D_FILES)
AC_SUBST(V5D_INCLUDES)

###########################################################################

AC_CHECK_HEADERS([netinet/in.h])

AC_MSG_CHECKING([for htons])
AC_TRY_LINK([#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif], [unsigned short i; htons(i);], [htons=yes
	AC_DEFINE([HAVE_HTONS],1,[Define if you have htons.])], htons=no)
AC_MSG_RESULT($htons)

AC_CHECK_SIZEOF(unsigned long)
AC_CHECK_SIZEOF(float)

if test "x$ac_cv_sizeof_unsigned_long" = "x$ac_cv_sizeof_float"; then
	AC_MSG_CHECKING([for htonl])
	AC_TRY_LINK([#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif], [unsigned short i; htonl(i);], [htonl=yes
	     AC_DEFINE([HAVE_HTONL],1,[Define if you have htonl.])], htonl=no)
	AC_MSG_RESULT($htonl)
fi

if test "x$htons" != xyes -o "x$htonl" != xyes; then
	AC_C_BIGENDIAN
fi

###########################################################################

# Store datadir (e.g. /usr/local/share) in DATADIR #define.

# Requires some hackery to actually get this value...
save_prefix=$prefix
test "x$prefix" = xNONE && prefix=$ac_default_prefix
eval datadir_val=$datadir
eval datadir_val=$datadir_val
prefix=$save_prefix

AC_DEFINE_UNQUOTED(DATADIR, "$datadir_val", [datadir installation prefix])
AC_SUBST(datadir_val)

###########################################################################
AC_SUBST(MORE_H5UTILS)
AC_SUBST(MORE_H5UTILS_MANS)
###########################################################################

AC_CONFIG_FILES([Makefile h5topng.1])
AC_OUTPUT
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux