@@ -2503,7 +2503,7 @@ AC_SUBST([FSTYPE_PREFIX])
2503
2503
# Note on Theta @ALCF, CPATH is set for Intel Compiler and when gcc is used to
2504
2504
# compile the above utility programs, errors can occur. See doc/README.CRAY for
2505
2505
# more information. Below we use the same C compiler as MPICC.
2506
- AC_ARG_VAR ( SEQ_CC , [ C compiler to build sequential utility programs, @<:@ default: gcc@:>@ ] )
2506
+ AC_ARG_VAR ( SEQ_CC , [ C compiler for building sequential utility programs, @<:@ default: gcc@:>@ ] )
2507
2507
if test "x$SEQ_CC" = x ; then
2508
2508
# if test "x$ac_cv_mpicc_base" = xGCC ; then
2509
2509
# AC_PATH_PROG([SEQ_CC], [gcc], [$MPICC])
@@ -2529,6 +2529,13 @@ AC_MSG_CHECKING([C compiler for serial utility programs])
2529
2529
AC_MSG_RESULT ( [ $SEQ_CC] )
2530
2530
AC_SUBST ( SEQ_CC )
2531
2531
2532
+ AC_ARG_VAR ( SEQ_CFLAGS , [ C compile flags for building sequential utility programs, @<:@ default: none@:>@ ] )
2533
+ AC_SUBST ( SEQ_CFLAGS )
2534
+ AC_ARG_VAR ( SEQ_LDFLAGS , [ Linker flags for building sequential utility programs, @<:@ default: none@:>@ ] )
2535
+ AC_SUBST ( SEQ_LIBS )
2536
+ AC_ARG_VAR ( SEQ_LIBS , [ Libraries for building sequential utility programs, @<:@ default: none@:>@ ] )
2537
+ AC_SUBST ( SEQ_LIBS )
2538
+
2532
2539
dnl Configuration Date
2533
2540
dnl Note that command 'date' is not portable across Unix platforms
2534
2541
if test "x$SOURCE_DATE_EPOCH" != x ; then
@@ -2731,38 +2738,54 @@ fi
2731
2738
2732
2739
echo "\
2733
2740
2734
- Compilers: MPICC = ${MPICC}"
2741
+ Compilers: MPICC = ${MPICC}"
2735
2742
if test "${has_mpicxx}" = yes ; then
2736
2743
echo "\
2737
- MPICXX = ${MPICXX}"
2744
+ MPICXX = ${MPICXX}"
2738
2745
fi
2739
2746
if test "${has_fortran}" = yes ; then
2740
2747
echo "\
2741
- MPIF77 = ${MPIF77}
2742
- MPIF90 = ${MPIF90}"
2748
+ MPIF77 = ${MPIF77}
2749
+ MPIF90 = ${MPIF90}"
2743
2750
fi
2744
2751
if test "x${CPPFLAGS}" != x ; then
2745
2752
echo "\
2746
- CPPFLAGS = ${CPPFLAGS}"
2753
+ CPPFLAGS = ${CPPFLAGS}"
2747
2754
fi
2748
2755
echo "\
2749
- CFLAGS = ${CFLAGS}"
2756
+ CFLAGS = ${CFLAGS}"
2750
2757
if test "${has_mpicxx}" = yes ; then
2751
2758
echo "\
2752
- CXXFLAGS = ${CXXFLAGS}"
2759
+ CXXFLAGS = ${CXXFLAGS}"
2753
2760
fi
2754
2761
if test "${has_fortran}" = yes ; then
2755
2762
echo "\
2756
- FFLAGS = ${FFLAGS}
2757
- FCFLAGS = ${FCFLAGS}"
2763
+ FFLAGS = ${FFLAGS}
2764
+ FCFLAGS = ${FCFLAGS}"
2758
2765
fi
2759
2766
if test "x${LDFLAGS}" != x ; then
2760
2767
echo "\
2761
- LDFLAGS = ${LDFLAGS}"
2768
+ LDFLAGS = ${LDFLAGS}"
2762
2769
fi
2763
2770
if test "x${LIBS}" != x ; then
2764
2771
echo "\
2765
- LIBS = ${LIBS}"
2772
+ LIBS = ${LIBS}"
2773
+ fi
2774
+ if test "x${SEQ_CC}" != x ; then
2775
+ echo "\
2776
+ SEQ_CC = ${SEQ_CC}"
2777
+ fi
2778
+ if test "x${SEQ_CFLAGS}" != x ; then
2779
+ echo "\
2780
+ SEQ_CFLAGS = ${SEQ_CFLAGS}"
2781
+ fi
2782
+ if test "x${SEQ_LDFLAGS}" != x ; then
2783
+ echo "\
2784
+ SEQ_LDFLAGS = ${SEQ_LDFLAGS}"
2785
+ fi
2786
+ if test "x${SEQ_LIBS}" != x ; then
2787
+ echo "\
2788
+ SEQ_LIBS = ${SEQ_LIBS}"
2766
2789
fi
2767
2790
if test "x${enable_netcdf4}" = xyes; then
2768
2791
echo "\
0 commit comments