• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:enable +full:- +full:ares

22 # SPDX-License-Identifier: curl
34 # curl-autocompile@haxx.se to be dealt with automatically (make sure the
40 # testcurl.pl [options] [curl-daily-name] > output
44 # --configure=[options] Configure options
45 # --crosscompile This is a crosscompile
46 # --desc=[desc] Description of your test system
47 # --email=[email] Set email address to report as
48 # --extvercmd=[command] Command to use for displaying version with cross compiles.
49 # --mktarball=[command] Command to run after completed test
50 # --name=[name] Set name to report as
51 # --notes=[notes] More human-readable information about this configuration
52 # --nocvsup Don't pull from git even though it is a git tree
53 # --nogitpull Don't pull from git even though it is a git tree
54 # --nobuildconf Don't run autoreconf -fi
55 # --noconfigure Don't run configure
56 # --runtestopts=[options] Options to pass to runtests.pl
57 # --setup=[file name] File name to read setup from (deprecated)
58 # --target=[your os] Specify your target environment.
60 # if [curl-daily-name] is omitted, a 'curl' git directory is assumed.
68 # Turn on warnings (equivalent to -w, which can't be used with /usr/bin/env)
80 $version='2024-11-28';
86 if (-f ".git/config") {
94 if ($ARGV[0] =~ /--target=/) {
97 elsif ($ARGV[0] =~ /--setup=/) {
100 elsif ($ARGV[0] =~ /--extvercmd=/) {
103 elsif ($ARGV[0] =~ /--mktarball=/) {
106 elsif ($ARGV[0] =~ /--name=/) {
109 elsif ($ARGV[0] =~ /--email=/) {
112 elsif ($ARGV[0] =~ /--desc=/) {
115 elsif ($ARGV[0] =~ /--notes=/) {
118 elsif ($ARGV[0] =~ /--configure=(.*)/) {
122 elsif (($ARGV[0] eq "--nocvsup") || ($ARGV[0] eq "--nogitpull")) {
126 elsif ($ARGV[0] =~ /--nobuildconf/) {
130 elsif ($ARGV[0] =~ /--noconfigure/) {
134 elsif ($ARGV[0] =~ /--crosscompile/) {
138 elsif ($ARGV[0] =~ /--runtestopts=/) {
147 # Do the platform-specific stuff here
173 # FOR Windows since we might be cross-compiling on another system. Non-
174 # Windows builds still default to configure-style builds with curl_config.h.
177 $confheader = 'config-win32.h';
192 system("rm -rf $target");
233 if (-r $buildlog) {
246 if(-f $configfile && -s $configfile && open(my $libconfigh, "<", "$configfile")) {
301 print "examples: --with-openssl --enable-debug --enable-ipv6\n";
320 # Enable picky compiler warnings unless explicitly disabled
321 if (($confopts !~ /--enable-debug/) &&
322 ($confopts !~ /--enable-warnings/) &&
323 ($confopts !~ /--disable-warnings/)) {
324 $confopts .= " --enable-warnings";
367 if (-d $CURLDIR) {
368 if ($git && -d "$CURLDIR/.git") {
370 # remove the generated sources to force them to be re-generated each
373 # find out if curl source dir has an in-tree c-ares repo
374 $have_embedded_ares = 1 if (-f "$CURLDIR/ares/GIT-INFO");
375 } elsif (!$git && -f "$CURLDIR/tests/testcurl.pl") {
377 # find out if curl source dir has an in-tree c-ares extracted tarball
378 $have_embedded_ares = 1 if (-f "$CURLDIR/ares/ares_build.h");
385 $CURLDIR = File::Spec->rel2abs("$CURLDIR");
387 $build="build-$$";
388 $buildlogname="buildlog-$$";
391 # remove any previous left-overs
392 rmtree "build-*";
393 rmtree "buildlog-*";
396 foreach (glob("$CURLDIR/buildlog-*")) { unlink $_; }
401 if (-d $build) {
417 logit "skipping git pull (--nogitpull)";
429 @commits=`git log --pretty=oneline --abbrev-commit -5`;
436 if (-d "ares/.git") {
437 chdir "ares";
440 logit "skipping git pull (--nogitpull) in ares";
442 logit "run git pull in ares";
445 logit "failed to update from ares git ($?), continue anyway" if ($?);
452 @commits=`git log --pretty=oneline --abbrev-commit -5`;
453 logit "The most recent ares git commits:";
463 logit "told to not run autoreconf -fi";
466 # remove possible left-overs from the past
472 open(my $f, "-|", "autoreconf -fi 2>&1") or die;
482 logit "autoreconf -fi was successful";
485 logit "autoreconf -fi was successful (dummy message)";
490 if (open (my $f, '<', "docs/tarball-commit.txt")) {
500 if ((-f "include/curl/curlver.h") &&
520 if (-f "configure") {
538 if( -x "$e/$c$x") {
560 if (-f "lib/Makefile") {
572 if(-f "./libcurl.pc") {
593 logit "setup to build ares";
595 if(-f "./ares/libcares.pc") {
596 logit_spaced "display ares/libcares.pc";
597 if(open($f, "<", "ares/libcares.pc")) {
606 if(-f "./ares/ares_build.h") {
607 logit_spaced "display ares/ares_build.h";
608 if(open($f, "<", "ares/ares_build.h")) {
620 $confheader =~ s/curl/ares/;
621 logit_spaced "display ares/$confheader";
622 if(open($f, "<", "ares/$confheader")) {
630 logit "build ares";
631 chdir "ares";
634 logit "$make -f Makefile.$targetos";
635 open($f, "-|", "$make -f Makefile.$targetos 2>&1") or die;
639 open($f, "-|", "$make 2>&1") or die;
647 if (-f "libcares$libext") {
648 logit "ares is now built successfully (libcares$libext)";
650 mydie "ares build failed (libcares$libext)";
657 my $mkcmd = "$make -i" . ($targetos && !$configurebuild ? " $targetos" : "");
659 open(my $f, "-|", "$mkcmd 2>&1") or die;
666 if (-f "lib/libcurl$libext") {
673 if (-f "src/curl$binext") {
680 if (!$crosscompile || (($extvercmd ne '') && (-x $extvercmd))) {
681 logit "display curl${binext} --version output";
682 my $cmd = ($extvercmd ne '' ? $extvercmd.' ' : '')."./src/curl${binext} --version|";
685 # strip CR from output on non-Windows platforms (WINE on Linux)
695 if(($host_triplet =~ /([^-]+)-([^-]+)-irix(.*)/) ||
696 ($host_triplet =~ /([^-]+)-([^-]+)-aix(.*)/) ||
697 ($host_triplet =~ /([^-]+)-([^-]+)-osf(.*)/) ||
698 ($host_triplet =~ /([^-]+)-([^-]+)-solaris2(.*)/)) {
701 open($f, "-|", "$make -i 2>&1") or die;
717 logit "$make -k ${o}test-full";
718 open($f, "-|", "$make -k ${o}test-full 2>&1") or die;
743 # build example programs for selected cross-compiles
744 if(($host_triplet =~ /([^-]+)-([^-]+)-mingw(.*)/) ||
745 ($host_triplet =~ /([^-]+)-([^-]+)-android(.*)/)) {
748 open($f, "-|", "$make -i 2>&1") or die;
759 # build test harness programs for selected cross-compiles
760 if($host_triplet =~ /([^-]+)-([^-]+)-mingw(.*)/) {
763 open(my $f, "-|", "$make -i 2>&1") or die;
774 logit_spaced "cross-compiling, can't run tests";
781 if (($mktarball ne '') && (-x $mktarball)) {