~ubuntu-branches/debian/sid/valgrind/sid

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Andrés Roldán
  • Date: 2008-06-13 02:31:40 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080613023140-rezbg9gtvybimy2q
Tags: 1:3.3.1-2
* debian/rules:
  - Forgot to copy debian-libc6-dbg.supp to /usr/lib/valgrind. 
    (Closes: #486021)

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
##------------------------------------------------------------##
9
9
 
10
10
# Process this file with autoconf to produce a configure script.
11
 
AC_INIT(Valgrind, 3.2.1, valgrind-users@lists.sourceforge.net)
 
11
AC_INIT(Valgrind, 3.3.1, valgrind-users@lists.sourceforge.net)
12
12
AC_CONFIG_SRCDIR(coregrind/m_main.c)
13
13
AM_CONFIG_HEADER(config.h)
14
14
AM_INIT_AUTOMAKE
108
108
esac
109
109
 
110
110
 
111
 
# Checks for the platform
 
111
# Checks for the platform, with the aim of setting VG_ARCH.  Note
 
112
# that VG_ARCH must be set to reflect the most that this CPU can
 
113
# do: for example if it is a 64-bit capable PowerPC, then it must
 
114
# be set to ppc64 and not ppc32.  Ditto for amd64.
 
115
 
112
116
AC_CANONICAL_HOST
113
117
 
114
118
AC_MSG_CHECKING([for a supported CPU])
135
139
        ;;
136
140
 
137
141
     powerpc64)
 
142
#       This value can only happen on Linux, not on AIX
138
143
        AC_MSG_RESULT([ok (${host_cpu})])
139
144
        VG_ARCH="ppc64"
140
145
        valt_load_address_normal="0x38000000"
142
147
        ;;
143
148
 
144
149
     powerpc)
 
150
#       Complexity.  'powerpc' on AIX implies a 64-bit capable CPU.
 
151
#       Whereas in Linux that means only a 32-bit capable CPU.
145
152
        AC_MSG_RESULT([ok (${host_cpu})])
146
 
        VG_ARCH="ppc32"
 
153
        case "${host_os}" in
 
154
           aix5.*)
 
155
              VG_ARCH="ppc64"
 
156
              ;;
 
157
           *)
 
158
              VG_ARCH="ppc32"
 
159
              ;;
 
160
        esac
147
161
        valt_load_address_normal="0x38000000"
148
162
        valt_load_address_inner="0x28000000"
149
163
        ;;
227
241
 
228
242
        ;;
229
243
 
 
244
     aix5.1.*)
 
245
        AC_MSG_RESULT([ok (${host_os})])
 
246
        VG_OS="aix5"
 
247
        ;;
 
248
     aix5.2.*)
 
249
        AC_MSG_RESULT([ok (${host_os})])
 
250
        VG_OS="aix5"
 
251
        ;;       
 
252
     aix5.3.*)
 
253
        AC_MSG_RESULT([ok (${host_os})])
 
254
        VG_OS="aix5"
 
255
        ;;       
 
256
 
230
257
     *freebsd*)
231
258
        AC_MSG_RESULT([ok (${host_os})])
232
259
        VG_OS="freebsd"
238
265
        ;;
239
266
esac
240
267
 
 
268
# If we are building on a 64 bit platform test to see if the system
 
269
# supports building 32 bit programs and disable 32 bit support if it
 
270
# does not support building 32 bit programs
 
271
 
 
272
case "$VG_ARCH-$VG_OS" in
 
273
     amd64-linux|ppc64-linux)
 
274
        AC_MSG_CHECKING([for 32 bit build support])
 
275
        safe_CFLAGS=$CFLAGS
 
276
        CFLAGS="-m32"
 
277
        AC_TRY_LINK(, [
 
278
        int main () { return 0 ; }
 
279
        ],
 
280
        [
 
281
        AC_MSG_RESULT([yes])
 
282
        ], [
 
283
        vg_cv_only64bit="yes"
 
284
        AC_MSG_RESULT([no])
 
285
        ])
 
286
        CFLAGS=$safe_CFLAGS;;
 
287
esac
 
288
 
 
289
if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then
 
290
   AC_MSG_ERROR(
 
291
      [--enable-only32bit was specified but system does not support 32 bit builds])
 
292
fi
241
293
 
242
294
# Establish VG_PLATFORM_PRI.  This is the primary build target.  The
243
295
# entire system, including regression and performance tests, will be
276
328
        VG_PLATFORM_SEC=""
277
329
        AC_MSG_RESULT([ok (${host_cpu}-${host_os})])
278
330
        ;;
 
331
     ppc64-aix5)
 
332
        if test x$vg_cv_only64bit = xyes; then
 
333
           VG_PLATFORM_PRI="PPC64_AIX5"
 
334
           VG_PLATFORM_SEC=""
 
335
        elif test x$vg_cv_only32bit = xyes; then
 
336
           VG_PLATFORM_PRI="PPC32_AIX5"
 
337
           VG_PLATFORM_SEC=""
 
338
        else
 
339
           VG_PLATFORM_PRI="PPC64_AIX5"
 
340
           VG_PLATFORM_SEC="PPC32_AIX5"
 
341
        fi
 
342
        AC_MSG_RESULT([ok (${host_cpu}-${host_os})])
 
343
        ;;
279
344
     ppc64-linux)
280
345
        if test x$vg_cv_only64bit = xyes; then
281
346
           VG_PLATFORM_PRI="PPC64_LINUX"
297
362
        ;;
298
363
esac
299
364
 
300
 
# Set up VG_<platform>.  Either one or two of these become defined.
 
365
# Set up VGP_<platform>.  Either one or two of these become defined.
301
366
#
302
 
AM_CONDITIONAL(VG_X86_LINUX,   
 
367
AM_CONDITIONAL(VGP_X86_LINUX,   
303
368
               test x$VG_PLATFORM_PRI = xX86_LINUX \
304
369
                 -o x$VG_PLATFORM_SEC = xX86_LINUX)
305
 
AM_CONDITIONAL(VG_AMD64_LINUX, 
 
370
AM_CONDITIONAL(VGP_AMD64_LINUX, 
306
371
               test x$VG_PLATFORM_PRI = xAMD64_LINUX)
307
 
AM_CONDITIONAL(VG_PPC32_LINUX, 
 
372
AM_CONDITIONAL(VGP_PPC32_LINUX, 
308
373
               test x$VG_PLATFORM_PRI = xPPC32_LINUX \ 
309
374
                 -o x$VG_PLATFORM_SEC = xPPC32_LINUX)
310
 
AM_CONDITIONAL(VG_PPC64_LINUX, 
 
375
AM_CONDITIONAL(VGP_PPC64_LINUX, 
311
376
               test x$VG_PLATFORM_PRI = xPPC64_LINUX)
 
377
AM_CONDITIONAL(VGP_PPC32_AIX5, 
 
378
               test x$VG_PLATFORM_PRI = xPPC32_AIX5 \ 
 
379
                 -o x$VG_PLATFORM_SEC = xPPC32_AIX5)
 
380
AM_CONDITIONAL(VGP_PPC64_AIX5, 
 
381
               test x$VG_PLATFORM_PRI = xPPC64_AIX5)
 
382
 
 
383
# Similarly, set up VGO_<os>.  Exactly one of these becomes defined.
 
384
# Relies on the assumption that the primary and secondary targets are 
 
385
# for the same OS, so therefore only necessary to test the primary.
 
386
#
 
387
AM_CONDITIONAL(VGO_LINUX,
 
388
               test x$VG_PLATFORM_PRI = xX86_LINUX \
 
389
                 -o x$VG_PLATFORM_PRI = xAMD64_LINUX \
 
390
                 -o x$VG_PLATFORM_PRI = xPPC32_LINUX \
 
391
                 -o x$VG_PLATFORM_PRI = xPPC64_LINUX)
 
392
AM_CONDITIONAL(VGO_AIX5,
 
393
               test x$VG_PLATFORM_PRI = xPPC32_AIX5 \
 
394
                 -o x$VG_PLATFORM_PRI = xPPC64_AIX5)
 
395
 
 
396
 
 
397
# Sometimes, in the Makefile.am-s, it's useful to know
 
398
# whether or not there is a secondary target.
 
399
#
 
400
AM_CONDITIONAL(VGP_HAVE_SECONDARY,
 
401
               test x$VG_PLATFORM_SEC != x)
312
402
 
313
403
 
314
404
# This variable will collect the individual suppression files
317
407
AC_SUBST(DEFAULT_SUPP)
318
408
 
319
409
 
320
 
glibc=""
 
410
libc=""
321
411
 
322
412
AC_EGREP_CPP([GLIBC_22], [
323
413
#include <features.h>
327
417
 #endif
328
418
#endif
329
419
],
330
 
glibc="2.2")
 
420
libc="2.2")
331
421
 
332
422
AC_EGREP_CPP([GLIBC_23], [
333
423
#include <features.h>
337
427
 #endif
338
428
#endif
339
429
],
340
 
glibc="2.3")
 
430
libc="2.3")
341
431
 
342
432
AC_EGREP_CPP([GLIBC_24], [
343
433
#include <features.h>
347
437
 #endif
348
438
#endif
349
439
],
350
 
glibc="2.4")
351
 
 
352
 
AC_MSG_CHECKING([the glibc version])
353
 
 
354
 
case "${glibc}" in
 
440
libc="2.4")
 
441
 
 
442
AC_EGREP_CPP([GLIBC_25], [
 
443
#include <features.h>
 
444
#ifdef __GNU_LIBRARY__
 
445
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 5)
 
446
  GLIBC_25
 
447
 #endif
 
448
#endif
 
449
],
 
450
libc="2.5")
 
