Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
c84839eb
Commit
c84839eb
authored
19 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
scan for gmake and make to prefer gmake on systems that have it
parent
1f878aee
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/testcurl.pl
+34
-13
34 additions, 13 deletions
tests/testcurl.pl
with
34 additions
and
13 deletions
tests/testcurl.pl
+
34
−
13
View file @
c84839eb
...
...
@@ -403,6 +403,27 @@ if ($configurebuild) {
logit
"
configure created (dummy message)
";
# dummy message to feign success
}
sub
findinpath
{
my
$c
;
my
$e
;
my
$p
=
$ENV
{'
PATH
'};
my
@pa
=
split
("
:
",
$p
);
for
$c
(
@
_
)
{
for
$e
(
@pa
)
{
if
(
-
x
"
$e
/
$c
")
{
return
$c
;
}
}
}
}
my
$make
=
findinpath
("
gmake
",
"
make
",
"
nmake
");
if
(
!
$make
)
{
mydie
"
Couldn't find make in the PATH
";
}
logit
"
going with
$make
as make
";
# change to build dir
chdir
"
$pwd
/
$build
";
...
...
@@ -423,8 +444,8 @@ if ($configurebuild) {
elsif
((
$^O
eq
'
linux
')
||
(
$targetos
=~
/netware/
))
{
system
("
cp -afr ../
$CURLDIR
/* .
");
system
("
cp -af ../
$CURLDIR
/Makefile.dist Makefile
");
system
("
make -i -C lib -f Makefile.
$targetos
prebuild
");
system
("
make -i -C src -f Makefile.
$targetos
prebuild
");
system
("
$
make
-i -C lib -f Makefile.
$targetos
prebuild
");
system
("
$
make
-i -C src -f Makefile.
$targetos
prebuild
");
}
}
...
...
@@ -450,12 +471,12 @@ if (grepfile("define USE_ARES", "lib/config$confsuffix.h")) {
chdir
"
ares
";
if
(
$targetos
&&
!
$configurebuild
)
{
logit
"
make -f Makefile.
$targetos
";
open
(
F
,
"
make -f Makefile.
$targetos
2>&1 |
")
or
die
;
logit
"
$
make
-f Makefile.
$targetos
";
open
(
F
,
"
$
make
-f Makefile.
$targetos
2>&1 |
")
or
die
;
}
else
{
logit
"
make
";
open
(
F
,
"
make 2>&1 |
")
or
die
;
logit
"
$
make
";
open
(
F
,
"
$
make
2>&1 |
")
or
die
;
}
while
(
<
F
>
)
{
s/$pwd//g
;
...
...
@@ -474,8 +495,8 @@ if (grepfile("define USE_ARES", "lib/config$confsuffix.h")) {
}
if
(
$configurebuild
)
{
logit
"
make -i
";
open
(
F
,
"
make -i 2>&1 |
")
or
die
;
logit
"
$
make
-i
";
open
(
F
,
"
$
make
-i 2>&1 |
")
or
die
;
while
(
<
F
>
)
{
s/$pwd//g
;
print
;
...
...
@@ -483,17 +504,17 @@ if ($configurebuild) {
close
(
F
);
}
else
{
logit
"
make -i
$targetos
";
logit
"
$
make
-i
$targetos
";
if
(
$^O
eq
'
MSWin32
')
{
if
(
$targetos
=~
/vc/
)
{
open
(
F
,
"
nmake -i
$targetos
|
")
or
die
;
}
else
{
open
(
F
,
"
make -i
$targetos
|
")
or
die
;
open
(
F
,
"
$
make
-i
$targetos
|
")
or
die
;
}
}
else
{
open
(
F
,
"
make -i
$targetos
2>&1 |
")
or
die
;
open
(
F
,
"
$
make
-i
$targetos
2>&1 |
")
or
die
;
}
while
(
<
F
>
)
{
s/$pwd//g
;
...
...
@@ -536,8 +557,8 @@ if ($configurebuild && !$crosscompile) {
if
(
$runtestopts
)
{
$o
=
"
TEST_F=
\"
$runtestopts
\"
";
}
logit
"
make
${o}
test-full
";
open
(
F
,
"
make
${o}
test-full 2>&1 |
")
or
die
;
logit
"
$
make
${o}
test-full
";
open
(
F
,
"
$
make
${o}
test-full 2>&1 |
")
or
die
;
open
(
LOG
,
"
>
$buildlog
")
or
die
;
while
(
<
F
>
)
{
s/$pwd//g
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment