Ignore:
Timestamp:
May 9, 2007 1:48:39 PM (17 years ago)
Author:
dkearney
Message:

after the core rappture library (librappture.so) is created the include
files necessary to compile all other bindings are copied to the top level
include directory. python, perl, matlab, octave and tcl bindings now refer
to this top level include directory to find header files.

fortran and c examples are only compiled if we find a compiler, this check
helps prevent builds from failing before the libraries are installed.

added more checks to the configure script

removed rappture search paths from perl's unix build because perl could find
an older version of rappture and compile against it. I would rather the build
fail and have the person enter a valid prefix.

addrd the -fPIC flag to CFLAGS in src2's makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tcl/configure.in

    r708 r718  
    270270#--------------------------------------------------------------------
    271271RAPPTURE_DIR=$prefix
    272 # AC_MSG_CHECKING([for rappture.h])
    273 # RAPPTURE_DIR=""
    274 # if test "x$rappture_dir" != "x" ; then
    275  #
    276  # Verify that a rappture.h file exists in the directory specified
    277  # by --with-rappture.
    278  #
    279  if test -r "$rappture_dir/include/rappture.h" ; then
    280 #     RAPPTURE_DIR="$rappture_dir"
    281  fi
    282 # else
    283  #
    284  # Otherwise, search for the rappture.h include file...
    285  # 1. Search previously named locations.
    286  #
    287  for dir in \
    288 #    $prefix \
    289 #    $exec_prefix
    290  do
    291 #     if test -r "$dir/include/rappture.h" ; then
    292 #       RAPPTURE_DIR="$dir"
    293 #       break
    294 #     fi
    295  done
    296  #
    297  #  2. Search source directories.
    298  #
    299  if test "x$RAPPTURE_DIR" = "x" ; then
    300 #     for dir in \
    301 #      `ls -dr ../rappture 2>/dev/null` \
    302 #      `ls -dr ../../rappture 2>/dev/null` \
    303 #      `ls -dr ../../../rappture 2>/dev/null` \
    304 #      `ls -dr C\:/opt/rappture 2>/dev/null` \
    305 #      `ls -dr /opt/rappture 2>/dev/null`
    306 #     do
    307 #       if test -r "$dir/include/rappture.h" ; then
    308 #         RAPPTURE_DIR="$dir"
    309 #         break
    310 #       fi
    311 #     done
    312  fi
    313 # fi
    314 # AC_MSG_RESULT([${RAPPTURE_DIR}])
    315 # 
    316 # if test "x$RAPPTURE_DIR" = "x" ; then
    317  echo "can't find RAPPTURE include file \"rappture.h\""
    318  echo "use --with-rappture=DIR to specify the location of rappture"
    319  exit 1
    320 # fi
     272#AC_MSG_CHECKING([for rappture.h])
     273#RAPPTURE_DIR=""
     274#if test "x$rappture_dir" != "x" ; then
     275#
     276# Verify that a rappture.h file exists in the directory specified
     277# by --with-rappture.
     278#
     279if test -r "$rappture_dir/include/rappture.h" ; then
     280#    RAPPTURE_DIR="$rappture_dir"
     281fi
     282#else
     283#
     284# Otherwise, search for the rappture.h include file...
     285# 1. Search previously named locations.
     286#
     287for dir in \
     288#   $prefix \
     289#   $exec_prefix
     290do
     291#    if test -r "$dir/include/rappture.h" ; then
     292#      RAPPTURE_DIR="$dir"
     293#      break
     294#    fi
     295done
     296#
     297#  2. Search source directories.
     298#
     299if test "x$RAPPTURE_DIR" = "x" ; then
     300#    for dir in \
     301#     `ls -dr ../rappture 2>/dev/null` \
     302#     `ls -dr ../../rappture 2>/dev/null` \
     303#     `ls -dr ../../../rappture 2>/dev/null` \
     304#     `ls -dr C\:/opt/rappture 2>/dev/null` \
     305#     `ls -dr /opt/rappture 2>/dev/null`
     306#    do
     307#      if test -r "$dir/include/rappture.h" ; then
     308#        RAPPTURE_DIR="$dir"
     309#        break
     310#      fi
     311#    done
     312fi
     313#fi
     314#AC_MSG_RESULT([${RAPPTURE_DIR}])
     315#
     316#if test "x$RAPPTURE_DIR" = "x" ; then
     317echo "can't find RAPPTURE include file \"rappture.h\""
     318echo "use --with-rappture=DIR to specify the location of rappture"
     319exit 1
     320#fi
    321321
    322322AC_SUBST(RAPPTURE_DIR)
    323323
    324324#--------------------------------------------------------------------
    325 # Look for scew.h on the normal include path.  If not found, look
    326 # for it in the --with-scew directory.
    327 #--------------------------------------------------------------------
     325# Default Rappture include path.
     326#--------------------------------------------------------------------
     327ALT_DIR="../../"
    328328# AC_MSG_CHECKING([for alternate paths])
    329329# ALT_DIR=""
Note: See TracChangeset for help on using the changeset viewer.