451
 
 
452
AC_EGREP_CPP([GLIBC_26], [
 
453
#include <features.h>
 
454
#ifdef __GNU_LIBRARY__
 
455
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 6)
 
456
  GLIBC_26
 
457
 #endif
 
458
#endif
 
459
],
 
460
libc="2.6")
 
461
 
 
462
AC_EGREP_CPP([GLIBC_27], [
 
463
#include <features.h>
 
464
#ifdef __GNU_LIBRARY__
 
465
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 7)
 
466
  GLIBC_27
 
467
 #endif
 
468
#endif
 
469
],
 
470
libc="2.7")
 
471
 
 
472
AC_EGREP_CPP([GLIBC_28], [
 
473
#include <features.h>
 
474
#ifdef __GNU_LIBRARY__
 
475
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 8)
 
476
  GLIBC_28
 
477
 #endif
 
478
#endif
 
479
],
 
480
libc="2.8")
 
481
 
 
482
AC_EGREP_CPP([AIX5_LIBC], [
 
483
#include <standards.h>
 
484
#if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
 
485
  AIX5_LIBC
 
486
#endif
 
487
],
 
488
libc="aix5")
 
489
 
 
490
AC_MSG_CHECKING([the libc version])
 
491
 
 
492
case "${libc}" in
355
493
     2.2)
356
494
        AC_MSG_RESULT(2.2 family)
357
495
        AC_DEFINE([GLIBC_2_2], 1, [Define to 1 if you're using glibc 2.2.x])
358
496
        DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}"
 
497
        DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}"
359
498
        ;;
360
499
 
361
500
     2.3)
362
501
        AC_MSG_RESULT(2.3 family)
