3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.13
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
14
ac_default_prefix=/usr/local
16
--enable-macosx-app create a MacOSX application"
18
--enable-shared build and link with shared libraries [--enable-shared]"
20
--enable-64bit enable 64bit support (where applicable)"
22
--enable-64bit-vis enable 64bit Sparc VIS support"
24
--enable-w11 use W11 library for Windows X11 emulation"
26
--with-cxx support C++ functionality (default: no)"
28
--with-macosx-archs[=arch list]
29
compile multiple architectures on MacOSX, ie.
30
universal. Valid architectures are i386, ppc,
31
x86_64 and ppc64. (default: no [native])"
33
--with-macosx-sdk[=path/sdk]
34
compile with a system SDK on MacOSX. (default: no)"
36
--with-jpeg support JPEG functionality (default: yes)"
38
--with-tiff support TIFF functionality (default: yes)"
40
--with-png support PNG functionality (default: yes)"
42
--with-tcltk support Tcl/Tk functionality (default: yes)"
44
--with-postgres support PostgreSQL functionality (default: no)"
46
--with-mysql support MySQL functionality (default: no)"
48
--with-sqlite support SQLite functionality (default: no)"
50
--with-ffmpeg support FFMPEG functionality (default: no)"
52
--with-opengl support OpenGL functionality (default: yes)"
54
--with-odbc support ODBC functionality (default: no)"
56
--with-fftw support FFTW functionality (default: yes)"
58
--with-blas support BLAS functionality (default: no)"
60
--with-lapack support LAPACK functionality (default: no)"
62
--with-motif support Motif functionality (default: no)"
64
--with-cairo support Cairo functionality (default: no)"
66
--with-freetype support FreeType functionality (default: no)"
68
--with-glw support GLw functionality (default: no)"
70
--with-nls support NLS functionality (default: no)"
72
--with-readline support Readline functionality (default: no)"
74
--with-opendwg support openDWG functionality (default: no)"
76
--with-curses support Curses functionality (default: yes)"
78
--with-regex support regex functionality (default: yes)"
80
--with-gdal[=path/gdal-config]
81
enable GDAL/OGR support (gdal-config with path,
82
e.g. '--with-gdal=/usr/local/bin/gdal-config')"
84
--with-python[=path/python-config]
85
enable support for wxGUI Python extensions
86
(python-config with path, e.g.
87
'--with-python=/usr/bin/python2.5-config',
90
--with-wxwidgets[=path/wx-config]
91
enable wxWidgets support (wx-config with path,
92
e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
95
--with-geos[=path/geos-config]
96
enable GEOS support (geos-config with path,
97
e.g. '--with-geos=/usr/local/bin/geos-config',
100
--with-includes=DIRS site include files are in DIRS"
102
--with-libs=DIRS site library files are in DIRS"
104
--with-zlib-includes=DIRS
105
zlib include files are in DIRS"
107
--with-zlib-libs=DIRS zlib library files are in DIRS"
109
--with-readline-includes=DIRS
110
Readline include files are in DIRS"
112
--with-readline-libs=DIRS
113
Readline library files are in DIRS"
115
--with-jpeg-includes=DIRS
116
JPEG include files are in DIRS"
118
--with-jpeg-libs=DIRS JPEG library files are in DIRS"
120
--with-tiff-includes=DIRS
121
TIFF include files are in DIRS"
123
--with-tiff-libs=DIRS TIFF library files are in DIRS"
125
--with-png-includes=DIRS
126
PNG include files are in DIRS"
128
--with-png-libs=DIRS PNG library files are in DIRS"
130
--with-tcltk-includes=DIRS
131
Tcl/Tk include files are in DIRS"
133
--with-tcltk-libs=DIRS Tcl/Tk library files are in DIRS"
135
--with-postgres-includes=DIRS
136
PostgreSQL include files are in DIRS"
138
--with-postgres-libs=DIRS
139
PostgreSQL library files are in DIRS"
141
--with-mysql-includes=DIRS
142
MySQL include files are in DIRS"
144
--with-mysql-libs=DIRS MySQL library files are in DIRS"
146
--with-sqlite-includes=DIRS
147
SQLite include files are in DIRS"
149
--with-sqlite-libs=DIRS SQLite library files are in DIRS"
151
--with-ffmpeg-includes=DIRS
152
FFMPEG include files are in DIRS"
154
--with-ffmpeg-libs=DIRS FFMPEG library files are in DIRS"
156
--with-opengl-includes=DIRS
157
OpenGL include files are in DIRS"
159
--with-opengl-libs=DIRS OpenGL library files are in DIRS"
161
--with-odbc-includes=DIRS
162
ODBC include files are in DIRS"
164
--with-odbc-libs=DIRS ODBC library files are in DIRS"
166
--with-fftw-includes=DIRS
167
FFTW include files are in DIRS"
169
--with-fftw-libs=DIRS FFTW library files are in DIRS"
171
--with-blas-includes=DIRS
172
BLAS include files are in DIRS"
174
--with-blas-libs=DIRS BLAS library files are in DIRS"
176
--with-lapack-includes=DIRS
177
LAPACK include files are in DIRS"
179
--with-lapack-libs=DIRS LAPACK library files are in DIRS"
181
--with-cairo-includes=DIRS
182
cairo include files are in DIRS"
184
--with-cairo-libs=DIRS cairo library files are in DIRS"
186
--with-cairo-ldflags=FLAGS
187
cairo needs FLAGS when linking"
189
--with-motif-includes=DIRS
190
Motif include files are in DIRS"
192
--with-motif-libs=DIRS Motif library files are in DIRS"
194
--with-freetype-includes=DIRS
195
FreeType include files are in DIRS"
197
--with-freetype-libs=DIRS
198
FreeType library files are in DIRS"
200
--with-glw-includes=DIRS
201
GLw include files are in DIRS"
203
--with-glw-libs=DIRS GLw library files are in DIRS"
205
--with-proj-includes=DIRS
206
External PROJ.4 include files are in DIRS"
208
--with-proj-libs=DIRS External PROJ.4 library files are in DIRS"
210
--with-proj-share=DIR External PROJ.4 data files are in DIR"
212
--with-opendwg-includes=DIRS
213
openDWG include files are in DIRS"
215
--with-opendwg-libs=DIRS
216
openDWG library files are in DIRS"
218
--with-regex-includes=DIRS
219
regex include files are in DIRS"
221
--with-regex-libs=DIRS regex library files are in DIRS"
223
--with-x use the X Window System"
225
--enable-largefile enable support for large files (LFS)"
227
# Initialize some variables set by options.
228
# The variables have the same names as the options, with
229
# dashes changed to underlines.
231
cache_file=./config.cache
240
program_transform_name=s,x,x,
248
bindir='${exec_prefix}/bin'
249
sbindir='${exec_prefix}/sbin'
250
libexecdir='${exec_prefix}/libexec'
251
datadir='${prefix}/share'
252
sysconfdir='${prefix}/etc'
253
sharedstatedir='${prefix}/com'
254
localstatedir='${prefix}/var'
255
libdir='${exec_prefix}/lib'
256
includedir='${prefix}/include'
257
oldincludedir='/usr/include'
258
infodir='${prefix}/info'
259
mandir='${prefix}/man'
261
# Initialize some other variables.
264
SHELL=${CONFIG_SHELL-/bin/sh}
265
# Maximum number of lines to put in a shell here document.
272
# If the previous option needs an argument, assign it.
273
if test -n "$ac_prev"; then
274
eval "$ac_prev=\$ac_option"
280
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
284
# Accept the important Cygnus configure options, so we can diagnose typos.
288
-bindir | --bindir | --bindi | --bind | --bin | --bi)
290
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
291
bindir="$ac_optarg" ;;
293
-build | --build | --buil | --bui | --bu)
295
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
296
build="$ac_optarg" ;;
298
-cache-file | --cache-file | --cache-fil | --cache-fi \
299
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
300
ac_prev=cache_file ;;
301
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
302
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
303
cache_file="$ac_optarg" ;;
305
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
307
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
309
datadir="$ac_optarg" ;;
311
-disable-* | --disable-*)
312
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
313
# Reject names that are not valid shell variable names.
314
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
315
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
317
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
318
eval "enable_${ac_feature}=no" ;;
320
-enable-* | --enable-*)
321
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
322
# Reject names that are not valid shell variable names.
323
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
324
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
326
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
331
eval "enable_${ac_feature}='$ac_optarg'" ;;
333
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
334
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
335
| --exec | --exe | --ex)
336
ac_prev=exec_prefix ;;
337
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
338
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
339
| --exec=* | --exe=* | --ex=*)
340
exec_prefix="$ac_optarg" ;;
342
-gas | --gas | --ga | --g)
343
# Obsolete; use --with-gas.
346
-help | --help | --hel | --he)
347
# Omit some internal or obsolete options to make the list less imposing.
348
# This message is too long to be a string in the A/UX 3.1 sh.
350
Usage: configure [options] [host]
351
Options: [defaults in brackets after descriptions]
353
--cache-file=FILE cache test results in FILE
354
--help print this message
355
--no-create do not create output files
356
--quiet, --silent do not print \`checking...' messages
357
--version print the version of autoconf that created configure
358
Directory and file names:
359
--prefix=PREFIX install architecture-independent files in PREFIX
361
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
363
--bindir=DIR user executables in DIR [EPREFIX/bin]
364
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
365
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
366
--datadir=DIR read-only architecture-independent data in DIR
368
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
369
--sharedstatedir=DIR modifiable architecture-independent data in DIR
371
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
372
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
373
--includedir=DIR C header files in DIR [PREFIX/include]
374
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
375
--infodir=DIR info documentation in DIR [PREFIX/info]
376
--mandir=DIR man documentation in DIR [PREFIX/man]
377
--srcdir=DIR find the sources in DIR [configure dir or ..]
378
--program-prefix=PREFIX prepend PREFIX to installed program names
379
--program-suffix=SUFFIX append SUFFIX to installed program names
380
--program-transform-name=PROGRAM
381
run sed PROGRAM on installed program names
385
--build=BUILD configure for building on BUILD [BUILD=HOST]
386
--host=HOST configure for HOST [guessed]
387
--target=TARGET configure for TARGET [TARGET=HOST]
388
Features and packages:
389
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
390
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
391
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
392
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
393
--x-includes=DIR X include files are in DIR
394
--x-libraries=DIR X library files are in DIR
396
if test -n "$ac_help"; then
397
echo "--enable and --with options recognized:$ac_help"
401
-host | --host | --hos | --ho)
403
-host=* | --host=* | --hos=* | --ho=*)
406
-includedir | --includedir | --includedi | --included | --include \
407
| --includ | --inclu | --incl | --inc)
408
ac_prev=includedir ;;
409
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410
| --includ=* | --inclu=* | --incl=* | --inc=*)
411
includedir="$ac_optarg" ;;
413
-infodir | --infodir | --infodi | --infod | --info | --inf)
415
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416
infodir="$ac_optarg" ;;
418
-libdir | --libdir | --libdi | --libd)
420
-libdir=* | --libdir=* | --libdi=* | --libd=*)
421
libdir="$ac_optarg" ;;
423
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424
| --libexe | --libex | --libe)
425
ac_prev=libexecdir ;;
426
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427
| --libexe=* | --libex=* | --libe=*)
428
libexecdir="$ac_optarg" ;;
430
-localstatedir | --localstatedir | --localstatedi | --localstated \
431
| --localstate | --localstat | --localsta | --localst \
432
| --locals | --local | --loca | --loc | --lo)
433
ac_prev=localstatedir ;;
434
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
436
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437
localstatedir="$ac_optarg" ;;
439
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442
mandir="$ac_optarg" ;;
445
# Obsolete; use --without-fp.
448
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
452
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
453
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
456
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458
| --oldin | --oldi | --old | --ol | --o)
459
ac_prev=oldincludedir ;;
460
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463
oldincludedir="$ac_optarg" ;;
465
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468
prefix="$ac_optarg" ;;
470
-program-prefix | --program-prefix | --program-prefi | --program-pref \
471
| --program-pre | --program-pr | --program-p)
472
ac_prev=program_prefix ;;
473
-program-prefix=* | --program-prefix=* | --program-prefi=* \
474
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475
program_prefix="$ac_optarg" ;;
477
-program-suffix | --program-suffix | --program-suffi | --program-suff \
478
| --program-suf | --program-su | --program-s)
479
ac_prev=program_suffix ;;
480
-program-suffix=* | --program-suffix=* | --program-suffi=* \
481
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482
program_suffix="$ac_optarg" ;;
484
-program-transform-name | --program-transform-name \
485
| --program-transform-nam | --program-transform-na \
486
| --program-transform-n | --program-transform- \
487
| --program-transform | --program-transfor \
488
| --program-transfo | --program-transf \
489
| --program-trans | --program-tran \
490
| --progr-tra | --program-tr | --program-t)
491
ac_prev=program_transform_name ;;
492
-program-transform-name=* | --program-transform-name=* \
493
| --program-transform-nam=* | --program-transform-na=* \
494
| --program-transform-n=* | --program-transform-=* \
495
| --program-transform=* | --program-transfor=* \
496
| --program-transfo=* | --program-transf=* \
497
| --program-trans=* | --program-tran=* \
498
| --progr-tra=* | --program-tr=* | --program-t=*)
499
program_transform_name="$ac_optarg" ;;
501
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
502
| -silent | --silent | --silen | --sile | --sil)
505
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509
sbindir="$ac_optarg" ;;
511
-sharedstatedir | --sharedstatedir | --sharedstatedi \
512
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513
| --sharedst | --shareds | --shared | --share | --shar \
515
ac_prev=sharedstatedir ;;
516
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520
sharedstatedir="$ac_optarg" ;;
522
-site | --site | --sit)
524
-site=* | --site=* | --sit=*)
527
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530
srcdir="$ac_optarg" ;;
532
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533
| --syscon | --sysco | --sysc | --sys | --sy)
534
ac_prev=sysconfdir ;;
535
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537
sysconfdir="$ac_optarg" ;;
539
-target | --target | --targe | --targ | --tar | --ta | --t)
541
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542
target="$ac_optarg" ;;
544
-v | -verbose | --verbose | --verbos | --verbo | --verb)
547
-version | --version | --versio | --versi | --vers)
548
echo "configure generated by autoconf version 2.13"
552
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
553
# Reject names that are not valid shell variable names.
554
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
555
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
557
ac_package=`echo $ac_package| sed 's/-/_/g'`
562
eval "with_${ac_package}='$ac_optarg'" ;;
564
-without-* | --without-*)
565
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
566
# Reject names that are not valid shell variable names.
567
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
568
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
570
ac_package=`echo $ac_package| sed 's/-/_/g'`
571
eval "with_${ac_package}=no" ;;
574
# Obsolete; use --with-x.
577
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
578
| --x-incl | --x-inc | --x-in | --x-i)
579
ac_prev=x_includes ;;
580
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
581
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
582
x_includes="$ac_optarg" ;;
584
-x-libraries | --x-libraries | --x-librarie | --x-librari \
585
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
586
ac_prev=x_libraries ;;
587
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
588
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
589
x_libraries="$ac_optarg" ;;
591
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
595
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
596
echo "configure: warning: $ac_option: invalid host type" 1>&2
598
if test "x$nonopt" != xNONE; then
599
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
607
if test -n "$ac_prev"; then
608
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
611
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
613
# File descriptor usage:
616
# 2 errors and warnings
617
# 3 some systems may open it to /dev/tty
618
# 4 used on the Kubota Titan
619
# 6 checking for... messages and results
620
# 5 compiler messages saved in config.log
621
if test "$silent" = yes; then
629
This file contains any messages produced by compilers while
630
running configure, to aid debugging if configure makes a mistake.
633
# Strip out --no-create and --no-recursion so they do not pile up.
634
# Also quote any args containing shell metacharacters.
639
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
640
| --no-cr | --no-c) ;;
641
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
642
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
643
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
644
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
645
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
650
# Only set these to C if already set. These must not be set unconditionally
651
# because not all systems understand e.g. LANG=C (notably SCO).
652
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
653
# Non-C LC_CTYPE values break the ctype check.
654
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
655
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
656
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
657
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
659
# confdefs.h avoids OS command line length limits that DEFS can exceed.
660
rm -rf conftest* confdefs.h
661
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
664
# A filename unique to this package, relative to the directory that
665
# configure is in, which we can look for to find out if srcdir is correct.
666
ac_unique_file=configure.in
668
# Find the source files, if location was not specified.
669
if test -z "$srcdir"; then
670
ac_srcdir_defaulted=yes
671
# Try the directory containing this script, then its parent.
673
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
674
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
676
if test ! -r $srcdir/$ac_unique_file; then
680
ac_srcdir_defaulted=no
682
if test ! -r $srcdir/$ac_unique_file; then
683
if test "$ac_srcdir_defaulted" = yes; then
684
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
686
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
689
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
691
# Prefer explicitly selected file to automatically selected ones.
692
if test -z "$CONFIG_SITE"; then
693
if test "x$prefix" != xNONE; then
694
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
696
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
699
for ac_site_file in $CONFIG_SITE; do
700
if test -r "$ac_site_file"; then
701
echo "loading site script $ac_site_file"
708
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
709
ac_cpp='$CPP $CPPFLAGS'
710
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
711
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
712
cross_compiling=$ac_cv_prog_cc_cross
716
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
717
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
718
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
725
ac_n= ac_c='\c' ac_t=
733
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
734
if test -f $ac_dir/install-sh; then
736
ac_install_sh="$ac_aux_dir/install-sh -c"
738
elif test -f $ac_dir/install.sh; then
740
ac_install_sh="$ac_aux_dir/install.sh -c"
744
if test -z "$ac_aux_dir"; then
745
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
747
ac_config_guess=$ac_aux_dir/config.guess
748
ac_config_sub=$ac_aux_dir/config.sub
749
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
752
# Make sure we can run config.sub.
753
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
754
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
757
echo $ac_n "checking host system type""... $ac_c" 1>&6
758
echo "configure:759: checking host system type" >&5
761
case "$host_alias" in
765
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
766
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
768
*) host_alias=$nonopt ;;
772
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
773
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
774
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
775
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
776
echo "$ac_t""$host" 1>&6
778
# Extract the first word of "gcc", so it can be a program name with args.
779
set dummy gcc; ac_word=$2
780
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
781
echo "configure:782: checking for $ac_word" >&5
783
if test -n "$CC"; then
784
ac_cv_prog_CC="$CC" # Let the user override the test.
786
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
788
for ac_dir in $ac_dummy; do
789
test -z "$ac_dir" && ac_dir=.
790
if test -f $ac_dir/$ac_word; then
798
if test -n "$CC"; then
799
echo "$ac_t""$CC" 1>&6
801
echo "$ac_t""no" 1>&6
804
if test -z "$CC"; then
805
# Extract the first word of "cc", so it can be a program name with args.
806
set dummy cc; ac_word=$2
807
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808
echo "configure:809: checking for $ac_word" >&5
810
if test -n "$CC"; then
811
ac_cv_prog_CC="$CC" # Let the user override the test.
813
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
816
for ac_dir in $ac_dummy; do
817
test -z "$ac_dir" && ac_dir=.
818
if test -f $ac_dir/$ac_word; then
819
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
828
if test $ac_prog_rejected = yes; then
829
# We found a bogon in the path, so make sure we never use it.
830
set dummy $ac_cv_prog_CC
832
if test $# -gt 0; then
833
# We chose a different compiler from the bogus one.
834
# However, it has the same basename, so the bogon will be chosen
835
# first if we set CC to just the basename; use the full file name.
837
set dummy "$ac_dir/$ac_word" "$@"
844
if test -n "$CC"; then
845
echo "$ac_t""$CC" 1>&6
847
echo "$ac_t""no" 1>&6
850
if test -z "$CC"; then
853
# Extract the first word of "cl", so it can be a program name with args.
854
set dummy cl; ac_word=$2
855
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
856
echo "configure:857: checking for $ac_word" >&5
858
if test -n "$CC"; then
859
ac_cv_prog_CC="$CC" # Let the user override the test.
861
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
863
for ac_dir in $ac_dummy; do
864
test -z "$ac_dir" && ac_dir=.
865
if test -f $ac_dir/$ac_word; then
873
if test -n "$CC"; then
874
echo "$ac_t""$CC" 1>&6
876
echo "$ac_t""no" 1>&6
881
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
884
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
885
echo "configure:886: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
888
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
889
ac_cpp='$CPP $CPPFLAGS'
890
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
891
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
892
cross_compiling=$ac_cv_prog_cc_cross
894
cat > conftest.$ac_ext << EOF
896
#line 897 "configure"
897
#include "confdefs.h"
901
if { (eval echo configure:902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
902
ac_cv_prog_cc_works=yes
903
# If we can't run a trivial program, we are probably using a cross compiler.
904
if (./conftest; exit) 2>/dev/null; then
905
ac_cv_prog_cc_cross=no
907
ac_cv_prog_cc_cross=yes
910
echo "configure: failed program was:" >&5
911
cat conftest.$ac_ext >&5
912
ac_cv_prog_cc_works=no
916
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
917
ac_cpp='$CPP $CPPFLAGS'
918
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
919
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
920
cross_compiling=$ac_cv_prog_cc_cross
922
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
923
if test $ac_cv_prog_cc_works = no; then
924
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
926
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
927
echo "configure:928: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
928
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
929
cross_compiling=$ac_cv_prog_cc_cross
931
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
932
echo "configure:933: checking whether we are using GNU C" >&5
934
cat > conftest.c <<EOF
939
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
945
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
947
if test $ac_cv_prog_gcc = yes; then
953
ac_test_CFLAGS="${CFLAGS+set}"
954
ac_save_CFLAGS="$CFLAGS"
956
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
957
echo "configure:958: checking whether ${CC-cc} accepts -g" >&5
959
echo 'void f(){}' > conftest.c
960
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
968
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
969
if test "$ac_test_CFLAGS" = set; then
970
CFLAGS="$ac_save_CFLAGS"
971
elif test $ac_cv_prog_cc_g = yes; then
972
if test "$GCC" = yes; then
978
if test "$GCC" = yes; then
985
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
986
echo "configure:987: checking for Cygwin environment" >&5
988
cat > conftest.$ac_ext <<EOF
989
#line 990 "configure"
990
#include "confdefs.h"
995
#define __CYGWIN__ __CYGWIN32__
1000
if { (eval echo configure:1001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1004
echo "configure: failed program was:" >&5
1005
cat conftest.$ac_ext >&5
1012
echo "$ac_t""$ac_cv_cygwin" 1>&6
1014
test "$ac_cv_cygwin" = yes && CYGWIN=yes
1015
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1016
echo "configure:1017: checking for mingw32 environment" >&5
1018
cat > conftest.$ac_ext <<EOF
1019
#line 1020 "configure"
1020
#include "confdefs.h"
1026
if { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1030
echo "configure: failed program was:" >&5
1031
cat conftest.$ac_ext >&5
1038
echo "$ac_t""$ac_cv_mingw32" 1>&6
1040
test "$ac_cv_mingw32" = yes && MINGW32=yes
1043
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1044
echo "configure:1045: checking for executable suffix" >&5
1046
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1053
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1054
echo "$ac_t""${ac_cv_exeext}" 1>&6
1059
# Check for full floating-point support, including Infinity and NaN
1062
echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
1063
echo "configure:1064: checking for full floating-point support" >&5
1064
if test "$cross_compiling" = yes; then
1065
echo "$ac_t""unknown (cross-compiling)" 1>&6
1067
echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
1068
echo "configure:1069: checking whether "cc -mieee" works" >&5
1069
ac_save_cflags=${CFLAGS}
1070
CFLAGS="$CFLAGS -mieee"
1071
cat > conftest.$ac_ext <<EOF
1072
#line 1073 "configure"
1073
#include "confdefs.h"
1079
if { (eval echo configure:1080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1081
echo "$ac_t""yes" 1>&6
1084
echo "configure: failed program was:" >&5
1085
cat conftest.$ac_ext >&5
1087
echo "$ac_t""no" 1>&6
1090
CFLAGS=${ac_save_cflags}
1094
cat > conftest.$ac_ext <<EOF
1095
#line 1096 "configure"
1096
#include "confdefs.h"
1102
if (one/zero > DBL_MAX) /* infinity */
1103
if (zero/zero != zero/zero) /* NaN */
1109
if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1111
echo "$ac_t""yes" 1>&6
1114
echo "configure: failed program was:" >&5
1115
cat conftest.$ac_ext >&5
1117
echo "$ac_t""no" 1>&6
1118
ac_save_cflags=${CFLAGS}
1121
echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
1122
echo "configure:1123: checking for full floating-point support with -mieee" >&5
1123
if test "$cross_compiling" = yes; then
1124
echo "$ac_t""unknown (cross-compiling)" 1>&6
1125
{ echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
1128
cat > conftest.$ac_ext <<EOF
1129
#line 1130 "configure"
1130
#include "confdefs.h"
1136
if (one/zero > DBL_MAX) /* infinity */
1137
if (zero/zero != zero/zero) /* NaN */
1143
if { (eval echo configure:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1145
echo "$ac_t""yes" 1>&6
1148
echo "configure: failed program was:" >&5
1149
cat conftest.$ac_ext >&5
1151
echo "$ac_t""no" 1>&6
1152
echo "configure: warning: *** Incomplete floating-point support." 1>&2
1158
CFLAGS=${ac_save_cflags}
1164
CFLAGS="$CFLAGS $IEEEFLAG"
1168
if test -n "${bindir}"; then
1171
BINDIR=/usr/local/bin
1175
# Set SRCDIR and DSTDIR
1177
# Extract the first word of "pwd", so it can be a program name with args.
1178
set dummy pwd; ac_word=$2
1179
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1180
echo "configure:1181: checking for $ac_word" >&5
1184
ac_cv_path_pwd="$pwd" # Let the user override the test with a path.
1187
ac_cv_path_pwd="$pwd" # Let the user override the test with a dos path.
1190
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1192
for ac_dir in $ac_dummy; do
1193
test -z "$ac_dir" && ac_dir=.
1194
if test -f $ac_dir/$ac_word; then
1195
ac_cv_path_pwd="$ac_dir/$ac_word"
1200
test -z "$ac_cv_path_pwd" && ac_cv_path_pwd="pwd"
1203
pwd="$ac_cv_path_pwd"
1204
if test -n "$pwd"; then
1205
echo "$ac_t""$pwd" 1>&6
1207
echo "$ac_t""no" 1>&6
1211
if test "$MINGW32" = yes ; then
1217
echo $ac_n "checking for source directory""... $ac_c" 1>&6
1218
echo "configure:1219: checking for source directory" >&5
1220
if test -z "$srcdir" ; then
1223
SRCDIR=`(cd "$srcdir" ; $pwd)`
1226
echo "$ac_t"""$SRCDIR"" 1>&6
1228
echo $ac_n "checking for build directory""... $ac_c" 1>&6
1229
echo "configure:1230: checking for build directory" >&5
1234
echo "$ac_t"""$DSTDIR"" 1>&6
1242
if test -z "${host}"; then
1250
# Use absolute path for aux directory so that install-sh works
1253
for ac_dir in $SRCDIR $srcdir/$SRCDIR; do
1254
if test -f $ac_dir/install-sh; then
1256
ac_install_sh="$ac_aux_dir/install-sh -c"
1258
elif test -f $ac_dir/install.sh; then
1260
ac_install_sh="$ac_aux_dir/install.sh -c"
1264
if test -z "$ac_aux_dir"; then
1265
{ echo "configure: error: can not find install-sh or install.sh in $SRCDIR $srcdir/$SRCDIR" 1>&2; exit 1; }
1267
ac_config_guess=$ac_aux_dir/config.guess
1268
ac_config_sub=$ac_aux_dir/config.sub
1269
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1272
# Set GISBASE and GRASS_BIN
1274
GISBASE="${WINDSTDIR}/dist.${ARCH}"
1275
GRASS_BIN="${DSTDIR}/bin.${ARCH}"
1280
# Set GRASS_VERSION_*
1282
GRASS_VERSION_FILE=include/VERSION
1283
GRASS_VERSION_MAJOR=`sed -n 1p "${GRASS_VERSION_FILE}"`
1284
GRASS_VERSION_MINOR=`sed -n 2p "${GRASS_VERSION_FILE}"`
1285
GRASS_VERSION_RELEASE=`sed -n 3p "${GRASS_VERSION_FILE}"`
1286
GRASS_VERSION_DATE=`sed -n 4p "${GRASS_VERSION_FILE}"`
1287
GRASS_VERSION_NUMBER=`echo ${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}`
1288
NAME_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/\..*//'`
1290
LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
1302
# Check for MacOSX App
1304
# Check whether --enable-macosx-app or --disable-macosx-app was given.
1305
if test "${enable_macosx_app+set}" = set; then
1306
enableval="$enable_macosx_app"
1309
enable_macosx_app=no
1313
echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
1314
echo "configure:1315: checking for MacOSX App" >&5
1315
case "$enable_macosx_app" in
1316
yes) MACOSX_APP=1 ;;
1318
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
1320
echo "$ac_t"""$enable_macosx_app"" 1>&6
1323
# Check for MacOSX archs
1325
echo $ac_n "checking for MacOSX architectures""... $ac_c" 1>&6
1326
echo "configure:1327: checking for MacOSX architectures" >&5
1330
if test -z "$with_macosx_archs" ; then
1331
echo "$ac_t""no" 1>&6
1333
for a in $with_macosx_archs
1335
# check if valid arch?
1337
i386|ppc|x86_64|ppc64)
1338
MACOSX_ARCHS="$MACOSX_ARCHS -arch $a"
1342
echo "$ac_t""$MACOSX_ARCHS" 1>&6
1343
LDFLAGS="$LDFLAGS $MACOSX_ARCHS"
1344
CFLAGS="$CFLAGS $MACOSX_ARCHS"
1345
CXXFLAGS="$CXXFLAGS $MACOSX_ARCHS"
1350
# Done checking MacOSX archs
1352
# Check for MacOSX SDK
1354
echo $ac_n "checking for MacOSX SDK""... $ac_c" 1>&6
1355
echo "configure:1356: checking for MacOSX SDK" >&5
1359
if test -z "$with_macosx_sdk" ; then
1360
echo "$ac_t""no" 1>&6
1363
ac_safe=`echo "$with_macosx_sdk/SDKSettings.plist" | sed 'y%./+-%__p_%'`
1364
echo $ac_n "checking for $with_macosx_sdk/SDKSettings.plist""... $ac_c" 1>&6
1365
echo "configure:1366: checking for $with_macosx_sdk/SDKSettings.plist" >&5
1367
if test "$cross_compiling" = yes; then
1368
{ echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1370
if test -r $with_macosx_sdk/SDKSettings.plist; then
1371
eval "ac_cv_file_$ac_safe=yes"
1373
eval "ac_cv_file_$ac_safe=no"
1376
if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1377
echo "$ac_t""yes" 1>&6
1379
MACOSX_SDK="-isysroot $with_macosx_sdk"
1381
echo "$ac_t""no" 1>&6
1383
{ echo "configure: error: *** specified SDK does not exist or is not a SDK" 1>&2; exit 1; }
1386
LDFLAGS="$LDFLAGS $MACOSX_SDK"
1387
CFLAGS="$CFLAGS $MACOSX_SDK"
1388
CXXFLAGS="$CXXFLAGS $MACOSX_SDK"
1393
# Done checking MacOSX SDK
1397
if test -n "$MACOSX_APP" ; then
1398
INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
1400
INSTDIR='${prefix}'"/grass-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}"
1405
# Get flags for building shared libraries
1408
echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
1409
echo "configure:1410: checking how to build libraries" >&5
1410
# Check whether --enable-shared or --disable-shared was given.
1411
if test "${enable_shared+set}" = set; then
1412
enableval="$enable_shared"
1413
shared_ok=$enableval
1419
if test "${enable_shared+set}" = set; then
1420
enableval="$enable_shared"
1421
shared_ok=$enableval
1426
if test "$shared_ok" = "yes" ; then
1427
echo "$ac_t""shared" 1>&6
1429
GRASS_LIB_PREFIX='$(SHLIB_PREFIX)'
1430
GRASS_LIB_SUFFIX='$(SHLIB_SUFFIX)'
1431
GRASS_LIBRARY_TYPE='shlib'
1433
echo "$ac_t""static" 1>&6
1435
cat >> confdefs.h <<\EOF
1436
#define STATIC_BUILD 1
1439
GRASS_LIB_PREFIX='$(STLIB_PREFIX)'
1440
GRASS_LIB_SUFFIX='$(STLIB_SUFFIX)'
1441
GRASS_LIBRARY_TYPE='stlib'
1448
ac_save_ldflags="$LDFLAGS"
1449
# Extract the first word of "ranlib", so it can be a program name with args.
1450
set dummy ranlib; ac_word=$2
1451
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1452
echo "configure:1453: checking for $ac_word" >&5
1454
if test -n "$RANLIB"; then
1455
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1457
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1459
for ac_dir in $ac_dummy; do
1460
test -z "$ac_dir" && ac_dir=.
1461
if test -f $ac_dir/$ac_word; then
1462
ac_cv_prog_RANLIB="ranlib"
1467
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1469
RANLIB="$ac_cv_prog_RANLIB"
1470
if test -n "$RANLIB"; then
1471
echo "$ac_t""$RANLIB" 1>&6
1473
echo "$ac_t""no" 1>&6
1476
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1477
echo "configure:1478: checking how to run the C preprocessor" >&5
1478
# On Suns, sometimes $CPP names a directory.
1479
if test -n "$CPP" && test -d "$CPP"; then
1482
if test -z "$CPP"; then
1484
# This must be in double quotes, not single quotes, because CPP may get
1485
# substituted into the Makefile and "${CC-cc}" will confuse make.
1487
# On the NeXT, cc -E runs the code through the compiler's parser,
1488
# not just through cpp.
1489
cat > conftest.$ac_ext <<EOF
1490
#line 1491 "configure"
1491
#include "confdefs.h"
1495
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1496
{ (eval echo configure:1497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1497
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1498
if test -z "$ac_err"; then
1502
echo "configure: failed program was:" >&5
1503
cat conftest.$ac_ext >&5
1505
CPP="${CC-cc} -E -traditional-cpp"
1506
cat > conftest.$ac_ext <<EOF
1507
#line 1508 "configure"
1508
#include "confdefs.h"
1512
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1513
{ (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1514
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1515
if test -z "$ac_err"; then
1519
echo "configure: failed program was:" >&5
1520
cat conftest.$ac_ext >&5
1522
CPP="${CC-cc} -nologo -E"
1523
cat > conftest.$ac_ext <<EOF
1524
#line 1525 "configure"
1525
#include "confdefs.h"
1529
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1530
{ (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1531
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1532
if test -z "$ac_err"; then
1536
echo "configure: failed program was:" >&5
1537
cat conftest.$ac_ext >&5
1546
ac_cv_prog_CPP="$CPP"
1547
CPP="$ac_cv_prog_CPP"
1549
ac_cv_prog_CPP="$CPP"
1551
echo "$ac_t""$CPP" 1>&6
1555
# Step 0.a: Enable 64 bit support?
1557
echo $ac_n "checking if 64bit support is requested""... $ac_c" 1>&6
1558
echo "configure:1559: checking if 64bit support is requested" >&5
1559
# Check whether --enable-64bit or --disable-64bit was given.
1560
if test "${enable_64bit+set}" = set; then
1561
enableval="$enable_64bit"
1568
if test "$enableval" = "yes"; then
1573
echo "$ac_t""$do64bit" 1>&6
1575
# Step 0.b: Enable Solaris 64 bit VIS support?
1577
echo $ac_n "checking if 64bit Sparc VIS support is requested""... $ac_c" 1>&6
1578
echo "configure:1579: checking if 64bit Sparc VIS support is requested" >&5
1579
# Check whether --enable-64bit-vis or --disable-64bit-vis was given.
1580
if test "${enable_64bit_vis+set}" = set; then
1581
enableval="$enable_64bit_vis"
1588
if test "$enableval" = "yes"; then
1589
# Force 64bit on with VIS
1595
echo "$ac_t""$do64bitVIS" 1>&6
1597
# Step 1: set the variable "system" to hold the name and version number
1598
# for the system. This can usually be done via the "uname" command, but
1599
# there are a few systems, like Next, where this doesn't work.
1601
echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6
1602
echo "configure:1603: checking system version (for dynamic loading)" >&5
1603
if test -f /usr/lib/NextStep/software_version; then
1604
system=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
1606
system=`uname -s`-`uname -r`
1607
if test "$?" -ne 0 ; then
1608
echo "$ac_t""unknown (can't find uname command)" 1>&6
1611
# Special check for weird MP-RAS system (uname returns weird
1612
# results, and the version is kept in special file).
1614
if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
1615
system=MP-RAS-`awk '{print }' /etc/.relid`
1617
if test "`uname -s`" = "AIX" ; then
1618
system=AIX-`uname -v`.`uname -r`
1620
echo "$ac_t""$system" 1>&6
1624
# Step 2: check for existence of -ldl library. This is needed because
1625
# Linux can use either -ldl or -ldld for dynamic loading.
1627
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1628
echo "configure:1629: checking for dlopen in -ldl" >&5
1629
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1631
ac_save_LIBS="$LIBS"
1633
cat > conftest.$ac_ext <<EOF
1634
#line 1635 "configure"
1635
#include "confdefs.h"
1636
/* Override any gcc2 internal prototype to avoid an error. */
1637
/* We use char because int might match the return type of a gcc2
1638
builtin and then its argument prototype would still apply. */
1645
if { (eval echo configure:1646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1647
eval "ac_cv_lib_$ac_lib_var=yes"
1649
echo "configure: failed program was:" >&5
1650
cat conftest.$ac_ext >&5
1652
eval "ac_cv_lib_$ac_lib_var=no"
1655
LIBS="$ac_save_LIBS"
1657
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1658
echo "$ac_t""yes" 1>&6
1661
echo "$ac_t""no" 1>&6
1666
# Require ranlib early so we can override it in special cases below.
1670
# Step 3: set configuration options based on system name and version.
1674
GRASS_EXPORT_FILE_SUFFIX=""
1675
UNSHARED_LIB_SUFFIX=""
1676
GRASS_TRIM_DOTS='`echo ${LIB_VER} | tr -d .`'
1677
ECHO_VERSION='`echo ${LIB_VER}`'
1678
GRASS_LIB_VERSIONS_OK=ok
1681
if test "$GCC" = "yes" ; then
1682
CFLAGS_WARNING="-Wall -Wconversion -Wno-implicit-int"
1686
GRASS_NEEDS_EXP_FILE=0
1687
GRASS_BUILD_EXP_FILE=""
1689
# Extract the first word of "ar", so it can be a program name with args.
1690
set dummy ar; ac_word=$2
1691
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1692
echo "configure:1693: checking for $ac_word" >&5
1694
if test -n "$AR"; then
1695
ac_cv_prog_AR="$AR" # Let the user override the test.
1697
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1699
for ac_dir in $ac_dummy; do
1700
test -z "$ac_dir" && ac_dir=.
1701
if test -f $ac_dir/$ac_word; then
1709
if test -n "$AR"; then
1710
echo "$ac_t""$AR" 1>&6
1712
echo "$ac_t""no" 1>&6
1715
if test "${AR}" = "" ; then
1716
{ echo "configure: error: Required archive tool 'ar' not found on PATH." 1>&2; exit 1; }
1719
LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
1723
if test "${GRASS_THREADS}" = "1" -a "$GCC" != "yes" ; then
1724
# AIX requires the _r compiler when gcc isn't being used
1725
if test "${CC}" != "cc_r" ; then
1728
echo "$ac_t""Using $CC for compiling with threads" 1>&6
1731
# AIX-5 uses ELF style dynamic libraries
1733
# Note: need the LIBS below, otherwise Tk won't find Tcl's
1734
# symbols when dynamically loaded into tclsh.
1735
SHLIB_LD_LIBS='${LIBS}'
1740
LD_LIBRARY_PATH_VAR="LIBPATH"
1742
# Check to enable 64-bit flags for compiler/linker
1743
if test "$do64bit" = "yes" ; then
1744
if test "$GCC" = "yes" ; then
1745
echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2
1750
RANLIB="${RANLIB} -X64"
1752
SHLIB_LD_FLAGS="-b64"
1756
if test "`uname -m`" = "ia64" ; then
1757
# AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
1758
SHLIB_LD="/usr/ccs/bin/ld -G -z text"
1759
# AIX-5 has dl* in libc.so
1760
if test "$GCC" = "yes" ; then
1761
CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
1763
CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
1765
LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
1767
SHLIB_LD="${SRCDIR}/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry ${SHLIB_LD_FLAGS}"
1768
CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
1769
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
1770
GRASS_NEEDS_EXP_FILE=1
1771
GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
1775
if test "${GRASS_THREADS}" = "1" -a "$GCC" != "yes" ; then
1776
# AIX requires the _r compiler when gcc isn't being used
1777
if test "${CC}" != "cc_r" ; then
1780
echo "$ac_t""Using $CC for compiling with threads" 1>&6
1784
SHLIB_LD_LIBS='${LIBS}'
1787
CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
1788
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
1789
LD_LIBRARY_PATH_VAR="LIBPATH"
1790
GRASS_NEEDS_EXP_FILE=1
1791
GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
1793
# Check to enable 64-bit flags for compiler/linker
1794
if test "$do64bit" = "yes" ; then
1795
if test "$GCC" = "yes" ; then
1796
echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2
1801
RANLIB="${RANLIB} -X64"
1803
SHLIB_LD_FLAGS="-b64"
1806
SHLIB_LD="${SRCDIR}/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry ${SHLIB_LD_FLAGS}"
1808
# On AIX <=v4 systems, libbsd.a has to be linked in to support
1809
# non-blocking file IO. This library has to be linked in after
1810
# the MATH_LIBS or it breaks the pow() function. The way to
1811
# insure proper sequencing, is to add it to the tail of MATH_LIBS.
1812
# This library also supplies gettimeofday.
1814
# AIX does not have a timezone field in struct tm. When the AIX
1815
# bsd library is used, the timezone global and the gettimeofday
1816
# methods are to be avoided for timezone deduction instead, we
1817
# deduce the timezone by comparing the localtime result on a
1820
echo $ac_n "checking for gettimeofday in -lbsd""... $ac_c" 1>&6
1821
echo "configure:1822: checking for gettimeofday in -lbsd" >&5
1822
ac_lib_var=`echo bsd'_'gettimeofday | sed 'y%./+-%__p_%'`
1824
ac_save_LIBS="$LIBS"
1826
cat > conftest.$ac_ext <<EOF
1827
#line 1828 "configure"
1828
#include "confdefs.h"
1829
/* Override any gcc2 internal prototype to avoid an error. */
1830
/* We use char because int might match the return type of a gcc2
1831
builtin and then its argument prototype would still apply. */
1832
char gettimeofday();
1838
if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1840
eval "ac_cv_lib_$ac_lib_var=yes"
1842
echo "configure: failed program was:" >&5
1843
cat conftest.$ac_ext >&5
1845
eval "ac_cv_lib_$ac_lib_var=no"
1848
LIBS="$ac_save_LIBS"
1850
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1851
echo "$ac_t""yes" 1>&6
1854
echo "$ac_t""no" 1>&6
1858
if test $libbsd = yes; then
1859
MATH_LIBS="$MATH_LIBS -lbsd"
1860
cat >> confdefs.h <<\EOF
1861
#define USE_DELTA_FOR_TZ 1
1867
SHLIB_CFLAGS="-fPIC"
1868
SHLIB_LD="${CC} -nostart"
1869
SHLIB_LD_LIBS='${LIBS}'
1873
#-----------------------------------------------------------
1874
# Check for inet_ntoa in -lbind, for BeOS (which also needs
1875
# -lsocket, even if the network functions are in -lnet which
1876
# is always linked to, for compatibility.
1877
#-----------------------------------------------------------
1878
echo $ac_n "checking for inet_ntoa in -lbind""... $ac_c" 1>&6
1879
echo "configure:1880: checking for inet_ntoa in -lbind" >&5
1880
ac_lib_var=`echo bind'_'inet_ntoa | sed 'y%./+-%__p_%'`
1882
ac_save_LIBS="$LIBS"
1884
cat > conftest.$ac_ext <<EOF
1885
#line 1886 "configure"
1886
#include "confdefs.h"
1887
/* Override any gcc2 internal prototype to avoid an error. */
1888
/* We use char because int might match the return type of a gcc2
1889
builtin and then its argument prototype would still apply. */
1896
if { (eval echo configure:1897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1898
eval "ac_cv_lib_$ac_lib_var=yes"
1900
echo "configure: failed program was:" >&5
1901
cat conftest.$ac_ext >&5
1903
eval "ac_cv_lib_$ac_lib_var=no"
1906
LIBS="$ac_save_LIBS"
1908
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1909
echo "$ac_t""yes" 1>&6
1910
LIBS="$LIBS -lbind -lsocket"
1912
echo "$ac_t""no" 1>&6
1916
BSD/OS-2.1*|BSD/OS-3*)
1918
SHLIB_LD="shlicc -r"
1919
SHLIB_LD_LIBS='${LIBS}'
1926
SHLIB_CFLAGS="-export-dynamic -fPIC"
1927
SHLIB_LD="cc -shared"
1928
SHLIB_LD_LIBS='${LIBS}'
1930
LDFLAGS="-export-dynamic"
1935
SHLIB_CFLAGS="-K PIC"
1944
# Use updated header definitions where possible
1945
cat >> confdefs.h <<\EOF
1946
#define _XOPEN_SOURCE 1
1948
# Use the XOPEN network library
1949
cat >> confdefs.h <<\EOF
1950
#define _XOPEN_SOURCE_EXTENDED 1
1952
# Use the XOPEN network library
1953
LIBS="$LIBS -lxnet" # Use the XOPEN network library
1956
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1957
echo "configure:1958: checking for shl_load in -ldld" >&5
1958
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
1960
ac_save_LIBS="$LIBS"
1962
cat > conftest.$ac_ext <<EOF
1963
#line 1964 "configure"
1964
#include "confdefs.h"
1965
/* Override any gcc2 internal prototype to avoid an error. */
1966
/* We use char because int might match the return type of a gcc2
1967
builtin and then its argument prototype would still apply. */
1974
if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1976
eval "ac_cv_lib_$ac_lib_var=yes"
1978
echo "configure: failed program was:" >&5
1979
cat conftest.$ac_ext >&5
1981
eval "ac_cv_lib_$ac_lib_var=no"
1984
LIBS="$ac_save_LIBS"
1986
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1987
echo "$ac_t""yes" 1>&6
1990
echo "$ac_t""no" 1>&6
1994
if test "$shared_ok" = yes; then
1997
SHLIB_LD_LIBS='${LIBS}'
1999
CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
2000
LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
2001
LD_LIBRARY_PATH_VAR="SHLIB_PATH"
2004
# Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
2005
#EXTRA_CFLAGS="+DAportable"
2007
# Check to enable 64-bit flags for compiler/linker
2008
if test "$do64bit" = "yes" ; then
2009
if test "$GCC" = "yes" ; then
2010
hpux_arch=`gcc -dumpmachine`
2013
# 64-bit gcc in use. Fix flags for GNU ld.
2015
SHLIB_LD="gcc -shared"
2021
echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2
2026
if test "`uname -m`" = "ia64" ; then
2027
EXTRA_CFLAGS="+DD64"
2028
LDFLAGS="+DD64 $LDFLAGS"
2030
EXTRA_CFLAGS="+DA2.0W"
2031
LDFLAGS="+DA2.0W $LDFLAGS"
2036
HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
2038
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
2039
echo "configure:2040: checking for shl_load in -ldld" >&5
2040
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2042
ac_save_LIBS="$LIBS"
2044
cat > conftest.$ac_ext <<EOF
2045
#line 2046 "configure"
2046
#include "confdefs.h"
2047
/* Override any gcc2 internal prototype to avoid an error. */
2048
/* We use char because int might match the return type of a gcc2
2049
builtin and then its argument prototype would still apply. */
2056
if { (eval echo configure:2057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2058
eval "ac_cv_lib_$ac_lib_var=yes"
2060
echo "configure: failed program was:" >&5
2061
cat conftest.$ac_ext >&5
2063
eval "ac_cv_lib_$ac_lib_var=no"
2066
LIBS="$ac_save_LIBS"
2068
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2069
echo "$ac_t""yes" 1>&6
2072
echo "$ac_t""no" 1>&6
2076
if test "$shared_ok" = yes; then
2081
CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
2082
LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
2083
LD_LIBRARY_PATH_VAR="SHLIB_PATH"
2089
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
2090
SHLIB_LD_LIBS='${LIBS}'
2091
LDFLAGS="-Wl,-D,08000000"
2092
CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
2093
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2094
SHARED_LIB_SUFFIX='${LIB_VER}.a'
2098
SHLIB_LD="ld -shared -rdata_shared"
2099
SHLIB_LD_LIBS='${LIBS}'
2101
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2102
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2108
SHLIB_LD="ld -shared -rdata_shared"
2109
SHLIB_LD_LIBS='${LIBS}'
2111
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2112
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2114
IRIX-6.*|IRIX64-6.5*)
2116
SHLIB_LD="ld -n32 -shared -rdata_shared"
2117
SHLIB_LD_LIBS='${LIBS}'
2119
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2120
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2121
if test "$GCC" = "yes" ; then
2122
EXTRA_CFLAGS="-mabi=n32"
2127
# Use to build 6.2 compatible binaries on 6.3.
2128
EXTRA_CFLAGS="-n32 -D_OLD_TERMIOS"
2139
SHLIB_LD="ld -n32 -shared -rdata_shared"
2140
SHLIB_LD_LIBS='${LIBS}'
2143
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2144
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2146
# Check to enable 64-bit flags for compiler/linker
2148
if test "$do64bit" = "yes" ; then
2149
if test "$GCC" = "yes" ; then
2150
echo "configure: warning: 64bit mode not supported by gcc" 1>&2
2153
SHLIB_LD="ld -64 -shared -rdata_shared"
2160
SHLIB_CFLAGS="-fPIC"
2161
SHLIB_LD_LIBS='${LIBS}'
2165
# egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
2166
# when you inline the string and math operations. Turn this off to
2167
# get rid of the warnings.
2168
#CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
2170
if test "$have_dl" = yes; then
2171
SHLIB_LD="${CC} -shared"
2172
LDFLAGS="-Wl,--export-dynamic"
2173
CC_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
2174
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2176
ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'`
2177
echo $ac_n "checking for dld.h""... $ac_c" 1>&6
2178
echo "configure:2179: checking for dld.h" >&5
2180
cat > conftest.$ac_ext <<EOF
2181
#line 2182 "configure"
2182
#include "confdefs.h"
2185
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2186
{ (eval echo configure:2187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2187
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2188
if test -z "$ac_err"; then
2190
eval "ac_cv_header_$ac_safe=yes"
2193
echo "configure: failed program was:" >&5
2194
cat conftest.$ac_ext >&5
2196
eval "ac_cv_header_$ac_safe=no"
2199
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2200
echo "$ac_t""yes" 1>&6
2202
SHLIB_LD="ld -shared"
2207
echo "$ac_t""no" 1>&6
2211
if test "`uname -m`" = "alpha" ; then
2212
EXTRA_CFLAGS="-mieee"
2215
# The combo of gcc + glibc has a bug related
2216
# to inlining of functions like strtod(). The
2217
# -fno-builtin flag should address this problem
2218
# but it does not work. The -fno-inline flag
2219
# is kind of overkill but it works.
2220
# Disable inlining only when one of the
2221
# files in compat/*.c is being linked in.
2222
if test x"${USE_COMPAT}" != x ; then
2223
EXTRA_CFLAGS="${EXTRA_CFLAGS} -fno-inline"
2226
# XIM peeking works under XFree86.
2227
cat >> confdefs.h <<\EOF
2228
#define PEEK_XCLOSEIM 1
2234
SHLIB_CFLAGS="-fPIC"
2235
SHLIB_LD_LIBS='${LIBS}'
2238
if test "$have_dl" = yes; then
2239
SHLIB_LD="${CC} -shared"
2240
LDFLAGS="-Wl,--export-dynamic"
2244
ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'`
2245
echo $ac_n "checking for dld.h""... $ac_c" 1>&6
2246
echo "configure:2247: checking for dld.h" >&5
2248
cat > conftest.$ac_ext <<EOF
2249
#line 2250 "configure"
2250
#include "confdefs.h"
2253
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2254
{ (eval echo configure:2255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2255
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2256
if test -z "$ac_err"; then
2258
eval "ac_cv_header_$ac_safe=yes"
2261
echo "configure: failed program was:" >&5
2262
cat conftest.$ac_ext >&5
2264
eval "ac_cv_header_$ac_safe=no"
2267
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2268
echo "$ac_t""yes" 1>&6
2270
SHLIB_LD="ld -shared"
2275
echo "$ac_t""no" 1>&6
2279
if test "`uname -m`" = "alpha" ; then
2280
EXTRA_CFLAGS="-mieee"
2285
SHLIB_LD_LIBS='${LIBS}'
2288
SHLIB_LD="${CC} -shared"
2289
LDFLAGS="-Wl,--export-dynamic"
2292
LD_LIBRARY_PATH_VAR="PATH"
2296
SHLIB_LD_LIBS='${LIBS}'
2299
SHLIB_LD="${CC} -shared"
2300
LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
2303
LD_LIBRARY_PATH_VAR="PATH"
2306
SHLIB_CFLAGS="-K PIC"
2315
SHLIB_CFLAGS="-K PIC"
2319
LDFLAGS="-Wl,-Bexport"
2325
SHLIB_CFLAGS="-fPIC"
2326
SHLIB_LD="ld -Bshareable -x"
2327
SHLIB_LD_LIBS="${LIBS}"
2329
LDFLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
2330
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2331
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2332
if test "${GRASS_THREADS}" = "1" ; then
2333
# The -pthread needs to go in the CFLAGS, not LIBS
2334
LIBS=`echo $LIBS | sed s/-pthread//`
2335
EXTRA_CFLAGS="-pthread"
2336
LDFLAGS="$LDFLAGS -pthread"
2338
# NetBSD doesn't handle version numbers with dots.
2339
UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
2340
SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so',
2341
GRASS_LIB_VERSIONS_OK=nodots
2344
SHLIB_LD="${CC} -shared"
2345
SHLIB_LD_LIBS='${LIBS}'
2350
echo $ac_n "checking for ELF""... $ac_c" 1>&6
2351
echo "configure:2352: checking for ELF" >&5
2352
cat > conftest.$ac_ext <<EOF
2353
#line 2354 "configure"
2354
#include "confdefs.h"
2361
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2362
egrep "yes" >/dev/null 2>&1; then
2364
echo "$ac_t""yes" 1>&6
2365
SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so.1.0'
2368
echo "$ac_t""no" 1>&6
2369
SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so.1.0'
2375
# OpenBSD doesn't do version numbers with dots.
2376
UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
2377
GRASS_LIB_VERSIONS_OK=nodots
2380
# Not available on all versions: check for include file.
2381
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
2382
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
2383
echo "configure:2384: checking for dlfcn.h" >&5
2385
cat > conftest.$ac_ext <<EOF
2386
#line 2387 "configure"
2387
#include "confdefs.h"
2390
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2391
{ (eval echo configure:2392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2392
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2393
if test -z "$ac_err"; then
2395
eval "ac_cv_header_$ac_safe=yes"
2398
echo "configure: failed program was:" >&5
2399
cat conftest.$ac_ext >&5
2401
eval "ac_cv_header_$ac_safe=no"
2404
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2405
echo "$ac_t""yes" 1>&6
2407
SHLIB_CFLAGS="-fPIC"
2408
SHLIB_LD="ld -Bshareable -x"
2412
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2413
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2414
echo $ac_n "checking for ELF""... $ac_c" 1>&6
2415
echo "configure:2416: checking for ELF" >&5
2416
cat > conftest.$ac_ext <<EOF
2417
#line 2418 "configure"
2418
#include "confdefs.h"
2425
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2426
egrep "yes" >/dev/null 2>&1; then
2428
echo "$ac_t""yes" 1>&6
2429
SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
2432
echo "$ac_t""no" 1>&6
2433
SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so.1.0'
2440
echo "$ac_t""no" 1>&6
2443
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
2444
SHLIB_LD_LIBS='${LIBS}'
2447
CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
2448
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2449
SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
2453
UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
2454
GRASS_LIB_VERSIONS_OK=nodots
2457
# FreeBSD 3.* and greater have ELF.
2458
SHLIB_CFLAGS="-fPIC"
2459
SHLIB_LD="ld -Bshareable -x"
2460
SHLIB_LD_LIBS='${LIBS}'
2462
LDFLAGS="-export-dynamic"
2463
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2464
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2465
if test "${GRASS_THREADS}" = "1" ; then
2466
# The -pthread needs to go in the CFLAGS, not LIBS
2467
LIBS=`echo $LIBS | sed s/-pthread//`
2468
EXTRA_CFLAGS="-pthread"
2469
LDFLAGS="$LDFLAGS -pthread"
2473
# FreeBSD-3 doesn't handle version numbers with dots.
2474
UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
2475
SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
2476
GRASS_LIB_VERSIONS_OK=nodots
2480
Rhapsody-*|Darwin-*)
2481
SHLIB_CFLAGS="-fno-common"
2482
SHLIB_LD="cc -dynamiclib -compatibility_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -current_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -install_name \${INST_DIR}/lib/lib\${LIB_NAME}\${SHLIB_SUFFIX}"
2483
GRASS_SHLIB_LD_EXTRAS=""
2484
SHLIB_LD_LIBS='${LIBS}'
2485
SHLIB_SUFFIX=".dylib"
2489
CFLAGS_OPTIMIZE="-Os"
2490
LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
2491
# for compatibility with autoconf vers 2.13 :
2498
SHLIB_LD="cc -nostdlib -r"
2506
CFLAGS_OPTIMIZE="" # Optimizer is buggy
2507
cat >> confdefs.h <<\EOF
2508
#define _OE_SOCKETS 1
2510
# needed in sys/socket.h
2512
OSF1-1.0|OSF1-1.1|OSF1-1.2)
2513
# OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
2515
# Hack: make package name same as library name
2516
SHLIB_LD='ld -R -export :'
2524
# OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
2525
SHLIB_CFLAGS="-fPIC"
2526
if test "$SHARED_BUILD" = "1" ; then
2527
SHLIB_LD="ld -shared"
2529
SHLIB_LD="ld -non_shared"
2540
if test "$SHARED_BUILD" = "1" ; then
2541
SHLIB_LD='ld -shared -expect_unresolved "*"'
2543
SHLIB_LD='ld -non_shared -expect_unresolved "*"'
2548
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2549
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2550
if test "$GCC" = "yes" ; then
2551
EXTRA_CFLAGS="-mieee"
2553
EXTRA_CFLAGS="-DHAVE_TZSET -std1 -ieee"
2555
# see pthread_intro(3) for pthread support on osf1, k.furukawa
2556
if test "${GRASS_THREADS}" = "1" ; then
2557
EXTRA_CFLAGS="${EXTRA_CFLAGS} -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
2558
EXTRA_CFLAGS="${EXTRA_CFLAGS} -DGRASS_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
2559
LIBS=`echo $LIBS | sed s/-lpthreads//`
2560
if test "$GCC" = "yes" ; then
2561
LIBS="$LIBS -lpthread -lmach -lexc"
2563
EXTRA_CFLAGS="${EXTRA_CFLAGS} -pthread"
2571
# This may work for all QNX, but it was only reported for v6.
2572
SHLIB_CFLAGS="-fPIC"
2573
SHLIB_LD="ld -Bshareable -x"
2582
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
2583
SHLIB_LD_LIBS='${LIBS}'
2585
LDFLAGS="-Wl,-D,08000000"
2586
CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
2587
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2590
# Note, dlopen is available only on SCO 3.2.5 and greater. However,
2591
# this test works, since "uname -s" was non-standard in 3.2.4 and
2593
if test "$GCC" = "yes" ; then
2594
SHLIB_CFLAGS="-fPIC -melf"
2595
LDFLAGS="-melf -Wl,-Bexport"
2597
SHLIB_CFLAGS="-Kpic -belf"
2598
LDFLAGS="-belf -Wl,-Bexport"
2607
SHLIB_CFLAGS="-K PIC"
2621
CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
2622
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2624
# SunOS can't handle version numbers with dots in them in library
2625
# specs, like -ltcl7.5, so use -ltcl75 instead. Also, it
2626
# requires an extra version number at the end of .so file names.
2627
# So, the library has to have a name like libtcl75.so.1.0
2629
SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so.1.0'
2630
UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
2631
GRASS_LIB_VERSIONS_OK=nodots
2635
# Note: If _REENTRANT isn't defined, then Solaris
2636
# won't define thread-safe library routines.
2638
cat >> confdefs.h <<\EOF
2639
#define _REENTRANT 1
2642
cat >> confdefs.h <<\EOF
2643
#define _POSIX_PTHREAD_SEMANTICS 1
2647
# Note: need the LIBS below, otherwise Tk won't find Tcl's
2648
# symbols when dynamically loaded into tclsh.
2650
SHLIB_LD_LIBS='${LIBS}'
2653
if test "$GCC" = "yes" ; then
2654
SHLIB_CFLAGS="-fPIC"
2655
SHLIB_LD="$CC -shared"
2656
CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
2657
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2659
SHLIB_CFLAGS="-KPIC"
2660
SHLIB_LD="/usr/ccs/bin/ld -G -z text"
2661
CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
2662
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2667
# Note: If _REENTRANT isn't defined, then Solaris
2668
# won't define thread-safe library routines.
2670
cat >> confdefs.h <<\EOF
2671
#define _REENTRANT 1
2674
cat >> confdefs.h <<\EOF
2675
#define _POSIX_PTHREAD_SEMANTICS 1
2681
# Check to enable 64-bit flags for compiler/linker
2682
if test "$do64bit" = "yes" ; then
2684
if test "$arch" = "sparcv9 sparc" ; then
2685
if test "$GCC" = "yes" ; then
2686
echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2
2688
SHLIB_CFLAGS="-KPIC"
2690
if test "$do64bitVIS" = "yes" ; then
2691
EXTRA_CFLAGS="-xarch=v9a"
2692
LDFLAGS="-xarch=v9a"
2694
EXTRA_CFLAGS="-xarch=v9"
2699
echo "configure: warning: "64bit mode only supported sparcv9 system"" 1>&2
2703
# Note: need the LIBS below, otherwise Tk won't find Tcl's
2704
# symbols when dynamically loaded into tclsh.
2706
SHLIB_LD_LIBS='${LIBS}'
2708
if test "$GCC" = "yes" ; then
2709
SHLIB_CFLAGS="-fPIC"
2710
SHLIB_LD="$CC -shared"
2711
CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
2712
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2714
SHLIB_CFLAGS="-KPIC"
2715
SHLIB_LD="CC -G -z text"
2716
CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
2717
LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
2723
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
2724
SHLIB_LD_LIBS='${LIBS}'
2725
LDFLAGS="-Wl,-D,08000000"
2726
CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
2727
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2728
if test "$GCC" != "yes" ; then
2729
EXTRA_CFLAGS="-DHAVE_TZSET -std1"
2732
UNIX_SV* | UnixWare-5*)
2733
SHLIB_CFLAGS="-KPIC"
2737
# Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
2738
# that don't grok the -Bexport option. Test that it does.
2739
hold_ldflags=$LDFLAGS
2740
echo $ac_n "checking for ld accepts -Bexport flag""... $ac_c" 1>&6
2741
echo "configure:2742: checking for ld accepts -Bexport flag" >&5
2742
LDFLAGS="${LDFLAGS} -Wl,-Bexport"
2743
cat > conftest.$ac_ext <<EOF
2744
#line 2745 "configure"
2745
#include "confdefs.h"
2751
if { (eval echo configure:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2755
echo "configure: failed program was:" >&5
2756
cat conftest.$ac_ext >&5
2761
LDFLAGS=$hold_ldflags
2762
echo "$ac_t""$found" 1>&6
2763
if test $found = yes; then
2764
LDFLAGS="-Wl,-Bexport"
2773
# If we're running gcc, then change the C flags for compiling shared
2774
# libraries to the right flags for gcc, instead of those for the
2775
# standard manufacturer compiler.
2777
if test "$GCC" = "yes" ; then
2787
Rhapsody-*|Darwin-*)
2796
SHLIB_CFLAGS="-fPIC"
2801
if test "$SHARED_LIB_SUFFIX" = "" ; then
2802
SHARED_LIB_SUFFIX='${LIB_VER}${SHLIB_SUFFIX}'
2804
if test "$UNSHARED_LIB_SUFFIX" = "" ; then
2805
UNSHARED_LIB_SUFFIX='${LIB_VER}.a'
2808
if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
2809
LIB_SUFFIX=${SHARED_LIB_SUFFIX}
2810
MAKE_LIB='${SHLIB_LD} -o $@ ${SHLIB_LD_FLAGS} ${OBJS} ${SHLIB_LD_LIBS} ${GRASS_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
2811
INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
2813
LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
2815
if test "$RANLIB" = "" ; then
2816
MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
2817
INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
2819
MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
2820
INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
2826
# Stub lib does not depend on shared/static configuration
2827
if test "$RANLIB" = "" ; then
2828
MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
2829
INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
2831
MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
2832
INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
2863
LDFLAGS="${ac_save_ldflags} $LDFLAGS"
2867
# Check whether --enable-w11 or --disable-w11 was given.
2868
if test "${enable_w11+set}" = set; then
2869
enableval="$enable_w11"
2879
# Check whether --with-cxx or --without-cxx was given.
2880
if test "${with_cxx+set}" = set; then
2888
#LOC_ARG_WITH(g77, GNU Fortran 77, no)
2890
# Check whether --with-macosx-archs or --without-macosx-archs was given.
2891
if test "${with_macosx_archs+set}" = set; then
2892
withval="$with_macosx_archs"
2895
with_macosx_archs="no"
2898
# Check whether --with-macosx-sdk or --without-macosx-sdk was given.
2899
if test "${with_macosx_sdk+set}" = set; then
2900
withval="$with_macosx_sdk"
2903
with_macosx_sdk="no"
2907
# Check whether --with-jpeg or --without-jpeg was given.
2908
if test "${with_jpeg+set}" = set; then
2909
withval="$with_jpeg"
2917
# Check whether --with-tiff or --without-tiff was given.
2918
if test "${with_tiff+set}" = set; then
2919
withval="$with_tiff"
2927
# Check whether --with-png or --without-png was given.
2928
if test "${with_png+set}" = set; then
2937
# Check whether --with-tcltk or --without-tcltk was given.
2938
if test "${with_tcltk+set}" = set; then
2939
withval="$with_tcltk"
2947
# Check whether --with-postgres or --without-postgres was given.
2948
if test "${with_postgres+set}" = set; then
2949
withval="$with_postgres"
2957
# Check whether --with-mysql or --without-mysql was given.
2958
if test "${with_mysql+set}" = set; then
2959
withval="$with_mysql"
2967
# Check whether --with-sqlite or --without-sqlite was given.
2968
if test "${with_sqlite+set}" = set; then
2969
withval="$with_sqlite"
2977
# Check whether --with-ffmpeg or --without-ffmpeg was given.
2978
if test "${with_ffmpeg+set}" = set; then
2979
withval="$with_ffmpeg"
2987
# Check whether --with-opengl or --without-opengl was given.
2988
if test "${with_opengl+set}" = set; then
2989
withval="$with_opengl"
2997
# Check whether --with-odbc or --without-odbc was given.
2998
if test "${with_odbc+set}" = set; then
2999
withval="$with_odbc"
3007
# Check whether --with-fftw or --without-fftw was given.
3008
if test "${with_fftw+set}" = set; then
3009
withval="$with_fftw"
3017
# Check whether --with-blas or --without-blas was given.
3018
if test "${with_blas+set}" = set; then
3019
withval="$with_blas"
3027
# Check whether --with-lapack or --without-lapack was given.
3028
if test "${with_lapack+set}" = set; then
3029
withval="$with_lapack"
3037
# Check whether --with-motif or --without-motif was given.
3038
if test "${with_motif+set}" = set; then
3039
withval="$with_motif"
3047
# Check whether --with-cairo or --without-cairo was given.
3048
if test "${with_cairo+set}" = set; then
3049
withval="$with_cairo"
3057
# Check whether --with-freetype or --without-freetype was given.
3058
if test "${with_freetype+set}" = set; then
3059
withval="$with_freetype"
3067
# Check whether --with-glw or --without-glw was given.
3068
if test "${with_glw+set}" = set; then
3077
# Check whether --with-nls or --without-nls was given.
3078
if test "${with_nls+set}" = set; then
3087
# Check whether --with-readline or --without-readline was given.
3088
if test "${with_readline+set}" = set; then
3089
withval="$with_readline"
3097
# Check whether --with-opendwg or --without-opendwg was given.
3098
if test "${with_opendwg+set}" = set; then
3099
withval="$with_opendwg"
3107
# Check whether --with-curses or --without-curses was given.
3108
if test "${with_curses+set}" = set; then
3109
withval="$with_curses"
3117
# Check whether --with-regex or --without-regex was given.
3118
if test "${with_regex+set}" = set; then
3119
withval="$with_regex"
3127
# Check whether --with-gdal or --without-gdal was given.
3128
if test "${with_gdal+set}" = set; then
3129
withval="$with_gdal"
3134
# Check whether --with-python or --without-python was given.
3135
if test "${with_python+set}" = set; then
3136
withval="$with_python"
3143
# Check whether --with-wxwidgets or --without-wxwidgets was given.
3144
if test "${with_wxwidgets+set}" = set; then
3145
withval="$with_wxwidgets"
3152
# With includes and libs options
3154
# Check whether --with-geos or --without-geos was given.
3155
if test "${with_geos+set}" = set; then
3156
withval="$with_geos"
3163
# Check whether --with-includes or --without-includes was given.
3164
if test "${with_includes+set}" = set; then
3165
withval="$with_includes"
3170
# Check whether --with-libs or --without-libs was given.
3171
if test "${with_libs+set}" = set; then
3172
withval="$with_libs"
3178
# Check whether --with-zlib-includes or --without-zlib-includes was given.
3179
if test "${with_zlib_includes+set}" = set; then
3180
withval="$with_zlib_includes"
3186
# Check whether --with-zlib-libs or --without-zlib-libs was given.
3187
if test "${with_zlib_libs+set}" = set; then
3188
withval="$with_zlib_libs"
3195
# Check whether --with-readline-includes or --without-readline-includes was given.
3196
if test "${with_readline_includes+set}" = set; then
3197
withval="$with_readline_includes"
3203
# Check whether --with-readline-libs or --without-readline-libs was given.
3204
if test "${with_readline_libs+set}" = set; then
3205
withval="$with_readline_libs"
3212
# Check whether --with-jpeg-includes or --without-jpeg-includes was given.
3213
if test "${with_jpeg_includes+set}" = set; then
3214
withval="$with_jpeg_includes"
3220
# Check whether --with-jpeg-libs or --without-jpeg-libs was given.
3221
if test "${with_jpeg_libs+set}" = set; then
3222
withval="$with_jpeg_libs"
3229
# Check whether --with-tiff-includes or --without-tiff-includes was given.
3230
if test "${with_tiff_includes+set}" = set; then
3231
withval="$with_tiff_includes"
3237
# Check whether --with-tiff-libs or --without-tiff-libs was given.
3238
if test "${with_tiff_libs+set}" = set; then
3239
withval="$with_tiff_libs"
3246
# Check whether --with-png-includes or --without-png-includes was given.
3247
if test "${with_png_includes+set}" = set; then
3248
withval="$with_png_includes"
3254
# Check whether --with-png-libs or --without-png-libs was given.
3255
if test "${with_png_libs+set}" = set; then
3256
withval="$with_png_libs"
3263
# Check whether --with-tcltk-includes or --without-tcltk-includes was given.
3264
if test "${with_tcltk_includes+set}" = set; then
3265
withval="$with_tcltk_includes"
3271
# Check whether --with-tcltk-libs or --without-tcltk-libs was given.
3272
if test "${with_tcltk_libs+set}" = set; then
3273
withval="$with_tcltk_libs"
3280
# Check whether --with-postgres-includes or --without-postgres-includes was given.
3281
if test "${with_postgres_includes+set}" = set; then
3282
withval="$with_postgres_includes"
3288
# Check whether --with-postgres-libs or --without-postgres-libs was given.
3289
if test "${with_postgres_libs+set}" = set; then
3290
withval="$with_postgres_libs"
3297
# Check whether --with-mysql-includes or --without-mysql-includes was given.
3298
if test "${with_mysql_includes+set}" = set; then
3299
withval="$with_mysql_includes"
3305
# Check whether --with-mysql-libs or --without-mysql-libs was given.
3306
if test "${with_mysql_libs+set}" = set; then
3307
withval="$with_mysql_libs"
3314
# Check whether --with-sqlite-includes or --without-sqlite-includes was given.
3315
if test "${with_sqlite_includes+set}" = set; then
3316
withval="$with_sqlite_includes"
3322
# Check whether --with-sqlite-libs or --without-sqlite-libs was given.
3323
if test "${with_sqlite_libs+set}" = set; then
3324
withval="$with_sqlite_libs"
3331
# Check whether --with-ffmpeg-includes or --without-ffmpeg-includes was given.
3332
if test "${with_ffmpeg_includes+set}" = set; then
3333
withval="$with_ffmpeg_includes"
3339
# Check whether --with-ffmpeg-libs or --without-ffmpeg-libs was given.
3340
if test "${with_ffmpeg_libs+set}" = set; then
3341
withval="$with_ffmpeg_libs"
3348
# Check whether --with-opengl-includes or --without-opengl-includes was given.
3349
if test "${with_opengl_includes+set}" = set; then
3350
withval="$with_opengl_includes"
3356
# Check whether --with-opengl-libs or --without-opengl-libs was given.
3357
if test "${with_opengl_libs+set}" = set; then
3358
withval="$with_opengl_libs"
3365
# Check whether --with-odbc-includes or --without-odbc-includes was given.
3366
if test "${with_odbc_includes+set}" = set; then
3367
withval="$with_odbc_includes"
3373
# Check whether --with-odbc-libs or --without-odbc-libs was given.
3374
if test "${with_odbc_libs+set}" = set; then
3375
withval="$with_odbc_libs"
3382
# Check whether --with-fftw-includes or --without-fftw-includes was given.
3383
if test "${with_fftw_includes+set}" = set; then
3384
withval="$with_fftw_includes"
3390
# Check whether --with-fftw-libs or --without-fftw-libs was given.
3391
if test "${with_fftw_libs+set}" = set; then
3392
withval="$with_fftw_libs"
3399
# Check whether --with-blas-includes or --without-blas-includes was given.
3400
if test "${with_blas_includes+set}" = set; then
3401
withval="$with_blas_includes"
3407
# Check whether --with-blas-libs or --without-blas-libs was given.
3408
if test "${with_blas_libs+set}" = set; then
3409
withval="$with_blas_libs"
3416
# Check whether --with-lapack-includes or --without-lapack-includes was given.
3417
if test "${with_lapack_includes+set}" = set; then
3418
withval="$with_lapack_includes"
3424
# Check whether --with-lapack-libs or --without-lapack-libs was given.
3425
if test "${with_lapack_libs+set}" = set; then
3426
withval="$with_lapack_libs"
3433
# Check whether --with-cairo-includes or --without-cairo-includes was given.
3434
if test "${with_cairo_includes+set}" = set; then
3435
withval="$with_cairo_includes"
3441
# Check whether --with-cairo-libs or --without-cairo-libs was given.
3442
if test "${with_cairo_libs+set}" = set; then
3443
withval="$with_cairo_libs"
3449
# Check whether --with-cairo-ldflags or --without-cairo-ldflags was given.
3450
if test "${with_cairo_ldflags+set}" = set; then
3451
withval="$with_cairo_ldflags"
3458
# Check whether --with-motif-includes or --without-motif-includes was given.
3459
if test "${with_motif_includes+set}" = set; then
3460
withval="$with_motif_includes"
3466
# Check whether --with-motif-libs or --without-motif-libs was given.
3467
if test "${with_motif_libs+set}" = set; then
3468
withval="$with_motif_libs"
3475
# Check whether --with-freetype-includes or --without-freetype-includes was given.
3476
if test "${with_freetype_includes+set}" = set; then
3477
withval="$with_freetype_includes"
3483
# Check whether --with-freetype-libs or --without-freetype-libs was given.
3484
if test "${with_freetype_libs+set}" = set; then
3485
withval="$with_freetype_libs"
3492
# Check whether --with-glw-includes or --without-glw-includes was given.
3493
if test "${with_glw_includes+set}" = set; then
3494
withval="$with_glw_includes"
3500
# Check whether --with-glw-libs or --without-glw-libs was given.
3501
if test "${with_glw_libs+set}" = set; then
3502
withval="$with_glw_libs"
3509
# Check whether --with-proj-includes or --without-proj-includes was given.
3510
if test "${with_proj_includes+set}" = set; then
3511
withval="$with_proj_includes"
3517
# Check whether --with-proj-libs or --without-proj-libs was given.
3518
if test "${with_proj_libs+set}" = set; then
3519
withval="$with_proj_libs"
3525
# Check whether --with-proj-share or --without-proj-share was given.
3526
if test "${with_proj_share+set}" = set; then
3527
withval="$with_proj_share"
3534
# Check whether --with-opendwg-includes or --without-opendwg-includes was given.
3535
if test "${with_opendwg_includes+set}" = set; then
3536
withval="$with_opendwg_includes"
3542
# Check whether --with-opendwg-libs or --without-opendwg-libs was given.
3543
if test "${with_opendwg_libs+set}" = set; then
3544
withval="$with_opendwg_libs"
3551
# Check whether --with-regex-includes or --without-regex-includes was given.
3552
if test "${with_regex_includes+set}" = set; then
3553
withval="$with_regex_includes"
3559
# Check whether --with-regex-libs or --without-regex-libs was given.
3560
if test "${with_regex_libs+set}" = set; then
3561
withval="$with_regex_libs"
3567
# Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
3569
# With includes option
3571
# Handle Fortran compiler choice
3572
#LOC_CHECK_USE(g77, GNU Fortran 77, USE_G77)
3573
# Done checking fortran
3575
echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
3576
echo "configure:3577: checking for additional include dirs" >&5
3577
case "$with_includes" in
3578
y | ye | yes | n | no)
3579
{ echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
3582
echo "$ac_t""$with_includes" 1>&6
3584
if test -n "$with_includes"; then
3585
for dir in $with_includes; do
3586
if test -d "$dir"; then
3587
INCLUDE_DIRS="$INCLUDE_DIRS -I$dir"
3589
{ echo "configure: error: *** Include directory $dir does not exist." 1>&2; exit 1; }
3592
CPPFLAGS="$CPPFLAGS $INCLUDE_DIRS"
3598
echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
3599
echo "configure:3600: checking for additional library dirs" >&5
3600
case "$with_libs" in
3601
y | ye | yes | n | no)
3602
{ echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
3605
echo "$ac_t""$with_libs" 1>&6
3607
if test -n "$with_libs"; then
3608
for dir in $with_libs; do
3609
if test -d "$dir"; then
3610
LIBRARY_DIRS="$LIBRARY_DIRS -L$dir"
3612
{ echo "configure: error: *** Library directory $dir does not exist." 1>&2; exit 1; }
3615
LDFLAGS="$LDFLAGS $LIBRARY_DIRS"
3619
# Programs and standard headers, libraries, functions
3621
# Find a good install program. We prefer a C program (faster),
3622
# so one script is as good as another. But avoid the broken or
3623
# incompatible versions:
3624
# SysV /etc/install, /usr/sbin/install
3625
# SunOS /usr/etc/install
3626
# IRIX /sbin/install
3628
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3629
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3630
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3631
# ./install, which can be erroneously created by make from ./install.sh.
3632
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3633
echo "configure:3634: checking for a BSD compatible install" >&5
3634
if test -z "$INSTALL"; then
3636
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3637
for ac_dir in $PATH; do
3638
# Account for people who put trailing slashes in PATH elements.
3640
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3642
# OSF1 and SCO ODT 3.0 have their own names for install.
3643
# Don't use installbsd from OSF since it installs stuff as root
3645
for ac_prog in ginstall scoinst install; do
3646
if test -f $ac_dir/$ac_prog; then
3647
if test $ac_prog = install &&
3648
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3649
# AIX install. It has an incompatible calling convention.
3652
ac_cv_path_install="$ac_dir/$ac_prog -c"
3662
if test "${ac_cv_path_install+set}" = set; then
3663
INSTALL="$ac_cv_path_install"
3665
# As a last resort, use the slow shell script. We don't cache a
3666
# path for INSTALL within a source directory, because that will
3667
# break other packages using the cache if that directory is
3668
# removed, or if the path is relative.
3669
INSTALL="$ac_install_sh"
3672
echo "$ac_t""$INSTALL" 1>&6
3674
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3675
# It thinks the first close brace ends the variable substitution.
3676
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3678
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3680
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3683
# Extract the first word of "flex", so it can be a program name with args.
3684
set dummy flex; ac_word=$2
3685
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3686
echo "configure:3687: checking for $ac_word" >&5
3688
if test -n "$LEX"; then
3689
ac_cv_prog_LEX="$LEX" # Let the user override the test.
3691
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3693
for ac_dir in $ac_dummy; do
3694
test -z "$ac_dir" && ac_dir=.
3695
if test -f $ac_dir/$ac_word; then
3696
ac_cv_prog_LEX="flex"
3701
test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
3703
LEX="$ac_cv_prog_LEX"
3704
if test -n "$LEX"; then
3705
echo "$ac_t""$LEX" 1>&6
3707
echo "$ac_t""no" 1>&6
3710
if test -z "$LEXLIB"
3716
echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3717
echo "configure:3718: checking for yywrap in -l$ac_lib" >&5
3718
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3720
ac_save_LIBS="$LIBS"
3721
LIBS="-l$ac_lib $LIBS"
3722
cat > conftest.$ac_ext <<EOF
3723
#line 3724 "configure"
3724
#include "confdefs.h"
3725
/* Override any gcc2 internal prototype to avoid an error. */
3726
/* We use char because int might match the return type of a gcc2
3727
builtin and then its argument prototype would still apply. */
3734
if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3736
eval "ac_cv_lib_$ac_lib_var=yes"
3738
echo "configure: failed program was:" >&5
3739
cat conftest.$ac_ext >&5
3741
eval "ac_cv_lib_$ac_lib_var=no"
3744
LIBS="$ac_save_LIBS"
3746
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3747
echo "$ac_t""yes" 1>&6
3750
echo "$ac_t""no" 1>&6
3755
if test "$LEX" = "lex"; then
3756
# Extract the first word of "lex", so it can be a program name with args.
3757
set dummy lex; ac_word=$2
3758
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3759
echo "configure:3760: checking for $ac_word" >&5
3763
ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a path.
3766
ac_cv_path_LEXPATH="$LEXPATH" # Let the user override the test with a dos path.
3769
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3771
for ac_dir in $ac_dummy; do
3772
test -z "$ac_dir" && ac_dir=.
3773
if test -f $ac_dir/$ac_word; then
3774
ac_cv_path_LEXPATH="$ac_dir/$ac_word"
3779
test -z "$ac_cv_path_LEXPATH" && ac_cv_path_LEXPATH="no"
3782
LEXPATH="$ac_cv_path_LEXPATH"
3783
if test -n "$LEXPATH"; then
3784
echo "$ac_t""$LEXPATH" 1>&6
3786
echo "$ac_t""no" 1>&6
3789
if test "$LEXPATH" = "no"; then
3790
{ echo "configure: error: *** Unable to locate lex." 1>&2; exit 1; }
3794
for ac_prog in 'bison -y' byacc
3796
# Extract the first word of "$ac_prog", so it can be a program name with args.
3797
set dummy $ac_prog; ac_word=$2
3798
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3799
echo "configure:3800: checking for $ac_word" >&5
3801
if test -n "$YACC"; then
3802
ac_cv_prog_YACC="$YACC" # Let the user override the test.
3804
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3806
for ac_dir in $ac_dummy; do
3807
test -z "$ac_dir" && ac_dir=.
3808
if test -f $ac_dir/$ac_word; then
3809
ac_cv_prog_YACC="$ac_prog"
3815
YACC="$ac_cv_prog_YACC"
3816
if test -n "$YACC"; then
3817
echo "$ac_t""$YACC" 1>&6
3819
echo "$ac_t""no" 1>&6
3822
test -n "$YACC" && break
3824
test -n "$YACC" || YACC="yacc"
3826
if test "$YACC" = "yacc"; then
3827
# Extract the first word of "yacc", so it can be a program name with args.
3828
set dummy yacc; ac_word=$2
3829
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3830
echo "configure:3831: checking for $ac_word" >&5
3834
ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a path.
3837
ac_cv_path_YACCPATH="$YACCPATH" # Let the user override the test with a dos path.
3840
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3842
for ac_dir in $ac_dummy; do
3843
test -z "$ac_dir" && ac_dir=.
3844
if test -f $ac_dir/$ac_word; then
3845
ac_cv_path_YACCPATH="$ac_dir/$ac_word"
3850
test -z "$ac_cv_path_YACCPATH" && ac_cv_path_YACCPATH="no"
3853
YACCPATH="$ac_cv_path_YACCPATH"
3854
if test -n "$YACCPATH"; then
3855
echo "$ac_t""$YACCPATH" 1>&6
3857
echo "$ac_t""no" 1>&6
3860
if test "$YACCPATH" = "no"; then
3861
{ echo "configure: error: *** Unable to locate yacc." 1>&2; exit 1; }
3865
# Extract the first word of "ranlib", so it can be a program name with args.
3866
set dummy ranlib; ac_word=$2
3867
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3868
echo "configure:3869: checking for $ac_word" >&5
3870
if test -n "$RANLIB"; then
3871
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3873
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3875
for ac_dir in $ac_dummy; do
3876
test -z "$ac_dir" && ac_dir=.
3877
if test -f $ac_dir/$ac_word; then
3878
ac_cv_prog_RANLIB="ranlib"
3883
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3885
RANLIB="$ac_cv_prog_RANLIB"
3886
if test -n "$RANLIB"; then
3887
echo "$ac_t""$RANLIB" 1>&6
3889
echo "$ac_t""no" 1>&6
3894
# Extract the first word of "$ac_prog", so it can be a program name with args.
3895
set dummy $ac_prog; ac_word=$2
3896
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3897
echo "configure:3898: checking for $ac_word" >&5
3899
if test -n "$AR"; then
3900
ac_cv_prog_AR="$AR" # Let the user override the test.
3902
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3904
for ac_dir in $ac_dummy; do
3905
test -z "$ac_dir" && ac_dir=.
3906
if test -f $ac_dir/$ac_word; then
3907
ac_cv_prog_AR="$ac_prog"
3914
if test -n "$AR"; then
3915
echo "$ac_t""$AR" 1>&6
3917
echo "$ac_t""no" 1>&6
3920
test -n "$AR" && break
3925
# Extract the first word of "$ac_prog", so it can be a program name with args.
3926
set dummy $ac_prog; ac_word=$2
3927
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3928
echo "configure:3929: checking for $ac_word" >&5
3930
if test -n "$ENV"; then
3931
ac_cv_prog_ENV="$ENV" # Let the user override the test.
3933
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3935
for ac_dir in $ac_dummy; do
3936
test -z "$ac_dir" && ac_dir=.
3937
if test -f $ac_dir/$ac_word; then
3938
ac_cv_prog_ENV="$ac_prog"
3944
ENV="$ac_cv_prog_ENV"
3945
if test -n "$ENV"; then
3946
echo "$ac_t""$ENV" 1>&6
3948
echo "$ac_t""no" 1>&6
3951
test -n "$ENV" && break
3954
# Extract the first word of "perl", so it can be a program name with args.
3955
set dummy perl; ac_word=$2
3956
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3957
echo "configure:3958: checking for $ac_word" >&5
3961
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3964
ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3967
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3969
for ac_dir in $ac_dummy; do
3970
test -z "$ac_dir" && ac_dir=.
3971
if test -f $ac_dir/$ac_word; then
3972
ac_cv_path_PERL="$ac_dir/$ac_word"
3977
test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
3980
PERL="$ac_cv_path_PERL"
3981
if test -n "$PERL"; then
3982
echo "$ac_t""$PERL" 1>&6
3984
echo "$ac_t""no" 1>&6
3987
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3988
echo "configure:3989: checking for ANSI C header files" >&5
3990
cat > conftest.$ac_ext <<EOF
3991
#line 3992 "configure"
3992
#include "confdefs.h"
3998
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3999
{ (eval echo configure:4000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4000
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4001
if test -z "$ac_err"; then
4003
ac_cv_header_stdc=yes
4006
echo "configure: failed program was:" >&5
4007
cat conftest.$ac_ext >&5
4009
ac_cv_header_stdc=no
4013
if test $ac_cv_header_stdc = yes; then
4014
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4015
cat > conftest.$ac_ext <<EOF
4016
#line 4017 "configure"
4017
#include "confdefs.h"
4020
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4021
egrep "memchr" >/dev/null 2>&1; then
4025
ac_cv_header_stdc=no
4031
if test $ac_cv_header_stdc = yes; then
4032
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4033
cat > conftest.$ac_ext <<EOF
4034
#line 4035 "configure"
4035
#include "confdefs.h"
4038
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4039
egrep "free" >/dev/null 2>&1; then
4043
ac_cv_header_stdc=no
4049
if test $ac_cv_header_stdc = yes; then
4050
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4051
if test "$cross_compiling" = yes; then
4054
cat > conftest.$ac_ext <<EOF
4055
#line 4056 "configure"
4056
#include "confdefs.h"
4058
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4059
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4060
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4061
int main () { int i; for (i = 0; i < 256; i++)
4062
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4066
if { (eval echo configure:4067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4070
echo "configure: failed program was:" >&5
4071
cat conftest.$ac_ext >&5
4073
ac_cv_header_stdc=no
4080
echo "$ac_t""$ac_cv_header_stdc" 1>&6
4081
if test $ac_cv_header_stdc = yes; then
4082
cat >> confdefs.h <<\EOF
4083
#define STDC_HEADERS 1
4088
#AC_CHECK_HEADERS(curses.h limits.h termio.h termios.h unistd.h values.h)
4089
for ac_hdr in limits.h termio.h termios.h unistd.h values.h f2c.h g2c.h
4091
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4092
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4093
echo "configure:4094: checking for $ac_hdr" >&5
4095
cat > conftest.$ac_ext <<EOF
4096
#line 4097 "configure"
4097
#include "confdefs.h"
4100
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4101
{ (eval echo configure:4102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4102
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4103
if test -z "$ac_err"; then
4105
eval "ac_cv_header_$ac_safe=yes"
4108
echo "configure: failed program was:" >&5
4109
cat conftest.$ac_ext >&5
4111
eval "ac_cv_header_$ac_safe=no"
4114
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4115
echo "$ac_t""yes" 1>&6
4116
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4117
cat >> confdefs.h <<EOF
4118
#define $ac_tr_hdr 1
4122
echo "$ac_t""no" 1>&6
4126
for ac_hdr in sys/ioctl.h sys/mtio.h sys/resource.h sys/time.h
4128
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4129
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4130
echo "configure:4131: checking for $ac_hdr" >&5
4132
cat > conftest.$ac_ext <<EOF
4133
#line 4134 "configure"
4134
#include "confdefs.h"
4137
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4138
{ (eval echo configure:4139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4139
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4140
if test -z "$ac_err"; then
4142
eval "ac_cv_header_$ac_safe=yes"
4145
echo "configure: failed program was:" >&5
4146
cat conftest.$ac_ext >&5
4148
eval "ac_cv_header_$ac_safe=no"
4151
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4152
echo "$ac_t""yes" 1>&6
4153
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4154
cat >> confdefs.h <<EOF
4155
#define $ac_tr_hdr 1
4159
echo "$ac_t""no" 1>&6
4163
for ac_hdr in sys/timeb.h sys/types.h sys/utsname.h
4165
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4166
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4167
echo "configure:4168: checking for $ac_hdr" >&5
4169
cat > conftest.$ac_ext <<EOF
4170
#line 4171 "configure"
4171
#include "confdefs.h"
4174
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4175
{ (eval echo configure:4176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4176
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4177
if test -z "$ac_err"; then
4179
eval "ac_cv_header_$ac_safe=yes"
4182
echo "configure: failed program was:" >&5
4183
cat conftest.$ac_ext >&5
4185
eval "ac_cv_header_$ac_safe=no"
4188
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4189
echo "$ac_t""yes" 1>&6
4190
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4191
cat >> confdefs.h <<EOF
4192
#define $ac_tr_hdr 1
4196
echo "$ac_t""no" 1>&6
4200
for ac_hdr in libintl.h iconv.h
4202
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4203
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4204
echo "configure:4205: checking for $ac_hdr" >&5
4206
cat > conftest.$ac_ext <<EOF
4207
#line 4208 "configure"
4208
#include "confdefs.h"
4211
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4212
{ (eval echo configure:4213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4213
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4214
if test -z "$ac_err"; then
4216
eval "ac_cv_header_$ac_safe=yes"
4219
echo "configure: failed program was:" >&5
4220
cat conftest.$ac_ext >&5
4222
eval "ac_cv_header_$ac_safe=no"
4225
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4226
echo "$ac_t""yes" 1>&6
4227
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4228
cat >> confdefs.h <<EOF
4229
#define $ac_tr_hdr 1
4233
echo "$ac_t""no" 1>&6
4237
for ac_hdr in langinfo.h
4239
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4240
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4241
echo "configure:4242: checking for $ac_hdr" >&5
4243
cat > conftest.$ac_ext <<EOF
4244
#line 4245 "configure"
4245
#include "confdefs.h"
4248
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4249
{ (eval echo configure:4250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4250
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4251
if test -z "$ac_err"; then
4253
eval "ac_cv_header_$ac_safe=yes"
4256
echo "configure: failed program was:" >&5
4257
cat conftest.$ac_ext >&5
4259
eval "ac_cv_header_$ac_safe=no"
4262
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4263
echo "$ac_t""yes" 1>&6
4264
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4265
cat >> confdefs.h <<EOF
4266
#define $ac_tr_hdr 1
4270
echo "$ac_t""no" 1>&6
4274
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4275
echo "configure:4276: checking whether time.h and sys/time.h may both be included" >&5
4277
cat > conftest.$ac_ext <<EOF
4278
#line 4279 "configure"
4279
#include "confdefs.h"
4280
#include <sys/types.h>
4281
#include <sys/time.h>
4287
if { (eval echo configure:4288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4289
ac_cv_header_time=yes
4291
echo "configure: failed program was:" >&5
4292
cat conftest.$ac_ext >&5
4294
ac_cv_header_time=no
4298
echo "$ac_t""$ac_cv_header_time" 1>&6
4299
if test $ac_cv_header_time = yes; then
4300
cat >> confdefs.h <<\EOF
4301
#define TIME_WITH_SYS_TIME 1
4306
echo $ac_n "checking for off_t""... $ac_c" 1>&6
4307
echo "configure:4308: checking for off_t" >&5
4309
cat > conftest.$ac_ext <<EOF
4310
#line 4311 "configure"
4311
#include "confdefs.h"
4312
#include <sys/types.h>
4318
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319
egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4321
ac_cv_type_off_t=yes
4328
echo "$ac_t""$ac_cv_type_off_t" 1>&6
4329
if test $ac_cv_type_off_t = no; then
4330
cat >> confdefs.h <<\EOF
4336
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4337
echo "configure:4338: checking for uid_t in sys/types.h" >&5
4339
cat > conftest.$ac_ext <<EOF
4340
#line 4341 "configure"
4341
#include "confdefs.h"
4342
#include <sys/types.h>
4344
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345
egrep "uid_t" >/dev/null 2>&1; then
4347
ac_cv_type_uid_t=yes
4355
echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4356
if test $ac_cv_type_uid_t = no; then
4357
cat >> confdefs.h <<\EOF
4361
cat >> confdefs.h <<\EOF
4367
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4368
echo "configure:4369: checking return type of signal handlers" >&5
4370
cat > conftest.$ac_ext <<EOF
4371
#line 4372 "configure"
4372
#include "confdefs.h"
4373
#include <sys/types.h>
4379
extern "C" void (*signal (int, void (*)(int)))(int);
4381
void (*signal ()) ();
4388
if { (eval echo configure:4389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4390
ac_cv_type_signal=void
4392
echo "configure: failed program was:" >&5
4393
cat conftest.$ac_ext >&5
4395
ac_cv_type_signal=int
4399
echo "$ac_t""$ac_cv_type_signal" 1>&6
4400
cat >> confdefs.h <<EOF
4401
#define RETSIGTYPE $ac_cv_type_signal
4405
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4406
echo "configure:4407: checking for Cygwin environment" >&5
4408
cat > conftest.$ac_ext <<EOF
4409
#line 4410 "configure"
4410
#include "confdefs.h"
4415
#define __CYGWIN__ __CYGWIN32__
4420
if { (eval echo configure:4421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4424
echo "configure: failed program was:" >&5
4425
cat conftest.$ac_ext >&5
4432
echo "$ac_t""$ac_cv_cygwin" 1>&6
4434
test "$ac_cv_cygwin" = yes && CYGWIN=yes
4435
for ac_func in ftime gethostname gettimeofday lseek nice time uname
4437
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4438
echo "configure:4439: checking for $ac_func" >&5
4440
cat > conftest.$ac_ext <<EOF
4441
#line 4442 "configure"
4442
#include "confdefs.h"
4443
/* System header to define __stub macros and hopefully few prototypes,
4444
which can conflict with char $ac_func(); below. */
4446
/* Override any gcc2 internal prototype to avoid an error. */
4447
/* We use char because int might match the return type of a gcc2
4448
builtin and then its argument prototype would still apply. */
4453
/* The GNU C library defines this for functions which it implements
4454
to always fail with ENOSYS. Some functions are actually named
4455
something starting with __ and the normal name is an alias. */
4456
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4464
if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4466
eval "ac_cv_func_$ac_func=yes"
4468
echo "configure: failed program was:" >&5
4469
cat conftest.$ac_ext >&5
4471
eval "ac_cv_func_$ac_func=no"
4475
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4476
echo "$ac_t""yes" 1>&6
4477
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4478
cat >> confdefs.h <<EOF
4479
#define $ac_tr_func 1
4483
echo "$ac_t""no" 1>&6
4487
for ac_func in seteuid setpriority setreuid setruid
4489
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4490
echo "configure:4491: checking for $ac_func" >&5
4492
cat > conftest.$ac_ext <<EOF
4493
#line 4494 "configure"
4494
#include "confdefs.h"
4495
/* System header to define __stub macros and hopefully few prototypes,
4496
which can conflict with char $ac_func(); below. */
4498
/* Override any gcc2 internal prototype to avoid an error. */
4499
/* We use char because int might match the return type of a gcc2
4500
builtin and then its argument prototype would still apply. */
4505
/* The GNU C library defines this for functions which it implements
4506
to always fail with ENOSYS. Some functions are actually named
4507
something starting with __ and the normal name is an alias. */
4508
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4516
if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4518
eval "ac_cv_func_$ac_func=yes"
4520
echo "configure: failed program was:" >&5
4521
cat conftest.$ac_ext >&5
4523
eval "ac_cv_func_$ac_func=no"
4527
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4528
echo "$ac_t""yes" 1>&6
4529
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4530
cat >> confdefs.h <<EOF
4531
#define $ac_tr_func 1
4535
echo "$ac_t""no" 1>&6
4539
for ac_func in drand48
4541
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4542
echo "configure:4543: checking for $ac_func" >&5
4544
cat > conftest.$ac_ext <<EOF
4545
#line 4546 "configure"
4546
#include "confdefs.h"
4547
/* System header to define __stub macros and hopefully few prototypes,
4548
which can conflict with char $ac_func(); below. */
4550
/* Override any gcc2 internal prototype to avoid an error. */
4551
/* We use char because int might match the return type of a gcc2
4552
builtin and then its argument prototype would still apply. */
4557
/* The GNU C library defines this for functions which it implements
4558
to always fail with ENOSYS. Some functions are actually named
4559
something starting with __ and the normal name is an alias. */
4560
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4568
if { (eval echo configure:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4570
eval "ac_cv_func_$ac_func=yes"
4572
echo "configure: failed program was:" >&5
4573
cat conftest.$ac_ext >&5
4575
eval "ac_cv_func_$ac_func=no"
4579
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4580
echo "$ac_t""yes" 1>&6
4581
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4582
cat >> confdefs.h <<EOF
4583
#define $ac_tr_func 1
4587
echo "$ac_t""no" 1>&6
4591
for ac_func in putenv setenv
4593
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4594
echo "configure:4595: checking for $ac_func" >&5
4596
cat > conftest.$ac_ext <<EOF
4597
#line 4598 "configure"
4598
#include "confdefs.h"
4599
/* System header to define __stub macros and hopefully few prototypes,
4600
which can conflict with char $ac_func(); below. */
4602
/* Override any gcc2 internal prototype to avoid an error. */
4603
/* We use char because int might match the return type of a gcc2
4604
builtin and then its argument prototype would still apply. */
4609
/* The GNU C library defines this for functions which it implements
4610
to always fail with ENOSYS. Some functions are actually named
4611
something starting with __ and the normal name is an alias. */
4612
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4620
if { (eval echo configure:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4622
eval "ac_cv_func_$ac_func=yes"
4624
echo "configure: failed program was:" >&5
4625
cat conftest.$ac_ext >&5
4627
eval "ac_cv_func_$ac_func=no"
4631
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4632
echo "$ac_t""yes" 1>&6
4633
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4634
cat >> confdefs.h <<EOF
4635
#define $ac_tr_func 1
4639
echo "$ac_t""no" 1>&6
4643
for ac_func in nanosleep
4645
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4646
echo "configure:4647: checking for $ac_func" >&5
4648
cat > conftest.$ac_ext <<EOF
4649
#line 4650 "configure"
4650
#include "confdefs.h"
4651
/* System header to define __stub macros and hopefully few prototypes,
4652
which can conflict with char $ac_func(); below. */
4654
/* Override any gcc2 internal prototype to avoid an error. */
4655
/* We use char because int might match the return type of a gcc2
4656
builtin and then its argument prototype would still apply. */
4661
/* The GNU C library defines this for functions which it implements
4662
to always fail with ENOSYS. Some functions are actually named
4663
something starting with __ and the normal name is an alias. */
4664
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4672
if { (eval echo configure:4673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4674
eval "ac_cv_func_$ac_func=yes"
4676
echo "configure: failed program was:" >&5
4677
cat conftest.$ac_ext >&5
4679
eval "ac_cv_func_$ac_func=no"
4683
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4684
echo "$ac_t""yes" 1>&6
4685
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4686
cat >> confdefs.h <<EOF
4687
#define $ac_tr_func 1
4691
echo "$ac_t""no" 1>&6
4695
if test "$cross_compiling" != "yes" ; then
4696
echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4697
echo "configure:4698: checking whether setpgrp takes no argument" >&5
4699
if test "$cross_compiling" = yes; then
4700
{ echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
4702
cat > conftest.$ac_ext <<EOF
4703
#line 4704 "configure"
4704
#include "confdefs.h"
4706
#ifdef HAVE_UNISTD_H
4711
* If this system has a BSD-style setpgrp, which takes arguments, exit
4716
if (setpgrp(1,1) == -1)
4723
if { (eval echo configure:4724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4725
ac_cv_func_setpgrp_void=no
4727
echo "configure: failed program was:" >&5
4728
cat conftest.$ac_ext >&5
4730
ac_cv_func_setpgrp_void=yes
4737
echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4738
if test $ac_cv_func_setpgrp_void = yes; then
4739
cat >> confdefs.h <<\EOF
4740
#define SETPGRP_VOID 1
4750
echo $ac_n "checking for long long int""... $ac_c" 1>&6
4751
echo "configure:4752: checking for long long int" >&5
4752
cat > conftest.$ac_ext <<EOF
4753
#line 4754 "configure"
4754
#include "confdefs.h"
4760
if { (eval echo configure:4761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4763
echo "$ac_t""yes" 1>&6
4764
cat >> confdefs.h <<\EOF
4765
#define HAVE_LONG_LONG_INT 1
4770
echo "configure: failed program was:" >&5
4771
cat conftest.$ac_ext >&5
4774
echo "$ac_t""no" 1>&6
4779
echo $ac_n "checking for W11""... $ac_c" 1>&6
4780
echo "configure:4781: checking for W11" >&5
4781
case "$enable_w11" in
4782
yes|no) echo "$ac_t"""$enable_w11"" 1>&6 ;;
4783
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
4791
if test "$enable_w11" = "yes" ; then
4792
X_CFLAGS=-I${SRCDIR}/display/drivers/windows/libW11
4793
X_LIBS='-L$(LIBDIR)'
4801
CFLAGS="$CFLAGS -D__W98__"
4803
# If we find X, set shell vars x_includes and x_libraries to the
4804
# paths, otherwise set no_x=yes.
4805
# Uses ac_ vars as temps to allow command line to override cache and checks.
4806
# --without-x overrides everything else, but does not touch the cache.
4807
echo $ac_n "checking for X""... $ac_c" 1>&6
4808
echo "configure:4809: checking for X" >&5
4810
# Check whether --with-x or --without-x was given.
4811
if test "${with_x+set}" = set; then
4816
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4817
if test "x$with_x" = xno; then
4818
# The user explicitly disabled X.
4821
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4822
# Both variables are already set.
4826
# One or both of the vars are not set, and there is no cached value.
4827
ac_x_includes=NO ac_x_libraries=NO
4829
if mkdir conftestdir; then
4831
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
4832
cat > Imakefile <<'EOF'
4834
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4836
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4837
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4838
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4839
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4840
for ac_extension in a so sl; do
4841
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4842
test -f $ac_im_libdir/libX11.$ac_extension; then
4843
ac_im_usrlibdir=$ac_im_libdir; break
4846
# Screen out bogus values from the imake configuration. They are
4847
# bogus both because they are the default anyway, and because
4848
# using them would break gcc on systems where it needs fixed includes.
4849
case "$ac_im_incroot" in
4851
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4853
case "$ac_im_usrlibdir" in
4855
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4862
if test "$ac_x_includes" = NO; then
4863
# Guess where to find include files, by looking for this one X11 .h file.
4864
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4866
# First, try using that file with no special directory specified.
4867
cat > conftest.$ac_ext <<EOF
4868
#line 4869 "configure"
4869
#include "confdefs.h"
4870
#include <$x_direct_test_include>
4872
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4873
{ (eval echo configure:4874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4874
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4875
if test -z "$ac_err"; then
4877
# We can compile using X headers with no special include directory.
4881
echo "configure: failed program was:" >&5
4882
cat conftest.$ac_ext >&5
4884
# Look for the header file in a standard set of common directories.
4885
# Check X11 before X11Rn because it is often a symlink to the current release.
4888
/usr/X11R6/include \
4889
/usr/X11R5/include \
4890
/usr/X11R4/include \
4893
/usr/include/X11R6 \
4894
/usr/include/X11R5 \
4895
/usr/include/X11R4 \
4897
/usr/local/X11/include \
4898
/usr/local/X11R6/include \
4899
/usr/local/X11R5/include \
4900
/usr/local/X11R4/include \
4902
/usr/local/include/X11 \
4903
/usr/local/include/X11R6 \
4904
/usr/local/include/X11R5 \
4905
/usr/local/include/X11R4 \
4909
/usr/XFree86/include/X11 \
4912
/usr/local/include \
4913
/usr/unsupported/include \
4914
/usr/athena/include \
4915
/usr/local/x11r5/include \
4916
/usr/lpp/Xamples/include \
4918
/usr/openwin/include \
4919
/usr/openwin/share/include \
4922
if test -r "$ac_dir/$x_direct_test_include"; then
4923
ac_x_includes=$ac_dir
4929
fi # $ac_x_includes = NO
4931
if test "$ac_x_libraries" = NO; then
4932
# Check for the libraries.
4934
test -z "$x_direct_test_library" && x_direct_test_library=Xt
4935
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4937
# See if we find them without any special options.
4938
# Don't add to $LIBS permanently.
4939
ac_save_LIBS="$LIBS"
4940
LIBS="-l$x_direct_test_library $LIBS"
4941
cat > conftest.$ac_ext <<EOF
4942
#line 4943 "configure"
4943
#include "confdefs.h"
4946
${x_direct_test_function}()
4949
if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4951
LIBS="$ac_save_LIBS"
4952
# We can link X programs with no special library path.
4955
echo "configure: failed program was:" >&5
4956
cat conftest.$ac_ext >&5
4958
LIBS="$ac_save_LIBS"
4959
# First see if replacing the include by lib works.
4960
# Check X11 before X11Rn because it is often a symlink to the current release.
4961
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4972
/usr/local/X11/lib \
4973
/usr/local/X11R6/lib \
4974
/usr/local/X11R5/lib \
4975
/usr/local/X11R4/lib \
4977
/usr/local/lib/X11 \
4978
/usr/local/lib/X11R6 \
4979
/usr/local/lib/X11R5 \
4980
/usr/local/lib/X11R4 \
4984
/usr/XFree86/lib/X11 \
4988
/usr/unsupported/lib \
4990
/usr/local/x11r5/lib \
4991
/usr/lpp/Xamples/lib \
4995
/usr/openwin/share/lib \
4998
for ac_extension in a so sl; do
4999
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5000
ac_x_libraries=$ac_dir
5007
fi # $ac_x_libraries = NO
5009
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5010
# Didn't find X anywhere. Cache the known absence of X.
5011
ac_cv_have_x="have_x=no"
5013
# Record where we found X for the cache.
5014
ac_cv_have_x="have_x=yes \
5015
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5018
eval "$ac_cv_have_x"
5021
if test "$have_x" != yes; then
5022
echo "$ac_t""$have_x" 1>&6
5025
# If each of the values was on the command line, it overrides each guess.
5026
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5027
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5028
# Update the cache value to reflect the command line values.
5029
ac_cv_have_x="have_x=yes \
5030
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5031
echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5034
if test "$no_x" = yes; then
5035
# Not all programs may use this symbol, but it does not hurt to define it.
5036
cat >> confdefs.h <<\EOF
5037
#define X_DISPLAY_MISSING 1
5040
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5042
if test -n "$x_includes"; then
5043
X_CFLAGS="$X_CFLAGS -I$x_includes"
5046
# It would also be nice to do this for all -L options, not just this one.
5047
if test -n "$x_libraries"; then
5048
X_LIBS="$X_LIBS -L$x_libraries"
5049
# For Solaris; some versions of Sun CC require a space after -R and
5050
# others require no space. Words are not sufficient . . . .
5051
case "`(uname -sr) 2>/dev/null`" in
5053
echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5054
echo "configure:5055: checking whether -R must be followed by a space" >&5
5055
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5056
cat > conftest.$ac_ext <<EOF
5057
#line 5058 "configure"
5058
#include "confdefs.h"
5064
if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5068
echo "configure: failed program was:" >&5
5069
cat conftest.$ac_ext >&5
5074
if test $ac_R_nospace = yes; then
5075
echo "$ac_t""no" 1>&6
5076
X_LIBS="$X_LIBS -R$x_libraries"
5078
LIBS="$ac_xsave_LIBS -R $x_libraries"
5079
cat > conftest.$ac_ext <<EOF
5080
#line 5081 "configure"
5081
#include "confdefs.h"
5087
if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5091
echo "configure: failed program was:" >&5
5092
cat conftest.$ac_ext >&5
5097
if test $ac_R_space = yes; then
5098
echo "$ac_t""yes" 1>&6
5099
X_LIBS="$X_LIBS -R $x_libraries"
5101
echo "$ac_t""neither works" 1>&6
5104
LIBS="$ac_xsave_LIBS"
5108
# Check for system-dependent libraries X programs must link with.
5109
# Do this before checking for the system-independent R6 libraries
5110
# (-lICE), since we may need -lsocket or whatever for X linking.
5112
if test "$ISC" = yes; then
5113
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5115
# Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5116
# libraries were built with DECnet support. And karl@cs.umb.edu says
5117
# the Alpha needs dnet_stub (dnet does not exist).
5118
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5119
echo "configure:5120: checking for dnet_ntoa in -ldnet" >&5
5120
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5122
ac_save_LIBS="$LIBS"
5124
cat > conftest.$ac_ext <<EOF
5125
#line 5126 "configure"
5126
#include "confdefs.h"
5127
/* Override any gcc2 internal prototype to avoid an error. */
5128
/* We use char because int might match the return type of a gcc2
5129
builtin and then its argument prototype would still apply. */
5136
if { (eval echo configure:5137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5138
eval "ac_cv_lib_$ac_lib_var=yes"
5140
echo "configure: failed program was:" >&5
5141
cat conftest.$ac_ext >&5
5143
eval "ac_cv_lib_$ac_lib_var=no"
5146
LIBS="$ac_save_LIBS"
5148
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5149
echo "$ac_t""yes" 1>&6
5150
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5152
echo "$ac_t""no" 1>&6
5155
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5156
echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5157
echo "configure:5158: checking for dnet_ntoa in -ldnet_stub" >&5
5158
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5160
ac_save_LIBS="$LIBS"
5161
LIBS="-ldnet_stub $LIBS"
5162
cat > conftest.$ac_ext <<EOF
5163
#line 5164 "configure"
5164
#include "confdefs.h"
5165
/* Override any gcc2 internal prototype to avoid an error. */
5166
/* We use char because int might match the return type of a gcc2
5167
builtin and then its argument prototype would still apply. */
5174
if { (eval echo configure:5175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5176
eval "ac_cv_lib_$ac_lib_var=yes"
5178
echo "configure: failed program was:" >&5
5179
cat conftest.$ac_ext >&5
5181
eval "ac_cv_lib_$ac_lib_var=no"
5184
LIBS="$ac_save_LIBS"
5186
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5187
echo "$ac_t""yes" 1>&6
5188
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5190
echo "$ac_t""no" 1>&6
5195
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5196
# to get the SysV transport functions.
5197
# chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5199
# The nsl library prevents programs from opening the X display
5200
# on Irix 5.2, according to dickey@clark.net.
5201
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5202
echo "configure:5203: checking for gethostbyname" >&5
5204
cat > conftest.$ac_ext <<EOF
5205
#line 5206 "configure"
5206
#include "confdefs.h"
5207
/* System header to define __stub macros and hopefully few prototypes,
5208
which can conflict with char gethostbyname(); below. */
5210
/* Override any gcc2 internal prototype to avoid an error. */
5211
/* We use char because int might match the return type of a gcc2
5212
builtin and then its argument prototype would still apply. */
5213
char gethostbyname();
5217
/* The GNU C library defines this for functions which it implements
5218
to always fail with ENOSYS. Some functions are actually named
5219
something starting with __ and the normal name is an alias. */
5220
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5228
if { (eval echo configure:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5230
eval "ac_cv_func_gethostbyname=yes"
5232
echo "configure: failed program was:" >&5
5233
cat conftest.$ac_ext >&5
5235
eval "ac_cv_func_gethostbyname=no"
5239
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5240
echo "$ac_t""yes" 1>&6
5243
echo "$ac_t""no" 1>&6
5246
if test $ac_cv_func_gethostbyname = no; then
5247
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5248
echo "configure:5249: checking for gethostbyname in -lnsl" >&5
5249
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5251
ac_save_LIBS="$LIBS"
5253
cat > conftest.$ac_ext <<EOF
5254
#line 5255 "configure"
5255
#include "confdefs.h"
5256
/* Override any gcc2 internal prototype to avoid an error. */
5257
/* We use char because int might match the return type of a gcc2
5258
builtin and then its argument prototype would still apply. */
5259
char gethostbyname();
5265
if { (eval echo configure:5266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5267
eval "ac_cv_lib_$ac_lib_var=yes"
5269
echo "configure: failed program was:" >&5
5270
cat conftest.$ac_ext >&5
5272
eval "ac_cv_lib_$ac_lib_var=no"
5275
LIBS="$ac_save_LIBS"
5277
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5278
echo "$ac_t""yes" 1>&6
5279
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5281
echo "$ac_t""no" 1>&6
5286
# lieder@skyler.mavd.honeywell.com says without -lsocket,
5287
# socket/setsockopt and other routines are undefined under SCO ODT
5288
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5289
# on later versions), says simon@lia.di.epfl.ch: it contains
5290
# gethostby* variants that don't use the nameserver (or something).
5291
# -lsocket must be given before -lnsl if both are needed.
5292
# We assume that if connect needs -lnsl, so does gethostbyname.
5293
echo $ac_n "checking for connect""... $ac_c" 1>&6
5294
echo "configure:5295: checking for connect" >&5
5296
cat > conftest.$ac_ext <<EOF
5297
#line 5298 "configure"
5298
#include "confdefs.h"
5299
/* System header to define __stub macros and hopefully few prototypes,
5300
which can conflict with char connect(); below. */
5302
/* Override any gcc2 internal prototype to avoid an error. */
5303
/* We use char because int might match the return type of a gcc2
5304
builtin and then its argument prototype would still apply. */
5309
/* The GNU C library defines this for functions which it implements
5310
to always fail with ENOSYS. Some functions are actually named
5311
something starting with __ and the normal name is an alias. */
5312
#if defined (__stub_connect) || defined (__stub___connect)
5320
if { (eval echo configure:5321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5322
eval "ac_cv_func_connect=yes"
5324
echo "configure: failed program was:" >&5
5325
cat conftest.$ac_ext >&5
5327
eval "ac_cv_func_connect=no"
5331
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5332
echo "$ac_t""yes" 1>&6
5335
echo "$ac_t""no" 1>&6
5338
if test $ac_cv_func_connect = no; then
5339
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5340
echo "configure:5341: checking for connect in -lsocket" >&5
5341
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5343
ac_save_LIBS="$LIBS"
5344
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5345
cat > conftest.$ac_ext <<EOF
5346
#line 5347 "configure"
5347
#include "confdefs.h"
5348
/* Override any gcc2 internal prototype to avoid an error. */
5349
/* We use char because int might match the return type of a gcc2
5350
builtin and then its argument prototype would still apply. */
5357
if { (eval echo configure:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5359
eval "ac_cv_lib_$ac_lib_var=yes"
5361
echo "configure: failed program was:" >&5
5362
cat conftest.$ac_ext >&5
5364
eval "ac_cv_lib_$ac_lib_var=no"
5367
LIBS="$ac_save_LIBS"
5369
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5370
echo "$ac_t""yes" 1>&6
5371
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5373
echo "$ac_t""no" 1>&6
5378
# gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5379
echo $ac_n "checking for remove""... $ac_c" 1>&6
5380
echo "configure:5381: checking for remove" >&5
5382
cat > conftest.$ac_ext <<EOF
5383
#line 5384 "configure"
5384
#include "confdefs.h"
5385
/* System header to define __stub macros and hopefully few prototypes,
5386
which can conflict with char remove(); below. */
5388
/* Override any gcc2 internal prototype to avoid an error. */
5389
/* We use char because int might match the return type of a gcc2
5390
builtin and then its argument prototype would still apply. */
5395
/* The GNU C library defines this for functions which it implements
5396
to always fail with ENOSYS. Some functions are actually named
5397
something starting with __ and the normal name is an alias. */
5398
#if defined (__stub_remove) || defined (__stub___remove)
5406
if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5408
eval "ac_cv_func_remove=yes"
5410
echo "configure: failed program was:" >&5
5411
cat conftest.$ac_ext >&5
5413
eval "ac_cv_func_remove=no"
5417
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5418
echo "$ac_t""yes" 1>&6
5421
echo "$ac_t""no" 1>&6
5424
if test $ac_cv_func_remove = no; then
5425
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5426
echo "configure:5427: checking for remove in -lposix" >&5
5427
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5429
ac_save_LIBS="$LIBS"
5430
LIBS="-lposix $LIBS"
5431
cat > conftest.$ac_ext <<EOF
5432
#line 5433 "configure"
5433
#include "confdefs.h"
5434
/* Override any gcc2 internal prototype to avoid an error. */
5435
/* We use char because int might match the return type of a gcc2
5436
builtin and then its argument prototype would still apply. */
5443
if { (eval echo configure:5444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5445
eval "ac_cv_lib_$ac_lib_var=yes"
5447
echo "configure: failed program was:" >&5
5448
cat conftest.$ac_ext >&5
5450
eval "ac_cv_lib_$ac_lib_var=no"
5453
LIBS="$ac_save_LIBS"
5455
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5456
echo "$ac_t""yes" 1>&6
5457
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5459
echo "$ac_t""no" 1>&6
5464
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5465
echo $ac_n "checking for shmat""... $ac_c" 1>&6
5466
echo "configure:5467: checking for shmat" >&5
5468
cat > conftest.$ac_ext <<EOF
5469
#line 5470 "configure"
5470
#include "confdefs.h"
5471
/* System header to define __stub macros and hopefully few prototypes,
5472
which can conflict with char shmat(); below. */
5474
/* Override any gcc2 internal prototype to avoid an error. */
5475
/* We use char because int might match the return type of a gcc2
5476
builtin and then its argument prototype would still apply. */
5481
/* The GNU C library defines this for functions which it implements
5482
to always fail with ENOSYS. Some functions are actually named
5483
something starting with __ and the normal name is an alias. */
5484
#if defined (__stub_shmat) || defined (__stub___shmat)
5492
if { (eval echo configure:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5494
eval "ac_cv_func_shmat=yes"
5496
echo "configure: failed program was:" >&5
5497
cat conftest.$ac_ext >&5
5499
eval "ac_cv_func_shmat=no"
5503
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5504
echo "$ac_t""yes" 1>&6
5507
echo "$ac_t""no" 1>&6
5510
if test $ac_cv_func_shmat = no; then
5511
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5512
echo "configure:5513: checking for shmat in -lipc" >&5
5513
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5515
ac_save_LIBS="$LIBS"
5517
cat > conftest.$ac_ext <<EOF
5518
#line 5519 "configure"
5519
#include "confdefs.h"
5520
/* Override any gcc2 internal prototype to avoid an error. */
5521
/* We use char because int might match the return type of a gcc2
5522
builtin and then its argument prototype would still apply. */
5529
if { (eval echo configure:5530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5531
eval "ac_cv_lib_$ac_lib_var=yes"
5533
echo "configure: failed program was:" >&5
5534
cat conftest.$ac_ext >&5
5536
eval "ac_cv_lib_$ac_lib_var=no"
5539
LIBS="$ac_save_LIBS"
5541
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5542
echo "$ac_t""yes" 1>&6
5543
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5545
echo "$ac_t""no" 1>&6
5551
# Check for libraries that X11R6 Xt/Xaw programs need.
5552
ac_save_LDFLAGS="$LDFLAGS"
5553
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5554
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5555
# check for ICE first), but we must link in the order -lSM -lICE or
5556
# we get undefined symbols. So assume we have SM if we have ICE.
5557
# These have to be linked with before -lX11, unlike the other
5558
# libraries we check for below, so use a different variable.
5559
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5560
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5561
echo "configure:5562: checking for IceConnectionNumber in -lICE" >&5
5562
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5564
ac_save_LIBS="$LIBS"
5565
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5566
cat > conftest.$ac_ext <<EOF
5567
#line 5568 "configure"
5568
#include "confdefs.h"
5569
/* Override any gcc2 internal prototype to avoid an error. */
5570
/* We use char because int might match the return type of a gcc2
5571
builtin and then its argument prototype would still apply. */
5572
char IceConnectionNumber();
5575
IceConnectionNumber()
5578
if { (eval echo configure:5579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5580
eval "ac_cv_lib_$ac_lib_var=yes"
5582
echo "configure: failed program was:" >&5
5583
cat conftest.$ac_ext >&5
5585
eval "ac_cv_lib_$ac_lib_var=no"
5588
LIBS="$ac_save_LIBS"
5590
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5591
echo "$ac_t""yes" 1>&6
5592
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5594
echo "$ac_t""no" 1>&6
5597
LDFLAGS="$ac_save_LDFLAGS"
5601
if test "$no_x" != "yes"; then
5612
# Enable Curses option
5615
echo $ac_n "checking whether to use Curses""... $ac_c" 1>&6
5616
echo "configure:5617: checking whether to use Curses" >&5
5617
echo "$ac_t"""$with_curses"" 1>&6
5618
case "$with_curses" in
5619
"no") USE_CURSES= ;;
5620
"yes") USE_CURSES="1" ;;
5621
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
5626
if test -n "$USE_CURSES"; then
5629
ac_save_cppflags="$CPPFLAGS"
5630
CPPFLAGS=" $CPPFLAGS"
5631
for ac_hdr in curses.h
5633
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5634
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5635
echo "configure:5636: checking for $ac_hdr" >&5
5637
cat > conftest.$ac_ext <<EOF
5638
#line 5639 "configure"
5639
#include "confdefs.h"
5642
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5643
{ (eval echo configure:5644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5644
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5645
if test -z "$ac_err"; then
5647
eval "ac_cv_header_$ac_safe=yes"
5650
echo "configure: failed program was:" >&5
5651
cat conftest.$ac_ext >&5
5653
eval "ac_cv_header_$ac_safe=no"
5656
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5657
echo "$ac_t""yes" 1>&6
5658
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5659
cat >> confdefs.h <<EOF
5660
#define $ac_tr_hdr 1
5664
echo "$ac_t""no" 1>&6
5665
{ echo "configure: error: *** Unable to locate curses includes." 1>&2; exit 1; }
5670
CPPFLAGS=$ac_save_cppflags
5673
echo $ac_n "checking curses.h WINDOW structure component""... $ac_c" 1>&6
5674
echo "configure:5675: checking curses.h WINDOW structure component" >&5
5676
cat > conftest.$ac_ext <<EOF
5677
#line 5678 "configure"
5678
#include "confdefs.h"
5683
WINDOW w; w.maxy = 0;
5686
if { (eval echo configure:5687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5690
echo "configure: failed program was:" >&5
5691
cat conftest.$ac_ext >&5
5694
cat > conftest.$ac_ext <<EOF
5695
#line 5696 "configure"
5696
#include "confdefs.h"
5701
WINDOW w; w._maxy = 0;
5704
if { (eval echo configure:5705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5708
echo "configure: failed program was:" >&5
5709
cat conftest.$ac_ext >&5
5712
cat >> confdefs.h <<EOF
5713
#define CURSES_MAXY $CURSES_MAXY
5717
echo "$ac_t""$CURSES_MAXY" 1>&6
5719
echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
5720
echo "configure:5721: checking for initscr in -lncurses" >&5
5721
ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
5723
ac_save_LIBS="$LIBS"
5724
LIBS="-lncurses $LIBS"
5725
cat > conftest.$ac_ext <<EOF
5726
#line 5727 "configure"
5727
#include "confdefs.h"
5728
/* Override any gcc2 internal prototype to avoid an error. */
5729
/* We use char because int might match the return type of a gcc2
5730
builtin and then its argument prototype would still apply. */
5737
if { (eval echo configure:5738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5739
eval "ac_cv_lib_$ac_lib_var=yes"
5741
echo "configure: failed program was:" >&5
5742
cat conftest.$ac_ext >&5
5744
eval "ac_cv_lib_$ac_lib_var=no"
5747
LIBS="$ac_save_LIBS"
5749
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5750
echo "$ac_t""yes" 1>&6
5753
echo "$ac_t""no" 1>&6
5755
echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
5756
echo "configure:5757: checking for initscr in -lcurses" >&5
5757
ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
5759
ac_save_LIBS="$LIBS"
5760
LIBS="-lcurses $LIBS"
5761
cat > conftest.$ac_ext <<EOF
5762
#line 5763 "configure"
5763
#include "confdefs.h"
5764
/* Override any gcc2 internal prototype to avoid an error. */
5765
/* We use char because int might match the return type of a gcc2
5766
builtin and then its argument prototype would still apply. */
5773
if { (eval echo configure:5774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5775
eval "ac_cv_lib_$ac_lib_var=yes"
5777
echo "configure: failed program was:" >&5
5778
cat conftest.$ac_ext >&5
5780
eval "ac_cv_lib_$ac_lib_var=no"
5783
LIBS="$ac_save_LIBS"
5785
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5786
echo "$ac_t""yes" 1>&6
5789
echo "$ac_t""no" 1>&6
5791
{ echo "configure: error: *** Unable to locate curses library." 1>&2; exit 1; }
5801
echo $ac_n "checking for keypad in -lncurses""... $ac_c" 1>&6
5802
echo "configure:5803: checking for keypad in -lncurses" >&5
5803
ac_lib_var=`echo ncurses'_'keypad | sed 'y%./+-%__p_%'`
5805
ac_save_LIBS="$LIBS"
5806
LIBS="-lncurses $LIBS"
5807
cat > conftest.$ac_ext <<EOF
5808
#line 5809 "configure"
5809
#include "confdefs.h"
5810
/* Override any gcc2 internal prototype to avoid an error. */
5811
/* We use char because int might match the return type of a gcc2
5812
builtin and then its argument prototype would still apply. */
5819
if { (eval echo configure:5820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5821
eval "ac_cv_lib_$ac_lib_var=yes"
5823
echo "configure: failed program was:" >&5
5824
cat conftest.$ac_ext >&5
5826
eval "ac_cv_lib_$ac_lib_var=no"
5829
LIBS="$ac_save_LIBS"
5831
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5832
echo "$ac_t""yes" 1>&6
5833
cat >> confdefs.h <<\EOF
5834
#define HAVE_KEYPAD 1
5838
echo "$ac_t""no" 1>&6
5840
echo $ac_n "checking for keypad in -lcurses""... $ac_c" 1>&6
5841
echo "configure:5842: checking for keypad in -lcurses" >&5
5842
ac_lib_var=`echo curses'_'keypad | sed 'y%./+-%__p_%'`
5844
ac_save_LIBS="$LIBS"
5845
LIBS="-lcurses $LIBS"
5846
cat > conftest.$ac_ext <<EOF
5847
#line 5848 "configure"
5848
#include "confdefs.h"
5849
/* Override any gcc2 internal prototype to avoid an error. */
5850
/* We use char because int might match the return type of a gcc2
5851
builtin and then its argument prototype would still apply. */
5858
if { (eval echo configure:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5860
eval "ac_cv_lib_$ac_lib_var=yes"
5862
echo "configure: failed program was:" >&5
5863
cat conftest.$ac_ext >&5
5865
eval "ac_cv_lib_$ac_lib_var=no"
5868
LIBS="$ac_save_LIBS"
5870
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5871
echo "$ac_t""yes" 1>&6
5872
cat >> confdefs.h <<\EOF
5873
#define HAVE_KEYPAD 1
5877
echo "$ac_t""no" 1>&6
5887
echo $ac_n "checking for gtty in -lcompat""... $ac_c" 1>&6
5888
echo "configure:5889: checking for gtty in -lcompat" >&5
5889
ac_lib_var=`echo compat'_'gtty | sed 'y%./+-%__p_%'`
5891
ac_save_LIBS="$LIBS"
5892
LIBS="-lcompat $LIBS"
5893
cat > conftest.$ac_ext <<EOF
5894
#line 5895 "configure"
5895
#include "confdefs.h"
5896
/* Override any gcc2 internal prototype to avoid an error. */
5897
/* We use char because int might match the return type of a gcc2
5898
builtin and then its argument prototype would still apply. */
5905
if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5907
eval "ac_cv_lib_$ac_lib_var=yes"
5909
echo "configure: failed program was:" >&5
5910
cat conftest.$ac_ext >&5
5912
eval "ac_cv_lib_$ac_lib_var=no"
5915
LIBS="$ac_save_LIBS"
5917
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5918
echo "$ac_t""yes" 1>&6
5921
echo "$ac_t""no" 1>&6
5923
echo $ac_n "checking for gtty in -lbsd-compat""... $ac_c" 1>&6
5924
echo "configure:5925: checking for gtty in -lbsd-compat" >&5
5925
ac_lib_var=`echo bsd-compat'_'gtty | sed 'y%./+-%__p_%'`
5927
ac_save_LIBS="$LIBS"
5928
LIBS="-lbsd-compat $LIBS"
5929
cat > conftest.$ac_ext <<EOF
5930
#line 5931 "configure"
5931
#include "confdefs.h"
5932
/* Override any gcc2 internal prototype to avoid an error. */
5933
/* We use char because int might match the return type of a gcc2
5934
builtin and then its argument prototype would still apply. */
5941
if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5943
eval "ac_cv_lib_$ac_lib_var=yes"
5945
echo "configure: failed program was:" >&5
5946
cat conftest.$ac_ext >&5
5948
eval "ac_cv_lib_$ac_lib_var=no"
5951
LIBS="$ac_save_LIBS"
5953
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5954
echo "$ac_t""yes" 1>&6
5955
COMPATLIB=-lbsd-compat
5957
echo "$ac_t""no" 1>&6
5959
echo $ac_n "checking for gtty in -lbsd""... $ac_c" 1>&6
5960
echo "configure:5961: checking for gtty in -lbsd" >&5
5961
ac_lib_var=`echo bsd'_'gtty | sed 'y%./+-%__p_%'`
5963
ac_save_LIBS="$LIBS"
5965
cat > conftest.$ac_ext <<EOF
5966
#line 5967 "configure"
5967
#include "confdefs.h"
5968
/* Override any gcc2 internal prototype to avoid an error. */
5969
/* We use char because int might match the return type of a gcc2
5970
builtin and then its argument prototype would still apply. */
5977
if { (eval echo configure:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5979
eval "ac_cv_lib_$ac_lib_var=yes"
5981
echo "configure: failed program was:" >&5
5982
cat conftest.$ac_ext >&5
5984
eval "ac_cv_lib_$ac_lib_var=no"
5987
LIBS="$ac_save_LIBS"
5989
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5990
echo "$ac_t""yes" 1>&6
5993
echo "$ac_t""no" 1>&6
6005
# Note that some systems (FreeBSD for example) need an extra library for
6007
ac_save_libs="$LIBS"
6010
echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
6011
echo "configure:6012: checking for library containing cuserid" >&5
6013
ac_func_search_save_LIBS="$LIBS"
6014
ac_cv_search_cuserid="no"
6015
cat > conftest.$ac_ext <<EOF
6016
#line 6017 "configure"
6017
#include "confdefs.h"
6018
/* Override any gcc2 internal prototype to avoid an error. */
6019
/* We use char because int might match the return type of a gcc2
6020
builtin and then its argument prototype would still apply. */
6027
if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6029
ac_cv_search_cuserid="none required"
6031
echo "configure: failed program was:" >&5
6032
cat conftest.$ac_ext >&5
6035
test "$ac_cv_search_cuserid" = "no" && for i in compat; do
6036
LIBS="-l$i $ac_func_search_save_LIBS"
6037
cat > conftest.$ac_ext <<EOF
6038
#line 6039 "configure"
6039
#include "confdefs.h"
6040
/* Override any gcc2 internal prototype to avoid an error. */
6041
/* We use char because int might match the return type of a gcc2
6042
builtin and then its argument prototype would still apply. */
6049
if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6051
ac_cv_search_cuserid="-l$i"
6054
echo "configure: failed program was:" >&5
6055
cat conftest.$ac_ext >&5
6059
LIBS="$ac_func_search_save_LIBS"
6061
echo "$ac_t""$ac_cv_search_cuserid" 1>&6
6062
if test "$ac_cv_search_cuserid" != "no"; then
6063
test "$ac_cv_search_cuserid" = "none required" || LIBS="$ac_cv_search_cuserid $LIBS"
6068
DBMIEXTRALIB="$LIBS"
6069
LIBS="$ac_save_libs"
6072
# Note: -lxdr -liberty -lws2_32 is for MinGW
6074
echo $ac_n "checking for xdrmem_create""... $ac_c" 1>&6
6075
echo "configure:6076: checking for xdrmem_create" >&5
6077
cat > conftest.$ac_ext <<EOF
6078
#line 6079 "configure"
6079
#include "confdefs.h"
6080
/* System header to define __stub macros and hopefully few prototypes,
6081
which can conflict with char xdrmem_create(); below. */
6083
/* Override any gcc2 internal prototype to avoid an error. */
6084
/* We use char because int might match the return type of a gcc2
6085
builtin and then its argument prototype would still apply. */
6086
char xdrmem_create();
6090
/* The GNU C library defines this for functions which it implements
6091
to always fail with ENOSYS. Some functions are actually named
6092
something starting with __ and the normal name is an alias. */
6093
#if defined (__stub_xdrmem_create) || defined (__stub___xdrmem_create)
6101
if { (eval echo configure:6102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6103
eval "ac_cv_func_xdrmem_create=yes"
6105
echo "configure: failed program was:" >&5
6106
cat conftest.$ac_ext >&5
6108
eval "ac_cv_func_xdrmem_create=no"
6112
if eval "test \"`echo '$ac_cv_func_'xdrmem_create`\" = yes"; then
6113
echo "$ac_t""yes" 1>&6
6116
echo "$ac_t""no" 1>&6
6118
echo $ac_n "checking for xdrmem_create in -lsun""... $ac_c" 1>&6
6119
echo "configure:6120: checking for xdrmem_create in -lsun" >&5
6120
ac_lib_var=`echo sun'_'xdrmem_create | sed 'y%./+-%__p_%'`
6122
ac_save_LIBS="$LIBS"
6124
cat > conftest.$ac_ext <<EOF
6125
#line 6126 "configure"
6126
#include "confdefs.h"
6127
/* Override any gcc2 internal prototype to avoid an error. */
6128
/* We use char because int might match the return type of a gcc2
6129
builtin and then its argument prototype would still apply. */
6130
char xdrmem_create();
6136
if { (eval echo configure:6137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6138
eval "ac_cv_lib_$ac_lib_var=yes"
6140
echo "configure: failed program was:" >&5
6141
cat conftest.$ac_ext >&5
6143
eval "ac_cv_lib_$ac_lib_var=no"
6146
LIBS="$ac_save_LIBS"
6148
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6149
echo "$ac_t""yes" 1>&6
6152
echo "$ac_t""no" 1>&6
6154
echo $ac_n "checking for xdrmem_create in -lnsl""... $ac_c" 1>&6
6155
echo "configure:6156: checking for xdrmem_create in -lnsl" >&5
6156
ac_lib_var=`echo nsl'_'xdrmem_create | sed 'y%./+-%__p_%'`
6158
ac_save_LIBS="$LIBS"
6160
cat > conftest.$ac_ext <<EOF
6161
#line 6162 "configure"
6162
#include "confdefs.h"
6163
/* Override any gcc2 internal prototype to avoid an error. */
6164
/* We use char because int might match the return type of a gcc2
6165
builtin and then its argument prototype would still apply. */
6166
char xdrmem_create();
6172
if { (eval echo configure:6173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6174
eval "ac_cv_lib_$ac_lib_var=yes"
6176
echo "configure: failed program was:" >&5
6177
cat conftest.$ac_ext >&5
6179
eval "ac_cv_lib_$ac_lib_var=no"
6182
LIBS="$ac_save_LIBS"
6184
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6185
echo "$ac_t""yes" 1>&6
6188
echo "$ac_t""no" 1>&6
6190
echo $ac_n "checking for xdrmem_create in -lrpclib""... $ac_c" 1>&6
6191
echo "configure:6192: checking for xdrmem_create in -lrpclib" >&5
6192
ac_lib_var=`echo rpclib'_'xdrmem_create | sed 'y%./+-%__p_%'`
6194
ac_save_LIBS="$LIBS"
6195
LIBS="-lrpclib $LIBS"
6196
cat > conftest.$ac_ext <<EOF
6197
#line 6198 "configure"
6198
#include "confdefs.h"
6199
/* Override any gcc2 internal prototype to avoid an error. */
6200
/* We use char because int might match the return type of a gcc2
6201
builtin and then its argument prototype would still apply. */
6202
char xdrmem_create();
6208
if { (eval echo configure:6209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6210
eval "ac_cv_lib_$ac_lib_var=yes"
6212
echo "configure: failed program was:" >&5
6213
cat conftest.$ac_ext >&5
6215
eval "ac_cv_lib_$ac_lib_var=no"
6218
LIBS="$ac_save_LIBS"
6220
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6221
echo "$ac_t""yes" 1>&6
6224
echo "$ac_t""no" 1>&6
6226
echo $ac_n "checking for xdrmem_create in -lxdr""... $ac_c" 1>&6
6227
echo "configure:6228: checking for xdrmem_create in -lxdr" >&5
6228
ac_lib_var=`echo xdr'_'xdrmem_create | sed 'y%./+-%__p_%'`
6230
ac_save_LIBS="$LIBS"
6231
LIBS="-lxdr -liberty -lws2_32 $LIBS"
6232
cat > conftest.$ac_ext <<EOF
6233
#line 6234 "configure"
6234
#include "confdefs.h"
6235
/* Override any gcc2 internal prototype to avoid an error. */
6236
/* We use char because int might match the return type of a gcc2
6237
builtin and then its argument prototype would still apply. */
6238
char xdrmem_create();
6244
if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6246
eval "ac_cv_lib_$ac_lib_var=yes"
6248
echo "configure: failed program was:" >&5
6249
cat conftest.$ac_ext >&5
6251
eval "ac_cv_lib_$ac_lib_var=no"
6254
LIBS="$ac_save_LIBS"
6256
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6257
echo "$ac_t""yes" 1>&6
6258
XDRLIB="-lxdr -liberty -lws2_32"
6260
echo "$ac_t""no" 1>&6
6261
{ echo "configure: error: *** Unable to locate XDR functions." 1>&2; exit 1; }
6275
for ac_func in asprintf
6277
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6278
echo "configure:6279: checking for $ac_func" >&5
6280
cat > conftest.$ac_ext <<EOF
6281
#line 6282 "configure"
6282
#include "confdefs.h"
6283
/* System header to define __stub macros and hopefully few prototypes,
6284
which can conflict with char $ac_func(); below. */
6286
/* Override any gcc2 internal prototype to avoid an error. */
6287
/* We use char because int might match the return type of a gcc2
6288
builtin and then its argument prototype would still apply. */
6293
/* The GNU C library defines this for functions which it implements
6294
to always fail with ENOSYS. Some functions are actually named
6295
something starting with __ and the normal name is an alias. */
6296
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6304
if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6306
eval "ac_cv_func_$ac_func=yes"
6308
echo "configure: failed program was:" >&5
6309
cat conftest.$ac_ext >&5
6311
eval "ac_cv_func_$ac_func=no"
6315
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6316
echo "$ac_t""yes" 1>&6
6317
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6318
cat >> confdefs.h <<EOF
6319
#define $ac_tr_func 1
6323
echo "$ac_t""no" 1>&6
6329
# Test if mathlib needs -lm flag or is included with libc
6330
echo $ac_n "checking for atan""... $ac_c" 1>&6
6331
echo "configure:6332: checking for atan" >&5
6333
cat > conftest.$ac_ext <<EOF
6334
#line 6335 "configure"
6335
#include "confdefs.h"
6336
/* System header to define __stub macros and hopefully few prototypes,
6337
which can conflict with char atan(); below. */
6339
/* Override any gcc2 internal prototype to avoid an error. */
6340
/* We use char because int might match the return type of a gcc2
6341
builtin and then its argument prototype would still apply. */
6346
/* The GNU C library defines this for functions which it implements
6347
to always fail with ENOSYS. Some functions are actually named
6348
something starting with __ and the normal name is an alias. */
6349
#if defined (__stub_atan) || defined (__stub___atan)
6357
if { (eval echo configure:6358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6359
eval "ac_cv_func_atan=yes"
6361
echo "configure: failed program was:" >&5
6362
cat conftest.$ac_ext >&5
6364
eval "ac_cv_func_atan=no"
6368
if eval "test \"`echo '$ac_cv_func_'atan`\" = yes"; then
6369
echo "$ac_t""yes" 1>&6
6372
echo "$ac_t""no" 1>&6
6374
echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
6375
echo "configure:6376: checking for atan in -lm" >&5
6376
ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
6378
ac_save_LIBS="$LIBS"
6380
cat > conftest.$ac_ext <<EOF
6381
#line 6382 "configure"
6382
#include "confdefs.h"
6383
/* Override any gcc2 internal prototype to avoid an error. */
6384
/* We use char because int might match the return type of a gcc2
6385
builtin and then its argument prototype would still apply. */
6392
if { (eval echo configure:6393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6394
eval "ac_cv_lib_$ac_lib_var=yes"
6396
echo "configure: failed program was:" >&5
6397
cat conftest.$ac_ext >&5
6399
eval "ac_cv_lib_$ac_lib_var=no"
6402
LIBS="$ac_save_LIBS"
6404
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6405
echo "$ac_t""yes" 1>&6
6408
echo "$ac_t""no" 1>&6
6410
{ echo "configure: error: *** Failed check for math library." 1>&2; exit 1; }
6418
echo $ac_n "checking for dlsym""... $ac_c" 1>&6
6419
echo "configure:6420: checking for dlsym" >&5
6421
cat > conftest.$ac_ext <<EOF
6422
#line 6423 "configure"
6423
#include "confdefs.h"
6424
/* System header to define __stub macros and hopefully few prototypes,
6425
which can conflict with char dlsym(); below. */
6427
/* Override any gcc2 internal prototype to avoid an error. */
6428
/* We use char because int might match the return type of a gcc2
6429
builtin and then its argument prototype would still apply. */
6434
/* The GNU C library defines this for functions which it implements
6435
to always fail with ENOSYS. Some functions are actually named
6436
something starting with __ and the normal name is an alias. */
6437
#if defined (__stub_dlsym) || defined (__stub___dlsym)
6445
if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6447
eval "ac_cv_func_dlsym=yes"
6449
echo "configure: failed program was:" >&5
6450
cat conftest.$ac_ext >&5
6452
eval "ac_cv_func_dlsym=no"
6456
if eval "test \"`echo '$ac_cv_func_'dlsym`\" = yes"; then
6457
echo "$ac_t""yes" 1>&6
6460
echo "$ac_t""no" 1>&6
6462
echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
6463
echo "configure:6464: checking for dlsym in -ldl" >&5
6464
ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
6466
ac_save_LIBS="$LIBS"
6468
cat > conftest.$ac_ext <<EOF
6469
#line 6470 "configure"
6470
#include "confdefs.h"
6471
/* Override any gcc2 internal prototype to avoid an error. */
6472
/* We use char because int might match the return type of a gcc2
6473
builtin and then its argument prototype would still apply. */
6480
if { (eval echo configure:6481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6482
eval "ac_cv_lib_$ac_lib_var=yes"
6484
echo "configure: failed program was:" >&5
6485
cat conftest.$ac_ext >&5
6487
eval "ac_cv_lib_$ac_lib_var=no"
6490
LIBS="$ac_save_LIBS"
6492
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6493
echo "$ac_t""yes" 1>&6
6496
echo "$ac_t""no" 1>&6
6506
echo $ac_n "checking for iconv""... $ac_c" 1>&6
6507
echo "configure:6508: checking for iconv" >&5
6509
cat > conftest.$ac_ext <<EOF
6510
#line 6511 "configure"
6511
#include "confdefs.h"
6512
/* System header to define __stub macros and hopefully few prototypes,
6513
which can conflict with char iconv(); below. */
6515
/* Override any gcc2 internal prototype to avoid an error. */
6516
/* We use char because int might match the return type of a gcc2
6517
builtin and then its argument prototype would still apply. */
6522
/* The GNU C library defines this for functions which it implements
6523
to always fail with ENOSYS. Some functions are actually named
6524
something starting with __ and the normal name is an alias. */
6525
#if defined (__stub_iconv) || defined (__stub___iconv)
6533
if { (eval echo configure:6534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6535
eval "ac_cv_func_iconv=yes"
6537
echo "configure: failed program was:" >&5
6538
cat conftest.$ac_ext >&5
6540
eval "ac_cv_func_iconv=no"
6544
if eval "test \"`echo '$ac_cv_func_'iconv`\" = yes"; then
6545
echo "$ac_t""yes" 1>&6
6548
echo "$ac_t""no" 1>&6
6550
echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6551
echo "configure:6552: checking for iconv in -liconv" >&5
6552
ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6554
ac_save_LIBS="$LIBS"
6555
LIBS="-liconv $LIBS"
6556
cat > conftest.$ac_ext <<EOF
6557
#line 6558 "configure"
6558
#include "confdefs.h"
6559
/* Override any gcc2 internal prototype to avoid an error. */
6560
/* We use char because int might match the return type of a gcc2
6561
builtin and then its argument prototype would still apply. */
6568
if { (eval echo configure:6569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6570
eval "ac_cv_lib_$ac_lib_var=yes"
6572
echo "configure: failed program was:" >&5
6573
cat conftest.$ac_ext >&5
6575
eval "ac_cv_lib_$ac_lib_var=no"
6578
LIBS="$ac_save_LIBS"
6580
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6581
echo "$ac_t""yes" 1>&6
6584
echo "$ac_t""no" 1>&6
6586
echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
6587
echo "configure:6588: checking for iconv in -lgiconv" >&5
6588
ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
6590
ac_save_LIBS="$LIBS"
6591
LIBS="-lgiconv $LIBS"
6592
cat > conftest.$ac_ext <<EOF
6593
#line 6594 "configure"
6594
#include "confdefs.h"
6595
/* Override any gcc2 internal prototype to avoid an error. */
6596
/* We use char because int might match the return type of a gcc2
6597
builtin and then its argument prototype would still apply. */
6604
if { (eval echo configure:6605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6606
eval "ac_cv_lib_$ac_lib_var=yes"
6608
echo "configure: failed program was:" >&5
6609
cat conftest.$ac_ext >&5
6611
eval "ac_cv_lib_$ac_lib_var=no"
6614
LIBS="$ac_save_LIBS"
6616
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6617
echo "$ac_t""yes" 1>&6
6620
echo "$ac_t""no" 1>&6
6622
echo $ac_n "checking for libiconv""... $ac_c" 1>&6
6623
echo "configure:6624: checking for libiconv" >&5
6625
cat > conftest.$ac_ext <<EOF
6626
#line 6627 "configure"
6627
#include "confdefs.h"
6628
/* System header to define __stub macros and hopefully few prototypes,
6629
which can conflict with char libiconv(); below. */
6631
/* Override any gcc2 internal prototype to avoid an error. */
6632
/* We use char because int might match the return type of a gcc2
6633
builtin and then its argument prototype would still apply. */
6638
/* The GNU C library defines this for functions which it implements
6639
to always fail with ENOSYS. Some functions are actually named
6640
something starting with __ and the normal name is an alias. */
6641
#if defined (__stub_libiconv) || defined (__stub___libiconv)
6649
if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6651
eval "ac_cv_func_libiconv=yes"
6653
echo "configure: failed program was:" >&5
6654
cat conftest.$ac_ext >&5
6656
eval "ac_cv_func_libiconv=no"
6660
if eval "test \"`echo '$ac_cv_func_'libiconv`\" = yes"; then
6661
echo "$ac_t""yes" 1>&6
6664
echo "$ac_t""no" 1>&6
6666
echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
6667
echo "configure:6668: checking for libiconv in -liconv" >&5
6668
ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
6670
ac_save_LIBS="$LIBS"
6671
LIBS="-liconv $LIBS"
6672
cat > conftest.$ac_ext <<EOF
6673
#line 6674 "configure"
6674
#include "confdefs.h"
6675
/* Override any gcc2 internal prototype to avoid an error. */
6676
/* We use char because int might match the return type of a gcc2
6677
builtin and then its argument prototype would still apply. */
6684
if { (eval echo configure:6685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6686
eval "ac_cv_lib_$ac_lib_var=yes"
6688
echo "configure: failed program was:" >&5
6689
cat conftest.$ac_ext >&5
6691
eval "ac_cv_lib_$ac_lib_var=no"
6694
LIBS="$ac_save_LIBS"
6696
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6697
echo "$ac_t""yes" 1>&6
6700
echo "$ac_t""no" 1>&6
6702
echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
6703
echo "configure:6704: checking for libiconv in -lgiconv" >&5
6704
ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
6706
ac_save_LIBS="$LIBS"
6707
LIBS="-lgiconv $LIBS"
6708
cat > conftest.$ac_ext <<EOF
6709
#line 6710 "configure"
6710
#include "confdefs.h"
6711
/* Override any gcc2 internal prototype to avoid an error. */
6712
/* We use char because int might match the return type of a gcc2
6713
builtin and then its argument prototype would still apply. */
6720
if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6722
eval "ac_cv_lib_$ac_lib_var=yes"
6724
echo "configure: failed program was:" >&5
6725
cat conftest.$ac_ext >&5
6727
eval "ac_cv_lib_$ac_lib_var=no"
6730
LIBS="$ac_save_LIBS"
6732
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6733
echo "$ac_t""yes" 1>&6
6736
echo "$ac_t""no" 1>&6
6738
echo "configure: warning: *** Unable to locate iconv() function." 1>&2
6756
echo $ac_n "checking for socket""... $ac_c" 1>&6
6757
echo "configure:6758: checking for socket" >&5
6759
cat > conftest.$ac_ext <<EOF
6760
#line 6761 "configure"
6761
#include "confdefs.h"
6762
/* System header to define __stub macros and hopefully few prototypes,
6763
which can conflict with char socket(); below. */
6765
/* Override any gcc2 internal prototype to avoid an error. */
6766
/* We use char because int might match the return type of a gcc2
6767
builtin and then its argument prototype would still apply. */
6772
/* The GNU C library defines this for functions which it implements
6773
to always fail with ENOSYS. Some functions are actually named
6774
something starting with __ and the normal name is an alias. */
6775
#if defined (__stub_socket) || defined (__stub___socket)
6783
if { (eval echo configure:6784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6785
eval "ac_cv_func_socket=yes"
6787
echo "configure: failed program was:" >&5
6788
cat conftest.$ac_ext >&5
6790
eval "ac_cv_func_socket=no"
6794
if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
6795
echo "$ac_t""yes" 1>&6
6798
echo "$ac_t""no" 1>&6
6800
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
6801
echo "configure:6802: checking for socket in -lsocket" >&5
6802
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
6804
ac_save_LIBS="$LIBS"
6805
LIBS="-lsocket $LIBS"
6806
cat > conftest.$ac_ext <<EOF
6807
#line 6808 "configure"
6808
#include "confdefs.h"
6809
/* Override any gcc2 internal prototype to avoid an error. */
6810
/* We use char because int might match the return type of a gcc2
6811
builtin and then its argument prototype would still apply. */
6818
if { (eval echo configure:6819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6820
eval "ac_cv_lib_$ac_lib_var=yes"
6822
echo "configure: failed program was:" >&5
6823
cat conftest.$ac_ext >&5
6825
eval "ac_cv_lib_$ac_lib_var=no"
6828
LIBS="$ac_save_LIBS"
6830
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6831
echo "$ac_t""yes" 1>&6
6834
echo "$ac_t""no" 1>&6
6837
echo "configure: warning: *** Unable to locate socket() function." 1>&2
6844
if test "$have_socket" = 1 ; then
6846
cat >> confdefs.h <<\EOF
6847
#define HAVE_SOCKET 1
6856
# Mandatory zlib dependency
6862
# With zlib includes directory
6865
echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
6866
echo "configure:6867: checking for location of zlib includes" >&5
6867
case "$with_zlib_includes" in
6868
y | ye | yes | n | no)
6869
{ echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
6872
echo "$ac_t""$with_zlib_includes" 1>&6
6874
if test -n "$with_zlib_includes" ; then
6875
for dir in $with_zlib_includes; do
6876
if test -d "$dir"; then
6877
ZLIBINCPATH="$ZLIBINCPATH -I$dir"
6879
{ echo "configure: error: *** zlib includes directory $dir does not exist." 1>&2; exit 1; }
6886
ac_save_cppflags="$CPPFLAGS"
6887
CPPFLAGS="$ZLIBINCPATH $CPPFLAGS"
6888
for ac_hdr in zlib.h
6890
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6891
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6892
echo "configure:6893: checking for $ac_hdr" >&5
6894
cat > conftest.$ac_ext <<EOF
6895
#line 6896 "configure"
6896
#include "confdefs.h"
6899
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6900
{ (eval echo configure:6901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6901
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6902
if test -z "$ac_err"; then
6904
eval "ac_cv_header_$ac_safe=yes"
6907
echo "configure: failed program was:" >&5
6908
cat conftest.$ac_ext >&5
6910
eval "ac_cv_header_$ac_safe=no"
6913
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6914
echo "$ac_t""yes" 1>&6
6915
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6916
cat >> confdefs.h <<EOF
6917
#define $ac_tr_hdr 1
6921
echo "$ac_t""no" 1>&6
6922
{ echo "configure: error: *** Unable to locate zlib includes." 1>&2; exit 1; }
6927
CPPFLAGS=$ac_save_cppflags
6930
# With zlib library directory
6933
echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
6934
echo "configure:6935: checking for location of zlib library" >&5
6935
case "$with_zlib_libs" in
6936
y | ye | yes | n | no)
6937
{ echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
6940
echo "$ac_t""$with_zlib_libs" 1>&6
6942
if test -n "$with_zlib_libs"; then
6943
for dir in $with_zlib_libs; do
6944
if test -d "$dir"; then
6945
ZLIBLIBPATH="$ZLIBLIBPATH -L$dir"
6947
{ echo "configure: error: *** zlib library directory $dir does not exist." 1>&2; exit 1; }
6954
ac_save_ldflags="$LDFLAGS"
6955
LDFLAGS="$ZLIBLIBPATH $LDFLAGS"
6958
echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
6959
echo "configure:6960: checking for deflate in -lz" >&5
6960
ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6962
ac_save_LIBS="$LIBS"
6964
cat > conftest.$ac_ext <<EOF
6965
#line 6966 "configure"
6966
#include "confdefs.h"
6967
/* Override any gcc2 internal prototype to avoid an error. */
6968
/* We use char because int might match the return type of a gcc2
6969
builtin and then its argument prototype would still apply. */
6976
if { (eval echo configure:6977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6978
eval "ac_cv_lib_$ac_lib_var=yes"
6980
echo "configure: failed program was:" >&5
6981
cat conftest.$ac_ext >&5
6983
eval "ac_cv_lib_$ac_lib_var=no"
6986
LIBS="$ac_save_LIBS"
6988
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6989
echo "$ac_t""yes" 1>&6
6992
echo "$ac_t""no" 1>&6
6994
LDFLAGS=${ac_save_ldflags}
6996
{ echo "configure: error: *** Unable to locate zlib library." 1>&2; exit 1; }
7003
LDFLAGS=${ac_save_ldflags}
7012
# Done checking zlib
7014
# Mandatory PROJ dependency
7020
# With PROJ includes directory
7023
echo $ac_n "checking for location of External PROJ.4 includes""... $ac_c" 1>&6
7024
echo "configure:7025: checking for location of External PROJ.4 includes" >&5
7025
case "$with_proj_includes" in
7026
y | ye | yes | n | no)
7027
{ echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
7030
echo "$ac_t""$with_proj_includes" 1>&6
7032
if test -n "$with_proj_includes" ; then
7033
for dir in $with_proj_includes; do
7034
if test -d "$dir"; then
7035
PROJINC="$PROJINC -I$dir"
7037
{ echo "configure: error: *** External PROJ.4 includes directory $dir does not exist." 1>&2; exit 1; }
7044
ac_save_cppflags="$CPPFLAGS"
7045
CPPFLAGS="$PROJINC $CPPFLAGS"
7046
for ac_hdr in proj_api.h
7048
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7049
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7050
echo "configure:7051: checking for $ac_hdr" >&5
7052
cat > conftest.$ac_ext <<EOF
7053
#line 7054 "configure"
7054
#include "confdefs.h"
7057
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7058
{ (eval echo configure:7059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7059
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7060
if test -z "$ac_err"; then
7062
eval "ac_cv_header_$ac_safe=yes"
7065
echo "configure: failed program was:" >&5
7066
cat conftest.$ac_ext >&5
7068
eval "ac_cv_header_$ac_safe=no"
7071
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7072
echo "$ac_t""yes" 1>&6
7073
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7074
cat >> confdefs.h <<EOF
7075
#define $ac_tr_hdr 1
7079
echo "$ac_t""no" 1>&6
7080
{ echo "configure: error: *** Unable to locate External PROJ.4 includes." 1>&2; exit 1; }
7085
CPPFLAGS=$ac_save_cppflags
7088
# PROJ version check
7090
if test "$cross_compiling" = yes; then
7091
echo "configure: warning: *** Cannot check PROJ.4 version (cross-compiling)." 1>&2
7094
echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
7095
echo "configure:7096: checking External PROJ.4 version" >&5
7096
ac_save_cppflags="$CPPFLAGS"
7097
CPPFLAGS="$PROJINC $CPPFLAGS"
7098
if test "$cross_compiling" = yes; then
7100
echo "$ac_t""unknown (cross-compiling)" 1>&6
7102
cat > conftest.$ac_ext <<EOF
7103
#line 7104 "configure"
7104
#include "confdefs.h"
7107
#include <proj_api.h>
7109
FILE *fp = fopen("conftestdata","w");
7110
fprintf(fp, "%d", PJ_VERSION);
7115
if { (eval echo configure:7116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7117
proj_ver=`cat conftestdata`
7118
echo "$ac_t""$proj_ver" 1>&6
7120
echo "configure: failed program was:" >&5
7121
cat conftest.$ac_ext >&5
7123
{ echo "configure: error: *** Could not determine External PROJ.4 version." 1>&2; exit 1; }
7128
CPPFLAGS=$ac_save_cppflags
7131
if test `expr "$proj_ver" \< 446` = 1 ; then
7132
{ echo "configure: error: *** PROJ.4.4.6 or later is required." 1>&2; exit 1; }
7136
# With PROJ library directory
7139
echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
7140
echo "configure:7141: checking for location of External PROJ.4 library" >&5
7141
case "$with_proj_libs" in
7142
y | ye | yes | n | no)
7143
{ echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
7146
echo "$ac_t""$with_proj_libs" 1>&6
7148
if test -n "$with_proj_libs"; then
7149
for dir in $with_proj_libs; do
7150
if test -d "$dir"; then
7151
PROJLIB="$PROJLIB -L$dir"
7153
{ echo "configure: error: *** External PROJ.4 library directory $dir does not exist." 1>&2; exit 1; }
7160
ac_save_ldflags="$LDFLAGS"
7161
LDFLAGS="$PROJLIB $LDFLAGS"
7164
echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
7165
echo "configure:7166: checking for pj_get_def in -lproj" >&5
7166
ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
7168
ac_save_LIBS="$LIBS"
7170
cat > conftest.$ac_ext <<EOF
7171
#line 7172 "configure"
7172
#include "confdefs.h"
7173
/* Override any gcc2 internal prototype to avoid an error. */
7174
/* We use char because int might match the return type of a gcc2
7175
builtin and then its argument prototype would still apply. */
7182
if { (eval echo configure:7183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7184
eval "ac_cv_lib_$ac_lib_var=yes"
7186
echo "configure: failed program was:" >&5
7187
cat conftest.$ac_ext >&5
7189
eval "ac_cv_lib_$ac_lib_var=no"
7192
LIBS="$ac_save_LIBS"
7194
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7195
echo "$ac_t""yes" 1>&6
7196
PROJLIB="$PROJLIB -lproj "
7198
echo "$ac_t""no" 1>&6
7200
LDFLAGS=${ac_save_ldflags}
7202
{ echo "configure: error: *** Unable to locate External PROJ.4 library." 1>&2; exit 1; }
7209
LDFLAGS=${ac_save_ldflags}
7212
# With PROJ share directory
7215
echo $ac_n "checking for location of External PROJ.4 data files""... $ac_c" 1>&6
7216
echo "configure:7217: checking for location of External PROJ.4 data files" >&5
7217
case "$with_proj_share" in
7218
y | ye | yes | n | no)
7219
{ echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
7222
echo "$ac_t""$with_proj_share" 1>&6
7224
if test -n "$with_proj_share" ; then
7225
if test -d "$with_proj_share"; then
7226
PROJSHARE="$with_proj_share"
7228
{ echo "configure: error: *** External PROJ.4 data directory $dir does not exist." 1>&2; exit 1; }
7232
if test -z "$PROJSHARE" ; then
7233
echo "configure: warning: *** External PROJ.4 directory not specified; default will be used" 1>&2
7234
PROJSHARE=/usr/local/share/proj
7237
# LOC_CHECK_SHARE does not work when cross compiling
7238
if test "$cross_compiling" = "yes" ; then
7239
echo $ac_n "checking for epsg""... $ac_c" 1>&6
7240
echo "configure:7241: checking for epsg" >&5
7241
echo "$ac_t""unknown (cross-compiling)" 1>&6
7245
ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
7246
echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
7247
echo "configure:7248: checking for $PROJSHARE/epsg" >&5
7249
if test "$cross_compiling" = yes; then
7250
{ echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
7252
if test -r $PROJSHARE/epsg; then
7253
eval "ac_cv_file_$ac_safe=yes"
7255
eval "ac_cv_file_$ac_safe=no"
7258
if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
7259
echo "$ac_t""yes" 1>&6
7262
echo "$ac_t""no" 1>&6
7263
echo "configure: warning: *** Unable to locate PROJ data files." 1>&2
7274
# nad2bin needs to be in path for installing datum gridshift files
7276
# Extract the first word of "nad2bin", so it can be a program name with args.
7277
set dummy nad2bin; ac_word=$2
7278
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7279
echo "configure:7280: checking for $ac_word" >&5
7283
ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a path.
7286
ac_cv_path_NAD2BIN="$NAD2BIN" # Let the user override the test with a dos path.
7289
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7291
for ac_dir in $ac_dummy; do
7292
test -z "$ac_dir" && ac_dir=.
7293
if test -f $ac_dir/$ac_word; then
7294
ac_cv_path_NAD2BIN="$ac_dir/$ac_word"
7299
test -z "$ac_cv_path_NAD2BIN" && ac_cv_path_NAD2BIN="no"
7302
NAD2BIN="$ac_cv_path_NAD2BIN"
7303
if test -n "$NAD2BIN"; then
7304
echo "$ac_t""$NAD2BIN" 1>&6
7306
echo "$ac_t""no" 1>&6
7309
if test "$NAD2BIN" = "no"; then
7310
{ echo "configure: error: *** Unable to locate nad2bin (needs to be in PATH)." 1>&2; exit 1; }
7313
# Done checking PROJ
7315
# Enable regex option
7318
echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
7319
echo "configure:7320: checking whether to use regex" >&5
7320
echo "$ac_t"""$with_regex"" 1>&6
7321
case "$with_regex" in
7323
"yes") USE_REGEX="1" ;;
7324
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
7333
if test -n "$USE_REGEX"; then
7335
# With regex includes directory
7338
echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
7339
echo "configure:7340: checking for location of regex includes" >&5
7340
case "$with_regex_includes" in
7341
y | ye | yes | n | no)
7342
{ echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
7345
echo "$ac_t""$with_regex_includes" 1>&6
7347
if test -n "$with_regex_includes" ; then
7348
for dir in $with_regex_includes; do
7349
if test -d "$dir"; then
7350
REGEXINCPATH="$REGEXINCPATH -I$dir"
7352
{ echo "configure: error: *** regex includes directory $dir does not exist." 1>&2; exit 1; }
7359
ac_save_cppflags="$CPPFLAGS"
7360
CPPFLAGS="$REGEXINCPATH $CPPFLAGS"
7361
for ac_hdr in regex.h
7363
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7364
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7365
echo "configure:7366: checking for $ac_hdr" >&5
7367
cat > conftest.$ac_ext <<EOF
7368
#line 7369 "configure"
7369
#include "confdefs.h"
7372
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7373
{ (eval echo configure:7374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7374
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7375
if test -z "$ac_err"; then
7377
eval "ac_cv_header_$ac_safe=yes"
7380
echo "configure: failed program was:" >&5
7381
cat conftest.$ac_ext >&5
7383
eval "ac_cv_header_$ac_safe=no"
7386
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7387
echo "$ac_t""yes" 1>&6
7388
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7389
cat >> confdefs.h <<EOF
7390
#define $ac_tr_hdr 1
7394
echo "$ac_t""no" 1>&6
7395
{ echo "configure: error: *** Unable to locate regex includes." 1>&2; exit 1; }
7400
CPPFLAGS=$ac_save_cppflags
7403
# With regex library directory
7406
echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
7407
echo "configure:7408: checking for location of regex library" >&5
7408
case "$with_regex_libs" in
7409
y | ye | yes | n | no)
7410
{ echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
7413
echo "$ac_t""$with_regex_libs" 1>&6
7415
if test -n "$with_regex_libs"; then
7416
for dir in $with_regex_libs; do
7417
if test -d "$dir"; then
7418
REGEXLIBPATH="$REGEXLIBPATH -L$dir"
7420
{ echo "configure: error: *** regex library directory $dir does not exist." 1>&2; exit 1; }
7427
ac_save_libs="$LIBS"
7428
ac_save_ldflags="$LDFLAGS"
7431
echo $ac_n "checking for regcomp""... $ac_c" 1>&6
7432
echo "configure:7433: checking for regcomp" >&5
7434
cat > conftest.$ac_ext <<EOF
7435
#line 7436 "configure"
7436
#include "confdefs.h"
7437
/* System header to define __stub macros and hopefully few prototypes,
7438
which can conflict with char regcomp(); below. */
7440
/* Override any gcc2 internal prototype to avoid an error. */
7441
/* We use char because int might match the return type of a gcc2
7442
builtin and then its argument prototype would still apply. */
7447
/* The GNU C library defines this for functions which it implements
7448
to always fail with ENOSYS. Some functions are actually named
7449
something starting with __ and the normal name is an alias. */
7450
#if defined (__stub_regcomp) || defined (__stub___regcomp)
7458
if { (eval echo configure:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7460
eval "ac_cv_func_regcomp=yes"
7462
echo "configure: failed program was:" >&5
7463
cat conftest.$ac_ext >&5
7465
eval "ac_cv_func_regcomp=no"
7469
if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
7470
echo "$ac_t""yes" 1>&6
7473
REGEXLIB="$REGEXLIB "
7477
echo "$ac_t""no" 1>&6
7480
ac_save_ldflags="$LDFLAGS"
7481
LDFLAGS="$REGEXLIBPATH $LDFLAGS"
7484
echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
7485
echo "configure:7486: checking for regcomp in -lregex" >&5
7486
ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
7488
ac_save_LIBS="$LIBS"
7489
LIBS="-lregex $LIBS"
7490
cat > conftest.$ac_ext <<EOF
7491
#line 7492 "configure"
7492
#include "confdefs.h"
7493
/* Override any gcc2 internal prototype to avoid an error. */
7494
/* We use char because int might match the return type of a gcc2
7495
builtin and then its argument prototype would still apply. */
7502
if { (eval echo configure:7503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7504
eval "ac_cv_lib_$ac_lib_var=yes"
7506
echo "configure: failed program was:" >&5
7507
cat conftest.$ac_ext >&5
7509
eval "ac_cv_lib_$ac_lib_var=no"
7512
LIBS="$ac_save_LIBS"
7514
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7515
echo "$ac_t""yes" 1>&6
7516
REGEXLIB="$REGEXLIB -lregex "
7518
echo "$ac_t""no" 1>&6
7520
LDFLAGS=${ac_save_ldflags}
7522
{ echo "configure: error: *** Unable to locate regex library." 1>&2; exit 1; }
7529
LDFLAGS=${ac_save_ldflags}
7535
LIBS=${ac_save_libs}
7536
LDFLAGS=${ac_save_ldflags}
7546
# Done checking regex
7548
# Enable Readline option
7551
echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
7552
echo "configure:7553: checking whether to use Readline" >&5
7553
echo "$ac_t"""$with_readline"" 1>&6
7554
case "$with_readline" in
7555
"no") USE_READLINE= ;;
7556
"yes") USE_READLINE="1" ;;
7557
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
7567
if test -n "$USE_READLINE"; then
7569
# With Readline includes directory
7572
echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
7573
echo "configure:7574: checking for location of Readline includes" >&5
7574
case "$with_readline_includes" in
7575
y | ye | yes | n | no)
7576
{ echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
7579
echo "$ac_t""$with_readline_includes" 1>&6
7581
if test -n "$with_readline_includes" ; then
7582
for dir in $with_readline_includes; do
7583
if test -d "$dir"; then
7584
READLINEINCPATH="$READLINEINCPATH -I$dir"
7586
{ echo "configure: error: *** Readline includes directory $dir does not exist." 1>&2; exit 1; }
7593
ac_save_cppflags="$CPPFLAGS"
7594
CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
7595
for ac_hdr in readline/readline.h
7597
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7598
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7599
echo "configure:7600: checking for $ac_hdr" >&5
7601
cat > conftest.$ac_ext <<EOF
7602
#line 7603 "configure"
7603
#include "confdefs.h"
7606
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7607
{ (eval echo configure:7608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7608
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7609
if test -z "$ac_err"; then
7611
eval "ac_cv_header_$ac_safe=yes"
7614
echo "configure: failed program was:" >&5
7615
cat conftest.$ac_ext >&5
7617
eval "ac_cv_header_$ac_safe=no"
7620
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7621
echo "$ac_t""yes" 1>&6
7622
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7623
cat >> confdefs.h <<EOF
7624
#define $ac_tr_hdr 1
7628
echo "$ac_t""no" 1>&6
7629
{ echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
7634
CPPFLAGS=$ac_save_cppflags
7637
ac_save_cppflags="$CPPFLAGS"
7638
CPPFLAGS="$READLINEINCPATH $CPPFLAGS"
7639
for ac_hdr in readline/history.h
7641
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7642
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7643
echo "configure:7644: checking for $ac_hdr" >&5
7645
cat > conftest.$ac_ext <<EOF
7646
#line 7647 "configure"
7647
#include "confdefs.h"
7650
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7651
{ (eval echo configure:7652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7652
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7653
if test -z "$ac_err"; then
7655
eval "ac_cv_header_$ac_safe=yes"
7658
echo "configure: failed program was:" >&5
7659
cat conftest.$ac_ext >&5
7661
eval "ac_cv_header_$ac_safe=no"
7664
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7665
echo "$ac_t""yes" 1>&6
7666
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7667
cat >> confdefs.h <<EOF
7668
#define $ac_tr_hdr 1
7672
echo "$ac_t""no" 1>&6
7673
{ echo "configure: error: *** Unable to locate Readline includes." 1>&2; exit 1; }
7678
CPPFLAGS=$ac_save_cppflags
7681
# With Readline library directory
7684
echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
7685
echo "configure:7686: checking for location of Readline library" >&5
7686
case "$with_readline_libs" in
7687
y | ye | yes | n | no)
7688
{ echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
7691
echo "$ac_t""$with_readline_libs" 1>&6
7693
if test -n "$with_readline_libs"; then
7694
for dir in $with_readline_libs; do
7695
if test -d "$dir"; then
7696
READLINELIBPATH="$READLINELIBPATH -L$dir"
7698
{ echo "configure: error: *** Readline library directory $dir does not exist." 1>&2; exit 1; }
7705
ac_save_ldflags="$LDFLAGS"
7706
LDFLAGS="$READLINELIBPATH $LDFLAGS"
7709
echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
7710
echo "configure:7711: checking for readline in -lreadline" >&5
7711
ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
7713
ac_save_LIBS="$LIBS"
7714
LIBS="-lreadline $LIBS"
7715
cat > conftest.$ac_ext <<EOF
7716
#line 7717 "configure"
7717
#include "confdefs.h"
7718
/* Override any gcc2 internal prototype to avoid an error. */
7719
/* We use char because int might match the return type of a gcc2
7720
builtin and then its argument prototype would still apply. */
7727
if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7729
eval "ac_cv_lib_$ac_lib_var=yes"
7731
echo "configure: failed program was:" >&5
7732
cat conftest.$ac_ext >&5
7734
eval "ac_cv_lib_$ac_lib_var=no"
7737
LIBS="$ac_save_LIBS"
7739
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7740
echo "$ac_t""yes" 1>&6
7741
READLINELIB="$READLINELIB -lreadline "
7743
echo "$ac_t""no" 1>&6
7745
LDFLAGS=${ac_save_ldflags}
7747
{ echo "configure: error: *** Unable to locate Readline library." 1>&2; exit 1; }
7754
LDFLAGS=${ac_save_ldflags}
7757
ac_save_ldflags="$LDFLAGS"
7758
LDFLAGS="$READLINELIBPATH $LDFLAGS"
7761
echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
7762
echo "configure:7763: checking for add_history in -lhistory" >&5
7763
ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
7765
ac_save_LIBS="$LIBS"
7766
LIBS="-lhistory $LIBS"
7767
cat > conftest.$ac_ext <<EOF
7768
#line 7769 "configure"
7769
#include "confdefs.h"
7770
/* Override any gcc2 internal prototype to avoid an error. */
7771
/* We use char because int might match the return type of a gcc2
7772
builtin and then its argument prototype would still apply. */
7779
if { (eval echo configure:7780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7781
eval "ac_cv_lib_$ac_lib_var=yes"
7783
echo "configure: failed program was:" >&5
7784
cat conftest.$ac_ext >&5
7786
eval "ac_cv_lib_$ac_lib_var=no"
7789
LIBS="$ac_save_LIBS"
7791
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7792
echo "$ac_t""yes" 1>&6
7793
HISTORYLIB="$HISTORYLIB -lhistory "
7795
echo "$ac_t""no" 1>&6
7797
LDFLAGS=${ac_save_ldflags}
7799
{ echo "configure: error: *** Unable to locate History library." 1>&2; exit 1; }
7806
LDFLAGS=${ac_save_ldflags}
7816
# Done checking Readline
7818
# Enable JPEG option
7821
echo $ac_n "checking whether to use JPEG""... $ac_c" 1>&6
7822
echo "configure:7823: checking whether to use JPEG" >&5
7823
echo "$ac_t"""$with_jpeg"" 1>&6
7824
case "$with_jpeg" in
7826
"yes") USE_JPEG="1" ;;
7827
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
7836
if test -n "$USE_JPEG"; then
7838
# With JPEG includes directory
7841
echo $ac_n "checking for location of JPEG includes""... $ac_c" 1>&6
7842
echo "configure:7843: checking for location of JPEG includes" >&5
7843
case "$with_jpeg_includes" in
7844
y | ye | yes | n | no)
7845
{ echo "configure: error: *** You must supply a directory to --with-jpeg-includes." 1>&2; exit 1; }
7848
echo "$ac_t""$with_jpeg_includes" 1>&6
7850
if test -n "$with_jpeg_includes" ; then
7851
for dir in $with_jpeg_includes; do
7852
if test -d "$dir"; then
7853
JPEGINCPATH="$JPEGINCPATH -I$dir"
7855
{ echo "configure: error: *** JPEG includes directory $dir does not exist." 1>&2; exit 1; }
7862
ac_save_cppflags="$CPPFLAGS"
7863
CPPFLAGS="$JPEGINCPATH $CPPFLAGS"
7864
for ac_hdr in jpeglib.h
7866
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7867
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7868
echo "configure:7869: checking for $ac_hdr" >&5
7870
cat > conftest.$ac_ext <<EOF
7871
#line 7872 "configure"
7872
#include "confdefs.h"
7875
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7876
{ (eval echo configure:7877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7877
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7878
if test -z "$ac_err"; then
7880
eval "ac_cv_header_$ac_safe=yes"
7883
echo "configure: failed program was:" >&5
7884
cat conftest.$ac_ext >&5
7886
eval "ac_cv_header_$ac_safe=no"
7889
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7890
echo "$ac_t""yes" 1>&6
7891
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7892
cat >> confdefs.h <<EOF
7893
#define $ac_tr_hdr 1
7897
echo "$ac_t""no" 1>&6
7898
{ echo "configure: error: *** Unable to locate JPEG includes." 1>&2; exit 1; }
7903
CPPFLAGS=$ac_save_cppflags
7906
# With JPEG library directory
7909
echo $ac_n "checking for location of JPEG library""... $ac_c" 1>&6
7910
echo "configure:7911: checking for location of JPEG library" >&5
7911
case "$with_jpeg_libs" in
7912
y | ye | yes | n | no)
7913
{ echo "configure: error: *** You must supply a directory to --with-jpeg-libs." 1>&2; exit 1; }
7916
echo "$ac_t""$with_jpeg_libs" 1>&6
7918
if test -n "$with_jpeg_libs"; then
7919
for dir in $with_jpeg_libs; do
7920
if test -d "$dir"; then
7921
JPEGLIBPATH="$JPEGLIBPATH -L$dir"
7923
{ echo "configure: error: *** JPEG library directory $dir does not exist." 1>&2; exit 1; }
7930
ac_save_ldflags="$LDFLAGS"
7931
LDFLAGS="$JPEGLIBPATH $LDFLAGS"
7936
echo $ac_n "checking for jpeg_start_compress in -ljpeg""... $ac_c" 1>&6
7937
echo "configure:7938: checking for jpeg_start_compress in -ljpeg" >&5
7938
ac_lib_var=`echo jpeg'_'jpeg_start_compress | sed 'y%./+-%__p_%'`
7940
ac_save_LIBS="$LIBS"
7942
cat > conftest.$ac_ext <<EOF
7943
#line 7944 "configure"
7944
#include "confdefs.h"
7945
/* Override any gcc2 internal prototype to avoid an error. */
7946
/* We use char because int might match the return type of a gcc2
7947
builtin and then its argument prototype would still apply. */
7948
char jpeg_start_compress();
7951
jpeg_start_compress()
7954
if { (eval echo configure:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7956
eval "ac_cv_lib_$ac_lib_var=yes"
7958
echo "configure: failed program was:" >&5
7959
cat conftest.$ac_ext >&5
7961
eval "ac_cv_lib_$ac_lib_var=no"
7964
LIBS="$ac_save_LIBS"
7966
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7967
echo "$ac_t""yes" 1>&6
7968
JPEGLIB="$JPEGLIB -ljpeg "
7970
echo "$ac_t""no" 1>&6
7972
echo $ac_n "checking for jpeg_start_compress in -ljpeg""... $ac_c" 1>&6
7973
echo "configure:7974: checking for jpeg_start_compress in -ljpeg" >&5
7974
ac_lib_var=`echo jpeg'_'jpeg_start_compress | sed 'y%./+-%__p_%'`
7976
ac_save_LIBS="$LIBS"
7977
LIBS="-ljpeg $ZLIB $LIBS"
7978
cat > conftest.$ac_ext <<EOF
7979
#line 7980 "configure"
7980
#include "confdefs.h"
7981
/* Override any gcc2 internal prototype to avoid an error. */
7982
/* We use char because int might match the return type of a gcc2
7983
builtin and then its argument prototype would still apply. */
7984
char jpeg_start_compress();
7987
jpeg_start_compress()
7990
if { (eval echo configure:7991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7992
eval "ac_cv_lib_$ac_lib_var=yes"
7994
echo "configure: failed program was:" >&5
7995
cat conftest.$ac_ext >&5
7997
eval "ac_cv_lib_$ac_lib_var=no"
8000
LIBS="$ac_save_LIBS"
8002
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8003
echo "$ac_t""yes" 1>&6
8004
JPEGLIB="$JPEGLIB -ljpeg $ZLIB"
8006
echo "$ac_t""no" 1>&6
8008
LDFLAGS=${ac_save_ldflags}
8010
{ echo "configure: error: *** Unable to locate JPEG library." 1>&2; exit 1; }
8025
LDFLAGS=${ac_save_ldflags}
8034
# Done checking JPEG
8038
echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
8039
echo "configure:8040: checking whether to use GDAL" >&5
8046
if test "`basename xx/$with_gdal`" = "gdal-config" ; then
8047
GDAL_CONFIG="$with_gdal"
8050
if test "$with_gdal" = "no" ; then
8051
echo "$ac_t""no" 1>&6
8053
echo "$ac_t""yes" 1>&6
8054
# Extract the first word of "gdal-config", so it can be a program name with args.
8055
set dummy gdal-config; ac_word=$2
8056
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8057
echo "configure:8058: checking for $ac_word" >&5
8059
case "$GDAL_CONFIG" in
8061
ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path.
8064
ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a dos path.
8067
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8069
for ac_dir in $ac_dummy; do
8070
test -z "$ac_dir" && ac_dir=.
8071
if test -f $ac_dir/$ac_word; then
8072
ac_cv_path_GDAL_CONFIG="$ac_dir/$ac_word"
8077
test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no"
8080
GDAL_CONFIG="$ac_cv_path_GDAL_CONFIG"
8081
if test -n "$GDAL_CONFIG"; then
8082
echo "$ac_t""$GDAL_CONFIG" 1>&6
8084
echo "$ac_t""no" 1>&6
8088
if test "$GDAL_CONFIG" = "no" ; then
8089
{ echo "configure: error: *** couldn't find gdal-config" 1>&2; exit 1; }
8092
if test "$GDAL_CONFIG" != "" ; then
8093
GDAL_LIBS=`"$GDAL_CONFIG" --libs`
8094
GDAL_DEP_LIBS=`"$GDAL_CONFIG" --dep-libs`
8095
GDAL_CFLAGS=`"$GDAL_CONFIG" --cflags`
8097
if test `"$GDAL_CONFIG" --ogr-enabled` = "yes" ; then
8098
cat >> confdefs.h <<\EOF
8107
ac_save_libs="$LIBS"
8108
ac_save_cflags="$CFLAGS"
8109
LIBS="$LIBS $GDAL_LIBS"
8110
CFLAGS="$CFLAGS $GDAL_CFLAGS"
8111
cat > conftest.$ac_ext <<EOF
8112
#line 8113 "configure"
8113
#include "confdefs.h"
8116
GDALOpen("foo", GA_ReadOnly);
8119
if { (eval echo configure:8120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8122
echo "configure: failed program was:" >&5
8123
cat conftest.$ac_ext >&5
8126
LIBS="$LIBS $GDAL_DEP_LIBS"
8127
cat > conftest.$ac_ext <<EOF
8128
#line 8129 "configure"
8129
#include "confdefs.h"
8132
GDALOpen("foo", GA_ReadOnly);
8135
if { (eval echo configure:8136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8137
GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
8139
echo "configure: failed program was:" >&5
8140
cat conftest.$ac_ext >&5
8143
{ echo "configure: error: *** Unable to locate GDAL library." 1>&2; exit 1; }
8150
LIBS=${ac_save_libs}
8151
CFLAGS=${ac_save_cflags}
8153
cat >> confdefs.h <<\EOF
8166
echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
8167
echo "configure:8168: checking whether to use GEOS" >&5
8173
# FIXME: "quote" $with_geos ?
8174
if test "`basename xx/$with_geos`" = "geos-config" ; then
8175
GEOS_CONFIG="$with_geos"
8178
if test "$with_geos" = "no" ; then
8179
echo "$ac_t""no" 1>&6
8181
echo "$ac_t""yes" 1>&6
8182
# Extract the first word of "geos-config", so it can be a program name with args.
8183
set dummy geos-config; ac_word=$2
8184
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8185
echo "configure:8186: checking for $ac_word" >&5
8187
case "$GEOS_CONFIG" in
8189
ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a path.
8192
ac_cv_path_GEOS_CONFIG="$GEOS_CONFIG" # Let the user override the test with a dos path.
8195
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8197
for ac_dir in $ac_dummy; do
8198
test -z "$ac_dir" && ac_dir=.
8199
if test -f $ac_dir/$ac_word; then
8200
ac_cv_path_GEOS_CONFIG="$ac_dir/$ac_word"
8205
test -z "$ac_cv_path_GEOS_CONFIG" && ac_cv_path_GEOS_CONFIG="no"
8208
GEOS_CONFIG="$ac_cv_path_GEOS_CONFIG"
8209
if test -n "$GEOS_CONFIG"; then
8210
echo "$ac_t""$GEOS_CONFIG" 1>&6
8212
echo "$ac_t""no" 1>&6
8216
if test "$GEOS_CONFIG" = "no" ; then
8217
{ echo "configure: error: *** couldn't find geos-config" 1>&2; exit 1; }
8220
if test "$GEOS_CONFIG" != "" ; then
8221
GEOS_LIBS=`"$GEOS_CONFIG" --libs`
8222
GEOS_CFLAGS=`"$GEOS_CONFIG" --cflags`
8227
ac_save_cppflags="$CPPFLAGS"
8228
CPPFLAGS="$GEOS_CFLAGS $CPPFLAGS"
8229
for ac_hdr in geos_c.h
8231
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8232
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8233
echo "configure:8234: checking for $ac_hdr" >&5
8235
cat > conftest.$ac_ext <<EOF
8236
#line 8237 "configure"
8237
#include "confdefs.h"
8240
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8241
{ (eval echo configure:8242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8242
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8243
if test -z "$ac_err"; then
8245
eval "ac_cv_header_$ac_safe=yes"
8248
echo "configure: failed program was:" >&5
8249
cat conftest.$ac_ext >&5
8251
eval "ac_cv_header_$ac_safe=no"
8254
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8255
echo "$ac_t""yes" 1>&6
8256
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8257
cat >> confdefs.h <<EOF
8258
#define $ac_tr_hdr 1
8262
echo "$ac_t""no" 1>&6
8263
{ echo "configure: error: *** Unable to locate GEOS includes." 1>&2; exit 1; }
8268
CPPFLAGS=$ac_save_cppflags
8270
if test "$MINGW32" = yes ; then
8272
ac_save_ldflags="$LDFLAGS"
8273
LDFLAGS="$GEOS_LIBS $LDFLAGS"
8276
echo $ac_n "checking for initGEOS in -lgeos_c_i""... $ac_c" 1>&6
8277
echo "configure:8278: checking for initGEOS in -lgeos_c_i" >&5
8278
ac_lib_var=`echo geos_c_i'_'initGEOS | sed 'y%./+-%__p_%'`
8280
ac_save_LIBS="$LIBS"
8281
LIBS="-lgeos_c_i $LIBS"
8282
cat > conftest.$ac_ext <<EOF
8283
#line 8284 "configure"
8284
#include "confdefs.h"
8285
/* Override any gcc2 internal prototype to avoid an error. */
8286
/* We use char because int might match the return type of a gcc2
8287
builtin and then its argument prototype would still apply. */
8294
if { (eval echo configure:8295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8296
eval "ac_cv_lib_$ac_lib_var=yes"
8298
echo "configure: failed program was:" >&5
8299
cat conftest.$ac_ext >&5
8301
eval "ac_cv_lib_$ac_lib_var=no"
8304
LIBS="$ac_save_LIBS"
8306
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8307
echo "$ac_t""yes" 1>&6
8308
GEOS_LIBS="$GEOS_LIBS -lgeos_c_i "
8310
echo "$ac_t""no" 1>&6
8312
LDFLAGS=${ac_save_ldflags}
8314
{ echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
8321
LDFLAGS=${ac_save_ldflags}
8325
ac_save_ldflags="$LDFLAGS"
8326
LDFLAGS="$GEOS_LIBS $LDFLAGS"
8329
echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
8330
echo "configure:8331: checking for initGEOS in -lgeos_c" >&5
8331
ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
8333
ac_save_LIBS="$LIBS"
8334
LIBS="-lgeos_c $LIBS"
8335
cat > conftest.$ac_ext <<EOF
8336
#line 8337 "configure"
8337
#include "confdefs.h"
8338
/* Override any gcc2 internal prototype to avoid an error. */
8339
/* We use char because int might match the return type of a gcc2
8340
builtin and then its argument prototype would still apply. */
8347
if { (eval echo configure:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8349
eval "ac_cv_lib_$ac_lib_var=yes"
8351
echo "configure: failed program was:" >&5
8352
cat conftest.$ac_ext >&5
8354
eval "ac_cv_lib_$ac_lib_var=no"
8357
LIBS="$ac_save_LIBS"
8359
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8360
echo "$ac_t""yes" 1>&6
8361
GEOS_LIBS="$GEOS_LIBS -lgeos_c "
8363
echo "$ac_t""no" 1>&6
8365
LDFLAGS=${ac_save_ldflags}
8367
{ echo "configure: error: *** Unable to locate GEOS library." 1>&2; exit 1; }
8374
LDFLAGS=${ac_save_ldflags}
8378
cat >> confdefs.h <<\EOF
8388
# Enable TIFF option
8391
echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
8392
echo "configure:8393: checking whether to use TIFF" >&5
8393
echo "$ac_t"""$with_tiff"" 1>&6
8394
case "$with_tiff" in
8396
"yes") USE_TIFF="1" ;;
8397
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
8406
if test -n "$USE_TIFF"; then
8408
# With TIFF includes directory
8411
echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
8412
echo "configure:8413: checking for location of TIFF includes" >&5
8413
case "$with_tiff_includes" in
8414
y | ye | yes | n | no)
8415
{ echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
8418
echo "$ac_t""$with_tiff_includes" 1>&6
8420
if test -n "$with_tiff_includes" ; then
8421
for dir in $with_tiff_includes; do
8422
if test -d "$dir"; then
8423
TIFF_INCLUDE_DIRS="$TIFF_INCLUDE_DIRS -I$dir"
8425
{ echo "configure: error: *** TIFF includes directory $dir does not exist." 1>&2; exit 1; }
8432
ac_save_cppflags="$CPPFLAGS"
8433
CPPFLAGS="$TIFF_INCLUDE_DIRS $CPPFLAGS"
8434
for ac_hdr in tiffio.h
8436
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8437
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8438
echo "configure:8439: checking for $ac_hdr" >&5
8440
cat > conftest.$ac_ext <<EOF
8441
#line 8442 "configure"
8442
#include "confdefs.h"
8445
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8446
{ (eval echo configure:8447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8447
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8448
if test -z "$ac_err"; then
8450
eval "ac_cv_header_$ac_safe=yes"
8453
echo "configure: failed program was:" >&5
8454
cat conftest.$ac_ext >&5
8456
eval "ac_cv_header_$ac_safe=no"
8459
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8460
echo "$ac_t""yes" 1>&6
8461
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8462
cat >> confdefs.h <<EOF
8463
#define $ac_tr_hdr 1
8467
echo "$ac_t""no" 1>&6
8468
{ echo "configure: error: *** Unable to locate TIFF includes." 1>&2; exit 1; }
8473
CPPFLAGS=$ac_save_cppflags
8476
# With TIFF library directory
8479
echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
8480
echo "configure:8481: checking for location of TIFF library" >&5
8481
case "$with_tiff_libs" in
8482
y | ye | yes | n | no)
8483
{ echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
8486
echo "$ac_t""$with_tiff_libs" 1>&6
8488
if test -n "$with_tiff_libs"; then
8489
for dir in $with_tiff_libs; do
8490
if test -d "$dir"; then
8491
TIFF_LIBRARY_DIRS="$TIFF_LIBRARY_DIRS -L$dir"
8493
{ echo "configure: error: *** TIFF library directory $dir does not exist." 1>&2; exit 1; }
8500
ac_save_ldflags="$LDFLAGS"
8501
LDFLAGS="$TIFF_LIBRARY_DIRS $LDFLAGS"
8510
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8511
echo "configure:8512: checking for TIFFOpen in -ltiff" >&5
8512
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8514
ac_save_LIBS="$LIBS"
8516
cat > conftest.$ac_ext <<EOF
8517
#line 8518 "configure"
8518
#include "confdefs.h"
8519
/* Override any gcc2 internal prototype to avoid an error. */
8520
/* We use char because int might match the return type of a gcc2
8521
builtin and then its argument prototype would still apply. */
8528
if { (eval echo configure:8529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8530
eval "ac_cv_lib_$ac_lib_var=yes"
8532
echo "configure: failed program was:" >&5
8533
cat conftest.$ac_ext >&5
8535
eval "ac_cv_lib_$ac_lib_var=no"
8538
LIBS="$ac_save_LIBS"
8540
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8541
echo "$ac_t""yes" 1>&6
8542
TIFFLIB="$TIFFLIB -ltiff "
8544
echo "$ac_t""no" 1>&6
8546
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8547
echo "configure:8548: checking for TIFFOpen in -ltiff" >&5
8548
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8550
ac_save_LIBS="$LIBS"
8551
LIBS="-ltiff $MATHLIB $LIBS"
8552
cat > conftest.$ac_ext <<EOF
8553
#line 8554 "configure"
8554
#include "confdefs.h"
8555
/* Override any gcc2 internal prototype to avoid an error. */
8556
/* We use char because int might match the return type of a gcc2
8557
builtin and then its argument prototype would still apply. */
8564
if { (eval echo configure:8565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8566
eval "ac_cv_lib_$ac_lib_var=yes"
8568
echo "configure: failed program was:" >&5
8569
cat conftest.$ac_ext >&5
8571
eval "ac_cv_lib_$ac_lib_var=no"
8574
LIBS="$ac_save_LIBS"
8576
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8577
echo "$ac_t""yes" 1>&6
8578
TIFFLIB="$TIFFLIB -ltiff $MATHLIB"
8580
echo "$ac_t""no" 1>&6
8582
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8583
echo "configure:8584: checking for TIFFOpen in -ltiff" >&5
8584
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8586
ac_save_LIBS="$LIBS"
8587
LIBS="-ltiff $ZLIB $LIBS"
8588
cat > conftest.$ac_ext <<EOF
8589
#line 8590 "configure"
8590
#include "confdefs.h"
8591
/* Override any gcc2 internal prototype to avoid an error. */
8592
/* We use char because int might match the return type of a gcc2
8593
builtin and then its argument prototype would still apply. */
8600
if { (eval echo configure:8601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8602
eval "ac_cv_lib_$ac_lib_var=yes"
8604
echo "configure: failed program was:" >&5
8605
cat conftest.$ac_ext >&5
8607
eval "ac_cv_lib_$ac_lib_var=no"
8610
LIBS="$ac_save_LIBS"
8612
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8613
echo "$ac_t""yes" 1>&6
8614
TIFFLIB="$TIFFLIB -ltiff $ZLIB"
8616
echo "$ac_t""no" 1>&6
8618
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8619
echo "configure:8620: checking for TIFFOpen in -ltiff" >&5
8620
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8622
ac_save_LIBS="$LIBS"
8623
LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
8624
cat > conftest.$ac_ext <<EOF
8625
#line 8626 "configure"
8626
#include "confdefs.h"
8627
/* Override any gcc2 internal prototype to avoid an error. */
8628
/* We use char because int might match the return type of a gcc2
8629
builtin and then its argument prototype would still apply. */
8636
if { (eval echo configure:8637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8638
eval "ac_cv_lib_$ac_lib_var=yes"
8640
echo "configure: failed program was:" >&5
8641
cat conftest.$ac_ext >&5
8643
eval "ac_cv_lib_$ac_lib_var=no"
8646
LIBS="$ac_save_LIBS"
8648
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8649
echo "$ac_t""yes" 1>&6
8650
TIFFLIB="$TIFFLIB -ltiff $ZLIB $MATHLIB"
8652
echo "$ac_t""no" 1>&6
8654
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8655
echo "configure:8656: checking for TIFFOpen in -ltiff" >&5
8656
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8658
ac_save_LIBS="$LIBS"
8659
LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $LIBS"
8660
cat > conftest.$ac_ext <<EOF
8661
#line 8662 "configure"
8662
#include "confdefs.h"
8663
/* Override any gcc2 internal prototype to avoid an error. */
8664
/* We use char because int might match the return type of a gcc2
8665
builtin and then its argument prototype would still apply. */
8672
if { (eval echo configure:8673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8674
eval "ac_cv_lib_$ac_lib_var=yes"
8676
echo "configure: failed program was:" >&5
8677
cat conftest.$ac_ext >&5
8679
eval "ac_cv_lib_$ac_lib_var=no"
8682
LIBS="$ac_save_LIBS"
8684
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8685
echo "$ac_t""yes" 1>&6
8686
TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB"
8688
echo "$ac_t""no" 1>&6
8690
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8691
echo "configure:8692: checking for TIFFOpen in -ltiff" >&5
8692
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8694
ac_save_LIBS="$LIBS"
8695
LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $MATHLIB $LIBS"
8696
cat > conftest.$ac_ext <<EOF
8697
#line 8698 "configure"
8698
#include "confdefs.h"
8699
/* Override any gcc2 internal prototype to avoid an error. */
8700
/* We use char because int might match the return type of a gcc2
8701
builtin and then its argument prototype would still apply. */
8708
if { (eval echo configure:8709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8710
eval "ac_cv_lib_$ac_lib_var=yes"
8712
echo "configure: failed program was:" >&5
8713
cat conftest.$ac_ext >&5
8715
eval "ac_cv_lib_$ac_lib_var=no"
8718
LIBS="$ac_save_LIBS"
8720
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8721
echo "$ac_t""yes" 1>&6
8722
TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB $MATHLIB"
8724
echo "$ac_t""no" 1>&6
8726
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8727
echo "configure:8728: checking for TIFFOpen in -ltiff" >&5
8728
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8730
ac_save_LIBS="$LIBS"
8731
LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $ZLIB $LIBS"
8732
cat > conftest.$ac_ext <<EOF
8733
#line 8734 "configure"
8734
#include "confdefs.h"
8735
/* Override any gcc2 internal prototype to avoid an error. */
8736
/* We use char because int might match the return type of a gcc2
8737
builtin and then its argument prototype would still apply. */
8744
if { (eval echo configure:8745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8746
eval "ac_cv_lib_$ac_lib_var=yes"
8748
echo "configure: failed program was:" >&5
8749
cat conftest.$ac_ext >&5
8751
eval "ac_cv_lib_$ac_lib_var=no"
8754
LIBS="$ac_save_LIBS"
8756
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8757
echo "$ac_t""yes" 1>&6
8758
TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB $ZLIB"
8760
echo "$ac_t""no" 1>&6
8762
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8763
echo "configure:8764: checking for TIFFOpen in -ltiff" >&5
8764
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8766
ac_save_LIBS="$LIBS"
8767
LIBS="-ltiff $JPEGLIBPATH $JPEGLIB $ZLIB $MATHLIB $LIBS"
8768
cat > conftest.$ac_ext <<EOF
8769
#line 8770 "configure"
8770
#include "confdefs.h"
8771
/* Override any gcc2 internal prototype to avoid an error. */
8772
/* We use char because int might match the return type of a gcc2
8773
builtin and then its argument prototype would still apply. */
8780
if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8782
eval "ac_cv_lib_$ac_lib_var=yes"
8784
echo "configure: failed program was:" >&5
8785
cat conftest.$ac_ext >&5
8787
eval "ac_cv_lib_$ac_lib_var=no"
8790
LIBS="$ac_save_LIBS"
8792
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8793
echo "$ac_t""yes" 1>&6
8794
TIFFLIB="$TIFFLIB -ltiff $JPEGLIBPATH $JPEGLIB $ZLIB $MATHLIB"
8796
echo "$ac_t""no" 1>&6
8798
LDFLAGS=${ac_save_ldflags}
8800
{ echo "configure: error: *** Unable to locate TIFF library." 1>&2; exit 1; }
8863
LDFLAGS=${ac_save_ldflags}
8872
# Done checking TIFF
8877
echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
8878
echo "configure:8879: checking whether to use PNG" >&5
8879
echo "$ac_t"""$with_png"" 1>&6
8882
"yes") USE_PNG="1" ;;
8883
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
8891
if test -n "$USE_PNG"; then
8893
# With PNG includes directory
8896
echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
8897
echo "configure:8898: checking for location of PNG includes" >&5
8898
case "$with_png_includes" in
8899
y | ye | yes | n | no)
8900
{ echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
8903
echo "$ac_t""$with_png_includes" 1>&6
8905
if test -n "$with_png_includes" ; then
8906
for dir in $with_png_includes; do
8907
if test -d "$dir"; then
8908
PNGINC="$PNGINC -I$dir"
8910
{ echo "configure: error: *** PNG includes directory $dir does not exist." 1>&2; exit 1; }
8917
ac_save_cppflags="$CPPFLAGS"
8918
CPPFLAGS="$PNGINC $CPPFLAGS"
8921
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8922
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8923
echo "configure:8924: checking for $ac_hdr" >&5
8925
cat > conftest.$ac_ext <<EOF
8926
#line 8927 "configure"
8927
#include "confdefs.h"
8930
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8931
{ (eval echo configure:8932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8932
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8933
if test -z "$ac_err"; then
8935
eval "ac_cv_header_$ac_safe=yes"
8938
echo "configure: failed program was:" >&5
8939
cat conftest.$ac_ext >&5
8941
eval "ac_cv_header_$ac_safe=no"
8944
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8945
echo "$ac_t""yes" 1>&6
8946
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8947
cat >> confdefs.h <<EOF
8948
#define $ac_tr_hdr 1
8952
echo "$ac_t""no" 1>&6
8953
{ echo "configure: error: *** Unable to locate PNG includes." 1>&2; exit 1; }
8958
CPPFLAGS=$ac_save_cppflags
8961
# With PNG library directory
8964
echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
8965
echo "configure:8966: checking for location of PNG library" >&5
8966
case "$with_png_libs" in
8967
y | ye | yes | n | no)
8968
{ echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
8971
echo "$ac_t""$with_png_libs" 1>&6
8973
if test -n "$with_png_libs"; then
8974
for dir in $with_png_libs; do
8975
if test -d "$dir"; then
8976
PNGLIB="$PNGLIB -L$dir"
8978
{ echo "configure: error: *** PNG library directory $dir does not exist." 1>&2; exit 1; }
8985
ac_save_ldflags="$LDFLAGS"
8986
LDFLAGS="$PNGLIB $LDFLAGS"
8989
echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8990
echo "configure:8991: checking for png_read_image in -lpng" >&5
8991
ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8993
ac_save_LIBS="$LIBS"
8994
LIBS="-lpng $ZLIB $MATHLIB $LIBS"
8995
cat > conftest.$ac_ext <<EOF
8996
#line 8997 "configure"
8997
#include "confdefs.h"
8998
/* Override any gcc2 internal prototype to avoid an error. */
8999
/* We use char because int might match the return type of a gcc2
9000
builtin and then its argument prototype would still apply. */
9001
char png_read_image();
9007
if { (eval echo configure:9008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9009
eval "ac_cv_lib_$ac_lib_var=yes"
9011
echo "configure: failed program was:" >&5
9012
cat conftest.$ac_ext >&5
9014
eval "ac_cv_lib_$ac_lib_var=no"
9017
LIBS="$ac_save_LIBS"
9019
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9020
echo "$ac_t""yes" 1>&6
9021
PNGLIB="$PNGLIB -lpng $ZLIB $MATHLIB"
9023
echo "$ac_t""no" 1>&6
9025
LDFLAGS=${ac_save_ldflags}
9027
{ echo "configure: error: *** Unable to locate PNG library." 1>&2; exit 1; }
9034
LDFLAGS=${ac_save_ldflags}
9045
# Enable PostgreSQL option
9048
echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
9049
echo "configure:9050: checking whether to use PostgreSQL" >&5
9050
echo "$ac_t"""$with_postgres"" 1>&6
9051
case "$with_postgres" in
9052
"no") USE_POSTGRES= ;;
9053
"yes") USE_POSTGRES="1" ;;
9054
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
9059
if test -n "$USE_POSTGRES"; then
9060
cat >> confdefs.h <<\EOF
9061
#define HAVE_POSTGRES 1
9070
if test -n "$USE_POSTGRES"; then
9072
# With PostgreSQL includes directory
9075
echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
9076
echo "configure:9077: checking for location of PostgreSQL includes" >&5
9077
case "$with_postgres_includes" in
9078
y | ye | yes | n | no)
9079
{ echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
9082
echo "$ac_t""$with_postgres_includes" 1>&6
9084
if test -n "$with_postgres_includes" ; then
9085
for dir in $with_postgres_includes; do
9086
if test -d "$dir"; then
9087
PQINCPATH="$PQINCPATH -I$dir"
9089
{ echo "configure: error: *** PostgreSQL includes directory $dir does not exist." 1>&2; exit 1; }
9096
ac_save_cppflags="$CPPFLAGS"
9097
CPPFLAGS="$PQINCPATH $CPPFLAGS"
9098
for ac_hdr in libpq-fe.h
9100
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9101
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9102
echo "configure:9103: checking for $ac_hdr" >&5
9104
cat > conftest.$ac_ext <<EOF
9105
#line 9106 "configure"
9106
#include "confdefs.h"
9109
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9110
{ (eval echo configure:9111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9111
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9112
if test -z "$ac_err"; then
9114
eval "ac_cv_header_$ac_safe=yes"
9117
echo "configure: failed program was:" >&5
9118
cat conftest.$ac_ext >&5
9120
eval "ac_cv_header_$ac_safe=no"
9123
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9124
echo "$ac_t""yes" 1>&6
9125
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9126
cat >> confdefs.h <<EOF
9127
#define $ac_tr_hdr 1
9131
echo "$ac_t""no" 1>&6
9132
{ echo "configure: error: *** Unable to locate PostgreSQL includes." 1>&2; exit 1; }
9137
CPPFLAGS=$ac_save_cppflags
9142
if test -n "$USE_POSTGRES"; then
9144
# With PostgreSQL library directory
9147
echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
9148
echo "configure:9149: checking for location of PostgreSQL library" >&5
9149
case "$with_postgres_libs" in
9150
y | ye | yes | n | no)
9151
{ echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
9154
echo "$ac_t""$with_postgres_libs" 1>&6
9156
if test -n "$with_postgres_libs"; then
9157
for dir in $with_postgres_libs; do
9158
if test -d "$dir"; then
9159
PQLIBPATH="$PQLIBPATH -L$dir"
9161
{ echo "configure: error: *** PostgreSQL library directory $dir does not exist." 1>&2; exit 1; }
9168
ac_save_ldflags="$LDFLAGS"
9169
LDFLAGS="$PQLIBPATH $LDFLAGS"
9176
echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
9177
echo "configure:9178: checking for PQsetdbLogin in -lpq" >&5
9178
ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
9180
ac_save_LIBS="$LIBS"
9182
cat > conftest.$ac_ext <<EOF
9183
#line 9184 "configure"
9184
#include "confdefs.h"
9185
/* Override any gcc2 internal prototype to avoid an error. */
9186
/* We use char because int might match the return type of a gcc2
9187
builtin and then its argument prototype would still apply. */
9188
char PQsetdbLogin();
9194
if { (eval echo configure:9195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9196
eval "ac_cv_lib_$ac_lib_var=yes"
9198
echo "configure: failed program was:" >&5
9199
cat conftest.$ac_ext >&5
9201
eval "ac_cv_lib_$ac_lib_var=no"
9204
LIBS="$ac_save_LIBS"
9206
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9207
echo "$ac_t""yes" 1>&6
9208
PQLIB="$PQLIB -lpq "
9210
echo "$ac_t""no" 1>&6
9212
echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
9213
echo "configure:9214: checking for PQsetdbLogin in -lpq" >&5
9214
ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
9216
ac_save_LIBS="$LIBS"
9217
LIBS="-lpq -lssl -lcrypto $LIBS"
9218
cat > conftest.$ac_ext <<EOF
9219
#line 9220 "configure"
9220
#include "confdefs.h"
9221
/* Override any gcc2 internal prototype to avoid an error. */
9222
/* We use char because int might match the return type of a gcc2
9223
builtin and then its argument prototype would still apply. */
9224
char PQsetdbLogin();
9230
if { (eval echo configure:9231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9232
eval "ac_cv_lib_$ac_lib_var=yes"
9234
echo "configure: failed program was:" >&5
9235
cat conftest.$ac_ext >&5
9237
eval "ac_cv_lib_$ac_lib_var=no"
9240
LIBS="$ac_save_LIBS"
9242
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9243
echo "$ac_t""yes" 1>&6
9244
PQLIB="$PQLIB -lpq -lssl -lcrypto"
9246
echo "$ac_t""no" 1>&6
9248
echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
9249
echo "configure:9250: checking for PQsetdbLogin in -lpq" >&5
9250
ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
9252
ac_save_LIBS="$LIBS"
9253
LIBS="-lpq -lcrypt $LIBS"
9254
cat > conftest.$ac_ext <<EOF
9255
#line 9256 "configure"
9256
#include "confdefs.h"
9257
/* Override any gcc2 internal prototype to avoid an error. */
9258
/* We use char because int might match the return type of a gcc2
9259
builtin and then its argument prototype would still apply. */
9260
char PQsetdbLogin();
9266
if { (eval echo configure:9267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9268
eval "ac_cv_lib_$ac_lib_var=yes"
9270
echo "configure: failed program was:" >&5
9271
cat conftest.$ac_ext >&5
9273
eval "ac_cv_lib_$ac_lib_var=no"
9276
LIBS="$ac_save_LIBS"
9278
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9279
echo "$ac_t""yes" 1>&6
9280
PQLIB="$PQLIB -lpq -lcrypt"
9282
echo "$ac_t""no" 1>&6
9284
echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
9285
echo "configure:9286: checking for PQsetdbLogin in -lpq" >&5
9286
ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
9288
ac_save_LIBS="$LIBS"
9289
LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
9290
cat > conftest.$ac_ext <<EOF
9291
#line 9292 "configure"
9292
#include "confdefs.h"
9293
/* Override any gcc2 internal prototype to avoid an error. */
9294
/* We use char because int might match the return type of a gcc2
9295
builtin and then its argument prototype would still apply. */
9296
char PQsetdbLogin();
9302
if { (eval echo configure:9303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9304
eval "ac_cv_lib_$ac_lib_var=yes"
9306
echo "configure: failed program was:" >&5
9307
cat conftest.$ac_ext >&5
9309
eval "ac_cv_lib_$ac_lib_var=no"
9312
LIBS="$ac_save_LIBS"
9314
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9315
echo "$ac_t""yes" 1>&6
9316
PQLIB="$PQLIB -lpq -lcrypt -lssl -lcrypto"
9318
echo "$ac_t""no" 1>&6
9320
LDFLAGS=${ac_save_ldflags}
9322
{ echo "configure: error: *** Unable to locate PostgreSQL library." 1>&2; exit 1; }
9353
LDFLAGS=${ac_save_ldflags}
9356
ac_save_ldflags="$LDFLAGS"
9357
LDFLAGS="$LDFLAGS $PQLIBPATH"
9358
echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
9359
echo "configure:9360: checking for PQcmdTuples in -lpq" >&5
9360
ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
9362
ac_save_LIBS="$LIBS"
9364
cat > conftest.$ac_ext <<EOF
9365
#line 9366 "configure"
9366
#include "confdefs.h"
9367
/* Override any gcc2 internal prototype to avoid an error. */
9368
/* We use char because int might match the return type of a gcc2
9369
builtin and then its argument prototype would still apply. */
9376
if { (eval echo configure:9377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9378
eval "ac_cv_lib_$ac_lib_var=yes"
9380
echo "configure: failed program was:" >&5
9381
cat conftest.$ac_ext >&5
9383
eval "ac_cv_lib_$ac_lib_var=no"
9386
LIBS="$ac_save_LIBS"
9388
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9389
echo "$ac_t""yes" 1>&6
9390
cat >> confdefs.h <<\EOF
9391
#define HAVE_PQCMDTUPLES 1
9395
echo "$ac_t""no" 1>&6
9397
echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
9398
echo "configure:9399: checking for PQcmdTuples in -lpq" >&5
9399
ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
9401
ac_save_LIBS="$LIBS"
9402
LIBS="-lpq -lcrypt $LIBS"
9403
cat > conftest.$ac_ext <<EOF
9404
#line 9405 "configure"
9405
#include "confdefs.h"
9406
/* Override any gcc2 internal prototype to avoid an error. */
9407
/* We use char because int might match the return type of a gcc2
9408
builtin and then its argument prototype would still apply. */
9415
if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9417
eval "ac_cv_lib_$ac_lib_var=yes"
9419
echo "configure: failed program was:" >&5
9420
cat conftest.$ac_ext >&5
9422
eval "ac_cv_lib_$ac_lib_var=no"
9425
LIBS="$ac_save_LIBS"
9427
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9428
echo "$ac_t""yes" 1>&6
9429
cat >> confdefs.h <<\EOF
9430
#define HAVE_PQCMDTUPLES 1
9434
echo "$ac_t""no" 1>&6
9442
LDFLAGS="${ac_save_ldflags}"
9452
# Done checking PostgreSQL
9454
# Enable MySQL option
9457
echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
9458
echo "configure:9459: checking whether to use MySQL" >&5
9459
echo "$ac_t"""$with_mysql"" 1>&6
9460
case "$with_mysql" in
9462
"yes") USE_MYSQL="1" ;;
9463
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
9472
if test -n "$USE_MYSQL"; then
9474
# With MySQL includes directory
9477
echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
9478
echo "configure:9479: checking for location of MySQL includes" >&5
9479
case "$with_mysql_includes" in
9480
y | ye | yes | n | no)
9481
{ echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
9484
echo "$ac_t""$with_mysql_includes" 1>&6
9486
if test -n "$with_mysql_includes" ; then
9487
for dir in $with_mysql_includes; do
9488
if test -d "$dir"; then
9489
MYSQLINCPATH="$MYSQLINCPATH -I$dir"
9491
{ echo "configure: error: *** MySQL includes directory $dir does not exist." 1>&2; exit 1; }
9498
ac_save_cppflags="$CPPFLAGS"
9499
CPPFLAGS="$MYSQLINCPATH $CPPFLAGS"
9500
for ac_hdr in mysql.h
9502
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9503
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9504
echo "configure:9505: checking for $ac_hdr" >&5
9506
cat > conftest.$ac_ext <<EOF
9507
#line 9508 "configure"
9508
#include "confdefs.h"
9511
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9512
{ (eval echo configure:9513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9513
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9514
if test -z "$ac_err"; then
9516
eval "ac_cv_header_$ac_safe=yes"
9519
echo "configure: failed program was:" >&5
9520
cat conftest.$ac_ext >&5
9522
eval "ac_cv_header_$ac_safe=no"
9525
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9526
echo "$ac_t""yes" 1>&6
9527
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9528
cat >> confdefs.h <<EOF
9529
#define $ac_tr_hdr 1
9533
echo "$ac_t""no" 1>&6
9534
{ echo "configure: error: *** Unable to locate MySQL includes." 1>&2; exit 1; }
9539
CPPFLAGS=$ac_save_cppflags
9544
if test -n "$USE_MYSQL"; then
9545
# With MySQL library directory
9548
echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
9549
echo "configure:9550: checking for location of MySQL library" >&5
9550
case "$with_mysql_libs" in
9551
y | ye | yes | n | no)
9552
{ echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
9555
echo "$ac_t""$with_mysql_libs" 1>&6
9557
if test -n "$with_mysql_libs"; then
9558
for dir in $with_mysql_libs; do
9559
if test -d "$dir"; then
9560
MYSQLLIBPATH="$MYSQLLIBPATH -L$dir"
9562
{ echo "configure: error: *** MySQL library directory $dir does not exist." 1>&2; exit 1; }
9569
ac_save_ldflags="$LDFLAGS"
9570
LDFLAGS="$MYSQLLIBPATH $LDFLAGS"
9579
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9580
echo "configure:9581: checking for mysql_query in -lmysqlclient" >&5
9581
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9583
ac_save_LIBS="$LIBS"
9584
LIBS="-lmysqlclient $LIBS"
9585
cat > conftest.$ac_ext <<EOF
9586
#line 9587 "configure"
9587
#include "confdefs.h"
9588
/* Override any gcc2 internal prototype to avoid an error. */
9589
/* We use char because int might match the return type of a gcc2
9590
builtin and then its argument prototype would still apply. */
9597
if { (eval echo configure:9598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9599
eval "ac_cv_lib_$ac_lib_var=yes"
9601
echo "configure: failed program was:" >&5
9602
cat conftest.$ac_ext >&5
9604
eval "ac_cv_lib_$ac_lib_var=no"
9607
LIBS="$ac_save_LIBS"
9609
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9610
echo "$ac_t""yes" 1>&6
9611
MYSQLLIB="$MYSQLLIB -lmysqlclient "
9613
echo "$ac_t""no" 1>&6
9615
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9616
echo "configure:9617: checking for mysql_query in -lmysqlclient" >&5
9617
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9619
ac_save_LIBS="$LIBS"
9620
LIBS="-lmysqlclient $MATHLIB $LIBS"
9621
cat > conftest.$ac_ext <<EOF
9622
#line 9623 "configure"
9623
#include "confdefs.h"
9624
/* Override any gcc2 internal prototype to avoid an error. */
9625
/* We use char because int might match the return type of a gcc2
9626
builtin and then its argument prototype would still apply. */
9633
if { (eval echo configure:9634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9635
eval "ac_cv_lib_$ac_lib_var=yes"
9637
echo "configure: failed program was:" >&5
9638
cat conftest.$ac_ext >&5
9640
eval "ac_cv_lib_$ac_lib_var=no"
9643
LIBS="$ac_save_LIBS"
9645
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9646
echo "$ac_t""yes" 1>&6
9647
MYSQLLIB="$MYSQLLIB -lmysqlclient $MATHLIB"
9649
echo "$ac_t""no" 1>&6
9651
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9652
echo "configure:9653: checking for mysql_query in -lmysqlclient" >&5
9653
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9655
ac_save_LIBS="$LIBS"
9656
LIBS="-lmysqlclient $SOCKLIB $LIBS"
9657
cat > conftest.$ac_ext <<EOF
9658
#line 9659 "configure"
9659
#include "confdefs.h"
9660
/* Override any gcc2 internal prototype to avoid an error. */
9661
/* We use char because int might match the return type of a gcc2
9662
builtin and then its argument prototype would still apply. */
9669
if { (eval echo configure:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9671
eval "ac_cv_lib_$ac_lib_var=yes"
9673
echo "configure: failed program was:" >&5
9674
cat conftest.$ac_ext >&5
9676
eval "ac_cv_lib_$ac_lib_var=no"
9679
LIBS="$ac_save_LIBS"
9681
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9682
echo "$ac_t""yes" 1>&6
9683
MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB"
9685
echo "$ac_t""no" 1>&6
9687
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9688
echo "configure:9689: checking for mysql_query in -lmysqlclient" >&5
9689
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9691
ac_save_LIBS="$LIBS"
9692
LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
9693
cat > conftest.$ac_ext <<EOF
9694
#line 9695 "configure"
9695
#include "confdefs.h"
9696
/* Override any gcc2 internal prototype to avoid an error. */
9697
/* We use char because int might match the return type of a gcc2
9698
builtin and then its argument prototype would still apply. */
9705
if { (eval echo configure:9706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9707
eval "ac_cv_lib_$ac_lib_var=yes"
9709
echo "configure: failed program was:" >&5
9710
cat conftest.$ac_ext >&5
9712
eval "ac_cv_lib_$ac_lib_var=no"
9715
LIBS="$ac_save_LIBS"
9717
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9718
echo "$ac_t""yes" 1>&6
9719
MYSQLLIB="$MYSQLLIB -lmysqlclient $SOCKLIB $MATHLIB"
9721
echo "$ac_t""no" 1>&6
9723
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9724
echo "configure:9725: checking for mysql_query in -lmysqlclient" >&5
9725
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9727
ac_save_LIBS="$LIBS"
9728
LIBS="-lmysqlclient $ZLIB $LIBS"
9729
cat > conftest.$ac_ext <<EOF
9730
#line 9731 "configure"
9731
#include "confdefs.h"
9732
/* Override any gcc2 internal prototype to avoid an error. */
9733
/* We use char because int might match the return type of a gcc2
9734
builtin and then its argument prototype would still apply. */
9741
if { (eval echo configure:9742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9743
eval "ac_cv_lib_$ac_lib_var=yes"
9745
echo "configure: failed program was:" >&5
9746
cat conftest.$ac_ext >&5
9748
eval "ac_cv_lib_$ac_lib_var=no"
9751
LIBS="$ac_save_LIBS"
9753
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9754
echo "$ac_t""yes" 1>&6
9755
MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB"
9757
echo "$ac_t""no" 1>&6
9759
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9760
echo "configure:9761: checking for mysql_query in -lmysqlclient" >&5
9761
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9763
ac_save_LIBS="$LIBS"
9764
LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
9765
cat > conftest.$ac_ext <<EOF
9766
#line 9767 "configure"
9767
#include "confdefs.h"
9768
/* Override any gcc2 internal prototype to avoid an error. */
9769
/* We use char because int might match the return type of a gcc2
9770
builtin and then its argument prototype would still apply. */
9777
if { (eval echo configure:9778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9779
eval "ac_cv_lib_$ac_lib_var=yes"
9781
echo "configure: failed program was:" >&5
9782
cat conftest.$ac_ext >&5
9784
eval "ac_cv_lib_$ac_lib_var=no"
9787
LIBS="$ac_save_LIBS"
9789
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9790
echo "$ac_t""yes" 1>&6
9791
MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $MATHLIB"
9793
echo "$ac_t""no" 1>&6
9795
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9796
echo "configure:9797: checking for mysql_query in -lmysqlclient" >&5
9797
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9799
ac_save_LIBS="$LIBS"
9800
LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
9801
cat > conftest.$ac_ext <<EOF
9802
#line 9803 "configure"
9803
#include "confdefs.h"
9804
/* Override any gcc2 internal prototype to avoid an error. */
9805
/* We use char because int might match the return type of a gcc2
9806
builtin and then its argument prototype would still apply. */
9813
if { (eval echo configure:9814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9815
eval "ac_cv_lib_$ac_lib_var=yes"
9817
echo "configure: failed program was:" >&5
9818
cat conftest.$ac_ext >&5
9820
eval "ac_cv_lib_$ac_lib_var=no"
9823
LIBS="$ac_save_LIBS"
9825
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9826
echo "$ac_t""yes" 1>&6
9827
MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB"
9829
echo "$ac_t""no" 1>&6
9831
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9832
echo "configure:9833: checking for mysql_query in -lmysqlclient" >&5
9833
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9835
ac_save_LIBS="$LIBS"
9836
LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
9837
cat > conftest.$ac_ext <<EOF
9838
#line 9839 "configure"
9839
#include "confdefs.h"
9840
/* Override any gcc2 internal prototype to avoid an error. */
9841
/* We use char because int might match the return type of a gcc2
9842
builtin and then its argument prototype would still apply. */
9849
if { (eval echo configure:9850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9851
eval "ac_cv_lib_$ac_lib_var=yes"
9853
echo "configure: failed program was:" >&5
9854
cat conftest.$ac_ext >&5
9856
eval "ac_cv_lib_$ac_lib_var=no"
9859
LIBS="$ac_save_LIBS"
9861
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9862
echo "$ac_t""yes" 1>&6
9863
MYSQLLIB="$MYSQLLIB -lmysqlclient $ZLIB $SOCKLIB $MATHLIB"
9865
echo "$ac_t""no" 1>&6
9867
LDFLAGS=${ac_save_ldflags}
9869
{ echo "configure: error: *** Unable to locate MySQL library." 1>&2; exit 1; }
9932
LDFLAGS=${ac_save_ldflags}
9935
# Check for libmysqld (for embeded version of the driver)
9936
# Extract the first word of "mysql_config", so it can be a program name with args.
9937
set dummy mysql_config; ac_word=$2
9938
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9939
echo "configure:9940: checking for $ac_word" >&5
9941
case "$MYSQLD_CONFIG" in
9943
ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a path.
9946
ac_cv_path_MYSQLD_CONFIG="$MYSQLD_CONFIG" # Let the user override the test with a dos path.
9949
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9951
for ac_dir in $ac_dummy; do
9952
test -z "$ac_dir" && ac_dir=.
9953
if test -f $ac_dir/$ac_word; then
9954
ac_cv_path_MYSQLD_CONFIG="$ac_dir/$ac_word"
9959
test -z "$ac_cv_path_MYSQLD_CONFIG" && ac_cv_path_MYSQLD_CONFIG="no"
9962
MYSQLD_CONFIG="$ac_cv_path_MYSQLD_CONFIG"
9963
if test -n "$MYSQLD_CONFIG"; then
9964
echo "$ac_t""$MYSQLD_CONFIG" 1>&6
9966
echo "$ac_t""no" 1>&6
9970
if test "$MYSQLD_CONFIG" = "no" ; then
9971
{ echo "configure: error: *** couldn't find mysql_config" 1>&2; exit 1; }
9974
if test "$MYSQLD_CONFIG" != "" ; then
9975
ac_save_libs="$LIBS"
9976
MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
9978
LIBS="$MYSQLDLIB $LIBS"
9979
echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
9980
echo "configure:9981: checking for mysql_server_init" >&5
9982
cat > conftest.$ac_ext <<EOF
9983
#line 9984 "configure"
9984
#include "confdefs.h"
9985
/* System header to define __stub macros and hopefully few prototypes,
9986
which can conflict with char mysql_server_init(); below. */
9988
/* Override any gcc2 internal prototype to avoid an error. */
9989
/* We use char because int might match the return type of a gcc2
9990
builtin and then its argument prototype would still apply. */
9991
char mysql_server_init();
9995
/* The GNU C library defines this for functions which it implements
9996
to always fail with ENOSYS. Some functions are actually named
9997
something starting with __ and the normal name is an alias. */
9998
#if defined (__stub_mysql_server_init) || defined (__stub___mysql_server_init)
10001
mysql_server_init();
10006
if { (eval echo configure:10007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10008
eval "ac_cv_func_mysql_server_init=yes"
10010
echo "configure: failed program was:" >&5
10011
cat conftest.$ac_ext >&5
10013
eval "ac_cv_func_mysql_server_init=no"
10017
if eval "test \"`echo '$ac_cv_func_'mysql_server_init`\" = yes"; then
10018
echo "$ac_t""yes" 1>&6
10021
echo "$ac_t""no" 1>&6
10023
echo "configure: warning: libmysqld not found" 1>&2
10038
# Done checking MySQL
10040
# Enable SQLite option
10043
echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
10044
echo "configure:10045: checking whether to use SQLite" >&5
10045
echo "$ac_t"""$with_sqlite"" 1>&6
10046
case "$with_sqlite" in
10047
"no") USE_SQLITE= ;;
10048
"yes") USE_SQLITE="1" ;;
10049
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
10058
if test -n "$USE_SQLITE"; then
10060
# With SQLite includes directory
10063
echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
10064
echo "configure:10065: checking for location of SQLite includes" >&5
10065
case "$with_sqlite_includes" in
10066
y | ye | yes | n | no)
10067
{ echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
10070
echo "$ac_t""$with_sqlite_includes" 1>&6
10072
if test -n "$with_sqlite_includes" ; then
10073
for dir in $with_sqlite_includes; do
10074
if test -d "$dir"; then
10075
SQLITEINCPATH="$SQLITEINCPATH -I$dir"
10077
{ echo "configure: error: *** SQLite includes directory $dir does not exist." 1>&2; exit 1; }
10084
ac_save_cppflags="$CPPFLAGS"
10085
CPPFLAGS="$SQLITEINCPATH $CPPFLAGS"
10086
for ac_hdr in sqlite3.h
10088
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10089
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10090
echo "configure:10091: checking for $ac_hdr" >&5
10092
cat > conftest.$ac_ext <<EOF
10093
#line 10094 "configure"
10094
#include "confdefs.h"
10097
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10098
{ (eval echo configure:10099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10099
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10100
if test -z "$ac_err"; then
10102
eval "ac_cv_header_$ac_safe=yes"
10105
echo "configure: failed program was:" >&5
10106
cat conftest.$ac_ext >&5
10108
eval "ac_cv_header_$ac_safe=no"
10111
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10112
echo "$ac_t""yes" 1>&6
10113
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10114
cat >> confdefs.h <<EOF
10115
#define $ac_tr_hdr 1
10119
echo "$ac_t""no" 1>&6
10120
{ echo "configure: error: *** Unable to locate SQLite includes." 1>&2; exit 1; }
10125
CPPFLAGS=$ac_save_cppflags
10128
cat >> confdefs.h <<\EOF
10129
#define HAVE_SQLITE 1
10135
if test -n "$USE_SQLITE"; then
10137
# With SQLite library directory
10140
echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
10141
echo "configure:10142: checking for location of SQLite library" >&5
10142
case "$with_sqlite_libs" in
10143
y | ye | yes | n | no)
10144
{ echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
10147
echo "$ac_t""$with_sqlite_libs" 1>&6
10149
if test -n "$with_sqlite_libs"; then
10150
for dir in $with_sqlite_libs; do
10151
if test -d "$dir"; then
10152
SQLITELIBPATH="$SQLITELIBPATH -L$dir"
10154
{ echo "configure: error: *** SQLite library directory $dir does not exist." 1>&2; exit 1; }
10161
ac_save_ldflags="$LDFLAGS"
10162
LDFLAGS="$SQLITELIBPATH $LDFLAGS"
10169
echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
10170
echo "configure:10171: checking for sqlite3_open in -lsqlite3" >&5
10171
ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
10173
ac_save_LIBS="$LIBS"
10174
LIBS="-lsqlite3 $LIBS"
10175
cat > conftest.$ac_ext <<EOF
10176
#line 10177 "configure"
10177
#include "confdefs.h"
10178
/* Override any gcc2 internal prototype to avoid an error. */
10179
/* We use char because int might match the return type of a gcc2
10180
builtin and then its argument prototype would still apply. */
10181
char sqlite3_open();
10187
if { (eval echo configure:10188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10189
eval "ac_cv_lib_$ac_lib_var=yes"
10191
echo "configure: failed program was:" >&5
10192
cat conftest.$ac_ext >&5
10194
eval "ac_cv_lib_$ac_lib_var=no"
10197
LIBS="$ac_save_LIBS"
10199
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10200
echo "$ac_t""yes" 1>&6
10201
SQLITELIB="$SQLITELIB -lsqlite3 "
10203
echo "$ac_t""no" 1>&6
10205
echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
10206
echo "configure:10207: checking for sqlite3_open in -lsqlite3" >&5
10207
ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
10209
ac_save_LIBS="$LIBS"
10210
LIBS="-lsqlite3 $DLLIB $LIBS"
10211
cat > conftest.$ac_ext <<EOF
10212
#line 10213 "configure"
10213
#include "confdefs.h"
10214
/* Override any gcc2 internal prototype to avoid an error. */
10215
/* We use char because int might match the return type of a gcc2
10216
builtin and then its argument prototype would still apply. */
10217
char sqlite3_open();
10223
if { (eval echo configure:10224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10225
eval "ac_cv_lib_$ac_lib_var=yes"
10227
echo "configure: failed program was:" >&5
10228
cat conftest.$ac_ext >&5
10230
eval "ac_cv_lib_$ac_lib_var=no"
10233
LIBS="$ac_save_LIBS"
10235
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10236
echo "$ac_t""yes" 1>&6
10237
SQLITELIB="$SQLITELIB -lsqlite3 $DLLIB"
10239
echo "$ac_t""no" 1>&6
10241
echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
10242
echo "configure:10243: checking for sqlite3_open in -lsqlite3" >&5
10243
ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
10245
ac_save_LIBS="$LIBS"
10246
LIBS="-lsqlite3 $MATHLIB $LIBS"
10247
cat > conftest.$ac_ext <<EOF
10248
#line 10249 "configure"
10249
#include "confdefs.h"
10250
/* Override any gcc2 internal prototype to avoid an error. */
10251
/* We use char because int might match the return type of a gcc2
10252
builtin and then its argument prototype would still apply. */
10253
char sqlite3_open();
10259
if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10261
eval "ac_cv_lib_$ac_lib_var=yes"
10263
echo "configure: failed program was:" >&5
10264
cat conftest.$ac_ext >&5
10266
eval "ac_cv_lib_$ac_lib_var=no"
10269
LIBS="$ac_save_LIBS"
10271
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10272
echo "$ac_t""yes" 1>&6
10273
SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB"
10275
echo "$ac_t""no" 1>&6
10277
echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
10278
echo "configure:10279: checking for sqlite3_open in -lsqlite3" >&5
10279
ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
10281
ac_save_LIBS="$LIBS"
10282
LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
10283
cat > conftest.$ac_ext <<EOF
10284
#line 10285 "configure"
10285
#include "confdefs.h"
10286
/* Override any gcc2 internal prototype to avoid an error. */
10287
/* We use char because int might match the return type of a gcc2
10288
builtin and then its argument prototype would still apply. */
10289
char sqlite3_open();
10295
if { (eval echo configure:10296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10297
eval "ac_cv_lib_$ac_lib_var=yes"
10299
echo "configure: failed program was:" >&5
10300
cat conftest.$ac_ext >&5
10302
eval "ac_cv_lib_$ac_lib_var=no"
10305
LIBS="$ac_save_LIBS"
10307
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10308
echo "$ac_t""yes" 1>&6
10309
SQLITELIB="$SQLITELIB -lsqlite3 $MATHLIB $DLLIB"
10311
echo "$ac_t""no" 1>&6
10313
LDFLAGS=${ac_save_ldflags}
10315
{ echo "configure: error: *** Unable to locate SQLite library." 1>&2; exit 1; }
10346
LDFLAGS=${ac_save_ldflags}
10357
# Done checking SQLite
10360
# Enable FFMPEG option
10363
echo $ac_n "checking whether to use FFMPEG""... $ac_c" 1>&6
10364
echo "configure:10365: checking whether to use FFMPEG" >&5
10365
echo "$ac_t"""$with_ffmpeg"" 1>&6
10366
case "$with_ffmpeg" in
10367
"no") USE_FFMPEG= ;;
10368
"yes") USE_FFMPEG="1" ;;
10369
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
10378
if test -n "$USE_FFMPEG"; then
10380
# With FFMPEG includes directory
10383
echo $ac_n "checking for location of FFMPEG includes""... $ac_c" 1>&6
10384
echo "configure:10385: checking for location of FFMPEG includes" >&5
10385
case "$with_ffmpeg_includes" in
10386
y | ye | yes | n | no)
10387
{ echo "configure: error: *** You must supply a directory to --with-ffmpeg-includes." 1>&2; exit 1; }
10390
echo "$ac_t""$with_ffmpeg_includes" 1>&6
10392
if test -n "$with_ffmpeg_includes" ; then
10393
for dir in $with_ffmpeg_includes; do
10394
if test -d "$dir"; then
10395
FFMPEGINCPATH="$FFMPEGINCPATH -I$dir"
10397
{ echo "configure: error: *** FFMPEG includes directory $dir does not exist." 1>&2; exit 1; }
10404
ac_save_cppflags="$CPPFLAGS"
10405
CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
10406
for ac_hdr in avcodec.h
10408
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10409
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10410
echo "configure:10411: checking for $ac_hdr" >&5
10412
cat > conftest.$ac_ext <<EOF
10413
#line 10414 "configure"
10414
#include "confdefs.h"
10417
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10418
{ (eval echo configure:10419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10419
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10420
if test -z "$ac_err"; then
10422
eval "ac_cv_header_$ac_safe=yes"
10425
echo "configure: failed program was:" >&5
10426
cat conftest.$ac_ext >&5
10428
eval "ac_cv_header_$ac_safe=no"
10431
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10432
echo "$ac_t""yes" 1>&6
10433
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10434
cat >> confdefs.h <<EOF
10435
#define $ac_tr_hdr 1
10439
echo "$ac_t""no" 1>&6
10440
{ echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
10445
CPPFLAGS=$ac_save_cppflags
10448
ac_save_cppflags="$CPPFLAGS"
10449
CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
10450
for ac_hdr in avformat.h
10452
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10453
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10454
echo "configure:10455: checking for $ac_hdr" >&5
10456
cat > conftest.$ac_ext <<EOF
10457
#line 10458 "configure"
10458
#include "confdefs.h"
10461
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10462
{ (eval echo configure:10463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10463
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10464
if test -z "$ac_err"; then
10466
eval "ac_cv_header_$ac_safe=yes"
10469
echo "configure: failed program was:" >&5
10470
cat conftest.$ac_ext >&5
10472
eval "ac_cv_header_$ac_safe=no"
10475
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10476
echo "$ac_t""yes" 1>&6
10477
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10478
cat >> confdefs.h <<EOF
10479
#define $ac_tr_hdr 1
10483
echo "$ac_t""no" 1>&6
10484
{ echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
10489
CPPFLAGS=$ac_save_cppflags
10492
ac_save_cppflags="$CPPFLAGS"
10493
CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
10494
for ac_hdr in swscale.h
10496
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10497
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10498
echo "configure:10499: checking for $ac_hdr" >&5
10500
cat > conftest.$ac_ext <<EOF
10501
#line 10502 "configure"
10502
#include "confdefs.h"
10505
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10506
{ (eval echo configure:10507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10507
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10508
if test -z "$ac_err"; then
10510
eval "ac_cv_header_$ac_safe=yes"
10513
echo "configure: failed program was:" >&5
10514
cat conftest.$ac_ext >&5
10516
eval "ac_cv_header_$ac_safe=no"
10519
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10520
echo "$ac_t""yes" 1>&6
10521
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10522
cat >> confdefs.h <<EOF
10523
#define $ac_tr_hdr 1
10527
echo "$ac_t""no" 1>&6
10528
{ echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
10533
CPPFLAGS=$ac_save_cppflags
10536
cat >> confdefs.h <<\EOF
10537
#define HAVE_FFMPEG 1
10543
if test -n "$USE_FFMPEG"; then
10545
# With FFMPEG library directory
10548
echo $ac_n "checking for location of FFMPEG library""... $ac_c" 1>&6
10549
echo "configure:10550: checking for location of FFMPEG library" >&5
10550
case "$with_ffmpeg_libs" in
10551
y | ye | yes | n | no)
10552
{ echo "configure: error: *** You must supply a directory to --with-ffmpeg-libs." 1>&2; exit 1; }
10555
echo "$ac_t""$with_ffmpeg_libs" 1>&6
10557
if test -n "$with_ffmpeg_libs"; then
10558
for dir in $with_ffmpeg_libs; do
10559
if test -d "$dir"; then
10560
FFMPEGLIBPATH="$FFMPEGLIBPATH -L$dir"
10562
{ echo "configure: error: *** FFMPEG library directory $dir does not exist." 1>&2; exit 1; }
10569
ac_save_ldflags="$LDFLAGS"
10570
LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
10575
echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
10576
echo "configure:10577: checking for av_free in -lavutil" >&5
10577
ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
10579
ac_save_LIBS="$LIBS"
10580
LIBS="-lavutil $LIBS"
10581
cat > conftest.$ac_ext <<EOF
10582
#line 10583 "configure"
10583
#include "confdefs.h"
10584
/* Override any gcc2 internal prototype to avoid an error. */
10585
/* We use char because int might match the return type of a gcc2
10586
builtin and then its argument prototype would still apply. */
10593
if { (eval echo configure:10594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10595
eval "ac_cv_lib_$ac_lib_var=yes"
10597
echo "configure: failed program was:" >&5
10598
cat conftest.$ac_ext >&5
10600
eval "ac_cv_lib_$ac_lib_var=no"
10603
LIBS="$ac_save_LIBS"
10605
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10606
echo "$ac_t""yes" 1>&6
10607
FFMPEGLIB="$FFMPEGLIB -lavutil "
10609
echo "$ac_t""no" 1>&6
10611
echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
10612
echo "configure:10613: checking for av_free in -lavutil" >&5
10613
ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
10615
ac_save_LIBS="$LIBS"
10616
LIBS="-lavutil $MATHLIB $LIBS"
10617
cat > conftest.$ac_ext <<EOF
10618
#line 10619 "configure"
10619
#include "confdefs.h"
10620
/* Override any gcc2 internal prototype to avoid an error. */
10621
/* We use char because int might match the return type of a gcc2
10622
builtin and then its argument prototype would still apply. */
10629
if { (eval echo configure:10630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10631
eval "ac_cv_lib_$ac_lib_var=yes"
10633
echo "configure: failed program was:" >&5
10634
cat conftest.$ac_ext >&5
10636
eval "ac_cv_lib_$ac_lib_var=no"
10639
LIBS="$ac_save_LIBS"
10641
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10642
echo "$ac_t""yes" 1>&6
10643
FFMPEGLIB="$FFMPEGLIB -lavutil $MATHLIB"
10645
echo "$ac_t""no" 1>&6
10647
LDFLAGS=${ac_save_ldflags}
10649
{ echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
10664
LDFLAGS=${ac_save_ldflags}
10667
ac_save_ldflags="$LDFLAGS"
10668
LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
10673
echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
10674
echo "configure:10675: checking for avcodec_init in -lavcodec" >&5
10675
ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
10677
ac_save_LIBS="$LIBS"
10678
LIBS="-lavcodec $FFMPEGLIB $LIBS"
10679
cat > conftest.$ac_ext <<EOF
10680
#line 10681 "configure"
10681
#include "confdefs.h"
10682
/* Override any gcc2 internal prototype to avoid an error. */
10683
/* We use char because int might match the return type of a gcc2
10684
builtin and then its argument prototype would still apply. */
10685
char avcodec_init();
10691
if { (eval echo configure:10692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10693
eval "ac_cv_lib_$ac_lib_var=yes"
10695
echo "configure: failed program was:" >&5
10696
cat conftest.$ac_ext >&5
10698
eval "ac_cv_lib_$ac_lib_var=no"
10701
LIBS="$ac_save_LIBS"
10703
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10704
echo "$ac_t""yes" 1>&6
10705
FFMPEGLIB="$FFMPEGLIB -lavcodec "
10707
echo "$ac_t""no" 1>&6
10709
echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
10710
echo "configure:10711: checking for avcodec_init in -lavcodec" >&5
10711
ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
10713
ac_save_LIBS="$LIBS"
10714
LIBS="-lavcodec $FFMPEGLIB $MATHLIB $LIBS"
10715
cat > conftest.$ac_ext <<EOF
10716
#line 10717 "configure"
10717
#include "confdefs.h"
10718
/* Override any gcc2 internal prototype to avoid an error. */
10719
/* We use char because int might match the return type of a gcc2
10720
builtin and then its argument prototype would still apply. */
10721
char avcodec_init();
10727
if { (eval echo configure:10728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10729
eval "ac_cv_lib_$ac_lib_var=yes"
10731
echo "configure: failed program was:" >&5
10732
cat conftest.$ac_ext >&5
10734
eval "ac_cv_lib_$ac_lib_var=no"
10737
LIBS="$ac_save_LIBS"
10739
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10740
echo "$ac_t""yes" 1>&6
10741
FFMPEGLIB="$FFMPEGLIB -lavcodec $MATHLIB"
10743
echo "$ac_t""no" 1>&6
10745
LDFLAGS=${ac_save_ldflags}
10747
{ echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
10762
LDFLAGS=${ac_save_ldflags}
10765
ac_save_ldflags="$LDFLAGS"
10766
LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
10771
echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
10772
echo "configure:10773: checking for av_set_parameters in -lavformat" >&5
10773
ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
10775
ac_save_LIBS="$LIBS"
10776
LIBS="-lavformat $FFMPEGLIB $LIBS"
10777
cat > conftest.$ac_ext <<EOF
10778
#line 10779 "configure"
10779
#include "confdefs.h"
10780
/* Override any gcc2 internal prototype to avoid an error. */
10781
/* We use char because int might match the return type of a gcc2
10782
builtin and then its argument prototype would still apply. */
10783
char av_set_parameters();
10786
av_set_parameters()
10789
if { (eval echo configure:10790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10791
eval "ac_cv_lib_$ac_lib_var=yes"
10793
echo "configure: failed program was:" >&5
10794
cat conftest.$ac_ext >&5
10796
eval "ac_cv_lib_$ac_lib_var=no"
10799
LIBS="$ac_save_LIBS"
10801
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10802
echo "$ac_t""yes" 1>&6
10803
FFMPEGLIB="$FFMPEGLIB -lavformat "
10805
echo "$ac_t""no" 1>&6
10807
echo $ac_n "checking for av_set_parameters in -lavformat""... $ac_c" 1>&6
10808
echo "configure:10809: checking for av_set_parameters in -lavformat" >&5
10809
ac_lib_var=`echo avformat'_'av_set_parameters | sed 'y%./+-%__p_%'`
10811
ac_save_LIBS="$LIBS"
10812
LIBS="-lavformat $FFMPEGLIB $MATHLIB $LIBS"
10813
cat > conftest.$ac_ext <<EOF
10814
#line 10815 "configure"
10815
#include "confdefs.h"
10816
/* Override any gcc2 internal prototype to avoid an error. */
10817
/* We use char because int might match the return type of a gcc2
10818
builtin and then its argument prototype would still apply. */
10819
char av_set_parameters();
10822
av_set_parameters()
10825
if { (eval echo configure:10826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10827
eval "ac_cv_lib_$ac_lib_var=yes"
10829
echo "configure: failed program was:" >&5
10830
cat conftest.$ac_ext >&5
10832
eval "ac_cv_lib_$ac_lib_var=no"
10835
LIBS="$ac_save_LIBS"
10837
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10838
echo "$ac_t""yes" 1>&6
10839
FFMPEGLIB="$FFMPEGLIB -lavformat $MATHLIB"
10841
echo "$ac_t""no" 1>&6
10843
LDFLAGS=${ac_save_ldflags}
10845
{ echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
10860
LDFLAGS=${ac_save_ldflags}
10871
# Done checking FFMPEG
10873
# Enable OpenGL option
10883
echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
10884
echo "configure:10885: checking whether to use OpenGL" >&5
10885
echo "$ac_t"""$with_opengl"" 1>&6
10886
case "$with_opengl" in
10895
aqua|mac|osx|macosx|agl)
10900
win|windows|mswin|wgl)
10901
OPENGL_TYPE=Windows
10906
{ echo "configure: error: *** Valid arguments for --with-opengl= are yes,no,x11,aqua,windows." 1>&2; exit 1; }
10910
if test -n "$USE_OPENGL" ; then
10912
if test "$OPENGL_X11" = 1 ; then
10914
# With OpenGL includes directory
10917
echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
10918
echo "configure:10919: checking for location of OpenGL includes" >&5
10919
case "$with_opengl_includes" in
10920
y | ye | yes | n | no)
10921
{ echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
10924
echo "$ac_t""$with_opengl_includes" 1>&6
10926
if test -n "$with_opengl_includes" ; then
10927
for dir in $with_opengl_includes; do
10928
if test -d "$dir"; then
10929
OPENGLINC="$OPENGLINC -I$dir"
10931
{ echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
10938
ac_save_cppflags="$CPPFLAGS"
10939
CPPFLAGS="$OPENGLINC $X_CFLAGS $CPPFLAGS"
10940
for ac_hdr in GL/gl.h GL/glu.h
10942
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10943
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10944
echo "configure:10945: checking for $ac_hdr" >&5
10946
cat > conftest.$ac_ext <<EOF
10947
#line 10948 "configure"
10948
#include "confdefs.h"
10951
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10952
{ (eval echo configure:10953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10953
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10954
if test -z "$ac_err"; then
10956
eval "ac_cv_header_$ac_safe=yes"
10959
echo "configure: failed program was:" >&5
10960
cat conftest.$ac_ext >&5
10962
eval "ac_cv_header_$ac_safe=no"
10965
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10966
echo "$ac_t""yes" 1>&6
10967
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10968
cat >> confdefs.h <<EOF
10969
#define $ac_tr_hdr 1
10973
echo "$ac_t""no" 1>&6
10974
{ echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
10979
CPPFLAGS=$ac_save_cppflags
10982
# With OpenGL library directory
10985
echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
10986
echo "configure:10987: checking for location of OpenGL library" >&5
10987
case "$with_opengl_libs" in
10988
y | ye | yes | n | no)
10989
{ echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
10992
echo "$ac_t""$with_opengl_libs" 1>&6
10994
if test -n "$with_opengl_libs"; then
10995
for dir in $with_opengl_libs; do
10996
if test -d "$dir"; then
10997
OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
10999
{ echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
11006
ac_save_ldflags="$LDFLAGS"
11007
LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
11014
echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
11015
echo "configure:11016: checking for glBegin in -lGL" >&5
11016
ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
11018
ac_save_LIBS="$LIBS"
11019
LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
11020
cat > conftest.$ac_ext <<EOF
11021
#line 11022 "configure"
11022
#include "confdefs.h"
11023
/* Override any gcc2 internal prototype to avoid an error. */
11024
/* We use char because int might match the return type of a gcc2
11025
builtin and then its argument prototype would still apply. */
11032
if { (eval echo configure:11033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11034
eval "ac_cv_lib_$ac_lib_var=yes"
11036
echo "configure: failed program was:" >&5
11037
cat conftest.$ac_ext >&5
11039
eval "ac_cv_lib_$ac_lib_var=no"
11042
LIBS="$ac_save_LIBS"
11044
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11045
echo "$ac_t""yes" 1>&6
11046
OPENGLLIB="$OPENGLLIB -lGL "
11048
echo "$ac_t""no" 1>&6
11050
echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
11051
echo "configure:11052: checking for glBegin in -lGL" >&5
11052
ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
11054
ac_save_LIBS="$LIBS"
11055
LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
11056
cat > conftest.$ac_ext <<EOF
11057
#line 11058 "configure"
11058
#include "confdefs.h"
11059
/* Override any gcc2 internal prototype to avoid an error. */
11060
/* We use char because int might match the return type of a gcc2
11061
builtin and then its argument prototype would still apply. */
11068
if { (eval echo configure:11069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11070
eval "ac_cv_lib_$ac_lib_var=yes"
11072
echo "configure: failed program was:" >&5
11073
cat conftest.$ac_ext >&5
11075
eval "ac_cv_lib_$ac_lib_var=no"
11078
LIBS="$ac_save_LIBS"
11080
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11081
echo "$ac_t""yes" 1>&6
11082
OPENGLLIB="$OPENGLLIB -lGL -lXext"
11084
echo "$ac_t""no" 1>&6
11086
echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
11087
echo "configure:11088: checking for glBegin in -lGL" >&5
11088
ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
11090
ac_save_LIBS="$LIBS"
11091
LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
11092
cat > conftest.$ac_ext <<EOF
11093
#line 11094 "configure"
11094
#include "confdefs.h"
11095
/* Override any gcc2 internal prototype to avoid an error. */
11096
/* We use char because int might match the return type of a gcc2
11097
builtin and then its argument prototype would still apply. */
11104
if { (eval echo configure:11105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11106
eval "ac_cv_lib_$ac_lib_var=yes"
11108
echo "configure: failed program was:" >&5
11109
cat conftest.$ac_ext >&5
11111
eval "ac_cv_lib_$ac_lib_var=no"
11114
LIBS="$ac_save_LIBS"
11116
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11117
echo "$ac_t""yes" 1>&6
11118
OPENGLLIB="$OPENGLLIB -lGL -lpthread"
11120
echo "$ac_t""no" 1>&6
11122
echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
11123
echo "configure:11124: checking for glBegin in -lGL" >&5
11124
ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
11126
ac_save_LIBS="$LIBS"
11127
LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
11128
cat > conftest.$ac_ext <<EOF
11129
#line 11130 "configure"
11130
#include "confdefs.h"
11131
/* Override any gcc2 internal prototype to avoid an error. */
11132
/* We use char because int might match the return type of a gcc2
11133
builtin and then its argument prototype would still apply. */
11140
if { (eval echo configure:11141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11142
eval "ac_cv_lib_$ac_lib_var=yes"
11144
echo "configure: failed program was:" >&5
11145
cat conftest.$ac_ext >&5
11147
eval "ac_cv_lib_$ac_lib_var=no"
11150
LIBS="$ac_save_LIBS"
11152
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11153
echo "$ac_t""yes" 1>&6
11154
OPENGLLIB="$OPENGLLIB -lGL -lpthread -lXext"
11156
echo "$ac_t""no" 1>&6
11158
LDFLAGS=${ac_save_ldflags}
11160
{ echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
11191
LDFLAGS=${ac_save_ldflags}
11195
ac_save_ldflags="$LDFLAGS"
11196
LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
11201
echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
11202
echo "configure:11203: checking for gluBeginCurve in -lGLU" >&5
11203
ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
11205
ac_save_LIBS="$LIBS"
11206
LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
11207
cat > conftest.$ac_ext <<EOF
11208
#line 11209 "configure"
11209
#include "confdefs.h"
11210
/* Override any gcc2 internal prototype to avoid an error. */
11211
/* We use char because int might match the return type of a gcc2
11212
builtin and then its argument prototype would still apply. */
11213
char gluBeginCurve();
11219
if { (eval echo configure:11220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11221
eval "ac_cv_lib_$ac_lib_var=yes"
11223
echo "configure: failed program was:" >&5
11224
cat conftest.$ac_ext >&5
11226
eval "ac_cv_lib_$ac_lib_var=no"
11229
LIBS="$ac_save_LIBS"
11231
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11232
echo "$ac_t""yes" 1>&6
11233
OPENGLULIB="$OPENGLULIB -lGLU "
11235
echo "$ac_t""no" 1>&6
11237
echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
11238
echo "configure:11239: checking for gluBeginCurve in -lGLU" >&5
11239
ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
11241
ac_save_LIBS="$LIBS"
11242
LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
11243
cat > conftest.$ac_ext <<EOF
11244
#line 11245 "configure"
11245
#include "confdefs.h"
11246
/* Override any gcc2 internal prototype to avoid an error. */
11247
/* We use char because int might match the return type of a gcc2
11248
builtin and then its argument prototype would still apply. */
11249
char gluBeginCurve();
11255
if { (eval echo configure:11256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11257
eval "ac_cv_lib_$ac_lib_var=yes"
11259
echo "configure: failed program was:" >&5
11260
cat conftest.$ac_ext >&5
11262
eval "ac_cv_lib_$ac_lib_var=no"
11265
LIBS="$ac_save_LIBS"
11267
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11268
echo "$ac_t""yes" 1>&6
11269
OPENGLULIB="$OPENGLULIB -lGLU -lstdc++"
11271
echo "$ac_t""no" 1>&6
11273
LDFLAGS=${ac_save_ldflags}
11275
{ echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
11290
LDFLAGS=${ac_save_ldflags}
11293
OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
11294
OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
11296
ac_save_ldflags="$LDFLAGS"
11297
LDFLAGS="$LDFLAGS $OPENGLLIB"
11298
echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
11299
echo "configure:11300: checking for glXCreatePbuffer" >&5
11301
cat > conftest.$ac_ext <<EOF
11302
#line 11303 "configure"
11303
#include "confdefs.h"
11304
/* System header to define __stub macros and hopefully few prototypes,
11305
which can conflict with char glXCreatePbuffer(); below. */
11306
#include <assert.h>
11307
/* Override any gcc2 internal prototype to avoid an error. */
11308
/* We use char because int might match the return type of a gcc2
11309
builtin and then its argument prototype would still apply. */
11310
char glXCreatePbuffer();
11314
/* The GNU C library defines this for functions which it implements
11315
to always fail with ENOSYS. Some functions are actually named
11316
something starting with __ and the normal name is an alias. */
11317
#if defined (__stub_glXCreatePbuffer) || defined (__stub___glXCreatePbuffer)
11320
glXCreatePbuffer();
11325
if { (eval echo configure:11326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11327
eval "ac_cv_func_glXCreatePbuffer=yes"
11329
echo "configure: failed program was:" >&5
11330
cat conftest.$ac_ext >&5
11332
eval "ac_cv_func_glXCreatePbuffer=no"
11336
if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
11337
echo "$ac_t""yes" 1>&6
11338
cat >> confdefs.h <<\EOF
11339
#define HAVE_PBUFFERS 1
11343
echo "$ac_t""no" 1>&6
11346
echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
11347
echo "configure:11348: checking for glXCreateGLXPixmap" >&5
11349
cat > conftest.$ac_ext <<EOF
11350
#line 11351 "configure"
11351
#include "confdefs.h"
11352
/* System header to define __stub macros and hopefully few prototypes,
11353
which can conflict with char glXCreateGLXPixmap(); below. */
11354
#include <assert.h>
11355
/* Override any gcc2 internal prototype to avoid an error. */
11356
/* We use char because int might match the return type of a gcc2
11357
builtin and then its argument prototype would still apply. */
11358
char glXCreateGLXPixmap();
11362
/* The GNU C library defines this for functions which it implements
11363
to always fail with ENOSYS. Some functions are actually named
11364
something starting with __ and the normal name is an alias. */
11365
#if defined (__stub_glXCreateGLXPixmap) || defined (__stub___glXCreateGLXPixmap)
11368
glXCreateGLXPixmap();
11373
if { (eval echo configure:11374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11375
eval "ac_cv_func_glXCreateGLXPixmap=yes"
11377
echo "configure: failed program was:" >&5
11378
cat conftest.$ac_ext >&5
11380
eval "ac_cv_func_glXCreateGLXPixmap=no"
11384
if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
11385
echo "$ac_t""yes" 1>&6
11386
cat >> confdefs.h <<\EOF
11387
#define HAVE_PIXMAPS 1
11391
echo "$ac_t""no" 1>&6
11394
LDFLAGS="${ac_save_ldflags}"
11396
cat >> confdefs.h <<\EOF
11397
#define OPENGL_X11 1
11403
if test "$OPENGL_AQUA" = 1 ; then
11405
with_opengl_includes=/System/Library/Frameworks/OpenGL.framework/Headers
11406
with_opengl_libs="-framework OpenGL -framework AGL -framework ApplicationServices"
11408
# With OpenGL includes directory
11411
echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
11412
echo "configure:11413: checking for location of OpenGL includes" >&5
11413
case "$with_opengl_includes" in
11414
y | ye | yes | n | no)
11415
{ echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
11418
echo "$ac_t""$with_opengl_includes" 1>&6
11420
if test -n "$with_opengl_includes" ; then
11421
for dir in $with_opengl_includes; do
11422
if test -d "$dir"; then
11423
OPENGLINC="$OPENGLINC -I$dir"
11425
{ echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
11432
ac_save_cppflags="$CPPFLAGS"
11433
CPPFLAGS="$OPENGLINC $CPPFLAGS"
11434
for ac_hdr in OpenGL/gl.h OpenGL/glu.h
11436
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11437
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11438
echo "configure:11439: checking for $ac_hdr" >&5
11440
cat > conftest.$ac_ext <<EOF
11441
#line 11442 "configure"
11442
#include "confdefs.h"
11445
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11446
{ (eval echo configure:11447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11447
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11448
if test -z "$ac_err"; then
11450
eval "ac_cv_header_$ac_safe=yes"
11453
echo "configure: failed program was:" >&5
11454
cat conftest.$ac_ext >&5
11456
eval "ac_cv_header_$ac_safe=no"
11459
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11460
echo "$ac_t""yes" 1>&6
11461
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11462
cat >> confdefs.h <<EOF
11463
#define $ac_tr_hdr 1
11467
echo "$ac_t""no" 1>&6
11468
{ echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
11473
CPPFLAGS=$ac_save_cppflags
11476
# With OpenGL library directory
11478
ac_save_ldflags="$LDFLAGS"
11479
LDFLAGS="$with_opengl_libs $LDFLAGS"
11480
echo $ac_n "checking for glBegin""... $ac_c" 1>&6
11481
echo "configure:11482: checking for glBegin" >&5
11483
cat > conftest.$ac_ext <<EOF
11484
#line 11485 "configure"
11485
#include "confdefs.h"
11486
/* System header to define __stub macros and hopefully few prototypes,
11487
which can conflict with char glBegin(); below. */
11488
#include <assert.h>
11489
/* Override any gcc2 internal prototype to avoid an error. */
11490
/* We use char because int might match the return type of a gcc2
11491
builtin and then its argument prototype would still apply. */
11496
/* The GNU C library defines this for functions which it implements
11497
to always fail with ENOSYS. Some functions are actually named
11498
something starting with __ and the normal name is an alias. */
11499
#if defined (__stub_glBegin) || defined (__stub___glBegin)
11507
if { (eval echo configure:11508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11509
eval "ac_cv_func_glBegin=yes"
11511
echo "configure: failed program was:" >&5
11512
cat conftest.$ac_ext >&5
11514
eval "ac_cv_func_glBegin=no"
11518
if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
11519
echo "$ac_t""yes" 1>&6
11521
echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
11522
echo "configure:11523: checking for gluBeginCurve" >&5
11524
cat > conftest.$ac_ext <<EOF
11525
#line 11526 "configure"
11526
#include "confdefs.h"
11527
/* System header to define __stub macros and hopefully few prototypes,
11528
which can conflict with char gluBeginCurve(); below. */
11529
#include <assert.h>
11530
/* Override any gcc2 internal prototype to avoid an error. */
11531
/* We use char because int might match the return type of a gcc2
11532
builtin and then its argument prototype would still apply. */
11533
char gluBeginCurve();
11537
/* The GNU C library defines this for functions which it implements
11538
to always fail with ENOSYS. Some functions are actually named
11539
something starting with __ and the normal name is an alias. */
11540
#if defined (__stub_gluBeginCurve) || defined (__stub___gluBeginCurve)
11548
if { (eval echo configure:11549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11550
eval "ac_cv_func_gluBeginCurve=yes"
11552
echo "configure: failed program was:" >&5
11553
cat conftest.$ac_ext >&5
11555
eval "ac_cv_func_gluBeginCurve=no"
11559
if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
11560
echo "$ac_t""yes" 1>&6
11562
OPENGLLIB="$with_opengl_libs"
11567
echo "$ac_t""no" 1>&6
11568
{ echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
11573
echo "$ac_t""no" 1>&6
11574
{ echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
11577
LDFLAGS="${ac_save_ldflags}"
11579
cat >> confdefs.h <<\EOF
11580
#define OPENGL_AQUA 1
11586
if test "$OPENGL_WINDOWS" = 1 ; then
11588
# With OpenGL includes directory
11591
echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
11592
echo "configure:11593: checking for location of OpenGL includes" >&5
11593
case "$with_opengl_includes" in
11594
y | ye | yes | n | no)
11595
{ echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
11598
echo "$ac_t""$with_opengl_includes" 1>&6
11600
if test -n "$with_opengl_includes" ; then
11601
for dir in $with_opengl_includes; do
11602
if test -d "$dir"; then
11603
OPENGLINC="$OPENGLINC -I$dir"
11605
{ echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
11612
ac_save_cppflags="$CPPFLAGS"
11613
CPPFLAGS="$OPENGLINC $CPPFLAGS"
11614
for ac_hdr in GL/gl.h GL/glu.h
11616
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11617
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11618
echo "configure:11619: checking for $ac_hdr" >&5
11620
cat > conftest.$ac_ext <<EOF
11621
#line 11622 "configure"
11622
#include "confdefs.h"
11625
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11626
{ (eval echo configure:11627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11627
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11628
if test -z "$ac_err"; then
11630
eval "ac_cv_header_$ac_safe=yes"
11633
echo "configure: failed program was:" >&5
11634
cat conftest.$ac_ext >&5
11636
eval "ac_cv_header_$ac_safe=no"
11639
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11640
echo "$ac_t""yes" 1>&6
11641
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11642
cat >> confdefs.h <<EOF
11643
#define $ac_tr_hdr 1
11647
echo "$ac_t""no" 1>&6
11648
{ echo "configure: error: *** Unable to locate OpenGL includes." 1>&2; exit 1; }
11653
CPPFLAGS=$ac_save_cppflags
11656
# With OpenGL library directory
11659
echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
11660
echo "configure:11661: checking for location of OpenGL library" >&5
11661
case "$with_opengl_libs" in
11662
y | ye | yes | n | no)
11663
{ echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
11666
echo "$ac_t""$with_opengl_libs" 1>&6
11668
if test -n "$with_opengl_libs"; then
11669
for dir in $with_opengl_libs; do
11670
if test -d "$dir"; then
11671
OPENGL_LIB_PATH="$OPENGL_LIB_PATH -L$dir"
11673
{ echo "configure: error: *** OpenGL library directory $dir does not exist." 1>&2; exit 1; }
11679
ac_save_cflags="$CFLAGS"
11680
CFLAGS="$CFLAGS $OPENGLINC"
11682
ac_save_ldflags="$LDFLAGS"
11683
ac_save_libs="$LIBS"
11684
echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
11685
echo "configure:11686: checking for OpenGL library" >&5
11686
LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
11688
cat > conftest.$ac_ext <<EOF
11689
#line 11690 "configure"
11690
#include "confdefs.h"
11696
if { (eval echo configure:11697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11699
echo "$ac_t""found" 1>&6
11700
OPENGLLIB="$OPENGLLIB -lopengl32 "
11703
echo "configure: failed program was:" >&5
11704
cat conftest.$ac_ext >&5
11708
{ echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
11713
LIBS=${ac_save_libs}
11714
LDFLAGS=${ac_save_ldflags}
11717
ac_save_ldflags="$LDFLAGS"
11718
ac_save_libs="$LIBS"
11719
echo $ac_n "checking for GLU library""... $ac_c" 1>&6
11720
echo "configure:11721: checking for GLU library" >&5
11721
LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
11722
LIBS="-lglu32 $OPENGLLIB "
11723
cat > conftest.$ac_ext <<EOF
11724
#line 11725 "configure"
11725
#include "confdefs.h"
11726
#include <GL/glu.h>
11731
if { (eval echo configure:11732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11734
echo "$ac_t""found" 1>&6
11735
OPENGLULIB="$OPENGLULIB -lglu32 "
11738
echo "configure: failed program was:" >&5
11739
cat conftest.$ac_ext >&5
11743
{ echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
11748
LIBS=${ac_save_libs}
11749
LDFLAGS=${ac_save_ldflags}
11751
CFLAGS="${ac_save_cflags}"
11753
OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
11754
OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
11756
cat >> confdefs.h <<\EOF
11757
#define OPENGL_WINDOWS 1
11761
fi # $OPENGL_WINDOWS
11774
# Done checking OpenGL
11776
# Enable TCLTK option
11779
echo $ac_n "checking whether to use Tcl/Tk""... $ac_c" 1>&6
11780
echo "configure:11781: checking whether to use Tcl/Tk" >&5
11781
echo "$ac_t"""$with_tcltk"" 1>&6
11782
case "$with_tcltk" in
11783
"no") USE_TCLTK= ;;
11784
"yes") USE_TCLTK="1" ;;
11785
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
11794
if test -n "$USE_TCLTK"; then
11796
# With Tcl/Tk includes directory
11799
echo $ac_n "checking for location of Tcl/Tk includes""... $ac_c" 1>&6
11800
echo "configure:11801: checking for location of Tcl/Tk includes" >&5
11801
case "$with_tcltk_includes" in
11802
y | ye | yes | n | no)
11803
{ echo "configure: error: *** You must supply a directory to --with-tcltk-includes." 1>&2; exit 1; }
11806
echo "$ac_t""$with_tcltk_includes" 1>&6
11808
if test -n "$with_tcltk_includes" ; then
11809
for dir in $with_tcltk_includes; do
11810
if test -d "$dir"; then
11811
TCLINCDIR="$TCLINCDIR -I$dir"
11813
{ echo "configure: error: *** Tcl/Tk includes directory $dir does not exist." 1>&2; exit 1; }
11820
ac_save_cppflags="$CPPFLAGS"
11821
CPPFLAGS="$TCLINCDIR $CPPFLAGS"
11822
for ac_hdr in tcl.h
11824
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11825
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11826
echo "configure:11827: checking for $ac_hdr" >&5
11828
cat > conftest.$ac_ext <<EOF
11829
#line 11830 "configure"
11830
#include "confdefs.h"
11833
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11834
{ (eval echo configure:11835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11835
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11836
if test -z "$ac_err"; then
11838
eval "ac_cv_header_$ac_safe=yes"
11841
echo "configure: failed program was:" >&5
11842
cat conftest.$ac_ext >&5
11844
eval "ac_cv_header_$ac_safe=no"
11847
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11848
echo "$ac_t""yes" 1>&6
11849
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11850
cat >> confdefs.h <<EOF
11851
#define $ac_tr_hdr 1
11855
echo "$ac_t""no" 1>&6
11856
{ echo "configure: error: *** Unable to locate Tcl includes." 1>&2; exit 1; }
11861
CPPFLAGS=$ac_save_cppflags
11865
ac_save_cppflags="$CPPFLAGS"
11866
CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
11869
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11870
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11871
echo "configure:11872: checking for $ac_hdr" >&5
11873
cat > conftest.$ac_ext <<EOF
11874
#line 11875 "configure"
11875
#include "confdefs.h"
11878
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11879
{ (eval echo configure:11880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11880
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11881
if test -z "$ac_err"; then
11883
eval "ac_cv_header_$ac_safe=yes"
11886
echo "configure: failed program was:" >&5
11887
cat conftest.$ac_ext >&5
11889
eval "ac_cv_header_$ac_safe=no"
11892
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11893
echo "$ac_t""yes" 1>&6
11894
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11895
cat >> confdefs.h <<EOF
11896
#define $ac_tr_hdr 1
11900
echo "$ac_t""no" 1>&6
11901
{ echo "configure: error: *** Unable to locate Tk includes." 1>&2; exit 1; }
11906
CPPFLAGS=$ac_save_cppflags
11909
# Tcl/Tk version checks
11911
echo $ac_n "checking Tcl version""... $ac_c" 1>&6
11912
echo "configure:11913: checking Tcl version" >&5
11913
ac_save_cppflags="$CPPFLAGS"
11914
CPPFLAGS="$TCLINCDIR $CPPFLAGS"
11915
if test "$cross_compiling" = yes; then
11917
echo "$ac_t""unknown (cross-compiling)" 1>&6
11919
cat > conftest.$ac_ext <<EOF
11920
#line 11921 "configure"
11921
#include "confdefs.h"
11926
FILE *fp = fopen("conftestdata","w");
11927
fputs(TCL_VERSION, fp);
11932
if { (eval echo configure:11933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11934
tcl_ver=`cat conftestdata`
11935
echo "$ac_t""$tcl_ver" 1>&6
11937
echo "configure: failed program was:" >&5
11938
cat conftest.$ac_ext >&5
11940
{ echo "configure: error: *** Could not determine Tcl version." 1>&2; exit 1; }
11945
CPPFLAGS=$ac_save_cppflags
11949
echo $ac_n "checking Tk version""... $ac_c" 1>&6
11950
echo "configure:11951: checking Tk version" >&5
11951
ac_save_cppflags="$CPPFLAGS"
11952
CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
11953
if test "$cross_compiling" = yes; then
11955
echo "$ac_t""unknown (cross-compiling)" 1>&6
11957
cat > conftest.$ac_ext <<EOF
11958
#line 11959 "configure"
11959
#include "confdefs.h"
11964
FILE *fp = fopen("conftestdata","w");
11965
fputs(TK_VERSION, fp);
11970
if { (eval echo configure:11971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11972
tk_ver=`cat conftestdata`
11973
echo "$ac_t""$tk_ver" 1>&6
11975
echo "configure: failed program was:" >&5
11976
cat conftest.$ac_ext >&5
11978
{ echo "configure: error: *** Could not determine Tk version." 1>&2; exit 1; }
11983
CPPFLAGS=$ac_save_cppflags
11986
if test "$tcl_ver" = "$tk_ver" ; then
11987
tcltk_ver="$tcl_ver"
11989
{ echo "configure: error: *** Tcl/Tk version mismatch." 1>&2; exit 1; }
11992
TCL_VERSION="$tcl_ver"
11994
# FreeBSD and CygWin don't have a "dot" between major/minor version number
11995
tcltk_ver2=`echo "$tcltk_ver" | sed 's/\.//g'`
11997
# With Tcl/Tk library directory
12000
echo $ac_n "checking for location of Tcl/Tk library""... $ac_c" 1>&6
12001
echo "configure:12002: checking for location of Tcl/Tk library" >&5
12002
case "$with_tcltk_libs" in
12003
y | ye | yes | n | no)
12004
{ echo "configure: error: *** You must supply a directory to --with-tcltk-libs." 1>&2; exit 1; }
12007
echo "$ac_t""$with_tcltk_libs" 1>&6
12009
if test -n "$with_tcltk_libs"; then
12010
for dir in $with_tcltk_libs; do
12011
if test -d "$dir"; then
12012
TCLTKLIBPATH="$TCLTKLIBPATH -L$dir"
12014
{ echo "configure: error: *** Tcl/Tk library directory $dir does not exist." 1>&2; exit 1; }
12022
MACOSX_ARCHS_TCLTK=
12024
# Can't test tcl/tk libs on 64bit OSX Aqua for now
12025
# assume that if OpenGL Aqua, then user specifies TclTk Aqua
12026
if test "$OPENGL_AQUA" = 1 ; then
12027
save_CFLAGS="$CFLAGS"
12028
CFLAGS="`echo \"$CFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
12029
save_LDFLAGS="$LDFLAGS"
12030
LDFLAGS="`echo \"$LDFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
12034
ac_save_ldflags="$LDFLAGS"
12035
LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
12040
echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
12041
echo "configure:12042: checking for Tcl_Init in -ltcl" >&5
12042
ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
12044
ac_save_LIBS="$LIBS"
12045
LIBS="-ltcl $MATHLIB $LIBS"
12046
cat > conftest.$ac_ext <<EOF
12047
#line 12048 "configure"
12048
#include "confdefs.h"
12049
/* Override any gcc2 internal prototype to avoid an error. */
12050
/* We use char because int might match the return type of a gcc2
12051
builtin and then its argument prototype would still apply. */
12058
if { (eval echo configure:12059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12060
eval "ac_cv_lib_$ac_lib_var=yes"
12062
echo "configure: failed program was:" >&5
12063
cat conftest.$ac_ext >&5
12065
eval "ac_cv_lib_$ac_lib_var=no"
12068
LIBS="$ac_save_LIBS"
12070
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12071
echo "$ac_t""yes" 1>&6
12072
TCLLIB="$TCLLIB -ltcl $MATHLIB"
12074
echo "$ac_t""no" 1>&6
12076
echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
12077
echo "configure:12078: checking for Tcl_Init in -ltcl" >&5
12078
ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
12080
ac_save_LIBS="$LIBS"
12081
LIBS="-ltcl $MATHLIB $DLLIB $LIBS"
12082
cat > conftest.$ac_ext <<EOF
12083
#line 12084 "configure"
12084
#include "confdefs.h"
12085
/* Override any gcc2 internal prototype to avoid an error. */
12086
/* We use char because int might match the return type of a gcc2
12087
builtin and then its argument prototype would still apply. */
12094
if { (eval echo configure:12095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12096
eval "ac_cv_lib_$ac_lib_var=yes"
12098
echo "configure: failed program was:" >&5
12099
cat conftest.$ac_ext >&5
12101
eval "ac_cv_lib_$ac_lib_var=no"
12104
LIBS="$ac_save_LIBS"
12106
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12107
echo "$ac_t""yes" 1>&6
12108
TCLLIB="$TCLLIB -ltcl $MATHLIB $DLLIB"
12110
echo "$ac_t""no" 1>&6
12112
LDFLAGS=${ac_save_ldflags}
12114
ac_save_ldflags="$LDFLAGS"
12115
LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
12120
echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
12121
echo "configure:12122: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
12122
ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
12124
ac_save_LIBS="$LIBS"
12125
LIBS="-ltcl$tcltk_ver $MATHLIB $LIBS"
12126
cat > conftest.$ac_ext <<EOF
12127
#line 12128 "configure"
12128
#include "confdefs.h"
12129
/* Override any gcc2 internal prototype to avoid an error. */
12130
/* We use char because int might match the return type of a gcc2
12131
builtin and then its argument prototype would still apply. */
12138
if { (eval echo configure:12139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12140
eval "ac_cv_lib_$ac_lib_var=yes"
12142
echo "configure: failed program was:" >&5
12143
cat conftest.$ac_ext >&5
12145
eval "ac_cv_lib_$ac_lib_var=no"
12148
LIBS="$ac_save_LIBS"
12150
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12151
echo "$ac_t""yes" 1>&6
12152
TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB"
12154
echo "$ac_t""no" 1>&6
12156
echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
12157
echo "configure:12158: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
12158
ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
12160
ac_save_LIBS="$LIBS"
12161
LIBS="-ltcl$tcltk_ver $MATHLIB $DLLIB $LIBS"
12162
cat > conftest.$ac_ext <<EOF
12163
#line 12164 "configure"
12164
#include "confdefs.h"
12165
/* Override any gcc2 internal prototype to avoid an error. */
12166
/* We use char because int might match the return type of a gcc2
12167
builtin and then its argument prototype would still apply. */
12174
if { (eval echo configure:12175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12176
eval "ac_cv_lib_$ac_lib_var=yes"
12178
echo "configure: failed program was:" >&5
12179
cat conftest.$ac_ext >&5
12181
eval "ac_cv_lib_$ac_lib_var=no"
12184
LIBS="$ac_save_LIBS"
12186
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12187
echo "$ac_t""yes" 1>&6
12188
TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB $DLLIB"
12190
echo "$ac_t""no" 1>&6
12192
LDFLAGS=${ac_save_ldflags}
12194
ac_save_ldflags="$LDFLAGS"
12195
LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
12200
echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
12201
echo "configure:12202: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
12202
ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
12204
ac_save_LIBS="$LIBS"
12205
LIBS="-ltcl$tcltk_ver2 $MATHLIB $LIBS"
12206
cat > conftest.$ac_ext <<EOF
12207
#line 12208 "configure"
12208
#include "confdefs.h"
12209
/* Override any gcc2 internal prototype to avoid an error. */
12210
/* We use char because int might match the return type of a gcc2
12211
builtin and then its argument prototype would still apply. */
12218
if { (eval echo configure:12219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12220
eval "ac_cv_lib_$ac_lib_var=yes"
12222
echo "configure: failed program was:" >&5
12223
cat conftest.$ac_ext >&5
12225
eval "ac_cv_lib_$ac_lib_var=no"
12228
LIBS="$ac_save_LIBS"
12230
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12231
echo "$ac_t""yes" 1>&6
12232
TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB"
12234
echo "$ac_t""no" 1>&6
12236
echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
12237
echo "configure:12238: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
12238
ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
12240
ac_save_LIBS="$LIBS"
12241
LIBS="-ltcl$tcltk_ver2 $MATHLIB $DLLIB $LIBS"
12242
cat > conftest.$ac_ext <<EOF
12243
#line 12244 "configure"
12244
#include "confdefs.h"
12245
/* Override any gcc2 internal prototype to avoid an error. */
12246
/* We use char because int might match the return type of a gcc2
12247
builtin and then its argument prototype would still apply. */
12254
if { (eval echo configure:12255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12256
eval "ac_cv_lib_$ac_lib_var=yes"
12258
echo "configure: failed program was:" >&5
12259
cat conftest.$ac_ext >&5
12261
eval "ac_cv_lib_$ac_lib_var=no"
12264
LIBS="$ac_save_LIBS"
12266
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12267
echo "$ac_t""yes" 1>&6
12268
TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB $DLLIB"
12270
echo "$ac_t""no" 1>&6
12272
LDFLAGS=${ac_save_ldflags}
12274
{ echo "configure: error: *** Unable to locate Tcl library." 1>&2; exit 1; }
12289
LDFLAGS=${ac_save_ldflags}
12305
LDFLAGS=${ac_save_ldflags}
12321
LDFLAGS=${ac_save_ldflags}
12325
ac_save_ldflags="$LDFLAGS"
12326
LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
12331
echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
12332
echo "configure:12333: checking for Tk_MainWindow in -ltk" >&5
12333
ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
12335
ac_save_LIBS="$LIBS"
12336
LIBS="-ltk $TCLLIB $MATHLIB $LIBS"
12337
cat > conftest.$ac_ext <<EOF
12338
#line 12339 "configure"
12339
#include "confdefs.h"
12340
/* Override any gcc2 internal prototype to avoid an error. */
12341
/* We use char because int might match the return type of a gcc2
12342
builtin and then its argument prototype would still apply. */
12343
char Tk_MainWindow();
12349
if { (eval echo configure:12350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12351
eval "ac_cv_lib_$ac_lib_var=yes"
12353
echo "configure: failed program was:" >&5
12354
cat conftest.$ac_ext >&5
12356
eval "ac_cv_lib_$ac_lib_var=no"
12359
LIBS="$ac_save_LIBS"
12361
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12362
echo "$ac_t""yes" 1>&6
12363
TKLIB="$TKLIB -ltk $MATHLIB"
12365
echo "$ac_t""no" 1>&6
12367
echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
12368
echo "configure:12369: checking for Tk_MainWindow in -ltk" >&5
12369
ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
12371
ac_save_LIBS="$LIBS"
12372
LIBS="-ltk $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12373
cat > conftest.$ac_ext <<EOF
12374
#line 12375 "configure"
12375
#include "confdefs.h"
12376
/* Override any gcc2 internal prototype to avoid an error. */
12377
/* We use char because int might match the return type of a gcc2
12378
builtin and then its argument prototype would still apply. */
12379
char Tk_MainWindow();
12385
if { (eval echo configure:12386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12387
eval "ac_cv_lib_$ac_lib_var=yes"
12389
echo "configure: failed program was:" >&5
12390
cat conftest.$ac_ext >&5
12392
eval "ac_cv_lib_$ac_lib_var=no"
12395
LIBS="$ac_save_LIBS"
12397
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12398
echo "$ac_t""yes" 1>&6
12399
TKLIB="$TKLIB -ltk $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
12401
echo "$ac_t""no" 1>&6
12403
LDFLAGS=${ac_save_ldflags}
12405
ac_save_ldflags="$LDFLAGS"
12406
LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
12411
echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
12412
echo "configure:12413: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
12413
ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
12415
ac_save_LIBS="$LIBS"
12416
LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $LIBS"
12417
cat > conftest.$ac_ext <<EOF
12418
#line 12419 "configure"
12419
#include "confdefs.h"
12420
/* Override any gcc2 internal prototype to avoid an error. */
12421
/* We use char because int might match the return type of a gcc2
12422
builtin and then its argument prototype would still apply. */
12423
char Tk_MainWindow();
12429
if { (eval echo configure:12430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12431
eval "ac_cv_lib_$ac_lib_var=yes"
12433
echo "configure: failed program was:" >&5
12434
cat conftest.$ac_ext >&5
12436
eval "ac_cv_lib_$ac_lib_var=no"
12439
LIBS="$ac_save_LIBS"
12441
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12442
echo "$ac_t""yes" 1>&6
12443
TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB"
12445
echo "$ac_t""no" 1>&6
12447
echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
12448
echo "configure:12449: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
12449
ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
12451
ac_save_LIBS="$LIBS"
12452
LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12453
cat > conftest.$ac_ext <<EOF
12454
#line 12455 "configure"
12455
#include "confdefs.h"
12456
/* Override any gcc2 internal prototype to avoid an error. */
12457
/* We use char because int might match the return type of a gcc2
12458
builtin and then its argument prototype would still apply. */
12459
char Tk_MainWindow();
12465
if { (eval echo configure:12466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12467
eval "ac_cv_lib_$ac_lib_var=yes"
12469
echo "configure: failed program was:" >&5
12470
cat conftest.$ac_ext >&5
12472
eval "ac_cv_lib_$ac_lib_var=no"
12475
LIBS="$ac_save_LIBS"
12477
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12478
echo "$ac_t""yes" 1>&6
12479
TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
12481
echo "$ac_t""no" 1>&6
12483
LDFLAGS=${ac_save_ldflags}
12485
ac_save_ldflags="$LDFLAGS"
12486
LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
12491
echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
12492
echo "configure:12493: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
12493
ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
12495
ac_save_LIBS="$LIBS"
12496
LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $LIBS"
12497
cat > conftest.$ac_ext <<EOF
12498
#line 12499 "configure"
12499
#include "confdefs.h"
12500
/* Override any gcc2 internal prototype to avoid an error. */
12501
/* We use char because int might match the return type of a gcc2
12502
builtin and then its argument prototype would still apply. */
12503
char Tk_MainWindow();
12509
if { (eval echo configure:12510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12511
eval "ac_cv_lib_$ac_lib_var=yes"
12513
echo "configure: failed program was:" >&5
12514
cat conftest.$ac_ext >&5
12516
eval "ac_cv_lib_$ac_lib_var=no"
12519
LIBS="$ac_save_LIBS"
12521
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12522
echo "$ac_t""yes" 1>&6
12523
TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB"
12525
echo "$ac_t""no" 1>&6
12527
echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
12528
echo "configure:12529: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
12529
ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
12531
ac_save_LIBS="$LIBS"
12532
LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12533
cat > conftest.$ac_ext <<EOF
12534
#line 12535 "configure"
12535
#include "confdefs.h"
12536
/* Override any gcc2 internal prototype to avoid an error. */
12537
/* We use char because int might match the return type of a gcc2
12538
builtin and then its argument prototype would still apply. */
12539
char Tk_MainWindow();
12545
if { (eval echo configure:12546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12547
eval "ac_cv_lib_$ac_lib_var=yes"
12549
echo "configure: failed program was:" >&5
12550
cat conftest.$ac_ext >&5
12552
eval "ac_cv_lib_$ac_lib_var=no"
12555
LIBS="$ac_save_LIBS"
12557
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12558
echo "$ac_t""yes" 1>&6
12559
TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
12561
echo "$ac_t""no" 1>&6
12563
LDFLAGS=${ac_save_ldflags}
12565
{ echo "configure: error: *** Unable to locate Tk library." 1>&2; exit 1; }
12580
LDFLAGS=${ac_save_ldflags}
12596
LDFLAGS=${ac_save_ldflags}
12612
LDFLAGS=${ac_save_ldflags}
12615
# restore CFLAGS/LDLFAGS from Aqua 64bit strip
12616
# only Tcl/Tk-based makefiles will strip 64bit out during compile
12617
if test "$OPENGL_AQUA" = 1 ; then
12618
CFLAGS="$save_CFLAGS"
12619
LDFLAGS="$save_LDFLAGS"
12622
TCLTKLIBS="$TKLIB $TCLLIB"
12624
# check for available OSX archs in TclTk
12625
if test -n "$MACOSX_ARCHS" ; then
12626
save_LDFLAGS="$LDFLAGS"
12628
save_CFLAGS="$CFLAGS"
12630
tlib=`echo "$TCLLIB" | sed -e 's/-l//' -e 's/^ *//' -e 's/ *$//'`
12631
for a in i386 ppc x86_64 ppc64
12633
# add only if in MACOSX_ARCHS
12634
echo $ac_n "checking for Tcl_Init in -l$tlib""... $ac_c" 1>&6
12635
echo "configure:12636: checking for Tcl_Init in -l$tlib" >&5
12636
ac_lib_var=`echo $tlib'_'Tcl_Init | sed 'y%./+-%__p_%'`
12638
ac_save_LIBS="$LIBS"
12639
LIBS="-l$tlib -arch $a $MACOSX_SDK $TCLTKLIBPATH $LIBS"
12640
cat > conftest.$ac_ext <<EOF
12641
#line 12642 "configure"
12642
#include "confdefs.h"
12643
/* Override any gcc2 internal prototype to avoid an error. */
12644
/* We use char because int might match the return type of a gcc2
12645
builtin and then its argument prototype would still apply. */
12652
if { (eval echo configure:12653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12654
eval "ac_cv_lib_$ac_lib_var=yes"
12656
echo "configure: failed program was:" >&5
12657
cat conftest.$ac_ext >&5
12659
eval "ac_cv_lib_$ac_lib_var=no"
12662
LIBS="$ac_save_LIBS"
12664
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12665
echo "$ac_t""yes" 1>&6
12667
if test -n "`echo "$MACOSX_ARCHS" | grep $a`" ; then
12668
MACOSX_ARCHS_TCLTK="$MACOSX_ARCHS_TCLTK -arch $a"
12672
echo "$ac_t""no" 1>&6
12676
LDFLAGS="$save_LDFLAGS"
12677
CFLAGS="$save_CFLAGS"
12680
cat >> confdefs.h <<\EOF
12681
#define HAVE_TCLTK 1
12687
TKINCDIR=$TCLINCDIR
12695
# Done checking Tcl/Tk
12697
# Enable ODBC option
12700
echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
12701
echo "configure:12702: checking whether to use ODBC" >&5
12702
echo "$ac_t"""$with_odbc"" 1>&6
12703
case "$with_odbc" in
12705
"yes") USE_ODBC="1" ;;
12706
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
12714
if test -n "$USE_ODBC"; then
12716
# With ODBC includes directory
12719
echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
12720
echo "configure:12721: checking for location of ODBC includes" >&5
12721
case "$with_odbc_includes" in
12722
y | ye | yes | n | no)
12723
{ echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
12726
echo "$ac_t""$with_odbc_includes" 1>&6
12728
if test -n "$with_odbc_includes" ; then
12729
for dir in $with_odbc_includes; do
12730
if test -d "$dir"; then
12731
ODBCINC="$ODBCINC -I$dir"
12733
{ echo "configure: error: *** ODBC includes directory $dir does not exist." 1>&2; exit 1; }
12740
ac_save_cppflags="$CPPFLAGS"
12741
CPPFLAGS="$ODBCINC $CPPFLAGS"
12742
for ac_hdr in sql.h
12744
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12745
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12746
echo "configure:12747: checking for $ac_hdr" >&5
12748
cat > conftest.$ac_ext <<EOF
12749
#line 12750 "configure"
12750
#include "confdefs.h"
12753
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12754
{ (eval echo configure:12755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12755
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12756
if test -z "$ac_err"; then
12758
eval "ac_cv_header_$ac_safe=yes"
12761
echo "configure: failed program was:" >&5
12762
cat conftest.$ac_ext >&5
12764
eval "ac_cv_header_$ac_safe=no"
12767
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12768
echo "$ac_t""yes" 1>&6
12769
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12770
cat >> confdefs.h <<EOF
12771
#define $ac_tr_hdr 1
12775
echo "$ac_t""no" 1>&6
12776
{ echo "configure: error: *** Unable to locate ODBC includes." 1>&2; exit 1; }
12781
CPPFLAGS=$ac_save_cppflags
12784
# With ODBC library directory
12787
echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
12788
echo "configure:12789: checking for location of ODBC library" >&5
12789
case "$with_odbc_libs" in
12790
y | ye | yes | n | no)
12791
{ echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
12794
echo "$ac_t""$with_odbc_libs" 1>&6
12796
if test -n "$with_odbc_libs"; then
12797
for dir in $with_odbc_libs; do
12798
if test -d "$dir"; then
12799
ODBCLIB="$ODBCLIB -L$dir"
12801
{ echo "configure: error: *** ODBC library directory $dir does not exist." 1>&2; exit 1; }
12808
ac_save_ldflags="$LDFLAGS"
12809
LDFLAGS="$ODBCLIB $LDFLAGS"
12812
echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
12813
echo "configure:12814: checking for SQLConnect in -lodbc" >&5
12814
ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
12816
ac_save_LIBS="$LIBS"
12817
LIBS="-lodbc $ICONVLIB $LIBS"
12818
cat > conftest.$ac_ext <<EOF
12819
#line 12820 "configure"
12820
#include "confdefs.h"
12821
/* Override any gcc2 internal prototype to avoid an error. */
12822
/* We use char because int might match the return type of a gcc2
12823
builtin and then its argument prototype would still apply. */
12830
if { (eval echo configure:12831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12832
eval "ac_cv_lib_$ac_lib_var=yes"
12834
echo "configure: failed program was:" >&5
12835
cat conftest.$ac_ext >&5
12837
eval "ac_cv_lib_$ac_lib_var=no"
12840
LIBS="$ac_save_LIBS"
12842
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12843
echo "$ac_t""yes" 1>&6
12844
ODBCLIB="$ODBCLIB -lodbc "
12846
echo "$ac_t""no" 1>&6
12848
LDFLAGS=${ac_save_ldflags}
12850
ac_save_ldflags="$LDFLAGS"
12851
LDFLAGS="$ODBCLIB $LDFLAGS"
12854
echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
12855
echo "configure:12856: checking for SQLConnect in -liodbc" >&5
12856
ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
12858
ac_save_LIBS="$LIBS"
12859
LIBS="-liodbc $LIBS"
12860
cat > conftest.$ac_ext <<EOF
12861
#line 12862 "configure"
12862
#include "confdefs.h"
12863
/* Override any gcc2 internal prototype to avoid an error. */
12864
/* We use char because int might match the return type of a gcc2
12865
builtin and then its argument prototype would still apply. */
12872
if { (eval echo configure:12873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12874
eval "ac_cv_lib_$ac_lib_var=yes"
12876
echo "configure: failed program was:" >&5
12877
cat conftest.$ac_ext >&5
12879
eval "ac_cv_lib_$ac_lib_var=no"
12882
LIBS="$ac_save_LIBS"
12884
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12885
echo "$ac_t""yes" 1>&6
12886
ODBCLIB="$ODBCLIB -liodbc "
12888
echo "$ac_t""no" 1>&6
12890
LDFLAGS=${ac_save_ldflags}
12891
ac_save_cflags="$CFLAGS"
12892
CFLAGS="$CFLAGS $ODBCINC"
12894
ac_save_ldflags="$LDFLAGS"
12895
ac_save_libs="$LIBS"
12896
echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
12897
echo "configure:12898: checking for ODBC library" >&5
12898
LDFLAGS="$ODBCLIB $LDFLAGS"
12900
cat > conftest.$ac_ext <<EOF
12901
#line 12902 "configure"
12902
#include "confdefs.h"
12903
#include <windows.h>
12906
SQLAllocEnv((SQLHENV *)0);
12909
if { (eval echo configure:12910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12912
echo "$ac_t""found" 1>&6
12913
ODBCLIB="$ODBCLIB -lodbc32 "
12916
echo "configure: failed program was:" >&5
12917
cat conftest.$ac_ext >&5
12921
{ echo "configure: error: *** Unable to locate ODBC library." 1>&2; exit 1; }
12926
LIBS=${ac_save_libs}
12927
LDFLAGS=${ac_save_ldflags}
12929
CFLAGS="${ac_save_cflags}"
12936
LDFLAGS=${ac_save_ldflags}
12944
LDFLAGS=${ac_save_ldflags}
12952
# Done checking ODBC
12954
# Enable FFTW option
12957
echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
12958
echo "configure:12959: checking whether to use FFTW" >&5
12959
echo "$ac_t"""$with_fftw"" 1>&6
12960
case "$with_fftw" in
12962
"yes") USE_FFTW="1" ;;
12963
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
12971
if test -n "$USE_FFTW"; then
12973
# With FFTW includes directory
12976
echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
12977
echo "configure:12978: checking for location of FFTW includes" >&5
12978
case "$with_fftw_includes" in
12979
y | ye | yes | n | no)
12980
{ echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
12983
echo "$ac_t""$with_fftw_includes" 1>&6
12985
if test -n "$with_fftw_includes" ; then
12986
for dir in $with_fftw_includes; do
12987
if test -d "$dir"; then
12988
FFTWINC="$FFTWINC -I$dir"
12990
{ echo "configure: error: *** FFTW includes directory $dir does not exist." 1>&2; exit 1; }
12997
ac_save_cppflags="$CPPFLAGS"
12998
CPPFLAGS="$FFTWINC $CPPFLAGS"
12999
for ac_hdr in fftw3.h
13001
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13002
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13003
echo "configure:13004: checking for $ac_hdr" >&5
13005
cat > conftest.$ac_ext <<EOF
13006
#line 13007 "configure"
13007
#include "confdefs.h"
13010
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13011
{ (eval echo configure:13012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13012
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13013
if test -z "$ac_err"; then
13015
eval "ac_cv_header_$ac_safe=yes"
13018
echo "configure: failed program was:" >&5
13019
cat conftest.$ac_ext >&5
13021
eval "ac_cv_header_$ac_safe=no"
13024
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13025
echo "$ac_t""yes" 1>&6
13026
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13027
cat >> confdefs.h <<EOF
13028
#define $ac_tr_hdr 1
13032
echo "$ac_t""no" 1>&6
13033
ac_save_cppflags="$CPPFLAGS"
13034
CPPFLAGS=" $CPPFLAGS"
13035
for ac_hdr in fftw.h
13037
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13038
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13039
echo "configure:13040: checking for $ac_hdr" >&5
13041
cat > conftest.$ac_ext <<EOF
13042
#line 13043 "configure"
13043
#include "confdefs.h"
13046
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13047
{ (eval echo configure:13048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13048
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13049
if test -z "$ac_err"; then
13051
eval "ac_cv_header_$ac_safe=yes"
13054
echo "configure: failed program was:" >&5
13055
cat conftest.$ac_ext >&5
13057
eval "ac_cv_header_$ac_safe=no"
13060
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13061
echo "$ac_t""yes" 1>&6
13062
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13063
cat >> confdefs.h <<EOF
13064
#define $ac_tr_hdr 1
13068
echo "$ac_t""no" 1>&6
13069
ac_save_cppflags="$CPPFLAGS"
13070
CPPFLAGS=" $CPPFLAGS"
13071
for ac_hdr in dfftw.h
13073
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13074
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13075
echo "configure:13076: checking for $ac_hdr" >&5
13077
cat > conftest.$ac_ext <<EOF
13078
#line 13079 "configure"
13079
#include "confdefs.h"
13082
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13083
{ (eval echo configure:13084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13084
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13085
if test -z "$ac_err"; then
13087
eval "ac_cv_header_$ac_safe=yes"
13090
echo "configure: failed program was:" >&5
13091
cat conftest.$ac_ext >&5
13093
eval "ac_cv_header_$ac_safe=no"
13096
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13097
echo "$ac_t""yes" 1>&6
13098
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13099
cat >> confdefs.h <<EOF
13100
#define $ac_tr_hdr 1
13104
echo "$ac_t""no" 1>&6
13105
{ echo "configure: error: *** Unable to locate FFTW includes." 1>&2; exit 1; }
13110
CPPFLAGS=$ac_save_cppflags
13116
CPPFLAGS=$ac_save_cppflags
13122
CPPFLAGS=$ac_save_cppflags
13125
# With FFTW library directory
13128
echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
13129
echo "configure:13130: checking for location of FFTW library" >&5
13130
case "$with_fftw_libs" in
13131
y | ye | yes | n | no)
13132
{ echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
13135
echo "$ac_t""$with_fftw_libs" 1>&6
13137
if test -n "$with_fftw_libs"; then
13138
for dir in $with_fftw_libs; do
13139
if test -d "$dir"; then
13140
FFTWLIB="$FFTWLIB -L$dir"
13142
{ echo "configure: error: *** FFTW library directory $dir does not exist." 1>&2; exit 1; }
13149
ac_save_ldflags="$LDFLAGS"
13150
LDFLAGS="$FFTWLIB $LDFLAGS"
13153
echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
13154
echo "configure:13155: checking for fftw_execute in -lfftw3" >&5
13155
ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
13157
ac_save_LIBS="$LIBS"
13158
LIBS="-lfftw3 $MATHLIB $LIBS"
13159
cat > conftest.$ac_ext <<EOF
13160
#line 13161 "configure"
13161
#include "confdefs.h"
13162
/* Override any gcc2 internal prototype to avoid an error. */
13163
/* We use char because int might match the return type of a gcc2
13164
builtin and then its argument prototype would still apply. */
13165
char fftw_execute();
13171
if { (eval echo configure:13172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13173
eval "ac_cv_lib_$ac_lib_var=yes"
13175
echo "configure: failed program was:" >&5
13176
cat conftest.$ac_ext >&5
13178
eval "ac_cv_lib_$ac_lib_var=no"
13181
LIBS="$ac_save_LIBS"
13183
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13184
echo "$ac_t""yes" 1>&6
13185
FFTWLIB="$FFTWLIB -lfftw3 $MATHLIB"
13187
echo "$ac_t""no" 1>&6
13189
LDFLAGS=${ac_save_ldflags}
13191
ac_save_ldflags="$LDFLAGS"
13192
LDFLAGS="$FFTWLIB $LDFLAGS"
13195
echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
13196
echo "configure:13197: checking for fftwnd_one in -lfftw" >&5
13197
ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
13199
ac_save_LIBS="$LIBS"
13200
LIBS="-lfftw $MATHLIB $LIBS"
13201
cat > conftest.$ac_ext <<EOF
13202
#line 13203 "configure"
13203
#include "confdefs.h"
13204
/* Override any gcc2 internal prototype to avoid an error. */
13205
/* We use char because int might match the return type of a gcc2
13206
builtin and then its argument prototype would still apply. */
13213
if { (eval echo configure:13214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13215
eval "ac_cv_lib_$ac_lib_var=yes"
13217
echo "configure: failed program was:" >&5
13218
cat conftest.$ac_ext >&5
13220
eval "ac_cv_lib_$ac_lib_var=no"
13223
LIBS="$ac_save_LIBS"
13225
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13226
echo "$ac_t""yes" 1>&6
13227
FFTWLIB="$FFTWLIB -lfftw $MATHLIB"
13229
echo "$ac_t""no" 1>&6
13231
LDFLAGS=${ac_save_ldflags}
13233
ac_save_ldflags="$LDFLAGS"
13234
LDFLAGS="$FFTWLIB $LDFLAGS"
13237
echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
13238
echo "configure:13239: checking for fftwnd_one in -ldfftw" >&5
13239
ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
13241
ac_save_LIBS="$LIBS"
13242
LIBS="-ldfftw $MATHLIB $LIBS"
13243
cat > conftest.$ac_ext <<EOF
13244
#line 13245 "configure"
13245
#include "confdefs.h"
13246
/* Override any gcc2 internal prototype to avoid an error. */
13247
/* We use char because int might match the return type of a gcc2
13248
builtin and then its argument prototype would still apply. */
13255
if { (eval echo configure:13256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13257
eval "ac_cv_lib_$ac_lib_var=yes"
13259
echo "configure: failed program was:" >&5
13260
cat conftest.$ac_ext >&5
13262
eval "ac_cv_lib_$ac_lib_var=no"
13265
LIBS="$ac_save_LIBS"
13267
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13268
echo "$ac_t""yes" 1>&6
13269
FFTWLIB="$FFTWLIB -ldfftw $MATHLIB"
13271
echo "$ac_t""no" 1>&6
13273
LDFLAGS=${ac_save_ldflags}
13275
{ echo "configure: error: *** Unable to locate FFTW library." 1>&2; exit 1; }
13282
LDFLAGS=${ac_save_ldflags}
13290
LDFLAGS=${ac_save_ldflags}
13298
LDFLAGS=${ac_save_ldflags}
13306
# Done checking FFTW
13308
# Enable BLAS option
13311
echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
13312
echo "configure:13313: checking whether to use BLAS" >&5
13313
echo "$ac_t"""$with_blas"" 1>&6
13314
case "$with_blas" in
13316
"yes") USE_BLAS="1" ;;
13317
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
13325
if test -n "$USE_BLAS"; then
13327
# With BLAS includes directory
13328
# BLAS doesn't have includes (FORTRAN library)
13329
# With BLAS library directory
13332
echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
13333
echo "configure:13334: checking for location of BLAS includes" >&5
13334
case "$with_blas_includes" in
13335
y | ye | yes | n | no)
13336
{ echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
13339
echo "$ac_t""$with_blas_includes" 1>&6
13341
if test -n "$with_blas_includes" ; then
13342
for dir in $with_blas_includes; do
13343
if test -d "$dir"; then
13344
BLASINC="$BLASINC -I$dir"
13346
{ echo "configure: error: *** BLAS includes directory $dir does not exist." 1>&2; exit 1; }
13352
echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
13353
echo "configure:13354: checking for location of BLAS library" >&5
13354
case "$with_blas_libs" in
13355
y | ye | yes | n | no)
13356
{ echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
13359
echo "$ac_t""$with_blas_libs" 1>&6
13361
if test -n "$with_blas_libs"; then
13362
for dir in $with_blas_libs; do
13363
if test -d "$dir"; then
13364
BLASLIB="$BLASLIB -L$dir"
13366
{ echo "configure: error: *** BLAS library directory $dir does not exist." 1>&2; exit 1; }
13372
# See if cblas.h exists (CBLAS,ATLAS,others)
13373
save_CPPFLAGS="$CPPFLAGS"
13374
CPPFLAGS="$BLASINC $CPPFLAGS"
13375
for ac_hdr in cblas.h
13377
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13378
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13379
echo "configure:13380: checking for $ac_hdr" >&5
13381
cat > conftest.$ac_ext <<EOF
13382
#line 13383 "configure"
13383
#include "confdefs.h"
13386
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13387
{ (eval echo configure:13388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13388
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13389
if test -z "$ac_err"; then
13391
eval "ac_cv_header_$ac_safe=yes"
13394
echo "configure: failed program was:" >&5
13395
cat conftest.$ac_ext >&5
13397
eval "ac_cv_header_$ac_safe=no"
13400
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13401
echo "$ac_t""yes" 1>&6
13402
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13403
cat >> confdefs.h <<EOF
13404
#define $ac_tr_hdr 1
13408
echo "$ac_t""no" 1>&6
13412
CPPFLAGS="$save_CPPFLAGS"
13415
ac_save_ldflags="$LDFLAGS"
13416
LDFLAGS="$BLASLIB $LDFLAGS"
13421
echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
13422
echo "configure:13423: checking for dnrm2_ in -lblas" >&5
13423
ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
13425
ac_save_LIBS="$LIBS"
13426
LIBS="-lblas $MATHLIB $LIBS"
13427
cat > conftest.$ac_ext <<EOF
13428
#line 13429 "configure"
13429
#include "confdefs.h"
13430
/* Override any gcc2 internal prototype to avoid an error. */
13431
/* We use char because int might match the return type of a gcc2
13432
builtin and then its argument prototype would still apply. */
13439
if { (eval echo configure:13440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13441
eval "ac_cv_lib_$ac_lib_var=yes"
13443
echo "configure: failed program was:" >&5
13444
cat conftest.$ac_ext >&5
13446
eval "ac_cv_lib_$ac_lib_var=no"
13449
LIBS="$ac_save_LIBS"
13451
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13452
echo "$ac_t""yes" 1>&6
13453
BLASLIB="$BLASLIB -lblas "
13455
echo "$ac_t""no" 1>&6
13457
echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
13458
echo "configure:13459: checking for dnrm2_ in -lblas" >&5
13459
ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
13461
ac_save_LIBS="$LIBS"
13462
LIBS="-lblas $MATHLIB -lg2c $LIBS"
13463
cat > conftest.$ac_ext <<EOF
13464
#line 13465 "configure"
13465
#include "confdefs.h"
13466
/* Override any gcc2 internal prototype to avoid an error. */
13467
/* We use char because int might match the return type of a gcc2
13468
builtin and then its argument prototype would still apply. */
13475
if { (eval echo configure:13476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13477
eval "ac_cv_lib_$ac_lib_var=yes"
13479
echo "configure: failed program was:" >&5
13480
cat conftest.$ac_ext >&5
13482
eval "ac_cv_lib_$ac_lib_var=no"
13485
LIBS="$ac_save_LIBS"
13487
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13488
echo "$ac_t""yes" 1>&6
13489
BLASLIB="$BLASLIB -lblas -lg2c"
13491
echo "$ac_t""no" 1>&6
13493
LDFLAGS=${ac_save_ldflags}
13495
{ echo "configure: error: *** Unable to locate BLAS library." 1>&2; exit 1; }
13510
LDFLAGS=${ac_save_ldflags}
13516
save_LDFLAGS="$LDFLAGS"
13517
LDFLAGS="$BLASLIB $LDFLAGS"
13518
echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
13519
echo "configure:13520: checking for ATL_xerbla in -latlas" >&5
13520
ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
13522
ac_save_LIBS="$LIBS"
13523
LIBS="-latlas $LIBS"
13524
cat > conftest.$ac_ext <<EOF
13525
#line 13526 "configure"
13526
#include "confdefs.h"
13527
/* Override any gcc2 internal prototype to avoid an error. */
13528
/* We use char because int might match the return type of a gcc2
13529
builtin and then its argument prototype would still apply. */
13536
if { (eval echo configure:13537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13538
eval "ac_cv_lib_$ac_lib_var=yes"
13540
echo "configure: failed program was:" >&5
13541
cat conftest.$ac_ext >&5
13543
eval "ac_cv_lib_$ac_lib_var=no"
13546
LIBS="$ac_save_LIBS"
13548
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13549
echo "$ac_t""yes" 1>&6
13550
echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
13551
echo "configure:13552: checking for sgemm_ in -lf77blas" >&5
13552
ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
13554
ac_save_LIBS="$LIBS"
13555
LIBS="-lf77blas -latlas $LIBS"
13556
cat > conftest.$ac_ext <<EOF
13557
#line 13558 "configure"
13558
#include "confdefs.h"
13559
/* Override any gcc2 internal prototype to avoid an error. */
13560
/* We use char because int might match the return type of a gcc2
13561
builtin and then its argument prototype would still apply. */
13568
if { (eval echo configure:13569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13570
eval "ac_cv_lib_$ac_lib_var=yes"
13572
echo "configure: failed program was:" >&5
13573
cat conftest.$ac_ext >&5
13575
eval "ac_cv_lib_$ac_lib_var=no"
13578
LIBS="$ac_save_LIBS"
13580
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13581
echo "$ac_t""yes" 1>&6
13582
echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
13583
echo "configure:13584: checking for cblas_dgemm in -lcblas" >&5
13584
ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
13586
ac_save_LIBS="$LIBS"
13587
LIBS="-lcblas -lf77blas -latlas $LIBS"
13588
cat > conftest.$ac_ext <<EOF
13589
#line 13590 "configure"
13590
#include "confdefs.h"
13591
/* Override any gcc2 internal prototype to avoid an error. */
13592
/* We use char because int might match the return type of a gcc2
13593
builtin and then its argument prototype would still apply. */
13594
char cblas_dgemm();
13600
if { (eval echo configure:13601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13602
eval "ac_cv_lib_$ac_lib_var=yes"
13604
echo "configure: failed program was:" >&5
13605
cat conftest.$ac_ext >&5
13607
eval "ac_cv_lib_$ac_lib_var=no"
13610
LIBS="$ac_save_LIBS"
13612
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13613
echo "$ac_t""yes" 1>&6
13614
blas_ok=yes; BLASLIB="-lcblas -lf77blas -latlas"
13616
echo "$ac_t""no" 1>&6
13620
echo "$ac_t""no" 1>&6
13625
echo "$ac_t""no" 1>&6
13628
LDFLAGS="$save_LDFLAGS"
13630
# Do we have ATLAS?
13631
if test $blas_ok = yes; then
13632
cat >> confdefs.h <<\EOF
13633
#define HAVE_LIBATLAS 1
13638
# BLAS in Apple vecLib framework? (Mac OS-X)
13639
# not dependent on APP build
13640
#if test -n "$MACOSX_APP"; then
13641
if test $blas_ok = no; then
13642
vlib_flags="-framework vecLib"
13644
LIBS="$vlib_flags $LIBS"
13645
echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
13646
echo "configure:13647: checking for sgemm in $vlib_flags" >&5
13647
cat > conftest.$ac_ext <<EOF
13648
#line 13649 "configure"
13649
#include "confdefs.h"
13655
if { (eval echo configure:13656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13657
blas_ok=yes; BLASLIB="$vlib_flags"
13659
echo "configure: failed program was:" >&5
13660
cat conftest.$ac_ext >&5
13665
echo "$ac_t""$blas_ok" 1>&6
13670
# BLAS in PhiPACK libraries? (requires generic BLAS, too)
13671
if test $blas_ok = no; then
13672
echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
13673
echo "configure:13674: checking for sgemm_ in -lblas" >&5
13674
ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
13676
ac_save_LIBS="$LIBS"
13677
LIBS="-lblas $LIBS"
13678
cat > conftest.$ac_ext <<EOF
13679
#line 13680 "configure"
13680
#include "confdefs.h"
13681
/* Override any gcc2 internal prototype to avoid an error. */
13682
/* We use char because int might match the return type of a gcc2
13683
builtin and then its argument prototype would still apply. */
13690
if { (eval echo configure:13691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13692
eval "ac_cv_lib_$ac_lib_var=yes"
13694
echo "configure: failed program was:" >&5
13695
cat conftest.$ac_ext >&5
13697
eval "ac_cv_lib_$ac_lib_var=no"
13700
LIBS="$ac_save_LIBS"
13702
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13703
echo "$ac_t""yes" 1>&6
13704
echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
13705
echo "configure:13706: checking for dgemm_ in -ldgemm" >&5
13706
ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
13708
ac_save_LIBS="$LIBS"
13709
LIBS="-ldgemm -lblas $LIBS"
13710
cat > conftest.$ac_ext <<EOF
13711
#line 13712 "configure"
13712
#include "confdefs.h"
13713
/* Override any gcc2 internal prototype to avoid an error. */
13714
/* We use char because int might match the return type of a gcc2
13715
builtin and then its argument prototype would still apply. */
13722
if { (eval echo configure:13723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13724
eval "ac_cv_lib_$ac_lib_var=yes"
13726
echo "configure: failed program was:" >&5
13727
cat conftest.$ac_ext >&5
13729
eval "ac_cv_lib_$ac_lib_var=no"
13732
LIBS="$ac_save_LIBS"
13734
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13735
echo "$ac_t""yes" 1>&6
13736
echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
13737
echo "configure:13738: checking for sgemm_ in -lsgemm" >&5
13738
ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
13740
ac_save_LIBS="$LIBS"
13741
LIBS="-lsgemm -lblas $LIBS"
13742
cat > conftest.$ac_ext <<EOF
13743
#line 13744 "configure"
13744
#include "confdefs.h"
13745
/* Override any gcc2 internal prototype to avoid an error. */
13746
/* We use char because int might match the return type of a gcc2
13747
builtin and then its argument prototype would still apply. */
13754
if { (eval echo configure:13755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13756
eval "ac_cv_lib_$ac_lib_var=yes"
13758
echo "configure: failed program was:" >&5
13759
cat conftest.$ac_ext >&5
13761
eval "ac_cv_lib_$ac_lib_var=no"
13764
LIBS="$ac_save_LIBS"
13766
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13767
echo "$ac_t""yes" 1>&6
13768
blas_ok=yes; BLASLIB="-lsgemm -ldgemm -lblas"
13770
echo "$ac_t""no" 1>&6
13774
echo "$ac_t""no" 1>&6
13779
echo "$ac_t""no" 1>&6
13784
# BLAS in Sun Performance library?
13785
if test $blas_ok = no; then
13786
if test "x$GCC" != xyes; then # only works with Sun CC
13787
echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
13788
echo "configure:13789: checking for acosp in -lsunmath" >&5
13789
ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
13791
ac_save_LIBS="$LIBS"
13792
LIBS="-lsunmath $LIBS"
13793
cat > conftest.$ac_ext <<EOF
13794
#line 13795 "configure"
13795
#include "confdefs.h"
13796
/* Override any gcc2 internal prototype to avoid an error. */
13797
/* We use char because int might match the return type of a gcc2
13798
builtin and then its argument prototype would still apply. */
13805
if { (eval echo configure:13806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13807
eval "ac_cv_lib_$ac_lib_var=yes"
13809
echo "configure: failed program was:" >&5
13810
cat conftest.$ac_ext >&5
13812
eval "ac_cv_lib_$ac_lib_var=no"
13815
LIBS="$ac_save_LIBS"
13817
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13818
echo "$ac_t""yes" 1>&6
13819
echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
13820
echo "configure:13821: checking for sgemm_ in -lsunperf" >&5
13821
ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
13823
ac_save_LIBS="$LIBS"
13824
LIBS="-lsunperf -lsunmath $LIBS"
13825
cat > conftest.$ac_ext <<EOF
13826
#line 13827 "configure"
13827
#include "confdefs.h"
13828
/* Override any gcc2 internal prototype to avoid an error. */
13829
/* We use char because int might match the return type of a gcc2
13830
builtin and then its argument prototype would still apply. */
13837
if { (eval echo configure:13838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13839
eval "ac_cv_lib_$ac_lib_var=yes"
13841
echo "configure: failed program was:" >&5
13842
cat conftest.$ac_ext >&5
13844
eval "ac_cv_lib_$ac_lib_var=no"
13847
LIBS="$ac_save_LIBS"
13849
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13850
echo "$ac_t""yes" 1>&6
13851
blas_ok=yes; BLASLIB="-xlic_lib=sunperf -lsunmath"
13853
echo "$ac_t""no" 1>&6
13858
echo "$ac_t""no" 1>&6
13864
# Generic BLAS library
13865
if test $blas_ok = no; then
13866
echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
13867
echo "configure:13868: checking for sgemm_ in -lblas" >&5
13868
ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
13870
ac_save_LIBS="$LIBS"
13871
LIBS="-lblas $LIBS"
13872
cat > conftest.$ac_ext <<EOF
13873
#line 13874 "configure"
13874
#include "confdefs.h"
13875
/* Override any gcc2 internal prototype to avoid an error. */
13876
/* We use char because int might match the return type of a gcc2
13877
builtin and then its argument prototype would still apply. */
13884
if { (eval echo configure:13885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13886
eval "ac_cv_lib_$ac_lib_var=yes"
13888
echo "configure: failed program was:" >&5
13889
cat conftest.$ac_ext >&5
13891
eval "ac_cv_lib_$ac_lib_var=no"
13894
LIBS="$ac_save_LIBS"
13896
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13897
echo "$ac_t""yes" 1>&6
13898
blas_ok=yes; BLASLIB="-lblas"
13900
echo "$ac_t""no" 1>&6
13905
if test $blas_ok = yes; then
13906
cat >> confdefs.h <<\EOF
13907
#define HAVE_LIBBLAS 1
13917
# Done checking BLAS
13919
# Enable LAPACK option
13922
echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
13923
echo "configure:13924: checking whether to use LAPACK" >&5
13924
echo "$ac_t"""$with_lapack"" 1>&6
13925
case "$with_lapack" in
13926
"no") USE_LAPACK= ;;
13927
"yes") USE_LAPACK="1" ;;
13928
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
13936
# LAPACK is useless without BLAS
13937
if test -n "$USE_BLAS"; then
13938
if test -n "$USE_LAPACK"; then
13940
# With LAPACK includes directory
13941
# LAPACK doesn't have includes (FORTRAN library)
13942
# With LAPACK library directory
13947
echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
13948
echo "configure:13949: checking for location of LAPACK includes" >&5
13949
case "$with_lapack_includes" in
13950
y | ye | yes | n | no)
13951
{ echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
13954
echo "$ac_t""$with_lapack_includes" 1>&6
13956
if test -n "$with_lapack_includes" ; then
13957
for dir in $with_lapack_includes; do
13958
if test -d "$dir"; then
13959
LAPACKINC="$LAPACKINC -I$dir"
13961
{ echo "configure: error: *** LAPACK includes directory $dir does not exist." 1>&2; exit 1; }
13967
echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
13968
echo "configure:13969: checking for location of LAPACK library" >&5
13969
case "$with_lapack_libs" in
13970
y | ye | yes | n | no)
13971
{ echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
13974
echo "$ac_t""$with_lapack_libs" 1>&6
13976
if test -n "$with_lapack_libs"; then
13977
for dir in $with_lapack_libs; do
13978
if test -d "$dir"; then
13979
LAPACKLIB="$LAPACKLIB -L$dir"
13981
{ echo "configure: error: *** LAPACK library directory $dir does not exist." 1>&2; exit 1; }
13987
# See if clapack.h exists (ATLAS)
13988
save_CPPFLAGS="$CPPFLAGS"
13989
CPPFLAGS="$LAPACKINC $CPPFLAGS"
13990
for ac_hdr in clapack.h
13992
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13993
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13994
echo "configure:13995: checking for $ac_hdr" >&5
13996
cat > conftest.$ac_ext <<EOF
13997
#line 13998 "configure"
13998
#include "confdefs.h"
14001
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14002
{ (eval echo configure:14003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14003
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14004
if test -z "$ac_err"; then
14006
eval "ac_cv_header_$ac_safe=yes"
14009
echo "configure: failed program was:" >&5
14010
cat conftest.$ac_ext >&5
14012
eval "ac_cv_header_$ac_safe=no"
14015
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14016
echo "$ac_t""yes" 1>&6
14017
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14018
cat >> confdefs.h <<EOF
14019
#define $ac_tr_hdr 1
14023
echo "$ac_t""no" 1>&6
14027
CPPFLAGS="$save_CPPFLAGS"
14029
# LAPACK linked to by default?
14030
if test lapack_ok=no; then
14031
save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
14032
save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
14033
echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
14034
echo "configure:14035: checking for dsegv_" >&5
14036
cat > conftest.$ac_ext <<EOF
14037
#line 14038 "configure"
14038
#include "confdefs.h"
14039
/* System header to define __stub macros and hopefully few prototypes,
14040
which can conflict with char dsegv_(); below. */
14041
#include <assert.h>
14042
/* Override any gcc2 internal prototype to avoid an error. */
14043
/* We use char because int might match the return type of a gcc2
14044
builtin and then its argument prototype would still apply. */
14049
/* The GNU C library defines this for functions which it implements
14050
to always fail with ENOSYS. Some functions are actually named
14051
something starting with __ and the normal name is an alias. */
14052
#if defined (__stub_dsegv_) || defined (__stub___dsegv_)
14060
if { (eval echo configure:14061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14062
eval "ac_cv_func_dsegv_=yes"
14064
echo "configure: failed program was:" >&5
14065
cat conftest.$ac_ext >&5
14067
eval "ac_cv_func_dsegv_=no"
14071
if eval "test \"`echo '$ac_cv_func_'dsegv_`\" = yes"; then
14072
echo "$ac_t""yes" 1>&6
14075
echo "$ac_t""no" 1>&6
14079
LDFLAGS="$save_LDFLAGS"
14082
# Generic LAPACK library?
14083
if test $lapack_ok = no; then
14084
save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
14085
save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
14086
echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
14087
echo "configure:14088: checking for desgv_ in -llapack" >&5
14088
ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
14090
ac_save_LIBS="$LIBS"
14091
LIBS="-llapack $FLIBS $LIBS"
14092
cat > conftest.$ac_ext <<EOF
14093
#line 14094 "configure"
14094
#include "confdefs.h"
14095
/* Override any gcc2 internal prototype to avoid an error. */
14096
/* We use char because int might match the return type of a gcc2
14097
builtin and then its argument prototype would still apply. */
14104
if { (eval echo configure:14105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14106
eval "ac_cv_lib_$ac_lib_var=yes"
14108
echo "configure: failed program was:" >&5
14109
cat conftest.$ac_ext >&5
14111
eval "ac_cv_lib_$ac_lib_var=no"
14114
LIBS="$ac_save_LIBS"
14116
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14117
echo "$ac_t""yes" 1>&6
14118
lapack_ok=yes; LAPACKLIB="-llapack"
14120
echo "$ac_t""no" 1>&6
14124
LDFLAGS="$save_LDFLAGS"
14127
if test $lapack_ok = no; then
14129
ac_save_ldflags="$LDFLAGS"
14130
LDFLAGS="$LAPACKLIB $LDFLAGS"
14135
echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
14136
echo "configure:14137: checking for dgesv_ in -llapack" >&5
14137
ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
14139
ac_save_LIBS="$LIBS"
14140
LIBS="-llapack $BLASLIB $MATHLIB $LIBS"
14141
cat > conftest.$ac_ext <<EOF
14142
#line 14143 "configure"
14143
#include "confdefs.h"
14144
/* Override any gcc2 internal prototype to avoid an error. */
14145
/* We use char because int might match the return type of a gcc2
14146
builtin and then its argument prototype would still apply. */
14153
if { (eval echo configure:14154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14155
eval "ac_cv_lib_$ac_lib_var=yes"
14157
echo "configure: failed program was:" >&5
14158
cat conftest.$ac_ext >&5
14160
eval "ac_cv_lib_$ac_lib_var=no"
14163
LIBS="$ac_save_LIBS"
14165
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14166
echo "$ac_t""yes" 1>&6
14167
LAPACKLIB="$LAPACKLIB -llapack "
14169
echo "$ac_t""no" 1>&6
14171
echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
14172
echo "configure:14173: checking for dgesv_ in -llapack" >&5
14173
ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
14175
ac_save_LIBS="$LIBS"
14176
LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
14177
cat > conftest.$ac_ext <<EOF
14178
#line 14179 "configure"
14179
#include "confdefs.h"
14180
/* Override any gcc2 internal prototype to avoid an error. */
14181
/* We use char because int might match the return type of a gcc2
14182
builtin and then its argument prototype would still apply. */
14189
if { (eval echo configure:14190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14191
eval "ac_cv_lib_$ac_lib_var=yes"
14193
echo "configure: failed program was:" >&5
14194
cat conftest.$ac_ext >&5
14196
eval "ac_cv_lib_$ac_lib_var=no"
14199
LIBS="$ac_save_LIBS"
14201
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14202
echo "$ac_t""yes" 1>&6
14203
LAPACKLIB="$LAPACKLIB -llapack -lg2c"
14205
echo "$ac_t""no" 1>&6
14207
LDFLAGS=${ac_save_ldflags}
14209
{ echo "configure: error: *** Unable to locate LAPACK library." 1>&2; exit 1; }
14224
LDFLAGS=${ac_save_ldflags}
14228
cat >> confdefs.h <<\EOF
14229
#define HAVE_LIBLAPACK 1
14239
# Done checking LAPACK
14241
# Enable Motif option
14244
echo $ac_n "checking whether to use Motif""... $ac_c" 1>&6
14245
echo "configure:14246: checking whether to use Motif" >&5
14246
echo "$ac_t"""$with_motif"" 1>&6
14247
case "$with_motif" in
14248
"no") USE_MOTIF= ;;
14249
"yes") USE_MOTIF="1" ;;
14250
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
14258
if test -n "$USE_MOTIF"; then
14260
# With Motif includes directory
14263
echo $ac_n "checking for location of Motif includes""... $ac_c" 1>&6
14264
echo "configure:14265: checking for location of Motif includes" >&5
14265
case "$with_motif_includes" in
14266
y | ye | yes | n | no)
14267
{ echo "configure: error: *** You must supply a directory to --with-motif-includes." 1>&2; exit 1; }
14270
echo "$ac_t""$with_motif_includes" 1>&6
14272
if test -n "$with_motif_includes" ; then
14273
for dir in $with_motif_includes; do
14274
if test -d "$dir"; then
14275
XMINC="$XMINC -I$dir"
14277
{ echo "configure: error: *** Motif includes directory $dir does not exist." 1>&2; exit 1; }
14284
ac_save_cppflags="$CPPFLAGS"
14285
CPPFLAGS="$XMINC $X_CFLAGS $CPPFLAGS"
14286
for ac_hdr in Xm/Xm.h
14288
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14289
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14290
echo "configure:14291: checking for $ac_hdr" >&5
14292
cat > conftest.$ac_ext <<EOF
14293
#line 14294 "configure"
14294
#include "confdefs.h"
14297
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14298
{ (eval echo configure:14299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14299
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14300
if test -z "$ac_err"; then
14302
eval "ac_cv_header_$ac_safe=yes"
14305
echo "configure: failed program was:" >&5
14306
cat conftest.$ac_ext >&5
14308
eval "ac_cv_header_$ac_safe=no"
14311
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14312
echo "$ac_t""yes" 1>&6
14313
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14314
cat >> confdefs.h <<EOF
14315
#define $ac_tr_hdr 1
14319
echo "$ac_t""no" 1>&6
14320
{ echo "configure: error: *** Unable to locate Motif includes." 1>&2; exit 1; }
14325
CPPFLAGS=$ac_save_cppflags
14328
# With Motif library directory
14331
echo $ac_n "checking for location of Motif library""... $ac_c" 1>&6
14332
echo "configure:14333: checking for location of Motif library" >&5
14333
case "$with_motif_libs" in
14334
y | ye | yes | n | no)
14335
{ echo "configure: error: *** You must supply a directory to --with-motif-libs." 1>&2; exit 1; }
14338
echo "$ac_t""$with_motif_libs" 1>&6
14340
if test -n "$with_motif_libs"; then
14341
for dir in $with_motif_libs; do
14342
if test -d "$dir"; then
14343
XMLIB="$XMLIB -L$dir"
14345
{ echo "configure: error: *** Motif library directory $dir does not exist." 1>&2; exit 1; }
14352
ac_save_ldflags="$LDFLAGS"
14353
LDFLAGS="$XMLIB $LDFLAGS"
14356
echo $ac_n "checking for XmStringCreate in -lXm""... $ac_c" 1>&6
14357
echo "configure:14358: checking for XmStringCreate in -lXm" >&5
14358
ac_lib_var=`echo Xm'_'XmStringCreate | sed 'y%./+-%__p_%'`
14360
ac_save_LIBS="$LIBS"
14361
LIBS="-lXm $X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14362
cat > conftest.$ac_ext <<EOF
14363
#line 14364 "configure"
14364
#include "confdefs.h"
14365
/* Override any gcc2 internal prototype to avoid an error. */
14366
/* We use char because int might match the return type of a gcc2
14367
builtin and then its argument prototype would still apply. */
14368
char XmStringCreate();
14374
if { (eval echo configure:14375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14376
eval "ac_cv_lib_$ac_lib_var=yes"
14378
echo "configure: failed program was:" >&5
14379
cat conftest.$ac_ext >&5
14381
eval "ac_cv_lib_$ac_lib_var=no"
14384
LIBS="$ac_save_LIBS"
14386
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14387
echo "$ac_t""yes" 1>&6
14388
XMLIB="$XMLIB -lXm "
14390
echo "$ac_t""no" 1>&6
14392
LDFLAGS=${ac_save_ldflags}
14394
{ echo "configure: error: *** Unable to locate Motif library." 1>&2; exit 1; }
14401
LDFLAGS=${ac_save_ldflags}
14409
# Done checking Motif
14411
# Enable Cairo display driver option
14414
echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
14415
echo "configure:14416: checking whether to use Cairo" >&5
14416
echo "$ac_t"""$with_cairo"" 1>&6
14417
case "$with_cairo" in
14418
"no") USE_CAIRO= ;;
14419
"yes") USE_CAIRO="1" ;;
14420
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
14428
if test -n "$USE_CAIRO"; then
14430
cairo="cairo cairo-ft"
14431
if test -n "$USE_X11"; then
14432
cairo="$cairo cairo-xlib-xrender"
14435
# With Cairo includes directory
14436
#FIXME: somehow quote dirs with spaces in $cairo ?
14437
CAIROINC=`pkg-config --cflags $cairo`
14440
echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
14441
echo "configure:14442: checking for location of cairo includes" >&5
14442
case "$with_cairo_includes" in
14443
y | ye | yes | n | no)
14444
{ echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
14447
echo "$ac_t""$with_cairo_includes" 1>&6
14449
if test -n "$with_cairo_includes" ; then
14450
for dir in $with_cairo_includes; do
14451
if test -d "$dir"; then
14452
CAIROINC="$CAIROINC -I$dir"
14454
{ echo "configure: error: *** cairo includes directory $dir does not exist." 1>&2; exit 1; }
14461
ac_save_cppflags="$CPPFLAGS"
14462
CPPFLAGS="$CAIROINC $CPPFLAGS"
14463
for ac_hdr in cairo.h
14465
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14466
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14467
echo "configure:14468: checking for $ac_hdr" >&5
14469
cat > conftest.$ac_ext <<EOF
14470
#line 14471 "configure"
14471
#include "confdefs.h"
14474
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14475
{ (eval echo configure:14476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14476
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14477
if test -z "$ac_err"; then
14479
eval "ac_cv_header_$ac_safe=yes"
14482
echo "configure: failed program was:" >&5
14483
cat conftest.$ac_ext >&5
14485
eval "ac_cv_header_$ac_safe=no"
14488
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14489
echo "$ac_t""yes" 1>&6
14490
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14491
cat >> confdefs.h <<EOF
14492
#define $ac_tr_hdr 1
14496
echo "$ac_t""no" 1>&6
14497
{ echo "configure: error: *** Unable to locate Cairo includes." 1>&2; exit 1; }
14502
CPPFLAGS=$ac_save_cppflags
14505
# With Cairo library directory
14507
CAIROLIB=`pkg-config --libs $cairo`
14510
echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
14511
echo "configure:14512: checking for location of cairo library" >&5
14512
case "$with_cairo_libs" in
14513
y | ye | yes | n | no)
14514
{ echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
14517
echo "$ac_t""$with_cairo_libs" 1>&6
14519
if test -n "$with_cairo_libs"; then
14520
for dir in $with_cairo_libs; do
14521
if test -d "$dir"; then
14522
CAIROLIB="$CAIROLIB -L$dir"
14524
{ echo "configure: error: *** cairo library directory $dir does not exist." 1>&2; exit 1; }
14530
echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
14531
echo "configure:14532: checking for cairo linking flags" >&5
14532
case "$with_cairo_ldflags" in
14533
y | ye | yes | n | no)
14534
{ echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
14537
echo "$ac_t""$with_cairo_ldflags" 1>&6
14538
CAIROLIB="$CAIROLIB $with_cairo_ldflags"
14542
ac_save_libs="$LIBS"
14543
ac_save_ldflags="$LDFLAGS"
14544
LIBS=" $CAIROLIB $LIBS"
14545
LDFLAGS=" $LDFLAGS"
14546
echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
14547
echo "configure:14548: checking for cairo_create" >&5
14549
cat > conftest.$ac_ext <<EOF
14550
#line 14551 "configure"
14551
#include "confdefs.h"
14552
/* System header to define __stub macros and hopefully few prototypes,
14553
which can conflict with char cairo_create(); below. */
14554
#include <assert.h>
14555
/* Override any gcc2 internal prototype to avoid an error. */
14556
/* We use char because int might match the return type of a gcc2
14557
builtin and then its argument prototype would still apply. */
14558
char cairo_create();
14562
/* The GNU C library defines this for functions which it implements
14563
to always fail with ENOSYS. Some functions are actually named
14564
something starting with __ and the normal name is an alias. */
14565
#if defined (__stub_cairo_create) || defined (__stub___cairo_create)
14573
if { (eval echo configure:14574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14575
eval "ac_cv_func_cairo_create=yes"
14577
echo "configure: failed program was:" >&5
14578
cat conftest.$ac_ext >&5
14580
eval "ac_cv_func_cairo_create=no"
14584
if eval "test \"`echo '$ac_cv_func_'cairo_create`\" = yes"; then
14585
echo "$ac_t""yes" 1>&6
14590
echo "$ac_t""no" 1>&6
14593
{ echo "configure: error: *** Unable to locate ." 1>&2; exit 1; }
14598
LIBS=${ac_save_libs}
14599
LDFLAGS=${ac_save_ldflags}
14602
ac_save_libs="$LIBS"
14603
ac_save_ldflags="$LDFLAGS"
14604
LIBS=" $CAIROLIB $LIBS"
14605
LDFLAGS=" $LDFLAGS"
14606
echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
14607
echo "configure:14608: checking for cairo_xlib_surface_create_with_xrender_format" >&5
14609
cat > conftest.$ac_ext <<EOF
14610
#line 14611 "configure"
14611
#include "confdefs.h"
14612
/* System header to define __stub macros and hopefully few prototypes,
14613
which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below. */
14614
#include <assert.h>
14615
/* Override any gcc2 internal prototype to avoid an error. */
14616
/* We use char because int might match the return type of a gcc2
14617
builtin and then its argument prototype would still apply. */
14618
char cairo_xlib_surface_create_with_xrender_format();
14622
/* The GNU C library defines this for functions which it implements
14623
to always fail with ENOSYS. Some functions are actually named
14624
something starting with __ and the normal name is an alias. */
14625
#if defined (__stub_cairo_xlib_surface_create_with_xrender_format) || defined (__stub___cairo_xlib_surface_create_with_xrender_format)
14628
cairo_xlib_surface_create_with_xrender_format();
14633
if { (eval echo configure:14634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14635
eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
14637
echo "configure: failed program was:" >&5
14638
cat conftest.$ac_ext >&5
14640
eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=no"
14644
if eval "test \"`echo '$ac_cv_func_'cairo_xlib_surface_create_with_xrender_format`\" = yes"; then
14645
echo "$ac_t""yes" 1>&6
14647
CAIRO_HAS_XRENDER=1
14650
echo "$ac_t""no" 1>&6
14652
CAIRO_HAS_XRENDER=0
14656
LIBS=${ac_save_libs}
14657
LDFLAGS=${ac_save_ldflags}
14661
CAIROLIB="$CAIROLIB $CAIROLDFLAGS"
14669
# Done checking Cairo
14671
# Enable GLw option
14674
echo $ac_n "checking whether to use GLw""... $ac_c" 1>&6
14675
echo "configure:14676: checking whether to use GLw" >&5
14676
echo "$ac_t"""$with_glw"" 1>&6
14677
case "$with_glw" in
14679
"yes") USE_GLW="1" ;;
14680
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
14688
if test -n "$USE_GLW"; then
14690
# With GLw includes directory
14693
echo $ac_n "checking for location of GLw includes""... $ac_c" 1>&6
14694
echo "configure:14695: checking for location of GLw includes" >&5
14695
case "$with_glw_includes" in
14696
y | ye | yes | n | no)
14697
{ echo "configure: error: *** You must supply a directory to --with-glw-includes." 1>&2; exit 1; }
14700
echo "$ac_t""$with_glw_includes" 1>&6
14702
if test -n "$with_glw_includes" ; then
14703
for dir in $with_glw_includes; do
14704
if test -d "$dir"; then
14705
OPENGLWINC="$OPENGLWINC -I$dir"
14707
{ echo "configure: error: *** GLw includes directory $dir does not exist." 1>&2; exit 1; }
14714
ac_save_cppflags="$CPPFLAGS"
14715
CPPFLAGS="$OPENGLWINC $XMINC $X_CFLAGS $OPENGLINC $CPPFLAGS"
14716
for ac_hdr in GL/GLwMDrawA.h
14718
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14719
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14720
echo "configure:14721: checking for $ac_hdr" >&5
14722
cat > conftest.$ac_ext <<EOF
14723
#line 14724 "configure"
14724
#include "confdefs.h"
14727
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14728
{ (eval echo configure:14729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14729
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14730
if test -z "$ac_err"; then
14732
eval "ac_cv_header_$ac_safe=yes"
14735
echo "configure: failed program was:" >&5
14736
cat conftest.$ac_ext >&5
14738
eval "ac_cv_header_$ac_safe=no"
14741
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14742
echo "$ac_t""yes" 1>&6
14743
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14744
cat >> confdefs.h <<EOF
14745
#define $ac_tr_hdr 1
14749
echo "$ac_t""no" 1>&6
14750
ac_save_cppflags="$CPPFLAGS"
14751
CPPFLAGS=" $CPPFLAGS"
14752
for ac_hdr in X11/GLw/GLwMDrawA.h
14754
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14755
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14756
echo "configure:14757: checking for $ac_hdr" >&5
14758
cat > conftest.$ac_ext <<EOF
14759
#line 14760 "configure"
14760
#include "confdefs.h"
14763
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14764
{ (eval echo configure:14765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14765
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14766
if test -z "$ac_err"; then
14768
eval "ac_cv_header_$ac_safe=yes"
14771
echo "configure: failed program was:" >&5
14772
cat conftest.$ac_ext >&5
14774
eval "ac_cv_header_$ac_safe=no"
14777
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14778
echo "$ac_t""yes" 1>&6
14779
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14780
cat >> confdefs.h <<EOF
14781
#define $ac_tr_hdr 1
14785
echo "$ac_t""no" 1>&6
14786
{ echo "configure: error: *** Unable to locate GLwM includes." 1>&2; exit 1; }
14791
CPPFLAGS=$ac_save_cppflags
14797
CPPFLAGS=$ac_save_cppflags
14800
# With GLw library directory
14803
echo $ac_n "checking for location of GLw library""... $ac_c" 1>&6
14804
echo "configure:14805: checking for location of GLw library" >&5
14805
case "$with_glw_libs" in
14806
y | ye | yes | n | no)
14807
{ echo "configure: error: *** You must supply a directory to --with-glw-libs." 1>&2; exit 1; }
14810
echo "$ac_t""$with_glw_libs" 1>&6
14812
if test -n "$with_glw_libs"; then
14813
for dir in $with_glw_libs; do
14814
if test -d "$dir"; then
14815
OPENGLWM="$OPENGLWM -L$dir"
14817
{ echo "configure: error: *** GLw library directory $dir does not exist." 1>&2; exit 1; }
14824
ac_save_ldflags="$LDFLAGS"
14825
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
14828
echo $ac_n "checking for GLwCreateMDrawingArea in -lGLw""... $ac_c" 1>&6
14829
echo "configure:14830: checking for GLwCreateMDrawingArea in -lGLw" >&5
14830
ac_lib_var=`echo GLw'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
14832
ac_save_LIBS="$LIBS"
14833
LIBS="-lGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
14834
cat > conftest.$ac_ext <<EOF
14835
#line 14836 "configure"
14836
#include "confdefs.h"
14837
/* Override any gcc2 internal prototype to avoid an error. */
14838
/* We use char because int might match the return type of a gcc2
14839
builtin and then its argument prototype would still apply. */
14840
char GLwCreateMDrawingArea();
14843
GLwCreateMDrawingArea()
14846
if { (eval echo configure:14847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14848
eval "ac_cv_lib_$ac_lib_var=yes"
14850
echo "configure: failed program was:" >&5
14851
cat conftest.$ac_ext >&5
14853
eval "ac_cv_lib_$ac_lib_var=no"
14856
LIBS="$ac_save_LIBS"
14858
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14859
echo "$ac_t""yes" 1>&6
14860
OPENGLWM="$OPENGLWM -lGLw "
14862
echo "$ac_t""no" 1>&6
14864
LDFLAGS=${ac_save_ldflags}
14866
ac_save_ldflags="$LDFLAGS"
14867
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
14870
echo $ac_n "checking for GLwCreateM1DrawingArea in -lGLw""... $ac_c" 1>&6
14871
echo "configure:14872: checking for GLwCreateM1DrawingArea in -lGLw" >&5
14872
ac_lib_var=`echo GLw'_'GLwCreateM1DrawingArea | sed 'y%./+-%__p_%'`
14874
ac_save_LIBS="$LIBS"
14875
LIBS="-lGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
14876
cat > conftest.$ac_ext <<EOF
14877
#line 14878 "configure"
14878
#include "confdefs.h"
14879
/* Override any gcc2 internal prototype to avoid an error. */
14880
/* We use char because int might match the return type of a gcc2
14881
builtin and then its argument prototype would still apply. */
14882
char GLwCreateM1DrawingArea();
14885
GLwCreateM1DrawingArea()
14888
if { (eval echo configure:14889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14890
eval "ac_cv_lib_$ac_lib_var=yes"
14892
echo "configure: failed program was:" >&5
14893
cat conftest.$ac_ext >&5
14895
eval "ac_cv_lib_$ac_lib_var=no"
14898
LIBS="$ac_save_LIBS"
14900
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14901
echo "$ac_t""yes" 1>&6
14902
OPENGLWM="$OPENGLWM -lGLw "
14904
echo "$ac_t""no" 1>&6
14906
LDFLAGS=${ac_save_ldflags}
14908
ac_save_ldflags="$LDFLAGS"
14909
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
14912
echo $ac_n "checking for GLwCreateM2DrawingArea in -lGLw""... $ac_c" 1>&6
14913
echo "configure:14914: checking for GLwCreateM2DrawingArea in -lGLw" >&5
14914
ac_lib_var=`echo GLw'_'GLwCreateM2DrawingArea | sed 'y%./+-%__p_%'`
14916
ac_save_LIBS="$LIBS"
14917
LIBS="-lGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
14918
cat > conftest.$ac_ext <<EOF
14919
#line 14920 "configure"
14920
#include "confdefs.h"
14921
/* Override any gcc2 internal prototype to avoid an error. */
14922
/* We use char because int might match the return type of a gcc2
14923
builtin and then its argument prototype would still apply. */
14924
char GLwCreateM2DrawingArea();
14927
GLwCreateM2DrawingArea()
14930
if { (eval echo configure:14931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14932
eval "ac_cv_lib_$ac_lib_var=yes"
14934
echo "configure: failed program was:" >&5
14935
cat conftest.$ac_ext >&5
14937
eval "ac_cv_lib_$ac_lib_var=no"
14940
LIBS="$ac_save_LIBS"
14942
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14943
echo "$ac_t""yes" 1>&6
14944
OPENGLWM="$OPENGLWM -lGLw "
14946
echo "$ac_t""no" 1>&6
14948
LDFLAGS=${ac_save_ldflags}
14950
ac_save_ldflags="$LDFLAGS"
14951
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
14954
echo $ac_n "checking for GLwCreateMDrawingArea in -lGLwM""... $ac_c" 1>&6
14955
echo "configure:14956: checking for GLwCreateMDrawingArea in -lGLwM" >&5
14956
ac_lib_var=`echo GLwM'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
14958
ac_save_LIBS="$LIBS"
14959
LIBS="-lGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
14960
cat > conftest.$ac_ext <<EOF
14961
#line 14962 "configure"
14962
#include "confdefs.h"
14963
/* Override any gcc2 internal prototype to avoid an error. */
14964
/* We use char because int might match the return type of a gcc2
14965
builtin and then its argument prototype would still apply. */
14966
char GLwCreateMDrawingArea();
14969
GLwCreateMDrawingArea()
14972
if { (eval echo configure:14973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14974
eval "ac_cv_lib_$ac_lib_var=yes"
14976
echo "configure: failed program was:" >&5
14977
cat conftest.$ac_ext >&5
14979
eval "ac_cv_lib_$ac_lib_var=no"
14982
LIBS="$ac_save_LIBS"
14984
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14985
echo "$ac_t""yes" 1>&6
14986
OPENGLWM="$OPENGLWM -lGLwM "
14988
echo "$ac_t""no" 1>&6
14990
LDFLAGS=${ac_save_ldflags}
14992
ac_save_ldflags="$LDFLAGS"
14993
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
14996
echo $ac_n "checking for GLwCreateM1DrawingArea in -lGLwM""... $ac_c" 1>&6
14997
echo "configure:14998: checking for GLwCreateM1DrawingArea in -lGLwM" >&5
14998
ac_lib_var=`echo GLwM'_'GLwCreateM1DrawingArea | sed 'y%./+-%__p_%'`
15000
ac_save_LIBS="$LIBS"
15001
LIBS="-lGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
15002
cat > conftest.$ac_ext <<EOF
15003
#line 15004 "configure"
15004
#include "confdefs.h"
15005
/* Override any gcc2 internal prototype to avoid an error. */
15006
/* We use char because int might match the return type of a gcc2
15007
builtin and then its argument prototype would still apply. */
15008
char GLwCreateM1DrawingArea();
15011
GLwCreateM1DrawingArea()
15014
if { (eval echo configure:15015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15016
eval "ac_cv_lib_$ac_lib_var=yes"
15018
echo "configure: failed program was:" >&5
15019
cat conftest.$ac_ext >&5
15021
eval "ac_cv_lib_$ac_lib_var=no"
15024
LIBS="$ac_save_LIBS"
15026
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15027
echo "$ac_t""yes" 1>&6
15028
OPENGLWM="$OPENGLWM -lGLwM "
15030
echo "$ac_t""no" 1>&6
15032
LDFLAGS=${ac_save_ldflags}
15034
ac_save_ldflags="$LDFLAGS"
15035
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
15038
echo $ac_n "checking for GLwCreateM2DrawingArea in -lGLwM""... $ac_c" 1>&6
15039
echo "configure:15040: checking for GLwCreateM2DrawingArea in -lGLwM" >&5
15040
ac_lib_var=`echo GLwM'_'GLwCreateM2DrawingArea | sed 'y%./+-%__p_%'`
15042
ac_save_LIBS="$LIBS"
15043
LIBS="-lGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
15044
cat > conftest.$ac_ext <<EOF
15045
#line 15046 "configure"
15046
#include "confdefs.h"
15047
/* Override any gcc2 internal prototype to avoid an error. */
15048
/* We use char because int might match the return type of a gcc2
15049
builtin and then its argument prototype would still apply. */
15050
char GLwCreateM2DrawingArea();
15053
GLwCreateM2DrawingArea()
15056
if { (eval echo configure:15057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15058
eval "ac_cv_lib_$ac_lib_var=yes"
15060
echo "configure: failed program was:" >&5
15061
cat conftest.$ac_ext >&5
15063
eval "ac_cv_lib_$ac_lib_var=no"
15066
LIBS="$ac_save_LIBS"
15068
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15069
echo "$ac_t""yes" 1>&6
15070
OPENGLWM="$OPENGLWM -lGLwM "
15072
echo "$ac_t""no" 1>&6
15074
LDFLAGS=${ac_save_ldflags}
15076
ac_save_ldflags="$LDFLAGS"
15077
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
15082
echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLw""... $ac_c" 1>&6
15083
echo "configure:15084: checking for GLwCreateMDrawingArea in -lMesaGLw" >&5
15084
ac_lib_var=`echo MesaGLw'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
15086
ac_save_LIBS="$LIBS"
15087
LIBS="-lMesaGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
15088
cat > conftest.$ac_ext <<EOF
15089
#line 15090 "configure"
15090
#include "confdefs.h"
15091
/* Override any gcc2 internal prototype to avoid an error. */
15092
/* We use char because int might match the return type of a gcc2
15093
builtin and then its argument prototype would still apply. */
15094
char GLwCreateMDrawingArea();
15097
GLwCreateMDrawingArea()
15100
if { (eval echo configure:15101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15102
eval "ac_cv_lib_$ac_lib_var=yes"
15104
echo "configure: failed program was:" >&5
15105
cat conftest.$ac_ext >&5
15107
eval "ac_cv_lib_$ac_lib_var=no"
15110
LIBS="$ac_save_LIBS"
15112
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15113
echo "$ac_t""yes" 1>&6
15114
OPENGLWM="$OPENGLWM -lMesaGLw "
15116
echo "$ac_t""no" 1>&6
15118
echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLw""... $ac_c" 1>&6
15119
echo "configure:15120: checking for GLwCreateMDrawingArea in -lMesaGLw" >&5
15120
ac_lib_var=`echo MesaGLw'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
15122
ac_save_LIBS="$LIBS"
15123
LIBS="-lMesaGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $OPENGLULIB $LIBS"
15124
cat > conftest.$ac_ext <<EOF
15125
#line 15126 "configure"
15126
#include "confdefs.h"
15127
/* Override any gcc2 internal prototype to avoid an error. */
15128
/* We use char because int might match the return type of a gcc2
15129
builtin and then its argument prototype would still apply. */
15130
char GLwCreateMDrawingArea();
15133
GLwCreateMDrawingArea()
15136
if { (eval echo configure:15137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15138
eval "ac_cv_lib_$ac_lib_var=yes"
15140
echo "configure: failed program was:" >&5
15141
cat conftest.$ac_ext >&5
15143
eval "ac_cv_lib_$ac_lib_var=no"
15146
LIBS="$ac_save_LIBS"
15148
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15149
echo "$ac_t""yes" 1>&6
15150
OPENGLWM="$OPENGLWM -lMesaGLw $OPENGLULIB"
15152
echo "$ac_t""no" 1>&6
15154
LDFLAGS=${ac_save_ldflags}
15156
ac_save_ldflags="$LDFLAGS"
15157
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
15162
echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLwM""... $ac_c" 1>&6
15163
echo "configure:15164: checking for GLwCreateMDrawingArea in -lMesaGLwM" >&5
15164
ac_lib_var=`echo MesaGLwM'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
15166
ac_save_LIBS="$LIBS"
15167
LIBS="-lMesaGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $LIBS"
15168
cat > conftest.$ac_ext <<EOF
15169
#line 15170 "configure"
15170
#include "confdefs.h"
15171
/* Override any gcc2 internal prototype to avoid an error. */
15172
/* We use char because int might match the return type of a gcc2
15173
builtin and then its argument prototype would still apply. */
15174
char GLwCreateMDrawingArea();
15177
GLwCreateMDrawingArea()
15180
if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15182
eval "ac_cv_lib_$ac_lib_var=yes"
15184
echo "configure: failed program was:" >&5
15185
cat conftest.$ac_ext >&5
15187
eval "ac_cv_lib_$ac_lib_var=no"
15190
LIBS="$ac_save_LIBS"
15192
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15193
echo "$ac_t""yes" 1>&6
15194
OPENGLWM="$OPENGLWM -lMesaGLwM "
15196
echo "$ac_t""no" 1>&6
15198
echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLwM""... $ac_c" 1>&6
15199
echo "configure:15200: checking for GLwCreateMDrawingArea in -lMesaGLwM" >&5
15200
ac_lib_var=`echo MesaGLwM'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
15202
ac_save_LIBS="$LIBS"
15203
LIBS="-lMesaGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $OPENGLULIB $LIBS"
15204
cat > conftest.$ac_ext <<EOF
15205
#line 15206 "configure"
15206
#include "confdefs.h"
15207
/* Override any gcc2 internal prototype to avoid an error. */
15208
/* We use char because int might match the return type of a gcc2
15209
builtin and then its argument prototype would still apply. */
15210
char GLwCreateMDrawingArea();
15213
GLwCreateMDrawingArea()
15216
if { (eval echo configure:15217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15218
eval "ac_cv_lib_$ac_lib_var=yes"
15220
echo "configure: failed program was:" >&5
15221
cat conftest.$ac_ext >&5
15223
eval "ac_cv_lib_$ac_lib_var=no"
15226
LIBS="$ac_save_LIBS"
15228
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15229
echo "$ac_t""yes" 1>&6
15230
OPENGLWM="$OPENGLWM -lMesaGLwM $OPENGLULIB"
15232
echo "$ac_t""no" 1>&6
15234
LDFLAGS=${ac_save_ldflags}
15236
{ echo "configure: error: *** Unable to locate GLwM library." 1>&2; exit 1; }
15251
LDFLAGS=${ac_save_ldflags}
15267
LDFLAGS=${ac_save_ldflags}
15275
LDFLAGS=${ac_save_ldflags}
15283
LDFLAGS=${ac_save_ldflags}
15291
LDFLAGS=${ac_save_ldflags}
15299
LDFLAGS=${ac_save_ldflags}
15307
LDFLAGS=${ac_save_ldflags}
15315
LDFLAGS=${ac_save_ldflags}
15318
fi # $USE_OPENGL && $USE_MOTIF
15323
# Done checking GLw
15325
# Enable FreeType option
15328
echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
15329
echo "configure:15330: checking whether to use FreeType" >&5
15330
echo "$ac_t"""$with_freetype"" 1>&6
15331
case "$with_freetype" in
15332
"no") USE_FREETYPE= ;;
15333
"yes") USE_FREETYPE="1" ;;
15334
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
15342
if test -n "$USE_FREETYPE"; then
15344
# With FreeType includes directory
15347
echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
15348
echo "configure:15349: checking for location of FreeType includes" >&5
15349
case "$with_freetype_includes" in
15350
y | ye | yes | n | no)
15351
{ echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
15354
echo "$ac_t""$with_freetype_includes" 1>&6
15356
if test -n "$with_freetype_includes" ; then
15357
for dir in $with_freetype_includes; do
15358
if test -d "$dir"; then
15359
FTINC="$FTINC -I$dir"
15361
{ echo "configure: error: *** FreeType includes directory $dir does not exist." 1>&2; exit 1; }
15368
ac_save_cppflags="$CPPFLAGS"
15369
CPPFLAGS="$FTINC $CPPFLAGS"
15370
for ac_hdr in ft2build.h
15372
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15373
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15374
echo "configure:15375: checking for $ac_hdr" >&5
15376
cat > conftest.$ac_ext <<EOF
15377
#line 15378 "configure"
15378
#include "confdefs.h"
15381
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15382
{ (eval echo configure:15383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15383
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15384
if test -z "$ac_err"; then
15386
eval "ac_cv_header_$ac_safe=yes"
15389
echo "configure: failed program was:" >&5
15390
cat conftest.$ac_ext >&5
15392
eval "ac_cv_header_$ac_safe=no"
15395
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15396
echo "$ac_t""yes" 1>&6
15397
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15398
cat >> confdefs.h <<EOF
15399
#define $ac_tr_hdr 1
15403
echo "$ac_t""no" 1>&6
15404
{ echo "configure: error: *** Unable to locate FreeType includes." 1>&2; exit 1; }
15409
CPPFLAGS=$ac_save_cppflags
15412
# With FreeType library directory
15415
echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
15416
echo "configure:15417: checking for location of FreeType library" >&5
15417
case "$with_freetype_libs" in
15418
y | ye | yes | n | no)
15419
{ echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
15422
echo "$ac_t""$with_freetype_libs" 1>&6
15424
if test -n "$with_freetype_libs"; then
15425
for dir in $with_freetype_libs; do
15426
if test -d "$dir"; then
15427
FTLIB="$FTLIB -L$dir"
15429
{ echo "configure: error: *** FreeType library directory $dir does not exist." 1>&2; exit 1; }
15436
ac_save_ldflags="$LDFLAGS"
15437
LDFLAGS="$FTLIB $LDFLAGS"
15440
echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
15441
echo "configure:15442: checking for FT_Init_FreeType in -lfreetype" >&5
15442
ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
15444
ac_save_LIBS="$LIBS"
15445
LIBS="-lfreetype $LIBS"
15446
cat > conftest.$ac_ext <<EOF
15447
#line 15448 "configure"
15448
#include "confdefs.h"
15449
/* Override any gcc2 internal prototype to avoid an error. */
15450
/* We use char because int might match the return type of a gcc2
15451
builtin and then its argument prototype would still apply. */
15452
char FT_Init_FreeType();
15458
if { (eval echo configure:15459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15460
eval "ac_cv_lib_$ac_lib_var=yes"
15462
echo "configure: failed program was:" >&5
15463
cat conftest.$ac_ext >&5
15465
eval "ac_cv_lib_$ac_lib_var=no"
15468
LIBS="$ac_save_LIBS"
15470
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15471
echo "$ac_t""yes" 1>&6
15472
FTLIB="$FTLIB -lfreetype "
15474
echo "$ac_t""no" 1>&6
15476
LDFLAGS=${ac_save_ldflags}
15478
{ echo "configure: error: *** Unable to locate FreeType library." 1>&2; exit 1; }
15485
LDFLAGS=${ac_save_ldflags}
15493
# Done checking FreeType
15495
# Enable NLS option
15498
echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
15499
echo "configure:15500: checking whether to use NLS" >&5
15500
echo "$ac_t"""$with_nls"" 1>&6
15501
case "$with_nls" in
15503
"yes") USE_NLS="1" ;;
15504
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
15512
if test -n "${USE_NLS}" ; then
15513
cat >> confdefs.h <<\EOF
15518
echo $ac_n "checking for gettext""... $ac_c" 1>&6
15519
echo "configure:15520: checking for gettext" >&5
15521
cat > conftest.$ac_ext <<EOF
15522
#line 15523 "configure"
15523
#include "confdefs.h"
15524
/* System header to define __stub macros and hopefully few prototypes,
15525
which can conflict with char gettext(); below. */
15526
#include <assert.h>
15527
/* Override any gcc2 internal prototype to avoid an error. */
15528
/* We use char because int might match the return type of a gcc2
15529
builtin and then its argument prototype would still apply. */
15534
/* The GNU C library defines this for functions which it implements
15535
to always fail with ENOSYS. Some functions are actually named
15536
something starting with __ and the normal name is an alias. */
15537
#if defined (__stub_gettext) || defined (__stub___gettext)
15545
if { (eval echo configure:15546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15547
eval "ac_cv_func_gettext=yes"
15549
echo "configure: failed program was:" >&5
15550
cat conftest.$ac_ext >&5
15552
eval "ac_cv_func_gettext=no"
15556
if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
15557
echo "$ac_t""yes" 1>&6
15560
echo "$ac_t""no" 1>&6
15562
echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
15563
echo "configure:15564: checking for gettext in -lintl" >&5
15564
ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
15566
ac_save_LIBS="$LIBS"
15567
LIBS="-lintl $LIBS"
15568
cat > conftest.$ac_ext <<EOF
15569
#line 15570 "configure"
15570
#include "confdefs.h"
15571
/* Override any gcc2 internal prototype to avoid an error. */
15572
/* We use char because int might match the return type of a gcc2
15573
builtin and then its argument prototype would still apply. */
15580
if { (eval echo configure:15581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15582
eval "ac_cv_lib_$ac_lib_var=yes"
15584
echo "configure: failed program was:" >&5
15585
cat conftest.$ac_ext >&5
15587
eval "ac_cv_lib_$ac_lib_var=no"
15590
LIBS="$ac_save_LIBS"
15592
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15593
echo "$ac_t""yes" 1>&6
15596
echo "$ac_t""no" 1>&6
15598
{ echo "configure: error: *** Unable to locate gettext() function." 1>&2; exit 1; }
15611
# Enable C++ option
15614
echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
15615
echo "configure:15616: checking whether to use C++" >&5
15616
echo "$ac_t"""$with_cxx"" 1>&6
15617
case "$with_cxx" in
15619
"yes") USE_CXX="1" ;;
15620
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
15625
if test -n "$USE_CXX"; then
15626
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
15628
# Extract the first word of "$ac_prog", so it can be a program name with args.
15629
set dummy $ac_prog; ac_word=$2
15630
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15631
echo "configure:15632: checking for $ac_word" >&5
15633
if test -n "$CXX"; then
15634
ac_cv_prog_CXX="$CXX" # Let the user override the test.
15636
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15638
for ac_dir in $ac_dummy; do
15639
test -z "$ac_dir" && ac_dir=.
15640
if test -f $ac_dir/$ac_word; then
15641
ac_cv_prog_CXX="$ac_prog"
15647
CXX="$ac_cv_prog_CXX"
15648
if test -n "$CXX"; then
15649
echo "$ac_t""$CXX" 1>&6
15651
echo "$ac_t""no" 1>&6
15654
test -n "$CXX" && break
15656
test -n "$CXX" || CXX="gcc"
15659
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
15660
echo "configure:15661: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
15663
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15664
ac_cpp='$CXXCPP $CPPFLAGS'
15665
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15666
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15667
cross_compiling=$ac_cv_prog_cxx_cross
15669
cat > conftest.$ac_ext << EOF
15671
#line 15672 "configure"
15672
#include "confdefs.h"
15674
int main(){return(0);}
15676
if { (eval echo configure:15677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15677
ac_cv_prog_cxx_works=yes
15678
# If we can't run a trivial program, we are probably using a cross compiler.
15679
if (./conftest; exit) 2>/dev/null; then
15680
ac_cv_prog_cxx_cross=no
15682
ac_cv_prog_cxx_cross=yes
15685
echo "configure: failed program was:" >&5
15686
cat conftest.$ac_ext >&5
15687
ac_cv_prog_cxx_works=no
15691
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15692
ac_cpp='$CPP $CPPFLAGS'
15693
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15694
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15695
cross_compiling=$ac_cv_prog_cc_cross
15697
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
15698
if test $ac_cv_prog_cxx_works = no; then
15699
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
15701
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
15702
echo "configure:15703: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
15703
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
15704
cross_compiling=$ac_cv_prog_cxx_cross
15706
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
15707
echo "configure:15708: checking whether we are using GNU C++" >&5
15709
cat > conftest.C <<EOF
15714
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:15715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
15720
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
15722
if test $ac_cv_prog_gxx = yes; then
15728
ac_test_CXXFLAGS="${CXXFLAGS+set}"
15729
ac_save_CXXFLAGS="$CXXFLAGS"
15731
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
15732
echo "configure:15733: checking whether ${CXX-g++} accepts -g" >&5
15734
echo 'void f(){}' > conftest.cc
15735
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
15736
ac_cv_prog_cxx_g=yes
15738
ac_cv_prog_cxx_g=no
15743
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
15744
if test "$ac_test_CXXFLAGS" = set; then
15745
CXXFLAGS="$ac_save_CXXFLAGS"
15746
elif test $ac_cv_prog_cxx_g = yes; then
15747
if test "$GXX" = yes; then
15753
if test "$GXX" = yes; then
15767
# Done checking C++
15769
# Enable openDWG option
15772
echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
15773
echo "configure:15774: checking whether to use openDWG" >&5
15774
echo "$ac_t"""$with_opendwg"" 1>&6
15775
case "$with_opendwg" in
15776
"no") USE_OPENDWG= ;;
15777
"yes") USE_OPENDWG="1" ;;
15778
*) { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; } ;;
15787
if test -n "${USE_OPENDWG}"; then
15789
# With OPENDWG includes directory
15792
echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
15793
echo "configure:15794: checking for location of openDGW includes" >&5
15794
case "$with_opendwg_includes" in
15795
y | ye | yes | n | no)
15796
{ echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
15799
echo "$ac_t""$with_opendwg_includes" 1>&6
15801
if test -n "$with_opendwg_includes" ; then
15802
for dir in $with_opendwg_includes; do
15803
if test -d "$dir"; then
15804
OPENDWGINCPATH="$OPENDWGINCPATH -I$dir"
15806
{ echo "configure: error: *** openDGW includes directory $dir does not exist." 1>&2; exit 1; }
15813
ac_save_cppflags="$CPPFLAGS"
15814
CPPFLAGS="$OPENDWGINCPATH $CPPFLAGS"
15815
for ac_hdr in ad2.h
15817
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15818
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15819
echo "configure:15820: checking for $ac_hdr" >&5
15821
cat > conftest.$ac_ext <<EOF
15822
#line 15823 "configure"
15823
#include "confdefs.h"
15826
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15827
{ (eval echo configure:15828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15828
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15829
if test -z "$ac_err"; then
15831
eval "ac_cv_header_$ac_safe=yes"
15834
echo "configure: failed program was:" >&5
15835
cat conftest.$ac_ext >&5
15837
eval "ac_cv_header_$ac_safe=no"
15840
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15841
echo "$ac_t""yes" 1>&6
15842
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15843
cat >> confdefs.h <<EOF
15844
#define $ac_tr_hdr 1
15848
echo "$ac_t""no" 1>&6
15849
{ echo "configure: error: *** Unable to locate openDWG includes." 1>&2; exit 1; }
15854
CPPFLAGS=$ac_save_cppflags
15857
# With OPENDWG library directory
15860
echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
15861
echo "configure:15862: checking for location of openDWG library" >&5
15862
case "$with_opendwg_libs" in
15863
y | ye | yes | n | no)
15864
{ echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
15867
echo "$ac_t""$with_opendwg_libs" 1>&6
15869
if test -n "$with_opendwg_libs"; then
15870
for dir in $with_opendwg_libs; do
15871
if test -d "$dir"; then
15872
OPENDWGLIBPATH="$OPENDWGLIBPATH -L$dir"
15874
{ echo "configure: error: *** openDWG library directory $dir does not exist." 1>&2; exit 1; }
15880
#search for ad2.a, ad3.a ... in openDWG toolkit directory:
15881
#FIX ME how to program this test??
15882
#LOC_CHECK_LIBS(ad?.a,adSeekLayer,openDWG,$OPENDWGLIBPATH,OPENDWGLIB,,)
15884
#for now hack (but working):
15885
TRUEOPENDWGLIBPATH=`echo "$OPENDWGLIBPATH" | cut -b3-`
15886
adlib=`ls -1 "$TRUEOPENDWGLIBPATH"/ad?.a | tail -1`
15887
OPENDWGLIB="$adlib"
15896
# Done checking OPENDWG
15898
# Enable LFS (from cdr-tools)
15899
# Check whether --enable-largefile or --disable-largefile was given.
15900
if test "${enable_largefile+set}" = set; then
15901
enableval="$enable_largefile"
15905
if test "$enable_largefile" = yes; then
15907
echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
15908
echo "configure:15909: checking for special C compiler options needed for large files" >&5
15910
ac_cv_sys_largefile_CC=no
15911
largefile_cc_opt=""
15912
if test "$GCC" != yes; then
15913
# IRIX 6.2 and later do not support large files by default,
15914
# so use the C compiler's -n32 option if that helps.
15915
cat > conftest.$ac_ext <<EOF
15916
#line 15917 "configure"
15917
#include "confdefs.h"
15918
#include <sys/types.h>
15919
/* Check that off_t can represent 2**63 - 1 correctly.
15920
We can't simply "#define LARGE_OFF_T 9223372036854775807",
15921
since some C++ compilers masquerading as C compilers
15922
incorrectly reject 9223372036854775807. */
15923
# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15924
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15925
&& LARGE_OFF_T % 2147483647 == 1)
15932
if { (eval echo configure:15933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15935
echo "configure: failed program was:" >&5
15936
cat conftest.$ac_ext >&5
15938
ac_save_CC="${CC-cc}"
15940
cat > conftest.$ac_ext <<EOF
15941
#line 15942 "configure"
15942
#include "confdefs.h"
15943
#include <sys/types.h>
15944
/* Check that off_t can represent 2**63 - 1 correctly.
15945
We can't simply "#define LARGE_OFF_T 9223372036854775807",
15946
since some C++ compilers masquerading as C compilers
15947
incorrectly reject 9223372036854775807. */
15948
# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15949
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15950
&& LARGE_OFF_T % 2147483647 == 1)
15957
if { (eval echo configure:15958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15959
ac_cv_sys_largefile_CC=' -n32'
15961
echo "configure: failed program was:" >&5
15962
cat conftest.$ac_ext >&5
15970
echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
15971
if test "$ac_cv_sys_largefile_CC" != no; then
15972
CC="$CC$ac_cv_sys_largefile_CC"
15973
largefile_cc_opt="$ac_cv_sys_largefile_CC"
15976
echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
15977
echo "configure:15978: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15979
ac_cv_sys_file_offset_bits=no
15980
cat > conftest.$ac_ext <<EOF
15981
#line 15982 "configure"
15982
#include "confdefs.h"
15983
#include <sys/types.h>
15984
/* Check that off_t can represent 2**63 - 1 correctly.
15985
We can't simply "#define LARGE_OFF_T 9223372036854775807",
15986
since some C++ compilers masquerading as C compilers
15987
incorrectly reject 9223372036854775807. */
15988
# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15989
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15990
&& LARGE_OFF_T % 2147483647 == 1)
15997
if { (eval echo configure:15998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16000
echo "configure: failed program was:" >&5
16001
cat conftest.$ac_ext >&5
16003
cat > conftest.$ac_ext <<EOF
16004
#line 16005 "configure"
16005
#include "confdefs.h"
16006
#define _FILE_OFFSET_BITS 64
16007
#include <sys/types.h>
16008
/* Check that off_t can represent 2**63 - 1 correctly.
16009
We can't simply "#define LARGE_OFF_T 9223372036854775807",
16010
since some C++ compilers masquerading as C compilers
16011
incorrectly reject 9223372036854775807. */
16012
# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16013
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16014
&& LARGE_OFF_T % 2147483647 == 1)
16022
if { (eval echo configure:16023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16024
ac_cv_sys_file_offset_bits=64
16026
echo "configure: failed program was:" >&5
16027
cat conftest.$ac_ext >&5
16033
echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
16034
if test "$ac_cv_sys_file_offset_bits" != no; then
16035
cat >> confdefs.h <<EOF
16036
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16040
echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
16041
echo "configure:16042: checking for _LARGE_FILES value needed for large files" >&5
16043
ac_cv_sys_large_files=no
16044
cat > conftest.$ac_ext <<EOF
16045
#line 16046 "configure"
16046
#include "confdefs.h"
16047
#include <sys/types.h>
16048
/* Check that off_t can represent 2**63 - 1 correctly.
16049
We can't simply "#define LARGE_OFF_T 9223372036854775807",
16050
since some C++ compilers masquerading as C compilers
16051
incorrectly reject 9223372036854775807. */
16052
# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16053
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16054
&& LARGE_OFF_T % 2147483647 == 1)
16061
if { (eval echo configure:16062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16064
echo "configure: failed program was:" >&5
16065
cat conftest.$ac_ext >&5
16067
cat > conftest.$ac_ext <<EOF
16068
#line 16069 "configure"
16069
#include "confdefs.h"
16070
#define _LARGE_FILES 1
16071
#include <sys/types.h>
16072
/* Check that off_t can represent 2**63 - 1 correctly.
16073
We can't simply "#define LARGE_OFF_T 9223372036854775807",
16074
since some C++ compilers masquerading as C compilers
16075
incorrectly reject 9223372036854775807. */
16076
# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16077
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16078
&& LARGE_OFF_T % 2147483647 == 1)
16086
if { (eval echo configure:16087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16088
ac_cv_sys_large_files=1
16090
echo "configure: failed program was:" >&5
16091
cat conftest.$ac_ext >&5
16097
echo "$ac_t""$ac_cv_sys_large_files" 1>&6
16098
if test "$ac_cv_sys_large_files" != no; then
16099
cat >> confdefs.h <<EOF
16100
#define _LARGE_FILES $ac_cv_sys_large_files
16104
echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
16105
echo "configure:16106: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16107
ac_cv_sys_largefile_source=no
16108
cat > conftest.$ac_ext <<EOF
16109
#line 16110 "configure"
16110
#include "confdefs.h"
16116
if { (eval echo configure:16117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16119
echo "configure: failed program was:" >&5
16120
cat conftest.$ac_ext >&5
16122
cat > conftest.$ac_ext <<EOF
16123
#line 16124 "configure"
16124
#include "confdefs.h"
16125
#define _LARGEFILE_SOURCE 1
16132
if { (eval echo configure:16133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16134
ac_cv_sys_largefile_source=1
16136
echo "configure: failed program was:" >&5
16137
cat conftest.$ac_ext >&5
16143
echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
16144
if test "$ac_cv_sys_largefile_source" != no; then
16145
cat >> confdefs.h <<EOF
16146
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16152
echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
16153
echo "configure:16154: checking if system supports Large Files at all" >&5
16155
cat > conftest.$ac_ext <<EOF
16156
#line 16157 "configure"
16157
#include "confdefs.h"
16159
#include <sys/types.h>
16163
* Check that off_t can represent 2**63 - 1 correctly.
16164
* We can't simply "#define LARGE_OFF_T 9223372036854775807",
16165
* since some C++ compilers masquerading as C compilers
16166
* incorrectly reject 9223372036854775807.
16168
* For MinGW, off64_t should be used and __MSVCRT_VERSION__ >= 0x0601
16169
* (msvcrt.dll version 6.10 or higher) is needed for _fstat64 and _stat64.
16172
# define LARGE_OFF_T (((off64_t) 1 << 62) - 1 + ((off64_t) 1 << 62))
16174
# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16176
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16177
&& LARGE_OFF_T % 2147483647 == 1)
16188
if { (eval echo configure:16189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16190
ac_cv_largefiles=yes
16192
echo "configure: failed program was:" >&5
16193
cat conftest.$ac_ext >&5
16195
ac_cv_largefiles=no
16199
echo "$ac_t""$ac_cv_largefiles" 1>&6
16200
if test $ac_cv_largefiles = yes; then
16201
cat >> confdefs.h <<\EOF
16202
#define HAVE_LARGEFILES 1
16208
if test $ac_cv_largefiles = yes; then
16212
# Done large file support
16216
echo $ac_n "checking whether to use Python""... $ac_c" 1>&6
16217
echo "configure:16218: checking whether to use Python" >&5
16223
MACOSX_ARCHS_PYTHON=
16225
if test "$with_python" = "no" ; then
16226
echo "$ac_t""no" 1>&6
16228
echo "$ac_t""yes" 1>&6
16230
if test "$with_python" != "yes" ; then
16231
PY_CONFIG="$with_python"
16234
# Extract the first word of "python-config", so it can be a program name with args.
16235
set dummy python-config; ac_word=$2
16236
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16237
echo "configure:16238: checking for $ac_word" >&5
16239
case "$PY_CONFIG" in
16241
ac_cv_path_PY_CONFIG="$PY_CONFIG" # Let the user override the test with a path.
16244
ac_cv_path_PY_CONFIG="$PY_CONFIG" # Let the user override the test with a dos path.
16247
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16249
for ac_dir in $ac_dummy; do
16250
test -z "$ac_dir" && ac_dir=.
16251
if test -f $ac_dir/$ac_word; then
16252
ac_cv_path_PY_CONFIG="$ac_dir/$ac_word"
16257
test -z "$ac_cv_path_PY_CONFIG" && ac_cv_path_PY_CONFIG="no"
16260
PY_CONFIG="$ac_cv_path_PY_CONFIG"
16261
if test -n "$PY_CONFIG"; then
16262
echo "$ac_t""$PY_CONFIG" 1>&6
16264
echo "$ac_t""no" 1>&6
16268
if test "$PY_CONFIG" != "no" ; then
16269
# With Python includes directory
16271
PYTHONINC=`"$PY_CONFIG" --includes`
16273
ac_save_cppflags="$CPPFLAGS"
16274
CPPFLAGS="$PYTHONINC $CPPFLAGS"
16275
for ac_hdr in Python.h
16277
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16278
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16279
echo "configure:16280: checking for $ac_hdr" >&5
16281
cat > conftest.$ac_ext <<EOF
16282
#line 16283 "configure"
16283
#include "confdefs.h"
16286
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16287
{ (eval echo configure:16288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16288
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16289
if test -z "$ac_err"; then
16291
eval "ac_cv_header_$ac_safe=yes"
16294
echo "configure: failed program was:" >&5
16295
cat conftest.$ac_ext >&5
16297
eval "ac_cv_header_$ac_safe=no"
16300
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16301
echo "$ac_t""yes" 1>&6
16302
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16303
cat >> confdefs.h <<EOF
16304
#define $ac_tr_hdr 1
16308
echo "$ac_t""no" 1>&6
16309
{ echo "configure: error: *** Unable to locate Python includes." 1>&2; exit 1; }
16314
CPPFLAGS=$ac_save_cppflags
16317
PYTHONCFLAGS=`"$PY_CONFIG" --cflags`
16319
# With Python library directory
16321
PYTHONLDFLAGS=`"$PY_CONFIG" --ldflags`
16323
# shouldn't have arch flags in C/LD flags on OSX
16324
for a in i386 ppc x86_64 ppc64
16326
PYTHONCFLAGS=`echo "$PYTHONCFLAGS" | sed "s/-arch *$a//g"`
16327
PYTHONLDFLAGS=`echo "$PYTHONLDFLAGS" | sed "s/-arch *$a//g"`
16331
# check for available OSX archs in Python, assume framework
16332
if test -n "$MACOSX_ARCHS" ; then
16333
pylib=`"$PY_CONFIG" --prefix`/Python
16334
pylibinfo=`file "$pylib"`
16335
for a in i386 ppc x86_64 ppc64
16337
# add only if in MACOSX_ARCHS
16338
if test -n "`echo \"$pylibinfo\" | grep \"library $a\"`" ; then
16339
if test -n "`echo "$MACOSX_ARCHS" | grep $a`" ; then
16340
MACOSX_ARCHS_PYTHON="$MACOSX_ARCHS_PYTHON -arch $a"
16346
fi # Done checking Python
16354
# Enable wxWidgets support (for wxGUI)
16356
echo $ac_n "checking whether to use wxWidgets""... $ac_c" 1>&6
16357
echo "configure:16358: checking whether to use wxWidgets" >&5
16364
MACOSX_ARCHS_WXPYTHON=
16366
if test "$with_wxwidgets" = "no" ; then
16367
echo "$ac_t""no" 1>&6
16369
echo "$ac_t""yes" 1>&6
16371
if test "$with_wxwidgets" != "yes" ; then
16372
WX_CONFIG="$with_wxwidgets"
16375
# Extract the first word of "wx-config", so it can be a program name with args.
16376
set dummy wx-config; ac_word=$2
16377
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16378
echo "configure:16379: checking for $ac_word" >&5
16380
case "$WX_CONFIG" in
16382
ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
16385
ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a dos path.
16388
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16390
for ac_dir in $ac_dummy; do
16391
test -z "$ac_dir" && ac_dir=.
16392
if test -f $ac_dir/$ac_word; then
16393
ac_cv_path_WX_CONFIG="$ac_dir/$ac_word"
16398
test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
16401
WX_CONFIG="$ac_cv_path_WX_CONFIG"
16402
if test -n "$WX_CONFIG"; then
16403
echo "$ac_t""$WX_CONFIG" 1>&6
16405
echo "$ac_t""no" 1>&6
16409
if test "$WX_CONFIG" = "no" ; then
16410
{ echo "configure: error: *** couldn't find wx-config
16412
wxWidgets must be installed on your system.
16414
Please check that wx-config is in path, the directory
16415
where wxWidgets libraries are installed (returned by
16416
'wx-config --libs' or 'wx-config --static --libs' command)
16417
is in LD_LIBRARY_PATH or equivalent variable and
16418
wxWidgets version is 2.8.1 or above." 1>&2; exit 1; }
16421
# Check wxWidgets version
16425
echo $ac_n "checking wxWidgets version""... $ac_c" 1>&6
16426
echo "configure:16427: checking wxWidgets version" >&5
16427
if WXVERSION=`"$WX_CONFIG" --version`; then
16428
echo "$ac_t""$WXVERSION" 1>&6
16430
echo "$ac_t""not found" 1>&6
16431
{ echo "configure: error: wxWidgets is required." 1>&2; exit 1; }
16433
if test `expr "$WXVERSION" \< "$REQWX"` = 1 ; then
16434
{ echo "configure: error: *** wxWidgets "$REQWX" or later is required." 1>&2; exit 1; }
16437
# With wxWidgets includes directory
16439
WXWIDGETSCXXFLAGS=`"$WX_CONFIG" --cxxflags`
16440
WXWIDGETSCPPFLAGS=`"$WX_CONFIG" --cppflags`
16443
ac_save_cppflags="$CPPFLAGS"
16444
CPPFLAGS="$WXWIDGETSCPPFLAGS $CPPFLAGS"
16445
for ac_hdr in wx/wxprec.h
16447
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16448
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16449
echo "configure:16450: checking for $ac_hdr" >&5
16451
cat > conftest.$ac_ext <<EOF
16452
#line 16453 "configure"
16453
#include "confdefs.h"
16456
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16457
{ (eval echo configure:16458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16458
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16459
if test -z "$ac_err"; then
16461
eval "ac_cv_header_$ac_safe=yes"
16464
echo "configure: failed program was:" >&5
16465
cat conftest.$ac_ext >&5
16467
eval "ac_cv_header_$ac_safe=no"
16470
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16471
echo "$ac_t""yes" 1>&6
16472
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16473
cat >> confdefs.h <<EOF
16474
#define $ac_tr_hdr 1
16478
echo "$ac_t""no" 1>&6
16479
{ echo "configure: error: *** Unable to locate wxWidgets includes." 1>&2; exit 1; }
16484
CPPFLAGS=$ac_save_cppflags
16487
# With wxWidgets library directory
16489
WXWIDGETSLIB=`"$WX_CONFIG" --libs`
16491
# shouldn't have arch flags in C/LD flags on OSX
16492
for a in i386 ppc x86_64 ppc64
16494
WXWIDGETSCXXFLAGS=`echo "$WXWIDGETSCXXFLAGS" | sed "s/-arch *$a//g"`
16495
WXWIDGETSCPPFLAGS=`echo "$WXWIDGETSCPPFLAGS" | sed "s/-arch *$a//g"`
16496
WXWIDGETSLIB=`echo "$WXWIDGETSLIB" | sed "s/-arch *$a//g"`
16499
# check for available OSX archs in wxPython
16500
if test -n "$MACOSX_ARCHS" ; then
16501
wxver=`"$WX_CONFIG" --version`
16502
wxlib=`"$WX_CONFIG" --prefix`/lib/lib`"$WX_CONFIG" --basename`-`echo "$wxver" | cut -d . -f1,2`.dylib
16503
wxlibinfo=`file -L "$wxlib"`
16504
for a in i386 ppc x86_64 ppc64
16506
# add only if in MACOSX_ARCHS
16507
if test -n "`echo \"$wxlibinfo\" | grep \"library $a\"`" ; then
16508
if test -n "`echo \"$MACOSX_ARCHS\" | grep $a`" ; then
16509
MACOSX_ARCHS_WXPYTHON="$MACOSX_ARCHS_WXPYTHON -arch $a"
16514
fi # $USE_WXWIDGETS
16523
# Done checking wxWidgets
16531
GRASS_HOME="${DSTDIR}"
16536
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16538
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16539
# Let make expand exec_prefix.
16540
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16542
# Any assignment to VPATH causes Sun make to only execute
16543
# the first set of double-colon rules, so remove it if not needed.
16544
# If there is a colon in the path, we need to keep it.
16545
if test "x$srcdir" = x.; then
16546
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16549
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16551
DEFS=-DHAVE_CONFIG_H
16553
# Without the "./", some shells look in PATH for config.status.
16554
: ${CONFIG_STATUS=./config.status}
16556
echo creating $CONFIG_STATUS
16557
rm -f $CONFIG_STATUS
16558
cat > $CONFIG_STATUS <<EOF
16560
# Generated automatically by configure.
16561
# Run this file to recreate the current configuration.
16562
# This directory was configured as follows,
16563
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16565
# $0 $ac_configure_args
16567
# Compiler output produced by configure, useful for debugging
16568
# configure, is in ./config.log if it exists.
16570
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16573
case "\$ac_option" in
16574
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16575
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16576
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16577
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16578
echo "$CONFIG_STATUS generated by autoconf version 2.13"
16580
-help | --help | --hel | --he | --h)
16581
echo "\$ac_cs_usage"; exit 0 ;;
16582
*) echo "\$ac_cs_usage"; exit 1 ;;
16586
ac_given_srcdir=$srcdir
16587
ac_given_INSTALL="$INSTALL"
16589
trap 'rm -fr `echo "include/Make/Grass.make include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h include/winname.h grass.pc include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16591
cat >> $CONFIG_STATUS <<EOF
16593
# Protect against being on the right side of a sed subst in config.status.
16594
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16595
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16599
s%@CFLAGS@%$CFLAGS%g
16600
s%@CPPFLAGS@%$CPPFLAGS%g
16601
s%@CXXFLAGS@%$CXXFLAGS%g
16602
s%@FFLAGS@%$FFLAGS%g
16604
s%@LDFLAGS@%$LDFLAGS%g
16606
s%@exec_prefix@%$exec_prefix%g
16607
s%@prefix@%$prefix%g
16608
s%@program_transform_name@%$program_transform_name%g
16609
s%@bindir@%$bindir%g
16610
s%@sbindir@%$sbindir%g
16611
s%@libexecdir@%$libexecdir%g
16612
s%@datadir@%$datadir%g
16613
s%@sysconfdir@%$sysconfdir%g
16614
s%@sharedstatedir@%$sharedstatedir%g
16615
s%@localstatedir@%$localstatedir%g
16616
s%@libdir@%$libdir%g
16617
s%@includedir@%$includedir%g
16618
s%@oldincludedir@%$oldincludedir%g
16619
s%@infodir@%$infodir%g
16620
s%@mandir@%$mandir%g
16622
s%@host_alias@%$host_alias%g
16623
s%@host_cpu@%$host_cpu%g
16624
s%@host_vendor@%$host_vendor%g
16625
s%@host_os@%$host_os%g
16627
s%@EXEEXT@%$EXEEXT%g
16628
s%@MINGW32@%$MINGW32%g
16629
s%@BINDIR@%$BINDIR%g
16631
s%@SRCDIR@%$SRCDIR%g
16632
s%@DSTDIR@%$DSTDIR%g
16634
s%@GISBASE@%$GISBASE%g
16635
s%@GRASS_BIN@%$GRASS_BIN%g
16636
s%@GRASS_VERSION_FILE@%$GRASS_VERSION_FILE%g
16637
s%@GRASS_VERSION_MAJOR@%$GRASS_VERSION_MAJOR%g
16638
s%@GRASS_VERSION_MINOR@%$GRASS_VERSION_MINOR%g
16639
s%@GRASS_VERSION_RELEASE@%$GRASS_VERSION_RELEASE%g
16640
s%@GRASS_VERSION_NUMBER@%$GRASS_VERSION_NUMBER%g
16641
s%@GRASS_VERSION_DATE@%$GRASS_VERSION_DATE%g
16642
s%@NAME_VER@%$NAME_VER%g
16643
s%@LIB_VER@%$LIB_VER%g
16644
s%@MACOSX_APP@%$MACOSX_APP%g
16645
s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
16646
s%@MACOSX_SDK@%$MACOSX_SDK%g
16647
s%@INSTDIR@%$INSTDIR%g
16648
s%@GRASS_LIB_PREFIX@%$GRASS_LIB_PREFIX%g
16649
s%@GRASS_LIB_SUFFIX@%$GRASS_LIB_SUFFIX%g
16650
s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
16651
s%@RANLIB@%$RANLIB%g
16654
s%@PLAT_OBJS@%$PLAT_OBJS%g
16655
s%@CFLAGS_DEBUG@%$CFLAGS_DEBUG%g
16656
s%@CFLAGS_OPTIMIZE@%$CFLAGS_OPTIMIZE%g
16657
s%@CFLAGS_WARNING@%$CFLAGS_WARNING%g
16658
s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g
16659
s%@LDFLAGS_DEBUG@%$LDFLAGS_DEBUG%g
16660
s%@LDFLAGS_OPTIMIZE@%$LDFLAGS_OPTIMIZE%g
16661
s%@CC_SEARCH_FLAGS@%$CC_SEARCH_FLAGS%g
16662
s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
16663
s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
16664
s%@STLIB_LD@%$STLIB_LD%g
16665
s%@SHLIB_LD@%$SHLIB_LD%g
16666
s%@GRASS_SHLIB_LD_EXTRAS@%$GRASS_SHLIB_LD_EXTRAS%g
16667
s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
16668
s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
16669
s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
16670
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
16671
s%@MAKE_LIB@%$MAKE_LIB%g
16672
s%@MAKE_STUB_LIB@%$MAKE_STUB_LIB%g
16673
s%@INSTALL_LIB@%$INSTALL_LIB%g
16674
s%@INSTALL_STUB_LIB@%$INSTALL_STUB_LIB%g
16675
s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
16676
s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
16677
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16678
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16679
s%@INSTALL_DATA@%$INSTALL_DATA%g
16681
s%@LEXLIB@%$LEXLIB%g
16682
s%@LEXPATH@%$LEXPATH%g
16684
s%@YACCPATH@%$YACCPATH%g
16687
s%@CROSS_COMPILING@%$CROSS_COMPILING%g
16688
s%@X_CFLAGS@%$X_CFLAGS%g
16689
s%@X_LIBS@%$X_LIBS%g
16690
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
16691
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
16694
s%@USE_X11@%$USE_X11%g
16695
s%@CURSES_MAXY@%$CURSES_MAXY%g
16696
s%@CURSESLIB@%$CURSESLIB%g
16697
s%@USE_CURSES@%$USE_CURSES%g
16698
s%@COMPATLIB@%$COMPATLIB%g
16699
s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
16700
s%@XDRLIB@%$XDRLIB%g
16701
s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
16702
s%@MATHLIB@%$MATHLIB%g
16704
s%@ICONVLIB@%$ICONVLIB%g
16705
s%@SOCKLIB@%$SOCKLIB%g
16706
s%@HAVE_SOCKET@%$HAVE_SOCKET%g
16707
s%@ZLIBINCPATH@%$ZLIBINCPATH%g
16708
s%@ZLIBLIBPATH@%$ZLIBLIBPATH%g
16710
s%@PROJINC@%$PROJINC%g
16711
s%@PROJLIB@%$PROJLIB%g
16712
s%@PROJSHARE@%$PROJSHARE%g
16713
s%@NAD2BIN@%$NAD2BIN%g
16714
s%@REGEXINCPATH@%$REGEXINCPATH%g
16715
s%@REGEXLIBPATH@%$REGEXLIBPATH%g
16716
s%@REGEXLIB@%$REGEXLIB%g
16717
s%@USE_REGEX@%$USE_REGEX%g
16718
s%@READLINEINCPATH@%$READLINEINCPATH%g
16719
s%@READLINELIBPATH@%$READLINELIBPATH%g
16720
s%@READLINELIB@%$READLINELIB%g
16721
s%@HISTORYLIB@%$HISTORYLIB%g
16722
s%@JPEGINCPATH@%$JPEGINCPATH%g
16723
s%@JPEGLIBPATH@%$JPEGLIBPATH%g
16724
s%@JPEGLIB@%$JPEGLIB%g
16725
s%@GDAL_CONFIG@%$GDAL_CONFIG%g
16726
s%@GDAL_LIBS@%$GDAL_LIBS%g
16727
s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
16728
s%@USE_GDAL@%$USE_GDAL%g
16729
s%@USE_OGR@%$USE_OGR%g
16730
s%@GEOS_CONFIG@%$GEOS_CONFIG%g
16731
s%@GEOS_LIBS@%$GEOS_LIBS%g
16732
s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
16733
s%@USE_GEOS@%$USE_GEOS%g
16734
s%@TIFF_INCLUDE_DIRS@%$TIFF_INCLUDE_DIRS%g
16735
s%@TIFF_LIBRARY_DIRS@%$TIFF_LIBRARY_DIRS%g
16736
s%@TIFFLIB@%$TIFFLIB%g
16737
s%@PNGINC@%$PNGINC%g
16738
s%@PNGLIB@%$PNGLIB%g
16739
s%@USE_PNG@%$USE_PNG%g
16740
s%@USE_POSTGRES@%$USE_POSTGRES%g
16741
s%@PQINCPATH@%$PQINCPATH%g
16742
s%@PQLIBPATH@%$PQLIBPATH%g
16744
s%@MYSQLD_CONFIG@%$MYSQLD_CONFIG%g
16745
s%@USE_MYSQL@%$USE_MYSQL%g
16746
s%@MYSQLINCPATH@%$MYSQLINCPATH%g
16747
s%@MYSQLLIBPATH@%$MYSQLLIBPATH%g
16748
s%@MYSQLLIB@%$MYSQLLIB%g
16749
s%@MYSQLDLIB@%$MYSQLDLIB%g
16750
s%@USE_SQLITE@%$USE_SQLITE%g
16751
s%@SQLITEINCPATH@%$SQLITEINCPATH%g
16752
s%@SQLITELIBPATH@%$SQLITELIBPATH%g
16753
s%@SQLITELIB@%$SQLITELIB%g
16754
s%@USE_FFMPEG@%$USE_FFMPEG%g
16755
s%@FFMPEGINCPATH@%$FFMPEGINCPATH%g
16756
s%@FFMPEGLIBPATH@%$FFMPEGLIBPATH%g
16757
s%@FFMPEGLIB@%$FFMPEGLIB%g
16758
s%@USE_OPENGL@%$USE_OPENGL%g
16759
s%@OPENGL_X11@%$OPENGL_X11%g
16760
s%@OPENGL_AQUA@%$OPENGL_AQUA%g
16761
s%@OPENGL_WINDOWS@%$OPENGL_WINDOWS%g
16762
s%@OPENGLINC@%$OPENGLINC%g
16763
s%@OPENGLLIB@%$OPENGLLIB%g
16764
s%@OPENGLULIB@%$OPENGLULIB%g
16765
s%@TCLINCDIR@%$TCLINCDIR%g
16766
s%@TKINCDIR@%$TKINCDIR%g
16767
s%@TCLTKLIBPATH@%$TCLTKLIBPATH%g
16768
s%@TCLTKLIBS@%$TCLTKLIBS%g
16769
s%@TCL_VERSION@%$TCL_VERSION%g
16770
s%@MACOSX_ARCHS_TCLTK@%$MACOSX_ARCHS_TCLTK%g
16771
s%@ODBCINC@%$ODBCINC%g
16772
s%@ODBCLIB@%$ODBCLIB%g
16773
s%@FFTWINC@%$FFTWINC%g
16774
s%@FFTWLIB@%$FFTWLIB%g
16775
s%@BLASLIB@%$BLASLIB%g
16776
s%@BLASINC@%$BLASINC%g
16777
s%@LAPACKLIB@%$LAPACKLIB%g
16778
s%@LAPACKINC@%$LAPACKINC%g
16781
s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
16782
s%@CAIROINC@%$CAIROINC%g
16783
s%@CAIROLIB@%$CAIROLIB%g
16784
s%@USE_CAIRO@%$USE_CAIRO%g
16785
s%@OPENGLWINC@%$OPENGLWINC%g
16786
s%@OPENGLWM@%$OPENGLWM%g
16789
s%@INTLLIB@%$INTLLIB%g
16790
s%@HAVE_NLS@%$HAVE_NLS%g
16792
s%@OPENDWGINCPATH@%$OPENDWGINCPATH%g
16793
s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
16794
s%@OPENDWGLIB@%$OPENDWGLIB%g
16795
s%@USE_OPENDWG@%$USE_OPENDWG%g
16796
s%@USE_LARGEFILES@%$USE_LARGEFILES%g
16797
s%@PY_CONFIG@%$PY_CONFIG%g
16798
s%@PYTHONINC@%$PYTHONINC%g
16799
s%@PYTHONCFLAGS@%$PYTHONCFLAGS%g
16800
s%@PYTHONLDFLAGS@%$PYTHONLDFLAGS%g
16801
s%@USE_PYTHON@%$USE_PYTHON%g
16802
s%@MACOSX_ARCHS_PYTHON@%$MACOSX_ARCHS_PYTHON%g
16803
s%@WX_CONFIG@%$WX_CONFIG%g
16804
s%@WXVERSION@%$WXVERSION%g
16805
s%@WXWIDGETSCXXFLAGS@%$WXWIDGETSCXXFLAGS%g
16806
s%@WXWIDGETSCPPFLAGS@%$WXWIDGETSCPPFLAGS%g
16807
s%@WXWIDGETSLIB@%$WXWIDGETSLIB%g
16808
s%@USE_WXWIDGETS@%$USE_WXWIDGETS%g
16809
s%@MACOSX_ARCHS_WXPYTHON@%$MACOSX_ARCHS_WXPYTHON%g
16810
s%@USE_TERMIO@%$USE_TERMIO%g
16811
s%@STRIPFLAG@%$STRIPFLAG%g
16812
s%@GRASS_HOME@%$GRASS_HOME%g
16817
cat >> $CONFIG_STATUS <<\EOF
16819
# Split the substitutions into bite-sized pieces for seds with
16820
# small command number limits, like on Digital OSF/1 and HP-UX.
16821
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16822
ac_file=1 # Number of current file.
16823
ac_beg=1 # First line for current file.
16824
ac_end=$ac_max_sed_cmds # Line after last line for current file.
16827
while $ac_more_lines; do
16828
if test $ac_beg -gt 1; then
16829
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16831
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16833
if test ! -s conftest.s$ac_file; then
16834
ac_more_lines=false
16835
rm -f conftest.s$ac_file
16837
if test -z "$ac_sed_cmds"; then
16838
ac_sed_cmds="sed -f conftest.s$ac_file"
16840
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16842
ac_file=`expr $ac_file + 1`
16844
ac_end=`expr $ac_end + $ac_max_sed_cmds`
16847
if test -z "$ac_sed_cmds"; then
16852
cat >> $CONFIG_STATUS <<EOF
16854
CONFIG_FILES=\${CONFIG_FILES-"include/Make/Grass.make include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h include/winname.h grass.pc"}
16856
cat >> $CONFIG_STATUS <<\EOF
16857
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16858
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16860
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16861
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16862
*) ac_file_in="${ac_file}.in" ;;
16865
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16867
# Remove last slash and all that follows it. Not all systems have dirname.
16868
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16869
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16870
# The file is in a subdirectory.
16871
test ! -d "$ac_dir" && mkdir "$ac_dir"
16872
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16873
# A "../" for each directory in $ac_dir_suffix.
16874
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16876
ac_dir_suffix= ac_dots=
16879
case "$ac_given_srcdir" in
16881
if test -z "$ac_dots"; then top_srcdir=.
16882
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16883
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16884
*) # Relative path.
16885
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16886
top_srcdir="$ac_dots$ac_given_srcdir" ;;
16889
case "$ac_given_INSTALL" in
16890
[/$]*) INSTALL="$ac_given_INSTALL" ;;
16891
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16894
echo creating "$ac_file"
16896
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16898
*Makefile*) ac_comsub="1i\\
16899
# $configure_input" ;;
16903
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16905
s%@configure_input@%$configure_input%g
16906
s%@srcdir@%$srcdir%g
16907
s%@top_srcdir@%$top_srcdir%g
16908
s%@INSTALL@%$INSTALL%g
16909
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16913
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16914
# NAME is the cpp macro being defined and VALUE is the value it is being given.
16916
# ac_d sets the value in "#define NAME VALUE" lines.
16917
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16918
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16921
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16922
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16923
ac_uB='\([ ]\)%\1#\2define\3'
16926
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16927
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16928
ac_eB='$%\1#\2define\3'
16932
if test "${CONFIG_HEADERS+set}" != set; then
16934
cat >> $CONFIG_STATUS <<EOF
16935
CONFIG_HEADERS="include/config.h"
16937
cat >> $CONFIG_STATUS <<\EOF
16939
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16940
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16942
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16943
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16944
*) ac_file_in="${ac_file}.in" ;;
16947
echo creating $ac_file
16949
rm -f conftest.frag conftest.in conftest.out
16950
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16951
cat $ac_file_inputs > conftest.in
16955
# Transform confdefs.h into a sed script conftest.vals that substitutes
16956
# the proper values into config.h.in to produce config.h. And first:
16957
# Protect against being on the right side of a sed subst in config.status.
16958
# Protect against being in an unquoted here document in config.status.
16959
rm -f conftest.vals
16960
cat > conftest.hdr <<\EOF
16963
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16967
sed -n -f conftest.hdr confdefs.h > conftest.vals
16970
# This sed command replaces #undef with comments. This is necessary, for
16971
# example, in the case of _POSIX_SOURCE, which is predefined and required
16972
# on some systems where configure will not decide to define it.
16973
cat >> conftest.vals <<\EOF
16974
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16977
# Break up conftest.vals because some shells have a limit on
16978
# the size of here documents, and old seds have small limits too.
16980
rm -f conftest.tail
16983
ac_lines=`grep -c . conftest.vals`
16984
# grep -c gives empty output for an empty file on some AIX systems.
16985
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16986
# Write a limited-size here document to conftest.frag.
16987
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16988
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16990
sed -f conftest.frag conftest.in > conftest.out
16992
mv conftest.out conftest.in
16993
' >> $CONFIG_STATUS
16994
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16995
rm -f conftest.vals
16996
mv conftest.tail conftest.vals
16998
rm -f conftest.vals
17000
cat >> $CONFIG_STATUS <<\EOF
17001
rm -f conftest.frag conftest.h
17002
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17003
cat conftest.in >> conftest.h
17005
if cmp -s $ac_file conftest.h 2>/dev/null; then
17006
echo "$ac_file is unchanged"
17009
# Remove last slash and all that follows it. Not all systems have dirname.
17010
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17011
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17012
# The file is in a subdirectory.
17013
test ! -d "$ac_dir" && mkdir "$ac_dir"
17016
mv conftest.h $ac_file
17021
cat >> $CONFIG_STATUS <<EOF
17024
cat >> $CONFIG_STATUS <<\EOF
17028
chmod +x $CONFIG_STATUS
17029
rm -fr confdefs* $ac_clean_files
17030
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17034
echo "Copying config.status to config.status.${ARCH}"
17036
cp -f config.status config.status.${ARCH}
17038
# Display configuration status
17041
if test -n "${USE_TCLTK}" -a -n "${USE_OPENGL}" ; then
17049
echo "GRASS is now configured for: ${host}"
17055
echo " Source directory: ${SRCDIR}"
17058
echo " Build directory: ${DSTDIR}"
17061
echo " Installation directory: ${INSTDIR}"
17064
echo " Startup script in directory: ${bindir}"
17067
echo " C compiler: ${CC} ${CFLAGS}"
17070
echo " C++ compiler: ${CXX} ${CXXFLAGS}"
17072
#LOC_MSG([ FORTRAN compiler: ${F77} ${FFLAGS}])
17074
echo " Building shared libraries: ${shared_ok}"
17077
echo " 64bit support: ${do64bit}"
17080
echo " OpenGL platform: ${OPENGL_TYPE}"
17086
echo " MacOSX application: `if test -n "${MACOSX_APP}" ; then echo yes ; else echo no ; fi`"
17088
echo " MacOSX architectures: ${MACOSX_ARCHS}"
17091
echo " MacOSX SDK: ${MACOSX_SDK}"
17097
echo " NVIZ: `if test -n "${USE_TOGL}" ; then echo yes ; else echo no ; fi`"
17102
echo " BLAS support: `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
17104
echo " C++ support: `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
17106
echo " Cairo support: `if test -n "${USE_CAIRO}" ; then echo yes ; else echo no ; fi`"
17108
echo " DWG support: `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
17110
echo " FFMPEG support: `if test -n "${USE_FFMPEG}" ; then echo yes ; else echo no ; fi`"
17112
echo " FFTW support: `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
17114
echo " FreeType support: `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
17116
echo " GDAL support: `if test -n "${USE_GDAL}" ; then echo yes ; else echo no ; fi`"
17118
echo " GEOS support: `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
17120
echo " GLw support: `if test -n "${USE_GLW}" ; then echo yes ; else echo no ; fi`"
17122
echo " JPEG support: `if test -n "${USE_JPEG}" ; then echo yes ; else echo no ; fi`"
17124
echo " LAPACK support: `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
17126
echo " Large File support (LFS): `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
17128
echo " Motif support: `if test -n "${USE_MOTIF}" ; then echo yes ; else echo no ; fi`"
17130
echo " MySQL support: `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
17132
echo " NLS support: `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
17134
echo " ODBC support: `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
17136
echo " OGR support: `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
17138
echo " OpenGL support: `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
17140
echo " PNG support: `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
17142
echo " PostgreSQL support: `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
17144
echo " Python support: `if test -n "${USE_PYTHON}" ; then echo yes ; else echo no ; fi`"
17146
echo " Readline support: `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
17148
echo " SQLite support: `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
17150
echo " Tcl/Tk support: `if test -n "${USE_TCLTK}" ; then echo yes ; else echo no ; fi`"
17152
echo " wxWidgets support: `if test -n "${USE_WXWIDGETS}" ; then echo yes ; else echo no ; fi`"
17154
echo " TIFF support: `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
17156
echo " X11 support: `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"