Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
src
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
H5hut
src
Commits
2921aa87
Commit
2921aa87
authored
Jul 19, 2011
by
gsell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adaptions for libtools on Mac, work around to use env.varibales removed
parent
be103949
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
61 deletions
+14
-61
Makefile.am
Makefile.am
+2
-0
autogen.sh
autogen.sh
+10
-15
configure.ac
configure.ac
+2
-46
No files found.
Makefile.am
View file @
2921aa87
ACLOCAL_AMFLAGS
=
-I
m4
SUBDIRS
=
\
src
\
test
\
...
...
autogen.sh
View file @
2921aa87
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
LIBTOOLIZE
=
`
which libtoolize
`
if
[
"
$LIBTOOLIZE
"
=
""
]
;
then
LIBTOOLIZE
=
`
which glibtoolize
`
fi
if
[
"
$LIBTOOLIZE
"
=
""
]
;
then
echo
"libtoolize not found"
1>&2
exit
1
fi
echo
"+ making misc files ..."
touch
NEWS README AUTHORS ChangeLog
echo
echo
echo
echo
"+ running aclocal ..."
aclocal
$ACLOCAL_FLAGS
||
{
echo
...
...
@@ -13,8 +20,6 @@ aclocal $ACLOCAL_FLAGS || {
exit
1
}
echo
echo
echo
echo
"+ running autoheader ... "
autoheader
||
{
echo
...
...
@@ -22,17 +27,13 @@ autoheader || {
exit
1
}
echo
echo
echo
echo
"+ running libtoolize ... "
libtoolize
--force
||
{
$LIBTOOLIZE
--force
||
{
echo
echo
"libtoolize failed"
exit
1
}
echo
echo
echo
echo
"+ running autoconf ... "
autoconf
||
{
echo
...
...
@@ -40,15 +41,9 @@ autoconf || {
exit
1
}
echo
echo
echo
echo
"+ running automake ... "
automake
-a
-c
--foreign
||
{
echo
echo
"automake failed"
exit
1
}
echo
echo
echo
configure.ac
View file @
2921aa87
...
...
@@ -13,6 +13,8 @@ AC_PREREQ(2.59)
# The AC_CONFIG_HEADERS macro selects this kind of output.
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR([m4])
# AM_INIT_AUTOMAKE is required to use autoconf with automake
AM_INIT_AUTOMAKE
...
...
@@ -59,18 +61,6 @@ AC_ARG_WITH(
[path to lustre user API [default=""]])],
[LUSTREPATH=$withval], [LUSTREPATH=""])
###############################################################################
################# A SIMPLE WORK AROUND TO USE ENV. VARS #######################
###############################################################################
SAVE_CC=$CC
SAVE_FC=$FC
SAVE_CFLAGS=$CFLAGS
SAVE_FFLAGS=$FFLAGS
SAVE_INCLUDES=$INCLUDES
SAVE_LDFLAGS=$LDFLAGS
SAVE_LIBS=$LIBS
###############################################################################
############### PATH SERACH FUNCTION - to be used later... ####################
###############################################################################
...
...
@@ -368,40 +358,6 @@ fi
LIBS="$LIBS -lz -lm"
###############################################################################
################# A SIMPLE WORK AROUND TO USE ENV. VARS #######################
###############################################################################
#if there was an external input for the variable...
if test -n "$SAVE_CC"; then
CC="$SAVE_CC"
fi
if test -n "$SAVE_FC"; then
FC="$SAVE_FC"
fi
if test -n "$SAVE_CFLAGS"; then
CFLAGS="$SAVE_CFLAGS"
fi
if test -n "$SAVE_FFLAGS"; then
FFLAGS="$SAVE_FFLAGS"
fi
if test -n "$SAVE_INCLUDES"; then
INCLUDES="$SAVE_INCLUDES"
fi
if test -n "$SAVE_LDFLAGS"; then
LDFLAGS="$SAVE_LDFLAGS"
fi
if test -n "$SAVE_LIBS"; then
LIBS="$SAVE_LIBS"
fi
###############################################################################
############## EXPORTING VARIABLES & CREATING OUTPUT FILES ####################
###############################################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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