comparison configure.in @ 4816:4908c82cd1a1

[project @ 2004-03-04 18:13:46 by jwe]
author jwe
date Thu, 04 Mar 2004 18:13:46 +0000
parents 5997796932b1
children 7b4e76100964
comparison
equal deleted inserted replaced
4815:2eb844b27953 4816:4908c82cd1a1
27 27
28 EXTERN_CFLAGS="$CFLAGS" 28 EXTERN_CFLAGS="$CFLAGS"
29 EXTERN_CXXFLAGS="$CXXFLAGS" 29 EXTERN_CXXFLAGS="$CXXFLAGS"
30 30
31 AC_INIT 31 AC_INIT
32 AC_REVISION($Revision: 1.448 $) 32 AC_REVISION($Revision: 1.449 $)
33 AC_PREREQ(2.57) 33 AC_PREREQ(2.57)
34 AC_CONFIG_SRCDIR([src/octave.cc]) 34 AC_CONFIG_SRCDIR([src/octave.cc])
35 AC_CONFIG_HEADER(config.h) 35 AC_CONFIG_HEADER(config.h)
36 36
37 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) 37 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.])
92 AC_ARG_WITH(f2c, 92 AC_ARG_WITH(f2c,
93 [ --with-f2c use f2c even if Fortran compiler is available], 93 [ --with-f2c use f2c even if Fortran compiler is available],
94 [if test "$withval" = no; then use_f2c=false; else use_f2c=true; fi], 94 [if test "$withval" = no; then use_f2c=false; else use_f2c=true; fi],
95 use_f2c=false) 95 use_f2c=false)
96 96
97 ### Allow the user to force us to use g77.
98
99 AC_ARG_WITH(g77,
100 [ --with-g77 use g77 to compile Fortran subroutines],
101 [if test "$withval" = no; then use_g77=false; else use_g77=true; fi],
102 use_g77=false)
103
104 ### Allow the user to force us to use f77. 97 ### Allow the user to force us to use f77.
105 98
106 AC_ARG_WITH(f77, 99 AC_ARG_WITH(f77,
107 [ --with-f77 use f77 to compile Fortran subroutines], 100 [ --with-f77 use f77 to compile Fortran subroutines],
108 [if test "$withval" = no; then use_f77=false; else use_f77=true; fi], 101 [if test "$withval" = no; then use_f77=false; else use_f77=true; fi],
109 use_f77=false) 102 use_f77=false)
110 103
111 ### Make sure only one of the above options for Fortran compilers was 104 ### Make sure only one of the above options for Fortran compilers was
112 ### specified (multiple "no" or --without-FOO options are ok). 105 ### specified (multiple "no" or --without-FOO options are ok).
113 106
114 OCTAVE_CHECK_EXCLUSIVE_WITH_OPTIONS(f77, g77,
115 [warn_f77_and_g77="--with-f77 and --with-g77 both specified! Using g77..."
116 AC_MSG_WARN($warn_f77_and_g77)
117 use_g77=false])
118
119 OCTAVE_CHECK_EXCLUSIVE_WITH_OPTIONS(f77, f2c, 107 OCTAVE_CHECK_EXCLUSIVE_WITH_OPTIONS(f77, f2c,
120 [warn_f2c_and_f77="--with-f2c and --with-f77 both specified! Using f77..." 108 [warn_f2c_and_f77="--with-f2c and --with-f77 both specified! Using f77..."
121 AC_MSG_WARN($warn_f2c_and_f77) 109 AC_MSG_WARN($warn_f2c_and_f77)
122 use_f2c=false])
123
124 OCTAVE_CHECK_EXCLUSIVE_WITH_OPTIONS(g77, f2c,
125 [warn_f2c_and_g77="--with-f2c and --with-g77 both specified! Using g77..."
126 AC_MSG_WARN($warn_f2c_and_g77)
127 use_f2c=false]) 110 use_f2c=false])
128 111
129 dnl ### Allow the user disable support for plplot. 112 dnl ### Allow the user disable support for plplot.
130 dnl 113 dnl
131 dnl # USE_PLPLOT=true 114 dnl # USE_PLPLOT=true
453 436
454 ### If we haven't been forced to use a particular Fortran compiler, 437 ### If we haven't been forced to use a particular Fortran compiler,
455 ### try to find one using any one of several common Un*x Fortran 438 ### try to find one using any one of several common Un*x Fortran
456 ### compiler names using the AC_PROG_F77 macro. 439 ### compiler names using the AC_PROG_F77 macro.
457 ### 440 ###
458 ### The configure options --with-f77, --with-g77, or --with-f2c 441 ### The configure options --with-f77 or --with-f2c
459 ### force f77, g77 or f2c to be used. It is also possible to use 442 ### force f77 or f2c to be used. It is also possible to use
460 ### these options to specify the name of the compiler. For example, 443 ### these options to specify the name of the compiler. For example,
461 ### `--with-g77=/opt/gnu/bin/f77' says that we are using g77 but it is 444 ### `--with-f77=g77' says that we are using g77 as the Fortran compiler.
462 ### installed as /opt/gnu/bin/f77.
463 445
464 if $use_f77; then 446 if $use_f77; then
465 if test "$with_f77" = yes; then 447 if test "$with_f77" = yes; then
466 F77=f77 448 F77=f77
467 else 449 else
468 F77="$with_f77" 450 F77="$with_f77"
469 fi
470 AC_MSG_RESULT([defining F77 to be $F77])
471 elif $use_g77; then
472 if test "$with_g77" = yes; then
473 F77=g77
474 else
475 F77="$with_g77"
476 fi 451 fi
477 AC_MSG_RESULT([defining F77 to be $F77]) 452 AC_MSG_RESULT([defining F77 to be $F77])
478 elif $use_f2c; then 453 elif $use_f2c; then
479 F77= 454 F77=
480 if test "$with_f2c" = yes; then 455 if test "$with_f2c" = yes; then
1529 AC_MSG_WARN([Are you sure that is what you want to do?]) 1504 AC_MSG_WARN([Are you sure that is what you want to do?])
1530 warn_msg_printed=true 1505 warn_msg_printed=true
1531 fi 1506 fi
1532 fi 1507 fi
1533 1508
1534 if test -n "$warn_f77_and_g77"; then
1535 AC_MSG_WARN($warn_f77_and_g77)
1536 warn_msg_printed=true
1537 fi
1538
1539 if test -n "$warn_f2c_and_f77"; then 1509 if test -n "$warn_f2c_and_f77"; then
1540 AC_MSG_WARN($warn_f2c_and_f77) 1510 AC_MSG_WARN($warn_f2c_and_f77)
1541 warn_msg_printed=true
1542 fi
1543
1544 if test -n "$warn_f2c_and_g77"; then
1545 AC_MSG_WARN($warn_f2c_and_g77)
1546 warn_msg_printed=true 1511 warn_msg_printed=true
1547 fi 1512 fi
1548 1513
1549 if test -n "$gxx_only"; then 1514 if test -n "$gxx_only"; then
1550 AC_MSG_WARN($gxx_only) 1515 AC_MSG_WARN($gxx_only)