forked from MDSplus/mdsplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
1188 lines (1095 loc) · 37.6 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
dnl Process this file with autoconf to produce a configure script.
dnl @(#)$RCSfile$ $Revision$
AC_PREREQ([2.63])
AC_INIT([MDSplus], [6.0a], [[email protected]])
AC_CONFIG_AUX_DIR([conf])
AC_CANONICAL_TARGET
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([1.11.1 foreign subdir-objects])
AM_MAINTAINER_MODE
#AC_CONFIG_HEADER(include/config.h)
#AC_CANONICAL_TARGET
#AC_CANONICAL_HOST
AC_CHECK_SIZEOF(int *)
AC_CHECK_LIB(socket,socket,SOCKETLIB="-l socket",SOCKELIB="")
AC_CHECK_LIB(nsl,inet_addr,NSLLIB="-l nsl",NSLLIB="")
dnl See if we need to use native compilers
AS_CASE(["$host"],
[alpha-dec-osf*], [${CC=cc}; ${F77=f77}],
[sparc-sun-solaris2*], [${CC=cc}])
JAVACFLAGS="-encoding UTF-8"
FOR_LINKSHARED=""
dnl Check out the compiler
AC_PROG_CC
AC_PROG_CXX
AS_VAR_SET_IF([NOF77], [], [AC_PROG_F77([gfortran g77 f90 f95])])
AC_MSG_CHECKING([whether to build shared libraries])
AC_ARG_ENABLE([shared],
[AS_HELP_STRING([--disable-shared],
[Prevent building shared libraries])],
[],
[enable_shared=yes])
LINKWHOLEON=
LINKWHOLEOFF=
AS_CASE([$enable_shared],
[yes], [AS_CASE([$host],
[*apple*], [LINKWHOLEON=-Wl,-force_load],
[*linux*], [LINKWHOLEON=-Wl,--whole-archive;LINKWHOLEOFF=-Wl,--no-whole-archive])])
AC_SUBST([LINKWHOLE])
AC_MSG_RESULT([$enable_shared])
dnl See if the linker supports -rpath-link
AC_MSG_CHECKING([whether the linker supports -rpath-link])
AS_VAR_SET_IF([LDFLAGS], [AS_VAR_SET([save_LDFLAGS], ["$LDFLAGS"])])
AS_VAR_SET([LDFLAGS], [-Wl,-rpath-link=dummy])
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
[AS_VAR_SET([RPATHLINK], [-Wl,-rpath-link])])
AM_CONDITIONAL([RPATHLINK], [AS_VAR_TEST_SET([RPATHLINK])])
AC_SUBST([RPATHLINK])
AS_UNSET([LDFLAGS])
AS_VAR_SET_IF([save_LDFLAGS], [AS_VAR_SET([LDFLAGS], ["$save_LDFLAGS"])])
AS_UNSET([save_LDFLAGS])
AM_COND_IF([RPATHLINK], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
AC_MSG_CHECKING([whether to enable statistics])
AC_ARG_ENABLE([perf],
[AS_HELP_STRING([--enable-perf],
[enable MDSplus I/O statistics])],
[],
[AS_VAR_SET([enable_perf], [no])])
AS_CASE([$enable_perf],
[yes], [AC_DEFINE([USE_PERF], [], [Define if you want to collect performance statistics -- linux only])])
AC_MSG_RESULT([$enable_perf])
AC_MSG_CHECKING([whether to build the java components])
AC_ARG_ENABLE([java],
[AS_HELP_STRING([--disable-java],
[Do not build java libraries and applications])],
[],
[AS_VAR_SET([enable_java], [yes])])
PKG_CHECK_MODULES([CHECK], [check], [have_check=yes], [have_check=no])
AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
AC_ARG_ENABLE([valgrind],
[AS_HELP_STRING([--enable-valgrind],
[Use valgrind when running unit tests])],
[AS_VAR_SET([use_valgrind], [yes])],
[])
if [[ "$use_valgrind" = "yes" ]]; then
AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no)
if [[ "$HAVE_VALGRIND" = "no" ]]; then
AC_MSG_ERROR([Valgrind not found in PATH. ])
fi
fi
AM_CONDITIONAL(USE_VALGRIND, test x"$use_valgrind" = "xyes")
dnl AC_ARG_ENABLE([universal],
dnl [AS_HELP_STRING([--enable-universal],
dnl [Build MacOSX Universal Binary])],
dnl [],
dnl [AS_VAR_SET([enable_universal], [no])])
dnl
dnl this new java section hoses macos x... why not use the autoconf java macros?
dnl I'm faking a disable so I can enable by hand later...
dnl AS_CASE([$host_vendor],
dnl [apple], dnl the java section breaks with macos x due to different structure
dnl dnl this disables it for now.. is there a AC_PROG_JAVA?
dnl [AS_VAR_SET([enable_java], [no])]
dnl [AS_VAR_IF([enable_universal], [yes], [CFLAGS="-O2 -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"]
dnl [LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"]
dnl [F77=fort77])])
dnl AC_MSG_RESULT([$enable_java])
AC_ARG_WITH([jdk],
[AS_HELP_STRING([--with-jdk=JDKDIR],
[specify location of java jdk])],
[],
[AS_VAR_SET_IF([JDK_DIR],
[AS_VAR_SET([with_jdk], [$JDK_DIR])],
[AS_VAR_SET([with_jdk], [/etc/alternatives/java_sdk])])])
AC_ARG_WITH([visual_studio],
[AS_HELP_STRING([--with-visual-studio],
[directory tree containing visual studio compiler, includes and libs])],
[],
[AS_VAR_SET_IF([VS_DIR],
[AS_VAR_SET([with_visual_studio], [$VS_DIR])],
[])])
VS_DIR=$with_visual_studio
AM_CONDITIONAL([VS],[AS_VAR_TEST_SET([with_visual_studio])])
AC_ARG_WITH([python_include],
[AS_HELP_STRING([--with-python_include=python-include-directory],
[specify location of Python.h])],
[],
[AS_VAR_SET_IF([PYTHON_INCLUDE_DIR],
[AS_VAR_SET([with_python_include], [$PYTHON_INCLUDE_DIR])],
[])])
PYTHON_INCLUDE_DIR=$with_python_include
AC_ARG_WITH([java_target],
[AS_HELP_STRING([--with-java_target=version],
[specify version of compiled classes (i.e. 6)])],
[JAVACFLAGS="$JAVACFLAGS -source $withval -target $withval"])
AC_ARG_WITH([java_bootclasspath],
[AS_HELP_STRING([--with-java_bootclasspath=bootclasspath],
[specify the bootclasspath option for use with --with-java_target (i.e. /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/rt.jar)])],
[JAVACFLAGS="$JAVACFLAGS -bootclasspath $withval"])
AS_CASE([$enable_java],
[yes], [AC_MSG_CHECKING([for presence of Java Development Kit])
AS_IF([test ! -d $with_jdk/jre],
[AC_MSG_RESULT([not found])
AC_MSG_WARN([YOU NEED TO SPECIFY THE JAVA JDK DIRECTORY OR DISABLE JAVA])
AC_MSG_WARN([The jdk directory can be specified by either defining a JDK_DIR environment])
AC_MSG_WARN([variable or by using the --with-jdk=DIR option.])
AC_MSG_WARN([You can disable java by using the --disable-java option.])
AS_EXIT])
AC_MSG_RESULT([$with_jdk])
AC_PATH_PROG([JAVAC], [javac], [], [$with_jdk/bin$PATH_SEPARATOR$PATH])
AC_PATH_PROG([JAR], [jar], [], [$with_jdk/bin$PATH_SEPARATOR$PATH])
AC_PATH_PROG([RMIC], [rmic], [], [$with_jdk/bin$PATH_SEPARATOR$PATH])])
AM_CONDITIONAL([GLOBUSLICENSE], [test -r $exec_prefix/GLOBUS_LICENSE])
AC_ARG_WITH([gsi],
[AS_HELP_STRING([--with-gsi=globus-location:flavor],
[Use globus gsi for mdsip communications])],
[],
[AS_VAR_SET([with_gsi], [no])])
AS_CASE([$with_gsi],
[no], [AS_VAR_SET([MDSTCPIP], [mdstcpip])],
[*pthr*], [AC_MSG_WARN([Do NOT INCLUDE pthr in the globus flavor!])
AS_EXIT],
[MDSTCPIP="mdstcpip roam"
GLOBUS_LOCATION=`echo $withval | awk -F: '{print $1}'`
GLOBUS_FLAVOR=`echo $withval | awk -F: '{print $2}'`
AS_VAR_IF([GLOBUS_FLAVOR], [],
[AC_MSG_WARN([YOU NEED TO PROVIDE GLOBUS_LOCATION and FLAVOR when using the --with-gsi option])
AC_MSG_WARN([Format: --with-gsi=globus-install-directory:flavor])
AC_MSG_WARN([Example: --with-gsi=/usr/local/gt3:gcc32dbg])
AC_MSG_WARN([])
AC_MSG_WARN([Note do not include pthr in the flavor as it is automatically added.])
AS_EXIT])])
AC_MSG_CHECKING([for an srb installation])
AC_ARG_WITH([srb],
[AS_HELP_STRING([--with-srb=srb-install-dir],
[Enable srb capabilities])],
[],
[AS_VAR_SET([with_srb], [no])])
AS_CASE([$with_srb],
[no], [],
[yes], [AC_MSG_WARN([YOU NEED TO PROVIDE THE LOCATION OF THE unixIO subdirectory of your srb installation])
AC_MSG_WARN([when using the --with-srb option])
AC_MSG_WARN([])
AC_MSG_WARN([Format: --with-srb=srb-install-directory])
AC_MSG_WARN([Example: --with-srb=/scratch/slocal/testc/SRB3_2client/unixIO])
AS_EXIT],
[SRBLIB="-L${with_srb} -lsrbUio"
SRBINCLUDE="-I${with_srb}"
AC_DEFINE(SRB)])
AC_MSG_RESULT([$with_srb])
dnl Look for labview include file
AC_MSG_CHECKING([for labview])
AC_ARG_WITH([labview],
[AS_HELP_STRING([--with-labview=labview-top-dir],
[specify location of labview such as /usr/local/natinst/Labview])],
[],
[AS_VAR_SET_IF([LABVIEW_DIR], [with_labview=$LABVIEW_DIR], [with_labview=no])])
AS_CASE([$with_labview],
[no], [],
[yes], [AC_MSG_ERROR([Labview location required])],
[LV_CINTOOLS="$with_labview/cintools"
LV="mdsobjects/labview"])
AC_MSG_RESULT([$with_labview])
AC_MSG_CHECKING([whether to enable profiled code])
AC_ARG_ENABLE([gcc_profiling],
[AS_HELP_STRING([--enable-gcc_profiling],
[enable gcc profiling])],
[],
[with_gcc_profiling=no])
AS_CASE([$with_gcc_profiling],
[yes], [GCCPROF="-pg"],
[no], [GCCPROF=""],
[AC_MSG_ERROR([--enable-gcc_profiling does not take an argument])])
AC_MSG_RESULT([$with_gcc_profiling])
AC_MSG_CHECKING([for idl])
AC_ARG_WITH([idl],
[AS_HELP_STRING([--with-idl=idl-top-dir],
[specify location of idl such as /usr/local/itt/idl])],
[],
[with_idl=yes])
AS_CASE([$with_idl],
[yes], [AS_VAR_SET_IF([IDL_DIR],
[with_idl=$IDL_DIR],
[AS_IF([test -r /usr/local/itt/idl], [with_idl=/usr/local/itt/idl],
[test -r /usr/local/itt/idl], [with_idl=/usr/local/rsi/idl],
[with_idl=no])])])
AS_CASE([$with_idl],
[no], [],
[IDL_INC="-I$with_idl/external"
IDLMDSEVENT="idlmdsevent"
IDLMDSWIDGETS="idlmdswidgets"])
AC_MSG_RESULT([$with_idl])
dnl FIXME: Remove this hack
AS_VAR_IF([with_idl], [no], [IDL_DIR=""], [IDL_DIR=$with_idl])
AC_MSG_CHECKING([for mingw])
AS_CASE([$host],
[*mingw*],[AS_VAR_SET([MINGW])])
AM_CONDITIONAL([MINGW], [AS_VAR_TEST_SET([MINGW])])
AM_COND_IF([MINGW], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
FORLD=ld
LD=ld
LD_LDARC=""
LD_LDSHARE=""
IDL_LD=""
LIBPRE="lib"
CFLAGS="$CFLAGS $GCCPROF"
CPPFLAGS="-I\$(top_srcdir)/include $CPPFLAGS"
if test "$exec_prefix" = "NONE" -a "$prefix" = "NONE"
then
: ${uiddir:=$ac_default_prefix/uid}
elif test "$exec_prefix" = "NONE"
then
: ${uiddir:=$prefix/uid}
else
: ${uiddir:=$exec_prefix/uid}
fi
MAKEUIDDIR="\$(top_srcdir)/uid/"
MAKESHLIBDIR="\$(top_srcdir)/lib/"
MAKEBINDIR="\$(top_srcdir)/bin/"
MAKELIBDIR="\$(top_srcdir)/lib/"
EXPORTS_FILE=""
JDK_LIVECONNECT="$with_jdk/jre/lib/plugin.jar"
TAR_EXCLUDE="-e"
HUP_TO_XINETD=""
HUP_TO_INETD=""
UILCMD="uil"
FOR_LDFLAGS=""
MINGW="no"
SHARETYPE=".so"
THREAD="-pthread"
AC_SUBST([THREAD])
ICONS=""
MITDEVICESIO_TARGETS=""
case "$host" in
mips*) CFLAGS="$CFLAGS -signed -D_BSD_SIGNALS -KPIC";
FFLAGS="$FFLAGS -D_BSD_SIGNALS -KPIC";
LDSHARE="-B dynamic";
LDARC="-B static";
LD_LDSHARE="-B dynamic";
LD_LDARC="-B static";
LINKSHARED="-shared ";
FOR_LINKSHARED="$LINKSHARED";
FOR_LDFLAGS="";
LIBPATH="LD_LIBRARY_PATH";
FEXECLIBDIR="-L";
HUP_TO_INETD="kill -HUP \`ps -e | grep inetd | grep -v grep | awk '{print $1}'\`";
;;
*-solaris2*)
if test $CC = gcc; then
LD=gcc;
FORLD=gcc;
LINKSHARED="-shared ";
FOR_LINKSHARED="$LINKSHARED"
LD_LDSHARE="-Wl,-B,dynamic";
LD_LDARC="-Wl,-B,static";
LDSHARE="-Wl,-B,dynamic";
LDARC="-Wl,-B,static";
CFLAGS="$CFLAGS -fPIC -D_POSIX_PTHREAD_SEMANTICS";
LDFLAGS="$CFLAGS";
else
LINKSHARED="-G ";
FOR_LINKSHARED="$LINKSHARED";
LD_LDARC="-B static ";
LD_LDSHARE="-B dynamic ";
LDSHARE="-B dynamic";
LDARC="-B static";
if test -n "`echo 'int main(){return 0;}' | cc -o /dev/null -E -c -Kpic - 2>&1`"; then
LDSHARE="-Wl,-B,dynamic";
LDARC="-Wl,-B,static";
else
CFLAGS="$CFLAGS -Kpic";
fi;
fi;
if test "$F77" = "gfortran"
then
FFLAGS="$FFLAGS -fPIC -fno-range-check"
else
FFLAGS="$FFLAGS -PIC";
fi
IDL_LD="-L${IDL_DIR}/bin/bin.solaris2.sparc -lidl"
LIBPATH="LD_LIBRARY_PATH";
FEXECLIBDIR="-L";
jni_inc_dir="${JDK_DIR}/include";
jni_md_inc_dir="${JDK_DIR}/include/solaris";
HUP_TO_INETD="kill -HUP \`ps -e -o pid -o command | grep /usr/sbin/inetd | grep -v grep | awk '{print $1}'\`";;
*mingw*)
AC_PROG_F77
ICONS=icons
IDLMDSEVENT=""
MINGW="yes"
LIBPRE=""
SOCKETLIB="-lws2_32"
CFLAGS="$CFLAGS -fno-strict-aliasing";
LD="$CXX -static-libgcc"
FFLAGS="$FFLAGS -fno-range-check"
FORLD="$F77"
if ( echo $host | grep i686 > /dev/null )
then
SQL_ARCH=32
BINDIR=bin_x86
VS_ARCH=x86
IDL_LIB="-L/mnt/scratch/mdsplus/idl-mingw-libs -lidl64"
WINDRES=/usr/bin/i686-w64-mingw32-windres
else
SQL_ARCH=64
BINDIR=bin_x86_64
VS_ARCH=x64
IDL_LIB="-L/mnt/scratch/mdsplus/idl-mingw-libs -lidl32"
WINDRES=/usr/bin/x86_64-w64-mingw32-windres
fi
MAKELIBDIR="\$(top_srcdir)/$BINDIR/"
MAKESHLIBDIR="\$(top_srcdir)/$BINDIR/"
MAKEBINDIR="\$(top_srcdir)/$BINDIR/"
FFLAGS="$FFLAGS -fno-backslash";
LDSHARE="-Wl,-Bdynamic ";
LDARC="-Wl,-Bstatic ";
LD_LDSHARE="-Bdynamic ";
LD_LDARC="-Bstatic ";
LINKSHARED="-shared ";
FOR_LINKSHARED="$LINKSHARED";
LIBPATH="LD_LIBRARY_PATH";
FOR_LDFLAGS="";
FEXECLIBDIR="-L";
SHARETYPE=".dll"
jni_inc_dir="$with_jdk/include";
jni_md_inc_dir="$with_jdk/include/linux";;
*86*linux*)
CFLAGS="$CFLAGS -fpic -shared-libgcc -fno-strict-aliasing";
FORLD="$F77";
LD="gcc"
if ( uname -m | grep 64 > /dev/null )
then
if ( echo $host| grep 64 > /dev/null )
then
if [[ -d /usr/lib64 ]]
then
D64="64"
else
D64=""
fi
SYB64=$D64
TARGET_ARCH="-m64"
UILCMD=uil
uiddir="${uiddir}${D64}"
MAKELIBDIR="\$(top_srcdir)/lib${D64}/"
MAKESHLIBDIR="\$(top_srcdir)/lib${D64}/"
MAKEUIDDIR="\$(top_srcdir)/uid${D64}/"
MAKEBINDIR="\$(top_srcdir)/bin${D64}/"
else
TARGET_ARCH="-m32"
UILCMD=uil32
uiddir="${uiddir}32"
MAKELIBDIR="\$(top_srcdir)/lib32/"
MAKESHLIBDIR="\$(top_srcdir)/lib32/"
MAKEUIDDIR="\$(top_srcdir)/uid32/"
MAKEBINDIR="\$(top_srcdir)/bin32/"
fi
fi
FFLAGS="$FFLAGS -fno-range-check"
FOR_LDFLAGS="-lg2c"
FFLAGS="$FFLAGS -fpic -fno-backslash";
LDSHARE="-Wl,-Bdynamic ";
LDARC="-Wl,-Bstatic ";
LD_LDSHARE="-Bdynamic ";
LD_LDARC="-Bstatic ";
LINKSHARED="-shared ";
FOR_LINKSHARED="$LINKSHARED";
LIBPATH="LD_LIBRARY_PATH";
FOR_LDFLAGS="";
FEXECLIBDIR="-L";
TAR_EXCLUDE="--exclude";
MITDEVICESIO_TARGETS="${MAKESHLIBDIR}libMitDevicesIO${SHARETYPE} ${MAKELIBDIR}libMitDevicesIO.a ${MAKEBINDIR}daq_server";
jni_inc_dir="$with_jdk/include";
jni_md_inc_dir="$with_jdk/include/linux";
HUP_TO_XINETD="/etc/rc.d/init.d/xinetd restart";
HUP_TO_INETD="kill -HUP \`/sbin/pidof inetd\`";
;;
*arm-xilinx-linux-gnueabi) echo "configuring for Xylinx zynq board (arm cortex a9)";
CC=arm-xilinx-linux-gnueabi-gcc;
LD=arm-xilinx-linux-gnueabi-ld;
AR=arm-xilinx-linux-gnueabi-ar;
RANLIB=arm-xilinx-linux-gnueabi-ranlib;
SIZEOF_LONG=4;
SIZEOF_LONG_LONG=8;
D64="";
CFLAGS="$CFLAGS -fpic -shared-libgcc -fno-strict-aliasing";
if (test "$F77" = "g77"); then
FFLAGS="$FFLAGS -Wno-globals"
FOR_LDFLAGS="-lg2c"
FORLD="$F77"
elif (test "$F77" = "gfortran"); then
FFLAGS="$FFLAGS -fno-range-check";
FORLD="$F77"
FOR_LDFLAGS="-lg2c"
elif (($F77 --version | grep 'GNU Fortran') >/dev/null 2>&1); then
FFLAGS="$FFLAGS -fno-range-check"
FORLD="$F77"
FOR_LDFLAGS="-lg2c"
fi
FFLAGS="$FFLAGS -fpic -fno-backslash";
LDSHARE="-Wl,-Bdynamic ";
LDARC="-Wl,-Bstatic ";
LD_LDSHARE="-Bdynamic ";
LD_LDARC="-Bstatic ";
LINKSHARED="-shared ";
FOR_LINKSHARED="$LINKSHARED";
LIBPATH="LD_LIBRARY_PATH";
FOR_LDFLAGS="";
FEXECLIBDIR="-L";
TAR_EXCLUDE="--exclude";
jni_inc_dir="$with_jdk/include";
jni_md_inc_dir="$with_jdk/include/linux";
HUP_TO_XINETD="/etc/rc.d/init.d/xinetd restart";
HUP_TO_INETD="kill -HUP \`/sbin/pidof inetd\`";;
*linux*) CFLAGS="$CFLAGS -fpic -shared-libgcc -fno-strict-aliasing";
FFLAGS="$FFLAGS -fno-range-check";
FORLD="$F77"
FOR_LDFLAGS="-lg2c"
FFLAGS="$FFLAGS -fpic -fno-backslash";
LDSHARE="-Wl,-Bdynamic ";
LDARC="-Wl,-Bstatic ";
LD_LDSHARE="-Bdynamic ";
LD_LDARC="-Bstatic ";
LINKSHARED="-shared ";
FOR_LINKSHARED="$LINKSHARED";
LIBPATH="LD_LIBRARY_PATH";
FOR_LDFLAGS="";
FEXECLIBDIR="-L";
TAR_EXCLUDE="--exclude";
jni_inc_dir="$with_jdk/include";
jni_md_inc_dir="$with_jdk/include/linux";
HUP_TO_XINETD="/etc/rc.d/init.d/xinetd restart";
HUP_TO_INETD="kill -HUP \`/sbin/pidof inetd\`";;
*apple-darwin*) echo "Configuring for MacOS X";
MACOSX="macosx"
CFLAGS="$CFLAGS -arch x86_64 -arch i386 -dynamic";
if (test "$F77" = "f77"); then
FFLAGS="$FFLAGS -w -f -V -W"
FORLD="$F77"
elif (test "$F77" = "g77"); then
FFLAGS="$FFLAGS -fno-backslash -Wno-globals";
FOR_LDFLAGS="-lg2c";
FORLD="$F77"
elif (test "$F77" = "fort77"); then
FFLAGS="$FFLAGS -!bs -Wf,-!it";
FOR_LDFLAGS="-L/usr/local/lib/ -lf2c";
FORLD="$CC"
elif (test "$F77" = "gfortran"); then
FFLAGS="$FFLAGS -fno-range-check"
FORLD="gfortran"
FOR_LDFLAGS="-shared"
fi;
FEXECLIBDIR="-L";
LD="$CC"
LDSHARE="";
LD_LDSHARE="";
LDARC="";
LD_LDARC="";
UILPATH=/usr/OpenMotif/bin;
MOTIF_LDARC="-Wl,-bind_at_load -multiply_defined suppress -L/usr/OpenMotif/lib"
MOTIF_LD_LDARC="-multiply_defined suppress -L/usr/OpenMotif/lib"
dnl LINKSHARED="$LDFLAGS -dynamiclib -install_name $libdir/\$(@F) -headerpad_max_install_names -prebind \
dnl -seg_addr_table_filename \$(@F) -seg_addr_table ../macosx/bindtable -Wl,-single_module";
LINKSHARED="$LDFLAGS -shared -arch i386 -arch x86_64";
FOR_LINKSHARED="$LDFLAGS -shared";
LINKMODULE="$LDFLAGS -bundle -undefined dynamic_lookup";
IDL_LD="";
LINKJNI="$LINKSHARED";
SHARETYPE=".dylib";
SHARETYPEJNI=".dylib";
SHARETYPEMOD=".dylib";
TAR_EXCLUDE="--exclude";
JDK_DIR=/Library/Java/Home
jni_inc_dir="/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers";
jni_md_inc_dir="$jni_inc_dir";
JDK_LIVECONNECT="$JDK_DIR/lib/plugin.jar"
java_enable="yes"
LIBPATH="DYLD_LIBRARY_PATH"
dnl HDF5_LIBS="-lz -lsz";
dnl HDF5_DIR="/usr/local";
X_EXTRA_LIBS="-lXmu";;
*aix*) CFLAGS="$CFLAGS -fpic -fno-strict-aliasing";
FFLAGS="$FFLAGS -qpic -qnoescape";
LDSHARE="";
LDARC="";
FOR_LDFLAGS="-lxlf90";
LINKSHARED="-bnoentry -bM:SRE -bE:\$(EXPORTS)";
FOR_LINKSHARED="$LINKSHARED";
LIBPATH="LIBPATH";
MAKESHLIBDIR="\$(top_srcdir)/shlib/";
EXPORTS_FILE="\$(EXPORTS)";
FEXECLIBDIR="-L";
SHARETYPE=".a";
HUP_TO_INETD="kill -HUP \`ps -e | grep inetd | grep -v grep | awk '{print $1}'\`";;
*qnx*) CFLAGS="$CFLAGS -fpic";
LDSHARE="-Wl,-Bdynamic ";
LDARC="-Wl,-Bstatic ";
LD_LDSHARE="-Bdynamic ";
LD_LDARC="-Bstatic ";
LINKSHARED="-shared ";
FOR_LINKSHARED="$LINKSHARED";
LIBPATH="LD_LIBRARY_PATH";
FOR_LDFLAGS="";
FEXECLIBDIR="-L";
;;
esac
dnl see if we have libdc1394 libraries and what version
AC_CHECK_LIB(dc1394,dc1394_new ,dc1394_v2=yes)
AC_CHECK_LIB(dc1394,dc1394_get_camera_info ,dc1394_v1=yes)
AC_CHECK_LIB(raw1394,raw1394_get_libversion ,raw1394=yes)
if test "$dc1394_v2" = "yes" -a "$raw1394"="yes"; then
DC1394_SUPPORT2="${MAKESHLIBDIR}libdc1394_support2$SHARETYPE"
else
DC1394_SUPPORT2=""
fi
if test "$dc1394_v1" = "yes" -a "$raw1394"="yes"; then
DC1394_SUPPORT="${MAKESHLIBDIR}libdc1394_support$SHARETYPE"
else
DC1394_SUPPORT=""
fi
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long)
AC_CHECK_SIZEOF(_int64)
dnl Checks for programs.
AC_PROG_RANLIB
AC_PROG_MKDIR_P
AC_PROG_INSTALL
AC_PROG_SED
#FIXME: Remove this when Makefile.inc goes away
AS_CASE(["$MKDIR_P"],
[*install-sh*], [MKDIR_P="\$(top_srcdir)/$MKDIR_P"])
dnl Define build directories
# Stuff that only non-automake dirs need
AC_SUBST([MAKEETCDIR], ["\$(top_srcdir)/etc/"])
dnl Check for 0xnnnnll (long long constants)
AC_LANG_SAVE
AC_LANG_C
AC_TRY_COMPILE(,int gub(){return((int)0x1ll);},AC_DEFINE(HAVE_LL_CONSTANTS))
AC_LANG_RESTORE
AC_MSG_CHECKING(if JNI libraries are different)
if test "$LINKJNI"
then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
SHARETYPEJNI="$SHARETYPE"
LINKJNI="$LINKSHARED"
fi
AC_MSG_CHECKING(if IDL plugins are different)
if test "$LINKMODULE"
then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
SHARETYPEMOD="$SHARETYPE"
LINKMODULE="$LINKSHARED"
fi
dnl Checks for libraries.
AC_CHECK_LIB([m], [pow], [LIBM="-lm"], [LIBM=""])
AC_CHECK_LIB(resolv,__dn_skipname,LIBRESOLV="-lresolv",LIBRESOLV="")
AC_CHECK_LIB(dl,dlopen,LIBDL="-ldl",LIBDL="")
AC_CHECK_LIB(c,gethostbyname,LIBNSL="",AC_CHECK_LIB(socket,gethostbyname,LIBNSL="-lsocket",AC_CHECK_LIB(nsl,gethostbyname,LIBNSL="-lnsl",LIBNSL="")))
AC_CHECK_LIB(c,socket,LIBSOCKET="",AC_CHECK_LIB(socket,socket,LIBSOCKET="-lsocket",LIBSOCKET=""))
AC_CHECK_LIB(c,getgrgid,AC_DEFINE(HAVE_GETGRGID))
AC_CHECK_LIB(c,getpwuid,AC_DEFINE(HAVE_GETPWUID))
AC_CHECK_LIB(dnet_stub,gethostbyname,DNET_STUB="-ldnet_stub",DNET_STUB="")
OLDLIBS="$LIBS"
AC_SEARCH_LIBS([clock_gettime],[rt],,,)
LIBS="$OLDLIBS"
CLOCK_GETTIME_LIB=""
if test "$ac_cv_search_clock_gettime" != "no"
then
if test "$ac_cv_search_clock_gettime" != "none required"
then
CLOCK_GETTIME_LIB="$ac_cv_search_clock_gettime"
fi
AC_DEFINE(HAVE_CLOCK_GETTIME)
fi
OLDLIBS="$LIBS"
AC_SEARCH_LIBS([readline],[readline 'readline -lcurses'])
LIBS="$OLDLIBS"
if test "$ac_cv_search_readline" = "no"
then
AC_MSG_RESULT("libreadline is not available so the build of tdic will be skipped")
TDIC=""
LIBREADLINE=""
else
LIBREADLINE="$ac_cv_search_readline"
TDIC="tdic"
fi
AC_SEARCH_LIBS([rl_set_signals],[readline 'readline -lcurses'],AC_DEFINE(HAVE_RL_SET_SIGNALS))
AC_CHECK_LIB(c,gettimeofday,AC_DEFINE(HAVE_GETTIMEOFDAY))
AC_CHECK_LIB(c,getaddrinfo,AC_DEFINE(HAVE_GETADDRINFO))
AC_CHECK_LIB(c,strsep,AC_DEFINE(HAVE_STRSEP))
AC_CHECK_LIB(c,getrusage,AC_DEFINE(HAVE_GETRUSAGE))
AC_ARG_ENABLE(d3d,
[ --enable-d3d build d3d ptdata access library ],
if test "$enableval" = yes; then
AC_MSG_CHECKING(...D3DLIB_PATH...)
: ${D3DLIB_PATH:?"You must define D3DLIB_PATH to be the directory containing the libd3 library"}
if test -r "$D3DLIB_PATH/libd3.a" -o -r "$D3DLIB_PATH/libd3$SHARETYPE"
then
D3D_PACKAGE="\$(D3D_PACKAGE)";
D3DLIB="-L$D3DLIB_PATH";
AC_MSG_RESULT($D3DLIB)
else
AC_MSG_RESULT(libd3.a or libd3$SHARETYPE not found in $D3DLIB_PATH)
exit 0
fi
fi)
dnl Checks for header files.
AC_CHECK_HEADERS(stdarg.h fcntl.h strings.h sys/ioctl.h syslog.h unistd.h sys/filio.h netdb.h resolv.h sys/types.h linux/types.h drm/drm.h pwd.h grp.h)
AC_CHECK_HEADERS(dlfcn.h dl.h vxWorks.h windows.h sys/resource.h readline/readline.h)
AC_CHECK_HEADERS(malloc.h pthread.h alloca.h)
REMCAM="remcam"
MITDEVICES="mitdevices"
AC_CHECK_HEADERS(scsi/sg.h,DO_CAMSHR="yes",DO_CAMSHR="no")
if test "$DO_CAMSHR" = yes
then
CAMSHR="camshr"
REMCAMLIB="RemCamShr"
else
CAMSHR=""
REMCAMLIB="CamShr"
fi
AC_CHECK_HEADERS([stdint.h])
dnl Check for default hdf5 header and library
HDF5_APS=""
AC_CHECK_HEADERS(hdf5.h,DO_HDF5="yes")
if test "$DO_HDF5" = yes; then
AC_CHECK_LIB(hdf5,H5Fopen,DO_HDF5="yes",DO_HDF5="no")
if test "$DO_HDF5" = yes; then
HDF5_APS="\$(HDF5_APS)"
HDF5_INCS=""
HDF5_LIBS=""
fi
dnl Check for user specified hdf5 header and library
if test -n "$HDF5_DIR" -a -r "$HDF5_DIR"
then
HDF5_APS="\$(HDF5_APS)"
HDF5_INCS="-I$HDF5_DIR/include"
HDF5_LIBS="$HDF5_LIBS -L$HDF5_DIR/lib"
fi
fi
dnl Check for jdk files
OLD_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I$jni_inc_dir -I$jni_md_inc_dir"
AC_CHECK_HEADER(jni.h,JDK_CFLAGS="-I$jni_inc_dir")
AC_CHECK_HEADER(jni_md.h,JDK_CFLAGS="$JDK_CFLAGS -I$jni_md_inc_dir")
AS_VAR_SET_IF([JDK_CFLAGS], [AS_CASE([$enable_java], [yes], [JAVA_APS="\$(JAVA_APS)"])])
CPPFLAGS="$OLD_CPPFLAGS"
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_HEADER_TIME
AC_STRUCT_TM
AC_TYPE_SIGNAL
AC_TYPE_SIZE_T
dnl Check if we are missing <sys/sem.h> but can use <semaphore.h> API instead
AC_MSG_CHECKING([if we should use named semaphores])
AC_TRY_CPP([ #include <sys/sem.h> ] , namedsem=no, namedsem=yes )
if test "$namedsem" = yes; then
AC_TRY_CPP([ #include <semaphore.h> ],
[AC_DEFINE(USE_SEMAPHORE_H) namedsem=yes],
namedsem=no)
fi
AC_MSG_RESULT([ $namedsem])
dnl Check if we want to try Named Pipes instead of <sys/msg.h> API
AC_CHECK_HEADERS(sys/msg.h,mdsplus_ok=no,mdsplus_ok=yes)
if test "$mdsplus_ok" = yes; then
AC_CHECK_HEADERS(sys/stat.h, mdsplus_ok=yes, mdsplus_ok=no)
AC_MSG_CHECKING(if we should use pipes for messaging)
if test "$mdsplus_ok" = yes; then
AC_DEFINE(USE_PIPED_MESSAGING)
AC_MSG_RESULT($mdsplus_ok)
fi
fi
#AC_CACHE_CHECK([for timezone and daylight externals], mdsplus_cv_have_timezone,
# AC_TRY_LINK([#include <time.h>], [long z2 = timezone - daylight*3600;],
# mdsplus_cv_have_timezone=yes, mdsplus_cv_have_timezone=no))
# if test "$mdsplus_cv_have_timezone" = yes; then
# AC_DEFINE(HAVE_TIMEZONE)
# else
# AC_CACHE_CHECK([for tm_gmtoff in struct tm], mdsplus_cv_tm_gmtoff_in_tm,
# AC_TRY_LINK([#include <time.h>], [struct tm tim; tim.tm_gmtoff = 0;],
# mdsplus_cv_tm_gmtoff_in_tm=yes,mdsplus_cv_tm_gmtoff_in_tm=no))
# fi
# if test "$mdsplus_cv_tm_gmtoff_in_tm" = yes; then
# AC_DEFINE(USE_TM_GMTOFF)
# fi
AC_CACHE_CHECK([for tm_gmtoff in struct tm], mdsplus_cv_tm_gmtoff_in_tm,
AC_TRY_LINK([#include <time.h>], [struct tm tim; tim.tm_gmtoff = 0;],
mdsplus_cv_tm_gmtoff_in_tm=yes,mdsplus_cv_tm_gmtoff_in_tm=no))
if test "$mdsplus_cv_tm_gmtoff_in_tm" = yes; then
AC_DEFINE(USE_TM_GMTOFF)
fi
AC_MSG_CHECKING(for semun union declaration)
AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/sem.h>],[union semun arg;],
mdsplus_ok=yes,mdsplus_ok=no)
if test $mdsplus_ok = no; then
AC_DEFINE(NEED_SEMUN)
fi
AC_MSG_RESULT($mdsplus_ok)
AC_MSG_CHECKING(whether we need to type shmat)
AC_TRY_COMPILE([#include <sys/shm.h>],[char *shmat();],
mdsplus_ok=yes,mdsplus_ok=no)
if test $mdsplus_ok = yes; then
AC_DEFINE(TYPE_SHMAT)
fi
AC_MSG_RESULT($mdsplus_ok)
AC_MSG_CHECKING(for two byte fd in *FILE)
AC_EGREP_HEADER(_fileL,stdio.h,mdsplus_ok=yes,mdsplus_ok=no)
if test $mdsplus_ok = yes; then
AC_DEFINE(FILE_PTR_HL)
fi
AC_MSG_RESULT($mdsplus_ok)
dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_HEADER_STDC
AC_CHECK_FUNCS(gethostname gettimeofday select socket)
AC_CHECK_FUNC(nis_local_host,mdsplus_ok=yes,mdsplus_ok=no)
AC_CHECK_FUNC(malloc)
AC_CHECK_FUNC(sched_setscheduler)
dnl Check for Sybase
if test "$host_cpu" = "arm" -a "$(echo $host | grep arm-xilinx)" != ""
then
SYBASE_INC=""
SYBASE_LIB=""
SYBASE=""
AC_MSG_RESULT(no sybase open/client)
elif ( echo $host | grep "mingw" >/dev/null )
then
SYBASE_INC="-DSYBASE"
SYBASE_LIB="-L. -lntwdblib${SQL_ARCH}"
SYBASE="SYBASE"
AC_MSG_RESULT(using Windows mssql)
elif test "$(echo $SYBASE_LIB | grep '\-L')" = ""
then
SYBASE_INC=""
SYBASE_LIB=""
OLDLIBS="$LIBS"
AC_SEARCH_LIBS([dbsqlexec],[sybdb],SYBASE_LIB="-lsybdb";SYBASE_INC="-DSYBASE";SYBASE="SYBASE",SYBASE_LIB="",)
LIBS="$OLDLIBS"
if test "$SYBASE_LIB" = ""
then
AC_MSG_CHECKING(for SYBASE open/client or freetds)
if test -r "/usr/lib${SYB64}/libsybdb.so"
then
SYBASE_INC="-DSYBASE"
SYBASE_LIB="-lsybdb"
SYBASE="SYBASE"
AC_MSG_RESULT(have freetds)
else
: ${SYBASE=/usr/local/sybase}
if test -r "$SYBASE/lib"
then SYBASE_LIBDIR="$SYBASE/lib"
elif test -r "$SYBASE/lib${SYB64}"
then SYBASE_LIBDIR="$SYBASE/lib${SYB64}"
fi
if test "$SYBASE_LIBDIR" != ""
then
if test -r "$SYBASE_LIBDIR/libsybdb.a"
then
SYBASE_LIB="-L$SYBASE_LIBDIR $LD_LDARC -lsybdb $LD_LDSHARE"
else
SYBASE_LIB="-L$SYBASE_LIBDIR -lsybdb"
fi
SYBASE_INC="-I$SYBASE/include -DSYBASE"
AC_MSG_RESULT(have sybase)
else
SYBASE=""
AC_MSG_RESULT(no sybase open/client)
fi
fi
fi
else
SYBASE="SYBASE"
fi
AC_MSG_CHECKING(if mdssql should be built)
if test -n "$SYBASE_INC"
then
MDSSQL="mdssql"
AC_MSG_RESULT(have sql so yes.)
AC_DEFINE(HAVE_SYBASE)
else
MDSSQL=""
AC_MSG_RESULT(missing sql so no.)
fi
AC_DEFINE_UNQUOTED(SHARELIB_TYPE,"${SHARETYPE}")
AC_C_BIGENDIAN
AC_PATH_XTRA
AS_CASE([$host],
[*darwin*|*apple*], [X_CFLAGS+=" -I/usr/OpenMotif/include"
X_LIBS+=" -L/usr/OpenMotif/lib"])
AS_CASE([$host],[arm*gnueabihf],[X_CFLAGS=""])
#FIXME: Change the above to AS_VAR_APPEND with a new autoconf version (2.64+?)
if test $UILCMD = uil32
then
X_LIBS=`echo $X_LIBS | sed s/lib64/lib/`
fi
AC_PATH_PROG(UIL,$UILCMD,$UILCMD,$UILPATH:/usr/bin/X11:$PATH:/usr/dt/bin)
AC_MSG_CHECKING(for uil command)
if ( which $UIL 2>/dev/null )
then
UIL="env LANG=en_US $UIL"
MOTIF_APS="\$(MOTIF_APS)"
AC_MSG_RESULT(have uil so openmotif apps will be built.)
else
MOTIF_APS=""
AC_MSG_RESULT(no uil so skipping openmotif apps.openmotif-devel not installed.)
fi
if [[ "$MINGW" = "yes" ]]
then
MOTIF_APS=""
fi
## ////////////////////////////////////////////////////////////////////////// ##
## // DOXYGEN ///////////////////////////////////////////////////////////// ##
## ////////////////////////////////////////////////////////////////////////// ##
## minimum requred doxygen for cute documentation rendering
DOXYGEN_VERSION_REQUIRED="1.8"
## versioning check script for sh usign sort builtin command
## check if $2 is a version higher than $1
function _ver_higher {
ver=`echo -ne "$1\n$2" |sort -Vr |head -n1`
if [[ "$2" == "$1" ]]; then return 1
elif [[ "$2" == "$ver" ]]; then return 0
else return 1
fi
}
## checking for doxygen bin in path (see also m4 macro below)
AC_CHECK_PROGS([DOXYGEN], [doxygen])
if test -z "$DOXYGEN";
then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
AM_CONDITIONAL([HAVE_CUTE_DOXYGEN], [false])
else
AM_CONDITIONAL([HAVE_CUTE_DOXYGEN],
[_ver_higher $DOXYGEN_VERSION_REQUIRED `$DOXYGEN --version`])
AM_COND_IF([HAVE_CUTE_DOXYGEN],
[ echo "Doxygen version is cute!" ],
[ AC_MSG_WARN(["Doxygen version outdated, very limited documentation support"]) ])
fi
## DEFAULT ACTIVE FEATURES
DX_HTML_FEATURE(ON)
DX_CHM_FEATURE(OFF)
DX_CHI_FEATURE(OFF)
DX_MAN_FEATURE(OFF)
DX_RTF_FEATURE(OFF)
DX_XML_FEATURE(OFF)
DX_PDF_FEATURE(ON)
DX_PS_FEATURE(OFF)
## refers to ax_prog_doxygen.m4 macro expansion
DX_INIT_DOXYGEN(mdsplus, doxygen.cfg)
XM_LIBS="-lMrm -lXm"
AC_CHECK_LIB(Xext,XextAddDisplay,LIBXEXT="-lXext",LIBXEXT="")
AC_CHECK_LIB(Xp,XpGetDocumentData,LIBXP="-lXp",LIBXP="")
AM_CONDITIONAL([NOT_MINGW], [test "$MINGW" != "yes"])
AC_SUBST(CAMSHR)
AC_SUBST(CLOCK_GETTIME_LIB)
AC_SUBST(D3D_PACKAGE)
AC_SUBST(D3DLIB)
AC_SUBST(D3D_FFLAGS)
AC_SUBST(DNET_STUB)
AC_SUBST(EXPORTS_FILE)
AC_SUBST(FEXECLIBDIR)
AC_SUBST(FORLD)
AC_SUBST(FOR_LDFLAGS)
AC_SUBST(FOR_LINKSHARED)
AC_SUBST(GEN_DEVICE)
AC_SUBST(GLOBUS_CFLAGS)
AC_SUBST(GLOBUS_FLAVOR)
AC_SUBST(GLOBUS_LIBS)
AC_SUBST(GLOBUS_LOCATION)
AC_SUBST(HDF5_INCS)
AC_SUBST(HDF5_LIBS)
AC_SUBST(HDF5_APS)
AC_SUBST(HUP_TO_INETD)
AC_SUBST(HUP_TO_XINETD)
AC_SUBST(ICONS)
AC_SUBST(IDL_INC)
AC_SUBST(IDL_LIB)
AC_SUBST(IDLMDSEVENT)
AC_SUBST(IDLMDSWIDGETS)