comparison configure.in @ 1668:6e8ac624ed9b

[project @ 1995-12-26 06:35:24 by jwe]
author jwe
date Tue, 26 Dec 1995 06:40:29 +0000
parents f1b5a5086e46
children 7dbdf23e1d18
comparison
equal deleted inserted replaced
1667:f1b5a5086e46 1668:6e8ac624ed9b
18 ### 18 ###
19 ### You should have received a copy of the GNU General Public License 19 ### You should have received a copy of the GNU General Public License
20 ### along with Octave; see the file COPYING. If not, write to the Free 20 ### along with Octave; see the file COPYING. If not, write to the Free
21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 22
23 AC_REVISION($Revision: 1.144 $) 23 AC_REVISION($Revision: 1.145 $)
24 AC_PREREQ(2.0) 24 AC_PREREQ(2.0)
25 AC_INIT(src/octave.cc) 25 AC_INIT(src/octave.cc)
26 AC_CONFIG_HEADER(config.h) 26 AC_CONFIG_HEADER(config.h)
27 27
28 AC_DEFINE(OCTAVE_SOURCE, 1) 28 AC_DEFINE(OCTAVE_SOURCE, 1)
350 CXXPICFLAG= 350 CXXPICFLAG=
351 fi 351 fi
352 AC_MSG_RESULT([defining FPICFLAG to be $FPICFLAG]) 352 AC_MSG_RESULT([defining FPICFLAG to be $FPICFLAG])
353 AC_MSG_RESULT([defining CPICFLAG to be $CPICFLAG]) 353 AC_MSG_RESULT([defining CPICFLAG to be $CPICFLAG])
354 AC_MSG_RESULT([defining CXXPICFLAG to be $CXXPICFLAG]) 354 AC_MSG_RESULT([defining CXXPICFLAG to be $CXXPICFLAG])
355 AC_SUBST(FPICFLAG)
356 AC_SUBST(CPICFLAG)
357 AC_SUBST(CXXPICFLAG)
355 358
356 ### Allow compilation of smaller kernel. This only works if some form 359 ### Allow compilation of smaller kernel. This only works if some form
357 ### of dynamic linking is also supported and used. 360 ### of dynamic linking is also supported and used.
358 361
359 AC_ARG_ENABLE(lite-kernel, 362 AC_ARG_ENABLE(lite-kernel,
492 have_f2c=true 495 have_f2c=true
493 fi 496 fi
494 fi 497 fi
495 fi 498 fi
496 499
500 fortran_rules_frag=Makerules.f77
497 if $have_fortran_compiler; then 501 if $have_fortran_compiler; then
498 DOT_C_FROM_DOT_F_CMD= 502 cat << \EOF > $fortran_rules_frag
499 DOT_O_FROM_DOT_F_PAT='.f.o:' 503
500 DOT_O_FROM_DOT_F_CMD=' $(FC) -c $(ALL_FFLAGS) $<' 504 .c.f:
505
506 .f.o:
507 if [ -z "$(FPICFLAG)" ] && [ -f pic ]; then \
508 $(FC) -c $(FPICFLAG) $(ALL_FFLAGS) $< -o pic/$@; \
509 else true; fi
510 $(FC) -c $(ALL_FFLAGS) $<'
511
512 EOF
501 elif $have_f2c; then 513 elif $have_f2c; then
502 AC_DEFINE(F77_APPEND_UNDERSCORE, 1) 514 AC_DEFINE(F77_APPEND_UNDERSCORE, 1)
503 AC_MSG_RESULT([defining F77_APPEND_UNDERSCORE to be 1]) 515 AC_MSG_RESULT([defining F77_APPEND_UNDERSCORE to be 1])
504 AC_CHECK_LIB(f2c, main, FLIBS=-lf2c, []) 516 AC_CHECK_LIB(f2c, main, FLIBS=-lf2c, [])
505 if test -z "$FLIBS"; then 517 if test -z "$FLIBS"; then
509 fi 521 fi
510 fi 522 fi
511 if test -z "$FLIBS"; then 523 if test -z "$FLIBS"; then
512 AC_MSG_WARN([I found f2c but not libf2c.a, or libF77.a and libI77.a]) 524 AC_MSG_WARN([I found f2c but not libf2c.a, or libF77.a and libI77.a])
513 fi 525 fi
514 DOT_C_FROM_DOT_F_CMD=' cat $< | $(F2C) $(F2CFLAGS) > $(@F)' 526 cat << \EOF > $fortran_rules_frag
515 AC_MSG_RESULT([defining DOT_C_FROM_DOT_F_CMD to be $DOT_C_FROM_DOT_F_CMD]) 527
516 DOT_O_FROM_DOT_F_PAT='%.o : %.f' 528 .c.f:
517 DOT_O_FROM_DOT_F_CMD= 529 cat $< | $(F2C) $(F2CFLAGS) > $(@F)
518 AC_MSG_RESULT([defining DOT_O_FROM_DOT_F_PAT to be $DOT_O_FROM_DOT_F_PAT]) 530
531 %.o : %.f
532
533 EOF
519 else 534 else
520 AC_MSG_WARN([in order to build octave, you must have a compatible]) 535 AC_MSG_WARN([in order to build octave, you must have a compatible])
521 AC_MSG_WARN([Fortran compiler or f2c installed and in your path.]) 536 AC_MSG_WARN([Fortran compiler or f2c installed and in your path.])
522 AC_MSG_ERROR([See the file INSTALL for more information.]) 537 AC_MSG_ERROR([See the file INSTALL for more information.])
523 fi 538 fi
528 AC_SUBST(FFLAGS) 543 AC_SUBST(FFLAGS)
529 AC_SUBST(FUGLY) 544 AC_SUBST(FUGLY)
530 AC_SUBST(FLIBS) 545 AC_SUBST(FLIBS)
531 AC_SUBST(F2C) 546 AC_SUBST(F2C)
532 AC_SUBST(F2CFLAGS) 547 AC_SUBST(F2CFLAGS)
533 AC_SUBST(DOT_C_FROM_DOT_F_CMD) 548 AC_SUBST_FILE(fortran_rules_frag)
534 AC_SUBST(DOT_O_FROM_DOT_F_PAT)
535 AC_SUBST(DOT_O_FROM_DOT_F_CMD)
536 549
537 ### Extract libraries and directories from FLIBS and CXXLIBS. 550 ### Extract libraries and directories from FLIBS and CXXLIBS.
538 ### 551 ###
539 ### Leave only libraries, with -lfoo converted to libfoo.a: 552 ### Leave only libraries, with -lfoo converted to libfoo.a:
540 553
901 914
902 export CC 915 export CC
903 export CXX 916 export CXX
904 export F77 917 export F77
905 918
906 AC_CONFIG_SUBDIRS(kpathsea libcruft scripts $INFO_DIR $PLPLOT_DIR $READLINE_DIR) 919 AC_CONFIG_SUBDIRS(kpathsea scripts $INFO_DIR $PLPLOT_DIR $READLINE_DIR)
907 920
908 ### Do the substitutions in all the Makefiles. 921 ### Do the substitutions in all the Makefiles.
909 922
910 AC_OUTPUT(Makefile octMakefile Makeconf liboctave/Makefile 923 AC_OUTPUT(Makefile octMakefile Makeconf liboctave/Makefile
911 src/Makefile dld/Makefile doc/Makefile test/Makefile) 924 src/Makefile dld/Makefile doc/Makefile test/Makefile
925 libcruft/Makefile libcruft/Makerules libcruft/blas/Makefile
926 libcruft/balgen/Makefile libcruft/dassl/Makefile
927 libcruft/eispack/Makefile libcruft/fftpack/Makefile
928 libcruft/fsqp/Makefile libcruft/lapack/Makefile
929 libcruft/linpack/Makefile libcruft/minpack/Makefile
930 libcruft/misc/Makefile libcruft/npsol/Makefile
931 libcruft/odepack/Makefile libcruft/qpsol/Makefile
932 libcruft/quadpack/Makefile libcruft/ranlib/Makefile
933 libcruft/slatec-fn/Makefile libcruft/villad/Makefile)
912 934
913 ### Print a summary so that important information isn't missed. 935 ### Print a summary so that important information isn't missed.
914 936
915 CXX_EXTRAS="$HOST_CXXFLAGS $NO_IMPLICIT_TEMPLATES $GCC_IEEE_FP_FLAG" 937 CXX_EXTRAS="$HOST_CXXFLAGS $NO_IMPLICIT_TEMPLATES $GCC_IEEE_FP_FLAG"
916 938
933 Use GNU readline: $USE_READLINE 955 Use GNU readline: $USE_READLINE
934 Use GNU info reader: $USE_GNU_INFO 956 Use GNU info reader: $USE_GNU_INFO
935 Default pager: $DEFAULT_PAGER 957 Default pager: $DEFAULT_PAGER
936 gnuplot: $GNUPLOT_BINARY 958 gnuplot: $GNUPLOT_BINARY
937 959
960 Build shared libraries: $shared_libs
938 Minimal kernel option: $lite_kernel 961 Minimal kernel option: $lite_kernel
939 Dynamic Linking (dld): $use_dld 962 Dynamic Linking (dld): $use_dld
940 Dynamic Linking (dlopen/dlsym): $use_dl 963 Dynamic Linking (dlopen/dlsym): $use_dl
941 Dynamic Linking (shl_load/shl_findsym): $use_shl 964 Dynamic Linking (shl_load/shl_findsym): $use_shl
942 ]) 965 ])