Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
dceb7f19
Commit
dceb7f19
authored
Sep 28, 2004
by
Lynn Garren
Browse files
adding clhep-config
parent
fe69ea71
Changes
3
Hide whitespace changes
Inline
Side-by-side
Makefile.am
View file @
dceb7f19
...
...
@@ -6,7 +6,7 @@ SUBDIRS = Units Vector Evaluator GenericFunctions Geometry \
Random Matrix RandomObjects HepPDT HepMC StdHep
\
RefCount Cast Exceptions
bin_SCRIPTS
=
clheplib
bin_SCRIPTS
=
clheplib
clhep-config
CLEANFILES
=
clheplib library-list
$(LTCLHEPLIB)
...
...
clhep-config.in
0 → 100755
View file @
dceb7f19
#! /bin/sh
# @configure_input@
prefix
=
@prefix@
exec_prefix
=
@exec_prefix@
includedir
=
@includedir@
usage
()
{
cat
<<
EOF
Usage: clhep-config [OPTION]
Known values for OPTION are:
--prefix show installation prefix
--cxx print C++ compilation command
--cc print C compilation command
--cpp print pre-processor commands
--include print include path
--ldflags print linker flags
--libs print libraries to link against
--help display this help and exit
--version output version information
EOF
exit
$1
}
if
test
$#
-eq
0
;
then
usage 1
fi
while
test
$#
-gt
0
;
do
case
"
$1
"
in
-
*
=
*
)
optarg
=
`
echo
"
$1
"
|
sed
's/[-_a-zA-Z0-9]*=//'
`
;;
*
)
optarg
=
;;
esac
case
"
$1
"
in
--prefix
)
echo
@prefix@
;;
--version
)
echo
@PACKAGE_NAME@ @VERSION@
exit
0
;;
--help
)
usage 0
;;
--cxx
)
echo
@CXX@ @AM_CXXFLAGS@ @CXXFLAGS@
;;
--cc
)
echo
@CC@ @CFLAGS@
;;
--cpp
)
echo
"CPP: "
@CPP@ @CPPFLAGS@
echo
"CXXCPP: "
@CXXCPP@ @CPPFLAGS@
;;
--include
)
echo
-I
@prefix@/include
;;
--ldflags
)
echo
@LDFLAGS@
;;
--libs
)
echo
-L
@prefix@/lib
-lCLHEP-
@VERSION@ @LIBS@
;;
*
)
usage
exit
1
;;
esac
shift
done
exit
0
configure.in
View file @
dceb7f19
...
...
@@ -48,6 +48,9 @@ AC_CONFIG_FILES([makeBinaryTar], [chmod +x makeBinaryTar])
# build clheplib
AC_CONFIG_FILES([build-clheplib], [chmod +x build-clheplib])
# Configuration inquiry program/script:
AC_CONFIG_FILES([clhep-config], [chmod +x clhep-config])
# ----------------------------------------------------------------------
# Capture post-install information:
# ----------------------------------------------------------------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment