Changeset 28529 for trunk/base


Ignore:
Timestamp:
Sep 3, 2007, 12:30:19 AM (12 years ago)
Author:
mww@…
Message:

add & document configure.javac/classpath for Java flags

Location:
trunk/base
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/ChangeLog

    r28512 r28529  
    77Unreleased:
    88
    9     - add configure.fflags for Fortran flags
     9    - add configure.javac/classpath for Java flags
     10
     11    - add configure.fflags/fcflags/f90flags for Fortran flags
    1012
    1113    - Mark "python" group code as deprecated
  • trunk/base/doc/portfile.7

    r28514 r28529  
    842842.Sy Default:
    843843.Em -O2
     844.It Ic configure.classpath
     845Flags to put in the CLASSPATH environment variable when invoking the configure script.
     846.br
     847.Sy Type:
     848.Em optional
    844849.It Ic configure.cc
    845850C-compiler to put in the CC environment variable when invoking the configure script.
     
    872877.It Ic configure.f90
    873878Fortran-90-compiler to put in the F90 environment variable when invoking the configure script.
     879.br
     880.Sy Type:
     881.Em optional
     882.It Ic configure.javac
     883Java compiler to put in the JAVAC environment variable when invoking the configure script.
    874884.br
    875885.Sy Type:
  • trunk/base/src/port1.0/portconfigure.tcl

    r28514 r28529  
    5454
    5555# Configure special environment variables.
    56 options configure.cflags configure.cppflags configure.cxxflags configure.ldflags configure.fflags configure.f90flags configure.fcflags
     56options configure.cflags configure.cppflags configure.cxxflags configure.ldflags configure.fflags configure.f90flags configure.fcflags configure.classpath
    5757# We could have default debug/optimization flags at some point.
    5858default configure.cflags        {-O2}
     
    6363default configure.f90flags      {-O2}
    6464default configure.fcflags       {-O2}
     65default configure.classpath     {}
    6566
    6667# Universal options & default values.
     
    7374
    7475# Select a distinct compiler (C, C preprocessor, C++)
    75 options configure.cc configure.cxx configure.cpp configure.f77 configure.f90 configure.fc configure.compiler
     76options configure.cc configure.cxx configure.cpp configure.f77 configure.f90 configure.fc configure.javac configure.compiler
    7677default configure.cc                    {}
    7778default configure.cxx                   {}
     
    8081default configure.f90                   {}
    8182default configure.fc                    {}
     83default configure.javac                 {}
    8284default configure.compiler              {}
    8385
     
    117119    global [info globals]
    118120    global worksrcpath use_configure use_autoconf use_automake use_xmkmf
    119     global configure.env configure.cflags configure.cppflags configure.cxxflags configure.ldflags configure.fflags configure.f90flags configure.fcflags
    120     global configure.cc configure.cxx configure.cpp configure.f77 configure.f90 configure.fc configure.compiler prefix
     121    global configure.env configure.cflags configure.cppflags configure.cxxflags configure.ldflags configure.fflags configure.f90flags configure.fcflags configure.classpath
     122    global configure.cc configure.cxx configure.cpp configure.f77 configure.f90 configure.fc configure.javac configure.compiler prefix
    121123    global os.platform os.major
    122124   
     
    230232                append_list_to_environment_value configure "F77" ${configure.f77}
    231233                append_list_to_environment_value configure "F90" ${configure.f90}
     234                append_list_to_environment_value configure "JAVAC" ${configure.javac}
    232235                append_list_to_environment_value configure "CFLAGS" ${configure.cflags}
    233236                append_list_to_environment_value configure "CPPFLAGS" ${configure.cppflags}
     
    237240                append_list_to_environment_value configure "F90FLAGS" ${configure.f90flags}
    238241                append_list_to_environment_value configure "FCFLAGS" ${configure.fcflags}
     242                append_list_to_environment_value configure "CLASSPATH" ${configure.classpath}
    239243
    240244                # Execute the command (with the new environment).
Note: See TracChangeset for help on using the changeset viewer.