363
502
        AC_DEFINE([GLIBC_2_3], 1, [Define to 1 if you're using glibc 2.3.x])
364
503
        DEFAULT_SUPP="glibc-2.3.supp ${DEFAULT_SUPP}"
 
504
        DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
365
505
        ;;
366
506
 
367
507
     2.4)
368
508
        AC_MSG_RESULT(2.4 family)
369
509
        AC_DEFINE([GLIBC_2_4], 1, [Define to 1 if you're using glibc 2.4.x])
370
510
        DEFAULT_SUPP="glibc-2.4.supp ${DEFAULT_SUPP}"
 
511
        DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
 
512
        ;;
 
513
 
 
514
     2.5)
 
515
        AC_MSG_RESULT(2.5 family)
 
516
        AC_DEFINE([GLIBC_2_5], 1, [Define to 1 if you're using glibc 2.5.x])
 
517
        DEFAULT_SUPP="glibc-2.5.supp ${DEFAULT_SUPP}"
 
518
        DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
 
519
        ;;
 
520
     2.6)
 
521
        AC_MSG_RESULT(2.6 family)
 
522
        AC_DEFINE([GLIBC_2_6], 1, [Define to 1 if you're using glibc 2.6.x])
 
523
        DEFAULT_SUPP="glibc-2.6.supp ${DEFAULT_SUPP}"
 
524
        DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
 
525
        ;;
 
526
     2.7)
 
527
        AC_MSG_RESULT(2.7 family)
 
528
        AC_DEFINE([GLIBC_2_7], 1, [Define to 1 if you're using glibc 2.7.x])
 
529
        DEFAULT_SUPP="glibc-2.7.supp ${DEFAULT_SUPP}"
 
530
        DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
 
531
        ;;
 
532
     2.8)
 
533
        AC_MSG_RESULT(2.8 family)
 
534
        AC_DEFINE([GLIBC_2_8], 1, [Define to 1 if you're using glibc 2.8.x])
 
535
        DEFAULT_SUPP="glibc-2.8.supp ${DEFAULT_SUPP}"
 
536
        DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
 
537
        ;;
 
538
     aix5)
 
539
        AC_MSG_RESULT(AIX 5.1 or 5.2 or 5.3)
 
540
        AC_DEFINE([AIX5_LIBC], 1, [Define to 1 if you're using AIX 5.1 or 5.2 or 5.3])
 
541
        DEFAULT_SUPP="aix5libc.supp ${DEFAULT_SUPP}"
371
542
        ;;
372
543
 
373
544
     *)
374
545
        AC_MSG_RESULT(unsupported version)
375
 
        AC_MSG_ERROR([Valgrind requires glibc version 2.2, 2.3 or 2.4])
 
546
        AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.7])
 
547
        AC_MSG_ERROR([or AIX 5.1 or 5.2 or 5.3 libc])
376
548
        ;;
377
549
esac
378
550
 
379
551
 
380
552
# We don't know how to detect the X client library version
381
 
# (detecting the server version is easy, bu no help).  So we
 
553
# (detecting the server version is easy, but no help).  So we
382
554
# just use a hack: always include the suppressions for both
383
555
# versions 3 and 4.
384
556
AC_PATH_X
409
581
AC_SUBST(FLAG_M32)
410
582
 
411
583
 
 
584
# does this compiler support -maix32 ?
 
585
AC_MSG_CHECKING([if gcc accepts -maix32])
 
586
 
 
587
safe_CFLAGS=$CFLAGS
 
588
CFLAGS="-maix32"
 
589
 
 
590
AC_TRY_COMPILE(, [
 
591
int main () { return 0 ; }
 
592
],
 
593
[
 
594
FLAG_MAIX32="-maix32"
 
595
AC_MSG_RESULT([yes])
 
596
], [
 
597
FLAG_MAIX32=""
 
598
AC_MSG_RESULT([no])
 
599
])
 
600
CFLAGS=$safe_CFLAGS
 
601
 
 
602
AC_SUBST(FLAG_MAIX32)
 
603
 
 
604
 
412
605
# does this compiler support -m64 ?
413
606
AC_MSG_CHECKING([if gcc accepts -m64])
414
607
 
430
623
AC_SUBST(FLAG_M64)
431
624
 
432
625
 
 
626
# does this compiler support -maix64 ?
 
627
AC_MSG_CHECKING([if gcc accepts -maix64])
 
628
 
 
629
safe_CFLAGS=$CFLAGS
 
630
CFLAGS="-maix64"
 
631
 
 
632
AC_TRY_COMPILE(, [
 
633
int main () { return 0 ; }
 
634
],
 
635
[
 
636
FLAG_MAIX64="-maix64"
 
637
AC_MSG_RESULT([yes])
 
638
], [
 
639
FLAG_MAIX64=""
 
640
AC_MSG_RESULT([no])
 
641
])
 
642
CFLAGS=$safe_CFLAGS
 
643
 
 
644
AC_SUBST(FLAG_MAIX64)
 
645
 
 
646
 
433
647
# does this compiler support -mmmx ?
434
648
AC_MSG_CHECKING([if gcc accepts -mmmx])
435
649
 
543
757
fi
544
758
 
545
759
 
 
760
# does this compiler support -fno-stack-protector ?
 
761
AC_MSG_CHECKING([if gcc accepts -fno-stack-protector ])
 
762
 
 
763
safe_CFLAGS=$CFLAGS
 
764
CFLAGS="-fno-stack-protector"
 
765
 
 
766
AC_TRY_COMPILE(, [
 
767
int main () { return 0 ; }
 
768
],
 
769
[
 
770
no_stack_protector=yes
 
771
FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector"
 
772
AC_MSG_RESULT([yes])
 
773
], [
 
774
no_stack_protector=no
 
775
FLAG_FNO_STACK_PROTECTOR=""
 
776
AC_MSG_RESULT([no])
 
777
])
 
778
CFLAGS=$safe_CFLAGS
 
779
 
 
780
AC_SUBST(FLAG_FNO_STACK_PROTECTOR)
 
781
 
 
782
if test x$no_stack_protector = xyes; then
 
783
  CFLAGS="$CFLAGS -fno-stack-protector"
 
784
fi
 
785
 
 
786
 
546
787
# does this compiler support __builtin_expect?
547
788
AC_MSG_CHECKING([if gcc supports __builtin_expect])
548
789
 
580
821
fi
581
822
 
582
823
 
 
824
# does the x86/amd64 assembler understand SSE3 instructions?
 
825
# Note, this doesn't generate a C-level symbol.  It generates a
 
826
# automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's
 
827
AC_MSG_CHECKING([if x86/amd64 assembler speaks SSE3])
 
828
 
 
829
AC_TRY_COMPILE(, [
 
830
  do { long long int x; 
 
831
     __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); } 
 
832
  while (0)
 
833
],
 
834
[
 
835
ac_have_as_sse3=yes
 
836
AC_MSG_RESULT([yes])
 
837
], [
 
838
ac_have_as_sse3=no
 
839
AC_MSG_RESULT([no])
 
840
])
 
841
 
 
842
AM_CONDITIONAL(BUILD_SSE3_TESTS, test x$ac_have_as_sse3 = xyes)
 
843
 
 
844
 
583
845
# Check for TLS support in the compiler and linker
584
846
AC_CACHE_CHECK([for TLS support], vg_cv_tls,
585
847
               [AC_ARG_ENABLE(tls, [  --enable-tls            platform supports TLS],
614
876
AC_CHECK_FUNCS([floor memchr memset mkdir strchr strdup strpbrk strrchr strstr semtimedop])
615
877
 
616
878
 
617
 
# Do we have a useable MPI setup on the primary target
618
 
# (mpicc, and suitable MPI2 headers?)
 
879
# Do we have a useable MPI setup on the primary and/or secondary targets?
 
880
# On Linux, by default, assumes mpicc and -m32/-m64
 
881
# On AIX, by default, assumes mpxlc and -q32/-q64
619
882
# Note: this is a kludge in that it assumes the specified mpicc 
620
 
# understands '-m32' or '-m64', as established above
 
883
# understands -m32/-m64/-q32/-q64 regardless of what is specified using
 
884
# --with-mpicc=.
621
885
MPI_CC="mpicc"
 
886
if test x$VG_PLATFORM_PRI = xPPC32_AIX5 \
 
887
     -o x$VG_PLATFORM_PRI = xPPC64_AIX5 ; then
 
888
  MPI_CC="mpxlc"
 
889
fi
 
890
 
622
891
mflag_primary=
623
892
if test x$VG_PLATFORM_PRI = xX86_LINUX \
624
893
     -o x$VG_PLATFORM_PRI = xPPC32_LINUX ; then
626
895
elif test x$VG_PLATFORM_PRI = xAMD64_LINUX \
627
896
       -o x$VG_PLATFORM_PRI = xPPC64_LINUX ; then
628
897
  mflag_primary=$FLAG_M64
629
 
fi
 
898
elif test x$VG_PLATFORM_PRI = xPPC32_AIX5 ; then
 
899
  mflag_primary=-q32
 
900
elif test x$VG_PLATFORM_PRI = xPPC64_AIX5 ; then
 
901
  mflag_primary=-q64
 
902
fi
 
903
 
 
904
mflag_secondary=
 
905
if test x$VG_PLATFORM_SEC = xX86_LINUX \
 
906
     -o x$VG_PLATFORM_SEC = xPPC32_LINUX ; then
 
907
  mflag_secondary=$FLAG_M32
 
908
elif test x$VG_PLATFORM_SEC = xPPC32_AIX5 ; then
 
909
  mflag_secondary=-q32
 
910
fi
 
911
 
630
912
 
631
913
AC_ARG_WITH(mpicc,
632
914
   [  --with-mpicc=           Specify name of MPI2-ised C compiler],
633
915
   MPI_CC=$withval
634
916
)
635
 
AC_MSG_CHECKING([for usable MPI2-compliant mpicc and mpi.h])
 
917
AC_SUBST(MPI_CC)
 
918
 
 
919
## See if MPI_CC works for the primary target
 
920
##
 
921
AC_MSG_CHECKING([primary target for usable MPI2-compliant C compiler and mpi.h])
636
922
saved_CC=$CC
637
923
saved_CFLAGS=$CFLAGS
638
924
CC=$MPI_CC
645
931
  r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
646
932
  return r; 
647
933
], [
648
 
ac_have_mpi2=yes
 
934
ac_have_mpi2_pri=yes
649
935
AC_MSG_RESULT([yes, $MPI_CC])
650
936
], [
651
 
ac_have_mpi2=no
 
937
ac_have_mpi2_pri=no
652
938
AC_MSG_RESULT([no])
653
939
])
654
940
CC=$saved_CC
655
941
CFLAGS=$saved_CFLAGS
 
942
AM_CONDITIONAL(BUILD_MPIWRAP_PRI, test x$ac_have_mpi2_pri = xyes)
656
943
 
657
 
AM_CONDITIONAL(BUILD_MPIWRAP, test x$ac_have_mpi2 = xyes)
658
 
AC_SUBST(MPI_CC)
 
944
## See if MPI_CC works for the secondary target.  Complication: what if
 
945
## there is no secondary target?  We need this to then fail.
 
946
## Kludge this by making MPI_CC something which will surely fail in
 
947
## such a case.
 
948
##
 
949
AC_MSG_CHECKING([secondary target for usable MPI2-compliant C compiler and mpi.h])
 
950
saved_CC=$CC
 
951
saved_CFLAGS=$CFLAGS
 
952
if test x$VG_PLATFORM_SEC = x ; then
 
953
  CC="$MPI_CC this will surely fail"
 
954
else
 
955
  CC=$MPI_CC
 
956
fi
 
957
CFLAGS=$mflag_secondary
 
958
AC_TRY_LINK([
 
959
#include <mpi.h>
 
960
#include <stdio.h>
 
961
],[
 
962
  int r = MPI_Init(NULL,NULL);
 
963
  r |= MPI_Type_get_contents( MPI_INT, 0,0,0, NULL,NULL,NULL );
 
964
  return r; 
 
965
], [
 
966
ac_have_mpi2_sec=yes
 
967
AC_MSG_RESULT([yes, $MPI_CC])
 
968
], [
 
969
ac_have_mpi2_sec=no
 
970
AC_MSG_RESULT([no])
 
971
])
 
972
CC=$saved_CC
 
973
CFLAGS=$saved_CFLAGS
 
974
AM_CONDITIONAL(BUILD_MPIWRAP_SEC, test x$ac_have_mpi2_sec = xyes)
659
975
 
660
976
 
661
977
# -------------------- ok.  We're done. --------------------
674
990
   perf/Makefile 
675
991
   perf/vg_perf
676
992
   include/Makefile 
 
993
   include/vki/Makefile 
677
994
   auxprogs/Makefile
678
995
   coregrind/Makefile 
679
996
   memcheck/Makefile
700
1017
   helgrind/tests/Makefile
701
1018
   helgrind/docs/Makefile
702
1019
   massif/Makefile
703
 
   massif/hp2ps/Makefile
704
1020
   massif/tests/Makefile
 
1021
   massif/perf/Makefile
705
1022
   massif/docs/Makefile
 
1023
   massif/ms_print
706
1024
   lackey/Makefile
707
1025
   lackey/tests/Makefile
708
1026
   lackey/docs/Makefile
713
1031
   none/tests/ppc64/Makefile
714
1032
   none/tests/x86/Makefile
715
1033
   none/docs/Makefile
 
1034
   exp-omega/Makefile
 
1035
   exp-omega/tests/Makefile
 
1036
   exp-omega/docs/Makefile
 
1037
   exp-drd/Makefile
 
1038
   exp-drd/docs/Makefile
 
1039
   exp-drd/tests/Makefile
716
1040
717
1041
 
718
1042
cat<<EOF